code
stringlengths
22
1.05M
apis
listlengths
1
3.31k
extract_api
stringlengths
75
3.25M
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
[ "oci.util.formatted_flat_dict" ]
[((5894, 5919), 'oci.util.formatted_flat_dict', 'formatted_flat_dict', (['self'], {}), '(self)\n', (5913, 5919), False, 'from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel\n')]
import torch from collections import defaultdict, OrderedDict import numba import numpy as np def _group_by(keys, values) -> dict: """Group values by keys. :param keys: list of keys :param values: list of values A key value pair i is defined by (key_list[i], value_list[i]). :return: OrderedDict w...
[ "numpy.array", "collections.OrderedDict", "collections.defaultdict" ]
[((390, 407), 'collections.defaultdict', 'defaultdict', (['list'], {}), '(list)\n', (401, 407), False, 'from collections import defaultdict, OrderedDict\n'), ((610, 629), 'collections.OrderedDict', 'OrderedDict', (['result'], {}), '(result)\n', (621, 629), False, 'from collections import defaultdict, OrderedDict\n'), (...
import urllib.parse from typing import Dict, List import requests from bs4 import BeautifulSoup from .emoji import Emoji, categories def category(category: str) -> List[str]: """Get list of emojis in the given category""" emoji_url = f"https://emojipedia.org/{category}" page = requests.get(emoji_url) ...
[ "bs4.BeautifulSoup", "requests.get" ]
[((296, 319), 'requests.get', 'requests.get', (['emoji_url'], {}), '(emoji_url)\n', (308, 319), False, 'import requests\n'), ((331, 366), 'bs4.BeautifulSoup', 'BeautifulSoup', (['page.content', '"""lxml"""'], {}), "(page.content, 'lxml')\n", (344, 366), False, 'from bs4 import BeautifulSoup\n'), ((934, 957), 'requests....
from collections import defaultdict import numpy as np import pandas as pd from scipy.stats import chi2_contingency, fisher_exact, f_oneway from .simulations import classifier_posterior_probabilities from .utils.crosstabs import (crosstab_bayes_factor, crosstab_ztest, ...
[ "pandas.Series", "scipy.stats.chi2_contingency", "scipy.stats.f_oneway", "scipy.stats.fisher_exact", "pandas.crosstab", "numpy.array", "numpy.linspace", "collections.defaultdict", "numpy.percentile" ]
[((1443, 1467), 'scipy.stats.f_oneway', 'f_oneway', (['*score_vectors'], {}), '(*score_vectors)\n', (1451, 1467), False, 'from scipy.stats import chi2_contingency, fisher_exact, f_oneway\n'), ((6640, 6657), 'collections.defaultdict', 'defaultdict', (['list'], {}), '(list)\n', (6651, 6657), False, 'from collections impo...
# Copyright (c) 2020, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing import time import jso...
[ "json.dumps", "time.sleep", "_pymesh_debug.print_debug", "_gps.Gps.set_location", "sys.print_exception", "time.time" ]
[((967, 982), 'time.sleep', 'time.sleep', (['(0.1)'], {}), '(0.1)\n', (977, 982), False, 'import time\n'), ((11207, 11229), 'sys.print_exception', 'sys.print_exception', (['e'], {}), '(e)\n', (11226, 11229), False, 'import sys\n'), ((1874, 1904), 'json.dumps', 'json.dumps', (['last_mesh_mac_list'], {}), '(last_mesh_mac...
# Imports here import argparse from helper import * from torch import nn from torch import optim def get_input_args(): ''' Get Input Arguments From Command Line. Available Arguments: --save_dir : Directory for Checkpoint --arch : Architecture for Model --learni...
[ "torch.nn.NLLLoss", "argparse.ArgumentParser" ]
[((548, 641), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Parameter Options for Training the Neural Network"""'}), "(description=\n 'Parameter Options for Training the Neural Network')\n", (571, 641), False, 'import argparse\n'), ((1994, 2006), 'torch.nn.NLLLoss', 'nn.NLLLoss', ([]...
from aiogram import types from aiogram.dispatcher.filters.state import State, StatesGroup class AuthStates(StatesGroup): choose_lang = State() choose_faculty = State() choose_course = State() choose_group = State() choose_subgroups = State()
[ "aiogram.dispatcher.filters.state.State" ]
[((141, 148), 'aiogram.dispatcher.filters.state.State', 'State', ([], {}), '()\n', (146, 148), False, 'from aiogram.dispatcher.filters.state import State, StatesGroup\n'), ((170, 177), 'aiogram.dispatcher.filters.state.State', 'State', ([], {}), '()\n', (175, 177), False, 'from aiogram.dispatcher.filters.state import S...
import os from importlib import import_module from .db import * # get all modules _, _, filenames = next(os.walk(__path__[0]), (None, None, [])) py_files = [filename.replace(".py", "") for filename in filenames if filename.endswith(".py")] py_files.remove("__init__") for module in py_files: ...
[ "importlib.import_module", "os.walk" ]
[((107, 127), 'os.walk', 'os.walk', (['__path__[0]'], {}), '(__path__[0])\n', (114, 127), False, 'import os\n'), ((323, 370), 'importlib.import_module', 'import_module', (['f""".{module}"""', '"""zeroae.rocksdb.c"""'], {}), "(f'.{module}', 'zeroae.rocksdb.c')\n", (336, 370), False, 'from importlib import import_module\...
# Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import absol...
[ "textwrap.dedent" ]
[((860, 1335), 'textwrap.dedent', 'textwrap.dedent', (['"""\n load("@bazel_skylib//lib:partial.bzl", "partial")\n load("@fbcode_macros//build_defs/lib:rule_target_types.bzl", "rule_target_types")\n def _translate(base_path, name):\n return rule_target_type...
# The code below serves as a test if __name__ == '__main__': # NOTE: speed of blitting highly dependent on the size of the figure. For large figures, can be nearly # NOTE as slaw as redraw. import sys import argparse import numpy as np import pylab as plt from scrawl.moves.machinery im...
[ "inspect.getmembers", "argparse.ArgumentParser", "scrawl.moves.machinery.DragMachinery", "recipes.decor.expose.args", "decor.profiler.HLineProfiler", "pylab.subplots", "pylab.show" ]
[((464, 561), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Tests for interactive draggable artists in matplotlib"""'}), "(description=\n 'Tests for interactive draggable artists in matplotlib')\n", (487, 561), False, 'import argparse\n'), ((1523, 1551), 'pylab.subplots', 'plt.subplo...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "msrest.pipeline.ClientRawResponse" ]
[((2660, 2701), 'msrest.pipeline.ClientRawResponse', 'ClientRawResponse', (['deserialized', 'response'], {}), '(deserialized, response)\n', (2677, 2701), False, 'from msrest.pipeline import ClientRawResponse\n'), ((4305, 4346), 'msrest.pipeline.ClientRawResponse', 'ClientRawResponse', (['deserialized', 'response'], {})...
# Importing Necessary projects import cv2 import numpy as np # Creating the video capture object cap = cv2.VideoCapture(0) # Defining upper and lower ranges for yellow color # If you don't have a yellow marker feel free to change the RGB values Lower = np.array([20, 100, 100]) Upper = np.array([30, 255, 255]) # Defi...
[ "numpy.ones", "cv2.flip", "numpy.full", "cv2.inRange", "cv2.erode", "cv2.line", "cv2.imshow", "numpy.array", "cv2.morphologyEx", "cv2.destroyAllWindows", "cv2.VideoCapture", "cv2.cvtColor", "cv2.bitwise_or", "cv2.findContours", "cv2.bitwise_not", "cv2.dilate", "cv2.waitKey", "cv2.b...
[((103, 122), 'cv2.VideoCapture', 'cv2.VideoCapture', (['(0)'], {}), '(0)\n', (119, 122), False, 'import cv2\n'), ((255, 279), 'numpy.array', 'np.array', (['[20, 100, 100]'], {}), '([20, 100, 100])\n', (263, 279), True, 'import numpy as np\n'), ((288, 312), 'numpy.array', 'np.array', (['[30, 255, 255]'], {}), '([30, 25...
import pulumi import pulumi_kubernetes as k8s import pulumi_kubernetes.helm.v3 as helm from pulumi_kubernetes.core.v1 import Namespace config = pulumi.Config() # Get the outputs from the current stack # We assume here we always want the reference from the stack we're in stack = pulumi.get_stack() cluster_project = co...
[ "pulumi_kubernetes.Provider", "pulumi.StackReference", "pulumi.Config", "pulumi_kubernetes.helm.v3.FetchOpts", "pulumi.ResourceOptions", "pulumi.get_stack" ]
[((145, 160), 'pulumi.Config', 'pulumi.Config', ([], {}), '()\n', (158, 160), False, 'import pulumi\n'), ((281, 299), 'pulumi.get_stack', 'pulumi.get_stack', ([], {}), '()\n', (297, 299), False, 'import pulumi\n'), ((418, 443), 'pulumi.StackReference', 'pulumi.StackReference', (['sr'], {}), '(sr)\n', (439, 443), False,...
"""Fast, Extensible Progress Meter (tqdm) For Django.""" # -*- coding: utf-8 -*- from __future__ import unicode_literals import sys from django.core.management.base import BaseCommand as BaseCommandOriginal from django.core.management.color import color_style from tqdm import tqdm as tqdm_original # Fix for python3 ...
[ "django.core.management.color.color_style", "sys.exit" ]
[((1153, 1163), 'sys.exit', 'sys.exit', ([], {}), '()\n', (1161, 1163), False, 'import sys\n'), ((2269, 2279), 'sys.exit', 'sys.exit', ([], {}), '()\n', (2277, 2279), False, 'import sys\n'), ((2140, 2153), 'django.core.management.color.color_style', 'color_style', ([], {}), '()\n', (2151, 2153), False, 'from django.cor...
from datetime import datetime import asyncio import logging from server.server import register_slow_tick_event logger = logging.getLogger(__name__) KEEP_ALIVE_DURATION = 600 @register_slow_tick_event async def tick_keep_alive(server): # Disconnect players after some amount of inactivity now = datetime.now(...
[ "logging.getLogger", "datetime.datetime.now", "asyncio.gather" ]
[((122, 149), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (139, 149), False, 'import logging\n'), ((307, 321), 'datetime.datetime.now', 'datetime.now', ([], {}), '()\n', (319, 321), False, 'from datetime import datetime\n'), ((736, 758), 'asyncio.gather', 'asyncio.gather', (['*coros'],...
""" Experiments to unconver the true nature of coroutines. One goal is to be able to operate coroutines without an event loop (or some kind of stub of an event loop) Other goals are to be able to serialize coroutines, move them between processes and threads, implement advanced error handling (could we back one up a...
[ "asyncio.iscoroutine", "pytest.raises" ]
[((1329, 1343), 'asyncio.iscoroutine', 'iscoroutine', (['a'], {}), '(a)\n', (1340, 1343), False, 'from asyncio import iscoroutine\n'), ((1521, 1535), 'asyncio.iscoroutine', 'iscoroutine', (['a'], {}), '(a)\n', (1532, 1535), False, 'from asyncio import iscoroutine\n'), ((1373, 1394), 'pytest.raises', 'raises', (['StopIt...
# Generated by Django 3.2.7 on 2021-10-12 20:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('sellers', '0003_auto_202...
[ "django.db.migrations.swappable_dependency", "django.db.models.ForeignKey" ]
[((227, 284), 'django.db.migrations.swappable_dependency', 'migrations.swappable_dependency', (['settings.AUTH_USER_MODEL'], {}), '(settings.AUTH_USER_MODEL)\n', (258, 284), False, 'from django.db import migrations, models\n'), ((501, 619), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django....
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-09-11 18:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('task_manager', '0016_merge_20170901_0928'), ] operations = [ migrations.Alter...
[ "django.db.models.DateField", "django.db.models.CharField" ]
[((427, 502), 'django.db.models.CharField', 'models.CharField', ([], {'default': '""""""', 'max_length': '(1000)', 'verbose_name': '"""android版本下载链接"""'}), "(default='', max_length=1000, verbose_name='android版本下载链接')\n", (443, 502), False, 'from django.db import migrations, models\n'), ((646, 703), 'django.db.models.Da...
from builtins import isinstance from copy import copy from math import ceil from typing import Union, Tuple from hwt.code import Switch, Concat from hwt.hdl.constants import INTF_DIRECTION from hwt.hdl.frameTmpl import FrameTmpl from hwt.hdl.transTmpl import TransTmpl from hwt.hdl.typeShortcuts import vec from hwt.hdl...
[ "hwt.code.Switch", "hwt.math.inRange", "hwt.interfaces.structIntf.StructIntf", "copy.copy", "hwt.interfaces.std.BramPort_withoutClk", "hwt.interfaces.utils.addClkRstn", "hwt.hdl.types.structUtils.HdlType_select", "hwt.interfaces.intf_map.walkStructIntfAndIntfMap", "hwt.interfaces.intf_map.HTypeFromI...
[((4048, 4067), 'hwt.synthesizer.unit.Unit.__init__', 'Unit.__init__', (['self'], {}), '(self)\n', (4061, 4067), False, 'from hwt.synthesizer.unit import Unit\n'), ((4326, 4363), 'hwt.hdl.types.structUtils.field_path_get_type', 'field_path_get_type', (['root', 'field_path'], {}), '(root, field_path)\n', (4345, 4363), F...
#!/usr/bin/env python # coding: utf-8 # Copyright (c) <NAME>. # Distributed under the terms of the Modified BSD License. __all__ = [ "example_function", ] import numpy as np def example_function(ax, data, above_color="r", below_color="k", **kwargs): """ An example function that makes a scatter plot with...
[ "numpy.array" ]
[((833, 872), 'numpy.array', 'np.array', (['([above_color] * data.shape[0])'], {}), '([above_color] * data.shape[0])\n', (841, 872), True, 'import numpy as np\n')]
from django import forms from data.models import RadiosondeMeasurement, WeatherMeasurement, MeasuringDevice from django.forms.widgets import SelectDateWidget from datetime import date, time from visuo_open_source.widgets import SelectTimeWidget, ColumnCheckboxSelectMultiple class WeatherMeasurementForm(forms.Form): ...
[ "datetime.time", "visuo_open_source.widgets.ColumnCheckboxSelectMultiple", "data.models.RadiosondeMeasurement.objects.filter", "data.models.WeatherMeasurement.objects.filter", "data.models.MeasuringDevice.objects.all", "data.models.RadiosondeMeasurement.objects.values_list", "data.models.MeasuringDevice...
[((1706, 1739), 'django.forms.ChoiceField', 'forms.ChoiceField', ([], {'label': '"""Device"""'}), "(label='Device')\n", (1723, 1739), False, 'from django import forms\n'), ((553, 588), 'data.models.WeatherMeasurement.objects.exists', 'WeatherMeasurement.objects.exists', ([], {}), '()\n', (586, 588), False, 'from data.m...
#!/bin/env python3 """ This class overlays the knowledge graph with clinical exposures data from ICEES+. It adds the data (p-values) either in virtual edges (if the virtual_relation_label, source_qnode_id, and target_qnode_id are provided) or as EdgeAttributes tacked onto existing edges in the knowledge graph (applied ...
[ "requests.post", "itertools.product", "swagger_server.models.edge_attribute.EdgeAttribute", "requests.get", "yaml.safe_load", "node_synonymizer.NodeSynonymizer", "os.path.abspath", "swagger_server.models.q_edge.QEdge" ]
[((2932, 2979), 'itertools.product', 'itertools.product', (['source_curies', 'target_curies'], {}), '(source_curies, target_curies)\n', (2949, 2979), False, 'import itertools\n'), ((4625, 4748), 'swagger_server.models.q_edge.QEdge', 'QEdge', ([], {'id': 'self.virtual_relation_label', 'source_id': 'source_qnode_id', 'ta...
import LevelBuilder from sprites import * def render(name,bg): lb = LevelBuilder.LevelBuilder(name+".plist",background=bg) lb.addObject(Hero.HeroSprite(x=460,y=16)) lb.addObject(Beam.BeamSprite(x=240,y=320,width=10,height=10,static='true',angle=0).setName("Hook")) distJoint = Joints.Distance...
[ "LevelBuilder.LevelBuilder" ]
[((73, 130), 'LevelBuilder.LevelBuilder', 'LevelBuilder.LevelBuilder', (["(name + '.plist')"], {'background': 'bg'}), "(name + '.plist', background=bg)\n", (98, 130), False, 'import LevelBuilder\n')]
from flask_restful import Resource, reqparse, abort, fields, marshal_with, \ marshal from http import HTTPStatus from Services.GetUserService import GetUserService from extensions import db from models import User from models import Story, Comment, Like from sqlalchemy.exc import * from sqlalchemy import func from...
[ "models.Like.query.filter_by", "Services.GetUserService.GetUserService", "models.Like", "flask_restful.reqparse.RequestParser", "models.Story.query.filter_by", "extensions.db.session.add", "extensions.db.session.commit", "flask_restful.abort", "extensions.db.session.delete", "models.Comment.query....
[((454, 478), 'flask_restful.reqparse.RequestParser', 'reqparse.RequestParser', ([], {}), '()\n', (476, 478), False, 'from flask_restful import Resource, reqparse, abort, fields, marshal_with, marshal\n'), ((871, 887), 'Services.GetUserService.GetUserService', 'GetUserService', ([], {}), '()\n', (885, 887), False, 'fro...
import re def alphanumeric(s): return re.match(r"^[a-zA-Z0-9]+$", s) != None
[ "re.match" ]
[((43, 72), 're.match', 're.match', (['"""^[a-zA-Z0-9]+$"""', 's'], {}), "('^[a-zA-Z0-9]+$', s)\n", (51, 72), False, 'import re\n')]
import numpy as np import torch import torch.nn as nn import torchtestcase import unittest from survae.transforms.bijections.coupling import * from survae.nn.layers import ElementwiseParams, ElementwiseParams2d from survae.tests.transforms.bijections import BijectionTest class AdditiveCouplingBijectionTest(BijectionT...
[ "torch.nn.Conv2d", "survae.nn.layers.ElementwiseParams2d", "torch.nn.Linear", "unittest.main", "survae.nn.layers.ElementwiseParams", "torch.randn" ]
[((2867, 2882), 'unittest.main', 'unittest.main', ([], {}), '()\n', (2880, 2882), False, 'import unittest\n'), ((627, 658), 'torch.randn', 'torch.randn', (['batch_size', '*shape'], {}), '(batch_size, *shape)\n', (638, 658), False, 'import torch\n'), ((1828, 1859), 'torch.randn', 'torch.randn', (['batch_size', '*shape']...
import asyncio import logging import socket import websockets from gabriel_protocol import gabriel_pb2 from collections import namedtuple URI_FORMAT = 'ws://{host}:{port}' logger = logging.getLogger(__name__) websockets_logger = logging.getLogger(websockets.__name__) # The entire payload will be printed if this is...
[ "logging.getLogger", "collections.namedtuple", "gabriel_protocol.gabriel_pb2.ToClient", "gabriel_protocol.gabriel_pb2.FromClient", "asyncio.wait", "asyncio.Event", "websockets.connect", "asyncio.get_event_loop" ]
[((185, 212), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (202, 212), False, 'import logging\n'), ((233, 271), 'logging.getLogger', 'logging.getLogger', (['websockets.__name__'], {}), '(websockets.__name__)\n', (250, 271), False, 'import logging\n'), ((402, 460), 'collections.namedtupl...
__author__ = 'LeoDong' import re import sys reload(sys) sys.setdefaultencoding("utf-8") from bs4 import BeautifulSoup import dateparser class InfoExtractor: def __init__(self, extract_space_file_path, rule_files_path): soup = BeautifulSoup(open(extract_space_file_path).read(), 'xml') attrlist = so...
[ "sys.setdefaultencoding", "re.compile", "dateparser.parse", "bs4.BeautifulSoup", "re.sub" ]
[((57, 88), 'sys.setdefaultencoding', 'sys.setdefaultencoding', (['"""utf-8"""'], {}), "('utf-8')\n", (79, 88), False, 'import sys\n'), ((2503, 2527), 'bs4.BeautifulSoup', 'BeautifulSoup', (['""""""', '"""xml"""'], {}), "('', 'xml')\n", (2516, 2527), False, 'from bs4 import BeautifulSoup\n'), ((8369, 8393), 'dateparser...
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum FileSystemInterfaceVersion = Enum( 'NFSV3_0', )
[ "pyvisdk.thirdparty.Enum" ]
[((191, 206), 'pyvisdk.thirdparty.Enum', 'Enum', (['"""NFSV3_0"""'], {}), "('NFSV3_0')\n", (195, 206), False, 'from pyvisdk.thirdparty import Enum\n')]
import cv2 import math import numpy as np from utils.pPose_nms import pose_nms def get_3rd_point(a, b): """Return vector c that perpendicular to (a - b).""" direct = a - b return b + np.array([-direct[1], direct[0]], dtype=np.float32) def get_dir(src_point, rot_rad): """Rotate the point by `rot_rad` ...
[ "numpy.array", "numpy.sin", "numpy.mean", "numpy.greater", "numpy.asarray", "numpy.max", "cv2.addWeighted", "numpy.dot", "numpy.tile", "numpy.floor", "numpy.argmax", "numpy.squeeze", "numpy.cos", "cv2.cvtColor", "numpy.sign", "utils.pPose_nms.pose_nms", "math.atan2", "cv2.resize", ...
[((706, 740), 'numpy.array', 'np.array', (['[0, 0]'], {'dtype': 'np.float32'}), '([0, 0], dtype=np.float32)\n', (714, 740), True, 'import numpy as np\n'), ((1089, 1128), 'numpy.array', 'np.array', (['[0, dst_w * -0.5]', 'np.float32'], {}), '([0, dst_w * -0.5], np.float32)\n', (1097, 1128), True, 'import numpy as np\n')...
import time from unittest import TestCase from unittest.mock import Mock from nekkar.core.storage import CallableRecord from nekkar.core.storage import CallableRecordRepository from nekkar.core.storage import CRTLock class CallableRecordRepositoryTestCase(TestCase): def setUp(self) -> None: self.cache =...
[ "nekkar.core.storage.CallableRecordRepository", "unittest.mock.Mock", "nekkar.core.storage.CallableRecord", "time.sleep", "nekkar.core.storage.CRTLock" ]
[((357, 393), 'nekkar.core.storage.CallableRecordRepository', 'CallableRecordRepository', (['self.cache'], {}), '(self.cache)\n', (381, 393), False, 'from nekkar.core.storage import CallableRecordRepository\n'), ((451, 464), 'unittest.mock.Mock', 'Mock', ([], {'data': '{}'}), '(data={})\n', (455, 464), False, 'from uni...
import tweepy from textblob import TextBlob import csv import sys import re # Step 1 - Authenticate consumer_key= 'CONSUMER_KEY_HERE' consumer_secret= 'CONSUMER_SECRET_HERE' access_token='ACCESS_TOKEN_HERE' access_token_secret='ACCESS_TOKEN_SECRET_HERE' auth = tweepy.OAuthHandler(consumer_key, consumer_...
[ "textblob.TextBlob", "csv.writer", "tweepy.API", "re.sub", "tweepy.OAuthHandler" ]
[((277, 327), 'tweepy.OAuthHandler', 'tweepy.OAuthHandler', (['consumer_key', 'consumer_secret'], {}), '(consumer_key, consumer_secret)\n', (296, 327), False, 'import tweepy\n'), ((395, 411), 'tweepy.API', 'tweepy.API', (['auth'], {}), '(auth)\n', (405, 411), False, 'import tweepy\n'), ((721, 734), 'csv.writer', 'csv.w...
# -*- coding: utf-8 -*- from unittest import TestCase, main from pygerber.coparser import CoParser from pygerber.exceptions import FeatureNotSupportedError class CoParserTest(TestCase): def test_set_default_format(self): coparser = CoParser() # default set in __init__ self.assertEqual(coparser.f...
[ "unittest.main", "pygerber.coparser.CoParser" ]
[((2008, 2014), 'unittest.main', 'main', ([], {}), '()\n', (2012, 2014), False, 'from unittest import TestCase, main\n'), ((247, 257), 'pygerber.coparser.CoParser', 'CoParser', ([], {}), '()\n', (255, 257), False, 'from pygerber.coparser import CoParser\n'), ((510, 520), 'pygerber.coparser.CoParser', 'CoParser', ([], {...
from rest_framework.pagination import LimitOffsetPagination from rest_framework.response import Response class PaginationWithCountHeader(LimitOffsetPagination): def get_paginated_response(self, data): headers = { 'X-Total-Count': self.count, 'X-Limit': self.limit } ...
[ "rest_framework.response.Response" ]
[((327, 358), 'rest_framework.response.Response', 'Response', (['data'], {'headers': 'headers'}), '(data, headers=headers)\n', (335, 358), False, 'from rest_framework.response import Response\n')]
#!/usr/bin/python from concurrent import futures from optparse import OptionParser from argparse import ArgumentParser from pyroute2 import IPRoute from google.protobuf import json_format import logging import time import json import grpc import sys import srv6_explicit_path_pb2_grpc import srv6_explicit_path_pb2 ...
[ "logging.getLogger", "logging.basicConfig", "grpc.ssl_server_credentials", "concurrent.futures.ThreadPoolExecutor", "optparse.OptionParser", "time.sleep", "sys.exit", "pyroute2.IPRoute", "srv6_explicit_path_pb2.SRv6EPReply" ]
[((556, 583), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (573, 583), False, 'import logging\n'), ((4127, 4141), 'optparse.OptionParser', 'OptionParser', ([], {}), '()\n', (4139, 4141), False, 'from optparse import OptionParser\n'), ((2110, 2158), 'srv6_explicit_path_pb2.SRv6EPReply', ...
import json import logging import time from selenium.common.exceptions import NoSuchElementException from seleniumwire import webdriver import config def get_valid_cookies(cookies_amount): options = webdriver.FirefoxOptions() options.headless = True driver = webdriver.Firefox(options=options, e...
[ "seleniumwire.webdriver.Firefox", "seleniumwire.webdriver.FirefoxOptions", "logging.info", "time.sleep" ]
[((213, 239), 'seleniumwire.webdriver.FirefoxOptions', 'webdriver.FirefoxOptions', ([], {}), '()\n', (237, 239), False, 'from seleniumwire import webdriver\n'), ((284, 361), 'seleniumwire.webdriver.Firefox', 'webdriver.Firefox', ([], {'options': 'options', 'executable_path': '"""drivers/geckodriver.exe"""'}), "(options...
import numpy as np from collections import OrderedDict from alfred.utils.misc import keep_two_signif_digits, check_params_defined_twice from alfred.utils.directory_tree import DirectoryTree from pathlib import Path import packageName # (1) Enter the algorithms to be run for each experiment ALG_NAMES = ['simpleMLP'] ...
[ "numpy.random.uniform", "pathlib.Path" ]
[((1889, 1903), 'pathlib.Path', 'Path', (['__file__'], {}), '(__file__)\n', (1893, 1903), False, 'from pathlib import Path\n'), ((1973, 1999), 'pathlib.Path', 'Path', (['packageName.__file__'], {}), '(packageName.__file__)\n', (1977, 1999), False, 'from pathlib import Path\n'), ((1148, 1186), 'numpy.random.uniform', 'n...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "os.path.dirname" ]
[((631, 656), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (646, 656), False, 'import os\n')]
from spreco.common import utils,pipe from spreco.common.options import parts from spreco.workbench.trainer import trainer import argparse import os def main(args): if os.path.exists(args.config): config = utils.load_config(args.config) else: raise Exception('The specified config.yaml is not e...
[ "spreco.common.utils.color_print", "os.path.exists", "spreco.common.utils.get_timestamp", "spreco.common.utils.find_files", "argparse.ArgumentParser", "os.path.join", "spreco.common.pipe.create_pipe", "spreco.workbench.trainer.trainer", "spreco.common.utils.load_config", "spreco.common.options.par...
[((174, 201), 'os.path.exists', 'os.path.exists', (['args.config'], {}), '(args.config)\n', (188, 201), False, 'import os\n'), ((1763, 1788), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {}), '()\n', (1786, 1788), False, 'import argparse\n'), ((220, 250), 'spreco.common.utils.load_config', 'utils.load_con...
#!/usr/bin/python3 # Builds maps # NOTES: # - Must be run from content/ import json import os import sys import configparser import config import argparse import multiprocessing import subprocess import shutil argparser = argparse.ArgumentParser(description="Batch compiles all maps") argparser.add_argument('--force...
[ "os.path.exists", "argparse.ArgumentParser", "config.Config", "subprocess.run", "sys.platform.startswith", "multiprocessing.cpu_count", "os.getcwd", "json.load", "os.chdir", "os.path.abspath", "os.path.getmtime" ]
[((226, 288), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Batch compiles all maps"""'}), "(description='Batch compiles all maps')\n", (249, 288), False, 'import argparse\n'), ((1061, 1076), 'config.Config', 'config.Config', ([], {}), '()\n', (1074, 1076), False, 'import config\n'), ((...
from __future__ import absolute_import, division, print_function import unittest import dreal import dreal._odr_test_module_py as odr_test_module class TestODR(unittest.TestCase): def test_variable(self): x1 = dreal.Variable('x') x2 = odr_test_module.new_variable('x') self.assertNotEqual...
[ "unittest.main", "dreal.Variable", "dreal._odr_test_module_py.new_variable" ]
[((380, 406), 'unittest.main', 'unittest.main', ([], {'verbosity': '(0)'}), '(verbosity=0)\n', (393, 406), False, 'import unittest\n'), ((226, 245), 'dreal.Variable', 'dreal.Variable', (['"""x"""'], {}), "('x')\n", (240, 245), False, 'import dreal\n'), ((259, 292), 'dreal._odr_test_module_py.new_variable', 'odr_test_mo...
import numpy import numpy.fft import pytest import numpy.testing import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import librosa import librosa.display import pandas import emlearn import eml_audio FFT_SIZES = [ 64, 128, 256, 512, 1024, ] @pytest.mark.parametrize('n_...
[ "numpy.log10", "numpy.random.rand", "librosa.util.example_audio_file", "eml_audio.melspectrogram", "numpy.array", "numpy.arange", "librosa.load", "numpy.mean", "numpy.testing.assert_allclose", "numpy.fft.fft", "eml_audio.sparse_filterbank", "eml_audio.melfilter", "numpy.testing.assert_almost...
[((86, 107), 'matplotlib.use', 'matplotlib.use', (['"""Agg"""'], {}), "('Agg')\n", (100, 107), False, 'import matplotlib\n'), ((293, 336), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""n_fft"""', 'FFT_SIZES'], {}), "('n_fft', FFT_SIZES)\n", (316, 336), False, 'import pytest\n'), ((6340, 6366), 'pytest.mar...
import os import json import pytest from test_api.run import create_app @pytest.fixture(scope="session") def app(): abs_file_path = os.path.abspath(os.path.dirname(__file__)) openapi_path = os.path.join(abs_file_path, "../", "openapi") os.environ["SPEC_PATH"] = openapi_path app = create_app() r...
[ "os.path.join", "os.path.dirname", "test_api.run.create_app", "pytest.fixture", "json.dump" ]
[((77, 108), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""session"""'}), "(scope='session')\n", (91, 108), False, 'import pytest\n'), ((333, 378), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""session"""', 'autouse': '(True)'}), "(scope='session', autouse=True)\n", (347, 378), False, 'import pytest\n...
import tkinter as tk from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg, NavigationToolbar2Tk) from matplotlib import (pyplot as plt, animation) import threading import time import logging import socket from queue import Queue import artgallery as ag import funcgnss import funcgnss as fg __author__ = '<N...
[ "matplotlib.pyplot.Figure", "time.sleep", "artgallery.ImageArtist", "tkinter.Button", "threading.Thread.__init__", "artgallery.LineArtist", "matplotlib.backends.backend_tkagg.FigureCanvasTkAgg", "funcgnss.speed_heading_cal", "artgallery.Gallerist", "tkinter.mainloop", "logging.basicConfig", "m...
[((546, 594), 'socket.socket', 'socket.socket', (['socket.AF_INET', 'socket.SOCK_DGRAM'], {}), '(socket.AF_INET, socket.SOCK_DGRAM)\n', (559, 594), False, 'import socket\n'), ((703, 710), 'queue.Queue', 'Queue', ([], {}), '()\n', (708, 710), False, 'from queue import Queue\n'), ((1335, 1348), 'time.sleep', 'time.sleep'...
import numpy as np import matplotlib.pyplot as plt #Heat equation A1 = np.array([[4,-1,0,-1,0,0,0,0,0], [-1,4,-1,0,-1,0,0,0,0], [0,-1,4,0,0,-1,0,0,0], [-1,0,0,4,-1,0,-1,0,0], [0,-1,0,-1,4,-1,0,-1,0], [0,0,-1,0,-1,4,0,0,-1], [0,0,0,-1,0,0,4,-1,0], [0,0,0,0,-1,0,-1,4,-1], [0,0,0,0,0,-1,0,-1,4]]) b= np...
[ "matplotlib.pyplot.imshow", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.legend", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.colorbar", "matplotlib.pyplot.plot", "numpy.append", "numpy.array", "numpy.linalg.inv", "numpy.matmul", "matplotlib.pyplot.scatter", "numpy.sin", "matplotlib.pyp...
[((74, 382), 'numpy.array', 'np.array', (['[[4, -1, 0, -1, 0, 0, 0, 0, 0], [-1, 4, -1, 0, -1, 0, 0, 0, 0], [0, -1, 4, \n 0, 0, -1, 0, 0, 0], [-1, 0, 0, 4, -1, 0, -1, 0, 0], [0, -1, 0, -1, 4, -\n 1, 0, -1, 0], [0, 0, -1, 0, -1, 4, 0, 0, -1], [0, 0, 0, -1, 0, 0, 4, -1,\n 0], [0, 0, 0, 0, -1, 0, -1, 4, -1], [0, 0...
#!/usr/bin/env python import os, sys import pygrib import gdal import h5py import netCDF4 import re import logging from pyhdf.HDF import HDF from pyhdf.SD import SD from collections import OrderedDict #set path to the FLEXPART library flexpart_lib = os.path.dirname(os.path.realpath(__file__)) + '/../../pep.lib/lib/F...
[ "os.path.exists", "collections.OrderedDict", "pyhdf.HDF.HDF", "pygrib.open", "netCDF4.Dataset", "re.match", "h5py.File", "os.path.realpath", "os.path.basename", "pyhdf.SD.SD", "sys.path.append" ]
[((330, 359), 'sys.path.append', 'sys.path.append', (['flexpart_lib'], {}), '(flexpart_lib)\n', (345, 359), False, 'import os, sys\n'), ((1567, 1589), 'collections.OrderedDict', 'OrderedDict', (['fileTypes'], {}), '(fileTypes)\n', (1578, 1589), False, 'from collections import OrderedDict\n'), ((2389, 2418), 'os.path.ba...
import numpy as np import pandas as pd import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.applications import ResNet50 from tensorflow.keras.applications import imagenet_utils from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.preprocessing.image import load_i...
[ "tensorflow.keras.preprocessing.image.load_img", "progressbar.Bar", "sklearn.preprocessing.LabelEncoder", "random.shuffle", "matplotlib.pyplot.show", "pathlib.Path", "numpy.array", "progressbar.Percentage", "numpy.vstack", "tensorflow.keras.applications.ResNet50", "progressbar.ETA", "numpy.exp...
[((1038, 1135), 'pathlib.Path', 'Path', (['"""D:\\\\Docs\\\\Python_code\\\\ParkinsonsSketch\\\\178338_401677_bundle_archive\\\\drawings"""'], {}), "(\n 'D:\\\\Docs\\\\Python_code\\\\ParkinsonsSketch\\\\178338_401677_bundle_archive\\\\drawings'\n )\n", (1042, 1135), False, 'from pathlib import Path\n'), ((1286, 13...
# Generated by Django 2.2.6 on 2019-12-25 21:54 from django.db import migrations, models from django.utils import timezone def set_date_validation(apps, schema_editor): Lien = apps.get_model("music", "Lien") db_alias = schema_editor.connection.alias Lien.objects.using(db_alias).update(date_validation=tim...
[ "django.utils.timezone.now", "django.db.migrations.RunPython", "django.db.models.DateTimeField" ]
[((681, 722), 'django.db.migrations.RunPython', 'migrations.RunPython', (['set_date_validation'], {}), '(set_date_validation)\n', (701, 722), False, 'from django.db import migrations, models\n'), ((317, 331), 'django.utils.timezone.now', 'timezone.now', ([], {}), '()\n', (329, 331), False, 'from django.utils import tim...
from operator import le import os import math import warnings warnings.filterwarnings('ignore', 'The iteration is not making good progress') import numpy as np np.set_printoptions(suppress=True) import scipy import scipy.stats from scipy.stats import poisson, uniform, norm from scipy.fftpack import fft, ifft from scip...
[ "numpy.clip", "numpy.convolve", "numpy.sqrt", "numpy.random.rand", "numpy.log", "scipy.signal.savgol_filter", "numpy.random.exponential", "numpy.isin", "numpy.array", "numpy.einsum", "scipy.fftpack.fft", "scipy.stats.norm.logpdf", "numpy.linalg.norm", "scipy.stats.norm.cdf", "numpy.arang...
[((62, 140), 'warnings.filterwarnings', 'warnings.filterwarnings', (['"""ignore"""', '"""The iteration is not making good progress"""'], {}), "('ignore', 'The iteration is not making good progress')\n", (85, 140), False, 'import warnings\n'), ((161, 195), 'numpy.set_printoptions', 'np.set_printoptions', ([], {'suppress...
from database import db class User(db.Model): # __table_args__ = {"schema": "demo"} __tablename__ = 'user' id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(20)) age = db.Column(db.Integer) def __init__(self, name, age): self.name = name ...
[ "database.db.Column", "database.db.String" ]
[((126, 185), 'database.db.Column', 'db.Column', (['db.Integer'], {'primary_key': '(True)', 'autoincrement': '(True)'}), '(db.Integer, primary_key=True, autoincrement=True)\n', (135, 185), False, 'from database import db\n'), ((233, 254), 'database.db.Column', 'db.Column', (['db.Integer'], {}), '(db.Integer)\n', (242, ...
from stograde.specs.file_options import FileOptions from stograde.specs.spec_file import create_spec_file def check_file_options_has_defaults(options: FileOptions, *, test_compile_optional: bool = True, test_hi...
[ "stograde.specs.file_options.FileOptions", "stograde.specs.spec_file.create_spec_file" ]
[((735, 748), 'stograde.specs.file_options.FileOptions', 'FileOptions', ([], {}), '()\n', (746, 748), False, 'from stograde.specs.file_options import FileOptions\n'), ((1582, 1626), 'stograde.specs.spec_file.create_spec_file', 'create_spec_file', (["{'file': 'test_file1.txt'}"], {}), "({'file': 'test_file1.txt'})\n", (...
from tkinter import * import time import random root = Tk() root.title("bb") root.geometry("450x570") root.resizable(0, 0) root.wm_attributes("-topmost", 1) canvas = Canvas(root, width=600, height=600, bd=0, highlightthickness=0, highlightbackground="white", bg="Black") canvas.pack(padx=10, pady=10) score ...
[ "random.shuffle", "time.sleep" ]
[((846, 867), 'random.shuffle', 'random.shuffle', (['start'], {}), '(start)\n', (860, 867), False, 'import random\n'), ((2356, 2377), 'random.shuffle', 'random.shuffle', (['start'], {}), '(start)\n', (2370, 2377), False, 'import random\n'), ((4419, 4445), 'random.shuffle', 'random.shuffle', (['BALL_COLOR'], {}), '(BALL...
import random from unittest import TestCase from fastapi.testclient import TestClient from api import app class TestMsgProcessor(TestCase): def setUp(self) -> None: self.client = TestClient(app) app.extra["scheduler"].load_jobs() def test_api_root(self): response = self.client.get("...
[ "fastapi.testclient.TestClient", "random.seed" ]
[((195, 210), 'fastapi.testclient.TestClient', 'TestClient', (['app'], {}), '(app)\n', (205, 210), False, 'from fastapi.testclient import TestClient\n'), ((3160, 3174), 'random.seed', 'random.seed', (['(0)'], {}), '(0)\n', (3171, 3174), False, 'import random\n')]
# (C) 2021 GoodData Corporation import pytest from gooddata_pandas import DataFrameFactory, GoodPandas @pytest.fixture def gdf(test_config) -> DataFrameFactory: gdpd = GoodPandas(host=test_config["host"], token=test_config["token"]) return gdpd.data_frames(test_config["workspace"])
[ "gooddata_pandas.GoodPandas" ]
[((175, 239), 'gooddata_pandas.GoodPandas', 'GoodPandas', ([], {'host': "test_config['host']", 'token': "test_config['token']"}), "(host=test_config['host'], token=test_config['token'])\n", (185, 239), False, 'from gooddata_pandas import DataFrameFactory, GoodPandas\n')]
from sklearn.metrics import accuracy_score, precision_score, f1_score, recall_score, confusion_matrix import pandas as pd import modelTrainingFunctions_original as modelTrainLib def getClassification_scores(true_classes, predicted_classes): acc = accuracy_score(true_classes, predicted_classes) prec = precision...
[ "modelTrainingFunctions_original.modelTraining", "modelTrainingFunctions_original.get_predClass_per_audio", "sklearn.metrics.f1_score", "pandas.crosstab", "sklearn.metrics.precision_score", "sklearn.metrics.recall_score", "sklearn.metrics.accuracy_score" ]
[((252, 299), 'sklearn.metrics.accuracy_score', 'accuracy_score', (['true_classes', 'predicted_classes'], {}), '(true_classes, predicted_classes)\n', (266, 299), False, 'from sklearn.metrics import accuracy_score, precision_score, f1_score, recall_score, confusion_matrix\n'), ((311, 376), 'sklearn.metrics.precision_sco...
import numpy as np import pandas as pd import sys import hashlib import io import os from . import glob_var from . import structures from . import type_conversions def decompress_motifs_from_bitstring(bitstring): motifs_list = [] total_length = len(bitstring) current_spot = 0 while current_spot < t...
[ "numpy.uint8", "numpy.prod", "numpy.packbits", "os.path.exists", "numpy.reshape", "hashlib.md5", "os.makedirs", "numpy.unpackbits", "numpy.array", "numpy.zeros", "sys.exit", "numpy.frombuffer", "io.StringIO" ]
[((7489, 7527), 'numpy.array', 'np.array', (['profiles_list'], {'dtype': 'np.bool'}), '(profiles_list, dtype=np.bool)\n', (7497, 7527), True, 'import numpy as np\n'), ((10325, 10363), 'numpy.array', 'np.array', (['profiles_list'], {'dtype': 'np.bool'}), '(profiles_list, dtype=np.bool)\n', (10333, 10363), True, 'import ...
# Copyright 2017 <<EMAIL>> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "logging.getLogger", "susan.common.exceptions.RangeNotFoundException", "susan.common.exceptions.IPNotAvailableException", "netaddr.IPAddress", "susan.common.exceptions.ParameterNotFoundException", "susan.db.rdbms.dhcp.DHCPDB" ]
[((770, 797), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (787, 797), False, 'import logging\n'), ((1035, 1051), 'susan.db.rdbms.dhcp.DHCPDB', 'dhcp_db.DHCPDB', ([], {}), '()\n', (1049, 1051), True, 'from susan.db.rdbms import dhcp as dhcp_db\n'), ((4446, 4501), 'susan.common.exception...
# Generated by Django 3.0.1 on 2020-01-01 19:23 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("sourcebook", "0006_auto_20200101_1401"), ] operations = [ migrations.AddField( model_name="foiarequ...
[ "django.db.models.DateTimeField", "django.db.models.CharField" ]
[((382, 437), 'django.db.models.CharField', 'models.CharField', ([], {'default': '"""Unspecified"""', 'max_length': '(100)'}), "(default='Unspecified', max_length=100)\n", (398, 437), False, 'from django.db import migrations, models\n'), ((604, 659), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'defa...
import pymel.core as pm import os from functools import partial import System.utils as utils reload(utils) class Blueprint_UI: def __init__(self): self.directory = '%s/nwModularRiggingTool' %pm.internalVar(userScriptDir = True) self.moduleInstance = None self.Delete...
[ "pymel.core.scriptJob", "pymel.core.separator", "pymel.core.frameLayout", "pymel.core.expression", "pymel.core.tabLayout", "pymel.core.attributeQuery", "pymel.core.getAttr", "pymel.core.duplicate", "pymel.core.namespace", "pymel.core.rowLayout", "System.utils.FindAllMayaFiles", "System.utils.F...
[((473, 518), 'pymel.core.window', 'pm.window', (['"""blueprint_UI_window"""'], {'exists': '(True)'}), "('blueprint_UI_window', exists=True)\n", (482, 518), True, 'import pymel.core as pm\n'), ((581, 629), 'pymel.core.window', 'pm.window', (['"""mirrorModule_UI_window"""'], {'exists': '(True)'}), "('mirrorModule_UI_win...
""" Test the high-level compile function """ import unittest from six import StringIO from lesscpy import compile class TestCompileFunction(unittest.TestCase): """ Unit tests for compile """ def test_compile_from_stream(self): """ It can compile input from a file-like object ...
[ "lesscpy.compile", "six.StringIO", "tempfile.NamedTemporaryFile" ]
[((618, 656), 'tempfile.NamedTemporaryFile', 'tempfile.NamedTemporaryFile', ([], {'mode': '"""w+"""'}), "(mode='w+')\n", (645, 656), False, 'import tempfile\n'), ((752, 781), 'lesscpy.compile', 'compile', (['in_file'], {'minify': '(True)'}), '(in_file, minify=True)\n', (759, 781), False, 'from lesscpy import compile\n'...
# Lint as: python2, python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "tradefed_cluster.common.ParseFloat", "collections.namedtuple", "logging.debug", "six.itervalues", "collections.defaultdict", "six.iteritems" ]
[((1085, 1152), 'collections.namedtuple', 'namedtuple', (['"""Device"""', "['device_serial', 'run_target', 'attributes']"], {}), "('Device', ['device_serial', 'run_target', 'attributes'])\n", (1095, 1152), False, 'from collections import defaultdict, namedtuple\n'), ((1167, 1220), 'collections.namedtuple', 'namedtuple'...
# -*- coding: utf-8 -*- """ Created on Mon Jun 24 14:00:26 2019 @author: <NAME> """ import pandas as pd import time from datetime import timedelta import datetime from pandas import * import random data = pd.read_csv('df_Rhythm4analyze_o_37852_1558704625828706.csv') data['epoch_start'] = data['epoch_...
[ "matplotlib.pyplot.grid", "matplotlib.pyplot.title", "pandas.read_csv", "matplotlib.pyplot.xticks", "matplotlib.pyplot.ylabel", "matplotlib.font_manager.FontProperties", "matplotlib.pyplot.legend", "matplotlib.pyplot.hlines", "datetime.min.time", "datetime.timedelta", "matplotlib.pyplot.figure",...
[((223, 284), 'pandas.read_csv', 'pd.read_csv', (['"""df_Rhythm4analyze_o_37852_1558704625828706.csv"""'], {}), "('df_Rhythm4analyze_o_37852_1558704625828706.csv')\n", (234, 284), True, 'import pandas as pd\n'), ((350, 429), 'pandas.to_datetime', 'pd.to_datetime', (["data['epoch_start']"], {'unit': '"""ms"""', 'utc': '...
import beluga.Beluga as Beluga def test_brachistochrone(problem_brachistochrone): """! \brief Run classical Brachistochrone problem. \author <NAME> \version 0.1 \date 06/30/15 """ # TODO: Add assert statements to actually validate the solution # TODO: Validate sol.x, sol.y...
[ "beluga.Beluga.run" ]
[((336, 371), 'beluga.Beluga.run', 'Beluga.run', (['problem_brachistochrone'], {}), '(problem_brachistochrone)\n', (346, 371), True, 'import beluga.Beluga as Beluga\n')]
#! /usr/bin/python import struct import argparse from xml.dom.minidom import * header = '''\ #! /usr/bin/python import struct from types import * class LLRPError(Exception): def __str__(self, message = ""): return message class LLRPResponseError(LLRPError): def __str__(self, message = ""): ...
[ "struct.calcsize", "argparse.ArgumentParser" ]
[((3149, 3173), 'struct.calcsize', 'struct.calcsize', (['packStr'], {}), '(packStr)\n', (3164, 3173), False, 'import struct\n'), ((8614, 8638), 'struct.calcsize', 'struct.calcsize', (['packStr'], {}), '(packStr)\n', (8629, 8638), False, 'import struct\n'), ((25193, 25232), 'argparse.ArgumentParser', 'argparse.ArgumentP...
# Copyright (c) 2016 Orange. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
[ "neutron.tests.common.net_helpers.VethFixture", "neutron.tests.common.exclusive_resources.ip_network.ExclusiveIPNetwork", "neutron.tests.fullstack.resources.process.RabbitmqEnvironmentFixture", "networking_bagpipe.tests.fullstack.resources.common.process.BagpipeBGPFixture", "networking_bagpipe.tests.fullsta...
[((3533, 3577), 'neutron.common.utils.get_rand_device_name', 'utils.get_rand_device_name', ([], {'prefix': '"""br-mpls"""'}), "(prefix='br-mpls')\n", (3559, 3577), False, 'from neutron.common import utils\n'), ((3648, 3778), 'networking_bagpipe.tests.fullstack.resources.common.config.OVSConfigFixture', 'config.OVSConfi...
from libs.db_context import DBContext from models.eip import FreeEip from libs.aws.eip import get_eip_list def eip_sync_cmdb(): """eip数据同步""" eip_list = get_eip_list() with DBContext('w') as session: session.query(FreeEip).delete(synchronize_session=False) # 清空数据库的所有记录 for eip in eip_lis...
[ "libs.aws.eip.get_eip_list", "models.eip.FreeEip", "libs.db_context.DBContext" ]
[((164, 178), 'libs.aws.eip.get_eip_list', 'get_eip_list', ([], {}), '()\n', (176, 178), False, 'from libs.aws.eip import get_eip_list\n'), ((188, 202), 'libs.db_context.DBContext', 'DBContext', (['"""w"""'], {}), "('w')\n", (197, 202), False, 'from libs.db_context import DBContext\n'), ((711, 873), 'models.eip.FreeEip...
from typing import Hashable import pandas_flavor as pf import pandas as pd from janitor.utils import deprecated_alias @pf.register_dataframe_method @deprecated_alias(column="column_name") def to_datetime( df: pd.DataFrame, column_name: Hashable, **kwargs ) -> pd.DataFrame: """Convert column to a datetime typ...
[ "janitor.utils.deprecated_alias", "pandas.to_datetime" ]
[((152, 190), 'janitor.utils.deprecated_alias', 'deprecated_alias', ([], {'column': '"""column_name"""'}), "(column='column_name')\n", (168, 190), False, 'from janitor.utils import deprecated_alias\n'), ((1372, 1413), 'pandas.to_datetime', 'pd.to_datetime', (['df[column_name]'], {}), '(df[column_name], **kwargs)\n', (1...
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2018-01-19 14:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0021_remove_element_eid'), ] operations = [ ...
[ "django.db.models.ForeignKey" ]
[((428, 545), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""elements"""', 'to': '"""api.Page"""'}), "(null=True, on_delete=django.db.models.deletion.CASCADE,\n related_name='elements', to='api.Page')\n", (445, 545), F...
import numpy as np class StateAggregation: """Combine multiple states into groups and provide linear feature vector for function approximation""" def __init__(self, N_states, group_size, N_actions=1): """ Args: N_states: Total number of states group_size: Combine th...
[ "numpy.zeros" ]
[((1302, 1321), 'numpy.zeros', 'np.zeros', (['self.size'], {}), '(self.size)\n', (1310, 1321), True, 'import numpy as np\n'), ((1937, 1956), 'numpy.zeros', 'np.zeros', (['self.size'], {}), '(self.size)\n', (1945, 1956), True, 'import numpy as np\n')]
from collections import namedtuple import numpy as np from untwist import data, utilities, transforms Anchors = namedtuple('Anchors', ['Distortion', 'Artefacts', 'Interferer', 'Quality'], ) class ...
[ "collections.namedtuple", "numpy.random.choice", "untwist.transforms.ISTFT", "numpy.array", "untwist.transforms.STFT", "untwist.utilities.conversion.nearest_bin", "numpy.unravel_index", "scipy.signal.get_window", "untwist.utilities.conversion.db_to_amp" ]
[((114, 189), 'collections.namedtuple', 'namedtuple', (['"""Anchors"""', "['Distortion', 'Artefacts', 'Interferer', 'Quality']"], {}), "('Anchors', ['Distortion', 'Artefacts', 'Interferer', 'Quality'])\n", (124, 189), False, 'from collections import namedtuple\n'), ((2279, 2318), 'scipy.signal.get_window', 'signal.get_...
# QISKITのクラス、関数をインポート from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister from qiskit import register, execute #from qiskit.tools.visualization import plot_histogram # 量子オラクル from deutsch_oracle import * # 回路の作成 q = QuantumRegister(2) c = ClassicalRegister(2) qc = QuantumCircuit(q, c) qc.x(q[1]) qc...
[ "qiskit.QuantumCircuit", "qiskit.QuantumRegister", "qiskit.execute", "qiskit.ClassicalRegister" ]
[((236, 254), 'qiskit.QuantumRegister', 'QuantumRegister', (['(2)'], {}), '(2)\n', (251, 254), False, 'from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister\n'), ((259, 279), 'qiskit.ClassicalRegister', 'ClassicalRegister', (['(2)'], {}), '(2)\n', (276, 279), False, 'from qiskit import QuantumCircuit, C...
from pepper.brain.LTM_question_processing import create_query from pepper.brain.LTM_statement_processing import model_graphs from pepper.brain.basic_brain import BasicBrain from pepper.brain.infrastructure import Thoughts from pepper.brain.reasoners import LocationReasoner, ThoughtGenerator, TypeReasoner, TrustCalculat...
[ "pepper.brain.utils.helper_functions.casefold_text", "pepper.brain.reasoners.ThoughtGenerator", "pepper.brain.reasoners.TrustCalculator", "pepper.brain.LTM_statement_processing.model_graphs", "pepper.brain.reasoners.LocationReasoner", "pepper.brain.LTM_question_processing.create_query", "pepper.brain.re...
[((1064, 1086), 'pepper.brain.utils.helper_functions.read_query', 'read_query', (['"""prefixes"""'], {}), "('prefixes')\n", (1074, 1086), False, 'from pepper.brain.utils.helper_functions import read_query, casefold_text\n'), ((1147, 1181), 'pepper.brain.reasoners.ThoughtGenerator', 'ThoughtGenerator', (['address', 'log...
import re def get_list_links(string): list_regex = re.compile("((?:http|https)://(?:[a-z]{2}.pcpartpicker|pcpartpicker).com/list/(?:[a-zA-Z0-9]{6}))") return re.findall(list_regex, string) def get_product_links(string): product_regex = re.compile("((?:http|https)://(?:[a-z]{2}.pcpartpicker|pcpartpicker)...
[ "re.findall", "re.compile" ]
[((57, 166), 're.compile', 're.compile', (['"""((?:http|https)://(?:[a-z]{2}.pcpartpicker|pcpartpicker).com/list/(?:[a-zA-Z0-9]{6}))"""'], {}), "(\n '((?:http|https)://(?:[a-z]{2}.pcpartpicker|pcpartpicker).com/list/(?:[a-zA-Z0-9]{6}))'\n )\n", (67, 166), False, 'import re\n'), ((168, 198), 're.findall', 're.find...
import tensorflow as tf import numpy as np from tqdm import tqdm from tf_metric_learning.utils.index import AnnoyDataIndex class AnnoyEvaluatorCallback(AnnoyDataIndex): """ Callback, extracts embeddings, add them to AnnoyIndex and evaluate them as recall. """ def __init__( self, mod...
[ "tensorflow.nn.l2_normalize", "numpy.asarray" ]
[((3161, 3196), 'numpy.asarray', 'np.asarray', (["self.results['default']"], {}), "(self.results['default'])\n", (3171, 3196), True, 'import numpy as np\n'), ((1770, 1814), 'tensorflow.nn.l2_normalize', 'tf.nn.l2_normalize', (['embeddings_store'], {'axis': '(1)'}), '(embeddings_store, axis=1)\n', (1788, 1814), True, 'i...
import os import numpy as np import pandas as pd from PIL import Image import torch from torchvision import transforms from tqdm import tqdm from torchvision import models from numpy.testing import assert_almost_equal from typing import List from constants import PATH_IMAGES_CNN, PATH_IMAGES_RAW clas...
[ "os.path.exists", "os.listdir", "PIL.Image.open", "os.makedirs", "torchvision.transforms.Resize", "os.path.join", "torchvision.models.resnet18", "numpy.inner", "os.path.isfile", "torchvision.transforms.Normalize", "numpy.linalg.norm", "pandas.DataFrame", "torchvision.transforms.ToTensor", ...
[((655, 674), 'torch.device', 'torch.device', (['"""cpu"""'], {}), "('cpu')\n", (667, 674), False, 'import torch\n'), ((1013, 1034), 'torchvision.transforms.ToTensor', 'transforms.ToTensor', ([], {}), '()\n', (1032, 1034), False, 'from torchvision import transforms\n'), ((1061, 1136), 'torchvision.transforms.Normalize'...
# -*- coding: utf-8 -*- # Description: worker_level_tb table # By Thuong.Tran # Date: 29 Aug 2017 from sqlalchemy import create_engine, Table, Column, MetaData, Integer, Text, DateTime, Float from sqlalchemy import select, update, and_ from sqlalchemy.orm import sessionmaker import datetime as dt class worker_level(...
[ "sqlalchemy.create_engine", "sqlalchemy.MetaData", "sqlalchemy.Column", "sqlalchemy.select", "sqlalchemy.and_" ]
[((367, 388), 'sqlalchemy.create_engine', 'create_engine', (['db_url'], {}), '(db_url)\n', (380, 388), False, 'from sqlalchemy import create_engine, Table, Column, MetaData, Integer, Text, DateTime, Float\n'), ((441, 451), 'sqlalchemy.MetaData', 'MetaData', ([], {}), '()\n', (449, 451), False, 'from sqlalchemy import c...
import unittest import time import requests import random import http.server import socketserver from urllib.parse import urlparse from urllib.parse import parse_qsl from http import HTTPStatus from multiprocessing import Process from crypto.hmac import hmac_sha1 from util.bettercode import random_word HOST = '127.0...
[ "socketserver.TCPServer", "urllib.parse.urlparse", "multiprocessing.Process", "time.sleep", "requests.get", "time.time_ns", "crypto.hmac.hmac_sha1", "urllib.parse.parse_qsl", "random.randint", "util.bettercode.random_word" ]
[((333, 359), 'random.randint', 'random.randint', (['(7000)', '(9000)'], {}), '(7000, 9000)\n', (347, 359), False, 'import random\n'), ((411, 424), 'util.bettercode.random_word', 'random_word', ([], {}), '()\n', (422, 424), False, 'from util.bettercode import random_word\n'), ((1449, 1463), 'time.time_ns', 'time.time_n...
import tempfile import unittest import numpy as np import pystan from pystan.tests.helper import get_model def validate_data(fit): la = fit.extract(permuted=True) # return a dictionary of arrays mu, tau, eta, theta = la['mu'], la['tau'], la['eta'], la['theta'] np.testing.assert_equal(mu.shape, (2000,))...
[ "numpy.mean", "numpy.testing.assert_equal", "pystan.stan", "tempfile.NamedTemporaryFile", "pystan.tests.helper.get_model" ]
[((278, 320), 'numpy.testing.assert_equal', 'np.testing.assert_equal', (['mu.shape', '(2000,)'], {}), '(mu.shape, (2000,))\n', (301, 320), True, 'import numpy as np\n'), ((325, 368), 'numpy.testing.assert_equal', 'np.testing.assert_equal', (['tau.shape', '(2000,)'], {}), '(tau.shape, (2000,))\n', (348, 368), True, 'imp...
from ..Base.Identification import Identification as BaseId class Identification(BaseId): ''' Simple object to hold identification information for NISAR SLC products. ''' def __init__(self, *args, **kw): ''' Identify given object as relevant NISAR product. ''' self.trackN...
[ "nisar.h5.extractScalar" ]
[((616, 722), 'nisar.h5.extractScalar', 'extractScalar', (['h5grp', '"""trackNumber"""', 'int', "self.context['info']", '"""Track number could not be identified"""'], {}), "(h5grp, 'trackNumber', int, self.context['info'],\n 'Track number could not be identified')\n", (629, 722), False, 'from nisar.h5 import extract...
from utils import mal_refresh_token, g_refresh_token mal_refresh_token() g_refresh_token()
[ "utils.g_refresh_token", "utils.mal_refresh_token" ]
[((54, 73), 'utils.mal_refresh_token', 'mal_refresh_token', ([], {}), '()\n', (71, 73), False, 'from utils import mal_refresh_token, g_refresh_token\n'), ((75, 92), 'utils.g_refresh_token', 'g_refresh_token', ([], {}), '()\n', (90, 92), False, 'from utils import mal_refresh_token, g_refresh_token\n')]
# -*- coding: utf-8 -*- # ******************************************************************************* # # Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved # # ******************************************************************************* """ Authors: <NAME>, <EMAIL> Date: 2021/6/2 22:53 """ import sys imp...
[ "motmetrics.io.render_summary", "lib.tracking_utils.evaluation.EvaluatorMCMOT.get_summary", "motmetrics.metrics.create", "pandas.DataFrame", "pandas.concat" ]
[((1816, 1835), 'motmetrics.metrics.create', 'mm.metrics.create', ([], {}), '()\n', (1833, 1835), True, 'import motmetrics as mm\n'), ((1850, 1911), 'lib.tracking_utils.evaluation.EvaluatorMCMOT.get_summary', 'EvaluatorMCMOT.get_summary', (['seq_acc', 'index_name', 'metrics_list'], {}), '(seq_acc, index_name, metrics_l...
""" Meshing: Make and plot a tesseroid mesh """ from fatiando import mesher from fatiando.vis import myv mesh = mesher.TesseroidMesh((-60, 60, -30, 30, 100000, -500000), (10, 10, 10)) myv.figure(zdown=False) myv.tesseroids(mesh) myv.earth(opacity=0.3) myv.continents() myv.meridians(range(-180, 180, 30)) myv.parallels...
[ "fatiando.vis.myv.continents", "fatiando.mesher.TesseroidMesh", "fatiando.vis.myv.figure", "fatiando.vis.myv.earth", "fatiando.vis.myv.show", "fatiando.vis.myv.tesseroids" ]
[((113, 184), 'fatiando.mesher.TesseroidMesh', 'mesher.TesseroidMesh', (['(-60, 60, -30, 30, 100000, -500000)', '(10, 10, 10)'], {}), '((-60, 60, -30, 30, 100000, -500000), (10, 10, 10))\n', (133, 184), False, 'from fatiando import mesher\n'), ((186, 209), 'fatiando.vis.myv.figure', 'myv.figure', ([], {'zdown': '(False...
import math def find_prob(balls_set, event): possible = True num = 1 den = 1 balls = dict() available_ball = len(balls_set) for b in balls_set: if b in balls: balls[b] += 1 else: balls[b] = 1 for e in event: lc = ABBREVIATIONS[e] if lc...
[ "math.gcd" ]
[((518, 536), 'math.gcd', 'math.gcd', (['num', 'den'], {}), '(num, den)\n', (526, 536), False, 'import math\n')]
# Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software. """Simple setup script for installing the core package. """ from os import path from setuptools import find_packages, s...
[ "os.path.dirname", "setuptools.find_packages", "os.path.join" ]
[((344, 366), 'os.path.dirname', 'path.dirname', (['__file__'], {}), '(__file__)\n', (356, 366), False, 'from os import path\n'), ((378, 405), 'os.path.join', 'path.join', (['p', '"""./README.md"""'], {}), "(p, './README.md')\n", (387, 405), False, 'from os import path\n'), ((781, 796), 'setuptools.find_packages', 'fin...
import tensorflow as tf # https://github.com/NVIDIA/OpenSeq2Seq/blob/master/open_seq2seq/utils/utils.py#L403 def check_params(config, required_dict, optional_dict): if required_dict is None or optional_dict is None: return for pm, vals in required_dict.items(): if pm not in config: ...
[ "tensorflow.zeros_like", "tensorflow.where", "tensorflow.is_finite" ]
[((1536, 1552), 'tensorflow.zeros_like', 'tf.zeros_like', (['x'], {}), '(x)\n', (1549, 1552), True, 'import tensorflow as tf\n'), ((1566, 1581), 'tensorflow.is_finite', 'tf.is_finite', (['x'], {}), '(x)\n', (1578, 1581), True, 'import tensorflow as tf\n'), ((1590, 1618), 'tensorflow.where', 'tf.where', (['x_mask', 'x',...
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import dataclasses from dataclasses import dataclass from typing import Iterable, Optional, Tuple from pants.backend.python.rules.importable_python_sources import ImportablePythonSources ...
[ "pants.backend.python.rules.pex.PexRequest", "dataclasses.dataclass", "pants.backend.python.rules.pex.PexRequirements.create_from_requirement_fields", "pants.engine.rules.named_rule", "pants.engine.rules.RootRule", "pants.engine.target.Targets", "pants.backend.python.rules.pex.TwoStepPexRequest", "pan...
[((1087, 1114), 'dataclasses.dataclass', 'dataclass', ([], {'unsafe_hash': '(True)'}), '(unsafe_hash=True)\n', (1096, 1114), False, 'from dataclasses import dataclass\n'), ((2732, 2754), 'dataclasses.dataclass', 'dataclass', ([], {'frozen': '(True)'}), '(frozen=True)\n', (2741, 2754), False, 'from dataclasses import da...
import random import unittest import numpy as np import torch from elasticai.creator.brevitas.brevitas_model_comparison import ( BrevitasModelComparisonTestCase, ) from elasticai.creator.brevitas.brevitas_representation import BrevitasRepresentation from elasticai.creator.systemTests.brevitas_representation.model...
[ "torch.manual_seed", "elasticai.creator.brevitas.brevitas_representation.BrevitasRepresentation.from_pytorch", "random.seed", "elasticai.creator.systemTests.brevitas_representation.models_definition.create_qtorch_model", "numpy.random.seed", "unittest.main", "elasticai.creator.systemTests.brevitas_repre...
[((1380, 1395), 'unittest.main', 'unittest.main', ([], {}), '()\n', (1393, 1395), False, 'import unittest\n'), ((663, 683), 'torch.manual_seed', 'torch.manual_seed', (['(0)'], {}), '(0)\n', (680, 683), False, 'import torch\n'), ((692, 706), 'random.seed', 'random.seed', (['(0)'], {}), '(0)\n', (703, 706), False, 'impor...
""" get_offset determines the optimal p-site offset for each read-length on the top 10 most abundant ORFs in the bam-file usage: python get_offset.py --bam <bam-file> --orfs <ribofy orfs-file> --output <output-file> By default, get_offset analyses reads between 25 and 35 nt, but this is customizable with the --min_...
[ "pandas.Series", "pandas.DataFrame", "pandas.read_csv", "collections.Counter", "numpy.sum", "pysam.Samfile", "pandas.concat" ]
[((1757, 1791), 'pandas.Series', 'pd.Series', (['d'], {'index': '[i for i in d]'}), '(d, index=[i for i in d])\n', (1766, 1791), True, 'import pandas as pd\n'), ((3114, 3128), 'pandas.DataFrame', 'pd.DataFrame', ([], {}), '()\n', (3126, 3128), True, 'import pandas as pd\n'), ((3144, 3158), 'pandas.DataFrame', 'pd.DataF...
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('auth/', include('accounts.api.urls')), path('api/cities/', include('cities.api.urls')), path('api/categories/', include('categories.api.urls')), path('api/advertisements/',...
[ "django.urls.path", "django.urls.include" ]
[((93, 124), 'django.urls.path', 'path', (['"""admin/"""', 'admin.site.urls'], {}), "('admin/', admin.site.urls)\n", (97, 124), False, 'from django.urls import path, include\n'), ((144, 172), 'django.urls.include', 'include', (['"""accounts.api.urls"""'], {}), "('accounts.api.urls')\n", (151, 172), False, 'from django....
from os import urandom import hashlib #electrum from electrum import mnemonic from electrum import constants from electrum.bitcoin import TYPE_ADDRESS, int_to_hex, var_int from electrum.i18n import _ from electrum.plugin import BasePlugin, Device from electrum.keystore import Hardware_KeyStore, bip39_to_seed ...
[ "electrum.bitcoin.int_to_hex", "electrum.mnemonic.Mnemonic", "electrum.bip32.convert_bip32_intpath_to_strpath", "electrum.logging.get_logger", "electrum.bip32.BIP32Node", "pysatochip.Satochip2FA.Satochip2FA.do_challenge_response", "electrum.keystore.Hardware_KeyStore.dump", "electrum.keystore.bip39_to...
[((1546, 1566), 'electrum.logging.get_logger', 'get_logger', (['__name__'], {}), '(__name__)\n', (1556, 1566), False, 'from electrum.logging import get_logger\n'), ((1752, 2183), 'electrum.i18n._', '_', (['"""Do you want to use 2-Factor-Authentication (2FA)?\n\nWith 2FA, any transaction must be confirmed on a second de...
# Copyright 2017 Telstra Open Source # # 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 agre...
[ "pathlib.Path", "os.path.join", "kilda.traffexam.exc.InvalidLoggingConfigError", "kilda.traffexam.common.ProcMonitor", "kilda.traffexam.common.Registry" ]
[((811, 865), 'os.path.join', 'os.path.join', (['os.sep', '"""var"""', '"""run"""', 'const.PROJECT_NAME'], {}), "(os.sep, 'var', 'run', const.PROJECT_NAME)\n", (823, 865), False, 'import os\n'), ((1038, 1058), 'kilda.traffexam.common.ProcMonitor', 'common.ProcMonitor', ([], {}), '()\n', (1056, 1058), False, 'from kilda...
# from django.utils.translation import gettext_lazy as _ from django_auth_system.model_creator import UserModelCreator user = UserModelCreator().create_model() class User(user): class Meta(user.Meta): abstract = False
[ "django_auth_system.model_creator.UserModelCreator" ]
[((128, 146), 'django_auth_system.model_creator.UserModelCreator', 'UserModelCreator', ([], {}), '()\n', (144, 146), False, 'from django_auth_system.model_creator import UserModelCreator\n')]
import argparse def get_arg_parser(parser=None): """Parse the command line arguments for merge using argparse Args: parser (argparse.ArgumentParser or CompliantArgumentParser): an argument parser instance Returns: ArgumentParser: the argument parser instance Notes: i...
[ "argparse.ArgumentParser" ]
[((471, 515), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '__doc__'}), '(description=__doc__)\n', (494, 515), False, 'import argparse\n')]
import random char = 'qwertyuiopasdfghjklzxcvbnm!@#$%^&*(()' stren = 10 password = "".join(random.sample(char , stren)) print (password)
[ "random.sample" ]
[((94, 120), 'random.sample', 'random.sample', (['char', 'stren'], {}), '(char, stren)\n', (107, 120), False, 'import random\n')]
import os from io import BytesIO from PIL import Image, ImageDraw, ImageFont from django.test import TestCase from django.conf import settings from apps.preferences.models import PreferencesManager class SignalsTestCase(TestCase): fixtures = ['preferences.json'] def setUp(self): pass def test_e...
[ "PIL.Image.new", "os.path.join", "PIL.ImageFont.truetype", "io.BytesIO", "apps.preferences.models.PreferencesManager", "PIL.ImageDraw.Draw" ]
[((517, 580), 'os.path.join', 'os.path.join', (['settings.STATIC_ROOT', '"""fonts/TimesNewRomanCE.ttf"""'], {}), "(settings.STATIC_ROOT, 'fonts/TimesNewRomanCE.ttf')\n", (529, 580), False, 'import os\n'), ((656, 694), 'PIL.ImageFont.truetype', 'ImageFont.truetype', (['fontfile', 'fontsize'], {}), '(fontfile, fontsize)\...
from pyimagesearch import datasets from pyimagesearch import models from sklearn.model_selection import train_test_split from keras.layers.core import Dense from keras.models import Model from keras.optimizers import Adam from keras.layers import concatenate import tensorflow as tf from tensorflow import feature_column...
[ "numpy.ma.masked_equal", "tensorflow.feature_column.indicator_column", "pyimagesearch.datasets.load_data", "os.listdir", "tensorflow.keras.layers.DenseFeatures", "cv2.threshold", "pyimagesearch.datasets.load_wrist_images", "numpy.asarray", "tensorflow.feature_column.numeric_column", "numpy.ma.fill...
[((670, 694), 'os.listdir', 'os.listdir', (['"""demo\\\\data"""'], {}), "('demo\\\\data')\n", (680, 694), False, 'import os\n'), ((3732, 3821), 'pyimagesearch.datasets.load_data', 'datasets.load_data', (['"""C:\\\\Users\\\\User\\\\Desktop\\\\Peter\\\\Bone_density\\\\demo\\\\demo.xlsx"""'], {}), "(\n 'C:\\\\Users\\\\...
""" Example script to plot the data stored in a floating background summary hdf5s. This script: * Reads in a summary hdf5 * Plots total test statistic, penalty term, best fit value and best fit value in terms of number of sigma away from the prior value all vs. signal scale. Examples: To plot the summary ...
[ "echidna.output.store.load_summary", "argparse.ArgumentParser", "echidna.output.plot_root.plot_penalty_term_vs_scale", "echidna.output.plot_root.plot_best_fit_vs_scale", "echidna.output.plot_root.plot_stats_vs_scale", "echidna.output.plot_root.plot_sigma_best_fit_vs_scale", "ROOT.TCanvas" ]
[((842, 867), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {}), '()\n', (865, 867), False, 'import argparse\n'), ((1315, 1345), 'echidna.output.store.load_summary', 'store.load_summary', (['args.fname'], {}), '(args.fname)\n', (1333, 1345), False, 'from echidna.output import store\n'), ((1426, 1440), 'ROO...
#!/usr/bin/env python from chassis_publisher import chassisSending from chassis_subscriber import chassisReceiver from chassis_gui import Ui_chassisGui import chassis_enums as ce from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import QObject, QRect from PyQt5.QtWidgets import QMessageBox from joypad impor...
[ "chassis_subscriber.chassisReceiver", "PyQt5.QtWidgets.QMessageBox", "chassis_publisher.chassisSending", "PyQt5.QtCore.pyqtSlot", "chassis_gui.Ui_chassisGui.setupUi", "PyQt5.QtGui.QPixmap", "joypad.Joystick" ]
[((3535, 3552), 'PyQt5.QtCore.pyqtSlot', 'QtCore.pyqtSlot', ([], {}), '()\n', (3550, 3552), False, 'from PyQt5 import QtCore, QtGui, QtWidgets\n'), ((3800, 3817), 'PyQt5.QtCore.pyqtSlot', 'QtCore.pyqtSlot', ([], {}), '()\n', (3815, 3817), False, 'from PyQt5 import QtCore, QtGui, QtWidgets\n'), ((4238, 4255), 'PyQt5.QtC...
from cbas_base import * from membase.api.rest_client import RestHelper from couchbase_cli import CouchbaseCLI class CBASClusterManagement(CBASBaseTest): def setUp(self): self.input = TestInputSingleton.input if "default_bucket" not in self.input.test_params: self.input.test_params.updat...
[ "fts.fts_base.NodeHelper.start_couchbase", "couchbase_cli.CouchbaseCLI", "fts.fts_base.NodeHelper.reboot_server", "fts.fts_base.NodeHelper.wait_service_started", "fts.fts_base.NodeHelper.stop_couchbase" ]
[((20458, 20504), 'fts.fts_base.NodeHelper.reboot_server', 'NodeHelper.reboot_server', (['self.cbas_node', 'self'], {}), '(self.cbas_node, self)\n', (20482, 20504), False, 'from fts.fts_base import NodeHelper\n'), ((21397, 21444), 'fts.fts_base.NodeHelper.stop_couchbase', 'NodeHelper.stop_couchbase', (['self.cbas_serve...
#!/usr/bin/python3 # File: test_console.py # Authors: <NAME> - <NAME> # email(s): <<EMAIL>> # <<EMAIL>> """ This Module Defines Unittest for Console command interpreter. Unittest classes: TestHBNBCommand_prompt TestHBNBCommand_help TestHBNBCommand_exit TestHBNBCommand_create TestHBNBComm...
[ "models.storage.all", "os.rename", "console.HBNBCommand", "models.storage.reload", "unittest.main", "io.StringIO", "os.remove" ]
[((79503, 79518), 'unittest.main', 'unittest.main', ([], {}), '()\n', (79516, 79518), False, 'import unittest\n'), ((22686, 22702), 'models.storage.reload', 'storage.reload', ([], {}), '()\n', (22700, 22702), False, 'from models import storage\n'), ((5134, 5163), 'os.rename', 'os.rename', (['"""file.json"""', '"""tmp""...