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/test_children_tree.py | kisliakovsky/structures | 0 | 30329 | <filename>test/test_children_tree.py
from unittest import TestCase
from src.tree import ChildrenTree
class TestChildrenTree(TestCase):
def test_height(self):
tree = ChildrenTree(1, [[], [3, 4], [], [], [0, 2]])
self.assertEqual(3, tree.height())
| [
1,
529,
9507,
29958,
1688,
29914,
1688,
29918,
11991,
29918,
8336,
29889,
2272,
13,
3166,
443,
27958,
1053,
4321,
8259,
13,
13,
3166,
4765,
29889,
8336,
1053,
20986,
9643,
13,
13,
13,
1990,
4321,
19334,
9643,
29898,
3057,
8259,
1125,
13... |
api/tests/integration/tests/layout/threads.py | f1nzer/Indigo | 0 | 107132 | <reponame>f1nzer/Indigo
import sys
from threading import Thread
sys.path.append("../../common")
from env_indigo import *
class testThread(Thread):
def __init__(self, id, smiles):
Thread.__init__(self)
self.id = id
self.smiles = smiles
def run(self):
indigo_1 = Indigo()
... | [
1,
529,
276,
1112,
420,
29958,
29888,
29896,
29876,
3298,
29914,
2568,
5973,
13,
5215,
10876,
13,
3166,
3244,
292,
1053,
10480,
13,
13,
9675,
29889,
2084,
29889,
4397,
703,
21546,
9435,
1159,
13,
3166,
8829,
29918,
513,
5973,
1053,
334,... |
sphinxcontrib/collections/drivers/copy_file.py | useblocks/sphinx-collections | 4 | 30588 | import os
from shutil import copyfile
from sphinxcontrib.collections.drivers import Driver
class CopyFileDriver(Driver):
def run(self):
self.info('Copy file...')
if not os.path.exists(self.config['source']):
self.error('Source {} does not exist'.format(self.config['source']))
... | [
1,
1053,
2897,
13,
13,
3166,
528,
4422,
1053,
3509,
1445,
13,
13,
3166,
269,
561,
14668,
21570,
29889,
29027,
29889,
24477,
874,
1053,
26391,
13,
13,
13,
1990,
14187,
2283,
12376,
29898,
12376,
1125,
13,
13,
1678,
822,
1065,
29898,
13... |
notebooks/utils.py | wranda12/06-machine-learning | 1 | 36750 | <gh_stars>1-10
#
# Some functions to be used in the tutorial
#
# Developed by <NAME>
import datetime
import pandas as pd
import matplotlib.pyplot as plt # for 2D plotting
import numpy as np
import seaborn as sns # plot nicely =)
from sklearn.base import clone
from sklearn.decomposition import PCA
from sklearn.model... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
29937,
13,
29937,
3834,
3168,
304,
367,
1304,
297,
278,
9673,
13,
29937,
13,
29937,
10682,
287,
491,
529,
5813,
29958,
13,
13,
5215,
12865,
13,
5215,
11701,
4... |
src/world/logosplashworld.py | alisonbento/steering-all | 3 | 153725 | import dotworld
import ufrnsplashworld
from src.define import *
from src.dot.entities.dotpairg import DotPairg
from src.dot.dottext import DotText
import i18n
_ = i18n.language.ugettext
class LogoSplashWorld(dotworld.DotWorld):
def __init__(self):
dotworld.DotWorld.__init__(self)
self.counter = ... | [
1,
1053,
8329,
11526,
13,
5215,
318,
1341,
1983,
572,
1161,
11526,
13,
3166,
4765,
29889,
7922,
1053,
334,
13,
3166,
4765,
29889,
6333,
29889,
296,
1907,
29889,
6333,
18784,
29887,
1053,
360,
327,
20547,
29887,
13,
3166,
4765,
29889,
63... |
opps/contrib/multisite/models.py | jeanmask/opps | 159 | 162537 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from opps.core.permissions.models import Permission
class SitePermission(Permission):
pass
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
... |
testing/performances.py | severin-lemaignan/underworlds | 3 | 133871 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import time
import uuid
from multiprocessing import Pipe, Pool
import threading
from concurrent.futures import ThreadPoolExecutor
import logging; logger = logging.getLogger("underworlds.testing.performances")
import underworlds
import underworlds.serve... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
1852,
5510,
13,
5215,
931,
13,
5215,
318,
5416,
13,
13,
3166,
6674,
307,
... |
__init__.py | zznop/bn-kconfig-recover | 18 | 35012 | <filename>__init__.py
"""
Binary Ninja plugin for recovering kernel build configuration settings using BNIL
"""
import argparse
import logging
from binaryninja import (BinaryViewType, BinaryView, PluginCommand,
SaveFileNameField, get_form_input, BackgroundTaskThread)
class RecoverKConfigBackg... | [
1,
529,
9507,
29958,
1649,
2344,
26914,
2272,
13,
15945,
29908,
13,
25196,
27960,
1764,
7079,
363,
9792,
292,
8466,
2048,
5285,
6055,
773,
350,
29940,
6227,
13,
15945,
29908,
13,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
3166,
7581,
... |
Temperatura.py | russeleiser/ProjectTemperature | 0 | 37205 | print ("--------------------------------------------------------")
print ("-------------Bienvenido a la Temperatura----------------")
print ("--------------------------------------------------------\n")
x = 0
while x < 10000:
print ("Elige tus opciones:")
print ("(1) Convertir de °C a °F")
print ("(2) Co... | [
1,
1596,
4852,
2683,
2683,
2683,
1378,
1159,
13,
2158,
4852,
9072,
29899,
29933,
819,
854,
1941,
263,
425,
6789,
546,
7969,
2683,
1159,
13,
2158,
4852,
2683,
2683,
2683,
1378,
29905,
29876,
1159,
13,
13,
29916,
353,
29871,
29900,
13,
... |
mura/eval.py | ZZ87229861/benchmarx | 0 | 197623 | <reponame>ZZ87229861/benchmarx<gh_stars>0
#!/usr/bin/env python3
import os
import sys
import simplejson as json
import subprocess as sp
if len(sys.argv) != 2:
print("Usage: %s result_file" % sys.argv[0])
sys.exit(0)
result_file = sys.argv[1]
ROOT = os.path.abspath(os.path.dirname(__file__))
kapp = os.path.a... | [
1,
529,
276,
1112,
420,
29958,
29999,
29999,
29947,
29955,
29906,
29906,
29929,
29947,
29953,
29896,
29914,
1785,
305,
3034,
29916,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
... |
python/language/lang.py | kenkeiras/codigoparallevar | 2 | 64311 | #!/usr/bin/env python
# coding: utf-8
import re
import os
import sys
# Define un color para mostrar los resultados
color = True
if color:
colorfile = "\x1b[0;92m" # Verde
colorend = "\x1b[0m" # Fin del color
else:
colorfile = colorend = ""
# Diccionarios a comprobar
dictionaries = ["american-englis... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
5215,
337,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
29937,
22402,
443,
2927,
1702,
1556,
13678,
1232,
1121,
2255,
13,
2780,
353,
5852,... |
tests/fixtures.py | vfxetc/sgcache | 13 | 22341 | <reponame>vfxetc/sgcache
from . import uuid
def task_crud(self, shotgun, trigger_poll=lambda: None):
shot_name = uuid(8)
shot = shotgun.create('Shot', {'code': shot_name})
name = uuid(8)
task = shotgun.create('Task', {'content': name, 'entity': shot})
trigger_poll()
x = self.cached.find_one... | [
1,
529,
276,
1112,
420,
29958,
29894,
11093,
7070,
29914,
5311,
8173,
13,
3166,
869,
1053,
318,
5416,
13,
13,
13,
1753,
3414,
29918,
7283,
566,
29898,
1311,
29892,
10322,
28798,
29892,
7135,
29918,
29886,
3028,
29922,
2892,
29901,
6213,
... |
commands/m_link.py | davidferguson/lektor-markdown-mactutor | 2 | 67477 | <filename>commands/m_link.py
# -*- coding: utf-8 -*-
import re
import mistune
name = 'm_link'
type = 'inline'
position = 0
regex = re.compile(r'\[m\s*(?:=\s*(?P<name>\w+)\s*)?](?P<text>.*?)\[\/m\]')
def render(match):
name = match.group('name')
text = match.group('text')
# special case if there is no e... | [
1,
529,
9507,
29958,
26381,
29914,
29885,
29918,
2324,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
337,
13,
5215,
5862,
1540,
13,
13,
13,
978,
353,
525,
29885,
29918,
23... |
read_data_objects.py | PawWitGit/alaska-methan-flux | 0 | 180123 | import pandas as pd
import matplotlib as plt
import matplotlib.pyplot as plt
import numpy as np
from read_data import ReadData
# class DataObjects:
# """Create ReadData objects"""
# read_data = ReadData("CH4_Flux_BigTrail_Goldstream_AK.csv")
# """Functions"""
# read_data.return_data_file()
# read_data.return_dat... | [
1,
1053,
11701,
408,
10518,
13,
5215,
22889,
408,
14770,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
1303,
29918,
1272,
1053,
7523,
1469,
13,
13,
13,
29937,
770,
3630,
12724,
29901,
13,
13... |
djnic/core/models.py | avdata99/nic | 8 | 165687 | <reponame>avdata99/nic
from django.db import models
class News(models.Model):
""" novedades internas del sistema """
priority = models.IntegerField(default=50, help_text='0/100 priority level')
title = models.CharField(max_length=90)
description = models.TextField(null=True, blank=True)
object_cre... | [
1,
529,
276,
1112,
420,
29958,
485,
1272,
29929,
29929,
29914,
7823,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
13,
13,
1990,
10130,
29898,
9794,
29889,
3195,
1125,
13,
1678,
9995,
2420,
287,
3076,
2836,
294,
628,
10502,
9995,
13,
1... |
Backend/pose_analyser/models.py | saksham1991999/Yoga-Pose-Analyser | 0 | 1601017 | from django.db import models
class Pose(models.Model):
name = models.CharField(max_length=256)
description = models.TextField(blank=True, null=True)
file = models.FileField()
def __str__(self):
return self.name
class PoseAnalysis(models.Model):
pose = models.ForeignKey("pose_analyser.Po... | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
13,
1990,
349,
852,
29898,
9794,
29889,
3195,
1125,
13,
1678,
1024,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29945,
29953,
29897,
13,
1678,
6139,
353,
4733,
29889,
1... |
python/data_helper.py | justinmzt/text_classification-system | 4 | 106338 | <reponame>justinmzt/text_classification-system<filename>python/data_helper.py
# -*- coding: UTF-8 -*-
import time
class Timer():
def __init__(self):
self.start = time.time()
def print(self, op="训练"):
print("%s用时 %f 秒。" % (op, time.time() - self.start))
def open_file(filename, mode='r'):
... | [
1,
529,
276,
1112,
420,
29958,
5143,
262,
29885,
2065,
29914,
726,
29918,
1990,
2450,
29899,
5205,
29966,
9507,
29958,
4691,
29914,
1272,
29918,
20907,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930... |
MMMaker/core/highlight_extractor.py | C4Ution/MMMaker | 9 | 38707 | <gh_stars>1-10
import numpy as np
import scipy.io.wavfile as wave
from moviepy.editor import VideoFileClip
from scipy.fftpack import fft
from misc import get_random_name
HIGHLIGHT_LENGTH = 0.65
def extract_highlights(file_paths):
"""
:param file_paths: 동영상 경로 리스트
:return: 추출한 하이라이트 동영상 경로 리스트
"""
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
601,
29889,
29893,
485,
1445,
408,
10742,
13,
3166,
14064,
2272,
29889,
15204,
1053,
13987,
2283,
29907,
3466,
13... |
flask_security_bundle/commands/roles.py | briancappello/flask-security-bundle | 0 | 158409 | from flask_unchained import unchained
from flask_unchained.cli import cli, click
from flask_unchained.commands.utils import print_table
from .utils import _query_to_role
from ..services import RoleManager
role_manager: RoleManager = unchained.services.role_manager
@cli.group()
def roles():
"""
Role commands... | [
1,
515,
29784,
29918,
3322,
7114,
1053,
443,
305,
7114,
13,
3166,
29784,
29918,
3322,
7114,
29889,
11303,
1053,
9335,
29892,
2828,
13,
3166,
29784,
29918,
3322,
7114,
29889,
26381,
29889,
13239,
1053,
1596,
29918,
2371,
13,
13,
3166,
869,... |
nucypher/tests/config/test_firstula_circumstances.py | kanzeparov/NuCypher | 0 | 22728 | """
This file is part of nucypher.
nucypher is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
nucypher is distributed in the hope that it wil... | [
1,
9995,
13,
4013,
934,
338,
760,
310,
4948,
1270,
8096,
29889,
13,
13,
3433,
1270,
8096,
338,
3889,
7047,
29901,
366,
508,
2654,
391,
2666,
372,
322,
29914,
272,
6623,
13,
277,
1090,
278,
4958,
310,
278,
15143,
4593,
5236,
19245,
4... |
rok/tests/conftest.py | rak-n-rok/Krake | 1 | 75308 | import os
import sys
import logging.config
# Prepend package directory for working imports
package_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, package_dir)
logging.config.dictConfig(
{
"version": 1,
"handlers": {"console": {"class": "logging.StreamHand... | [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
12183,
29889,
2917,
13,
13,
13,
29937,
349,
3445,
355,
3577,
3884,
363,
1985,
24802,
13,
5113,
29918,
3972,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
359,
29889,
2084,
29889,
7122,
... |
src/student.py | RushiRaut/SRMS-using-Flask | 0 | 85214 | <filename>src/student.py
from flask import *
from src.connection import cursor, db
add_student = Blueprint ('add_student', __name__)
manage_student = Blueprint('manage_student', __name__)
delete_student = Blueprint('delete_student',__name__)
edit = Blueprint('pre_edit',__name__)
@add_student.route ('/add_student1',... | [
1,
529,
9507,
29958,
4351,
29914,
18945,
29889,
2272,
13,
3166,
29784,
1053,
334,
13,
3166,
4765,
29889,
9965,
1053,
10677,
29892,
4833,
13,
13,
13,
1202,
29918,
18945,
353,
10924,
2158,
6702,
1202,
29918,
18945,
742,
4770,
978,
1649,
2... |
modules/backend.py | Uncle-Yuanl/model_zoo | 0 | 16881 | import os, sys
from distutils.util import strtobool
import numpy as np
import tensorflow as tf
import tensorflow.keras.backend as K
from tensorflow.python.util import nest, tf_inspect
from tensorflow.python.eager import tape
# from tensorflow.python.ops.custom_gradient import graph_mode_decorator
# 是否使用重计... | [
1,
1053,
2897,
29892,
10876,
30004,
13,
3166,
1320,
13239,
29889,
4422,
1053,
851,
517,
11227,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
26110,
408,
15886,
30004,
13,
5215,
26110,
29889,
3946,
294,
29889,
27852,
408,
476,
30004,... |
camd3/infrastructure/component/tests/test_component.py | mamrhein/CAmD3 | 0 | 30913 | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Name: test_component
# Purpose: Test driver for module component
#
# Author: <NAME> (<EMAIL>)
#
# Copyright: (c) 2014 <NAME>
# ------------------------------------------------------------------------... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
29937,
4408,
29901,
4706,
1243,
29918,
9700,
13,
29937,
15247,
4220,
29901,
268,
4321,
7156,
363,
3883,
4163,
13,
29937,
13,
29937,
... |
Algoritimos/uri1020.py | mathspin/Algoritimos-py | 0 | 132671 | <filename>Algoritimos/uri1020.py
v = input("digite um valor em dias: ")
a = int(int(v)/365)
m = int((int(v)%365)/30)
d = int((int(v)%365)%30)
print(str(a)+" ano(s)")
print(str(m)+" mes(es)")
print(str(d)+" dias(s)")
| [
1,
529,
9507,
29958,
2499,
21208,
277,
18594,
29914,
5338,
29896,
29900,
29906,
29900,
29889,
2272,
13,
29894,
353,
1881,
703,
7501,
568,
1922,
16497,
953,
652,
294,
29901,
16521,
13,
29874,
353,
938,
29898,
524,
29898,
29894,
6802,
29941... |
orangecontrib/aps/shadow/widgets/extension/ow_bendable_ellipsoid_mirror.py | oasys-aps-kit/OASYS1-APS-ShadowOui | 1 | 139140 | import os, sys, numpy
from scipy.interpolate import RectBivariateSpline, interp2d
from scipy.optimize import curve_fit
from matplotlib import cm
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
from matplotlib.figure import Figure
try:
from mpl_toolkits.mplot3d import Axes3D # necessario per caric... | [
1,
1053,
2897,
29892,
10876,
29892,
12655,
13,
3166,
4560,
2272,
29889,
1639,
3733,
403,
1053,
22914,
29933,
27432,
403,
29903,
572,
457,
29892,
1006,
29886,
29906,
29881,
13,
3166,
4560,
2272,
29889,
20640,
675,
1053,
11672,
29918,
9202,
... |
azext/batch/models/_models.py | bgklein/azure-batch-cli-extensions | 0 | 138319 | <gh_stars>0
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
2683,
2683,
2683,
2683,
2683,
1378,
5634,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
2178,
10462,
21676,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
18... |
tests/conftest.py | DD-DeCaF/model_warehouse | 0 | 69435 | <reponame>DD-DeCaF/model_warehouse
# Copyright (c) 2018, Novo Nordisk Foundation Center for Biosustainability,
# Technical University of Denmark.
#
# 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 ... | [
1,
529,
276,
1112,
420,
29958,
7858,
29899,
2772,
26270,
29943,
29914,
4299,
29918,
2519,
8697,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
29892,
2864,
29877,
5245,
3873,
10606,
7817,
363,
350,
2363,
504,
... |
Chapter08/rs_cem_comparison.py | verdimrc/Mastering-Reinforcement-Learning-with-Python | 58 | 93365 | from math import sin, pi
import random
import numpy as np
from scipy.stats import norm
def black_box_projectile(theta, v0=10, g=9.81):
assert theta >= 0
assert theta <= 90
return (v0 ** 2) * sin(2 * pi * theta / 180) / g
def random_shooting(n=1, min_a=0, max_a=90):
assert min_a <= max_a
return [r... | [
1,
515,
5844,
1053,
4457,
29892,
2930,
13,
5215,
4036,
13,
5215,
12655,
408,
7442,
13,
3166,
4560,
2272,
29889,
16202,
1053,
6056,
13,
13,
1753,
4628,
29918,
1884,
29918,
4836,
488,
29898,
3416,
29892,
325,
29900,
29922,
29896,
29900,
2... |
epi/variable.py | Epikem/deep-learning-from-scratch | 0 | 1602054 | import numpy as np
import matplotlib.pylab as plt
import sys
def run():
visualizeTarget = sys.argv[1]
print(visualizeTarget)
if(visualizeTarget=='step'):
x=np.arange(-5.0,5.0,0.1)
y=step(x)
plt.plot(x,y)
plt.ylim(-0.1,1.1)
plt.show()
elif(visualizeTarget=='s... | [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
8205,
408,
14770,
13,
5215,
10876,
13,
13,
1753,
1065,
7295,
13,
1678,
7604,
675,
8667,
353,
10876,
29889,
19218,
29961,
29896,
29962,
13,
1678,
1596,
29898,
20119,
675,
8667,
298... |
integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | 15 | 33954 | import fastai
from neptune.new.integrations.fastai import NeptuneCallback
from fastai.vision.all import *
import neptune.new as neptune
run = neptune.init(
project="common/fastai-integration", api_token="<PASSWORD>", tags="basic"
)
path = untar_data(URLs.MNIST_TINY)
dls = ImageDataLoaders.from_csv(path)
# Log al... | [
1,
1053,
5172,
1794,
13,
3166,
452,
415,
1540,
29889,
1482,
29889,
14146,
800,
29889,
11255,
1794,
1053,
2448,
415,
1540,
10717,
13,
3166,
5172,
1794,
29889,
4924,
29889,
497,
1053,
334,
13,
5215,
452,
415,
1540,
29889,
1482,
408,
452,
... |
first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py | PetkoAndreev/Python-basics | 0 | 16561 | days = int(input())
sladkar = int(input())
cake = int(input())
gofreta = int(input())
pancake = int(input())
cake_price = cake*45
gofreta_price = gofreta*5.8
pancake_price = pancake*3.2
day_price = (cake_price + gofreta_price + pancake_price)*sladkar
total_price = days*day_price
campaign = total_price - (total_price/8)... | [
1,
3841,
353,
938,
29898,
2080,
3101,
13,
2536,
328,
5689,
353,
938,
29898,
2080,
3101,
13,
1113,
446,
353,
938,
29898,
2080,
3101,
13,
29887,
974,
276,
941,
353,
938,
29898,
2080,
3101,
13,
8357,
1113,
446,
353,
938,
29898,
2080,
3... |
src/learning/train.py | mari-linhares/deep-audio | 0 | 166616 | <reponame>mari-linhares/deep-audio
import tensorflow as tf
tf.enable_eager_execution()
import tensorflowjs as tfjs
import numpy as np
from data_sources.data_source import DataSource
from optimizers.optimizer import Optimizer
import models.model_factory as mf
import utilities.utils as utils
from tensorflow.python.cl... | [
1,
529,
276,
1112,
420,
29958,
29885,
1306,
29899,
1915,
29882,
5114,
29914,
24535,
29899,
18494,
13,
5215,
26110,
408,
15886,
13,
13264,
29889,
12007,
29918,
29872,
1875,
29918,
22256,
580,
13,
13,
5215,
26110,
1315,
408,
15886,
1315,
13... |
ABC/ABC127/abc127_a.py | yatabis/AtCoder-in-Python3 | 0 | 158108 | <filename>ABC/ABC127/abc127_a.py
# 問題URL: https://atcoder.jp/contests/abc127/tasks/abc127_a
# 解答URL: https://atcoder.jp/contests/abc127/submissions/14655259
a, b = map(int, input().split())
if a <= 5:
print(0)
elif a <= 12:
print(b // 2)
else:
print(b)
| [
1,
529,
9507,
29958,
19658,
29914,
19658,
29896,
29906,
29955,
29914,
10736,
29896,
29906,
29955,
29918,
29874,
29889,
2272,
13,
29937,
29871,
232,
152,
146,
236,
164,
143,
4219,
29901,
2045,
597,
271,
29883,
6119,
29889,
16865,
29914,
1285... |
components/workstation.py | cqzhao/FooProxy | 0 | 21908 | #coding:utf-8
"""
@author : linkin
@email : <EMAIL>
@date : 2018-10-04
"""
import logging
from APIserver.apiserver import app
from components.collector import Collector
from components.validator import Validator
from components.detector import Detector
from components.scanner import Sc... | [
1,
396,
29883,
3689,
29901,
9420,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
732,
8921,
29871,
584,
1544,
262,
13,
1678,
732,
5269,
259,
584,
529,
26862,
6227,
29958,
13,
1678,
732,
1256,
1678,
584,
29871,
29906,
29900,
29896,
29947,... |
src/djanban/apps/api/views/cards.py | diegojromerolopez/djanban | 33 | 109250 | <gh_stars>10-100
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import re
import tempfile
import dateutil
from django.core.files.base import ContentFile
from django.core.serializers.json import DjangoJSONEncoder
from django.db import transaction
from django.db.models import Q
from django... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13... |
contests/atcoder/intro-heuristics/intro_heuristics_b/generate.py | conao3/coder | 0 | 193688 | <reponame>conao3/coder<filename>contests/atcoder/intro-heuristics/intro_heuristics_b/generate.py
#!/usr/bin/env python3
# usage: $ oj generate-input 'python3 generate.py'
import random
# generated by online-judge-template-generator v4.1.0 (https://github.com/kmyk/online-judge-template-generator)
def main():
c = [N... | [
1,
529,
276,
1112,
420,
29958,
535,
6241,
29941,
29914,
29883,
6119,
29966,
9507,
29958,
1285,
9197,
29914,
271,
29883,
6119,
29914,
23333,
29899,
354,
332,
6765,
29914,
23333,
29918,
354,
332,
6765,
29918,
29890,
29914,
17158,
29889,
2272,... |
SharedData/list_all_files.py | kylemcdonald/SoundParts | 22 | 33453 | <reponame>kylemcdonald/SoundParts<filename>SharedData/list_all_files.py<gh_stars>10-100
import os
import fnmatch
# extensions can be a single tring like '.png' or '.jpg'
# or a list of extensions. they should all be lowercase
# but the . is important.
def list_all_files(directory, extensions=None):
for root, dirna... | [
1,
529,
276,
1112,
420,
29958,
29895,
1508,
29885,
2252,
265,
2741,
29914,
29456,
29925,
5708,
29966,
9507,
29958,
21741,
1469,
29914,
1761,
29918,
497,
29918,
5325,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
2... |
src/arima_model.py | SaharCarmel/ARIMA | 0 | 16990 | """ The ARIMA model. """
import torch
import numpy as np
class ARIMA(torch.nn.Module):
"""ARIMA [summary]
"""
def __init__(self,
p: int = 0,
d: int = 0,
q: int = 0) -> None:
"""__init__ General ARIMA model constructor.
Args:
... | [
1,
9995,
450,
9033,
2260,
1904,
29889,
9995,
13,
13,
5215,
4842,
305,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1990,
9033,
2260,
29898,
7345,
305,
29889,
15755,
29889,
7355,
1125,
13,
1678,
9995,
1718,
2260,
518,
7727,
29962,
13,
1678,... |
model-optimizer/mo/front/caffe/extractors/batchnorm.py | tdp2110/dldt | 0 | 139454 | <gh_stars>0
"""
Copyright (c) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
29899,
29906,
29900,
29896,
29929,
18555,
15025,
13,
13,
10413,
21144,
1090,
278,
13380,
19245,
29892,
1... |
flare_removal/python/models.py | shaun95/google-research | 1 | 158586 | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29906,
450,
5087,
10550,
13189,
943,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
... |
tests/components/image_processing/common.py | pcaston/core | 1 | 186189 | <gh_stars>1-10
"""Collection of helper methods.
All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly.
"""
from openpeerpower.components.image_processing import DOMAIN, SERVICE_SCAN
from openpeerpower.const import ATTR_ENTITY_ID, ENTITY_MATCH_ALL
from op... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
7196,
310,
16876,
3519,
29889,
13,
13,
3596,
6943,
3519,
526,
25000,
1371,
414,
393,
881,
451,
367,
1304,
491,
716,
13,
14036,
29889,
8669,
1246,
278,... |
plugins/classbrowser/parser_diff.py | thioshp/MyGeditV2Full | 4 | 1607572 | <gh_stars>1-10
# -*- coding: utf-8 -*-
# Copyright (C) 2007 <NAME> (<EMAIL>)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ve... | [
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,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29955,
529,
5813,
... |
d05.py | nayunhwan/SMaSH_Python | 0 | 1615677 | <reponame>nayunhwan/SMaSH_Python<filename>d05.py
#coding: utf-8
count1 = 0
count2 = 0
count3 = 0
count4 = 0
count5 = 0
while(True):
s = input("직사각형의 가로 세로 입력")
width, height = s.split(" ")
width = int(width)
height = int(height)
if(width <= 0 or height <= 0):
break
else:
if(width == height):
count1 += 1
... | [
1,
529,
276,
1112,
420,
29958,
29876,
388,
348,
29882,
11440,
29914,
17061,
29874,
7068,
29918,
11980,
29966,
9507,
29958,
29881,
29900,
29945,
29889,
2272,
13,
29937,
29883,
3689,
29901,
23616,
29899,
29947,
13,
13,
2798,
29896,
353,
29871... |
tests/graph/utils.py | kvh/basis | 11 | 46611 | <filename>tests/graph/utils.py<gh_stars>10-100
import textwrap
from pathlib import Path
from dataclasses import dataclass, asdict
from typing import Any, Union, List, Dict, Collection, Set, Tuple
from basis.graph.builder import graph_manifest_from_yaml, GraphManifest
from basis.configuration.path import GraphEdge, Nod... | [
1,
529,
9507,
29958,
21150,
29914,
4262,
29914,
13239,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
1426,
6312,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
848,
13203,
1053,
848,
... |
angeline_yu/SARS.py | homologus/2020-intermediate-class | 3 | 50431 | <filename>angeline_yu/SARS.py
from Bio import SeqIO
from Bio.Seq import Seq
#Accessing SARS Genome and storing it in reads
reads = list(SeqIO.parse("/share/SARS/SARS-2020.fasta", "fasta"))
#translating the 3 reading frames
translation1 = reads[0].seq.translate()
translation2 = reads[0].seq.translate()
translation3 = ... | [
1,
529,
9507,
29958,
574,
5570,
29918,
29891,
29884,
29914,
29903,
1718,
29903,
29889,
2272,
13,
3166,
21184,
1053,
25981,
5971,
13,
3166,
21184,
29889,
23718,
1053,
25981,
13,
13,
29937,
6638,
292,
317,
1718,
29903,
5739,
608,
322,
15446... |
2020/day_16/day_16.py | viddrobnic/adventofcode | 0 | 36732 | <gh_stars>0
def read_data():
rules = dict()
your_ticket = None
nearby_tickets = []
state = 0
with open('in') as f:
for line in map(lambda x: x.strip(), f.readlines()):
if line == '':
state += 1
continue
if line == 'your ticket:':
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1753,
1303,
29918,
1272,
7295,
13,
1678,
6865,
353,
9657,
580,
13,
1678,
596,
29918,
29873,
8522,
353,
6213,
13,
1678,
20810,
29918,
24667,
1691,
353,
5159,
13,
1678,
2106,
353,
29871,
... |
vae-dpc/vae_main.py | lovish1234/TPC | 0 | 1609206 | <filename>vae-dpc/vae_main.py<gh_stars>0
# Self-supervised pretraining using DPC with VAE
import os
import random
import sys
import time
import re
import argparse
import ntpath
import numpy as np
import pickle
from tqdm import tqdm
import copy
# visualization
from tensorboardX import SummaryWriter
import matplotlib.p... | [
1,
529,
9507,
29958,
1564,
29872,
29899,
6099,
29883,
29914,
1564,
29872,
29918,
3396,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
21782,
29899,
9136,
11292,
758,
26495,
773,
360,
9026,
411,
478,
16036,
13,
13,
5... |
tests/py_tests/test_faint/test_linear_gradient.py | lukas-ke/faint-graphics-editor | 10 | 156861 | <reponame>lukas-ke/faint-graphics-editor<gh_stars>1-10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from faint import LinearGradient
class TestLinearGradient(unittest.TestCase):
def test_init_types(self):
# Arguments required
ar = self.assertRaises(ValueError)
... | [
1,
529,
276,
1112,
420,
29958,
29880,
2679,
294,
29899,
446,
29914,
29888,
2365,
29899,
6420,
29899,
15204,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
30... |
nitmis_admin/controllers/register.py | kalesh13/nitmis | 0 | 15832 | from rest_framework.views import APIView
from rest_framework.response import Response
from django.shortcuts import render
from django.http.response import JsonResponse
from nitmis_admin.serializers.UserSerializer import UserSerializer
def create_user(role="Guest"):
"""
"""
def fun_wrapper(func):
d... | [
1,
515,
1791,
29918,
4468,
29889,
7406,
1053,
3450,
1043,
13,
3166,
1791,
29918,
4468,
29889,
5327,
1053,
13291,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
3166,
9557,
29889,
1124,
29889,
5327,
1053,
14355,
5103,
13,
3166,... |
src/rreil/variable.py | tizmd/python-gdsl | 0 | 127256 |
class Variable(object):
def __init__(self, _id , offset):
self._id = _id
self.offset = offset
def __str__(self):
s = str(self._id)
if self.offset:
s = s + "/%d" % self.offset
return s
class VariableLimited(object):
def __init__(self, _id , offset, size):... | [
1,
29871,
13,
1990,
28736,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
903,
333,
1919,
9210,
1125,
13,
4706,
1583,
3032,
333,
353,
903,
333,
13,
4706,
1583,
29889,
10289,
353,
9210,
13,
1678,
822,
4770,
710,
1203... |
ShapeFlow/deform_3_obj.py | vikasTmz/SP-GAN | 46 | 1600756 | <reponame>vikasTmz/SP-GAN<filename>ShapeFlow/deform_3_obj.py
import torch.optim as optim
from shapeflow.layers.chamfer_layer import ChamferDistKDTree
from shapeflow.layers.deformation_layer import NeuralFlowDeformer
from shapeflow.layers.pointnet_layer import PointNetEncoder
import torch
import numpy as np
from time ... | [
1,
529,
276,
1112,
420,
29958,
17064,
294,
29911,
29885,
29920,
29914,
5550,
29899,
29954,
2190,
29966,
9507,
29958,
24111,
17907,
29914,
311,
689,
29918,
29941,
29918,
5415,
29889,
2272,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13,
... |
shadow4/syned/absorbers/absorber.py | srio/minishadow | 1 | 189031 |
from syned.beamline.optical_element import OpticalElement
from syned.beamline.shape import BoundaryShape
class Absorber(OpticalElement):
def __init__(self, name="Undefined", boundary_shape=None):
if boundary_shape is None:
boundary_shape = BoundaryShape()
OpticalElement.__init__(self, ... | [
1,
29871,
13,
3166,
5222,
287,
29889,
915,
314,
1220,
29889,
3670,
936,
29918,
5029,
1053,
20693,
936,
2642,
13,
3166,
5222,
287,
29889,
915,
314,
1220,
29889,
12181,
1053,
350,
618,
653,
24111,
13,
13,
1990,
24650,
272,
495,
29898,
2... |
climpred/tests/__init__.py | aaronspring/climpred | 0 | 151058 | import importlib
from distutils import version
import pytest
def _importorskip(modname, minversion=None):
try:
mod = importlib.import_module(modname)
has = True
if minversion is not None:
if LooseVersion(mod.__version__) < LooseVersion(minversion):
raise Import... | [
1,
1053,
1053,
1982,
13,
3166,
1320,
13239,
1053,
1873,
13,
13,
5215,
11451,
1688,
13,
13,
13,
1753,
903,
5215,
272,
11014,
29898,
1545,
978,
29892,
1375,
3259,
29922,
8516,
1125,
13,
1678,
1018,
29901,
13,
4706,
878,
353,
1053,
1982,... |
Intermediate/main.py | fredtheninja/100-Days-of-Code | 0 | 65389 | <reponame>fredtheninja/100-Days-of-Code
from turtle import Screen
from snake import Snake
import time
screen = Screen()
screen.setup(width=600, height=600)
screen.bgcolor("black")
screen.title("Snake")
screen.tracer(0)
# -----------------------------Angela-----------------------------------#
snake = Snake()
screen.l... | [
1,
529,
276,
1112,
420,
29958,
18447,
6098,
262,
1764,
29914,
29896,
29900,
29900,
29899,
25991,
29899,
974,
29899,
3399,
13,
3166,
260,
4227,
280,
1053,
22666,
13,
3166,
269,
21040,
1053,
317,
21040,
13,
5215,
931,
13,
13,
10525,
353,
... |
sample.py | leeamen/threadpool | 3 | 166982 | #!/usr/bin/python
#coding:utf-8
import mylog
import mythreadpool as tp
import logging
if __name__ == '__main__':
logger = logging.getLogger(__name__)
def process(args):
logger.info('task %d is finished!', args['taskid'])
threadpool = tp.MyThreadPool(2)
for i in range(1,10):
threadpool.DispatchTa... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
29937,
29883,
3689,
29901,
9420,
29899,
29947,
13,
13,
5215,
590,
1188,
13,
5215,
590,
7097,
10109,
408,
260,
29886,
13,
5215,
12183,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1... |
hatch/structures.py | kapb14/hatch | 1 | 92496 | <gh_stars>1-10
import os
from urllib.parse import urlencode
class File:
def __init__(self, file_name, contents, binary=False):
self.file_name = file_name
self.contents = contents
self.write_mode = 'wb' if binary else 'w'
def write(self, d):
if not os.path.exists(d):
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
3166,
3142,
1982,
29889,
5510,
1053,
3142,
12508,
13,
13,
13,
1990,
3497,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
934,
29918,
978,
298... |
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_asm_policy_import.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 17 | 11250 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2018, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
14187,
1266,
29901,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
29892,
383,
29945,
... |
12_module_release/message/__init__.py | DeveloperLY/Python-practice | 0 | 1334 | <filename>12_module_release/message/__init__.py
from . import send_message
from . import receive_message | [
1,
529,
9507,
29958,
29896,
29906,
29918,
5453,
29918,
14096,
29914,
4906,
29914,
1649,
2344,
26914,
2272,
13,
3166,
869,
1053,
3638,
29918,
4906,
13,
3166,
869,
1053,
7150,
29918,
4906,
2
] |
file_util.py | d4yvie/advent_of_code_2021 | 0 | 184525 | from functools import reduce
import numpy as np
def read_all(file_name="measurements") -> str:
with open(file_name) as f:
return reduce(lambda a, b: a + b, f, "")
def read_lines(file_name="measurements") -> list[str]:
with open(file_name) as f:
return [line.strip() for line in f]
def read_... | [
1,
515,
2090,
312,
8789,
1053,
10032,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
1303,
29918,
497,
29898,
1445,
29918,
978,
543,
26658,
1860,
1159,
1599,
851,
29901,
13,
1678,
411,
1722,
29898,
1445,
29918,
978,
29897,
408,
285,
29... |
ffttest.py | teslaworksumn/Reactor | 0 | 14333 | # From http://julip.co/2012/05/arduino-python-soundlight-spectrum/
# Python 2.7 code to analyze sound and interface with Arduino
import pyaudio # from http://people.csail.mit.edu/hubert/pyaudio/
import serial # from http://pyserial.sourceforge.net/
import numpy # from http://numpy.scipy.org/
import audioop
import ... | [
1,
396,
3645,
1732,
597,
29926,
352,
666,
29889,
1111,
29914,
29906,
29900,
29896,
29906,
29914,
29900,
29945,
29914,
538,
29884,
1789,
29899,
4691,
29899,
29802,
4366,
29899,
21494,
5848,
29914,
13,
29937,
5132,
29871,
29906,
29889,
29955,
... |
src/knn.py | zhangxyz/MLFSdel | 0 | 133802 | #!usr/bin/env python
#-*- coding: utf-8 -*-
import logging
import numpy as np
import sklearn
from sklearn import metrics
from sklearn import neighbors
from sklearn import cross_validation
from sklearn.datasets import load_svmlight_file
from sklearn.cross_validation import cross_val_score
import math
import sys
import ... | [
1,
396,
29991,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
29899,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
12183,
13,
5215,
12655,
408,
7442,
13,
5215,
2071,
19668,
13,
3166,
2071,
19668,
1053,
21... |
ext_modules/_maix_nn/example/yolo2_camera.py | sipeed/python3-maix | 93 | 6851 | <gh_stars>10-100
from maix import nn
from PIL import Image, ImageDraw, ImageFont
from maix import display, camera
import time
from maix.nn import decoder
def draw_rectangle_with_title(draw, box, disp_str, bg_color=(255, 0, 0, 255), font_color=(255, 255, 255, 255)):
# draw = ImageDraw.Draw(img)
font = Imag... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
13,
13,
13,
13,
3166,
611,
861,
1053,
302,
29876,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
8537,
29892,
7084,
9824,
13,
3166,
611,
861,
1053,
2... |
python/6kyu/playing_with_digits.py | momchilantonov/codewars | 0 | 128589 | <reponame>momchilantonov/codewars
def dig_pow(n, p):
"""
Some numbers have funny properties. For example:
89 --> 8¹ + 9² = 89 * 1
695 --> 6² + 9³ + 5⁴= 1390 = 695 * 2
46288 --> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51
Given a positive integer n written as abcd... (a, b, c, d... being digits)... | [
1,
529,
276,
1112,
420,
29958,
29885,
290,
305,
309,
11960,
586,
29914,
401,
29893,
1503,
13,
1753,
4697,
29918,
12248,
29898,
29876,
29892,
282,
1125,
13,
1678,
9995,
13,
1678,
3834,
3694,
505,
2090,
1460,
4426,
29889,
1152,
1342,
2990... |
ensemble/management/commands/seeddata.py | evanlouie/activelearning | 0 | 49525 | """
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... | [
1,
9995,
13,
3057,
848,
885,
3470,
1025,
292,
29889,
13,
6359,
29901,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
3359,
29914,
3525,
517,
29914,
6341,
29899,
21895,
29899,
26381,
29914,
13,
15945,
29908,... |
src/terra/contracts/levana.py | fentas/staketaxcsv | 0 | 22832 | # known contracts from protocol
CONTRACTS = [
# NFT - Meteor Dust
"<KEY>",
# NFT - Eggs
"<KEY>",
# NFT - Dragons
"<KEY>",
# NFT - Loot
"<KEY>",
]
def handle(exporter, elem, txinfo, contract):
print(f"Levana! {contract}")
#print(elem)
| [
1,
396,
2998,
8078,
29879,
515,
9608,
13,
22412,
4717,
1783,
29903,
353,
518,
13,
1678,
396,
405,
7818,
448,
29573,
360,
504,
13,
1678,
9872,
10818,
28341,
13,
1678,
396,
405,
7818,
448,
382,
1505,
29879,
13,
1678,
9872,
10818,
28341,... |
webdriver/applicationstate.py | jiteshmohite/Python-Page-Object-Model-Framework | 6 | 1601865 | class ApplicationState(object):
NOT_INSTALLED = 0
NOT_RUNNING = 1
RUNNING_IN_BACKGROUND_SUSPENDED = 2
RUNNING_IN_BACKGROUND = 3
RUNNING_IN_FOREGROUND = 4
| [
1,
770,
8427,
2792,
29898,
3318,
1125,
13,
1678,
6058,
29918,
25580,
1964,
20566,
353,
29871,
29900,
13,
1678,
6058,
29918,
29934,
3904,
29940,
4214,
353,
29871,
29896,
13,
1678,
27694,
29940,
4214,
29918,
1177,
29918,
29933,
11375,
29954,
... |
mummi_ras/online/aa/aa_get_tiltrot_z_state.py | mummi-framework/mummi-ras | 4 | 896 | ###############################################################################
# @todo add Pilot2-splash-app disclaimer
###############################################################################
""" Get's KRAS states """
import MDAnalysis as mda
from MDAnalysis.analysis import align
from MDAnalysis.lib.mdamath ... | [
1,
835,
13383,
13383,
13383,
13383,
7346,
4136,
13,
29937,
732,
29873,
8144,
788,
14970,
327,
29906,
29899,
23579,
1161,
29899,
932,
2313,
433,
4193,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
13,
15945,
29908,
3617,
299... |
test/test_icap.py | antmicro/netv2 | 0 | 64553 | #!/usr/bin/env python3
from litex import RemoteClient
wb = RemoteClient()
wb.open()
# # #
def icap_send(addr, data):
wb.regs.icap_addr.write(addr)
wb.regs.icap_data.write(data)
wb.regs.icap_send.write(1)
while (wb.regs.icap_done.read() == 0):
pass
# iprog
icap_send(0x04, 0x0000000f)
# # #
wb.close()
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
301,
568,
29916,
1053,
5240,
866,
4032,
13,
13,
29893,
29890,
353,
5240,
866,
4032,
580,
13,
29893,
29890,
29889,
3150,
580,
13,
13,
29937,
396,
396,
13,
13,
1753,
... |
tests/test_linearalgebra.py | JHay0112/jmath | 7 | 91094 | <filename>tests/test_linearalgebra.py
"""
jmath/tests/test_linearalgebra.py
Runs tests on linear algebra component using pytest
Author: <NAME>
Date: 2021-06-25
"""
# - Imports
from ..jmath.linearalgebra import Vector, Point, Line
from .tools import random_integer, random_integers, repeat
from typing... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
10660,
15742,
29889,
2272,
13,
15945,
29908,
13,
1678,
432,
755,
29914,
21150,
29914,
1688,
29918,
10660,
15742,
29889,
2272,
13,
13,
1678,
390,
6948,
6987,
373,
5608,
9623,
4163,
773,
11451... |
towers/monkey_village.py | 56kyle/bloons_auto | 0 | 48319 | <filename>towers/monkey_village.py
from tower import Tower
from config import keybinds
class MonkeyVillage(Tower):
name = 'monkey_village'
range = 215
width = 119
height = 103
size = 'xl'
keybind = keybinds[name]
aquatic = False
def __init__(self, **kwargs):
super().__init__(*... | [
1,
529,
9507,
29958,
29873,
340,
414,
29914,
3712,
1989,
29918,
29894,
453,
482,
29889,
2272,
13,
3166,
19372,
1053,
23615,
13,
3166,
2295,
1053,
1820,
5355,
29879,
13,
13,
13,
1990,
2598,
1989,
29963,
453,
482,
29898,
29911,
1680,
1125... |
model.py | Jeffrey0Liao/2020-2021-Final-Year-Project-Joint-Sentimental-Analysis-Based-on-Tree-topology | 2 | 114274 | import torch as th
import torch.nn as nn
from torch.utils.data import DataLoader
from torch.utils.data import Dataset
import torch.nn.functional as F
import numpy as np
import dgl
import dgl.function as fn
class TreeLSTMCell(nn.Module):
def __init__(self, x_size, h_size):
super(TreeLSTMCell, self).__init_... | [
1,
1053,
4842,
305,
408,
266,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
3630,
10036,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
13373,
24541,
13,
5215,
4842,
305... |
RepositoryStatusMonitor/repository_status_monitor_stack.py | awslabs/aws-repository-status-monitor | 8 | 156628 | <gh_stars>1-10
from sys import stderr
from aws_cdk import (
aws_apigateway as apigw,
aws_events as events,
aws_events_targets as targets,
aws_iam as iam,
aws_lambda as _lambda,
aws_lambda_event_sources as lambda_event_source,
aws_sqs as sqs,
core
)
from lambda_dir import http_handler a... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
10876,
1053,
380,
20405,
13,
13,
3166,
25879,
29918,
2252,
29895,
1053,
313,
13,
1678,
25879,
29918,
481,
335,
403,
1582,
408,
3095,
335,
29893,
29892,
13,
16... |
corefacility/authorizations/ihna/test/account_set_object.py | serik1987/corefacility | 0 | 122176 | from core.test.entity_set.entity_set_objects.external_account_set_object import ExternalAccountSetObject
from authorizations.ihna.entity import Account
class AccountSetObject(ExternalAccountSetObject):
_entity_class = Account
_alias_field = "email"
def data_provider(self):
return [
... | [
1,
515,
7136,
29889,
1688,
29889,
10041,
29918,
842,
29889,
10041,
29918,
842,
29918,
12650,
29889,
23176,
29918,
10149,
29918,
842,
29918,
3318,
1053,
3985,
10601,
2697,
2061,
13,
3166,
4148,
17063,
29889,
4861,
1056,
29889,
10041,
1053,
1... |
download/Cost-Function-Of-ML/costFunctionExam.py | chenjian158978/chenjian.github.io | 3 | 52700 | <reponame>chenjian158978/chenjian.github.io
# -*- coding:utf8 -*-
"""
@author: <EMAIL>
@date: Tue, May 23 2017
@time: 19:05:20 GMT+8
"""
import matplotlib.pyplot as plt
import numpy as np
# 都转换成列向量
X = np.array([[0, 1, 2, 4]]).T
Y = np.array([[0, 1, 2, 4]]).T
# 三个不同的theta_1值
theta1 = np.array([[0, 0]]).T
theta2 = ... | [
1,
529,
276,
1112,
420,
29958,
2724,
29926,
713,
29896,
29945,
29947,
29929,
29955,
29947,
29914,
2724,
29926,
713,
29889,
3292,
29889,
601,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
... |
Aprendizaje-Guia/Talleres-Python/ejemplo.py | JuanCamilo9915/Learning-Python | 0 | 1611766 | print=("nombre completo")
nombrecompleto=input()
print("cedula de ciudadania")
cedula=input()
cedulah=int(cedula)
print("fecha de nacimiento")
fecha=input()
fecha6=int(fecha)
print("edad:")
edad=input()
edadnum=int(edad)
if(edadnum>=18):
print("Mayor de edad")
else:
print("men... | [
1,
1596,
29922,
703,
11522,
1030,
1614,
517,
1159,
13,
11522,
1030,
5729,
517,
29922,
2080,
580,
13,
2158,
703,
1133,
2497,
316,
9866,
4807,
1159,
13,
1133,
2497,
29922,
2080,
580,
13,
1133,
352,
801,
29922,
524,
29898,
1133,
2497,
29... |
{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py | scil/full-stack-fastapi-postgresql-for-uper | 0 | 68632 | <gh_stars>0
from fastapi import APIRouter, Depends
from pydantic import EmailStr
from app.api.utils.security import get_current_active_superuser
from app.core.celery_app import celery_app
from app.models.msg import Msg
from app.models.user import UserInDB
from app.utils import send_test_email
router = APIRouter()
@... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
5172,
2754,
1053,
3450,
23971,
29892,
10034,
1975,
13,
3166,
282,
2941,
7716,
1053,
22608,
5015,
13,
13,
3166,
623,
29889,
2754,
29889,
13239,
29889,
8926,
1053,
679,
29918,
3784,
... |
src/tests/test.py | ThomazDiniz/Projeto-TC | 1 | 179722 | <reponame>ThomazDiniz/Projeto-TC
execfile("../main.py")
readInputFile()
simulate() | [
1,
529,
276,
1112,
420,
29958,
1349,
290,
834,
29928,
262,
466,
29914,
1184,
4026,
29877,
29899,
9472,
13,
4258,
1445,
703,
6995,
3396,
29889,
2272,
1159,
13,
13,
949,
4290,
2283,
580,
13,
3601,
5987,
580,
2
] |
src/pdf/plugins/_pdf/external.py | ChakshuGautam/PDF-Package | 0 | 114106 | import json
import os
import traceback
from celery import shared_task
from interface import implements
import pdfkit
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from ...base.interfaces.plugin import Plugin
from ...models import GenericConfig
from ...shorteners.yaus import YausShortner
fr... | [
1,
1053,
4390,
13,
5215,
2897,
13,
5215,
9637,
1627,
13,
13,
3166,
6432,
708,
1053,
7258,
29918,
7662,
13,
3166,
5067,
1053,
10703,
13,
5215,
13552,
7354,
13,
3166,
282,
2941,
4401,
29889,
5150,
1053,
5087,
6444,
13,
3166,
282,
2941,
... |
suspects.py | ht21992/Online-Board-Game | 0 | 161709 | import random
import pickle
with open("run_number", 'rb') as f:
run_number = pickle.load(f)
def sus_info():
global run_number
suspects = {0: {"Name": "<NAME>", "Blood Type": "AB+", "Occupation": "actor", "Hair Color": "brown", "Age": 64,
"Sex": "man"},
1... | [
1,
1053,
4036,
30004,
13,
5215,
5839,
280,
30004,
13,
30004,
13,
2541,
1722,
703,
3389,
29918,
4537,
613,
525,
6050,
1495,
408,
285,
29901,
30004,
13,
1678,
1065,
29918,
4537,
353,
5839,
280,
29889,
1359,
29898,
29888,
8443,
13,
30004,
... |
utils/config_import.py | pyoor/distiller | 30 | 73435 | <reponame>pyoor/distiller
import yaml
import os
import shutil
import sqlite3
import sys
class DistillerConfig:
def __init__(self, config_file, section):
self.config = read_config(config_file, section)
try:
self.project_name = self.config['name']
except KeyError:
ra... | [
1,
529,
276,
1112,
420,
29958,
2272,
16946,
29914,
5721,
5495,
13,
5215,
343,
8807,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
5215,
21120,
29941,
13,
5215,
10876,
13,
13,
13,
1990,
6652,
5495,
3991,
29901,
13,
1678,
822,
4770,
2344,
... |
constants.py | jlduhaime/combatTest | 0 | 1600898 | SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
FPS = 60
BLACK = (0, 0, 0) | [
1,
12314,
1525,
1430,
29918,
22574,
353,
29871,
29953,
29946,
29900,
13,
7187,
1525,
1430,
29918,
9606,
22530,
353,
29871,
29946,
29947,
29900,
13,
29943,
7024,
353,
29871,
29953,
29900,
13,
13,
13367,
11375,
353,
313,
29900,
29892,
29871,
... |
problems/algoexpert/list/shift_linked_list.py | JayMonari/py-personal | 0 | 79779 | <filename>problems/algoexpert/list/shift_linked_list.py<gh_stars>0
from typing import Optional
class ListNode:
def __init__(self, value: int, _next=None):
self.value: int = value
self.next: Optional[ListNode] = _next
def shift_linked_list(
head: Optional[ListNode],
k: int) -> Opt... | [
1,
529,
9507,
29958,
17199,
29879,
29914,
284,
1484,
735,
10700,
29914,
1761,
29914,
10889,
29918,
2324,
287,
29918,
1761,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
28379,
13,
13,
13,
1990,
2391,
42... |
scrapytest/spiders/ScrapyDemo.py | liang1024/Scrapy | 0 | 100429 | import scrapy
class QuotesSpider(scrapy.Spider):
name = "demo1"
def start_requests(self):
urls = [
'http://quotes.toscrape.com/page/1/',
'http://quotes.toscrape.com/page/2/',
]
for url in urls:
yield scrapy.Request(url=url, callback=self.parse)
... | [
1,
1053,
24559,
2272,
13,
13,
13,
1990,
751,
4769,
5592,
1241,
29898,
1557,
336,
2272,
29889,
5592,
1241,
1125,
13,
1678,
1024,
353,
376,
17482,
29896,
29908,
13,
13,
1678,
822,
1369,
29918,
24830,
29898,
1311,
1125,
13,
4706,
23942,
... |
old/core/migrations/0005_client.py | rngallen/django_ninja | 0 | 76665 | <filename>old/core/migrations/0005_client.py
# Generated by Django 3.1.7 on 2021-03-21 15:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_US... | [
1,
529,
9507,
29958,
1025,
29914,
3221,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29945,
29918,
4645,
29889,
2272,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29955,
373,
29871,
29906,
29900,
29906,
29896,
29899,... |
ptrack/templatetags/ptrack.py | unformatt/django-ptrack | 0 | 139338 | """Ptrack Template Tag"""
import logging
from django import template
from django.utils.html import mark_safe
logger = logging.getLogger(__name__)
register = template.Library()
@register.simple_tag
def ptrack(*args, **kwargs):
"""Generate a tracking pixel html img element."""
from ptrack import create_img
... | [
1,
9995,
29925,
11294,
25663,
10522,
15945,
29908,
13,
5215,
12183,
13,
13,
3166,
9557,
1053,
4472,
13,
3166,
9557,
29889,
13239,
29889,
1420,
1053,
2791,
29918,
11177,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897... |
hwm3/venv/Lib/site-packages/pymorphy2/opencorpora_dict/parse.py | liubov-volkova/pythondev | 0 | 145514 | # -*- coding: utf-8 -*-
"""
:mod:`pymorphy2.opencorpora_dict.parse` is a
module for OpenCorpora XML dictionaries parsing.
"""
from __future__ import absolute_import, unicode_literals, division
import logging
import collections
try:
from lxml.etree import iterparse
def xml_clear_elem(elem):
elem.clear... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29901,
1545,
18078,
29886,
962,
5676,
29891,
29906,
29889,
3150,
2616,
1971,
29874,
29918,
8977,
29889,
5510,
29952,
338,
263,
13,
5453,
... |
uppergeodesic.py | drewitz/VIPer | 0 | 65703 | #!/usr/bin/env python3
# class file uppergeodesic.py
# started as a script to visualize what happens to hyperbolic plane
# if different isometries act on it
import geodesic as gd
import numpy as np
import numpy.linalg as lina
import matplotlib.pyplot as plt
# upper half space as the basic model
class UpperGeodesic... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
770,
934,
7568,
479,
2631,
293,
29889,
2272,
13,
13,
29937,
4687,
408,
263,
2471,
304,
7604,
675,
825,
5930,
304,
11266,
2095,
293,
10694,
13,
29937,
565,
1422,
338... |
grodddroid/BranchExplorer/branchexp/explo/tags.py | demirdagemir/thesis | 0 | 1614795 | <gh_stars>0
""" Functions to work with tags and tag files. """
import logging
log = logging.getLogger("branchexp")
def is_method_tag(tag):
return tag.startswith("BEG")
def is_branch_tag(tag):
return tag.startswith("BRA") and not "/" in tag
def is_cond_tag(tag):
return tag.startswith("BRA") and "/" in ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
6680,
29879,
304,
664,
411,
8282,
322,
4055,
2066,
29889,
9995,
13,
13,
5215,
12183,
13,
13,
1188,
353,
12183,
29889,
657,
16363,
703,
17519,
4548,
1159,
13,
13,
13,
175... |
facility_management/facility_management/web_form/new_maintenance/new_maintenance.py | pazari/facility_management | 13 | 86853 | <filename>facility_management/facility_management/web_form/new_maintenance/new_maintenance.py
from __future__ import unicode_literals
from toolz import first
import frappe
def get_context(context):
tenant = _get_tenant(_get_customer(frappe.session.user))
context.properties = _get_properties(tenant)
def _get... | [
1,
529,
9507,
29958,
17470,
1793,
29918,
21895,
29914,
17470,
1793,
29918,
21895,
29914,
2676,
29918,
689,
29914,
1482,
29918,
3396,
841,
749,
29914,
1482,
29918,
3396,
841,
749,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
... |
license_plate_images_generator.py | aboerzel/ANPR-keras | 6 | 36046 | import argparse
import json
import os.path
import random
import re
import time
import cv2
import numpy as np
import requests
from PIL import Image
from config import config
class GermanLicensePlateImagesGenerator:
def __init__(self, output):
self.output = output
self.COUNTRY_MARKS = np.asarray([... | [
1,
1053,
1852,
5510,
13,
5215,
4390,
13,
5215,
2897,
29889,
2084,
13,
5215,
4036,
13,
5215,
337,
13,
5215,
931,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
7274,
13,
3166,
349,
6227,
1053,
7084,
13,
13,
3166,
... |
lib/googlecloudsdk/api_lib/compute/daisy_utils.py | bopopescu/Google-Cloud-SDK-1 | 0 | 132131 | <reponame>bopopescu/Google-Cloud-SDK-1
# Copyright 2017 Google Inc. 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
#
# ... | [
1,
529,
276,
1112,
420,
29958,
29890,
459,
459,
267,
4979,
29914,
14207,
29899,
20442,
29899,
26912,
29899,
29896,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
5087,
9266,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
... |
source/blog/migrations/0004_postcomments.py | JakubGutowski/PersonalBlog | 0 | 9743 | <filename>source/blog/migrations/0004_postcomments.py
# Generated by Django 2.0.5 on 2018-07-02 19:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_blogpost_author'),
]
operations = [
... | [
1,
529,
9507,
29958,
4993,
29914,
7312,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29946,
29918,
2490,
21032,
29889,
2272,
13,
29937,
3251,
630,
491,
15337,
29871,
29906,
29889,
29900,
29889,
29945,
373,
29871,
29906,
29900,
29896,
29947,... |
01_strings_interpolacao/04_strings_metodos.py | smartao/estudos_python | 0 | 187075 | #!/usr/bin/python3
import pyperclip
'''
String puras
Podemos inserir um r antes das pastas de inicio em uma string para
transofrmá-la em uma string pura (raw string), com isso a string
ignorará todos os caracteres de scape
'''
print('Exemplo de um string pura:')
print(r'\n\t That is Carlos \'s cat.')
'''
Strings em m... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
5215,
11451,
546,
24049,
13,
12008,
13,
1231,
3708,
294,
13,
29925,
356,
7681,
13534,
381,
1922,
364,
12971,
1697,
4940,
294,
316,
29871,
297,
11088,
953,
3672,
1347,
1702,
13,
3286,
... |
conanfile.py | bincrafters/conan-boost_timer | 0 | 114497 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import python_requires
base = python_requires("boost_base/2.0.0@bincrafters/testing")
class BoostTimerConan(base.BoostBaseConan):
name = "boost_timer"
version = "1.70.0"
@property
def boost_build_requires(self):
return ["io"]
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
378,
550,
1053,
3017,
29918,
276,
339,
2658,
13,
13,
13,
3188,
353,
3017,
29918,
276,
339,... |
tests/sentinel2/test_metadata.py | jamesvrt/stactools | 0 | 172612 | import unittest
from stactools.sentinel2.safe_manifest import SafeManifest
from stactools.sentinel2.product_metadata import ProductMetadata
from stactools.sentinel2.granule_metadata import GranuleMetadata
from tests.utils import TestData
class Sentinel2MetadataTest(unittest.TestCase):
def test_parses_product_me... | [
1,
1053,
443,
27958,
13,
13,
3166,
380,
627,
8789,
29889,
29879,
15440,
295,
29906,
29889,
11177,
29918,
29135,
1053,
5701,
1725,
2517,
7004,
13,
3166,
380,
627,
8789,
29889,
29879,
15440,
295,
29906,
29889,
4704,
29918,
19635,
1053,
1096... |
examples/pull_entry_values.py | c0gnac/dealcloud-python | 1 | 48350 | """
This script pulls the values of the fields for the "Project Genome" entry on
the Deal list
"""
import getpass as gp
import sys
import requests
import dealcloud as dc
# Create an instance of a client for the DealCloud Data Service and a service
# proxy
try:
client = dc.create_client(
... | [
1,
9995,
30004,
13,
4013,
2471,
8206,
29879,
278,
1819,
310,
278,
4235,
363,
278,
376,
7653,
5739,
608,
29908,
6251,
373,
30004,
13,
1552,
897,
284,
1051,
30004,
13,
15945,
19451,
13,
30004,
13,
5215,
679,
3364,
408,
330,
29886,
30004... |
stubs/workspaces.py | claytonbrown/troposphere | 0 | 13640 | <reponame>claytonbrown/troposphere
from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class WorkSpacesWorkspace(AWSObject):
"""# AWS::WorkSpaces::Workspace - CloudFormationResourceSpecification version: 1.4.0
{
"Documenta... | [
1,
529,
276,
1112,
420,
29958,
695,
388,
880,
29890,
4708,
29914,
29873,
307,
1066,
9085,
13,
3166,
869,
1053,
15540,
2061,
29892,
15540,
4854,
13,
3166,
869,
3084,
4097,
1053,
334,
13,
3166,
869,
3075,
1934,
1053,
334,
13,
13,
13,
... |
env/Lib/site-packages/countdowntimer_model/apps.py | gtkacz/fantasytrashtalk | 4 | 29798 | <reponame>gtkacz/fantasytrashtalk
from django.apps import AppConfig
class CountdowntimerModelConfig(AppConfig):
name = 'countdowntimer_model'
| [
1,
529,
276,
1112,
420,
29958,
4141,
29895,
10086,
29914,
29888,
424,
8995,
10678,
400,
2235,
13,
3166,
9557,
29889,
13371,
1053,
2401,
3991,
13,
13,
13,
1990,
3917,
29881,
340,
593,
4193,
3195,
3991,
29898,
2052,
3991,
1125,
13,
1678,
... |
websocket/_abnf.py | benhoyt/websocket-client | 147 | 1611486 | """
"""
"""
_abnf.py
websocket - WebSocket client library for Python
Copyright 2021 engn33r
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... | [
1,
9995,
13,
13,
15945,
29908,
13,
13,
15945,
29908,
13,
29918,
370,
29876,
29888,
29889,
2272,
13,
2676,
11514,
448,
2563,
11373,
3132,
3489,
363,
5132,
13,
13,
11882,
1266,
29871,
29906,
29900,
29906,
29896,
3033,
29876,
29941,
29941,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.