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
pinolo/tasks.py
piger/pinolo
2
41511
# -*- coding: utf-8 -*- """ pinolo.tasks ~~~~~~~~~~~~ A Task object is a `threading.Thread` instance that will be executed without blocking the main thread. This is useful to perform potentially blocking actions like fecthing resources via HTTP. :copyright: (c) 2013 <NAME> :license: BS...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 1678, 12534, 3543, 29889, 20673, 13, 1678, 3695, 26594, 7377, 30022, 13, 13, 1678, 319, 9330, 1203, 338, 263, 421, 7097, 292, 29889, ...
setup.py
danihodovic/django-toolshed
3
17579
<gh_stars>1-10 #!/usr/bin/env python import os import re from setuptools import find_packages, setup def get_version(*file_paths): filename = os.path.join(os.path.dirname(__file__), *file_paths) version_file = open(filename).read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 5215, 2897, 13, 5215, 337, 13, 13, 3166, 731, 21245, 8789, 1053, 1284, 29918, 8318, 29892, 6230, 13, 13, 13,...
src/code/djangotest/migrations/0001_initial.py
jielyu/notebook
2
9220
# Generated by Django 2.2.5 on 2019-10-05 23:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Password', fields=[ ('id', models.IntegerFi...
[ 1, 396, 3251, 630, 491, 15337, 29871, 29906, 29889, 29906, 29889, 29945, 373, 29871, 29906, 29900, 29896, 29929, 29899, 29896, 29900, 29899, 29900, 29945, 29871, 29906, 29941, 29901, 29906, 29906, 13, 13, 3166, 9557, 29889, 2585, 1053, 9725, ...
ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py
genemerewether/fprime
5
2362
<gh_stars>1-10 # # Copyright 2004-2016, by the California Institute of Technology. # ALL RIGHTS RESERVED. United States Government Sponsorship # acknowledged. Any commercial use must be negotiated with the Office # of Technology Transfer at the California Institute of Technology. # # This software may be subj...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 13, 29937, 259, 14187, 1266, 29871, 29906, 29900, 29900, 29946, 29899, 29906, 29900, 29896, 29953, 29892, 491, 278, 8046, 8907, 310, 17968, 29889, 13, 29937, 259...
CodeWars/8 Kyu/Grasshopper - Debug sayHello.py
anubhab-code/Competitive-Programming
0
64924
<filename>CodeWars/8 Kyu/Grasshopper - Debug sayHello.py def say_hello(name): return "Hello, {0}".format(name)
[ 1, 529, 9507, 29958, 3399, 29956, 1503, 29914, 29947, 16931, 29884, 29914, 3338, 465, 1251, 2496, 448, 16171, 1827, 10994, 29889, 2272, 13, 1753, 1827, 29918, 12199, 29898, 978, 1125, 13, 1678, 736, 376, 10994, 29892, 426, 29900, 29913, 1...
Contest/ABC086/d/main.py
mpses/AtCoder
0
35923
#!/usr/bin/env python3 # 2次元累積和 S の [x1, x2) × [y1, y2) 総和 def ac2(s, x1, x2, y1, y2): return s[x2][y2] - s[x1][y2] - s[x2][y1] + s[x1][y1] import numpy as np _, *d = open(0) n, k = map(int, _.split()) B = np.zeros((2*k, 2*k)) for e in d: *z, c = e.split() x, y = map(int, z) B[x % (2*k)][(y + k * (z ==...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 29871, 29906, 30936, 30824, 234, 183, 178, 234, 172, 144, 30503, 317, 29871, 30199, 518, 29916, 29896, 29892, 921, 29906, 29897, 13105, 518, 29891, 29896, 29892, 343, 29906, ...
workspaces/voyage/server/src/util/smartcomponent.py
raychorn/svn_hp-projects
0
81883
##################################################### # # smartcomponent.py # # Copyright 2007 Hewlett-Packard Development Company, L.P. # # Hewlett-Packard and the Hewlett-Packard logo are trademarks of # Hewlett-Packard Development Company, L.P. in the U.S. and/or other countries. # # Confidential computer software. ...
[ 1, 835, 13383, 13383, 13383, 2277, 13, 29937, 13, 29937, 15040, 9700, 29889, 2272, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29900, 29955, 379, 809, 13650, 29899, 16638, 538, 14650, 6938, 29892, 365, 29889, 29925, 29889, 13, ...
test/generic_profiler_test.py
newstzpz/ClassyVision-1
0
130914
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from test.generic.config_utils import get_test_model_configs import torch import torch.nn as nn from c...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 14187, 1266, 313, 29883, 29897, 13327, 29892, 9266, 29889, 322, 967, 23736, 1078, 29889, 13, 29937, 13, 29937, 910, 2752, 775, 338, 7794, 21144, 1090, 278, 341, 1806, 19405...
app/replenishjob.py
RobbieSoutham/DanielBCF
0
192496
from app import database from app.database import Database import datetime from configparser import ConfigParser config = ConfigParser() def rep(): #Get delivery time from config config.read("app/config.ini") del_time = datetime.timedelta(days=int(config.get("Settings", "del_time"))) today = datetime....
[ 1, 515, 623, 1053, 2566, 13, 3166, 623, 29889, 9803, 1053, 5470, 13, 5215, 12865, 13, 3166, 2295, 16680, 1053, 12782, 11726, 13, 13, 2917, 353, 12782, 11726, 580, 13, 13, 1753, 1634, 7295, 13, 1678, 396, 2577, 28289, 931, 515, 2295, ...
ModelServices/eventTriggerOutputDeviceMappingServices.py
tuanldchainos/HcPullData
0
119584
<reponame>tuanldchainos/HcPullData from Repository.eventTriggerOutputDeviceMappingRepo import eventTriggerOutputDeviceMappingRepo from sqlalchemy import Table from sqlalchemy.engine.base import Connection from sqlalchemy.sql.expression import BinaryExpression class eventTriggerOutputDeviceMappingServices(): __even...
[ 1, 529, 276, 1112, 420, 29958, 9161, 273, 430, 14153, 359, 29914, 29950, 29883, 29925, 913, 1469, 13, 3166, 830, 7036, 29889, 3696, 20211, 6466, 11501, 15845, 5612, 29877, 1053, 1741, 20211, 6466, 11501, 15845, 5612, 29877, 13, 3166, 4576...
train/models.py
soymintc/brain_tumor_segmentation_web_service
1
1616968
<reponame>soymintc/brain_tumor_segmentation_web_service<gh_stars>1-10 import os import glob import psutil from django.db import models from django.conf import settings from django.contrib.auth import get_user_model from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator f...
[ 1, 529, 276, 1112, 420, 29958, 578, 962, 524, 29883, 29914, 2634, 262, 29918, 29873, 398, 272, 29918, 28192, 362, 29918, 2676, 29918, 5509, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 13, 5215, 13149...
text/opencv_dnn_detect.py
kingemma/invoice
1,017
39174
<filename>text/opencv_dnn_detect.py from config import yoloCfg,yoloWeights,opencvFlag from config import AngleModelPb,AngleModelPbtxt from config import IMGSIZE from PIL import Image import numpy as np import cv2 if opencvFlag=='keras': ##转换为tf模型,以便GPU调用 import tensorflow as tf from tensorflow.python.platf...
[ 1, 529, 9507, 29958, 726, 29914, 3150, 11023, 29918, 5200, 29876, 29918, 4801, 522, 29889, 2272, 13, 3166, 2295, 1053, 343, 3543, 29907, 16434, 29892, 29891, 3543, 4806, 5861, 29892, 3150, 11023, 21979, 13, 3166, 2295, 1053, 3218, 280, 31...
ooobuild/csslo/view/__init__.py
Amourspirit/ooo_uno_tmpl
0
163570
<reponame>Amourspirit/ooo_uno_tmpl # coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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-...
[ 1, 529, 276, 1112, 420, 29958, 6833, 473, 1028, 14987, 29914, 3634, 29877, 29918, 9447, 29918, 18276, 572, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29906, 584, 4297, 719, ...
laa_court_data_api_app/models/ping.py
ministryofjustice/laa-court-data-api
1
74687
from typing import Optional from pydantic import BaseModel, Field class Ping(BaseModel): app_branch: Optional[str] = Field(None, example='test_branch') build_date: Optional[str] = Field(None, example='02022022') build_tag: Optional[str] = Field(None, example='test') commit_id: Optional[str] = Field(No...
[ 1, 515, 19229, 1053, 28379, 13, 3166, 282, 2941, 7716, 1053, 7399, 3195, 29892, 8989, 13, 13, 13, 1990, 349, 292, 29898, 5160, 3195, 1125, 13, 1678, 623, 29918, 17519, 29901, 28379, 29961, 710, 29962, 353, 8989, 29898, 8516, 29892, 1342...
tests/test_linalg/test_solvers/test_probabilistic_linear_solver/test_symmetric.py
fxbriol/probnum
0
76261
<reponame>fxbriol/probnum """Tests for probabilistic linear solvers applied to symmetric linear systems.""" import pathlib import numpy as np from pytest_cases import parametrize_with_cases from probnum import linops, problems, randvars from probnum.linalg.solvers import ProbabilisticLinearSolver, beliefs case_modul...
[ 1, 529, 276, 1112, 420, 29958, 11093, 29890, 374, 324, 29914, 22795, 1949, 13, 15945, 29908, 24376, 363, 23950, 4695, 5608, 899, 874, 7436, 304, 18348, 5608, 6757, 1213, 15945, 13, 5215, 2224, 1982, 13, 13, 5215, 12655, 408, 7442, 13, ...
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
15
120
# Copyright 2019-present NAVER Corp. # Apache License v2.0 # <NAME> import os, json from copy import deepcopy from matplotlib.pylab import * import torch import torch.nn as nn import torch.nn.functional as F device = torch.device("cuda" if torch.cuda.is_available() else "cpu") from sqlova.utils.utils import topk_...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29929, 29899, 6338, 8598, 5348, 2994, 29886, 29889, 13, 29937, 13380, 19245, 325, 29906, 29889, 29900, 13, 13, 29937, 529, 5813, 29958, 13, 13, 5215, 2897, 29892, 4390, 13, 3166, 3509, 1053...
tests/test_db.py
schmocker/pv-FHNW
1
159902
import pytest from pvtool.db import PvModule, Measurement, MeasurementValues, FlasherData, ManufacturerData, db @pytest.mark.incremental class TestDBModels(object): def test_pv_module_insert(client, init_db): """ GIVEN a database WHEN database is initialized THEN check ...
[ 1, 1053, 11451, 1688, 13, 3166, 282, 29894, 10154, 29889, 2585, 1053, 349, 29894, 7355, 29892, 2191, 3745, 358, 29892, 2191, 3745, 358, 9065, 29892, 21967, 261, 1469, 29892, 2315, 9765, 9945, 1469, 29892, 4833, 13, 13, 13, 29992, 2272, ...
autobahn/wamp/gen/wamp/proto/PublisherFeatures.py
rapyuta-robotics/autobahn-python
1,670
94563
# automatically generated by the FlatBuffers compiler, do not modify # namespace: proto import flatbuffers class PublisherFeatures(object): __slots__ = ['_tab'] @classmethod def GetRootAsPublisherFeatures(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
[ 1, 396, 6336, 5759, 491, 278, 2379, 271, 29933, 3096, 414, 6516, 29892, 437, 451, 6623, 13, 13, 29937, 7397, 29901, 17814, 13, 13, 5215, 12151, 28040, 414, 13, 13, 1990, 12904, 261, 8263, 3698, 29898, 3318, 1125, 13, 1678, 4770, 2536,...
setup.py
initOS/dob-lib
0
78135
import os from setuptools import find_packages, setup def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return f.read() deps = [ "black", "coverage", "debugpy", "flake8", "git-aggregator", "ipython", "isort>=4.3.10", "pylint_odoo", "pyt...
[ 1, 1053, 2897, 13, 13, 3166, 731, 21245, 8789, 1053, 1284, 29918, 8318, 29892, 6230, 13, 13, 13, 1753, 1303, 29898, 29888, 978, 1125, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 2216...
yummyPie.py
BoomBanger/EatPie
0
1610018
import time time.sleep(5) import datetime import os import git import pyglet from pyglet.window import Platform dir = os.path.dirname(os.path.realpath(__file__)) repo = git.cmd.Git(dir) t = -1 lastpull = 0 with open(os.path.join(dir, "dinnerTime.txt"), "r") as f: timestr = f.read() ########################...
[ 1, 1053, 931, 13, 2230, 29889, 17059, 29898, 29945, 29897, 13, 13, 5215, 12865, 13, 5215, 2897, 13, 5215, 6315, 13, 5215, 19484, 1026, 13, 3166, 19484, 1026, 29889, 7165, 1053, 28096, 13, 13, 3972, 353, 2897, 29889, 2084, 29889, 25721, ...
tests/ut/python/dataset/test_datasets_obs_mindrecord.py
httpsgithu/mindspore
1
183851
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29906, 29906, 379, 3357, 26599, 8364, 11763, 3189, 1696, 19806, 30004, 13, 29937, 30004, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 2...
importanize/groups.py
xiachufang/importanize
0
13649
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import itertools import operator from collections import OrderedDict, defaultdict from functools import reduce import six from .formatters import DEFAULT_FORMATTER, DEFAULT_LENGTH from .utils import is_site_package, is_st...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 1596, 29918, 2220, 29892, 29104, 29918, 20889, 1338, 13, 5215, 4256, 8504, 13, 5215, 5455, ...
src/download_dataset.py
thomasreolon/DeepfakeDetection
2
181910
<gh_stars>1-10 import os, pathlib from gdrive import GoogleDriveDownloader as gdd from videoanalizer import VideoAnalizer os.chdir(pathlib.Path(__file__).parent.absolute()) #GDRIVE_CODE = '1La_4SVYRNT8ePgLzZGwlxuY1V9x989DC' # old dataset GDRIVE_CODE = '1djFwp9vLkmOtd65ylXSYYn7C1ju08lJ7' ######## Create Directory & ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 29892, 2224, 1982, 13, 3166, 330, 21594, 1053, 5087, 29928, 4401, 6767, 12657, 408, 330, 1289, 13, 3166, 4863, 7054, 3950, 1053, 13987, 21067, 3950, 13, ...
luxai2021/game/resource.py
nofate090/LuxPythonEnvGym
0
143923
'''Implements /src/Resource/index.ts''' class Resource: ''' Enum implemenation ''' class Types: WOOD = 'wood' COAL = 'coal' URANIUM = 'uranium' def __init__(self, type, amount) -> None: self.type = type self.amount = amount
[ 1, 29871, 13, 12008, 1888, 9711, 847, 4351, 29914, 6848, 29914, 2248, 29889, 1372, 12008, 13, 13, 1990, 18981, 29901, 13, 1678, 14550, 1174, 398, 527, 552, 1527, 362, 14550, 13, 1678, 770, 28025, 29901, 13, 4706, 399, 29949, 13668, 353,...
gocrawl/request.py
stephanebruckert/GoCrawl
0
152916
#!/usr/bin/python import requests from pyquery import PyQuery def stringified_page(url): ''' Request a webpage ''' r = requests.get(url) if r.status_code == 200: return str(PyQuery(r.text)) else: raise Exception(r.status_code)
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 13, 5215, 7274, 13, 3166, 11451, 1972, 1053, 10772, 3010, 13, 13, 13, 1753, 1347, 2164, 29918, 3488, 29898, 2271, 1125, 13, 1678, 14550, 13, 1678, 10729, 263, 24499, 13, 1678, 14550, 13, 1...
cfanalytics/tests/test_affiliatelist.py
raybellwaves/cfanalytics
23
125641
<filename>cfanalytics/tests/test_affiliatelist.py import pytest import requests # HTTP library from . import TestCase class TestAffiliatelist(TestCase): def setUp(self): self.basepath = 'https://map.crossfit.com' self.headers = {'Host': 'map.crossfit.com', 'User-Agent': 'Mozill...
[ 1, 529, 9507, 29958, 6854, 7054, 22026, 29914, 21150, 29914, 1688, 29918, 3470, 2638, 14830, 391, 29889, 2272, 13, 5215, 11451, 1688, 13, 5215, 7274, 396, 7331, 3489, 13, 13, 3166, 869, 1053, 4321, 8259, 13, 13, 13, 1990, 4321, 27867, ...
server/ball_speed_placement.py
Rohansjamadagni/topspin-tracker
2
103678
import sys import cv2 import math import os import json import pandas as pd import numpy as np import json stroke_data = { "data" : [] } stroke_data_ = open('result.json', 'r') stroke_data = json.loads(stroke_data_.read()) print(stroke_data['data']) stroke_data_.close() speed_for_each_stroke = {} def read_coor...
[ 1, 1053, 10876, 13, 5215, 13850, 29906, 13, 5215, 5844, 13, 5215, 2897, 13, 5215, 4390, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 5215, 4390, 13, 13, 25893, 29918, 1272, 353, 426, 13, 1678, 376, 1272, 29908, 584, ...
memsql_loader/api/caller.py
yonglehou/memsql-loader
1
181929
<filename>memsql_loader/api/caller.py import re from memsql_loader.api.exceptions import ApiException from memsql_loader.api.jobs import Jobs from memsql_loader.api.job import Job from memsql_loader.api.tasks import Tasks from memsql_loader.api.task import Task APIS = [ Jobs, Job, Tasks, Task ] __underscorer1 = re.c...
[ 1, 529, 9507, 29958, 29885, 1567, 1519, 29918, 12657, 29914, 2754, 29914, 4804, 261, 29889, 2272, 13, 5215, 337, 13, 13, 3166, 286, 1567, 1519, 29918, 12657, 29889, 2754, 29889, 11739, 29879, 1053, 29749, 2451, 13, 13, 3166, 286, 1567, ...
src/jomiel_kore/version.py
guendto/jomiel-kore
0
29931
<filename>src/jomiel_kore/version.py # # jomiel-kore # # Copyright # 2019-2020 <NAME> # # # SPDX-License-Identifier: Apache-2.0 # """TODO.""" try: # py38+ from importlib.metadata import version as metadata_version from importlib.metadata import PackageNotFoundError except ModuleNotFoundError: from import...
[ 1, 529, 9507, 29958, 4351, 29914, 29926, 290, 709, 29918, 29895, 487, 29914, 3259, 29889, 2272, 13, 29937, 13, 29937, 432, 290, 709, 29899, 29895, 487, 13, 29937, 13, 29937, 14187, 1266, 13, 29937, 259, 29906, 29900, 29896, 29929, 29899, ...
oslo_db/sqlalchemy/enginefacade.py
calsoft-internal/oslo.db-internal
0
68130
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ 1, 396, 1678, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 366, 1122, 13, 29937, 1678, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 887, 1...
transform_docker/server.py
briglx/AzureConvertJson
0
143152
<filename>transform_docker/server.py<gh_stars>0 """HTTP Server to transform json to json using liquid formatter.""" import json import logging import os import uuid from aiohttp import web from liquid import Liquid, filter_manager def generate_guid(): """Generate a UUID string.""" return str(uuid.uuid4()) ...
[ 1, 529, 9507, 29958, 9067, 29918, 14695, 29914, 2974, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 10493, 5656, 304, 4327, 4390, 304, 4390, 773, 23904, 883, 2620, 1213, 15945, 13, 5215, 4390, 13, 5215, 1218...
raiden_client/interfaces/cli_commands/channels.py
s0b0lev/raiden-client-python
3
181743
<filename>raiden_client/interfaces/cli_commands/channels.py from argparse import ArgumentParser, Namespace, _SubParsersAction from raiden_client import Client, utils def configure_parser(arg_parser: ArgumentParser, subparser: _SubParsersAction) -> None: channels = subparser.add_parser("channels", help="Request a...
[ 1, 529, 9507, 29958, 336, 3615, 29918, 4645, 29914, 1639, 8726, 29914, 11303, 29918, 26381, 29914, 305, 12629, 29889, 2272, 13, 3166, 1852, 5510, 1053, 23125, 11726, 29892, 14706, 3535, 29892, 903, 4035, 29925, 1503, 414, 4276, 13, 13, 31...
manimpy/right_angle.py
Jin-Yuhan/manimpy
1
48193
# from @cigar666 # cgnb!!!! from manimlib.imports import * class RightAngle(VGroup): CONFIG = { 'size': 0.25, 'stroke_color': WHITE, 'stroke_width': 3.2, 'fill_color': BLUE, 'fill_opacity': 0.5, 'on_the_right': True, } def __init__(self, corner=ORIGIN, ang...
[ 1, 396, 515, 732, 29883, 335, 279, 29953, 29953, 29953, 13, 29937, 274, 5138, 29890, 6824, 6824, 13, 13, 3166, 767, 326, 1982, 29889, 326, 4011, 1053, 334, 13, 13, 13, 1990, 10428, 19582, 29898, 29963, 4782, 1125, 13, 1678, 8707, 1866...
web_scraper/extract/common.py
rarc41/web_scraper_pro
0
3010
<reponame>rarc41/web_scraper_pro<filename>web_scraper/extract/common.py import yaml __config=None def config(): global __config if not __config: with open('config.yaml', mode='r') as f: __config=yaml.safe_load(f) return __config
[ 1, 529, 276, 1112, 420, 29958, 29878, 5666, 29946, 29896, 29914, 2676, 29918, 1557, 336, 546, 29918, 771, 29966, 9507, 29958, 2676, 29918, 1557, 336, 546, 29914, 21111, 29914, 9435, 29889, 2272, 13, 5215, 343, 8807, 13, 13, 13, 1649, 29...
000-025/p010/inle.py
CDL-Project-Euler/Solutions
3
75509
def checkprime(value: int): factor = 2 sqrt = value ** 0.5 while factor <= sqrt: if value % factor == 0: return False factor += 1 return True def sum_primes_under(n: int): num = 2 sum = 0 while num < n: if checkprime(num): sum += num ...
[ 1, 822, 1423, 10080, 29898, 1767, 29901, 938, 1125, 13, 1678, 7329, 353, 29871, 29906, 13, 1678, 18074, 2273, 353, 995, 3579, 29871, 29900, 29889, 29945, 13, 1678, 1550, 7329, 5277, 18074, 2273, 29901, 13, 4706, 565, 995, 1273, 7329, 12...
sc_utils/dhcp_listener.py
jkulawik/ServiceChecker
0
171543
#!/usr/bin/env python3 """scapy-dhcp-listener.py Listen for DHCP packets using scapy to learn when LAN hosts request IP addresses from DHCP Servers. Copyright (C) 2018 <NAME> https://jcutrer.com/python/scapy-dhcp-listener License Dual MIT, 0BSD Extended by jkulawik, 2020 """ from __future__ import print_function fro...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 15945, 29908, 1557, 27580, 29899, 12744, 6814, 29899, 25894, 29889, 2272, 13, 1293, 264, 363, 360, 29950, 6271, 23912, 773, 885, 27580, 304, 5110, 746, 365, 2190, 29871, 13, 23525...
authz/test/test_obp_helper.py
shivdeep-singh/conversational-ai-chatbot
11
15295
<reponame>shivdeep-singh/conversational-ai-chatbot<gh_stars>10-100 import unittest from zmq_integration_lib import RPCClient, RPCServer import unittest.mock as mock class TestOBPHelper(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def logout(self, mock_zmq): ...
[ 1, 529, 276, 1112, 420, 29958, 845, 440, 24535, 29899, 2976, 29882, 29914, 535, 874, 1288, 29899, 1794, 29899, 13496, 7451, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 443, 27958, 13, 3166, 1...
pkpdapp/pkpdapp/dash_apps/auce_app.py
pkpdapp-team/pkpdapp
4
118826
# # This file is part of PKPDApp (https://github.com/pkpdapp-team/pkpdapp) which # is released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc fr...
[ 1, 396, 13, 29937, 910, 934, 338, 760, 310, 24457, 25014, 2052, 313, 991, 597, 3292, 29889, 510, 29914, 20571, 15926, 932, 29899, 14318, 29914, 20571, 15926, 932, 29897, 607, 13, 29937, 338, 5492, 1090, 278, 350, 7230, 29871, 29941, 298...
descriptor/customer6b.py
ambleacme/decorators-descriptors
78
132319
""" A client with name and e-mail: >>> jack = Customer('<NAME>', '<EMAIL>') >>> jack.full_email() '<NAME> <<EMAIL>>' A client cannot be created with a blank e-mail: >>> joe = Customer('<NAME>', '') Traceback (most recent call last): ... ValueError: 'email' must not be empty >>> joe ...
[ 1, 9995, 13, 29909, 3132, 411, 1024, 322, 321, 29899, 2549, 29901, 13, 13, 1678, 8653, 28015, 353, 21886, 877, 29966, 5813, 29958, 742, 12801, 26862, 6227, 29958, 1495, 13, 1678, 8653, 28015, 29889, 8159, 29918, 5269, 580, 13, 1678, 128...
src/bot.py
shirin1996/PyBot
1
194874
import telebot import os bot = telebot.TeleBot(os.environ['BOT_TOKEN'], parse_mode='HTML')
[ 1, 1053, 4382, 7451, 13, 5215, 2897, 13, 13, 7451, 353, 4382, 7451, 29889, 29911, 6146, 29933, 327, 29898, 359, 29889, 21813, 1839, 29933, 2891, 29918, 4986, 29968, 1430, 7464, 6088, 29918, 8513, 2433, 7020, 1495, 2 ]
SBOL2Excel/utils/sbol2excel.py
abamaj/SBOL-to-Excel
0
7384
import sbol2 import pandas as pd import os import logging from openpyxl import load_workbook from openpyxl.worksheet.table import Table, TableStyleInfo from openpyxl.utils.dataframe import dataframe_to_rows from openpyxl.styles import Font, PatternFill, Border, Side from requests_html import HTMLSession #wasderivedfro...
[ 1, 1053, 269, 2095, 29906, 13, 5215, 11701, 408, 10518, 13, 5215, 2897, 13, 5215, 12183, 13, 3166, 1722, 2272, 15524, 1053, 2254, 29918, 1287, 2909, 13, 3166, 1722, 2272, 15524, 29889, 1287, 9855, 29889, 2371, 1053, 6137, 29892, 6137, 5...
quantization/tensorRT_test.py
Jihunn-Kim/khu_capstone_1
1
108250
<reponame>Jihunn-Kim/khu_capstone_1 import tensorrt as trt import pycuda.driver as cuda import numpy as np import torch import pycuda.autoinit import dataset import model import time # print(dir(trt)) tensorrt_file_name = 'bert.plan' TRT_LOGGER = trt.Logger(trt.Logger.WARNING) trt_runtime = trt.Runtime(TRT_LOGGER) ...
[ 1, 529, 276, 1112, 420, 29958, 29967, 4861, 5963, 29899, 29968, 326, 29914, 29895, 6905, 29918, 5030, 12734, 29918, 29896, 13, 5215, 12489, 2273, 408, 534, 29873, 13, 5215, 282, 11078, 6191, 29889, 9465, 408, 274, 6191, 13, 5215, 12655, ...
dagger/dag_creator/airflow/utils/utils.py
jorgetagle/dagger
5
143709
from pathlib import Path def get_sql_queries(path): sql_queries = {} for query_file in Path(path).glob("*.sql"): with open(query_file, "r") as f: sql_queries[query_file.stem] = f.read() return sql_queries
[ 1, 515, 2224, 1982, 1053, 10802, 13, 13, 13, 1753, 679, 29918, 2850, 29918, 339, 6358, 29898, 2084, 1125, 13, 1678, 4576, 29918, 339, 6358, 353, 6571, 13, 1678, 363, 2346, 29918, 1445, 297, 10802, 29898, 2084, 467, 23705, 703, 10521, ...
action-server/covidflow/actions/action_daily_ci_early_opt_out.py
dialoguemd/covidflow
7
162107
from typing import Any, Dict, List, Text from rasa_sdk import Action, Tracker from rasa_sdk.events import SlotSet from rasa_sdk.executor import CollectingDispatcher from covidflow.constants import CONTINUE_CI_SLOT from covidflow.utils.persistence import cancel_reminder from .lib.log_util import bind_logger ACTION_N...
[ 1, 515, 19229, 1053, 3139, 29892, 360, 919, 29892, 2391, 29892, 3992, 13, 13, 3166, 364, 11290, 29918, 15348, 1053, 9123, 29892, 3201, 4937, 13, 3166, 364, 11290, 29918, 15348, 29889, 13604, 1053, 317, 8276, 2697, 13, 3166, 364, 11290, ...
LambdaFunction/index.py
aws-samples/integrate-amazon-connect-with-smart-on-fhir-backend-services
3
92474
import json, random, string, os, math, time, datetime, dateutil.parser import boto3 from datetime import datetime, timedelta, timezone import logging from FHIRClient import FHIRClient logger = logging.getLogger() logger.setLevel(logging.INFO) ## Establish the connection to SMART on FHIR backend services fhirclient = ...
[ 1, 1053, 4390, 29892, 4036, 29892, 1347, 29892, 2897, 29892, 5844, 29892, 931, 29892, 12865, 29892, 2635, 4422, 29889, 16680, 13, 5215, 289, 3747, 29941, 13, 3166, 12865, 1053, 12865, 29892, 5335, 287, 2554, 29892, 29431, 13, 5215, 12183, ...
app/recipe/tests/test_tags_api.py
leo-hoet/recipe-app-api
0
52291
<gh_stars>0 from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from recipe.tests.test_recipe_api import sample_recipe, sample_tag from core.models import Tag from recipe.serializer...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 21570, 29889, 5150, 1053, 679, 29918, 1792, 29918, 4299, 13, 3166, 9557, 29889, 26045, 1053, 11837, 13, 3166, 9557, 29889, 1688, 1053, 4321, 8259, 13, 13, 3166, 1791, ...
pydis_site/apps/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py
Transfusion/site
700
175151
<filename>pydis_site/apps/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py<gh_stars>100-1000 # Generated by Django 2.1.5 on 2019-01-09 19:50 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('api', '0025_...
[ 1, 529, 9507, 29958, 2272, 2218, 29918, 2746, 29914, 13371, 29914, 2754, 29914, 26983, 800, 29914, 29900, 29900, 29906, 29953, 29918, 1509, 29918, 771, 546, 29918, 4381, 29918, 1454, 29918, 7192, 13857, 29918, 7851, 291, 29918, 1256, 29889, ...
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
33
2538
<gh_stars>10-100 _base_ = "./FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py" OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/16_36WoodBlock" DATASETS = dict(TRA...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29918, 3188, 29918, 353, 376, 6904, 17907, 6779, 29945, 29896, 29906, 29918, 29896, 29889, 29945, 29909, 688, 29907, 359, 29891, 6344, 11787, 764, 29918, ...
sources/args.py
NougatCA/SPT-Code
10
129158
<reponame>NougatCA/SPT-Code import dataclasses from dataclasses import dataclass, field import os import enums @dataclass class RuntimeArguments: """Arguments for runtime.""" do_pre_train: bool = field( default=False, metadata={'action': 'store_true', 'help': 'Whether to pr...
[ 1, 529, 276, 1112, 420, 29958, 29940, 692, 271, 5454, 29914, 5550, 29911, 29899, 3399, 13, 13, 5215, 848, 13203, 13, 3166, 848, 13203, 1053, 848, 1990, 29892, 1746, 13, 5215, 2897, 13, 5215, 427, 6762, 13, 13, 13, 29992, 1272, 1990, ...
{{cookiecutter.project_hyphen}}/{{cookiecutter.project_slug}}/__init__.py
zhangxianbing/cookiecutter-pypackage
1
9816
"""{{ cookiecutter.project_name }} - {{ cookiecutter.project_short_description }}""" __version__ = "{{ cookiecutter.project_version }}" __author__ = """{{ cookiecutter.author_name }}""" __email__ = "{{ cookiecutter.author_email }}" prog_name = "{{ cookiecutter.project_hyphen }}"
[ 1, 9995, 6224, 15327, 29883, 6463, 29889, 4836, 29918, 978, 9156, 448, 8620, 15327, 29883, 6463, 29889, 4836, 29918, 12759, 29918, 8216, 500, 5038, 15945, 13, 13, 1649, 3259, 1649, 353, 376, 6224, 15327, 29883, 6463, 29889, 4836, 29918, 3...
hummingbot/connector/exchange/k2/k2_in_flight_order.py
d3alek/hummingbot
0
26659
<reponame>d3alek/hummingbot<filename>hummingbot/connector/exchange/k2/k2_in_flight_order.py<gh_stars>0 import asyncio from decimal import Decimal from typing import ( Any, Dict, Optional, ) from hummingbot.connector.exchange.k2.k2_utils import convert_from_exchange_trading_pair from hummingbot.connector.i...
[ 1, 529, 276, 1112, 420, 29958, 29881, 29941, 744, 29895, 29914, 16063, 4056, 7451, 29966, 9507, 29958, 16063, 4056, 7451, 29914, 11958, 2801, 29914, 6543, 29914, 29895, 29906, 29914, 29895, 29906, 29918, 262, 29918, 1579, 523, 29918, 2098, ...
api.py
mr-mixas/Nested-Diff-RESTful
0
39193
<filename>api.py # -*- coding: utf-8 -*- # # Copyright 2021 <NAME> # # 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 ap...
[ 1, 529, 9507, 29958, 2754, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 529, 5813, 29958, 13, 29937, 13, 29937, 10413,...
experiments/messaging/pyuv/pyuv_server.py
chartbeat-labs/wade
16
74009
<reponame>chartbeat-labs/wade<gh_stars>10-100 import time import signal import pyuv import msgpack count = 0 st_time = 0 packer = msgpack.Packer() unpacker = msgpack.Unpacker() def on_read(client, data, error): if data is None: client.close() clients.remove(client) return unpacke...
[ 1, 529, 276, 1112, 420, 29958, 15425, 915, 271, 29899, 29880, 6897, 29914, 29893, 1943, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 13, 5215, 931, 13, 13, 5215, 7182, 13, 5215, 11451, 4090, 13, 5...
scripts/benchmarking/parallel_benchmark.py
BerkeleyAutomation/pyhull
69
187898
<reponame>BerkeleyAutomation/pyhull #!/usr/bin/env python """ TODO: Change the module doc. """ from __future__ import division __author__ = "<NAME>" __version__ = "0.1" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" __status__ = "Beta" __date__ = "11/19/12" from multiprocessing import Pool import numpy as np fro...
[ 1, 529, 276, 1112, 420, 29958, 17104, 27279, 28451, 362, 29914, 2272, 29882, 913, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 13, 4986, 3970, 29901, 10726, 278, 3883, 1574, 29889, 13, 15945, 29908, 13, ...
addons14/project_timeline/tests/__init__.py
odoochain/addons_oca
1
166723
from . import test_project_timeline
[ 1, 515, 869, 1053, 1243, 29918, 4836, 29918, 9346, 5570, 13, 2 ]
computational-linguistics/LSTM-POS-tagger/main.py
sangeet2020/ws-20-21
0
89208
<reponame>sangeet2020/ws-20-21 #!/usr/bin/python3 # -*- coding: utf-8 -*- # @Author: <NAME> # @Date: 2021-03-08 18:19:28 # @Email: <EMAIL> # @Organization: Universität des Saarlandes # @Last Modified time: 2021-03-15 23:28:47 """ LSTM based POS tagger """ import os import io import sys import pdb import nltk i...
[ 1, 529, 276, 1112, 420, 29958, 29879, 927, 300, 29906, 29900, 29906, 29900, 29914, 5652, 29899, 29906, 29900, 29899, 29906, 29896, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 2...
ihan/__init__.py
marklit/ihan
0
173734
<reponame>marklit/ihan<gh_stars>0 from __future__ import print_function from itertools import chain, islice import json from os.path import expanduser, join from random import randint import subprocess import sys from time import sleep import requests def eprint(*args, **kwargs): print(*args, file=sys....
[ 1, 529, 276, 1112, 420, 29958, 3502, 19411, 29914, 4861, 273, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 3166, 259, 4256, 8504, 1053, 9704, 29892, 338, 5897, 13, 521...
prediction/rawDataReader.py
garagonc/optimization-framework
0
138484
<filename>prediction/rawDataReader.py """ Created on Okt 04 13:51 2018 @author: nishit """ import datetime import os import time from senml import senml from utils_intern.messageLogger import MessageLogger logger = MessageLogger.get_logger_parent() class RawDataReader: @staticmethod def read_from_file(fil...
[ 1, 529, 9507, 29958, 11965, 2463, 29914, 1610, 1469, 6982, 29889, 2272, 13, 15945, 29908, 13, 20399, 373, 438, 1193, 29871, 29900, 29946, 29871, 29896, 29941, 29901, 29945, 29896, 29871, 29906, 29900, 29896, 29947, 13, 13, 29992, 8921, 2990...
rasa/utils/io.py
chws0508/rasa
0
133978
import asyncio import filecmp import logging import os import pickle import tempfile import warnings import re from asyncio import AbstractEventLoop from pathlib import Path from typing import Text, Any, Union, List, Type, Callable, TYPE_CHECKING, Pattern import rasa.shared.constants import rasa.shared.utils.io if TY...
[ 1, 1053, 408, 948, 3934, 13, 5215, 934, 21058, 13, 5215, 12183, 13, 5215, 2897, 13, 5215, 5839, 280, 13, 5215, 5694, 1445, 13, 5215, 18116, 13, 5215, 337, 13, 3166, 408, 948, 3934, 1053, 25513, 2624, 18405, 13, 3166, 2224, 1982, 105...
mosaic_letter.py
ryhoh/mosaicDesigner_py
0
88866
<gh_stars>0 ''' mosaic_letter.py Created by <NAME> on 2018/01/04. Copyright © 2018年 <NAME>. All rights reserved. モザイク文字画像の情報を持つクラス - フィールド - colors 整数リスト:使用するカラーコード(背景,色1,色2) - gridSize 整数:モザイクのグリッドの大きさ - grid_parameter np配列:背景の部分を0,色ありの部分を1で表現 - grid_pattern n...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 12008, 13, 1678, 286, 3628, 293, 29918, 15670, 29889, 2272, 13, 13, 1678, 6760, 630, 491, 529, 5813, 29958, 373, 29871, 29906, 29900, 29896, 29947, 29914, 29900, 29896, 29914, 29900, 2994...
qualtrics/share.py
anhiancheong/topics_evaluation
0
196153
<gh_stars>0 import argparse import json import requests API_KEY = "<KEY>" ENDPOINT = "https://iad1.qualtrics.com/API/v3" users = [ "UR_56juIFbMBWLU9jo", "UR_bIMXWqoIF8GNR7E", "UR_4O2EvhVhx5UVoQS" ] survey_ids = [ "SV_ezlYrHXuI4oxV8W", "SV_0Va3pTzbIGiS8tM", "SV_50zRZfCRm5wvvxA", "SV_80...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 13, 13, 5215, 1852, 5510, 13, 5215, 4390, 13, 5215, 7274, 13, 13, 8787, 29918, 10818, 353, 9872, 10818, 11903, 13, 13, 1430, 11191, 6992, 29911, 353, 376, 991, 597, 29875, 328, 29896,...
tests/test_client.py
nyush-se-spring2021-forum/OurTieba
0
22001
<gh_stars>0 class TestClient: """ Test before_request and after_request decorators in __init__.py. """ def test_1(self, client): # disallowed methods res = client.put("/") assert res.status_code == 405 assert b"Method Not Allowed" in res.content res = client.options("/...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1990, 4321, 4032, 29901, 13, 1678, 9995, 13, 1678, 4321, 1434, 29918, 3827, 322, 1156, 29918, 3827, 10200, 4097, 297, 4770, 2344, 26914, 2272, 29889, 13, 1678, 9995, 13, 13, 1678, 822, ...
qemu/scripts/codeconverter/codeconverter/test_patching.py
hyunjoy/scripts
44
9469
# Copyright (C) 2020 Red Hat Inc. # # Authors: # <NAME> <<EMAIL>> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from tempfile import NamedTemporaryFile from .patching import FileInfo, FileMatch, Patch, FileList from .regexps import * class Bas...
[ 1, 396, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29906, 29900, 4367, 25966, 9266, 29889, 13, 29937, 13, 29937, 13189, 943, 29901, 13, 29937, 29871, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 910, 664, 338...
wbia_cnn/netrun.py
WildMeOrg/wbia-plugin-cnn
0
31590
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" FIXME: sometimes you have to chown -R user:user ~/.theano or run with sudo the first time after roboot, otherwise you get errors CommandLineHelp: python -m wbia_cnn --tf netrun <networkmodel> --dataset, --ds = <dstag>:<subtag> dstag is the main da...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29878, 15945, 29908, 13, 25634, 2303, 29901, 13, 1678, 6041, 366, 505, 304, 521, 776, 448, 29934, 1404...
upcfcardsearch/c133.py
ProfessorSean/Kasutamaiza
0
1615344
import discord from discord.ext import commands from discord.utils import get class c133(commands.Cog, name="c133"): def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(name='Cyberse-Cop', aliases=['c133']) async def example_embed(self, ctx): embed = discord.Embed(title...
[ 1, 1053, 2313, 536, 13, 3166, 2313, 536, 29889, 1062, 1053, 8260, 13, 3166, 2313, 536, 29889, 13239, 1053, 679, 13, 13, 1990, 274, 29896, 29941, 29941, 29898, 26381, 29889, 29907, 468, 29892, 1024, 543, 29883, 29896, 29941, 29941, 29908, ...
cs15211/StoneGame.py
JulyKikuAkita/PythonPrac
1
29901
<gh_stars>1-10 __source__ = 'https://leetcode.com/problems/stone-game/' # Time: O() # Space: O() # # Description: Leetcode # 877. Stone Game # # Alex and Lee play a game with piles of stones. # There are an even number of piles arranged in a row, # and each pile has a positive integer number of stones piles[i]. # # Th...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1649, 4993, 1649, 353, 525, 991, 597, 280, 300, 401, 29889, 510, 29914, 17199, 29879, 29914, 12734, 29899, 11802, 22208, 13, 29937, 5974, 29901, 29871, 438, 580, 13, ...
Python/_old/Euler048.py
sosheskaz/Project-Euler
0
169137
#!/usr/bin/env python3 def main(): s = 0 for j in range(1, 1001): s += j ** j print(str(s)[-10:]) if __name__ == '__main__': main()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 1753, 1667, 7295, 13, 1678, 269, 353, 29871, 29900, 13, 1678, 363, 432, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29900, 29900, 29896, 1125, 13, 4706, 269, 4619, 432, 3579, ...
eutl_database/DataAccessLayer.py
jabrell/eutl_scraper
0
167247
<gh_stars>0 from getpass import getpass from sqlalchemy.exc import ProgrammingError from sqlalchemy.inspection import inspect from .model import Base from sqlalchemy import create_engine, MetaData from sqlalchemy.orm import sessionmaker from io import StringIO import csv class DataAccessLayer: """Class managing d...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 679, 3364, 1053, 679, 3364, 13, 3166, 4576, 284, 305, 6764, 29889, 735, 29883, 1053, 7835, 4056, 2392, 13, 3166, 4576, 284, 305, 6764, 29889, 1144, 27988, 1053, 16096, 13, 3166, ...
configs/m4c/m4c_textvqa.py
inspur-hsslab/iMIX
23
174565
_base_ = [ '../_base_/datasets/textvqa_dataset.py', '../_base_/models/m4c_config.py', '../_base_/schedules/schedule_textvqa.py', '../_base_/textvqa_default_runtime.py' ] # yapf:disable
[ 1, 903, 3188, 29918, 353, 518, 13, 1678, 525, 6995, 29918, 3188, 29918, 29914, 14538, 1691, 29914, 726, 29894, 25621, 29918, 24713, 29889, 2272, 742, 13, 1678, 525, 6995, 29918, 3188, 29918, 29914, 9794, 29914, 29885, 29946, 29883, 29918, ...
leetcode/python/841_keys_and_rooms.py
VVKot/leetcode-solutions
4
198838
<filename>leetcode/python/841_keys_and_rooms.py class Solution: def canVisitAllRooms(self, rooms): stack = [0] visited = set(stack) while stack: curr = stack.pop() for room in rooms[curr]: if room not in visited: stack.append(room) ...
[ 1, 529, 9507, 29958, 280, 300, 401, 29914, 4691, 29914, 29947, 29946, 29896, 29918, 8149, 29918, 392, 29918, 18901, 29889, 2272, 13, 1990, 24380, 29901, 13, 1678, 822, 508, 6116, 277, 3596, 9588, 4835, 29898, 1311, 29892, 19600, 1125, 13,...
ChatBot/chatbot_search/chatbot_tfserving/indexAnnoy.py
yongzhuo/nlp_xiaojiang
1,379
144409
<reponame>yongzhuo/nlp_xiaojiang<filename>ChatBot/chatbot_search/chatbot_tfserving/indexAnnoy.py # !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2021/4/18 21:04 # @author : Mo # @function: annoy search from annoy import AnnoyIndex import numpy as np import os class AnnoySearch: def __init__(self, dim=7...
[ 1, 529, 276, 1112, 420, 29958, 29891, 549, 29920, 6905, 29877, 29914, 12938, 29886, 29918, 29916, 29653, 2397, 574, 29966, 9507, 29958, 1451, 271, 29933, 327, 29914, 13496, 7451, 29918, 4478, 29914, 13496, 7451, 29918, 13264, 643, 1747, 299...
utils/regression/classes/module_run.py
noahsherrill/force-riscv
111
1613424
<gh_stars>100-1000 # # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 13, 29937, 14187, 1266, 313, 29907, 29897, 518, 29906, 29900, 29906, 29900, 29962, 16367, 26599, 8364, 11763, 29892, 9266, 29889, 13, ...
endpoints/bookstore-grpc/bookstore.py
bxue16/bx_byte1
4
177638
# Copyright 2016 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 # # Unless required by applicable law or a...
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29953, 5087, 9266, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 19...
linekey.py
alex-west-met-office/IMBS_MO
1
19926
''' A module for defining and producing the linekey object, which is used to determine and store information about data format in a CRREL ice mass balance buoy.''' class linekey: def __init__(self,date_index = 0): self.date_index = date_index self.value_index = [] self.phenomena_names = [...
[ 1, 14550, 319, 3883, 363, 16184, 322, 20811, 278, 1196, 1989, 1203, 29892, 607, 338, 1304, 29871, 13, 517, 8161, 322, 3787, 2472, 1048, 848, 3402, 297, 263, 15600, 1525, 29931, 29871, 13, 625, 4158, 17346, 1321, 12602, 29889, 12008, 13,...
test_motor.py
ankworld/Rpi_Therapy
0
98410
<reponame>ankworld/Rpi_Therapy<filename>test_motor.py from myLib import controlcore from time import sleep motor = controlcore.Motor(11, 13, 1000) dc = 100 for i in range(10): motor.l_drive(dc) sleep(5) motor.r_drive(dc) sleep(5)
[ 1, 529, 276, 1112, 420, 29958, 804, 11526, 29914, 29934, 1631, 29918, 1349, 261, 27580, 29966, 9507, 29958, 1688, 29918, 14817, 272, 29889, 2272, 13, 3166, 590, 14868, 1053, 2761, 3221, 13, 3166, 931, 1053, 8709, 13, 13, 14817, 272, 353...
train.py
Mario-Medvedovic/deepPhosAPI
0
71287
<gh_stars>0 import functools import itertools import os import random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np from sklearn import metrics from sklearn import preprocessing from sklearn.model_selection import train_test_split, KFold, cross_val_score from keras.layers ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2090, 312, 8789, 13, 5215, 4256, 8504, 13, 5215, 2897, 13, 5215, 4036, 13, 13, 5215, 22889, 13, 2922, 17357, 29889, 1509, 877, 29909, 1505, 1495, 13, 5215, 22889, 29889, 2272, 5...
data_scripts/data_loader.py
luis-armando-perez-rey/renderSHREC2021
0
167885
<filename>data_scripts/data_loader.py import os import h5py import numpy as np from data_scripts.factor_dataset import FactorImageDataset AVAILABLE_COLLECTIONS = ["Shape", "Culture"] AVAILABLE_DATA_TYPES = ["train", "test"] def load_factor_data(data, root_path=None, **kwargs): options_dict = { "shrec2021...
[ 1, 529, 9507, 29958, 1272, 29918, 16713, 29914, 1272, 29918, 12657, 29889, 2272, 13, 5215, 2897, 13, 5215, 298, 29945, 2272, 13, 5215, 12655, 408, 7442, 13, 3166, 848, 29918, 16713, 29889, 19790, 29918, 24713, 1053, 383, 7168, 2940, 16390...
causal_discovery/graph_fitting.py
codeaudit/ENCO
0
176412
import torch import torch.nn.functional as F import numpy as np import math import random import sys sys.path.append("../") from causal_graphs.variable_distributions import _random_categ from causal_discovery.datasets import InterventionalDataset class GraphFitting(object): def __init__(self, model, graph, num_...
[ 1, 1053, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 5215, 12655, 408, 7442, 13, 5215, 5844, 13, 5215, 4036, 13, 5215, 10876, 13, 9675, 29889, 2084, 29889, 4397, 703, 6995, 1159, 13, 13, 3166, 3269, ...
modeling/player/load.py
cpratim/Fantasy-Predictions
0
62804
<gh_stars>0 import numpy as np from helpers import * from config import * def load_xy(player): player = '_'.join([l.lower() for l in player.split(' ')]) X, y = [], [] stats_record = load_json(f'{player_dir}/{player}.json') for season, stats in stats_record.items(): X.append(int(season[-...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 12655, 408, 7442, 13, 3166, 1371, 414, 1053, 334, 13, 3166, 2295, 1053, 334, 13, 13, 13, 1753, 2254, 29918, 3594, 29898, 9106, 1125, 13, 13, 1678, 4847, 353, 22868, 4286, 7122, ...
Docker image/pdx-analysis-workflows/JAX_RNA/picard_alignment/picard_alignment_metrics.py
BorisYourich/EurOPDX-Galaxy
0
86632
#! /usr/bin/env python """ Picard Alignment Metrics. Version: 0.1.1 """ from __future__ import print_function import argparse import os import shutil import sys def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('files', nargs='+', help="The file[s] to use.") ...
[ 1, 396, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 29925, 293, 538, 838, 10194, 4737, 10817, 29889, 13, 6594, 29901, 29871, 29900, 29889, 29896, 29889, 29896, 13, 15945, 29908, 13, 13, 3166, 4770, 29888, 9130,...
tests/color_threshold.py
hunterjsb/CalculateArea
0
154545
import numpy as np from calculatearea import AreaEstimator from math import sqrt area_estimator = AreaEstimator(filename='rancho_rd.jpg', # name of the image in the directory color_range=((0, 0, 118), (100, 100, 255)), default_area_color=(255, 20, 160)) ...
[ 1, 1053, 12655, 408, 7442, 13, 13, 3166, 8147, 6203, 1053, 18320, 12787, 326, 1061, 13, 3166, 5844, 1053, 18074, 2273, 13, 13, 6203, 29918, 342, 326, 1061, 353, 18320, 12787, 326, 1061, 29898, 9507, 2433, 661, 1859, 29918, 5499, 29889, ...
corehq/apps/users/bulkupload.py
dborowiecki/commcare-hq
0
90465
import logging import uuid from django import forms from django.conf import settings from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.utils.translation import ugettext as _ from couchdbkit.exceptions import ( BulkSaveError, MultipleResultsFound, ...
[ 1, 1053, 12183, 13, 5215, 318, 5416, 13, 13, 3166, 9557, 1053, 7190, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 3221, 29889, 11739, 29879, 1053, 15758, 362, 2392, 13, 3166, 9557, 29889, 3221, 29889, 3084, 4097, 1053...
train_xgboost.py
mmcenta/missing-link
0
141824
<filename>train_xgboost.py import pickle import argparse import numpy as np import xgboost as xgb from xgboost.sklearn import XGBClassifier from sklearn.metrics import accuracy_score from util.dataset_io import load_dataset parser = argparse.ArgumentParser(description='Train a xgboost model.') parser.add_argument('-...
[ 1, 529, 9507, 29958, 14968, 29918, 29916, 29887, 17079, 29889, 2272, 13, 5215, 5839, 280, 13, 5215, 1852, 5510, 13, 5215, 12655, 408, 7442, 13, 5215, 921, 29887, 17079, 408, 921, 26300, 13, 3166, 921, 29887, 17079, 29889, 808, 19668, 10...
merger.py
lorabit/workspace_merger
0
178069
from shutil import copy2 from os import path, remove from random import randint import argparse class WorkspaceReader: def __init__(self, fname): self.maven_jars = [] self.java_libraries = [] module_name = 'tmp'+str(randint(1000,9999)) new_name = path.join(path.dirname(__file__), m...
[ 1, 515, 528, 4422, 1053, 3509, 29906, 13, 3166, 2897, 1053, 2224, 29892, 3349, 13, 3166, 4036, 1053, 20088, 524, 13, 5215, 1852, 5510, 13, 13, 13, 1990, 5244, 3493, 6982, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 285, 978,...
suites/DatabaseApi/SideChainEthereum.py
dbulka/pytests
0
137996
<gh_stars>0 # -*- coding: utf-8 -*- import lemoncheesecake.api as lcc @lcc.suite("SideChainEthereum") class SideChainEthereum: pass
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 5215, 454, 3712, 1173, 267, 687, 1296, 29889, 2754, 408, 301, 617, 13, 13, 13, 29992, 29880, 617, 298...
authentik/policies/password/models.py
BeryJu/passbook
15
175958
"""user field matcher models""" import re from django.db import models from django.utils.translation import gettext as _ from rest_framework.serializers import BaseSerializer from structlog.stdlib import get_logger from authentik.policies.models import Policy from authentik.policies.types import PolicyRequest, Policy...
[ 1, 9995, 1792, 1746, 1993, 261, 4733, 15945, 29908, 13, 5215, 337, 13, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 679, 726, 408, 903, 13, 3166, 1791, 29918, 4468, 29889, 15550, 19427...
Database/splParser/databaseconnection.py
snapmeds/snapmeds
1
134492
# -*- coding: utf-8 -*- import urllib2, urllib import drug def write_to_database(drug): mydata = get_array_of_tuples_from_drug(drug) mydata = mydata + [("username","YOURUSERNAMEHERE"),("password","<PASSWORD>")] mydata=urllib.urlencode(mydata) print mydata path='YOURDATABASEURL' req=ur...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 30004, 13, 5215, 3142, 1982, 29906, 29892, 3142, 1982, 30004, 13, 5215, 15721, 30004, 13, 1753, 2436, 29918, 517, 29918, 9803, 29898, 29881, 11124, ...
dpkt/vrrp.py
lkash/test
0
164732
<gh_stars>0 # $Id: vrrp.py 88 2013-03-05 19:43:17Z <EMAIL> $ # -*- coding: utf-8 -*- """Virtual Router Redundancy Protocol.""" import dpkt from decorators import deprecated class VRRP(dpkt.Packet): __hdr__ = ( ('_v_type', 'B', 0x21), ('vrid', 'B', 0), ('priority', 'B', 0), ('count...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 395, 1204, 29901, 11723, 19080, 29889, 2272, 29871, 29947, 29947, 29871, 29906, 29900, 29896, 29941, 29899, 29900, 29941, 29899, 29900, 29945, 29871, 29896, 29929, 29901, 29946, 29941, ...
projeto_sensorino.py
rafaelbeloduarte/leitor_arduino
0
81251
# -*- coding: utf-8 -*- import tkinter import serial import serial.tools.list_ports import threading from tkinter import filedialog from tkinter import * import sys import os from tkinter import messagebox from tkinter.scrolledtext import ScrolledText import matplotlib.pyplot as plt import matplotlib.animat...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 5215, 18883, 1639, 30004, 13, 5215, 7797, 30004, 13, 5215, 7797, 29889, 8504, 29889, 1761, 29918, 4011, 30004, 13, 5215, 3244, 292, 30004, 13, 316...
Chapter 8 - Functions & Recursion/04_factorial.py
alex-dsouza777/Python-Basics
0
86100
<reponame>alex-dsouza777/Python-Basics #n! = 1 * 2 * 3 * 4 ..... * n #n! = [1 * 2 * 3 * 4 ..... n-1]* n #n! = n * (n-1)! # n = 7 # product = 1 # for i in range(n): # product = product * (i+1) # print(product) def factorial_iter(n): product = 1 for i in range(n): product = product * (i+1) retu...
[ 1, 529, 276, 1112, 420, 29958, 744, 29916, 29899, 6289, 283, 1362, 29955, 29955, 29955, 29914, 11980, 29899, 9496, 1199, 13, 29937, 29876, 29991, 353, 29871, 29896, 334, 29871, 29906, 334, 29871, 29941, 334, 29871, 29946, 6317, 856, 334, ...
pythonfiles/testing.py
amrut-prabhu/loan-default-prediction
2
23179
import numpy as np import pandas as pd from sklearn.externals import joblib #from sklearn.ensemble import RandomForestRegressor #from sklearn.multioutput import MultiOutputRegressor #from sklearn.multioutput import MultiOutputRegressor from sklearn.model_selection import train_test_split df = pd.read_csv('https://dr...
[ 1, 1053, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 2071, 19668, 29889, 735, 725, 1338, 1053, 4982, 1982, 13, 29937, 3166, 2071, 19668, 29889, 24031, 1053, 16968, 2831, 342, 4597, 1253, 272, 13, 29937, 3166, 2071, 19668, 2...
client/cryptog.py
yoelbassin/chat
8
77531
<gh_stars>1-10 import const import config import rsa from cryptography.fernet import Fernet def key_ex(): config.client.send((const.public_key + str(config.public_key.n) + ' ' + str(config.public_key.e)).encode()) def send_symmetric_key(): self_id = int(''.join([str(ord(c)) for c in config.uname])) dst_...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 1040, 13, 5215, 2295, 13, 5215, 364, 4977, 13, 3166, 24941, 5275, 29889, 571, 1212, 1053, 7139, 300, 13, 13, 13, 1753, 1820, 29918, 735, 7295, 13, 1678, 229...
qgenda/pipeline/pre.py
jjorissen52/python-qgenda
2
1601888
import time from qgenda import helpers def gzip_headers(method_self, caller=None, params=None): if caller not in method_self.gzip_safe: use_gzip = params.pop('gzip', False) params['headers'] = method_self.headers if use_gzip else { key: value for key, value in method_self.headers.item...
[ 1, 1053, 931, 13, 13, 3166, 3855, 29887, 8395, 1053, 1371, 414, 13, 13, 13, 1753, 330, 7554, 29918, 13662, 29898, 5696, 29918, 1311, 29892, 24959, 29922, 8516, 29892, 8636, 29922, 8516, 1125, 13, 1678, 565, 24959, 451, 297, 1158, 29918,...
ngallery/core/services/solana.py
manti-by/ngallery
0
127454
from django.conf import settings from solana.rpc.api import Client solana_client = Client(settings.SOLANA_NETWORK_URL)
[ 1, 515, 9557, 29889, 5527, 1053, 6055, 13, 3166, 899, 1648, 29889, 29878, 6739, 29889, 2754, 1053, 12477, 13, 13, 2929, 1648, 29918, 4645, 353, 12477, 29898, 11027, 29889, 29903, 5607, 2190, 29909, 29918, 6006, 11686, 29968, 29918, 4219, ...
model.py
FutureCoderme/week5_heroku
0
125841
<filename>model.py import pandas as pan import pickle from sklearn.linear_model import LinearRegression data = pan.read_excel('BP_simple_data.xlsx') x1 = data.iloc[:,1:] x2 = data.iloc[:,0:1] reg = LinearRegression() reg.fit(x1,x2) prediction = reg.predict(x1) pickle.dump(reg, open('model.pkl','wb'))
[ 1, 529, 9507, 29958, 4299, 29889, 2272, 13, 5215, 11701, 408, 7243, 13, 5215, 5839, 280, 13, 3166, 2071, 19668, 29889, 10660, 29918, 4299, 1053, 22985, 4597, 23881, 13, 13, 1272, 353, 7243, 29889, 949, 29918, 24633, 877, 29933, 29925, 2...
fetch_data.py
bitfag/bt-macd-binance
0
3815
<gh_stars>0 #!/usr/bin/env python from btmacd.binance_fetcher import BinanceFetcher def main(): fetcher = BinanceFetcher("BTCUSDT", filename="binance_ohlc.csv", start_date="01.01.2018") fetcher.fetch() if __name__ == "__main__": main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 3166, 289, 29873, 8628, 29881, 29889, 2109, 749, 29918, 9155, 261, 1053, 27662, 749, 20927, 261, 13, 13, 13, 1753, 1667, 7295...
background_task/models_completed.py
AMRivkin/django-background-tasks
0
1617853
<gh_stars>0 # -*- coding: utf-8 -*- import os from compat.models import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils import timezone from django.utils.six import python_2_unicode_compatible from background_task.models import Task class ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 5215, 2897, 13, 13, 3166, 10007, 29889, 9794, 1053, 3251, 293, 27755, 2558, 13, 3166, 9557, 29889, 2157...
app.py
CosteaPaul/strokeCoach_falsk
0
120146
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def upload(): return render_template('upload.html') @app.route('/uploader', methods = ['GET', 'POST']) def upload_file(): if request.method == 'POST': f = request.files['file'] #f.save(secure_filename(f.filename...
[ 1, 515, 29784, 1053, 2379, 1278, 29892, 4050, 29918, 6886, 29892, 2009, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 1753, 6441, 7295, 13, 259, 736, 4050, 29918, 6886, 877, ...
utils/state.py
DeWa/PiBooth
1
90550
<filename>utils/state.py class State: state = {} @staticmethod def init(): State.state = { "lowres_frames": None, "highres_frames": None, "photopath": "", "frame": 0, "current_photo": None, "share_code": "", "previe...
[ 1, 529, 9507, 29958, 13239, 29914, 3859, 29889, 2272, 13, 1990, 4306, 29901, 13, 1678, 2106, 353, 6571, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 2069, 7295, 13, 4706, 4306, 29889, 3859, 353, 426, 13, 9651, 376, 677, 690, 29918, ...
andes/models/dc/__init__.py
cuihantao/Andes
16
86876
""" DC models. """ from andes.models.dc.ground import Ground # NOQA from andes.models.dc.node import Node # noqa from andes.models.dc.rlc import R, L, C, RCp, RLCp, RLCs, RCs, RLs # noqa
[ 1, 9995, 13, 12696, 4733, 29889, 13, 15945, 29908, 13, 13, 3166, 322, 267, 29889, 9794, 29889, 13891, 29889, 2057, 1053, 1632, 618, 29871, 396, 11698, 29984, 29909, 13, 3166, 322, 267, 29889, 9794, 29889, 13891, 29889, 3177, 1053, 9071, ...