code
stringlengths
10
805k
def_use_chains
listlengths
0
667
# Import the Twython class from twython import Twython import json import os import pandas as pd from tqdm import tqdm try: os.remove('twitter_dataset.csv') except OSError: pass def main(): old_df = pd.read_csv('data/twitter_dataset_2.csv', lineterminator='\n') #first load the dictonary with the top u...
[ [ [ 47, 54 ], [ 709, 716 ] ], [ [ 62, 66 ] ], [ [ 74, 76 ], [ 129, 131 ] ], [ [ 84, 96 ], [ 213, 215 ], [ 2123, 2125 ] ], [ [ 114,...
""" grdfilter - Filter a grid in the space (or time) domain. """ from pygmt.clib import Session from pygmt.helpers import ( GMTTempFile, build_arg_string, fmt_docstring, kwargs_to_strings, use_alias, ) from pygmt.io import load_dataarray @fmt_docstring @use_alias( D="distance", F="filter"...
[ [ [ 89, 96 ], [ 4425, 4432 ] ], [ [ 129, 140 ], [ 4374, 4385 ] ], [ [ 146, 162 ], [ 4749, 4765 ] ], [ [ 168, 181 ], [ 262, 275 ] ], [ [ ...
"""Data structure of RSS and useful functions. """ # # Copyright (c) 2005-2020 shinGETsu Project. # 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 ...
[ [ [ 1399, 1403 ], [ 4189, 4193 ] ], [ [ 1411, 1413 ], [ 1767, 1769 ] ], [ [ 1421, 1424 ] ], [ [ 1448, 1456 ], [ 4219, 4227 ] ], [ [ 1465, 1469 ...
# Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from .kern import Kern import numpy as np from ...core.parameterization import Param from paramz.transformations import Logexp from paramz.caching import Cache_this class Static(Kern): def __init__(se...
[ [ [ 133, 137 ], [ 294, 298 ] ], [ [ 145, 156 ], [ 744, 746 ], [ 774, 776 ], [ 898, 900 ], [ 978, 980 ], [ 1101, 1103 ], [ 1167, 1169 ...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="slacksdk", version="0.0.1a", author="Thanakrit Juthamongkhon", author_email="thanakrit.ju.work@gmail.com", description="A minimal slack sdk", long_description=long_description, lon...
[ [ [ 7, 17 ], [ 88, 98 ], [ 443, 453 ] ], [ [ 50, 52 ], [ 77, 79 ] ], [ [ 58, 74 ], [ 295, 311 ] ] ]
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Grzegorz Jacenków. # # 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...
[ [ [ 671, 674 ], [ 1031, 1034 ] ], [ [ 682, 684 ], [ 1047, 1049 ] ], [ [ 693, 709 ], [ 4853, 4855 ], [ 5325, 5327 ], [ 4920, 4922 ] ], [ [ ...
from openmmtools import testsystems from simtk.openmm.app import * import simtk.unit as unit import logging import numpy as np from openmmtools.constants import kB from openmmtools import respa, utils logger = logging.getLogger(__name__) # Energy unit used by OpenMM unit system from openmmtools import states, inte...
[ [ [ 24, 35 ], [ 1563, 1574 ] ], [ [ 65, 66 ], [ 2641, 2651 ], [ 2962, 2979 ] ], [ [ 74, 92 ], [ 1606, 1610 ], [ 1812, 1816 ], [ 2035, ...
import os import hashlib def _update_sha256(filename, sha256): """ Updates a SHA-256 algorithm with the filename and the contents of a file. """ block_size = 64 * 1024 # 64 KB with open(filename, 'rb') as input_file: while True: data = input_file.read(block_size) i...
[ [ [ 7, 9 ], [ 687, 689 ], [ 758, 760 ] ], [ [ 17, 24 ], [ 848, 855 ] ], [ [ 31, 45 ], [ 907, 921 ] ], [ [ 454, 463 ] ] ]
def destructure(obj, *params): import operator return operator.itemgetter(*params)(obj) def greet(**kwargs): year, day, puzzle = destructure(kwargs, 'year', 'day', 'puzzle') print('Advent of Code') print(f'-> {year}-{day}-{puzzle}') print('--------------') def load_data(filename): with fil...
[ [ [ 4, 15 ], [ 142, 153 ] ], [ [ 101, 106 ], [ 515, 520 ] ], [ [ 287, 296 ], [ 546, 555 ] ], [ [ 381, 386 ] ], [ [ 674, 686 ] ], [ [...
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. # external from mixbox import fields import cybox.common from cybox.common.tools import ToolInformationList # internal import stix import stix.bindings.stix_common as stix_common_binding # relative from .vocabs im...
[ [ [ 135, 141 ], [ 671, 677 ], [ 761, 767 ], [ 841, 847 ], [ 954, 960 ], [ 1075, 1081 ], [ 1140, 1146 ], [ 3017, 3023 ] ], [ [ 149, 161 ...
import copy from types import GeneratorType class MergeDict(object): """ A simple class for creating new "virtual" dictionaries that actually look up values in more than one dictionary, passed in the constructor. If a key appears in more than one of the given dictionaries, only the first occurrenc...
[ [ [ 7, 11 ], [ 3531, 3535 ], [ 8297, 8301 ], [ 8352, 8356 ], [ 11227, 11231 ] ], [ [ 30, 43 ], [ 2858, 2871 ] ], [ [ 51, 60 ] ], [ [ 2...
import os import sys import dlib import glob import csv import pickle as pp from sklearn.neighbors import KNeighborsClassifier import pandas as pd from sklearn import preprocessing # from sklearn.model_selection import train_test_split import webbrowser from timeit import Timer from keras.preprocessing.image import img...
[ [ [ 7, 9 ], [ 788, 790 ], [ 3590, 3592 ], [ 3656, 3658 ], [ 3712, 3714 ] ], [ [ 17, 20 ] ], [ [ 28, 32 ], [ 1678, 1682 ], [ 1720, 17...
from dyn2sel.dcs_techniques import DCSTechnique import numpy as np from scipy.stats import mode class DESDDSel(DCSTechnique): def predict(self, ensemble, instances, real_labels=None): return ensemble[ensemble.get_max_accuracy()].predict(instances)
[ [ [ 35, 47 ], [ 113, 125 ] ], [ [ 55, 66 ] ], [ [ 91, 95 ] ], [ [ 104, 112 ] ] ]
""" This module provide the case to test the coexistance between TDX guest and non TD guest. There are two types of non-TD guest: 1. Boot with legacy BIOS, it is default loader without pass "-loader" or "-bios" option 2. Boot with OVMF UEFI BIOS, will boot with "-loader" => OVMFD.fd compiled from the late...
[ [ [ 352, 359 ], [ 481, 488 ] ], [ [ 368, 374 ], [ 566, 572 ], [ 615, 621 ] ], [ [ 409, 423 ], [ 1073, 1087 ] ], [ [ 425, 436 ], [ 1180...
import sys import pytest from pre_commit_hooks.loaderon_hooks.tests.util.test_helpers import perform_test_on_file_expecting_result from pre_commit_hooks.loaderon_hooks.general_hooks.check_location import main @pytest.fixture(autouse=True) def clean_sys_argv(): sys.argv = [] # Each line is a directory that ...
[ [ [ 7, 10 ], [ 269, 272 ], [ 355, 358 ], [ 392, 395 ], [ 424, 427 ], [ 461, 464 ], [ 584, 587 ], [ 615, 618 ], [ 655, 658 ], [ ...
""" 1) "a" + "bc" -> abc 2) 3 * "bc" -> bcbcbc 3) "3" * "bc" -> error as we can't use the * operator on two strings 4) abcd"[2] -> c (Just takes the character at index 2 in the string. a has index 0 and b index 1) 5) "abcd"[0:2] -> ab (Returns the substring from index 0 all the way to index n -1 in this case b) 6)...
[]
exp_name = 'basicvsr_vimeo90k_bd' # model settings model = dict( type='BasicVSR', generator=dict( type='BasicVSRNet', mid_channels=64, num_blocks=30, spynet_pretrained='pretrained_models/spynet.pth'), pixel_loss=dict(type='CharbonnierLoss', loss_weight=1.0, reduction='mean')...
[ [ [ 0, 8 ], [ 4435, 4443 ] ], [ [ 52, 57 ] ], [ [ 360, 369 ] ], [ [ 392, 400 ] ], [ [ 477, 495 ], [ 2832, 2850 ] ], [ [ 528, 544 ], ...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from glob import glob from os.path import basename from os.path import splitext from setuptools import find_packages from setuptools import setup with open("README.md", "r") as fh: long_d...
[ [ [ 71, 86 ] ], [ [ 110, 124 ] ], [ [ 143, 147 ], [ 786, 790 ] ], [ [ 168, 176 ], [ 755, 763 ] ], [ [ 197, 205 ], [ 746, 754 ] ], [ ...
# This is an example of firing up PyMOL inside of a subordinate # process via an "import pymol" # # NOTE: for this to work, PyMOL must be installed in a # Python-dependent fashion (e.g. pymol-0_98-bin-win32-py23) etc. # # WARNING: stability issues have been known to occur with this # approach, so anticipate problems.....
[ [ [ 520, 526 ], [ 677, 683 ] ], [ [ 534, 542 ], [ 656, 664 ] ], [ [ 741, 746 ], [ 997, 1002 ], [ 1030, 1035 ], [ 1050, 1055 ], [ 1077, ...
import unittest def linear_sum(S, n): """Return the sum of the first n numbers of sequence S.""" if n == 0: return 0 else: return linear_sum(S, n - 1) + S[n - 1] class TestLinearSum(unittest.TestCase): def test_linear_sum(self): S = [4, 3, 6, 2, 8] self.assertEqual(23,...
[ [ [ 7, 15 ], [ 212, 220 ], [ 371, 379 ] ], [ [ 21, 31 ], [ 159, 169 ], [ 321, 331 ] ], [ [ 198, 211 ] ] ]
from django.urls import path from . import views #here are our app-connections.(these connection just affect to our app, not at entire system) #each connection going us to a view functionality #these connections needs to be connect with url root, because that's where the requests come from app_name = 'polls' urlpat...
[ [ [ 24, 28 ], [ 334, 338 ], [ 389, 393 ], [ 455, 459 ], [ 528, 532 ] ], [ [ 44, 49 ], [ 343, 348 ], [ 407, 412 ], [ 480, 485 ], ...
""" Menu handling file - Every menu is of the Menu class - Menus are initialized with an array of options - What a menu option does is determined by the following table: - "set_state_map": s.set_state('map') - "exit": exit() """ from config import * import sys class Menu: def __init__(self, options, sel_inde...
[ [ [ 252, 253 ], [ 996, 997 ], [ 1103, 1104 ], [ 1134, 1135 ], [ 1285, 1286 ], [ 1370, 1371 ], [ 2047, 2048 ] ], [ [ 261, 264 ], [ 2109, ...
from enum import Enum class GameScenes(Enum): FIRST_LEVEL = 1 SECOND_LEVEL = 2 THIRD_LEVEL = 3 FOURTH_LEVEL = 4 FIFTH_LEVEL = 5
[ [ [ 17, 21 ], [ 41, 45 ] ], [ [ 30, 40 ] ] ]
""" login app """ from zoom.apps import App class MyApp(App): pass app = MyApp()
[ [ [ 45, 48 ], [ 63, 66 ] ], [ [ 57, 62 ], [ 86, 91 ] ], [ [ 80, 83 ] ] ]
from cohere import Diffractometer class Diffractometer_34idc(Diffractometer): """ Subclass of Diffractometer. Encapsulates "34idc" diffractometer. """ name = "34idc" sampleaxes = ('y+', 'z-', 'y+') # in xrayutilities notation detectoraxes = ('y+', 'x-') incidentaxis = (0, 0, 1) sample...
[ [ [ 19, 33 ], [ 63, 77 ] ], [ [ 42, 62 ], [ 476, 496 ], [ 606, 626 ] ], [ [ 528, 549 ] ], [ [ 709, 730 ] ] ]
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ [ [ 826, 836 ], [ 874, 884 ], [ 911, 921 ] ], [ [ 843, 873 ] ] ]
# -*- coding: utf-8 -*- """ Statement pre-processors. """ def clean_whitespace(chatbot, statement): """ Remove any consecutive whitespace characters from the statement text. """ import re # Replace linebreaks and tabs with spaces statement.text = statement.text.replace('\n', ' ').replace('\r'...
[ [ [ 64, 80 ] ], [ [ 555, 568 ] ], [ [ 983, 999 ] ] ]
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import sys class NaluWind(CMakePackage): """Nalu-Wind: Wind energy focused variant of Nalu.""" ...
[ [ [ 216, 217 ], [ 246, 258 ], [ 503, 510 ], [ 557, 564 ], [ 682, 689 ], [ 796, 803 ], [ 884, 891 ], [ 980, 987 ], [ 1070, 1077 ], [ ...
sentence = input().split() ae = 0 for word in sentence: if 'ae' in word: ae += 1 if ae/len(sentence) >= 0.4: print("dae ae ju traeligt va") else: print("haer talar vi rikssvenska")
[ [ [ 0, 8 ], [ 47, 55 ], [ 105, 113 ] ], [ [ 28, 30 ], [ 86, 88 ], [ 98, 100 ] ], [ [ 39, 43 ], [ 72, 76 ] ] ]
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import with_metaclass, viewkeys, PY3 import types try: from collections import OrderedDict except ImportError: from pip._vendor.ordereddict import OrderedDict from . import _inputstream from . import _tokenizer from . im...
[ [ [ 23, 38 ] ], [ [ 40, 48 ] ], [ [ 50, 66 ] ], [ [ 95, 109 ], [ 14483, 14497 ] ], [ [ 111, 119 ], [ 116535, 116543 ], [ 116561, 116569 ] ...
from docutils.parsers.rst import roles from docutils import nodes from docutils.parsers.rst.states import Inliner import docutils.parsers.rst.roles def strike_role(role, rawtext, text, lineno, inliner: Inliner, options={}, content=[]): """ USAGE: :del:`your context` :param role: my-strike :param raw...
[ [ [ 33, 38 ], [ 682, 687 ] ], [ [ 60, 65 ], [ 582, 587 ] ], [ [ 106, 113 ], [ 204, 211 ] ], [ [ 121, 147 ] ], [ [ 154, 165 ], [ 71...
print("Hello Github!")
[]
# Author: Khalid - naam toh suna hi hoga # Steps to run -> # :~$ python yoyo.py from flask import Flask from flask import request from flask import render_template import stringComparison app = Flask(__name__) @app.route('/') def my_form(): return render_template("my-form.html") @app.route('/', methods=['POST'])...
[ [ [ 98, 103 ], [ 195, 200 ] ], [ [ 122, 129 ], [ 354, 361 ], [ 388, 395 ] ], [ [ 148, 163 ], [ 254, 269 ] ], [ [ 171, 187 ], [ 434, ...
# Copyright 2019 Ram Rachum and collaborators. # This program is distributed under the MIT license. import io import textwrap import threading import types import sys from pysnooper.utils import truncate from python_toolbox import sys_tools, temp_file_tools import pytest import pysnooper from pysnooper.variables imp...
[ [ [ 108, 110 ], [ 576, 578 ], [ 5350, 5352 ], [ 12850, 12852 ], [ 16064, 16066 ], [ 17144, 17146 ], [ 25694, 25696 ], [ 26825, 26827 ], [ 28218, ...
import logging import pathlib from unittest import mock from cabinetry import templates @mock.patch("cabinetry.route.apply_to_all_templates") @mock.patch("cabinetry.templates.builder._Builder") def test_build(mock_builder, mock_apply): config = {"General": {"HistogramFolder": "path/", "InputPath": "file.root"}} ...
[ [ [ 7, 14 ], [ 1598, 1605 ], [ 2567, 2574 ] ], [ [ 22, 29 ], [ 456, 463 ], [ 1920, 1927 ], [ 2466, 2473 ], [ 2910, 2917 ] ], [ [ 51, ...
#!/usr/bin/env python import socket import re class RobotFeedback: """Class for the Mecademic Robot allowing for live positional feedback of the Mecademic Robot. Attributes ---------- address : string The IP address associated to the Mecademic robot. socket : socket Socket con...
[ [ [ 29, 35 ], [ 2360, 2366 ], [ 2411, 2417 ], [ 2431, 2437 ], [ 2622, 2628 ], [ 3433, 3439 ] ], [ [ 43, 45 ], [ 1911, 1913 ] ], [ [ 54, ...
""" Regression tests for Model inheritance behavior. """ from __future__ import unicode_literals import datetime from operator import attrgetter from unittest import expectedFailure from django import forms from django.test import TestCase from .models import ( ArticleWithAuthor, BachelorParty, BirthdayParty, Bu...
[ [ [ 80, 96 ] ], [ [ 105, 113 ], [ 5034, 5042 ], [ 5183, 5191 ], [ 8199, 8207 ], [ 8382, 8390 ], [ 8566, 8574 ], [ 10349, 10357 ], [ 12554, ...
import os # import torch import argparse import base64 import sys import io import torch import torch.nn as nn from torchvision import transforms from torch.utils.data import DataLoader from torch.utils.data.sampler import SubsetRandomSampler def fullmodel2base64(model): buffer = io.BytesIO() torch.save(mode...
[ [ [ 7, 9 ] ], [ [ 32, 40 ] ], [ [ 48, 54 ], [ 369, 375 ], [ 490, 496 ] ], [ [ 62, 65 ], [ 616, 619 ] ], [ [ 73, 75 ], [ 288, ...
#Question No 6 #Risen Each Year For Next 25 Years year =1 millimeter= 1.6 while(year<=25): years=(year * millimeter) print(" The ocean will rises each year is=" , years,) year+=1
[ [ [ 52, 56 ], [ 85, 89 ], [ 106, 110 ], [ 185, 189 ] ], [ [ 62, 72 ], [ 113, 123 ] ], [ [ 99, 104 ], [ 174, 179 ] ] ]
from fastapi import FastAPI import uvicorn from src.routes import ( user, employee, car, inventory, product, service, dealership, department, ) from fastapi.middleware.cors import CORSMiddleware from src.settings.envvariables import Settings Settings().check_variables() app = FastAPI()...
[ [ [ 20, 27 ], [ 311, 318 ] ], [ [ 35, 42 ] ], [ [ 72, 76 ], [ 515, 519 ] ], [ [ 82, 90 ], [ 577, 585 ] ], [ [ 96, 99 ], [ 651, ...
from django.db.models import Q from apps.configattribute.models import ConfigAttribute from apps.property.models import GenericProperty from apps.utils.data_helpers.manager import DataManager from apps.utils.iotile.variable import SYSTEM_VID from apps.utils.timezone_utils import display_formatted_ts class TripInfo(o...
[ [ [ 29, 30 ], [ 3751, 3752 ], [ 3772, 3773 ], [ 3819, 3820 ] ], [ [ 72, 87 ], [ 1613, 1628 ] ], [ [ 121, 136 ], [ 3455, 3470 ] ], [ [ ...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ [ [ 688, 703 ] ], [ [ 766, 782 ] ], [ [ 830, 833 ], [ 141536, 141539 ], [ 141785, 141788 ] ], [ [ 841, 852 ], [ 144834, 144845 ], [ 145569, 145580 ...
""" :author: Thomas Delaet <thomas@delaet.org> """ from velbus.modules.vmb4ry import VMB4RYModule from velbus.modules.vmbin import VMB6INModule from velbus.modules.vmbin import VMB7INModule
[ [ [ 86, 98 ] ], [ [ 132, 144 ] ], [ [ 178, 190 ] ] ]
from unittest.mock import MagicMock from django.urls import reverse from hijack.contrib.admin import HijackUserAdminMixin from hijack.tests.test_app.models import Post class TestHijackUserAdminMixin: def test_user_admin(self, admin_client): url = reverse("admin:test_app_customuser_changelist") r...
[ [ [ 26, 35 ], [ 926, 935 ], [ 1407, 1416 ] ], [ [ 61, 68 ], [ 263, 270 ], [ 584, 591 ] ], [ [ 103, 123 ], [ 982, 1002 ], [ 1185, 120...
""" Django settings for modelpractice project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
[ [ [ 321, 323 ], [ 408, 410 ], [ 424, 426 ], [ 440, 442 ], [ 2236, 2238 ] ], [ [ 397, 405 ], [ 2249, 2257 ] ], [ [ 673, 683 ] ], [ [ 80...
# -*- coding: utf-8 -*- """ Command line configuration parser """ import sys import os.path import argparse import configparser def parse(): """ Parse command line options """ parser = argparse.ArgumentParser( description='Dynamic DynamoDB - Auto provisioning AWS DynamoDB') parser.add_argument( ...
[ [ [ 73, 76 ], [ 8231, 8234 ] ], [ [ 84, 91 ], [ 7983, 7985 ], [ 8016, 8018 ], [ 8050, 8052 ] ], [ [ 99, 107 ], [ 195, 203 ] ], [ [ 115...
# -*- coding: utf-8 -*- from requests import Session from requests.adapters import HTTPAdapter from requests.exceptions import ConnectionError import json from time import sleep, time from pprint import pprint from itertools import cycle from .storage import nodes, api_total #from .proxy import Proxy class Http(): ...
[ [ [ 46, 53 ], [ 329, 336 ] ], [ [ 84, 95 ], [ 1248, 1259 ] ], [ [ 128, 143 ] ], [ [ 152, 156 ], [ 1397, 1401 ] ], [ [ 174, 179 ], [ ...
import json import pathlib import sys import time from typing import Sequence import bentoml from bentoml.adapters import ( DataframeInput, FileInput, ImageInput, JsonInput, MultiImageInput, ) from bentoml.frameworks.sklearn import SklearnModelArtifact from bentoml.handlers import DataframeHandler ...
[ [ [ 7, 11 ], [ 3026, 3030 ] ], [ [ 19, 26 ], [ 3494, 3501 ] ], [ [ 34, 37 ], [ 3365, 3368 ], [ 3399, 3402 ] ], [ [ 45, 49 ], [ 3235, ...
from PIL import Image images = [] for i in range(9): images.append(Image.open(f"../examples/lf/results/render_0{i}_{i}.0.png")) images[0].save("../examples/lf/out.gif", save_all=True, append_images=images[1:], duration=100, loop=0)
[ [ [ 16, 21 ], [ 72, 77 ] ], [ [ 23, 29 ], [ 58, 64 ], [ 133, 139 ], [ 203, 209 ] ], [ [ 39, 40 ], [ 117, 118 ], [ 121, 122 ] ]...
from django.db import models from django.utils.translation import ugettext_lazy as _ from model_utils import FieldTracker from waldur_core.core import models as core_models from waldur_core.structure import models as structure_models class VirtualMachineMixin(models.Model): class Meta: abstract = True ...
[ [ [ 22, 28 ], [ 263, 269 ], [ 334, 340 ], [ 540, 546 ], [ 661, 667 ], [ 780, 786 ], [ 902, 908 ], [ 2138, 2144 ], [ 2189, 2195 ], [ ...
# -*- coding: utf-8 -*- # Meta __version__ = "0.0.4" __author__ = 'Rhys Elsmore' __email__ = 'me@rhys.io' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2014 Rhys Elsmore' # Module Namespace from .core import MetricsLogger, GroupMetricsLogger from .api import timer, increment, sample, measure, unique, group ...
[ [ [ 33, 44 ] ], [ [ 55, 65 ] ], [ [ 83, 92 ] ], [ [ 108, 119 ] ], [ [ 135, 148 ] ], [ [ 220, 233 ] ], [ [ 235, 253 ] ], [ [ 271, 276...
## Copyright 2019 The Rules Protobuf Authors. All rights reserved. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless require...
[ [ [ 746, 781 ], [ 1027, 1062 ], [ 1249, 1284 ] ], [ [ 988, 1013 ] ], [ [ 1210, 1235 ] ] ]
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ [ [ 888, 896 ] ], [ [ 905, 909 ], [ 4788, 4792 ] ], [ [ 917, 925 ], [ 1122, 1130 ], [ 6247, 6255 ], [ 7805, 7813 ], [ 12528, 12536 ], [ 13...
import json from rest_framework.test import APITestCase from django.urls import reverse from rest_framework import status from django.contrib.auth import get_user_model from authors.apps.articles.models import Articles from authors.apps.profiles.models import Profile class TestGetEndpoint(APITestCase): def set...
[ [ [ 7, 11 ], [ 4509, 4513 ] ], [ [ 45, 56 ], [ 294, 305 ] ], [ [ 81, 88 ], [ 1154, 1161 ], [ 1453, 1460 ], [ 1782, 1789 ], [ 2102, 2...
from abc import ABCMeta, abstractmethod from frozendict import frozendict class ResourceManager(metaclass=ABCMeta): def __init__(self): self.wv_filename = "" self.parsed_filename = "" @abstractmethod def write(self): """ parse the raw file/files and write the data to disk...
[ [ [ 16, 23 ], [ 109, 116 ] ], [ [ 25, 39 ], [ 213, 227 ], [ 369, 383 ] ], [ [ 64, 74 ], [ 542, 552 ] ], [ [ 83, 98 ] ] ]
import torch.utils.data as data import os import os.path from numpy.random import randint from ops.io import load_proposal_file from transforms import * from ops.utils import temporal_iou class SSNInstance: def __init__( self, start_frame, end_frame, video_frame_count, fps...
[ [ [ 7, 31 ], [ 4576, 4580 ] ], [ [ 40, 42 ] ], [ [ 50, 57 ], [ 6773, 6775 ], [ 6959, 6961 ], [ 7092, 7094 ] ], [ [ 83, 90 ], [ 12799, ...
from .routes import app as websockets_routes
[ [ [ 20, 44 ] ] ]
import json from server import db from sqlalchemy.ext import mutable class JsonEncodedDict(db.TypeDecorator): impl = db.Text def process_bind_param(self, value, dialect): if value is None: return '{}' else: return json.dumps(value) def process_result_value(self, val...
[ [ [ 7, 11 ], [ 263, 267 ], [ 415, 419 ] ], [ [ 31, 33 ], [ 92, 94 ], [ 122, 124 ], [ 509, 511 ], [ 570, 572 ], [ 591, 593 ], [ ...
import os import sys import re import types import itertools import matplotlib.pyplot as plt import numpy import scipy.stats import numpy.ma import Stats import Histogram from cgatReport.Tracker import * from cpgReport import * ########################################################################## class replica...
[ [ [ 7, 9 ] ], [ [ 17, 20 ] ], [ [ 28, 30 ] ], [ [ 38, 43 ] ], [ [ 51, 60 ] ], [ [ 68, 92 ] ], [ [ 100, 105 ] ], [ [ 113, 124 ] ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-07-04 00:02 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('library', '0001_initial'), ] operations = [ ...
[ [ [ 96, 112 ] ], [ [ 136, 146 ], [ 206, 216 ], [ 322, 332 ], [ 430, 440 ] ], [ [ 148, 154 ], [ 533, 539 ] ], [ [ 162, 187 ], [ 572, ...
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', }, } ROOT_URLCONF = 'django_autoconfig.autourlconf' INSTALLED_APPS = [ 'django.contrib.auth', 'nuit', ] STATIC_URL = '/static/' STATIC_ROOT = '.static' from django_autoconfig.autoconfig import configure_settings configure_setting...
[ [ [ 0, 9 ] ], [ [ 88, 100 ] ], [ [ 135, 149 ] ], [ [ 195, 205 ] ], [ [ 219, 230 ] ], [ [ 284, 302 ], [ 303, 321 ] ] ]
""" Django settings for my_blog project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os #...
[ [ [ 315, 317 ], [ 402, 404 ], [ 418, 420 ], [ 434, 436 ], [ 2434, 2436 ] ], [ [ 391, 399 ], [ 2447, 2455 ] ], [ [ 667, 677 ] ], [ [ 80...
""" Logic for uploading to s3 based on supplied template file and s3 bucket """ # Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License i...
[ [ [ 655, 659 ], [ 4576, 4580 ] ], [ [ 667, 674 ], [ 1169, 1176 ] ], [ [ 682, 684 ], [ 4128, 4130 ], [ 4435, 4437 ] ], [ [ 693, 698 ], [ ...
from model import common import torch.nn as nn import torch.nn.init as init url = { 'r20f64': '' } def make_model(args, parent=False): return VDSR(args) class VDSR(nn.Module): def __init__(self, args, conv=common.default_conv): super(VDSR, self).__init__() n_resblocks = args.n_resblocks...
[ [ [ 18, 24 ], [ 222, 228 ], [ 565, 571 ], [ 622, 628 ], [ 740, 746 ] ], [ [ 33, 47 ], [ 176, 178 ], [ 988, 990 ], [ 1101, 1103 ], ...
import PIL.Image import PIL.ImageColor import PIL.ImageEnhance import zeit.cms.repository.folder import zeit.connector.interfaces import zeit.content.image.interfaces import zope.app.appsetup.product import zope.component import zope.interface import zope.security.proxy class ImageTransform(object): zope.interfa...
[ [ [ 7, 16 ] ], [ [ 24, 38 ] ], [ [ 46, 62 ], [ 898, 901 ], [ 1101, 1104 ], [ 574, 577 ], [ 2514, 2517 ], [ 2655, 2658 ], [ 2794, 279...
# # Tests for current input functions # import pybamm import numbers import unittest import numpy as np class TestCurrentFunctions(unittest.TestCase): def test_constant_current(self): # test simplify current = pybamm.electrical_parameters.current_with_time parameter_values = pybamm.Paramet...
[ [ [ 47, 53 ], [ 3364, 3370 ], [ 232, 238 ], [ 306, 312 ], [ 626, 632 ], [ 743, 749 ], [ 829, 835 ], [ 1557, 1563 ], [ 1608, 1614 ], ...
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
[ [ [ 676, 690 ] ] ]
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ [ [ 176, 184 ] ], [ [ 192, 198 ] ], [ [ 206, 220 ], [ 457, 463 ], [ 3660, 3666 ], [ 3946, 3952 ], [ 4162, 4168 ], [ 4314, 4320 ], [ 4567, ...
from moler.cmd.unix.ps import Ps from moler.observable_connection import ObservableConnection, get_connection from moler.io.raw.terminal import ThreadedTerminal # v.1 - combine all manually # moler_conn = ObservableConnection() # terminal = ThreadedTerminal(moler_connection=moler_conn) # v.2 - let factory combine term...
[ [ [ 30, 32 ], [ 508, 510 ] ], [ [ 73, 93 ] ], [ [ 95, 109 ], [ 327, 341 ] ], [ [ 144, 160 ] ], [ [ 316, 324 ], [ 478, 486 ], [ 522...
#!/usr/bin/env python # -*- coding: utf-8 -*- # __coconut_hash__ = 0xde71c936 # Compiled with Coconut version 2.0.0-a_dev33 [How Not to Be Seen] # Coconut Header: ------------------------------------------------------------- from __future__ import print_function, absolute_import, unicode_literals, division import sy...
[ [ [ 251, 265 ] ], [ [ 267, 282 ] ], [ [ 284, 300 ] ], [ [ 302, 310 ] ], [ [ 318, 337 ], [ 463, 475 ], [ 654, 666 ], [ 695, 707 ], [ ...
import sys import os import copy import json import datetime opt = dict() opt['dataset'] = '../data/citeseer' opt['hidden_dim'] = 16 opt['input_dropout'] = 0.5 opt['dropout'] = 0 opt['optimizer'] = 'adam' opt['lr'] = 0.01 opt['decay'] = 5e-4 opt['self_link_weight'] = 1.0 opt['pre_epoch'] = 2000 opt['epoch'] = 100 opt...
[ [ [ 7, 10 ] ], [ [ 18, 20 ], [ 922, 924 ], [ 949, 951 ], [ 984, 986 ], [ 1015, 1017 ], [ 1223, 1225 ], [ 1258, 1260 ], [ 1470, 1472 ...
""" Copyright (c) 2016, Jose Dolz .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 the f...
[ [ [ 1158, 1160 ], [ 12171, 12173 ], [ 12203, 12205 ], [ 12264, 12266 ], [ 12337, 12339 ] ], [ [ 1169, 1180 ], [ 3153, 3155 ], [ 3180, 3182 ], [ ...
from numbers import Number import gym from gym import spaces from gym.utils import seeding import numpy as np import math as m from scipy.stats import norm """ Minigolf task. References ---------- - Penner, A. R. "The physics of putting." Canadian Journal of Physics 80.2 (2002): 83-96. """ class MiniGolf(gym.Env)...
[ [ [ 20, 26 ] ], [ [ 35, 38 ], [ 312, 315 ], [ 8752, 8755 ] ], [ [ 55, 61 ], [ 1018, 1024 ], [ 1208, 1214 ], [ 9589, 9595 ], [ 9766, ...
class UnoInfo: def __init__(self): self.dataPins = 13 self.analogInPins = 5 self.GND = 3 self.pow = [3.3, 5] self.TX = 1 self.RX = 0 def getMainInfo(self): return {"0": self.dataPins, "1": self.GND, "2": self.pow} def getDigitalPins(s...
[ [ [ 8, 15 ] ] ]
#!/usr/bin/env python3 import paho.mqtt.client as mqtt import json import random import math import time import ssl config_mqtt_broker_ip = "iot.fh-muenster.de" config_mqtt_client_id = "dummy-receiver-" + str(random.randint(1000, 9999)); config_mqtt_topic = "sensor/60:01:94:4A:AF:7A" ts_last_message = int(round(...
[ [ [ 31, 55 ], [ 716, 720 ] ], [ [ 63, 67 ] ], [ [ 75, 81 ], [ 211, 217 ] ], [ [ 89, 93 ] ], [ [ 101, 105 ], [ 320, 324 ] ], [ [ ...
# Online References used : # https://github.com/imadmali/movie-scraper/blob/master/MojoLinkExtract.py # https://www.crummy.com/software/BeautifulSoup/bs4/doc/ # https://nycdatascience.com/blog/student-works/scraping-box-office-mojo/ # https://www.youtube.com/watch?v=XQgXKtPSzUI # https://www.youtube.com/watch?v=aIPqt-...
[ [ [ 388, 401 ], [ 1714, 1727 ], [ 3152, 3165 ] ], [ [ 409, 421 ], [ 3432, 3434 ], [ 4657, 4659 ], [ 4734, 4736 ], [ 4836, 4838 ], [ 5112, ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os class PyPyqt5(SIPPackage): """PyQt is a set of Python v2 and v3 bindings for The Qt Co...
[ [ [ 216, 217 ], [ 244, 254 ], [ 1175, 1182 ], [ 1272, 1279 ], [ 1370, 1377 ], [ 1565, 1575 ], [ 1596, 1606 ], [ 1649, 1659 ], [ 1722, 1732 ...
AUTHPLUGIN_FIXTURE = '{"kind":"ExecCredential","apiVersion":"client.authentication.k8s.io/v1alpha1","spec":{},"status":{"token":"test"}}'
[ [ [ 0, 18 ] ] ]
import sqlite3 from flask import Flask, jsonify, request app = Flask(__name__) app.debug = True api_key = "RANDOM ACCESS KEY HERE" def CheckAPIKey(key): if key == api_key: return True else: return False @app.route('/') def HomeDir(): return jsonify({'msg': "invalid_endpoi...
[ [ [ 7, 14 ], [ 382, 389 ] ], [ [ 34, 39 ], [ 67, 72 ] ], [ [ 41, 48 ], [ 289, 296 ], [ 740, 747 ], [ 819, 826 ], [ 1002, 1009 ],...
import os import shutil import subprocess from pathlib import Path from dotenv import dotenv_values COMPOSAPY_ROOT_DIR = Path(__file__).parent COMP_APP_PROD_DIR = COMPOSAPY_ROOT_DIR.parent.parent.joinpath("Product") DATALAB_SERVICE_STATIC_DIR = COMP_APP_PROD_DIR.joinpath( "CompAnalytics.DataLabService", "static" )...
[ [ [ 7, 9 ], [ 2477, 2479 ] ], [ [ 17, 23 ], [ 1271, 1277 ], [ 1595, 1601 ], [ 2921, 2927 ] ], [ [ 31, 41 ], [ 536, 546 ], [ 637, 647...
from sympy import Symbol, gamma, oo, nan, zoo, factorial, sqrt, Rational, log,\ polygamma, EulerGamma, pi, uppergamma, S, expand_func, loggamma, sin, cos, \ O, cancel x = Symbol('x') y = Symbol('y') n = Symbol('n', integer=True) def test_gamma(): assert gamma(nan) == nan assert gamma(oo) == oo...
[ [ [ 18, 24 ], [ 188, 194 ], [ 204, 210 ], [ 220, 226 ] ], [ [ 26, 31 ], [ 276, 281 ], [ 305, 310 ], [ 333, 338 ], [ 363, 368 ], ...
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Dict import re import string from jina.hub.crafters.nlp.Sentencizer import Sentencizer import pickle # class Splitter(Sentencizer): # count = 0 # separator = "|" # # def __init__(self,...
[ [ [ 0, 13 ] ], [ [ 75, 86 ] ], [ [ 122, 126 ], [ 766, 770 ] ], [ [ 134, 136 ] ], [ [ 144, 150 ] ], [ [ 197, 208 ], [ 582, 593 ] ], [...
import os import os.path import requests import time from pathlib import Path from talon import ctrl, ui, Module, Context, actions, clip import tempfile # Courtesy of https://github.com/anonfunc/talon-user/blob/master/apps/jetbrains.py extendCommands = [] # Each IDE gets its own port, as otherwise you wouldn't be ab...
[ [ [ 7, 9 ] ], [ [ 17, 24 ], [ 1866, 1868 ], [ 2061, 2063 ] ], [ [ 32, 40 ], [ 2722, 2730 ] ], [ [ 48, 52 ], [ 3289, 3293 ] ], [ [ ...
""" 2D Distributions ================ Some plots visualize a transformation of the original data set. Use a stat parameter to choose a common transformation to visualize. Each stat creates additional variables to map aesthetics to. These variables use a common ..name.. syntax. Look at the examples...
[ [ [ 445, 457 ], [ 524, 526 ] ], [ [ 483, 484 ], [ 486, 494 ], [ 650, 656 ], [ 661, 664 ], [ 682, 688 ], [ 706, 716 ], [ 721, 728 ], ...
from dataclasses import replace from dataclass_abc import dataclass_abc from rxbp.indexed.indexedflowable import IndexedFlowable from rxbp.indexed.indexedsharedflowable import IndexedSharedFlowable from rxbp.indexed.mixins.indexedflowablemixin import IndexedFlowableMixin from rxbp.typing import ValueType @dataclass...
[ [ [ 24, 31 ], [ 543, 550 ] ], [ [ 59, 72 ], [ 311, 324 ] ], [ [ 115, 130 ] ], [ [ 178, 199 ], [ 357, 378 ] ], [ [ 253, 273 ], [ 40...
#!/usr/bin/env python # coding: utf-8 # In[1]: #@title Input protein sequence(s), then hit `Runtime` -> `Run all` #from google.colab import files import os.path import re import hashlib import random def add_hash(x,y): return x+"_"+hashlib.sha1(y.encode()).hexdigest()[:5] with open("protein") as f: query_...
[ [ [ 156, 163 ], [ 831, 833 ], [ 2430, 2432 ], [ 2961, 2963 ] ], [ [ 171, 173 ], [ 745, 747 ] ], [ [ 181, 188 ], [ 240, 247 ] ], [ [ 19...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ [ [ 353, 357 ], [ 89923, 89927 ], [ 95944, 95948 ] ], [ [ 401, 419 ], [ 69771, 69789 ] ], [ [ 453, 461 ] ], [ [ 497, 504 ], [ 1979, 1986 ], ...
default_app_config = "grandchallenge.evaluation.apps.EvaluationConfig"
[ [ [ 0, 18 ] ] ]
class StoryPytestError(Exception): """Base error of all stories-pytest errors.""" pass
[ [ [ 6, 22 ] ] ]
from datetime import datetime import re from urllib.parse import quote from django.db import models from django.utils.html import urlize from django.utils.timezone import make_aware, utc from django.utils.translation import ugettext_lazy as _ from requests_oauthlib import OAuth1 import requests from mezzanine.conf i...
[ [ [ 21, 29 ], [ 4920, 4928 ] ], [ [ 37, 39 ], [ 575, 577 ], [ 614, 616 ], [ 643, 645 ], [ 676, 678 ] ], [ [ 66, 71 ], [ 1470, 1475 ...
"""carfinder URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ [ [ 659, 664 ], [ 1045, 1050 ] ], [ [ 689, 693 ], [ 1030, 1034 ], [ 1067, 1071 ], [ 1118, 1122 ], [ 1168, 1172 ], [ 1243, 1247 ] ], [ [ 71...
from rest_framework.views import APIView from knox.auth import TokenAuthentication from rest_framework.permissions import IsAdminUser, IsAuthenticated, AllowAny from rest_framework.response import Response from jaseci.utils.utils import logger from jaseci.api.public_api import public_api from jaseci.element.element imp...
[ [ [ 33, 40 ], [ 927, 934 ] ], [ [ 63, 82 ], [ 1018, 1037 ] ], [ [ 122, 133 ], [ 2992, 3003 ] ], [ [ 135, 150 ], [ 1066, 1081 ], [ 2975...
# Generated by Django 3.2.7 on 2021-12-02 21:01 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('Author', '0001_initial'), ('Posts', '0001_initial'), ] operations = [ migration...
[ [ [ 73, 81 ], [ 670, 678 ] ], [ [ 104, 114 ], [ 141, 151 ], [ 311, 321 ], [ 495, 505 ] ], [ [ 116, 122 ], [ 409, 415 ], [ 596, 602 ...
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
[ [ [ 635, 643 ], [ 1197, 1205 ] ], [ [ 675, 683 ], [ 1225, 1233 ], [ 1267, 1275 ] ], [ [ 691, 694 ], [ 943, 946 ] ], [ [ 696, 701 ], [ ...
# Given a list of pts text files, build a complete dataset from it. import glob import os import PIL.Image import cv2 import numpy as np from time import time from argparse import ArgumentParser from scipy.spatial import cKDTree import tensorflow as tf import SaddlePoints import errno def mkdir_p(path): try: os....
[ [ [ 75, 79 ] ], [ [ 87, 89 ], [ 317, 319 ], [ 382, 384 ], [ 4398, 4400 ], [ 4473, 4475 ] ], [ [ 97, 106 ], [ 1423, 1426 ], [ 1511, 1...
# Question 1 # This function converts miles to kilometers (km). # Complete the function to return the result of the conversion # Call the function to convert the trip distance from miles to kilometers # Fill in the blank to print the result of the conversion # Calculate the round-trip in kilometers ...
[ [ [ 458, 474 ], [ 651, 667 ] ], [ [ 546, 559 ], [ 668, 681 ] ], [ [ 638, 648 ], [ 791, 801 ], [ 967, 977 ] ] ]
#!/usr/bin/env python import tyrell.spec as Stuff from tyrell.interpreter import PostOrderInterpreter from tyrell.enumerator import SmtEnumerator, RelaxedRandomEnumerator from tyrell.decider import Example, ExampleConstraintDecider, SimpleSpiceDecider, ExampleConstraintPruningDecider from tyrell.synthesizer import Syn...
[ [ [ 30, 50 ], [ 3643, 3648 ] ], [ [ 82, 102 ], [ 1091, 1111 ] ], [ [ 133, 146 ] ], [ [ 148, 171 ], [ 3847, 3870 ] ], [ [ 199, 206 ], [ ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ [ [ 351, 370 ], [ 720, 739 ], [ 843, 862 ] ], [ [ 663, 695 ] ], [ [ 773, 818 ] ] ]
import scipy.stats as stats import numpy as np import warnings from ecdfgof import adtest, kstest warnings.filterwarnings("ignore") _long = [ ("alpha", stats.alpha), ("anglit", stats.anglit), ("arcsine", stats.arcsine), ("argus", ...
[ [ [ 9, 29 ], [ 179, 184 ], [ 225, 230 ], [ 272, 277 ], [ 320, 325 ], [ 366, 371 ], [ 411, 416 ], [ 461, 466 ], [ 510, 515 ], [ ...
import pytest from brownie import interface, RewardsManager, Contract from utils.voting import create_vote from utils.config import (lido_dao_voting_address, lido_dao_agent_address, balancer_deployed_manager, lido_dao_token_manager_address,...
[ [ [ 7, 13 ] ], [ [ 35, 44 ], [ 666, 675 ], [ 1216, 1225 ], [ 1281, 1290 ] ], [ [ 46, 60 ] ], [ [ 62, 70 ] ], [ [ 97, 108 ], [ 1188...