code
stringlengths
22
1.05M
apis
listlengths
1
3.31k
extract_api
stringlengths
75
3.25M
import numpy as np from sklearn.linear_model import LogisticRegression, SGDClassifier from sklearn.pipeline import Pipeline from soccer_xg.ml.preprocessing import simple_proc_for_linear_algoritms def logreg_gridsearch_classifier( numeric_features, categoric_features, learning_rate=0.08, use_dask=False...
[ "sklearn.linear_model.SGDClassifier", "soccer_xg.ml.preprocessing.simple_proc_for_linear_algoritms", "numpy.logspace", "sklearn.model_selection.RandomizedSearchCV", "sklearn.linear_model.LogisticRegression" ]
[((1818, 1873), 'sklearn.linear_model.LogisticRegression', 'LogisticRegression', ([], {'max_iter': '(10000)', 'fit_intercept': '(False)'}), '(max_iter=10000, fit_intercept=False)\n', (1836, 1873), False, 'from sklearn.linear_model import LogisticRegression, SGDClassifier\n'), ((2275, 2390), 'sklearn.linear_model.SGDCla...
# Generated by Django 2.1.7 on 2019-04-17 09:25 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), ('engine', '0017_db_redesi...
[ "django.db.migrations.swappable_dependency", "django.db.models.BigAutoField", "django.db.models.CharField", "django.db.models.PositiveIntegerField", "django.db.models.ForeignKey", "django.db.models.DateTimeField" ]
[((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'), ((467, 521), 'django.db.models.BigAutoField', 'models.BigAutoField', ([], {'primary_key': '(...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the 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. import math import torch import to...
[ "torch.ones_like", "fairseq.utils.item", "torch.nn.KLDivLoss", "torch.nn.functional.softmax", "torch.nn.functional.log_softmax", "math.log" ]
[((1696, 1717), 'fairseq.utils.item', 'utils.item', (['loss.data'], {}), '(loss.data)\n', (1706, 1717), False, 'from fairseq import utils\n'), ((1768, 1793), 'fairseq.utils.item', 'utils.item', (['nll_loss.data'], {}), '(nll_loss.data)\n', (1778, 1793), False, 'from fairseq import utils\n'), ((2861, 2884), 'torch.ones_...
from __future__ import print_function # http://stackoverflow.com/questions/15247075/how-can-i-dynamically-create-derived-classes-from-a-base-class from builtins import object from pyqtgraph.flowchart import Node from pyqtgraph.flowchart.library.common import CtrlNode from RRtoolbox.lib.inspector import funcData # TODO...
[ "RRtoolbox.lib.inspector.funcData" ]
[((2398, 2412), 'RRtoolbox.lib.inspector.funcData', 'funcData', (['func'], {}), '(func)\n', (2406, 2412), False, 'from RRtoolbox.lib.inspector import funcData\n'), ((3811, 3839), 'RRtoolbox.lib.inspector.funcData', 'funcData', (['nodeClass.__init__'], {}), '(nodeClass.__init__)\n', (3819, 3839), False, 'from RRtoolbox....
# Copyright 2015 The Shaderc 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 required by applicable...
[ "placeholder.StdinShader", "placeholder.FileShader", "placeholder.TempFileName", "glslc_test_framework.inside_glslc_testsuite" ]
[((756, 786), 'glslc_test_framework.inside_glslc_testsuite', 'inside_glslc_testsuite', (['"""File"""'], {}), "('File')\n", (778, 786), False, 'from glslc_test_framework import inside_glslc_testsuite\n'), ((1001, 1031), 'glslc_test_framework.inside_glslc_testsuite', 'inside_glslc_testsuite', (['"""File"""'], {}), "('Fil...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from uuid import UUID from botframework.streaming.payload_transport import PayloadSender from botframework.streaming.payloads.models import Header class CancelDisassembler: def __init__(self, *, sender: PayloadSender, ...
[ "botframework.streaming.payloads.models.Header" ]
[((495, 549), 'botframework.streaming.payloads.models.Header', 'Header', ([], {'type': 'self._type', 'id': 'self._identifier', 'end': '(True)'}), '(type=self._type, id=self._identifier, end=True)\n', (501, 549), False, 'from botframework.streaming.payloads.models import Header\n')]
import math import random import warnings import numpy as np import scipy.ndimage import torch from torch.autograd import Function from torch.autograd.function import once_differentiable import torch.backends.cudnn as cudnn from util.logconf import logging log = logging.getLogger(__name__) # log.setLevel(logging.WAR...
[ "numpy.zeros_like", "numpy.flip", "warnings.simplefilter", "numpy.random.random_sample", "numpy.zeros", "util.logconf.logging.getLogger", "random.random", "warnings.catch_warnings" ]
[((266, 293), 'util.logconf.logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (283, 293), False, 'from util.logconf import logging\n'), ((1568, 1606), 'numpy.zeros', 'np.zeros', (['new_shape'], {'dtype': 'image.dtype'}), '(new_shape, dtype=image.dtype)\n', (1576, 1606), True, 'import numpy as...
""" Licensed under the terms of the BSD-3-Clause license. Copyright (C) 2019 <NAME>, <EMAIL> """ from dataclasses import dataclass from typing import ClassVar, Generator, Tuple, Union import numpy as _np from numpy.lib.stride_tricks import as_strided from . audio import AudioFile from . container import Params from ....
[ "numpy.ceil", "numpy.empty", "numpy.lib.stride_tricks.as_strided", "numpy.expand_dims" ]
[((12391, 12435), 'numpy.empty', '_np.empty', (['(n_segs, n_perseg)'], {'dtype': 'x.dtype'}), '((n_segs, n_perseg), dtype=x.dtype)\n', (12400, 12435), True, 'import numpy as _np\n'), ((14728, 14771), 'numpy.empty', '_np.empty', (['(n_ons, n_perseg)'], {'dtype': 'x.dtype'}), '((n_ons, n_perseg), dtype=x.dtype)\n', (1473...
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-08-18 09:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('series', '0001_initial'), ] operations = [ m...
[ "django.db.models.ForeignKey" ]
[((422, 535), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""episodes"""', 'to': '"""series.Seasons"""'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n ='episodes', to='series.Seasons')\n", (439, 535), False, 'from djan...
from abc import ABC, abstractmethod from typing import Tuple, Union, Optional, Iterable import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import numpy as np from matplotlib import pyplot as plt from scipy.stats import norm from pyPDP.surrogate_models import SurrogateModel from pyPDP.utils.plotting im...
[ "pyPDP.utils.utils.get_hyperparameters", "pyPDP.utils.plotting.get_ax", "numpy.asarray", "scipy.stats.norm.pdf", "scipy.stats.norm.cdf", "numpy.argsort", "pyPDP.utils.utils.get_selected_idx", "pyPDP.utils.plotting.check_and_set_axis" ]
[((2469, 2479), 'pyPDP.utils.plotting.get_ax', 'get_ax', (['ax'], {}), '(ax)\n', (2475, 2479), False, 'from pyPDP.utils.plotting import get_ax, check_and_set_axis\n'), ((2508, 2565), 'pyPDP.utils.utils.get_hyperparameters', 'get_hyperparameters', (['x_hyperparameters', 'self.config_space'], {}), '(x_hyperparameters, se...
#!/usr/bin/env python # Copyright (c) 2020 Carnegie Mellon University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
[ "rospy.logerr", "cabot_ui.status.StatusManager.get_instance", "rospy.Subscriber", "cabot_ui.exploration.Exploration", "rospy.ServiceProxy", "cabot_ui.navigation.Navigation", "rospy.get_name", "rospy.init_node", "traceback.format_exc", "rospy.wait_for_service", "cabot_ui.interface.UserInterface",...
[((4774, 4802), 'cabot.util.setInterval', 'util.setInterval', (['(2)'], {'times': '(1)'}), '(2, times=1)\n', (4790, 4802), False, 'from cabot import util\n'), ((17544, 17602), 'rospy.init_node', 'rospy.init_node', (['"""cabot_ui_manager"""'], {'log_level': 'rospy.DEBUG'}), "('cabot_ui_manager', log_level=rospy.DEBUG)\n...
import time import urllib.request import concurrent.futures url_list = [ "https://www.baidu.com", "https://www.qq.com", "https://www.sogou.com", "https://www.cnblogs.com" ] def get_html(url, timeout=10): with urllib.request.urlopen(url, timeout=timeout) as conn: return conn.read() def main(): ...
[ "time.time" ]
[((336, 347), 'time.time', 'time.time', ([], {}), '()\n', (345, 347), False, 'import time\n'), ((783, 794), 'time.time', 'time.time', ([], {}), '()\n', (792, 794), False, 'import time\n')]
# -*- coding: utf-8 -*- import os import subprocess from pathlib import Path # -- Breathe Configs for ReadTheDocs ------------------------------------------ on_rtd = os.environ.get("READTHEDOCS", None) == "True" if on_rtd: subprocess.run("cd ..; doxygen alfasim_sdk_api.cfg", shell=True) breathe_projects = {"a...
[ "os.environ.get", "subprocess.run", "os.getcwd" ]
[((167, 202), 'os.environ.get', 'os.environ.get', (['"""READTHEDOCS"""', 'None'], {}), "('READTHEDOCS', None)\n", (181, 202), False, 'import os\n'), ((229, 293), 'subprocess.run', 'subprocess.run', (['"""cd ..; doxygen alfasim_sdk_api.cfg"""'], {'shell': '(True)'}), "('cd ..; doxygen alfasim_sdk_api.cfg', shell=True)\n...
from django.contrib import admin from sidebar.models import Sidebar from django import forms from django.db import models class SidebarAdmin(admin.ModelAdmin): fields = ('position',) admin.site.register(Sidebar, SidebarAdmin)
[ "django.contrib.admin.site.register" ]
[((189, 231), 'django.contrib.admin.site.register', 'admin.site.register', (['Sidebar', 'SidebarAdmin'], {}), '(Sidebar, SidebarAdmin)\n', (208, 231), False, 'from django.contrib import admin\n')]
# Copyright 2022 The Orbit 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 required by applicable l...
[ "json.dump", "json.load", "uuid.uuid4", "orbit.utils.get_value", "tensorflow.io.gfile.rename", "os.path.dirname", "tensorflow.io.gfile.exists", "tensorflow.io.gfile.stat", "tensorflow.io.gfile.GFile" ]
[((4703, 4725), 'orbit.utils.get_value', 'utils.get_value', (['value'], {}), '(value)\n', (4718, 4725), False, 'from orbit import utils\n'), ((7539, 7573), 'tensorflow.io.gfile.exists', 'tf.io.gfile.exists', (['self._filename'], {}), '(self._filename)\n', (7557, 7573), True, 'import tensorflow as tf\n'), ((8414, 8478),...
import torch from .base import RLAlgorithmBase from policies.models.actor import DeterministicPolicy from torchkit.networks import FlattenMlp class TD3(RLAlgorithmBase): name = "td3" continuous_action = True use_target_actor = True def __init__( self, exploration_noise=0.1, target_noise=0.2, ...
[ "torch.randn_like", "policies.models.actor.DeterministicPolicy", "torchkit.networks.FlattenMlp", "torch.no_grad", "torch.min" ]
[((605, 709), 'policies.models.actor.DeterministicPolicy', 'DeterministicPolicy', ([], {'obs_dim': 'input_size', 'action_dim': 'action_dim', 'hidden_sizes': 'hidden_sizes'}), '(obs_dim=input_size, action_dim=action_dim, hidden_sizes\n =hidden_sizes, **kwargs)\n', (624, 709), False, 'from policies.models.actor import...
import json import ipyvuetify as v import ipywidgets as w from src.neo_utils import delete_content, extract_jsons, get_file_content, get_files_list, get_files_stats, \ get_arrows_json, get_label_properties, save_merge_on, delete_merge_on, get_merge_on import pprint class ColPreview(v.Col): TEXTFIELD_PREFIX = ...
[ "src.neo_utils.get_file_content", "ipyvuetify.Checkbox", "src.neo_utils.get_merge_on", "src.neo_utils.get_files_list", "ipyvuetify.Tab", "src.neo_utils.save_merge_on", "src.neo_utils.delete_merge_on", "ipyvuetify.TextField", "ipywidgets.Output", "src.neo_utils.get_label_properties", "src.neo_uti...
[((444, 474), 'pprint.PrettyPrinter', 'pprint.PrettyPrinter', ([], {'indent': '(1)'}), '(indent=1)\n', (464, 474), False, 'import pprint\n'), ((713, 731), 'ipyvuetify.Col', 'v.Col', ([], {'children': '[]'}), '(children=[])\n', (718, 731), True, 'import ipyvuetify as v\n'), ((758, 799), 'ipyvuetify.Btn', 'v.Btn', ([], {...
from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse from openpds.core.models import Profile from pymongo import Connection from openpds import settings import json import random def dump(request): profiles = Profile.objects.all() data = {} connecti...
[ "django.shortcuts.render_to_response", "openpds.core.models.Profile.objects.all" ]
[((267, 288), 'openpds.core.models.Profile.objects.all', 'Profile.objects.all', ([], {}), '()\n', (286, 288), False, 'from openpds.core.models import Profile\n'), ((691, 731), 'django.shortcuts.render_to_response', 'render_to_response', (['"""dataDump.csv"""', 'data'], {}), "('dataDump.csv', data)\n", (709, 731), False...
import connexion import six from app.models.bank_card import BankCard # noqa: E501 from app import util def add_bank_card(body, account_id): # noqa: E501 """Add a new bank card for an account Add a new card for the specified account # noqa: E501 :param body: Bank card details :type body: dict | b...
[ "connexion.request.get_json" ]
[((486, 514), 'connexion.request.get_json', 'connexion.request.get_json', ([], {}), '()\n', (512, 514), False, 'import connexion\n')]
# -*- coding: utf-8 -*- """ Created by @dtheodor at 2015-05-31 Test SQL compilation of SQL schema set and get. """ from sqlalchemy.dialects.postgres import dialect as pg_dialect from sqlalchemy.dialects.oracle import dialect as oracle_dialect from sqlalchemy.dialects.mssql import dialect as mssql_dialect from sqlalche...
[ "sqlalchemy.dialects.mssql.dialect", "sqlalchemy_sqlschema.sql.get_schema", "sqlalchemy.dialects.oracle.dialect", "sqlalchemy_sqlschema.sql.set_schema", "sqlalchemy.dialects.postgres.dialect" ]
[((694, 706), 'sqlalchemy_sqlschema.sql.get_schema', 'get_schema', ([], {}), '()\n', (704, 706), False, 'from sqlalchemy_sqlschema.sql import set_schema, get_schema\n'), ((870, 894), 'sqlalchemy_sqlschema.sql.set_schema', 'set_schema', (['"""new_schema"""'], {}), "('new_schema')\n", (880, 894), False, 'from sqlalchemy_...
from abc import ABC from dataclasses import dataclass from enum import Enum from logging import getLogger from typing import List, Tuple, Callable from beamngpy import Scenario _logger = getLogger("DriveBuild.SimNode.DBTypes.Criteria") class KPValue(Enum): """ Represents the Kleene-Priest logic. """ ...
[ "shapely.geometry.Point", "shapely.geometry.Polygon", "numpy.array", "warnings.warn", "drivebuildclient.static_vars", "logging.getLogger" ]
[((189, 237), 'logging.getLogger', 'getLogger', (['"""DriveBuild.SimNode.DBTypes.Criteria"""'], {}), "('DriveBuild.SimNode.DBTypes.Criteria')\n", (198, 237), False, 'from logging import getLogger\n'), ((2936, 2979), 'drivebuildclient.static_vars', 'static_vars', ([], {'prefix': '"""criterion_"""', 'counter': '(0)'}), "...
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Helper functions for issue template servlets""" from __future__ import print_function from _...
[ "proto.tracker_pb2.ApprovalValue", "framework.framework_bizobj.UserIsInProject", "tracker.tracker_bizobj.GetFieldValue", "proto.tracker_pb2.Issue", "framework.authdata.AuthData.FromUserID", "collections.defaultdict", "logging.info", "tracker.field_helpers.ParseFieldValues", "collections.namedtuple",...
[((893, 1198), 'collections.namedtuple', 'collections.namedtuple', (['"""ParsedTemplate"""', '"""name, members_only, summary, summary_must_be_edited, content, status, owner_str, labels, field_val_strs, component_paths, component_required, owner_defaults_to_member, admin_str, add_approvals, phase_names, approvals_to_pha...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from logging import NullHandler, getLogger from six import text_type logger = getLogger(__name__) logger.addHandler(NullHandler()) class Reportable(object): """Reportable abstract class.""" def __init__(self, name, description=None, reportabl...
[ "six.text_type", "logging.getLogger", "logging.NullHandler" ]
[((145, 164), 'logging.getLogger', 'getLogger', (['__name__'], {}), '(__name__)\n', (154, 164), False, 'from logging import NullHandler, getLogger\n'), ((183, 196), 'logging.NullHandler', 'NullHandler', ([], {}), '()\n', (194, 196), False, 'from logging import NullHandler, getLogger\n'), ((734, 750), 'six.text_type', '...
from django.contrib.auth.models import User from django.db import models from datetime import datetime, timedelta TARGETS = ( ('ACA', 'Academic'), ('GAM', 'Gaming'), ('SCL', 'Social'), ('SCT', 'Society'), ) COMMS_TYPE = ( ('NL', 'Newsletter'), ('M', 'Minute'), ('N', 'News Item'), ) STATUS...
[ "django.db.models.TextField", "django.db.models.OneToOneField", "django.db.models.CharField", "django.db.models.ForeignKey", "django.db.models.BooleanField", "django.db.models.IntegerField", "datetime.timedelta", "django.db.models.DateField", "django.db.models.DateTimeField", "datetime.datetime.no...
[((536, 568), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), '(max_length=100)\n', (552, 568), False, 'from django.db import models\n'), ((580, 598), 'django.db.models.DateField', 'models.DateField', ([], {}), '()\n', (596, 598), False, 'from django.db import models\n'), ((610, 628), '...
from suds.client import Client from suds import WebFault class SoapHelper: def __init__(self, app): self.app = app def can_login(self, username, password): client = Client("http://localhost/mantisbt-2.25.2/api/soap/mantisconnect.php?wsdl") try: client.service.mc_login(use...
[ "suds.client.Client" ]
[((193, 267), 'suds.client.Client', 'Client', (['"""http://localhost/mantisbt-2.25.2/api/soap/mantisconnect.php?wsdl"""'], {}), "('http://localhost/mantisbt-2.25.2/api/soap/mantisconnect.php?wsdl')\n", (199, 267), False, 'from suds.client import Client\n'), ((484, 558), 'suds.client.Client', 'Client', (['"""http://loca...
from unittest.mock import MagicMock, Mock, patch import numpy as np import pytest from chitra.visualization.metrics import ( cm_accuracy, detect_multilabel, plot_confusion_matrix, ) def test_detect_multilabel(): with pytest.raises(UserWarning): detect_multilabel({"label1": "this will raise U...
[ "chitra.visualization.metrics.cm_accuracy", "unittest.mock.MagicMock", "numpy.asarray", "chitra.visualization.metrics.plot_confusion_matrix", "unittest.mock.patch", "pytest.raises", "chitra.visualization.metrics.detect_multilabel" ]
[((524, 565), 'unittest.mock.patch', 'patch', (['"""chitra.visualization.metrics.plt"""'], {}), "('chitra.visualization.metrics.plt')\n", (529, 565), False, 'from unittest.mock import MagicMock, Mock, patch\n'), ((346, 377), 'chitra.visualization.metrics.detect_multilabel', 'detect_multilabel', (['[1, 2, 3, 4]'], {}), ...
# -*- coding: utf-8 -*- # # Copyright (C) 2020 <NAME> <<EMAIL>> # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files(the "Software"), to deal # in the Software withou...
[ "helpers.AppriseURLTester", "mock.patch", "logging.disable", "mock.Mock", "apprise.plugins.NotifyNextcloud" ]
[((1362, 1395), 'logging.disable', 'logging.disable', (['logging.CRITICAL'], {}), '(logging.CRITICAL)\n', (1377, 1395), False, 'import logging\n'), ((4461, 4488), 'mock.patch', 'mock.patch', (['"""requests.post"""'], {}), "('requests.post')\n", (4471, 4488), False, 'import mock\n'), ((4707, 4718), 'mock.Mock', 'mock.Mo...
# Copyright 2014 Mirantis, Inc. # # 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 ...
[ "os.path.abspath", "logging.error", "os.path.basename", "os.path.dirname", "os.walk", "sys.path.insert", "re.match", "os.path.isfile", "puppet_test.PuppetTest", "os.path.join", "os.chdir", "re.compile" ]
[((700, 725), 'os.path.abspath', 'os.path.abspath', (['__file__'], {}), '(__file__)\n', (715, 725), False, 'import os\n'), ((733, 754), 'os.path.dirname', 'os.path.dirname', (['path'], {}), '(path)\n', (748, 754), False, 'import os\n'), ((755, 779), 'sys.path.insert', 'sys.path.insert', (['(0)', 'path'], {}), '(0, path...
# -*- coding: utf-8 -*- import numpy as np import scipy as sp import matplotlib.pyplot as plt POINTS = 1000 if __name__ == '__main__': gauss1 = (np.random.randn(POINTS), np.random.randn(POINTS)*0.24); gauss2 = (np.random.randn(POINTS)*0.28, np.random.randn(POINTS)); x1 = np.array(range(POINTS)) * 0.005 ...
[ "matplotlib.pyplot.draw", "matplotlib.pyplot.scatter", "matplotlib.pyplot.show", "numpy.random.randn" ]
[((604, 637), 'matplotlib.pyplot.scatter', 'plt.scatter', (['cc[0]', 'cc[1]'], {'c': 'u"""b"""'}), "(cc[0], cc[1], c=u'b')\n", (615, 637), True, 'import matplotlib.pyplot as plt\n'), ((642, 675), 'matplotlib.pyplot.scatter', 'plt.scatter', (['dd[0]', 'dd[1]'], {'c': 'u"""r"""'}), "(dd[0], dd[1], c=u'r')\n", (653, 675),...
# -*- coding: utf-8 -*- """ /* ---------------------------------------------------------------------------- * PalmSens Method SCRIPT SDK * ---------------------------------------------------------------------------- * Copyright (c) 2019-2020, PalmSens BV * * All rights reserved. * * Redistribution and us...
[ "matplotlib.pyplot.title", "PSEsPicoLib.IsConnected", "matplotlib.pyplot.figure", "serial.Serial", "PSEsPicoLib.CheckFileExistAndRename", "PSEsPicoLib.Flush", "PSEsPicoLib.SendScriptFile", "PSEsPicoLib.GetResults", "matplotlib.pyplot.show", "PSEsPicoLib.OpenComport", "PSEsPicoLib.GetColumnFromMa...
[((2738, 2783), 'PSEsPicoLib.SetPrintVerbose', 'PSEsPicoLib.SetPrintVerbose', (['verbose_printing'], {}), '(verbose_printing)\n', (2765, 2783), False, 'import PSEsPicoLib\n'), ((3015, 3030), 'serial.Serial', 'serial.Serial', ([], {}), '()\n', (3028, 3030), False, 'import serial\n'), ((3078, 3117), 'PSEsPicoLib.OpenComp...
from reinforch.agents import DQNAgent from reinforch.core.memorys import SimpleMatrixMemory from reinforch.environments import OpenAIGym from reinforch.execution import Runner def test_dqn(): gym_id = 'CartPole-v0' env = OpenAIGym(gym_id) env.seed(7) n_s = env.n_s n_a = env.n_a memory = Simpl...
[ "reinforch.core.memorys.SimpleMatrixMemory", "reinforch.execution.Runner", "reinforch.environments.OpenAIGym", "reinforch.agents.DQNAgent" ]
[((232, 249), 'reinforch.environments.OpenAIGym', 'OpenAIGym', (['gym_id'], {}), '(gym_id)\n', (241, 249), False, 'from reinforch.environments import OpenAIGym\n'), ((315, 386), 'reinforch.core.memorys.SimpleMatrixMemory', 'SimpleMatrixMemory', ([], {'row_size': '(3000)', 'every_class_size': '[n_s, 1, 1, n_s, 1]'}), '(...
import base64 from io import BytesIO from pathlib import Path from PIL import Image, ImageDraw, UnidentifiedImageError from nonebot.log import logger from typing import Tuple, Union, Optional, Literal from .util import load_font import asyncio class BuildImage: def __init__( self, w: int, ...
[ "io.BytesIO", "PIL.Image.new", "asyncio.get_event_loop", "nonebot.log.logger.warning", "asyncio.set_event_loop", "PIL.Image.open", "pathlib.Path", "PIL.ImageDraw.Draw", "asyncio.new_event_loop" ]
[((2282, 2310), 'PIL.ImageDraw.Draw', 'ImageDraw.Draw', (['self.markImg'], {}), '(self.markImg)\n', (2296, 2310), False, 'from PIL import Image, ImageDraw, UnidentifiedImageError\n'), ((4544, 4577), 'PIL.Image.new', 'Image.new', (['"""L"""', '(r * 2, r * 2)', '(0)'], {}), "('L', (r * 2, r * 2), 0)\n", (4553, 4577), Fal...
# phaseplots.py - examples of phase portraits # RMM, 24 July 2011 # # This file contains examples of phase portraits pulled from "Feedback # Systems" by <NAME> Murray (Princeton University Press, 2008). import numpy as np import matplotlib.pyplot as mpl from control.phaseplot import phase_plot from numpy import pi #...
[ "matplotlib.pyplot.title", "matplotlib.pyplot.show", "matplotlib.pyplot.plot", "matplotlib.pyplot.clf", "matplotlib.pyplot.close", "matplotlib.pyplot.hold", "matplotlib.pyplot.axis", "control.phaseplot.phase_plot", "matplotlib.pyplot.figure", "numpy.sin", "numpy.linspace", "matplotlib.pyplot.y...
[((360, 376), 'matplotlib.pyplot.close', 'mpl.close', (['"""all"""'], {}), "('all')\n", (369, 376), True, 'import matplotlib.pyplot as mpl\n'), ((603, 615), 'matplotlib.pyplot.figure', 'mpl.figure', ([], {}), '()\n', (613, 615), True, 'import matplotlib.pyplot as mpl\n'), ((617, 626), 'matplotlib.pyplot.clf', 'mpl.clf'...
import os.path as path import csv class Filesystem(object): #This method stores the passed data to the default video id's file def __init__(self, filename, open_mode): self.open_mode = open_mode self.file = filename #This method stores txt on the specified file with a specified EOL character. def save_default...
[ "csv.reader", "os.path.abspath", "os.path.join", "csv.writer" ]
[((438, 481), 'os.path.join', 'path.join', (['save_path', "(name_of_file + '.txt')"], {}), "(save_path, name_of_file + '.txt')\n", (447, 481), True, 'import os.path as path\n'), ((664, 704), 'os.path.join', 'path.join', (['save_path', "(self.file + '.txt')"], {}), "(save_path, self.file + '.txt')\n", (673, 704), True, ...
# Generated by Django 2.0.8 on 2019-01-20 09:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0013_auto_20180902_1533'), ] operations = [ migrations.AddField( model_name='product', name='abstract', ...
[ "django.db.models.TextField" ]
[((338, 407), 'django.db.models.TextField', 'models.TextField', ([], {'blank': '(True)', 'max_length': '(200)', 'verbose_name': '"""abstract"""'}), "(blank=True, max_length=200, verbose_name='abstract')\n", (354, 407), False, 'from django.db import migrations, models\n'), ((533, 618), 'django.db.models.TextField', 'mod...
import logging DEBUG=True try: from .local import * except ImportError: logging.warning("No local settings defined. Using Defaults")
[ "logging.warning" ]
[((82, 142), 'logging.warning', 'logging.warning', (['"""No local settings defined. Using Defaults"""'], {}), "('No local settings defined. Using Defaults')\n", (97, 142), False, 'import logging\n')]
# Copyright 2020, 2021 <NAME> <<EMAIL>> # Copyright 2020, 2021 <NAME> <<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 # #...
[ "os.getcwd", "argparse.ArgumentParser" ]
[((860, 926), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'prog': '"""ket"""', 'description': '"""Ket interpreter"""'}), "(prog='ket', description='Ket interpreter')\n", (883, 926), False, 'import argparse\n'), ((2785, 2793), 'os.getcwd', 'getcwd', ([], {}), '()\n', (2791, 2793), False, 'from os import ...
#!/usr/bin/env python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
[ "google.cloud.bigquery.Client" ]
[((910, 927), 'google.cloud.bigquery.Client', 'bigquery.Client', ([], {}), '()\n', (925, 927), False, 'from google.cloud import bigquery\n')]
import socket import sys import threading import time import traceback import os import re import hashlib MAX_HEADER = 4096 RECV_SIZE = 512 ban_list = [ b'jwes.hit.edu.cn' ] # 网站过滤列表 change_list = { b'www.hit.edu.cn': b'studyathit.hit.edu.cn' } # 网站引导字典 user_list = [ '127.0.0.1' ] # 用户过滤列表 c = {} ...
[ "threading.Thread", "hashlib.md5", "traceback.print_exc", "time.split", "socket.socket", "time.sleep", "threading.currentThread", "os.listdir", "sys.exit", "re.compile" ]
[((412, 450), 're.compile', 're.compile', (["(name + '.*')", 're.IGNORECASE'], {}), "(name + '.*', re.IGNORECASE)\n", (422, 450), False, 'import re\n'), ((1360, 1373), 'hashlib.md5', 'hashlib.md5', ([], {}), '()\n', (1371, 1373), False, 'import hashlib\n'), ((1585, 1598), 'hashlib.md5', 'hashlib.md5', ([], {}), '()\n',...
#!/usr/bin/python # ---------------------------------------------------------------------------- # Copyright 2018 Intel # 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.apac...
[ "argparse.ArgumentParser", "tensorflow.local_variables_initializer", "tensorflow.ConfigProto", "tensorflow.Variable", "tensorflow.RunOptions", "psutil.cpu_count", "tensorflow.placeholder", "datetime.datetime.now", "tensorflow.train.Saver", "tensorflow.global_variables_initializer", "keras.backen...
[((827, 924), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Benchmark 3D and 2D Convolution Models"""', 'add_help': '(True)'}), "(description=\n 'Benchmark 3D and 2D Convolution Models', add_help=True)\n", (850, 924), False, 'import argparse\n'), ((4769, 4889), 'tensorflow.ConfigProt...
import bpy import bgl from logging import getLogger logger = getLogger(__name__) translation = bpy.app.translations.pgettext def capture_under_cursor(buffer, mouse_x=0, mouse_y=0, type_flg="i") -> list: """ フラットなrgba(float)のlistを返す """ # GL_FLOATでバッファ作って読むと馬鹿みたいに重いのでGL_BYTE,GL_UNSIGNED_BYTEになってる ...
[ "bpy.utils.register_tool", "logging.getLogger", "bgl.glReadBuffer", "bpy.utils.unregister_class", "bgl.glReadPixels", "bpy.utils.unregister_tool", "bgl.Buffer", "bpy.utils.register_class" ]
[((62, 81), 'logging.getLogger', 'getLogger', (['__name__'], {}), '(__name__)\n', (71, 81), False, 'from logging import getLogger\n'), ((321, 351), 'bgl.glReadBuffer', 'bgl.glReadBuffer', (['bgl.GL_FRONT'], {}), '(bgl.GL_FRONT)\n', (337, 351), False, 'import bgl\n'), ((356, 443), 'bgl.glReadPixels', 'bgl.glReadPixels',...
import importlib name = 'test_module' # method 1 module = importlib.import_module('test_module') # method 2 module = __import__(name, fromlist=['']) module.some_func()
[ "importlib.import_module" ]
[((59, 97), 'importlib.import_module', 'importlib.import_module', (['"""test_module"""'], {}), "('test_module')\n", (82, 97), False, 'import importlib\n')]
from setuptools import setup setup(name="Feel the streets")
[ "setuptools.setup" ]
[((32, 62), 'setuptools.setup', 'setup', ([], {'name': '"""Feel the streets"""'}), "(name='Feel the streets')\n", (37, 62), False, 'from setuptools import setup\n')]
""" Base forms for editing the models in this module. You can use or extend these forms in your project to ensure that all validation is correct. """ from django import forms from rdflib_django import models from rdflib import namespace class NamespaceForm(forms.ModelForm): """ Form for editing namespaces. ...
[ "django.forms.ValidationError", "rdflib.namespace.is_ncname" ]
[((896, 923), 'rdflib.namespace.is_ncname', 'namespace.is_ncname', (['prefix'], {}), '(prefix)\n', (915, 923), False, 'from rdflib import namespace\n'), ((943, 993), 'django.forms.ValidationError', 'forms.ValidationError', (['"""This is an invalid prefix"""'], {}), "('This is an invalid prefix')\n", (964, 993), False, ...
from codecs import open from setuptools import setup import re with open('src/agstoolbox/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) setup( name='agstoolbox', version=version, description='A Toolbox...
[ "codecs.open", "setuptools.setup" ]
[((243, 886), 'setuptools.setup', 'setup', ([], {'name': '"""agstoolbox"""', 'version': 'version', 'description': '"""A Toolbox for managing AGS Editor versions."""', 'url': '"""https://github.com/ericoporto/agstoolbox"""', 'download_url': "('https://github.com/ericoporto/agstoolbox/tarball/' + version)", 'author': '""...
"""Script to program a bitstream to a chip""" import argparse from nirram import NIRRAM # Get arguments parser = argparse.ArgumentParser(description="Program a bitstream to a chip.") parser.add_argument("chipname", help="chip name for logging") parser.add_argument("bitstream", help="bitstream file name") # Expect to ...
[ "nirram.NIRRAM", "argparse.ArgumentParser" ]
[((114, 183), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Program a bitstream to a chip."""'}), "(description='Program a bitstream to a chip.')\n", (137, 183), False, 'import argparse\n'), ((962, 983), 'nirram.NIRRAM', 'NIRRAM', (['args.chipname'], {}), '(args.chipname)\n', (968, 983)...
"""Build the qbsolv package.""" from setuptools import setup from setuptools.extension import Extension from setuptools.command.build_ext import build_ext import os cwd = os.path.abspath(os.path.dirname(__file__)) if not os.path.exists(os.path.join(cwd, 'PKG-INFO')): try: from Cython.Build import cythoniz...
[ "Cython.Build.cythonize", "os.path.dirname", "setuptools.extension.Extension", "setuptools.command.build_ext.build_ext.build_extensions", "os.path.join" ]
[((189, 214), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (204, 214), False, 'import os\n'), ((1145, 1381), 'setuptools.extension.Extension', 'Extension', (['"""dwave_qbsolv.qbsolv_binding"""', "['python/dwave_qbsolv/qbsolv_binding' + ext, './python/globals.cc',\n './src/solver.cc', './...
import itertools import os import vlcp.service.sdn.ofpportmanager as ofpportmanager import vlcp.service.kvdb.objectdb as objectdb import vlcp.service.sdn.ioprocessing as iop from vlcp.service.sdn.flowbase import FlowBase from vlcp.server.module import depend, call_api from vlcp.config.config import defaultconfig from ...
[ "vlcp.event.event.M_", "vlcp.server.module.depend", "vlcp.utils.ethernet.ip4_packet_l7", "vlcp.utils.flowupdater.FlowUpdater.main", "vlcp.utils.ethernet.mac_addr_bytes", "vlcp.event.runnable.RoutineContainer", "vlcp.protocol.openflow.openflow.OpenflowConnectionStateEvent.createMatcher", "vlcp.utils.et...
[((18060, 18121), 'vlcp.server.module.depend', 'depend', (['ofpportmanager.OpenflowPortManager', 'objectdb.ObjectDB'], {}), '(ofpportmanager.OpenflowPortManager, objectdb.ObjectDB)\n', (18066, 18121), False, 'from vlcp.server.module import depend, call_api\n'), ((2901, 3035), 'vlcp.protocol.openflow.openflow.OpenflowAs...
import json from django.contrib.auth.models import User from ldap3 import Server, Connection from kubeops_api.models.setting import Setting from message_center.models import UserNotificationConfig, UserReceiver, Message class LDAPSync: def __init__(self): self._conn = None settings = Setting.ge...
[ "ldap3.Connection", "django.contrib.auth.models.User.objects.get", "ldap3.Server", "message_center.models.UserNotificationConfig", "message_center.models.UserReceiver", "kubeops_api.models.setting.Setting.get_settings" ]
[((310, 342), 'kubeops_api.models.setting.Setting.get_settings', 'Setting.get_settings', ([], {'tab': '"""ldap"""'}), "(tab='ldap')\n", (330, 342), False, 'from kubeops_api.models.setting import Setting\n'), ((968, 1006), 'ldap3.Server', 'Server', (['self.server_uri'], {'use_ssl': '(False)'}), '(self.server_uri, use_ss...
__doc__ = """ docs_helper.py -------------- | Small script that makes it easier to work with intersphinx it takes config data from docs/conf.py | :doc:`sphinx:usage/extensions/intersphinx` :ref:`sphinx:xref-syntax` | insted of: ``python -m sphinx.ext.intersphinx https://www.sphinx-doc.org/en/master/objects.inv`` | ...
[ "urllib.parse.urljoin", "os.system", "docs.conf.intersphinx_mapping.keys", "pathlib.Path", "signal.signal", "sys.exit" ]
[((957, 968), 'sys.exit', 'sys.exit', (['(0)'], {}), '(0)\n', (965, 968), False, 'import sys\n'), ((1946, 2011), 'urllib.parse.urljoin', 'urljoin', (["(intersphinx_mapping[picked_name][0] + '/')", '"""objects.inv"""'], {}), "(intersphinx_mapping[picked_name][0] + '/', 'objects.inv')\n", (1953, 2011), False, 'from urlli...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('staff', '0008_auto_20180412_1515'), ] operations = [ migrations.AlterField( model_name='staff', name...
[ "django.db.models.ImageField" ]
[((348, 435), 'django.db.models.ImageField', 'models.ImageField', ([], {'default': "b'/static/images/default_user.png'", 'upload_to': "b'staffs'"}), "(default=b'/static/images/default_user.png', upload_to=\n b'staffs')\n", (365, 435), False, 'from django.db import migrations, models\n')]
import tensorflow.contrib.slim as slim from Projects.DeepLearningTechniques.ShakeNet.imagenet.constants import * class Model: def __init__(self, sess, width, height, channel, lr, dr, is_training, is_tb_logging, name): self.sess = sess self.width = width self.height = height self.c...
[ "tensorflow.contrib.slim.separable_conv2d" ]
[((6029, 6327), 'tensorflow.contrib.slim.separable_conv2d', 'slim.separable_conv2d', ([], {'inputs': 'inputs', 'num_outputs': 'None', 'kernel_size': 'kernel_size', 'activation_fn': 'tf.identity', 'weights_initializer': 'self.weights_initializers', 'weights_regularizer': 'self.weights_regularizers', 'depth_multiplier': ...
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
[ "neon.util.argparser.NeonArgparser", "neon.backends.gen_backend", "nlp_architect.models.np_semantic_segmentation.NpSemanticSegClassifier", "examples.np_semantic_segmentation.data.NpSemanticSegData", "examples.np_semantic_segmentation.data.absolute_path", "neon.logger.display" ]
[((1603, 1653), 'nlp_architect.models.np_semantic_segmentation.NpSemanticSegClassifier', 'NpSemanticSegClassifier', (['num_epochs', 'callback_args'], {}), '(num_epochs, callback_args)\n', (1626, 1653), False, 'from nlp_architect.models.np_semantic_segmentation import NpSemanticSegClassifier\n'), ((1919, 1995), 'neon.lo...
""" Copyright 2012, 2013 UW Information Technology, University of Washington 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 r...
[ "spacescout_web.spot.SpotImage", "spacescout_web.middleware.unpatch_vary.unpatch_vary_headers", "django.http.HttpResponse" ]
[((952, 987), 'spacescout_web.spot.SpotImage', 'SpotImage', (['spot_id'], {'request': 'request'}), '(spot_id, request=request)\n', (961, 987), False, 'from spacescout_web.spot import SpotImage, SpotException\n'), ((1185, 1228), 'django.http.HttpResponse', 'HttpResponse', (['img'], {'content_type': 'contenttype'}), '(im...
from add_function import add def test_add_zeros(): result = add(0, 0) assert result == 0 def test_add_one_and_zero(): result = add(1, 0) assert result == 1 def test_add_zero_and_one(): result = add(0, 1) assert result == 1 def test_add_one_and_one(): result = add(1, 1) assert result ...
[ "add_function.add" ]
[((65, 74), 'add_function.add', 'add', (['(0)', '(0)'], {}), '(0, 0)\n', (68, 74), False, 'from add_function import add\n'), ((141, 150), 'add_function.add', 'add', (['(1)', '(0)'], {}), '(1, 0)\n', (144, 150), False, 'from add_function import add\n'), ((217, 226), 'add_function.add', 'add', (['(0)', '(1)'], {}), '(0, ...
# Generated by Django 3.1.7 on 2021-04-29 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main_app", "0013_notfication"), ] operations = [ migrations.AlterField( model_name="notfication", name="notification...
[ "django.db.models.CharField" ]
[((346, 389), 'django.db.models.CharField', 'models.CharField', ([], {'default': '""""""', 'max_length': '(50)'}), "(default='', max_length=50)\n", (362, 389), False, 'from django.db import migrations, models\n')]
import imp import unittest try: from StringIO import StringIO except ImportError: from io import BytesIO as StringIO from docutils.readers import standalone from docutils.core import Publisher, default_description, \ default_usage import quicktest from types import ModuleType #rst2odp = ModuleType('rst2o...
[ "unittest.main", "quicktest.new_document", "quicktest.Parser", "odplib.zipwrap.Zippier", "imp.load_source", "quicktest.format", "docutils.readers.standalone.Reader", "docutils.core.Publisher", "quicktest.OptionParser" ]
[((393, 437), 'imp.load_source', 'imp.load_source', (['"""rst2odp"""', '"""../bin/rst2odp"""'], {}), "('rst2odp', '../bin/rst2odp')\n", (408, 437), False, 'import imp\n'), ((11257, 11272), 'unittest.main', 'unittest.main', ([], {}), '()\n', (11270, 11272), False, 'import unittest\n'), ((468, 509), 'imp.load_source', 'i...
#!python # 2-D mesh of the PB-FHR reactor, consisting of the core and reflectors import numpy as np import sys import os # append path to module so cubit can find it sys.path.append(os.getcwd()) import pbfhr as fhr # whether to include orificing along the outflow boundary plenum = True # meshing scheme scheme = 'M...
[ "os.getcwd" ]
[((185, 196), 'os.getcwd', 'os.getcwd', ([], {}), '()\n', (194, 196), False, 'import os\n')]
from django.http import HttpResponse from django.shortcuts import render def index(request): return HttpResponse('Page content') def custom(request): return render(request, 'custom.html', {})
[ "django.shortcuts.render", "django.http.HttpResponse" ]
[((105, 133), 'django.http.HttpResponse', 'HttpResponse', (['"""Page content"""'], {}), "('Page content')\n", (117, 133), False, 'from django.http import HttpResponse\n'), ((167, 201), 'django.shortcuts.render', 'render', (['request', '"""custom.html"""', '{}'], {}), "(request, 'custom.html', {})\n", (173, 201), False,...
import numpy as np a = np.array([1,2,3,4,5,6]) #_ rewrite it! b = np.array([0,1,2,3,4,5]) #_ rewrite it!
[ "numpy.array" ]
[((24, 52), 'numpy.array', 'np.array', (['[1, 2, 3, 4, 5, 6]'], {}), '([1, 2, 3, 4, 5, 6])\n', (32, 52), True, 'import numpy as np\n'), ((68, 96), 'numpy.array', 'np.array', (['[0, 1, 2, 3, 4, 5]'], {}), '([0, 1, 2, 3, 4, 5])\n', (76, 96), True, 'import numpy as np\n')]
from src import auth auth.run()
[ "src.auth.run" ]
[((24, 34), 'src.auth.run', 'auth.run', ([], {}), '()\n', (32, 34), False, 'from src import auth\n')]
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
[ "re.search", "setuptools.find_packages" ]
[((865, 895), 're.search', 're.search', (['version_regex', 'text'], {}), '(version_regex, text)\n', (874, 895), False, 'import re\n'), ((1437, 1478), 'setuptools.find_packages', 'find_packages', ([], {'exclude': "['test', 'test.*']"}), "(exclude=['test', 'test.*'])\n", (1450, 1478), False, 'from setuptools import setup...
import requests project_key = 'RS_P_1495608305106685963' token = 'v5sRS_P_1495608305106685963s1496806325613631987' api_key = '<KEY>' # Authentication API # url = "https://api.sports.roanuz.com/v5/core/{}/auth/".format(project_key) # payload = { # 'api_key': api_key # } # response = requests.post(url, json=payloa...
[ "requests.get" ]
[((1333, 1367), 'requests.get', 'requests.get', (['url'], {'headers': 'headers'}), '(url, headers=headers)\n', (1345, 1367), False, 'import requests\n')]
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Consolidated evaluator factory module. This module consolidates the creation of specific evaluator combinators, used throughout Pinpoint to evaluate task ...
[ "dashboard.pinpoint.models.tasks.read_value.Evaluator", "dashboard.pinpoint.models.tasks.performance_bisection.Evaluator", "dashboard.pinpoint.models.tasks.run_test.Evaluator", "dashboard.pinpoint.models.evaluators.TaskPayloadLiftingEvaluator", "dashboard.pinpoint.models.tasks.find_isolate.Evaluator" ]
[((1464, 1538), 'dashboard.pinpoint.models.evaluators.TaskPayloadLiftingEvaluator', 'evaluators.TaskPayloadLiftingEvaluator', ([], {'exclude_keys': 'EXCLUDED_PAYLOAD_KEYS'}), '(exclude_keys=EXCLUDED_PAYLOAD_KEYS)\n', (1502, 1538), False, 'from dashboard.pinpoint.models import evaluators\n'), ((1063, 1090), 'dashboard.p...
import pytest from dae.variants.attributes import Role from dae.pedigrees.family import FamilyType, Person, Family, FamiliesData def trio_persons(family_id="trio_family"): return [ Person(**{ "family_id": family_id, "person_id": "mom", "sex": "F", "role": "...
[ "pytest.mark.parametrize", "dae.pedigrees.family.Person", "dae.pedigrees.family.Family.from_persons" ]
[((2378, 2529), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""role"""', '[Role.maternal_grandfather, Role.paternal_grandfather, Role.\n maternal_grandmother, Role.paternal_grandmother]'], {}), "('role', [Role.maternal_grandfather, Role.\n paternal_grandfather, Role.maternal_grandmother, Role.paterna...
#!/Users/marc/miniconda3/bin/python3 import glfw from OpenGL.GL import * from OpenGL.GLU import * import math import ctypes def framebuffer_size_callback(window, width, height): # make sure the viewport matches the new window dimensions; note that width and # height will be significantly larger than specifi...
[ "glfw.window_hint", "myshader.shader", "glfw.poll_events", "glfw.make_context_current", "glfw.set_window_should_close", "glfw.window_should_close", "glfw.get_time", "math.sin", "glfw.init", "glfw.get_key", "numpy.array", "ctypes.c_void_p", "glfw.set_framebuffer_size_callback", "math.cos", ...
[((1086, 1146), 'glfw.create_window', 'glfw.create_window', (['width', 'height', '"""LearnOpenGL"""', 'None', 'None'], {}), "(width, height, 'LearnOpenGL', None, None)\n", (1104, 1146), False, 'import glfw\n'), ((1234, 1267), 'glfw.make_context_current', 'glfw.make_context_current', (['window'], {}), '(window)\n', (125...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 14 09:52:17 2018 @author: liaamaral """ #------ # Load the main libraries import os import csv import numpy as np import pandas as pd import logging #------ # Data input and output paths: pathin="/media/DATA/tmp/datasets/subsetDB/rain/" # Path of...
[ "os.listdir", "logging.debug", "numpy.isfinite", "os.path.splitext", "os.path.join", "pandas.concat" ]
[((630, 648), 'os.listdir', 'os.listdir', (['pathin'], {}), '(pathin)\n', (640, 648), False, 'import os\n'), ((1151, 1222), 'pandas.concat', 'pd.concat', (['frames'], {'sort': '(False)', 'ignore_index': '(True)', 'verify_integrity': '(True)'}), '(frames, sort=False, ignore_index=True, verify_integrity=True)\n', (1160, ...
""" Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon) 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...
[ "zipfile.is_zipfile", "json.load", "zipfile.ZipFile", "os.path.join", "os.makedirs", "os.path.basename", "os.path.isdir", "tarfile.is_tarfile", "os.path.exists", "os.path.isfile", "tempfile.mkdtemp", "requests.get", "tarfile.open", "sys.exit", "shutil.copyfile", "os.path.expanduser", ...
[((843, 870), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (860, 870), False, 'import logging\n'), ((1856, 1874), 'tarfile.open', 'tarfile.open', (['path'], {}), '(path)\n', (1868, 1874), False, 'import tarfile\n'), ((3809, 3833), 'os.path.expanduser', 'os.path.expanduser', (['repo'], {...
"""Utilities for calculating effective repository diffs. Some intelligence is required because the tool shed updates attributes that it is beneficial to ignore. """ from __future__ import print_function import os import sys from xml.etree import ElementTree from planemo.xml import diff def diff_and_remove(working,...
[ "xml.etree.ElementTree.parse", "os.remove", "planemo.xml.diff.diff", "os.path.exists", "os.path.join" ]
[((1706, 1747), 'planemo.xml.diff.diff', 'diff.diff', (['xml_a', 'xml_b'], {'reporter': 'f.write'}), '(xml_a, xml_b, reporter=f.write)\n', (1715, 1747), False, 'from planemo.xml import diff\n'), ((775, 805), 'os.path.join', 'os.path.join', (['working', 'label_a'], {}), '(working, label_a)\n', (787, 805), False, 'import...
import pickle from pathlib import Path from typing import Optional, List, Iterable, Dict, Any import click import pandas as pd import torch from tqdm import tqdm from generation.generation import gpt2, gpt3, gpt2_affect, gpt2_ctrl, \ openai_gpt, ctrl, pplm, gpt2mcm from utils.constants import PERSPECTIVE_API_ATTR...
[ "click.option", "pathlib.Path", "pickle.load", "generation.generation.ctrl", "utils.perspective_api.unpack_scores", "generation.generation.gpt2_ctrl", "utils.utils.batchify", "pandas.DataFrame", "generation.generation.gpt3", "click.command", "click.Choice", "generation.generation.gpt2_affect",...
[((1775, 1790), 'click.command', 'click.command', ([], {}), '()\n', (1788, 1790), False, 'import click\n'), ((1792, 1820), 'click.argument', 'click.argument', (['"""output-dir"""'], {}), "('output-dir')\n", (1806, 1820), False, 'import click\n'), ((1822, 1991), 'click.option', 'click.option', (['"""--dataset-file"""'],...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: <NAME> @contact: <EMAIL> @software: PyCharm @file: cam_sal_to_seed.py @time: 2020/3/27 1:10 @desc: """ import numpy as np from contrib.tasks.wsss.seeding.e2e_seeding.resolve_loc_cue_conflict import resolve_loc_cue_conflict_by_area_order __all__ = ["cam_sal_to_...
[ "numpy.amax", "numpy.zeros", "contrib.tasks.wsss.seeding.e2e_seeding.resolve_loc_cue_conflict.resolve_loc_cue_conflict_by_area_order" ]
[((916, 992), 'numpy.zeros', 'np.zeros', ([], {'shape': '(cam.shape[0], cam.shape[1], cam.shape[2] + 1)', 'dtype': 'np.int'}), '(shape=(cam.shape[0], cam.shape[1], cam.shape[2] + 1), dtype=np.int)\n', (924, 992), True, 'import numpy as np\n'), ((1357, 1448), 'contrib.tasks.wsss.seeding.e2e_seeding.resolve_loc_cue_confl...
"""This module represents various utilities and structures for image manipulation __author__ = <NAME> (www.sashaouellet.com) __version__ = 1.0.0 __date__ = 11/27/17 """ import hou import os import imghdr import subprocess class ImageType(): EXR = '.exr' RAT = '.rat' HDR = '.hdr' JPG = '.jpg' PNG = '.png' TIFF...
[ "imghdr.what", "subprocess.call", "os.path.splitext", "hou.getenv", "hou.imageResolution" ]
[((1257, 1282), 'hou.imageResolution', 'hou.imageResolution', (['file'], {}), '(file)\n', (1276, 1282), False, 'import hou\n'), ((1847, 1868), 'subprocess.call', 'subprocess.call', (['args'], {}), '(args)\n', (1862, 1868), False, 'import subprocess\n'), ((2210, 2232), 'os.path.splitext', 'os.path.splitext', (['file'], ...
import cv2 from xml.etree import ElementTree as ET import matplotlib.pyplot as plt img = cv2.imread('/mnt/6B133E147DED759E/VOCdevkit/VOC2007/JPEGImages/img_1777.jpg') img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) anno = ET.parse('/mnt/6B133E147DED759E/VOCdevkit/VOC2007/Annotations/img_1777.xml') obj_node=anno.getiter...
[ "xml.etree.ElementTree.parse", "matplotlib.pyplot.show", "cv2.cvtColor", "matplotlib.pyplot.imshow", "cv2.imread", "cv2.rectangle" ]
[((92, 169), 'cv2.imread', 'cv2.imread', (['"""/mnt/6B133E147DED759E/VOCdevkit/VOC2007/JPEGImages/img_1777.jpg"""'], {}), "('/mnt/6B133E147DED759E/VOCdevkit/VOC2007/JPEGImages/img_1777.jpg')\n", (102, 169), False, 'import cv2\n'), ((176, 212), 'cv2.cvtColor', 'cv2.cvtColor', (['img', 'cv2.COLOR_BGR2RGB'], {}), '(img, c...
from cocoex import default_observers from cocoex import Observer from cocoex import Suite from cocoex.utilities import ObserverOptions from tqdm import tqdm from typing import Callable # NOQA from typing import Optional # NOQA class Experiment(object): def __init__(self, solver, ...
[ "tqdm.tqdm", "cocoex.Observer", "cocoex.utilities.ObserverOptions", "cocoex.Suite", "cocoex.default_observers" ]
[((976, 1042), 'cocoex.Suite', 'Suite', (['self._suite_name', 'self._suite_instance', 'self._suite_options'], {}), '(self._suite_name, self._suite_instance, self._suite_options)\n', (981, 1042), False, 'from cocoex import Suite\n'), ((1212, 1263), 'cocoex.Observer', 'Observer', (['observer_name', 'observer_options.as_s...
#!/usr/bin/env python # coding: utf-8 ''' Poor man's unit test which goes through each of the example doctests in docs/examples/ and makes sure they actually work as advertised. ''' # import raws, pydwarf; df = pydwarf.df(raws) import sys import os pydwarf_root = os.path.abspath(os.path.join(os.path.dirname...
[ "sys.path.append", "pydwarf.session", "os.path.abspath", "pydwarf.config.load", "doctest.DocTestParser", "doctest.DocTestRunner", "os.path.join", "re.compile" ]
[((359, 388), 'sys.path.append', 'sys.path.append', (['pydwarf_root'], {}), '(pydwarf_root)\n', (374, 388), False, 'import sys\n'), ((2080, 2107), 're.compile', 're.compile', (['doctest_pattern'], {}), '(doctest_pattern)\n', (2090, 2107), False, 'import re\n'), ((405, 438), 'os.path.join', 'os.path.join', (['pydwarf_ro...
from django.db import models # Create your models here. class Employee(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=20) sal = models.DecimalField(max_digits=10, decimal_places=3) def __str__(self): return f'Employee object with ID: {self.id}, Nam...
[ "django.db.models.CharField", "django.db.models.IntegerField", "django.db.models.DecimalField" ]
[((96, 133), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'primary_key': '(True)'}), '(primary_key=True)\n', (115, 133), False, 'from django.db import models\n'), ((145, 176), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(20)'}), '(max_length=20)\n', (161, 176), False, 'from d...
from vic.vic import ffi from vic import lib as vic_lib def test_calc_snow_coverage_no_change(): store_snow = ffi.new('_Bool *') max_snow_depth = ffi.new('double *') store_swq = ffi.new('double *') snow_distrib_slope = ffi.new('double *') store_coverage = ffi.new('double *') old_coverage = 0.75...
[ "vic.vic.ffi.new", "vic.lib.calc_snow_coverage" ]
[((115, 133), 'vic.vic.ffi.new', 'ffi.new', (['"""_Bool *"""'], {}), "('_Bool *')\n", (122, 133), False, 'from vic.vic import ffi\n'), ((155, 174), 'vic.vic.ffi.new', 'ffi.new', (['"""double *"""'], {}), "('double *')\n", (162, 174), False, 'from vic.vic import ffi\n'), ((191, 210), 'vic.vic.ffi.new', 'ffi.new', (['"""...
from typing import Optional, List from pydantic import Field, validator from bug_killer_api_interface.test.test_doubles.default_values import mock_project_title, mock_project_description, \ mock_project_tags, mock_member_id from bug_killer_app.test.test_doubles.default_values import mock_manager_id from bug_kille...
[ "pydantic.Field", "pydantic.validator", "bug_killer_utils.collections.remove_duplicates_in_list" ]
[((543, 598), 'pydantic.Field', 'Field', ([], {'description': '"""The title of the project to create"""'}), "(description='The title of the project to create')\n", (548, 598), False, 'from pydantic import Field, validator\n'), ((622, 677), 'pydantic.Field', 'Field', ([], {'description': '"""The title of the project to ...
import os import traceback from collections import defaultdict from click.testing import CliRunner from ocdsindex.cli.__main__ import main from tests import elasticsearch, search def test_copy(tmpdir): host = os.getenv("ELASTICSEARCH_URL", "localhost:9200") runner = CliRunner() with elasticsearch(host...
[ "tests.elasticsearch", "tests.search", "collections.defaultdict", "traceback.print_exception", "click.testing.CliRunner", "os.path.join", "os.getenv" ]
[((217, 265), 'os.getenv', 'os.getenv', (['"""ELASTICSEARCH_URL"""', '"""localhost:9200"""'], {}), "('ELASTICSEARCH_URL', 'localhost:9200')\n", (226, 265), False, 'import os\n'), ((280, 291), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (289, 291), False, 'from click.testing import CliRunner\n'), ((302, 32...
from django.views.generic import TemplateView from wagtail.images.models import Image as WagtailImage class MainView(TemplateView): template_name = "index.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["img"] = WagtailImage.objects.first() ...
[ "wagtail.images.models.Image.objects.first" ]
[((289, 317), 'wagtail.images.models.Image.objects.first', 'WagtailImage.objects.first', ([], {}), '()\n', (315, 317), True, 'from wagtail.images.models import Image as WagtailImage\n')]
"""Contains a Graph Attention Network v2 and associated layers.""" from typing import Any, Callable, Mapping, Optional, Union import tensorflow as tf import tensorflow_gnn as tfgnn @tf.keras.utils.register_keras_serializable(package="GNN>models>gat_v2") class GATv2Conv(tfgnn.keras.layers.AnyToAnyConvolutionBase): ...
[ "tensorflow_gnn.keras.layers.GraphUpdate", "tensorflow.keras.utils.register_keras_serializable", "tensorflow.keras.layers.experimental.EinsumDense", "tensorflow.add_n", "tensorflow.keras.layers.Dense", "tensorflow.reshape", "tensorflow.keras.activations.get", "tensorflow.nn.dropout" ]
[((185, 256), 'tensorflow.keras.utils.register_keras_serializable', 'tf.keras.utils.register_keras_serializable', ([], {'package': '"""GNN>models>gat_v2"""'}), "(package='GNN>models>gat_v2')\n", (227, 256), True, 'import tensorflow as tf\n'), ((18945, 19016), 'tensorflow.keras.utils.register_keras_serializable', 'tf.ke...
# Copyright 2020 D-Wave Systems Inc. # # 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 w...
[ "dwave.inspector.show", "dwave.system.DWaveSampler" ]
[((1483, 1508), 'dwave.inspector.show', 'inspector.show', (['sampleset'], {}), '(sampleset)\n', (1497, 1508), True, 'import dwave.inspector as inspector\n'), ((1393, 1427), 'dwave.system.DWaveSampler', 'DWaveSampler', ([], {'solver': "{'qpu': True}"}), "(solver={'qpu': True})\n", (1405, 1427), False, 'from dwave.system...
from uuid import uuid4 import sqlalchemy from sqlalchemy import TIMESTAMP, Boolean, Column, String from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.sql import expression naming_convention = { "ix": "ix_%(column_0_N_label)s", "uq": "uq_%(table_name)s_%(column_0_N_name)s", "ck": "ck_%(table_n...
[ "sqlalchemy.MetaData", "sqlalchemy.dialects.postgresql.UUID", "sqlalchemy.Boolean", "sqlalchemy.TIMESTAMP", "sqlalchemy.String", "sqlalchemy.sql.expression.false" ]
[((468, 524), 'sqlalchemy.MetaData', 'sqlalchemy.MetaData', ([], {'naming_convention': 'naming_convention'}), '(naming_convention=naming_convention)\n', (487, 524), False, 'import sqlalchemy\n'), ((595, 601), 'sqlalchemy.dialects.postgresql.UUID', 'UUID', ([], {}), '()\n', (599, 601), False, 'from sqlalchemy.dialects.p...
import torch from core.network.rainbow import Rainbow def test_rainbow_call(): D_in, D_out, D_hidden = 2, 3, 4 N_atom = 5 noise_type = "factorized" net = Rainbow( D_in=D_in, D_out=D_out, N_atom=N_atom, noise_type=noise_type, D_hidden=D_hidden ) batch_size = 6 mock_input = torch....
[ "core.network.rainbow.Rainbow", "torch.rand" ]
[((174, 266), 'core.network.rainbow.Rainbow', 'Rainbow', ([], {'D_in': 'D_in', 'D_out': 'D_out', 'N_atom': 'N_atom', 'noise_type': 'noise_type', 'D_hidden': 'D_hidden'}), '(D_in=D_in, D_out=D_out, N_atom=N_atom, noise_type=noise_type,\n D_hidden=D_hidden)\n', (181, 266), False, 'from core.network.rainbow import Rain...
from scipy.io import wavfile import sounddevice as sd # import speech_recognition as sr import os from pyaudio import PyAudio, paInt16, paFloat32 from scipy.io.wavfile import * from random import randint import time import wave import base64 import matplotlib.pyplot as plt import soundfile as sf # print(o) # # exit...
[ "sounddevice.play", "sounddevice.wait" ]
[((461, 470), 'sounddevice.wait', 'sd.wait', ([], {}), '()\n', (468, 470), True, 'import sounddevice as sd\n'), ((525, 549), 'sounddevice.play', 'sd.play', (['myrecording', 'fs'], {}), '(myrecording, fs)\n', (532, 549), True, 'import sounddevice as sd\n')]
# coding: utf-8 """ loadbalancer OpenAPI spec version: 2018-06-21T02:19:18Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ncloud_loadbalancer.model.load_balancer_rule_parameter import LoadBalancerRuleParameter # noqa: F...
[ "six.iteritems" ]
[((6455, 6488), 'six.iteritems', 'six.iteritems', (['self.swagger_types'], {}), '(self.swagger_types)\n', (6468, 6488), False, 'import six\n')]
from __future__ import annotations from typing import TYPE_CHECKING from grouper.fe.forms import GroupEditForm from grouper.fe.util import GrouperHandler from grouper.models.audit_log import AuditLog from grouper.models.counter import Counter from grouper.models.group import Group from grouper.role_user import is_rol...
[ "grouper.models.counter.Counter.incr", "grouper.user_group.user_can_manage_group", "grouper.models.group.Group.get", "grouper.role_user.is_role_user", "grouper.models.audit_log.AuditLog.log", "grouper.fe.forms.GroupEditForm" ]
[((578, 612), 'grouper.models.group.Group.get', 'Group.get', (['self.session'], {'name': 'name'}), '(self.session, name=name)\n', (587, 612), False, 'from grouper.models.group import Group\n'), ((801, 825), 'grouper.fe.forms.GroupEditForm', 'GroupEditForm', ([], {'obj': 'group'}), '(obj=group)\n', (814, 825), False, 'f...
import pandas as pd import numpy as np import itertools class handlers(object): def get_column(filename_with_path, ext_value, annot='gene_id', header_line=0, sep="\t", opt=0): """ filename_with_path = filepath + basename ext_value = column name of file sep = separator """ ...
[ "pandas.DataFrame", "itertools.chain" ]
[((1157, 1217), 'pandas.DataFrame', 'pd.DataFrame', ([], {'data': '{ext_value: value_list}', 'index': 'index_list'}), '(data={ext_value: value_list}, index=index_list)\n', (1169, 1217), True, 'import pandas as pd\n'), ((2518, 2546), 'itertools.chain', 'itertools.chain', (['*sampleList'], {}), '(*sampleList)\n', (2533, ...
from rest_framework import serializers from goods.models import GoodsVisitCount # 日商品分类调用 class GoodVistiModelSerializer(serializers.ModelSerializer): category = serializers.StringRelatedField() class Meta: model = GoodsVisitCount fields = [ 'category', # 外键关联字段 'count' ...
[ "rest_framework.serializers.StringRelatedField" ]
[((166, 198), 'rest_framework.serializers.StringRelatedField', 'serializers.StringRelatedField', ([], {}), '()\n', (196, 198), False, 'from rest_framework import serializers\n')]
from __future__ import division import librosa, pydub import numpy as np from tempfile import TemporaryFile import pickle, json, os class mash: def __init__(self, json_, cached=False): self.sr = 22050 # new Sampling Rate for the audio files self.songs = json_ self.Yin = [] self....
[ "numpy.absolute", "pickle.dump", "librosa.frames_to_time", "os.makedirs", "numpy.argmax", "os.path.exists", "tempfile.TemporaryFile", "numpy.max", "pickle.load", "librosa.load", "librosa.beat.beat_track", "pydub.AudioSegment.from_file", "numpy.sqrt", "librosa.get_duration" ]
[((2481, 2528), 'librosa.beat.beat_track', 'librosa.beat.beat_track', ([], {'y': 'self.Yin', 'sr': 'self.sr'}), '(y=self.Yin, sr=self.sr)\n', (2504, 2528), False, 'import librosa, pydub\n'), ((2576, 2624), 'librosa.beat.beat_track', 'librosa.beat.beat_track', ([], {'y': 'self.Yout', 'sr': 'self.sr'}), '(y=self.Yout, sr...
from django.conf.urls import url from django.conf import settings from django.views.static import serve from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^([0-9]+)/$', views.detail, name='detail'), url(r'^user/(\w+)/$', views.profile, name='profile'), url(r'^post_url/$', views.post_w...
[ "django.conf.urls.url" ]
[((142, 178), 'django.conf.urls.url', 'url', (['"""^$"""', 'views.index'], {'name': '"""index"""'}), "('^$', views.index, name='index')\n", (145, 178), False, 'from django.conf.urls import url\n'), ((182, 229), 'django.conf.urls.url', 'url', (['"""^([0-9]+)/$"""', 'views.detail'], {'name': '"""detail"""'}), "('^([0-9]+...
# adapted from original JupyterHub_config.py file # which is Copyright (c) Jupyter Development Team, see LICENSE import os from dockerspawner import DockerSpawner c = get_config() # use our custom spawnwer dor jupyterhub config class MathHubSpawner(DockerSpawner): def __init__(self, *args, **kwargs): sup...
[ "os.environ.get", "os.path.join" ]
[((632, 689), 'os.environ.get', 'os.environ.get', (['"""DOCKER_SPAWN_CMD"""', '"""start-singleuser.sh"""'], {}), "('DOCKER_SPAWN_CMD', 'start-singleuser.sh')\n", (646, 689), False, 'import os\n'), ((1628, 1676), 'os.environ.get', 'os.environ.get', (['"""DATA_VOLUME_CONTAINER"""', '"""/data"""'], {}), "('DATA_VOLUME_CON...
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) # set up BCM GPIO numbering GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP)
[ "RPi.GPIO.setup", "RPi.GPIO.setmode" ]
[((24, 46), 'RPi.GPIO.setmode', 'GPIO.setmode', (['GPIO.BCM'], {}), '(GPIO.BCM)\n', (36, 46), True, 'import RPi.GPIO as GPIO\n'), ((75, 123), 'RPi.GPIO.setup', 'GPIO.setup', (['(4)', 'GPIO.IN'], {'pull_up_down': 'GPIO.PUD_UP'}), '(4, GPIO.IN, pull_up_down=GPIO.PUD_UP)\n', (85, 123), True, 'import RPi.GPIO as GPIO\n')]
"""Meta Writer application Configures and starts up an instance of the MetaListener for receiving and writing meta data. <NAME>, Diamond Light Source """ from argparse import ArgumentParser from odin_data.meta_writer.meta_listener import MetaListener from odin_data.logconfig import setup_logging, add_graylog_handler...
[ "odin_data.meta_writer.meta_listener.MetaListener", "argparse.ArgumentParser", "odin_data.logconfig.add_graylog_handler", "odin_data.logconfig.set_log_level", "odin_data.logconfig.setup_logging" ]
[((403, 419), 'argparse.ArgumentParser', 'ArgumentParser', ([], {}), '()\n', (417, 419), False, 'from argparse import ArgumentParser\n'), ((1826, 1855), 'odin_data.logconfig.set_log_level', 'set_log_level', (['args.log_level'], {}), '(args.log_level)\n', (1839, 1855), False, 'from odin_data.logconfig import setup_loggi...
import cv2 import tensorflow as tf import numpy as np modelFile = "./opencv_face_detector_uint8.pb" configFile = "./opencv_face_detector.pbtxt" net = cv2.dnn.readNetFromTensorflow(modelFile, configFile) cap = cv2.VideoCapture(0) while(True): ret, frame = cap.read() frameHeight = frame.shape[0] frameWid...
[ "cv2.waitKey", "cv2.dnn.blobFromImage", "cv2.VideoCapture", "cv2.dnn.readNetFromTensorflow", "cv2.imshow" ]
[((152, 204), 'cv2.dnn.readNetFromTensorflow', 'cv2.dnn.readNetFromTensorflow', (['modelFile', 'configFile'], {}), '(modelFile, configFile)\n', (181, 204), False, 'import cv2\n'), ((212, 231), 'cv2.VideoCapture', 'cv2.VideoCapture', (['(0)'], {}), '(0)\n', (228, 231), False, 'import cv2\n'), ((352, 428), 'cv2.dnn.blobF...
import os import datetime import pytest import re from pychpp import __version__ from pychpp import CHPP from pychpp.ht_team import HTTeam, HTYouthTeam from pychpp.ht_user import HTUser from pychpp.ht_player import HTPlayer, HTYouthPlayer, HTLineupPlayer from pychpp.ht_arena import HTArena from pychpp.ht_region import...
[ "pychpp.ht_challenge.HTChallengeManager", "re.match", "datetime.datetime", "pytest.raises", "pychpp.CHPP" ]
[((2256, 2334), 'pychpp.CHPP', 'CHPP', ([], {'consumer_key': 'PYCHPP_CONSUMER_KEY', 'consumer_secret': 'PYCHPP_CONSUMER_SECRET'}), '(consumer_key=PYCHPP_CONSUMER_KEY, consumer_secret=PYCHPP_CONSUMER_SECRET)\n', (2260, 2334), False, 'from pychpp import CHPP\n'), ((2912, 3089), 'pychpp.CHPP', 'CHPP', ([], {'consumer_key'...
""" Created on Mar 8, 2014 @author: tjoneslo """ import os import logging from pypdflite import PDFLite from pypdflite import PDFCursor from pypdflite.pdfobjects.pdfline import PDFLine from pypdflite.pdfobjects.pdfellipse import PDFEllipse from pypdflite.pdfobjects.pdftext import PDFText from Galaxy import Sector, Gal...
[ "Star.Star", "pypdflite.PDFCursor", "pypdflite.PDFLite", "pypdflite.pdfobjects.pdfline.PDFLine", "StatCalculation.StatCalculation.trade_to_btn", "Galaxy.Sector", "Galaxy.Galaxy", "pypdflite.pdfobjects.pdfellipse.PDFEllipse", "pypdflite.pdfobjects.pdftext.PDFText", "logging.getLogger" ]
[((19225, 19250), 'Galaxy.Sector', 'Sector', (['"""# Core"""', '"""# 0,0"""'], {}), "('# Core', '# 0,0')\n", (19231, 19250), False, 'from Galaxy import Sector, Galaxy\n'), ((19364, 19376), 'Galaxy.Galaxy', 'Galaxy', (['(0)', '(0)'], {}), '(0, 0)\n', (19370, 19376), False, 'from Galaxy import Sector, Galaxy\n'), ((19390...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017 Citrix Systems # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
[ "nssrc.com.citrix.netscaler.nitro.resource.config.basic.servicegroup.servicegroup.enable", "nssrc.com.citrix.netscaler.nitro.resource.config.basic.servicegroup.servicegroup.count_filtered", "ansible.module_utils.netscaler.log", "copy.deepcopy", "nssrc.com.citrix.netscaler.nitro.resource.config.basic.service...
[((13585, 13624), 'ansible.module_utils.netscaler.log', 'log', (['"""Checking if service group exists"""'], {}), "('Checking if service group exists')\n", (13588, 13624), False, 'from ansible.module_utils.netscaler import ConfigProxy, get_nitro_client, netscaler_common_arguments, log, loglines, get_immutables_intersect...
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
[ "megengine.functional.nn.cross_entropy", "megengine.tensor", "numpy.log", "numpy.random.randn", "numpy.random.rand", "pytest.raises", "numpy.random.randint", "numpy.array", "numpy.exp", "numpy.random.permutation" ]
[((627, 658), 'megengine.functional.nn.cross_entropy', 'F.nn.cross_entropy', (['data', 'label'], {}), '(data, label)\n', (645, 658), True, 'import megengine.functional as F\n'), ((764, 795), 'megengine.functional.nn.cross_entropy', 'F.nn.cross_entropy', (['data', 'label'], {}), '(data, label)\n', (782, 795), True, 'imp...
from dup.models import Website def check_all_websites(): for website in Website.objects.all(): check_website(website.pk) def check_website(website_pk: int) -> None: website = Website.objects.get(pk=website_pk) website.update_status()
[ "dup.models.Website.objects.get", "dup.models.Website.objects.all" ]
[((78, 99), 'dup.models.Website.objects.all', 'Website.objects.all', ([], {}), '()\n', (97, 99), False, 'from dup.models import Website\n'), ((195, 229), 'dup.models.Website.objects.get', 'Website.objects.get', ([], {'pk': 'website_pk'}), '(pk=website_pk)\n', (214, 229), False, 'from dup.models import Website\n')]