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
tests/test_win_app.py
koyoki/Airtest
6,140
28502
# encoding=utf-8 from airtest.core.win import Windows import unittest import numpy import time from testconf import try_remove SNAPSHOT = "win_snapshot.png" class TestWin(unittest.TestCase): @classmethod def setUpClass(cls): w = Windows() w.start_app("calc") time.sleep(1) cl...
[ 1, 396, 8025, 29922, 9420, 29899, 29947, 13, 3166, 4799, 1688, 29889, 3221, 29889, 5080, 1053, 3852, 13, 5215, 443, 27958, 13, 5215, 12655, 13, 5215, 931, 13, 3166, 1243, 5527, 1053, 1018, 29918, 5992, 13, 13, 13, 19296, 3301, 7068, 2...
tools/rest_integration_test.py
osrf/cloudsim-legacy
0
27244
#!/usr/bin/env python from __future__ import print_function import os import sys import unittest import time import datetime import logging from cloudsim_rest_api import CloudSimRestApi import traceback # add cloudsim directory to system path basepath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) ...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 443, 27958, 13, 5215, 931, 13, 5215, 12865, 13, 5215, 12183, 13, 13, 3166, 9570...
pyPyrTools/entropy2.py
spencerkent/pyPyrTools
40
114763
import numpy def entropy2(*args): ''' E = ENTROPY2(MTX,BINSIZE) Compute the first-order sample entropy of MTX. Samples of VEC are first discretized. Optional argument BINSIZE controls the discretization, and defaults to 256/(max(VEC)-min(VEC)). NOTE: This is a heavily ...
[ 1, 1053, 12655, 13, 13, 1753, 24687, 29906, 10456, 5085, 1125, 13, 1678, 14550, 382, 353, 12524, 29911, 1672, 20055, 29906, 29898, 11490, 29990, 29892, 29933, 1177, 14226, 29897, 29871, 13, 418, 13, 4706, 11796, 29872, 278, 937, 29899, 20...
eval/scripts/__init__.py
mbatchkarov/dc_evaluation
0
25751
<reponame>mbatchkarov/dc_evaluation __author__ = 'mmb28' import sys sys.path.append('.') sys.path.append('..') sys.path.append('../..')
[ 1, 529, 276, 1112, 420, 29958, 8337, 905, 5689, 586, 29914, 13891, 29918, 24219, 362, 13, 1649, 8921, 1649, 353, 525, 4317, 29890, 29906, 29947, 29915, 13, 5215, 10876, 13, 13, 9675, 29889, 2084, 29889, 4397, 12839, 1495, 13, 9675, 2988...
tests/session_tests/single_agent.py
gitter-badger/agent
8
75296
<reponame>gitter-badger/agent #!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "<NAME>" __doc__ = r""" Created on 18/01/2020 """ from neodroidagent.entry_points import session_entry_point def test_single_agent_session(): from neodroidagent.agents.random_agent import RandomAgent...
[ 1, 529, 276, 1112, 420, 29958, 29887, 5171, 29899, 12313, 914, 29914, 14748, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 1649, ...
trypython/stdlib/itertools_/itertools04.py
devlights/try-python
4
190962
<gh_stars>1-10 # coding: utf-8 """ itertools モジュールについてのサンプル 以下の処理についてのサンプルです。 - count() - accumulate() - compress() - dropwhile() - filterfalse() """ import itertools as it import operator as op from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import pr, hr class Sample(SampleBase...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 15945, 29908, 13, 1524, 8504, 29871, 30761, 30391, 30645, 30185, 30258, 30353, 30773, 30298, 30466, 30199, 30615, 30203, 306...
mountaintools/cairio/__init__.py
tjd2002/spikeforest2
0
148751
<reponame>tjd2002/spikeforest2 from .cairioclient import CairioClient, client
[ 1, 529, 276, 1112, 420, 29958, 29873, 26012, 29906, 29900, 29900, 29906, 29914, 1028, 9345, 1454, 342, 29906, 13, 3166, 869, 1113, 12737, 542, 1593, 1053, 315, 1794, 5378, 4032, 29892, 3132, 13, 2 ]
indicators/data.py
WPRDC/community-simulacrum
0
38357
import dataclasses import typing from dataclasses import dataclass from typing import List from typing import Optional from profiles.settings import DENOM_DKEY, VALUE_DKEY, GEOG_DKEY, TIME_DKEY if typing.TYPE_CHECKING: from indicators.models import CensusVariable, CKANVariable @dataclass class Datum: variab...
[ 1, 1053, 848, 13203, 13, 5215, 19229, 13, 3166, 848, 13203, 1053, 848, 1990, 13, 3166, 19229, 1053, 2391, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 28723, 29889, 11027, 1053, 360, 1430, 6488, 29918, 29928, 10818, 29892, 12599, 4462, 2...
gym_locm/toolbox/predictor.py
dfpetrin/gym-locm
12
23139
<reponame>dfpetrin/gym-locm<gh_stars>10-100 import argparse import json import os import pathlib import numpy as np import pexpect from scipy.special import softmax base_path = str(pathlib.Path(__file__).parent.absolute()) def get_arg_parser(): p = argparse.ArgumentParser( description="This is a predict...
[ 1, 529, 276, 1112, 420, 29958, 2176, 10963, 17056, 29914, 29887, 962, 29899, 2029, 29885, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 1852, 5510, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 222...
modules/python3/tests/unittests/scripts/glm.py
ImagiaViz/inviwo
349
18572
import inviwopy from inviwopy.glm import * v1 = vec3(1,2,3) v2 = size2_t(4,5) m1 = mat4(1) m2 = mat3(0,1,0,-1,0,0,0,0,2) v3 = m2 * v1 v4 = vec4(1,2,3,4) w = v4.w a = v4.a q = v4.q z = v4.z b = v4.b p = v4.p y = v4.y g = v4.g t = v4.t x = v4.x r = v4.r s = v4.s
[ 1, 1053, 297, 1403, 29893, 2270, 13, 3166, 297, 1403, 29893, 2270, 29889, 3820, 29885, 1053, 334, 13, 13, 29894, 29896, 353, 9649, 29941, 29898, 29896, 29892, 29906, 29892, 29941, 29897, 13, 29894, 29906, 353, 2159, 29906, 29918, 29873, 2...
python/examples/find_similar.py
yupbank/euclidesdb
0
19463
<reponame>yupbank/euclidesdb<filename>python/examples/find_similar.py import sys import argparse import euclides from PIL import Image import numpy as np from torchvision.transforms import functional as F def run_main(): parser = argparse.ArgumentParser(description='Find similar images in EuclidesDB.') par...
[ 1, 529, 276, 1112, 420, 29958, 29891, 786, 9157, 29914, 12932, 695, 2247, 2585, 29966, 9507, 29958, 4691, 29914, 19057, 29914, 2886, 29918, 29764, 29889, 2272, 13, 5215, 10876, 13, 5215, 1852, 5510, 13, 13, 5215, 11878, 695, 2247, 13, 1...
cms/tests/middleware.py
ScholzVolkmer/django-cms-old
1
195367
#-*- coding: utf-8 -*- from __future__ import with_statement from cms.middleware.multilingual import MultilingualURLMiddleware, HAS_LANG_PREFIX_RE from cms.test_utils.testcases import CMSTestCase from cms.test_utils.util.context_managers import SettingsOverride from cms.test_utils.util.mock import AttributeObject from ...
[ 1, 396, 29899, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 411, 29918, 20788, 13, 3166, 274, 1516, 29889, 17662, 2519, 29889, 4713, 6504, 950, 1053, 9683, 6504, 950, 4219, 2...
scripts/striptags.py
innesmck/GaelicFrequencyLists
0
1610517
import re, os directory = 'corpus/watch_raw' for entry in os.scandir(directory): if entry.is_file(): with open(entry.path, encoding="utf-8") as f: text = f.read() text = re.sub('\[.*\]', '', text) path = entry.path.replace( 'watch_raw', 'watch' ) with open(path, "w", encoding="utf-8") as f: f...
[ 1, 1053, 337, 29892, 2897, 30004, 13, 30004, 13, 12322, 353, 525, 2616, 13364, 29914, 12344, 29918, 1610, 29915, 30004, 13, 1454, 6251, 297, 2897, 29889, 1557, 392, 381, 29898, 12322, 1125, 30004, 13, 12, 361, 6251, 29889, 275, 29918, 1...
python/strip_comments.py
TechieHelper/Codewars
0
146648
<gh_stars>0 def solution(string, markers): output = [] for line in string.split("\n"): containsCommentIndicator = "" for c in line: if c in markers: containsCommentIndicator = c break if containsCommentIndicator != "": line = line[:line.find(containsCommentIndicator)] line = line.rstrip(" ") ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1753, 1650, 29898, 1807, 29892, 29320, 1125, 13, 12, 4905, 353, 5159, 13, 12, 1454, 1196, 297, 1347, 29889, 5451, 14182, 29876, 29908, 1125, 13, 12, 12, 11516, 20001, 28013, 353, 5124, ...
brd_mod/main.py
benrdavison/brd_mod
0
120458
<reponame>benrdavison/brd_mod import pandas as pd import sys import os from brd_mod.brdstats import * from brd_mod.brdgeo import * from brd_mod.brdecon import * if __name__ == "__main__": print("test")
[ 1, 529, 276, 1112, 420, 29958, 1785, 5499, 485, 2285, 29914, 1182, 29881, 29918, 1545, 13, 5215, 11701, 408, 10518, 30004, 13, 30004, 13, 5215, 10876, 30004, 13, 5215, 2897, 30004, 13, 30004, 13, 3166, 1506, 29881, 29918, 1545, 29889, 1...
filesfolders/views_api.py
bihealth/sodar-core
7
76295
<reponame>bihealth/sodar-core """REST API views for the samplesheets app""" from rest_framework.generics import ( ListCreateAPIView, RetrieveUpdateDestroyAPIView, GenericAPIView, ) # Projectroles dependency from projectroles.models import SODAR_CONSTANTS from projectroles.plugins import get_backend_api fr...
[ 1, 529, 276, 1112, 420, 29958, 5365, 354, 4298, 29914, 29879, 397, 279, 29899, 3221, 13, 15945, 29908, 1525, 1254, 3450, 8386, 363, 278, 11916, 354, 1691, 623, 15945, 29908, 13, 13, 3166, 1791, 29918, 4468, 29889, 4738, 1199, 1053, 313,...
modules/friday/engine.py
roshanmaind/Nico
2
193287
<filename>modules/friday/engine.py import h5py import pickle import random def split_list(artists, seperator): for i in range(len(artists)): artists += artists[i].split(seperator) for artist in artists: if artist.split(seperator) != [artist]: artists.remove(artist) return artists def individualize(artists)...
[ 1, 529, 9507, 29958, 7576, 29914, 1341, 22394, 29914, 10599, 29889, 2272, 13, 5215, 298, 29945, 2272, 13, 5215, 5839, 280, 13, 5215, 4036, 13, 13, 1753, 6219, 29918, 1761, 29898, 442, 2879, 29892, 409, 546, 1061, 1125, 13, 12, 1454, 4...
day_18/day_18_project_the_hirst_painting.py
MatheusNascimentoS/100_days_of_code_python
0
180061
<reponame>MatheusNascimentoS/100_days_of_code_python<gh_stars>0 import turtle as t from random import choice,randint rgb_colors = [(202, 164, 110), (240, 245, 241), (236, 239, 243), (149, 75, 50), (222, 201, 136), (53, 93, 123), (170, 154, 41), (138, 31, 20), (134, 163, 184), (197, 92, 73), (47, 121, 86), (73, 43, 35...
[ 1, 529, 276, 1112, 420, 29958, 9782, 354, 375, 29940, 6151, 6174, 29903, 29914, 29896, 29900, 29900, 29918, 16700, 29918, 974, 29918, 401, 29918, 4691, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 260, 4227, 280, 408, 260, 13, ...
setup.py
robertjanes/drawbot
0
15621
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from setuptools import setup import os import re import shutil _versionRE = re.compile(r'__version__\s*=\s*\"([^\"]+)\"') # read the version number for the settings file with open('drawBot/drawBotSettings.py', "r") as settings: ...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 29892, 8380, 29918, 5215, 29892, 1596, 29918, 2220, 13, 3166, 731, 21245, 8789, 1053, 6230, 13, 5215, 2897, 13, 5215, 337, 13, 5215, 528, 442...
test_algorithm.py
tykkz/hasherapp
0
160080
<reponame>tykkz/hasherapp<gh_stars>0 import unittest from algorithm import hash_text class TestHashText(unittest.TestCase): def setUp(self): self.avail_func_array = ['md5', 'sha1', 'sha256'] self.avail_func_array2 = ['sha256', 'sha224'] self.text = "hello" self.hello_pass_1 = {'sha...
[ 1, 529, 276, 1112, 420, 29958, 1017, 6859, 29920, 29914, 8568, 261, 932, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 443, 27958, 13, 3166, 5687, 1053, 6608, 29918, 726, 13, 13, 13, 1990, 4321, 10438, 1626, 29898, 348, 27958,...
transport/processing/config.py
zkdev/cc-utils
15
168789
<filename>transport/processing/config.py import typing ACTIONS: typing.List[str] = list() PROCESSING_CFG = 'transport.yaml' RESOURCES_DIR = 'resources' TAR_FILE = 'resources.tar' DRY_RUN = False
[ 1, 529, 9507, 29958, 27882, 29914, 19170, 29914, 2917, 29889, 2272, 13, 5215, 19229, 13, 13, 24705, 29903, 29901, 19229, 29889, 1293, 29961, 710, 29962, 353, 1051, 580, 13, 8618, 23524, 4214, 29918, 9207, 29954, 353, 525, 27882, 29889, 25...
cloudmesh/pi/grove_air_quality_sensor.py
cloudmesh/cloudmesh.pi
2
109286
import time import grovepi class GroveAirQualitySensor: def __init__(self, pin = 0): """ connect to an analog pin to get input, pin A0 by default """ self.air_sensor = pin grovepi.pinMode(self.air_sensor,"INPUT") def get(self): """ return the analog value of air quality recieved. less value means fr...
[ 1, 1053, 931, 13, 5215, 4071, 345, 1631, 13, 13, 1990, 6070, 345, 29909, 381, 24399, 537, 29903, 6073, 29901, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 12534, 353, 29871, 29900, 1125, 13, 12, 12, 15945, 29908, 13, 12, 12, 6915, ...
ptpy/transports/usb.py
komodo108/sequoia-ptpy
0
29952
<filename>ptpy/transports/usb.py '''This module implements the USB transport layer for PTP. It exports the PTPUSB class. Both the transport layer and the basic PTP implementation are Vendor agnostic. Vendor extensions should extend these to support more operations. ''' from __future__ import absolute_import import ate...
[ 1, 529, 9507, 29958, 415, 2272, 29914, 3286, 4011, 29914, 28685, 29889, 2272, 13, 12008, 4013, 3883, 10703, 278, 12951, 8608, 7546, 363, 349, 3557, 29889, 13, 13, 3112, 29586, 278, 349, 3557, 29965, 1744, 770, 29889, 9134, 278, 8608, 75...
lendingclub2/filter.py
washcycle/lendingclub2
0
151059
# Filename: filter.py """ LendingClub2 Filter Module """ # Standard libraries import collections from abc import abstractmethod from abc import ABC # lendingclub2 from lendingclub2.error import LCError # pylint: disable=too-few-public-methods class BorrowerTrait(ABC): """ Abstract base class to define bor...
[ 1, 396, 2514, 3871, 29901, 4175, 29889, 2272, 13, 13, 15945, 29908, 13, 29931, 2548, 6821, 431, 29906, 19916, 15591, 13, 15945, 29908, 13, 13, 29937, 10117, 9562, 13, 5215, 16250, 13, 3166, 25638, 1053, 9846, 5696, 13, 3166, 25638, 1053...
modules/BoxSampler.py
kapitsa2811/research-e2e-pagereader
1
66649
import torch.nn as nn import torch from utils import BBoxTransform,ClipBoxes from nms.nms_pytorch import nms as nms_op def nms(dets, thresh): #dets = dets.cpu().detach() #dets = np.array(dets) "Dispatch to either CPU or GPU NMS implementations.\ Accept dets as tensor""" #keep = torch.tensor(py_cpu_...
[ 1, 1053, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 13, 3166, 3667, 29879, 1053, 350, 3313, 13372, 29892, 29907, 3466, 3313, 267, 13, 3166, 302, 1516, 29889, 29876, 1516, 29918, 2272, 7345, 305, 1053, 302, 1516, 408,...
finetuner/tuner/callback/evaluation.py
jina-ai/finetuner
270
187403
import math from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Tuple from ... import embed from ..evaluation import Evaluator from .base import BaseCallback if TYPE_CHECKING: from docarray import DocumentArray from ..base import BaseTuner class EvaluationCallback(BaseCallback): """ A ...
[ 1, 1053, 5844, 13, 3166, 19229, 1053, 323, 6959, 29918, 3210, 16658, 4214, 29892, 3139, 29892, 8251, 519, 29892, 360, 919, 29892, 28379, 29892, 12603, 552, 13, 13, 3166, 2023, 1053, 8297, 13, 3166, 6317, 24219, 362, 1053, 382, 4387, 106...
src/vardb/deposit/annotation_config.py
Dabble-of-DevOps-Bio/ella
0
31294
from typing import Any, List, Mapping, Sequence import jsonschema from dataclasses import dataclass, field from sqlalchemy.orm import scoped_session from vardb.datamodel.jsonschemas.load_schema import load_schema from vardb.datamodel import annotation @dataclass class ConverterConfig: elements: Sequence[Mapping[s...
[ 1, 515, 19229, 1053, 3139, 29892, 2391, 29892, 341, 20304, 29892, 922, 3910, 13, 5215, 6965, 787, 305, 2603, 13, 3166, 848, 13203, 1053, 848, 1990, 29892, 1746, 13, 3166, 4576, 284, 305, 6764, 29889, 555, 1053, 16505, 287, 29918, 7924, ...
leetcode/1701-remove-max-number-of-edges-to-keep-graph-fully-traversable.py
Magic07/online-judge-solutions
0
55575
<gh_stars>0 class Solution: def maxNumEdgesToRemove(self, n: int, edges: List[List[int]]) -> int: answer=0 aliceVisited=[0]*(n+1) bobVisited=[0]*(n+1) aliceSet={} aliceSetNum=1 bobSet={} bobSetNum=1 # Return False if this edge can be deleted...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1990, 24380, 29901, 30004, 13, 1678, 822, 4236, 8009, 3853, 2710, 1762, 15941, 29898, 1311, 29892, 302, 29901, 938, 29892, 12770, 29901, 2391, 29961, 1293, 29961, 524, 24960, 1599, 938, 2...
setup.py
timmartin19/turbogears
0
192678
<reponame>timmartin19/turbogears<filename>setup.py from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import sys import os if sys.version_info < (2, 3): raise SystemExit("TurboGears 1.0 requires Python 2.3 or later.") elif sys.version_info >= (2, 7): # The main pr...
[ 1, 529, 276, 1112, 420, 29958, 29873, 6727, 442, 262, 29896, 29929, 29914, 29873, 9265, 468, 15451, 29966, 9507, 29958, 14669, 29889, 2272, 13, 3166, 20803, 29918, 14669, 1053, 671, 29918, 842, 21245, 8789, 13, 1509, 29918, 842, 21245, 87...
tests/0_orchestrator/test_suite/testcases/advanced_tests/test04_etcd.py
5l1v3r1/0-orchestrator
3
108273
<filename>tests/0_orchestrator/test_suite/testcases/advanced_tests/test04_etcd.py<gh_stars>1-10 import random, time from testcases.testcases_base import TestcasesBase import unittest class Test_etcd(TestcasesBase): def setUp(self): super().setUp() number_of_free_disks, disk_type = self.get_max_ava...
[ 1, 529, 9507, 29958, 21150, 29914, 29900, 29918, 25350, 16444, 1061, 29914, 1688, 29918, 13495, 29914, 1688, 11436, 29914, 328, 16858, 29918, 21150, 29914, 1688, 29900, 29946, 29918, 300, 2252, 29889, 2272, 29966, 12443, 29918, 303, 1503, 299...
CNN/SENet/senet.py
cutz-j/Paper2Code
2
160623
<gh_stars>1-10 from keras import backend as K from keras_applications.imagenet_utils import _obtain_input_shape, preprocess_input from keras.layers import Activation, Conv2D, Add, Concatenate, GlobalAveragePooling2D, GlobalMaxPool2D from keras.layers import Input, Dense, MaxPooling2D, AveragePooling2D, BatchNormalizati...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 13023, 294, 1053, 14998, 408, 476, 13, 3166, 13023, 294, 29918, 932, 5795, 29889, 326, 5370, 300, 29918, 13239, 1053, 903, 711, 2408, 29918, 2080, 29918, 12181,...
src/user-config.py
aryamanarora/wdp
0
107722
<reponame>aryamanarora/wdp family = 'wiktionary' mylang = 'en' usernames['wiktionary']['en'] = u'AryamanA' # change to your username console_encoding = 'utf-8' minthrottle = 0 maxthrottle = 1
[ 1, 529, 276, 1112, 420, 29958, 653, 13533, 279, 2207, 29914, 29893, 6099, 13, 11922, 353, 525, 2851, 12757, 653, 29915, 13, 1357, 3893, 353, 525, 264, 29915, 13, 13, 375, 824, 1280, 1839, 2851, 12757, 653, 16215, 264, 2033, 353, 318, ...
TEMpcPlot/Symmetry/spacegroup.py
Prestipino/TEMpcPlot
0
165417
<filename>TEMpcPlot/Symmetry/spacegroup.py # Copyright (C) 2010, <NAME> # (see accompanying license files for details). """Definition of the Spacegroup class. from ase library few change for extinctions This module only depends on NumPy and the space group database. """ import os import warnings from functools import ...
[ 1, 529, 9507, 29958, 4330, 29924, 6739, 20867, 29914, 25548, 2527, 719, 29914, 3493, 2972, 29889, 2272, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29900, 29892, 529, 5813, 29958, 13, 29937, 313, 4149, 10259, 1384...
src/runner.py
Shahrukh-Badar/DeepLearning
0
22843
from os import listdir from os.path import join, isfile import json from random import randint ######################################### ## START of part that students may change from code_completion_baseline import Code_Completion_Baseline training_dir = "./../../programs_800/" query_dir = "./../../programs_200/" m...
[ 1, 515, 2897, 1053, 1051, 3972, 13, 3166, 2897, 29889, 2084, 1053, 5988, 29892, 338, 1445, 13, 5215, 4390, 13, 3166, 4036, 1053, 20088, 524, 13, 13, 13383, 13383, 7346, 29937, 13, 2277, 6850, 8322, 310, 760, 393, 8041, 1122, 1735, 13,...
snekcord/objects/user.py
asleep-cult/snekcord
9
172791
<reponame>asleep-cult/snekcord import enum from .base import BaseObject from .. import json __all__ = ('UserFlags', 'PremiumType', 'User') class UserFlags(enum.IntFlag): NONE = 0 STAFF = 1 << 0 PARTNER = 1 << 1 HYPESQUAD = 1 << 2 BUG_HUNTER_LEVEL_1 = 1 << 3 HYPESQUAD_ONLINE_HOUSE_1 = 1 << 6 ...
[ 1, 529, 276, 1112, 420, 29958, 294, 5436, 29899, 29883, 499, 29914, 29879, 6750, 16090, 13, 5215, 14115, 13, 13, 3166, 869, 3188, 1053, 7399, 2061, 13, 3166, 6317, 1053, 4390, 13, 13, 1649, 497, 1649, 353, 6702, 2659, 15675, 742, 525,...
pyvieslib/pyvieslib.py
KG5321/pyvieslib
1
107193
<reponame>KG5321/pyvieslib from .vies_validator import ViesValidator class PyViesLib: def __init__(self): self.vvld = ViesValidator() def check_vies(self, vies: str) -> bool: """Function checks validity of given VIES number :param vies: VIES number :type vies: str :re...
[ 1, 529, 276, 1112, 420, 29958, 29968, 29954, 29945, 29941, 29906, 29896, 29914, 2272, 29894, 583, 1982, 13, 3166, 869, 29894, 583, 29918, 3084, 1061, 1053, 478, 583, 24204, 13, 13, 13, 1990, 10772, 29963, 583, 14868, 29901, 13, 1678, 82...
scripts/train/train_descriminator.py
bernardomig/photobooth
3
86471
import os import sys import argparse import torch import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel from torch.utils.data import DataLoader, DistributedSampler from torchvision.transforms import functional as tfms # import wandb from apex import amp import numpy as np from nump...
[ 1, 1053, 2897, 13, 5215, 10876, 13, 5215, 1852, 5510, 13, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 5721, 7541, 408, 1320, 13, 3166, 4842, 305, 29889, 15755, 29889, 23482, 1053, 6652, 7541, 1469, 2177, 6553, 13, 3166, 4842, 305...
2018/11/code.py
Akumatic/Advent-of-Code
22
90500
""" https://adventofcode.com/2018/day/11 """ def readFile(): with open(f"{__file__.rstrip('code.py')}input.txt", "r") as f: return int(f.read()) def getPowerlevel(x, y, serial): rackId = x + 10 powerLevel = (rackId * y + serial) * rackId return (int(powerLevel / 100) % 10) - 5 def createGrid(...
[ 1, 9995, 2045, 597, 328, 794, 974, 401, 29889, 510, 29914, 29906, 29900, 29896, 29947, 29914, 3250, 29914, 29896, 29896, 9995, 13, 13, 1753, 1303, 2283, 7295, 13, 1678, 411, 1722, 29898, 29888, 29908, 29912, 1649, 1445, 26914, 29878, 1701...
robot_framework/utils/pattern_formed.py
abarcis/robot-framework
0
131925
#! /usr/bin/env python import numpy as np from .order_parameters import potential_M_N, centroid_m def is_discrete_pattern_formed(states, params): K = params['K'] M = params['M'] potential = potential_M_N(K, M, states.values()) velocities = np.array([s.velocity for s in states.values()]) speeds = ...
[ 1, 396, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 869, 2098, 29918, 16744, 1053, 7037, 29918, 29924, 29918, 29940, 29892, 1644, 1007, 29918, 29885, 13, 13, 13, 1753, 338, 29918, 2218, 90...
crypto_tracker/crypto.py
sonalimahajan12/Automation-scripts
496
171099
<reponame>sonalimahajan12/Automation-scripts import requests import sys def get_prices(): # Checking there is a coin passed if len(sys.argv) > 1: coins = sys.argv[1:] else: # Default coins coins = ["BTC", "ETH", "XRP", "LTC", "BCH", "ADA", "DOT", "LINK", "BNB", "X...
[ 1, 529, 276, 1112, 420, 29958, 1100, 284, 326, 801, 1175, 273, 29896, 29906, 29914, 28451, 362, 29899, 16713, 13, 5215, 7274, 13, 5215, 10876, 13, 13, 13, 1753, 679, 29918, 558, 1575, 7295, 13, 13, 1678, 396, 5399, 292, 727, 338, 26...
render/PC_Normalisation.py
sun-pyo/OcCo
158
1070
<reponame>sun-pyo/OcCo<gh_stars>100-1000 # Copyright (c) 2020. <NAME>, <EMAIL> import os, open3d, numpy as np File_ = open('ModelNet_flist_short.txt', 'w') if __name__ == "__main__": root_dir = "../data/ModelNet_subset/" for root, dirs, files in os.walk(root_dir, topdown=False): for file in files: ...
[ 1, 529, 276, 1112, 420, 29958, 11445, 29899, 2272, 29877, 29914, 29949, 29883, 7967, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 29871, 14187, 1266, 313, 29883, 29897, 29871, 29906...
Editor/Resources/CloudFormation/scenario2_single_fleet/tests/test.py
aws/amazon-gamelift-plugin-unity
37
73122
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import boto3 import requests import json import time GAME_NAME = '<REPLACE_WITH_YOUR_GAME_NAME>' REGION = '<REPLACE_WITH_YOUR_REGION>' USER_POOL_NAME = GAME_NAME + 'UserPool' USER_POOL_CLIENT_NAME = GAME_NAME + 'Use...
[ 1, 396, 14187, 1266, 16631, 29889, 510, 29892, 9266, 29889, 470, 967, 23736, 1078, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937, 10937, 29928, 29990, 29899, 29931, 293, 1947, 29899, 12889, 29901, 341, 1806, 29899, 29900, 13, 13, 5215, ...
day01/python/beckel/solution.py
clssn/aoc-2019
22
14355
import math def fuel_needed(mass): return math.floor(int(mass)/3 - 2) def fuel_needed_recursive(mass): fuel_needed_i = fuel_needed(mass) if (fuel_needed_i <= 0): return 0 return fuel_needed_i + fuel_needed_recursive(fuel_needed_i) total_fuel = 0 total_fuel_recursive = 0 with open("input.txt"...
[ 1, 1053, 5844, 13, 13, 1753, 26413, 29918, 484, 19226, 29898, 25379, 1125, 13, 1678, 736, 5844, 29889, 14939, 29898, 524, 29898, 25379, 6802, 29941, 448, 29871, 29906, 29897, 13, 13, 1753, 26413, 29918, 484, 19226, 29918, 3757, 25397, 298...
analyses_and_ml/nlp_utils.py
aashish-jain/Social-unrest-prediction
8
62418
import warnings import numpy as np from tabulate import tabulate from collections import Counter from sklearn.ensemble import ExtraTreesClassifier from sklearn.metrics import precision_score, recall_score, f1_score from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer def get_sentiment(documents, docu...
[ 1, 1053, 18116, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 4434, 5987, 1053, 4434, 5987, 13, 3166, 16250, 1053, 315, 5336, 13, 3166, 2071, 19668, 29889, 24031, 1053, 7338, 336, 29911, 11003, 2385, 3709, 13, 3166, 2071, 19668, 29889, 2527...
src/compas_convert/native.py
tetov/compas_convert
2
127137
<reponame>tetov/compas_convert from __future__ import absolute_import from __future__ import division from __future__ import print_function import compas.data from compas_convert import register_converter @register_converter([str], compas.data.Data) def json_str_to_compas_obj(json_str): # type: (str) -> compas.dat...
[ 1, 529, 276, 1112, 420, 29958, 29873, 300, 586, 29914, 2388, 294, 29918, 13441, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29...
vb2py/test_at_scale/testheinsega.py
ceprio/xl_vb2py
0
39888
import unittest from vb2py.test_at_scale import file_tester class Test_heinsega(file_tester.FileTester): def test0(self): self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/heinsega/OX163_VB6project_Win32/Module1.bas') def test1(self): self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/...
[ 1, 29871, 13, 5215, 443, 27958, 13, 3166, 16822, 29906, 2272, 29889, 1688, 29918, 271, 29918, 7052, 1053, 934, 29918, 1688, 261, 13, 13, 13, 1990, 4321, 29918, 12880, 344, 3249, 29898, 1445, 29918, 1688, 261, 29889, 2283, 3057, 261, 112...
qdev_wrappers/customised_instruments/AlazarTech_ATS9360_ext.py
Dominik-Vogel/qdev-wrappers
0
79240
<gh_stars>0 from qcodes.instrument_drivers.AlazarTech.ATS9360 import AlazarTech_ATS9360 from qdev_wrappers.alazar_controllers.ATS9360Controller import ATS9360Controller from qcodes.utils import validators as vals class ATS9360Controller_ext(ATS9360Controller): def __init__(self, name, alazar, ctrl_type='ave'): ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 3855, 18137, 29889, 2611, 15461, 29918, 24477, 874, 29889, 29909, 21051, 279, 29911, 5309, 29889, 1299, 29903, 29929, 29941, 29953, 29900, 1053, 319, 21051, 279, 29911, 5309, 29918, 1...
psm/lake/lake_driver.py
amoodie/PRYSM
21
53337
<gh_stars>10-100 #====================================================================== # <NAME> # Modified 03/08/16 <<EMAIL>> # Modified 04/02/18 <<EMAIL>> # Script to run lake sediment proxy system model #====================================================================== # PRYSM v2.0 Lake Sediments, DRIVER SCRI...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 9166, 9166, 9166, 9166, 2751, 1360, 13, 29937, 529, 5813, 29958, 13, 29937, 3382, 2164, 29871, 29900, 29941, 29914, 29900, 29947, 29914, 29896, 299...
beast/plotting/plot_param_vs_chi2min.py
marthaboyer/beast
0
1615763
#!/usr/bin/env python """ Plot the chi2min versus the fit parametrs Used to explore where the bad (and good) fits are located """ from __future__ import (absolute_import, division, print_function, unicode_literals) import matplotlib.pyplot as plt from astropy.table import Table from matplotlib....
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 20867, 278, 18558, 29906, 1195, 23797, 278, 6216, 25011, 2288, 13, 29965, 8485, 304, 26987, 988, 278, 4319, 313, 392, 1781, 29897, 23994, 526, 5982, 13, 15945, 29908, ...
app.py
Tokky-tane/todo_server
0
39672
<gh_stars>0 import os import datetime import dateutil.parser from flask import Flask, request, Response from flask_api import status from database import close_db from crud_task import get_all_tasks, delete_all_tasks, create_task, delete_user_tasks, get_user_tasks, delete_task, get_task, update_task, exist_task import ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 13, 5215, 12865, 13, 5215, 2635, 4422, 29889, 16680, 13, 3166, 29784, 1053, 2379, 1278, 29892, 2009, 29892, 13291, 13, 3166, 29784, 29918, 2754, 1053, 4660, 13, 3166, 2566, ...
utils/search_methods/__init__.py
Yzx835/AISafety
0
1606087
<gh_stars>0 # !/usr/bin/env python # coding=UTF-8 """ @Author: <NAME> @LastEditors: <NAME> @Description: @Date: 2021-07-23 @LastEditTime: 2021-09-08 """ from .base import SearchMethod from .word_importance_ranking import WordImportanceRanking from .beam_search import BeamSearch, GreedySearch from .population_based_sea...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 1738, 29914, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 14137, 29922, 10496, 29899, 29947, 13, 15945, 29908, 13, 29992, 13720, 29901, 529, 5813, 29958, 13, 29992, 8897, 6103, ...
datacode/summarize/subset/missing/detail/textfuncs.py
nickderobertis/data-code
0
1606759
<reponame>nickderobertis/data-code<gh_stars>0 from datacode.typing import IntOrNone, FloatOrNone, Union def missing_more_than_str(missing_tolerance: IntOrNone, missing_quantile: FloatOrNone, missing_display_str: str, id_var: str) -> str: return f'More than {_t_or_q(missing_tolerance, miss...
[ 1, 529, 276, 1112, 420, 29958, 19254, 672, 29877, 2151, 275, 29914, 1272, 29899, 401, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 848, 401, 29889, 1017, 15702, 1053, 3159, 2816, 8516, 29892, 27842, 2816, 8516, 29892, 7761, 13,...
loss/combine_loss.py
shijun18/RS_SEG20
4
70035
import torch import torch.nn as nn import torch.nn.functional as F from loss.dice_loss import DiceLoss from loss.cross_entropy import CrossentropyLoss, TopKLoss class BCEPlusDice(nn.Module): """Dice loss, need one hot encode input Args: weight: An array of shape [num_classes,] ignore_index: c...
[ 1, 1053, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 13, 3166, 6410, 29889, 29881, 625, 29918, 6758, 1053, 360, 625, 29931, 2209, 13, 3166, 6410, 29...
lib/hypervisor/hv_kvm/monitor.py
yiannist/pkg-ganeti
0
157994
# # # Copyright (C) 2014 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and ...
[ 1, 396, 13, 29937, 13, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29946, 5087, 9266, 29889, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 13, 29937, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 2...
scripts/inversedynamics_openrave.py
personalrobotics/herbpy
4
169900
#!/usr/bin/env python """ Provides a simple console that sets up basic functionality for using herbpy and openravepy. """ import argparse, herbpy, numpy, openravepy def iD(): robot.right_arm.SetActive() jpos_list = [ [3.1670137672513565, -1.5896855774682224, -0.030490730254705722, 1.5286675450710463,...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 1184, 29894, 2247, 263, 2560, 2991, 393, 6166, 701, 6996, 9863, 363, 13, 4746, 902, 29890, 2272, 322, 1722, 336, 345, 2272, 29889, 13, 15945, 29908, 13, 13, 5215, 1...
experiments/ab_tmd/run_experiment.py
eltonfss/TMDLibrary
0
180107
<reponame>eltonfss/TMDLibrary from experiments.tmd_experiment_base import TMDExperiment from os import path from detectors.ab_tmd import AdaBoostTMD experiment = TMDExperiment( experiment_path=path.abspath(path.dirname(__file__)), detector_type=AdaBoostTMD ) experiment.run()
[ 1, 529, 276, 1112, 420, 29958, 295, 880, 29888, 893, 29914, 29911, 5773, 12284, 13, 3166, 15729, 29889, 29873, 3487, 29918, 735, 15362, 29918, 3188, 1053, 323, 5773, 1252, 15362, 13, 3166, 2897, 1053, 2224, 13, 3166, 6459, 943, 29889, 3...
lingvo/core/lstm_frnn_layer_test.py
halostorm/lingvo
1
133477
<filename>lingvo/core/lstm_frnn_layer_test.py # Lint as: python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://w...
[ 1, 529, 9507, 29958, 1847, 1365, 29914, 3221, 29914, 20155, 29885, 29918, 1341, 15755, 29918, 13148, 29918, 1688, 29889, 2272, 13, 29937, 365, 524, 408, 29901, 3017, 29941, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 450, 323...
tests/cli/templar_test.py
Cal-CS-61A-Staff/templar
6
104557
"""End-to-end test for templar/cli/templar.py""" from templar.api.config import ConfigBuilderError from templar.cli import templar import io import mock import os.path import shutil import unittest STAGING_DIR = os.path.join('tests', 'cli', 'staging') TEST_DATA = os.path.join('tests', 'cli', 'test_data') class Temp...
[ 1, 9995, 5044, 29899, 517, 29899, 355, 1243, 363, 1350, 572, 279, 29914, 11303, 29914, 1356, 572, 279, 29889, 2272, 15945, 29908, 13, 13, 3166, 1350, 572, 279, 29889, 2754, 29889, 2917, 1053, 12782, 5627, 2392, 13, 3166, 1350, 572, 279,...
Utils/py/ActionSelection/play_striker.py
BerlinUnited/NaoTH
15
85146
<reponame>BerlinUnited/NaoTH from __future__ import division import math import copy import numpy as np from matplotlib import pyplot as plt from naoth.math import * from tools import action as a from tools import Simulation as Sim from tools import tools from tools import raw_attack_direction_provider as attack_dir fr...
[ 1, 529, 276, 1112, 420, 29958, 17104, 1915, 2525, 1573, 29914, 29940, 6241, 4690, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 5215, 5844, 13, 5215, 3509, 13, 5215, 12655, 408, 7442, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770,...
configs/diseased/resnet50_cancer_adddata.py
jiangwenj02/mmclassification
0
14379
_base_ = [ '../_base_/models/resnet50.py', '../_base_/datasets/cancer_bs32_pil_resize.py', '../_base_/schedules/imagenet_bs256_coslr.py', '../_base_/default_runtime.py' ] model = dict( head=dict( num_classes=2, topk=(1,)) ) data = dict( train=dict( data_prefix='/data3/zzhang/tmp...
[ 1, 903, 3188, 29918, 353, 518, 13, 1678, 525, 6995, 29918, 3188, 29918, 29914, 9794, 29914, 690, 1212, 29945, 29900, 29889, 2272, 742, 525, 6995, 29918, 3188, 29918, 29914, 14538, 1691, 29914, 3068, 2265, 29918, 5824, 29941, 29906, 29918, ...
experiment_replay/__init__.py
Narsil/experiment_replay
0
172607
import git import subprocess import datetime import sys import random PREFIX = "ExpReplay" # Prepare to escape in amend_command COMMIT_LINE = 'ExpReplay: {id} \\"{command}\\" {date}' def setup(): repo = git.Repo(search_parent_directories=True) if repo.is_dirty(): raise Exception("Repo is dirty") ...
[ 1, 1053, 6315, 13, 5215, 1014, 5014, 13, 5215, 12865, 13, 5215, 10876, 13, 5215, 4036, 13, 13, 15094, 25634, 353, 376, 9544, 1123, 1456, 29908, 13, 29937, 29871, 349, 3445, 598, 304, 10169, 297, 626, 355, 29918, 6519, 13, 3217, 7428, ...
Google_Sheet_Sensor_Logging/max31855_logger.py
claycooper/Adafruit_Learning_System_Guides
0
1612531
<gh_stars>0 # SPDX-FileCopyrightText: 2020 <NAME> for Adafruit Industries # # SPDX-License-Identifier: MIT import time from datetime import datetime import board import digitalio import adafruit_max31855 from google.oauth2.service_account import Credentials from googleapiclient.discovery import build #--| User Config...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 10937, 29928, 29990, 29899, 2283, 11882, 1266, 1626, 29901, 29871, 29906, 29900, 29906, 29900, 529, 5813, 29958, 363, 23255, 29888, 9216, 12157, 2722, 13, 29937, 13, 29937, 10937, 29...
tests/hospital_resident/test_solver.py
drvinceknight/matching
0
28452
""" Unit tests for the HR solver. """ import pytest from matching import Matching from matching import Player as Resident from matching.games import HospitalResident from matching.players import Hospital from .params import HOSPITAL_RESIDENT, make_game, make_prefs @HOSPITAL_RESIDENT def test_init(resident_names, h...
[ 1, 9995, 13223, 6987, 363, 278, 379, 29934, 899, 369, 29889, 9995, 13, 13, 5215, 11451, 1688, 13, 13, 3166, 9686, 1053, 14514, 292, 13, 3166, 9686, 1053, 14574, 408, 2538, 1693, 13, 3166, 9686, 29889, 29887, 1280, 1053, 15967, 1666, 1...
HSI_Data_Preparation.py
fjpsxh/CNN_HSIC_MRF
56
31839
<filename>HSI_Data_Preparation.py<gh_stars>10-100 # -*- coding: utf-8 -*- """ Created on Sat Feb 18 16:21:13 2017 @author: <NAME> This code is modified based on https://github.com/KGPML/Hyperspectral """ import scipy.io import numpy as np from random import shuffle import random import scipy.ndimage from skimage.util ...
[ 1, 529, 9507, 29958, 29950, 5425, 29918, 1469, 29918, 6572, 862, 362, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, ...
harpoon/src/plugins/Selfroles/functions/SetupAddSelfrole.py
xezzz/Harpoon
0
102027
async def setupAddSelfrole(plugin, ctx, name, role, roles): role_id = role.id name = name.lower() if role_id in [roles[x] for x in roles] or name in roles: return await ctx.send(plugin.t(ctx.guild, "already_selfrole", _emote="WARN")) if role.position >= ctx.guild.me.top_role.position: ...
[ 1, 29871, 13, 13, 13, 12674, 822, 6230, 2528, 24313, 12154, 29898, 8582, 29892, 12893, 29892, 1024, 29892, 6297, 29892, 16178, 1125, 13, 1678, 6297, 29918, 333, 353, 6297, 29889, 333, 13, 1678, 1024, 353, 1024, 29889, 13609, 580, 13, 16...
pyaz/sf/managed_application/__init__.py
py-az-cli/py-az-cli
0
1600985
from ... pyaz_utils import _call_az def list(cluster_name, resource_group): ''' List managed applications of a given managed cluster. Required Parameters: - cluster_name -- Specify the name of the cluster, if not given it will be same as resource group name - resource_group -- Specify the resource...
[ 1, 515, 2023, 11451, 834, 29918, 13239, 1053, 903, 4804, 29918, 834, 13, 13, 1753, 1051, 29898, 19594, 29918, 978, 29892, 6503, 29918, 2972, 1125, 13, 1678, 14550, 13, 1678, 2391, 8745, 8324, 310, 263, 2183, 8745, 9867, 29889, 13, 13, ...
looking_for_group/helpdesk/views.py
andrlik/looking-for-group
0
121923
import logging from braces.views import PrefetchRelatedMixin, SelectRelatedMixin from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.core.cache import cache from django.forms import modelform_factory from django.http import Http404, HttpResponseNotAllowed, HttpResp...
[ 1, 1053, 12183, 13, 13, 3166, 4105, 778, 29889, 7406, 1053, 27611, 3486, 9662, 630, 29924, 861, 262, 29892, 7605, 9662, 630, 29924, 861, 262, 13, 3166, 9557, 29889, 21570, 1053, 7191, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 28...
ddexreader/ddexreader.py
iwalkdaline/ddex-reader
0
150024
from ddexreader import ern382 import pyxb def open_ddex(path): """ Open an XML from a path and parse it into a DDEX data structure. This script automatically finds which ERN version to use. Args: path (str): path to the XML file. Returns: A DDEX data structure. The type depends ...
[ 1, 29871, 13, 3166, 270, 1390, 16950, 1053, 22276, 29941, 29947, 29906, 13, 5215, 11451, 29916, 29890, 13, 13, 13, 1753, 1722, 29918, 29881, 1390, 29898, 2084, 1125, 13, 1678, 9995, 13, 1678, 4673, 385, 6560, 515, 263, 2224, 322, 6088, ...
src/backbones/Rethinking.py
NeurAI-Lab/biHomE
19
105862
<gh_stars>10-100 import torch import torch.nn as nn from src.backbones.utils import ResNet50ConvBlock from src.backbones.utils import ResNet50IdentityBlock from src.backbones.utils import ResNet50DeconvBlock from src.backbones.utils import ResNet34ConvBlock from src.backbones.utils import ResNet34IdentityBlock class...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 13, 3166, 4765, 29889, 1627, 29890, 2873, 29889, 13239, 1053, 2538, 6779, 29945...
cairotext/templatetags/cairotext.py
akaihola/django-cairo-text
4
61076
from django import template register = template.Library() from django.template import Node, TemplateSyntaxError, Variable from django.core.mail import mail_admins try: from hashlib import md5 except ImportError: from md5 import md5 import struct from urlparse import urljoin from os import remove, rename from ...
[ 1, 515, 9557, 1053, 4472, 13, 9573, 353, 4472, 29889, 12284, 580, 13, 13, 3166, 9557, 29889, 6886, 1053, 9071, 29892, 25663, 16676, 2392, 29892, 28736, 13, 3166, 9557, 29889, 3221, 29889, 2549, 1053, 10524, 29918, 328, 29885, 1144, 13, ...
src/apiron/service/discoverable.py
tushar-deepsource/apiron
109
11587
from typing import List, Type from apiron.service.base import ServiceBase class DiscoverableService(ServiceBase): """ A Service whose hosts are determined via a host resolver. A host resolver is any class with a :func:`resolve` method that takes a service name as its sole argument and returns a l...
[ 1, 515, 19229, 1053, 2391, 29892, 5167, 13, 13, 3166, 3095, 381, 265, 29889, 5509, 29889, 3188, 1053, 6692, 5160, 13, 13, 13, 1990, 8565, 957, 519, 3170, 29898, 3170, 5160, 1125, 13, 1678, 9995, 13, 1678, 319, 6692, 5069, 18982, 526, ...
iris/src/iris/main.py
headma5ter/wall-e
0
20084
<filename>iris/src/iris/main.py from matplotlib import pyplot as plt import matplotlib.lines as lines from statistics import mode, StatisticsError from csv import QUOTE_ALL import pandas as pd import pathlib import json from iris import logger from iris import config from iris import classifier from iris.he...
[ 1, 529, 9507, 29958, 381, 275, 29914, 4351, 29914, 381, 275, 29914, 3396, 29889, 2272, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 30004, 13, 5215, 22889, 29889, 9012, 408, 3454, 30004, 13, 3166, 13964, 1053, 4464, 29892, 27098, 2392,...
singlet/io/csv/__init__.py
iosonofabio/singlet
11
182999
<gh_stars>10-100 # vim: fdm=indent # author: <NAME> # date: 02/08/17 # content: Support module for filenames related to CSV/TSV files. # Modules import numpy as np from singlet.config import config csv_formats = ['csv', 'tsv', 'csv.gz', 'tsv.gz'] # Parser def parse_samplesheet(path, fmt): import pa...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 325, 326, 29901, 285, 18933, 29922, 12860, 13, 29937, 4148, 29901, 268, 529, 5813, 29958, 13, 29937, 2635, 29901, 4706, 29900, 29906, 29914, 29900,...
timeparse/LunarSolarConverter/__init__.py
tornadoyi/timeparse
0
7829
# -*- coding: utf-8 -*- __author__ = 'isee15' import LunarSolarConverter converter = LunarSolarConverter.LunarSolarConverter() def LunarToSolar(year, month, day, isleap = False): lunar = LunarSolarConverter.Lunar(year, month, day, isleap) solar = converter.LunarToSolar(lunar) return (solar.solarYear, sol...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 1649, 8921, 1649, 353, 525, 895, 29872, 29896, 29945, 29915, 13, 13, 5215, 365, 348, 279, 29903, 10170, 18545, 13, 13, 535, 13549, 353, 365, 348, 279, ...
src/sashimi/__main__.py
solstag/isgc-congress
0
157512
<reponame>solstag/isgc-congress import sys from pathlib import Path from . import get_data from .clean import check_clean # User input ISGC_FILES_DIR = Path(sys.argv[1] if len(sys.argv) > 1 else ".") ISGC_FILES = [ ISGC_FILES_DIR / file for file in ["abstracts_contents_2015.tsv", "abstracts_contents_1719.tsv"]...
[ 1, 529, 276, 1112, 420, 29958, 2929, 24403, 29914, 275, 27354, 29899, 535, 3663, 13, 5215, 10876, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 869, 1053, 679, 29918, 1272, 13, 3166, 869, 14941, 1053, 1423, 29918, 14941, 13, 13, 29937, ...
tests/util.py
cook-health/messaging
0
102250
import re import pytest try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import responses def request_body(): return responses.calls[0].request.body def request_query(): return urlparse(responses.calls[0].request.url).query def request_user_agent(): r...
[ 1, 1053, 337, 13, 13, 5215, 11451, 1688, 13, 13, 2202, 29901, 13, 1678, 515, 3142, 1982, 29889, 5510, 1053, 3142, 5510, 13, 19499, 16032, 2392, 29901, 13, 1678, 515, 3142, 5510, 1053, 3142, 5510, 13, 13, 5215, 20890, 13, 13, 13, 175...
scripts/colour_names.py
cbosoft/aite
0
192071
<reponame>cbosoft/aite<gh_stars>0 from matplotlib import pyplot as plt import numpy as np NAMES_OF_COLOURS = [ (( 0.0, 1.00, 1.00), 'red'), (( 4.0, 0.71, 1.00), 'orange-red'), (( 35.0, 0.92, 0.53), 'brown'), (( 45.0, 1.00, 1.00), 'orange'), (( 60.0, 1.00, 1.00), 'yellow'), (( 84.0, 0.82...
[ 1, 529, 276, 1112, 420, 29958, 10702, 9064, 615, 29914, 29874, 568, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 13, 5813, 29903, 29918, 9800, 29918, 3217, ...
GitSearch.py
inishchith/GithubTools
1
24319
# Find file contents via various criteria.
[ 1, 396, 10987, 934, 8118, 3025, 5164, 16614, 29889, 2 ]
accounts/tests.py
HerbyDE/jagdreisencheck-webapp
0
39988
from django.contrib.auth.hashers import check_password from django.test import TestCase from accounts.forms import CreateBaseUserInstance from accounts.models import User # Unit tests for SignUp and Registration class UserManagementTestCase(TestCase): def test_create_base_user_form(self): ''' Te...
[ 1, 515, 9557, 29889, 21570, 29889, 5150, 29889, 8568, 414, 1053, 1423, 29918, 5630, 13, 3166, 9557, 29889, 1688, 1053, 4321, 8259, 13, 13, 3166, 15303, 29889, 9514, 1053, 6204, 5160, 2659, 4998, 13, 3166, 15303, 29889, 9794, 1053, 4911, ...
symposion/speakers/migrations/0001_initial.py
azkarmoulana/pycon
154
1613217
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ m...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 3166, 9557, 29889, 2585, 1053, 4733, 29892, 9725, 800, 13, 5215, 12865, 13, 3166,...
__pkg_metadata__.py
douglatornell/randopony-tetra
1
1605268
<reponame>douglatornell/randopony-tetra """RandoPony-tetra package metadata. """ # pragma: no cover number = '2017' release = '.1' dev_status = '5 - Production/Stable'
[ 1, 529, 276, 1112, 420, 29958, 29881, 692, 29880, 1061, 18437, 29914, 9502, 459, 2592, 29899, 29873, 27280, 13, 15945, 29908, 29934, 1743, 29925, 2592, 29899, 29873, 27280, 3577, 15562, 29889, 13, 15945, 29908, 13, 13, 29937, 282, 23929, ...
youtuatools/extractor/ctv.py
Pagasis/YouTua
47
1612176
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class CTVIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?ctv\.ca/(?P<id>(?:show|movie)s/[^/]+/[^/?#&]+)" _TESTS = [ { "url": "https://www.ctv.ca/shows/your-morning/wednesday-december-23-2020-s5e...
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 3166, 869, 9435, 1053, 22140, 5647, 28891, 13, 13, 13, 1990, 315, 8050, 8673, 29898, 3401, 5647, 28891, 1125, 13, 167...
operators.py
fomightez/stable-fluids
1
181453
<filename>operators.py from functools import reduce from math import factorial import numpy as np import scipy.sparse as sp def differences(accuracy, order): # Implemented based on the article here: http://web.media.mit.edu/~crtaylor/calculator.html # By the properties of square Vandermonde matrices this mat...
[ 1, 529, 9507, 29958, 3372, 4097, 29889, 2272, 13, 3166, 2090, 312, 8789, 1053, 10032, 13, 3166, 5844, 1053, 7329, 616, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 4560, 2272, 29889, 29879, 5510, 408, 805, 13, 13, 13, 1753, 12651, 29898,...
algorithm/deep_learning/neural_network6.py
kake777/python_sample
0
39852
#ミニバッチ学習 import numpy as np from dataset.mnist import load_mnist (x_train, t_train), (x_test, t_test) =\ load_mnist(normalize=True, one_hot_label=True) print(x_train.shape) print(t_train.shape) train_size = x_train.shape[0] batch_size = 10 batch_mask = np.random.choice(train_size, batch_size) x_batch = x_train[b...
[ 1, 396, 30627, 30635, 30517, 30317, 30656, 30415, 234, 194, 149, 13, 5215, 12655, 408, 7442, 13, 3166, 8783, 29889, 23521, 391, 1053, 2254, 29918, 23521, 391, 13, 13, 29898, 29916, 29918, 14968, 29892, 260, 29918, 14968, 511, 313, 29916, ...
Aula 07/ex6.py
diegorafaelvieira/Programacao-1
0
22725
<reponame>diegorafaelvieira/Programacao-1 val = int(input("Valor:")) soma = val maior = val menor = val for i in range(0,9): val = int(input("Valor:")) if val>maior: maior = val if val<menor: menor=val soma+=val print("O maior valor é:",maior) print("O menor valor é:",menor) print("A m...
[ 1, 529, 276, 1112, 420, 29958, 29881, 5876, 272, 2142, 4271, 25965, 3055, 29914, 9283, 562, 6241, 29899, 29896, 13, 791, 353, 938, 29898, 2080, 703, 1440, 272, 29901, 5783, 13, 29879, 4125, 353, 659, 13, 655, 1611, 353, 659, 13, 1527,...
bills/models.py
leogregianin/create-automatic-api
8
186604
<reponame>leogregianin/create-automatic-api<filename>bills/models.py from django.db import models class Category(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) operation = models.IntegerField() class Meta: managed = False db_table = '...
[ 1, 529, 276, 1112, 420, 29958, 280, 468, 1727, 713, 262, 29914, 3258, 29899, 17405, 2454, 29899, 2754, 29966, 9507, 29958, 29890, 6090, 29914, 9794, 29889, 2272, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 13, 13, 1990, 17943, 29898, 9...
poem_generator/PoemCallback.py
Aaronsom/poem-generation
0
32677
from tensorflow.keras.callbacks import Callback from poem_generator.word_generator import generate_poem class PoemCallback(Callback): def __init__(self, poems, seed_length, dictionary, single=True): super(PoemCallback, self).__init__() self.poems = poems self.dictionary = dictionary ...
[ 1, 515, 26110, 29889, 3946, 294, 29889, 14035, 29879, 1053, 8251, 1627, 13, 3166, 26576, 29918, 27959, 29889, 1742, 29918, 27959, 1053, 5706, 29918, 1129, 331, 13, 13, 13, 1990, 3929, 331, 10717, 29898, 10717, 1125, 13, 13, 1678, 822, 4...
Section 7 - Text Classification/Text Classification Part 2 - Pickling and Unpickling dataset.py
kungfumas/bahasa-alami
169
64389
# Text Classifiation using NLP # Importing the libraries import numpy as np import re import pickle import nltk from nltk.corpus import stopwords from sklearn.datasets import load_files nltk.download('stopwords') # Importing the dataset reviews = load_files('txt_sentoken/') X,y = reviews.data,reviews.target # Pic...
[ 1, 396, 3992, 4134, 6832, 362, 773, 405, 13208, 13, 13, 29937, 16032, 292, 278, 9562, 13, 5215, 12655, 408, 7442, 13, 5215, 337, 13, 5215, 5839, 280, 29871, 13, 5215, 302, 1896, 29895, 13, 3166, 302, 1896, 29895, 29889, 2616, 13364, ...
fupan.py
huobingli/fpyd
0
134896
<filename>fupan.py<gh_stars>0 import requests import json from fpdata import * from Middleware import * # 热门研报 # type 1 最新 # type 2 近一周 # type 3 新财富分析师 page_num = 50 # 第一个tab页面 热门研报 # 近24小时 hot_new_url = "https://www.fupanyoudao.com/v1/api/report?page_num=1&page_size=%d&type=1" # 近一周 hot_later_url = "https://www.fu...
[ 1, 529, 9507, 29958, 29888, 786, 273, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 7274, 13, 5215, 4390, 13, 13, 3166, 285, 29886, 1272, 1053, 334, 13, 3166, 14253, 2519, 1053, 334, 13, 29937, 29871, 234, 134, ...
instance.py
frayel/camundacmd
1
192262
import argparse import json import sys import traceback from camundatools.definition import Definition from camundatools.instance import Instance from camundatools.task import Task class InstanceCommand: args: argparse.Namespace instance: Instance definition: Definition task: Task def __init__(...
[ 1, 1053, 1852, 5510, 13, 5215, 4390, 13, 5215, 10876, 13, 5215, 9637, 1627, 13, 13, 3166, 3949, 870, 1219, 3775, 29889, 16553, 1053, 21940, 13, 3166, 3949, 870, 1219, 3775, 29889, 8758, 1053, 2799, 749, 13, 3166, 3949, 870, 1219, 3775...
homeassistant/components/sonarr/sensor.py
tbarbette/core
6
64593
"""Support for Sonarr sensors.""" from datetime import timedelta import logging from typing import Any, Callable, Dict, List, Optional from sonarr import Sonarr, SonarrConnectionError, SonarrError from homeassistant.config_entries import ConfigEntry from homeassistant.const import DATA_GIGABYTES from homeassistant.he...
[ 1, 9995, 14039, 363, 5791, 2749, 4771, 943, 1213, 15945, 13, 3166, 12865, 1053, 5335, 287, 2554, 13, 5215, 12183, 13, 3166, 19229, 1053, 3139, 29892, 8251, 519, 29892, 360, 919, 29892, 2391, 29892, 28379, 13, 13, 3166, 1487, 2749, 1053,...
contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/expectations/expect_column_values_confidence_to_be_greater_than_or_equal_to_threshold_for_data_label.py
zachlindsey/great_expectations
1
1612330
<gh_stars>1-10 """ This is a template for creating custom ColumnMapExpectations. For detailed instructions on how to use it, please see: https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations """ import json from typing import Any impor...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 4013, 338, 263, 4472, 363, 4969, 2888, 12481, 3388, 1252, 1103, 800, 29889, 13, 2831, 13173, 11994, 373, 920, 304, 671, 372, 29892, 3113, 1074, 29...
diplomova_praca/face_features/models.py
MDobransky/thesis-grizzly
1
169838
<reponame>MDobransky/thesis-grizzly from django.db import models # Create your models here. class FaceFeaturesSubmission(models.Model): created = models.DateTimeField(auto_now_add=True) request = models.TextField() selected = models.TextField() num_hints = models.IntegerField()
[ 1, 529, 276, 1112, 420, 29958, 5773, 711, 29878, 550, 3459, 29914, 26533, 29899, 29887, 374, 5617, 368, 13, 3166, 9557, 29889, 2585, 1053, 4733, 30004, 13, 30004, 13, 29937, 6204, 596, 4733, 1244, 22993, 13, 30004, 13, 30004, 13, 1990, ...
kube_log_watcher/agents/__init__.py
dryewo/kubernetes-log-watcher
0
180984
<filename>kube_log_watcher/agents/__init__.py from kube_log_watcher.agents.base import BaseWatcher from kube_log_watcher.agents.appdynamics import AppDynamicsAgent from kube_log_watcher.agents.scalyr import ScalyrAgent __all__ = ( AppDynamicsAgent, BaseWatcher, ScalyrAgent, )
[ 1, 529, 9507, 29958, 29895, 4003, 29918, 1188, 29918, 12344, 261, 29914, 351, 1237, 29914, 1649, 2344, 26914, 2272, 13, 3166, 413, 4003, 29918, 1188, 29918, 12344, 261, 29889, 351, 1237, 29889, 3188, 1053, 7399, 24709, 261, 13, 13, 3166, ...
PyFunceble/checker/syntax/domain_base.py
Centaurioun/PyFunceble
213
47784
<reponame>Centaurioun/PyFunceble """ The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║...
[ 1, 529, 276, 1112, 420, 29958, 29907, 6381, 5338, 1309, 29914, 19737, 25394, 346, 569, 13, 15945, 29908, 13, 1576, 5780, 304, 1423, 278, 20847, 3097, 470, 5877, 310, 5354, 29892, 5641, 470, 3988, 29889, 13, 13, 1057, 13, 13, 13, 268, ...
setup.py
jmbhughes/slidingpuzzle
1
155259
<reponame>jmbhughes/slidingpuzzle<filename>setup.py from setuptools import setup setup( name='slidingpuzzle', version='0.0.1', packages=['slidingpuzzle', 'slidingpuzzle.tests'], url='https://slidingpuzzle.readthedocs.io/en/latest/?', license='MIT', author='jmbhughes', author_email='<EMAIL>'...
[ 1, 529, 276, 1112, 420, 29958, 29926, 8337, 29882, 6129, 267, 29914, 2536, 4821, 29886, 18813, 280, 29966, 9507, 29958, 14669, 29889, 2272, 13, 3166, 731, 21245, 8789, 1053, 6230, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 2536, 4821, ...
AzureWorkloadSnapshotPreReqCLIScripts/helpers.py
shashwattrivedi/Azure-Workload-Backup-Troubleshooting-Scripts
0
147637
# # Copyright 2021 (c) Microsoft Corporation # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this script and associated documentation files (the "script"), to deal # in the script without restriction, including without limitation the rights # to use, copy, modify, m...
[ 1, 396, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 313, 29883, 29897, 7783, 15025, 13, 29937, 13, 29937, 341, 1806, 19245, 13, 29937, 13, 29937, 20894, 2333, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304, 738,...
gamelib/pyglet/app/__init__.py
luciotorre/aiamsori
1
70374
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 <NAME> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions ...
[ 1, 396, 448, 2683, 2683, 2683, 2683, 1378, 5634, 13, 29937, 19484, 1026, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29900, 29953, 29899, 29906, 29900, 29900, 29947, 529, 5813, 29958, 13, 29937, 2178, 10462, 21676, 29889...
tests/test_your_app.py
MQSchleich/continuous-template
0
1604587
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) def test_test(): print("Yeah")
[ 1, 1053, 2897, 13, 5215, 10876, 13, 13, 9675, 29889, 2084, 29889, 7851, 29898, 29900, 29892, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 511, 37...
python/helpers/pycharm_matplotlib_backend/backend_interagg.py
truthiswill/intellij-community
0
196514
<reponame>truthiswill/intellij-community import base64 import matplotlib import os from typing import Dict, Tuple from matplotlib._pylab_helpers import Gcf from matplotlib.backend_bases import FigureManagerBase, ShowBase from matplotlib.backends.backend_agg import FigureCanvasAgg from matplotlib.figure import Figure ...
[ 1, 529, 276, 1112, 420, 29958, 509, 2806, 275, 14043, 29914, 28820, 29899, 23834, 13, 5215, 2967, 29953, 29946, 13, 5215, 22889, 13, 5215, 2897, 13, 13, 3166, 19229, 1053, 360, 919, 29892, 12603, 552, 13, 13, 3166, 22889, 3032, 2272, ...