code stringlengths 31 1.05M | apis list | extract_api stringlengths 97 1.91M |
|---|---|---|
#grass76 C:\Users\Usuario\Documents\Sequia\Tesis_Guajira\Tesis_Guajira\PERMANENT
'''
8day_ts@PERMANENT
ET@PERMANENT
LAI@PERMANENT
P8d_agg@PERMANENT
Precipitacion@PERMANENT
et@PERMANENT
et_pre@PERMANENT
evi_esc@PERMANENT
evi_pre@PERMANENT
lai_pre@PERMANENT
lst_esc@PERMANENT
lst_pre@PERMANENT
mir_esc@PERMANENT
mir_pre@... | [
"grass.temporal.open_old_stds",
"grass.temporal.init",
"grass.pygrass.raster.RasterRow",
"grass.temporal.SQLDatabaseInterfaceConnection",
"numpy.array",
"grass.pygrass.gis.region.Region",
"grass.pygrass.raster.buffer.Buffer"
] | [((1719, 1730), 'grass.temporal.init', 'tgis.init', ([], {}), '()\n', (1728, 1730), True, 'import grass.temporal as tgis\n'), ((1738, 1775), 'grass.temporal.SQLDatabaseInterfaceConnection', 'tgis.SQLDatabaseInterfaceConnection', ([], {}), '()\n', (1773, 1775), True, 'import grass.temporal as tgis\n'), ((2127, 2179), 'g... |
import warnings
import numpy as np
from exetera.core import validation as val
def combined_hcw_with_contact(datastore,
healthcare_professional, contact_health_worker,
is_carer_for_community,
group, name):
"""
Deprecate... | [
"warnings.warn",
"exetera.core.validation.raw_array_from_parameter",
"numpy.where"
] | [((405, 452), 'warnings.warn', 'warnings.warn', (['"""deprecated"""', 'DeprecationWarning'], {}), "('deprecated', DeprecationWarning)\n", (418, 452), False, 'import warnings\n'), ((467, 562), 'exetera.core.validation.raw_array_from_parameter', 'val.raw_array_from_parameter', (['datastore', '"""healthcare_professional""... |
from nose.tools import assert_equal, assert_true
from ggplot.tests import image_comparison, cleanup
from ggplot import *
from numpy import linspace
from pandas import DataFrame
df = DataFrame({"blahblahblah": linspace(999, 1111, 9),
"yadayadayada": linspace(999, 1111, 9)})
simple_gg = ggplot(aes(x="b... | [
"ggplot.tests.image_comparison",
"numpy.linspace"
] | [((383, 421), 'ggplot.tests.image_comparison', 'image_comparison', (["['all_text']"], {'tol': '(13)'}), "(['all_text'], tol=13)\n", (399, 421), False, 'from ggplot.tests import image_comparison, cleanup\n'), ((598, 637), 'ggplot.tests.image_comparison', 'image_comparison', (["['axis_text']"], {'tol': '(13)'}), "(['axis... |
#!/usr/bin/env python
import numpy as np
class Converger:
'''
Class which checks residual and returns a status depending on how
the residual is converging
Status
------
0: The residual being checked has converged due to some specified
tolerance, either atol, rtol or maxitr
1: The residual b... | [
"numpy.asarray",
"numpy.isfinite"
] | [((1378, 1398), 'numpy.asarray', 'np.asarray', (['residual'], {}), '(residual)\n', (1388, 1398), True, 'import numpy as np\n'), ((2397, 2417), 'numpy.asarray', 'np.asarray', (['residual'], {}), '(residual)\n', (2407, 2417), True, 'import numpy as np\n'), ((1546, 1568), 'numpy.isfinite', 'np.isfinite', (['error_new'], {... |
'''
Class that can generate random dummy data (CSV format) for general data tests.
Author: <NAME>
Copyright 2017
Date: 21 December 2017
See README.md for description of usage
'''
import json
import string
import numpy
import random
import datetime
import time
import logging as log
import rstr
class CSVGen:
# Def... | [
"rstr.xeger",
"logging.error",
"json.loads",
"logging.basicConfig",
"random.uniform",
"logging.warning",
"random.choice",
"logging.info",
"datetime.datetime.strptime",
"numpy.random.random",
"numpy.random.standard_normal",
"numpy.random.choice",
"time.strptime",
"time.localtime"
] | [((1546, 1578), 'logging.info', 'log.info', (['"""Validating Schema..."""'], {}), "('Validating Schema...')\n", (1554, 1578), True, 'import logging as log\n'), ((1892, 1926), 'logging.info', 'log.info', (['"""Writing output file..."""'], {}), "('Writing output file...')\n", (1900, 1926), True, 'import logging as log\n'... |
# coding=utf-8
# Creation date: 28 окт. 2020
# Creation time: 19:16
# Creator: SteamPeKa
from typing import Collection, Hashable, Union
import numpy
import pytest
def assert_equal_tensors(expected: numpy.ndarray, actual: numpy.ndarray, additional_string: Union[None, str] = None):
assert expected.shape == actual... | [
"pytest.approx",
"numpy.abs"
] | [((429, 457), 'numpy.abs', 'numpy.abs', (['(expected - actual)'], {}), '(expected - actual)\n', (438, 457), False, 'import numpy\n'), ((849, 865), 'pytest.approx', 'pytest.approx', (['(0)'], {}), '(0)\n', (862, 865), False, 'import pytest\n')] |
import numpy as np
import pytest
from psyneulink.components.functions.function import BogaczEtAl, DRIFT_RATE, Exponential, Linear, THRESHOLD
from psyneulink.components.mechanisms.processing.transfermechanism import TransferMechanism
from psyneulink.components.process import Process
from psyneulink.components.projectio... | [
"psyneulink.components.functions.function.Linear",
"pytest.helpers.expand_np_ndarray",
"psyneulink.components.system.System",
"psyneulink.components.projections.modulatory.controlprojection.ControlProjection",
"numpy.testing.assert_almost_equal",
"psyneulink.components.functions.function.BogaczEtAl",
"n... | [((1023, 1054), 'psyneulink.components.mechanisms.processing.transfermechanism.TransferMechanism', 'TransferMechanism', ([], {'name': '"""Input"""'}), "(name='Input')\n", (1040, 1054), False, 'from psyneulink.components.mechanisms.processing.transfermechanism import TransferMechanism\n'), ((1083, 1155), 'psyneulink.com... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "<NAME>"
__copyright__ = "Copyright 2017, LUH: IMR"
__credits__ = ["<NAME>"]
# __license__ = ""
__version__ = "0.2"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "alpha"
__package_name__ = "AVTcamera"
__developer__ = __author__
'''
Based on AVT imp... | [
"copy.deepcopy",
"logging.basicConfig",
"cv2.waitKey",
"cv2.destroyAllWindows",
"pymba.Vimba",
"logging.getLogger",
"time.sleep",
"re.findall",
"cv2.startWindowThread",
"cv2.resizeWindow",
"cv2.imshow",
"numpy.ndarray",
"cv2.namedWindow"
] | [((27493, 27533), 'logging.basicConfig', 'logging.basicConfig', ([], {'level': 'logging.DEBUG'}), '(level=logging.DEBUG)\n', (27512, 27533), False, 'import logging\n'), ((28399, 28449), 'cv2.namedWindow', 'cv.namedWindow', (['"""Captured image"""', 'cv.WINDOW_NORMAL'], {}), "('Captured image', cv.WINDOW_NORMAL)\n", (28... |
#!/usr/bin/env python
# Copyright 2014 Cloudera 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 a... | [
"versioneer.get_version",
"os.remove",
"Cython.Build.cythonize",
"distutils.command.clean.clean.run",
"versioneer.get_cmdclass",
"distutils.extension.Extension",
"numpy.get_include"
] | [((2108, 2281), 'distutils.extension.Extension', 'Extension', (['"""ibis.comms"""', "['ibis/comms.pyx', 'ibis/src/ipc_support.c']"], {'depends': "['ibis/src/ipc_support.h']", 'libraries': 'comms_ext_libraries', 'include_dirs': 'common_include'}), "('ibis.comms', ['ibis/comms.pyx', 'ibis/src/ipc_support.c'],\n depend... |
# Helpful plotting utilities
import numpy as np
import matplotlib.pyplot as plt
def lineplot(x, y, ctr_type='mean', err_type='std', show_trials=False, **kwargs):
"""
Plot the values with mean/median and std/95% CI/quartile as shading.
This uses the automatic/default/preset color cycling for lines. Provid... | [
"numpy.nanpercentile",
"matplotlib.pyplot.plot",
"numpy.nanmedian",
"numpy.nanstd",
"numpy.zeros",
"numpy.array",
"numpy.arange",
"matplotlib.pyplot.fill_between",
"numpy.nanmean"
] | [((2590, 2618), 'matplotlib.pyplot.plot', 'plt.plot', (['x', 'y_mid'], {}), '(x, y_mid, **kwargs)\n', (2598, 2618), True, 'import matplotlib.pyplot as plt\n'), ((1812, 1833), 'numpy.nanmean', 'np.nanmean', (['y'], {'axis': '(0)'}), '(y, axis=0)\n', (1822, 1833), True, 'import numpy as np\n'), ((1966, 1986), 'numpy.nans... |
#!/usr/bin/env python
import sys
import toml
import PySimpleGUI as sg
#import PySimpleGUIQt as sg
import numpy as np
from appdirs import AppDirs
from os import path, makedirs
from pathlib import Path
from version import NAME, APPNAME, GUI, VERSION, AUTHOR
"""
"""
tension = {}
charge = {}
type = {}
type['13S2P'] = 'WI... | [
"PySimpleGUI.Button",
"numpy.abs",
"appdirs.AppDirs",
"os.makedirs",
"PySimpleGUI.InputCombo",
"os.path.exists",
"os.path.expandvars",
"os.path.isfile",
"PySimpleGUI.Text",
"numpy.array",
"toml.load",
"PySimpleGUI.T",
"PySimpleGUI.Window",
"numpy.max",
"numpy.min",
"toml.loads",
"tom... | [((440, 639), 'numpy.array', 'np.array', (['[32, 33.76, 34.61, 35.43, 36.04, 36.47, 36.67, 36.74, 36.77, 36.8, 36.82, \n 36.84, 36.85, 36.87, 36.89, 36.95, 37.06, 37.43, 37.75, 37.9, 38.19, \n 38.89, 39.45, 40.12, 40.94, 41.9, 42]'], {}), '([32, 33.76, 34.61, 35.43, 36.04, 36.47, 36.67, 36.74, 36.77, 36.8,\n 3... |
import os
import logging
import datetime
import json
import click
import numpy as np
import joblib
from collections import defaultdict
from rllab.misc import tensor_utils
from rllab.algos.trpo import TRPO
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from rllab.envs.website_env import Webs... | [
"flask_cors.CORS",
"rllab.policies.gaussian_mlp_policy.GaussianMLPPolicy",
"click.option",
"rllab.baselines.linear_feature_baseline.LinearFeatureBaseline",
"rllab.algos.trpo.TRPO",
"numpy.clip",
"collections.defaultdict",
"json.dumps",
"flask.jsonify",
"numpy.mean",
"os.path.join",
"rllab.misc... | [((563, 590), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (580, 590), False, 'import logging\n'), ((949, 972), 'os.path.expanduser', 'os.path.expanduser', (['"""~"""'], {}), "('~')\n", (967, 972), False, 'import os\n'), ((988, 1033), 'os.path.join', 'os.path.join', (['home', '"""rllab/... |
import unittest
import numpy as np
from hotspots.hs_io import HotspotReader
from hotspots.grid_extension import Grid
from hotspots.protein_extension import Protein, centroid
from hotspots.wrapper_pymol import PyMOLCommands, PyMOLFile
from ccdc import io
class TestBindingSiteFromGrid(unittest.TestCase):
de... | [
"hotspots.wrapper_pymol.PyMOLFile",
"hotspots.grid_extension.Grid.from_file",
"hotspots.protein_extension.Protein.BindingSiteFromGrid._detect_from_grid",
"ccdc.io.MoleculeWriter",
"hotspots.wrapper_pymol.PyMOLCommands.load",
"hotspots.protein_extension.Protein.from_file",
"numpy.array",
"hotspots.wrap... | [((356, 409), 'hotspots.protein_extension.Protein.from_file', 'Protein.from_file', (['"""testdata/result/binding_site.pdb"""'], {}), "('testdata/result/binding_site.pdb')\n", (373, 409), False, 'from hotspots.protein_extension import Protein, centroid\n'), ((431, 473), 'hotspots.grid_extension.Grid.from_file', 'Grid.fr... |
import re
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
color = sns.color_palette('deep') + sns.color_palette('bright')
def FeatureSort(feature_name, group=np.array(()), group_name=[], value=[], store_path='',
is_sort=True, is_show=True, fig=plt.figure()):
'''
Draw ... | [
"numpy.asarray",
"matplotlib.pyplot.figure",
"re.findall",
"numpy.array",
"numpy.max",
"seaborn.color_palette",
"numpy.squeeze",
"matplotlib.pyplot.savefig"
] | [((92, 117), 'seaborn.color_palette', 'sns.color_palette', (['"""deep"""'], {}), "('deep')\n", (109, 117), True, 'import seaborn as sns\n'), ((120, 147), 'seaborn.color_palette', 'sns.color_palette', (['"""bright"""'], {}), "('bright')\n", (137, 147), True, 'import seaborn as sns\n'), ((186, 198), 'numpy.array', 'np.ar... |
'''
Defines class FEEstimator, which uses multigrid and partialing out to solve two way fixed effect models. This includes AKM, the Andrews et al. homoskedastic correction, and the Kline et al. heteroskedastic correction.
'''
import warnings
from pathlib import Path
import pyamg
import numpy as np
import pandas as pd
f... | [
"pickle.dump",
"numpy.load",
"numpy.sum",
"multiprocessing.set_start_method",
"numpy.ones",
"pyamg.ruge_stuben_solver",
"numpy.argsort",
"numpy.random.default_rng",
"numpy.mean",
"numpy.arange",
"pickle.load",
"numpy.interp",
"numpy.round",
"bipartitepandas.logger_init",
"numpy.std",
"... | [((1134, 3990), 'bipartitepandas.ParamsDict', 'ParamsDict', (['{\'ncore\': (1, \'type_constrained\', (int, _gteq1),\n """\n (default=1) Number of cores to use.\n """, \'>= 1\'\n ), \'weighted\': (True, \'type\', bool,\n """\n (default=True) If True, use weighted estimators.\n ... |
import time
from collections import OrderedDict
import numpy as np
import theano
import theano.tensor as T
import lasagne
import custom_ops
class QuantizedDenseLayer(lasagne.layers.DenseLayer):
def get_output_for(self, input, deterministic=False, **kwargs):
if input.ndim >... | [
"lasagne.layers.get_all_param_values",
"custom_ops.quantized_gemm",
"numpy.copy",
"time.time",
"numpy.random.shuffle"
] | [((511, 555), 'custom_ops.quantized_gemm', 'custom_ops.quantized_gemm', ([], {'x': 'input', 'w': 'self.W'}), '(x=input, w=self.W)\n', (536, 555), False, 'import custom_ops\n'), ((1414, 1438), 'numpy.copy', 'np.copy', (['X[0:chunk_size]'], {}), '(X[0:chunk_size])\n', (1421, 1438), True, 'import numpy as np\n'), ((1459, ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
import numpy as np
from ase.build import molecule
from graphdot import Graph
from graphdot.kernel.molecular import Tang2019MolecularKernel
def test_molecular_kernel():
molecules = [molecule('H2'), molecule('O2'), molecule('CH4')]
graphs = [Graph.fro... | [
"graphdot.kernel.molecular.Tang2019MolecularKernel",
"ase.build.molecule",
"graphdot.Graph.from_ase",
"numpy.where",
"numpy.diag",
"pytest.approx"
] | [((363, 388), 'graphdot.kernel.molecular.Tang2019MolecularKernel', 'Tang2019MolecularKernel', ([], {}), '()\n', (386, 388), False, 'from graphdot.kernel.molecular import Tang2019MolecularKernel\n'), ((247, 261), 'ase.build.molecule', 'molecule', (['"""H2"""'], {}), "('H2')\n", (255, 261), False, 'from ase.build import ... |
from __future__ import division
import math
import numpy as np
CONF_THRESHOLD = 10 # 48 # pct 68
MIN_LIKELY_PERSON_ASPECT_RATIO = 1.0
MAX_LIKELY_PERSON_ASPECT_RATIO = 4.0
MIN_STANDING_PERSON_ASPECT_RATIO = 1.6 # 1.9
MAX_STANDING_PERSON_ASPECT_RATIO = MAX_LIKELY_PERSON_ASPECT_RATIO
MASK_GRANULARITY_FACTOR = ... | [
"numpy.around",
"numpy.log",
"numpy.exp",
"math.sqrt"
] | [((8844, 8914), 'math.sqrt', 'math.sqrt', (['((point1[0] - point2[0]) ** 2 + (point1[1] - point2[1]) ** 2)'], {}), '((point1[0] - point2[0]) ** 2 + (point1[1] - point2[1]) ** 2)\n', (8853, 8914), False, 'import math\n'), ((9410, 9438), 'numpy.exp', 'np.exp', (['(-beta * radius1 ** 2)'], {}), '(-beta * radius1 ** 2)\n',... |
#! /usr/bin/env python
import unittest
import numpy as np
from sdf_tools import utils_2d
class TestSDFTools(unittest.TestCase):
def test_sdf_tools(self):
res = 0.05
x_width = 20
y_height = 40
grid_world = np.zeros([y_height, x_width], dtype=np.uint8)
grid_world[1, 3] = ... | [
"unittest.main",
"numpy.testing.assert_allclose",
"numpy.zeros",
"sdf_tools.utils_2d.compute_sdf_and_gradient"
] | [((1036, 1051), 'unittest.main', 'unittest.main', ([], {}), '()\n', (1049, 1051), False, 'import unittest\n'), ((247, 292), 'numpy.zeros', 'np.zeros', (['[y_height, x_width]'], {'dtype': 'np.uint8'}), '([y_height, x_width], dtype=np.uint8)\n', (255, 292), True, 'import numpy as np\n'), ((464, 526), 'sdf_tools.utils_2d.... |
import datetime
import os
import re
import requests
import urllib.parse
import time
from bs4 import BeautifulSoup
import html2text
import numpy as np
import pandas
search_key_word = 'climate'
search_key = 's'
url = r'https://thebfd.co.nz/'
link_list_data_file_path = 'url-data.csv'
delay_time_min = 0.
delay_time_ma... | [
"pandas.DataFrame",
"numpy.random.uniform",
"html2text.HTML2Text",
"pandas.read_csv",
"time.time",
"time.sleep",
"requests.get",
"bs4.BeautifulSoup",
"os.path.join"
] | [((1347, 1358), 'time.time', 'time.time', ([], {}), '()\n', (1356, 1358), False, 'import time\n'), ((1365, 1389), 'requests.get', 'requests.get', (['search_url'], {}), '(search_url)\n', (1377, 1389), False, 'import requests\n'), ((1421, 1462), 'bs4.BeautifulSoup', 'BeautifulSoup', (['result_page', '"""html.parser"""'],... |
import numpy as np
from scipy import interpolate as interp
from scipy.fftpack import dct
from numpy import linalg as LA
import scipy.optimize as opt
import matplotlib.pyplot as plt
def smoothn(yin, w=None, s=None, robust=True, tolZ=1.0e-5, maxIter=100):
"""Perfom the penalized least-squares smoothing of data of G... | [
"numpy.full_like",
"numpy.zeros_like",
"matplotlib.pyplot.show",
"matplotlib.pyplot.plot",
"numpy.median",
"numpy.log2",
"scipy.fftpack.dct",
"numpy.logical_not",
"numpy.isfinite",
"numpy.where",
"numpy.array",
"numpy.linalg.norm",
"numpy.linspace",
"numpy.cos",
"scipy.interpolate.interp... | [((1955, 1996), 'numpy.array', 'np.array', (['yin'], {'dtype': 'np.double', 'copy': '(True)'}), '(yin, dtype=np.double, copy=True)\n', (1963, 1996), True, 'import numpy as np\n'), ((2381, 2395), 'numpy.isfinite', 'np.isfinite', (['y'], {}), '(y)\n', (2392, 2395), True, 'import numpy as np\n'), ((2491, 2517), 'numpy.whe... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
from functools import reduce
from operator import mul
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import quad
from scipy.interpolate import interp1d
from scipy.signal import convolve
from scipy.special import hyp2f1
COEFFS = [
... | [
"numpy.poly1d",
"numpy.abs",
"numpy.argmax",
"scipy.special.hyp2f1",
"numpy.zeros",
"numpy.polyint",
"numpy.max",
"numpy.linspace",
"numpy.sign",
"scipy.interpolate.interp1d",
"scipy.signal.convolve",
"numpy.sqrt"
] | [((1178, 1196), 'numpy.poly1d', 'np.poly1d', (['[2, -1]'], {}), '([2, -1])\n', (1187, 1196), True, 'import numpy as np\n'), ((1214, 1242), 'numpy.poly1d', 'np.poly1d', (['self.coeffs[::-1]'], {}), '(self.coeffs[::-1])\n', (1223, 1242), True, 'import numpy as np\n'), ((1686, 1701), 'numpy.zeros', 'np.zeros', (['(m + 1)'... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
NutritionEngine: This script is used to determine ideal weights
of suitable foods, So that our nutritional requirement is
satisfied Uses: Linear Regression, Gradient Descent for
cost optimization. Try the below example and follow the
console.
... | [
"numpy.set_printoptions",
"numpy.random.seed",
"utils.regression.gradient_descent",
"utils.regression.compute_cost",
"utils.utils.add_or_remove_foods",
"utils.console.show_food_groups",
"utils.console.display_output",
"utils.console.display_output_normalized",
"utils.utils.build_x_and_y",
"numpy.r... | [((750, 784), 'numpy.set_printoptions', 'np.set_printoptions', ([], {'suppress': '(True)'}), '(suppress=True)\n', (769, 784), True, 'import numpy as np\n'), ((785, 803), 'numpy.random.seed', 'np.random.seed', (['(10)'], {}), '(10)\n', (799, 803), True, 'import numpy as np\n'), ((1433, 1551), 'utils.utils.build_x_and_y'... |
"""some utility functions for geometry calculation."""
import numpy as np
import numba
def surface_equ_3d(polygon_surfaces):
""" compute the normal vector and d (3d surface equation parameters) of a set of polygons
Given a series of polygon points x, y, z, compute the corresponding plane parameters a, b, c a... | [
"numpy.full",
"numpy.zeros",
"numpy.ones",
"numpy.cross",
"numpy.einsum"
] | [((1002, 1060), 'numpy.cross', 'np.cross', (['surface_vec[:, :, 0, :]', 'surface_vec[:, :, 1, :]'], {}), '(surface_vec[:, :, 0, :], surface_vec[:, :, 1, :])\n', (1010, 1060), True, 'import numpy as np\n'), ((1220, 1287), 'numpy.einsum', 'np.einsum', (['"""aij, aij->ai"""', 'normal_vec', 'polygon_surfaces[:, :, 0, :]'],... |
import unittest
import numpy as np
from ..hardware import *
from qupulse.hardware.dacs.alazar import AlazarCard, AlazarProgram
class AlazarProgramTest(unittest.TestCase):
def test_iter(self):
args = ([], [], 0)
program = AlazarProgram(*args)
for x, y in zip(program, args):
s... | [
"numpy.ones",
"qupulse.hardware.dacs.alazar.AlazarProgram",
"numpy.rint",
"numpy.arange",
"qupulse.hardware.dacs.alazar.AlazarCard",
"numpy.testing.assert_equal"
] | [((246, 266), 'qupulse.hardware.dacs.alazar.AlazarProgram', 'AlazarProgram', (['*args'], {}), '(*args)\n', (259, 266), False, 'from qupulse.hardware.dacs.alazar import AlazarCard, AlazarProgram\n'), ((433, 449), 'qupulse.hardware.dacs.alazar.AlazarCard', 'AlazarCard', (['None'], {}), '(None)\n', (443, 449), False, 'fro... |
import numpy as np
from PIL import Image
# create a 400 x 400 grid
dim = np.linspace(-10, 10, 400)
x, y, _ = np.meshgrid(dim, dim, [1]) # the [1] adds an extra dimension
# positions and widths of the 'hills'
position_x = np.array([-3.0, 7.0, 9.0])
position_y = np.array([0.0, 8.0, -9.0])
width_x = np.array([5... | [
"numpy.meshgrid",
"numpy.array",
"numpy.exp",
"numpy.linspace",
"PIL.Image.fromarray",
"numpy.sqrt"
] | [((76, 101), 'numpy.linspace', 'np.linspace', (['(-10)', '(10)', '(400)'], {}), '(-10, 10, 400)\n', (87, 101), True, 'import numpy as np\n'), ((112, 138), 'numpy.meshgrid', 'np.meshgrid', (['dim', 'dim', '[1]'], {}), '(dim, dim, [1])\n', (123, 138), True, 'import numpy as np\n'), ((226, 252), 'numpy.array', 'np.array',... |
"""
This script is used to evaluate the embeddings on the target tasks.
You'll need to download the datasets, compute the embeddings and set the path accordingly.
"""
from tqdm import tqdm
import pandas as pd
import numpy as np
from pathlib import Path
from collections import defaultdict
from itertools import chain
fro... | [
"numpy.load",
"sklearn.preprocessing.StandardScaler",
"pandas.read_csv",
"sklearn.metrics.roc_auc_score",
"collections.defaultdict",
"pathlib.Path",
"numpy.mean",
"numpy.array",
"sklearn.neural_network.MLPClassifier",
"itertools.chain"
] | [((3874, 3939), 'sklearn.metrics.roc_auc_score', 'roc_auc_score', (['y_test', 'y_prob'], {'multi_class': '"""ovo"""', 'average': '"""macro"""'}), "(y_test, y_prob, multi_class='ovo', average='macro')\n", (3887, 3939), False, 'from sklearn.metrics import roc_auc_score\n'), ((4005, 4073), 'sklearn.metrics.roc_auc_score',... |
import unittest
import numpy as np
from numpy.testing import assert_array_almost_equal
from .test_base import BaseSparrayTest, dense2d
class TestTrueDivision(BaseSparrayTest):
def test_truediv(self):
c = 3
assert_array_almost_equal(dense2d / c, (self.sp2d / c).toarray())
with np.errstate(divide='ignor... | [
"unittest.main",
"numpy.testing.assert_array_almost_equal",
"numpy.random.random",
"numpy.errstate"
] | [((646, 661), 'unittest.main', 'unittest.main', ([], {}), '()\n', (659, 661), False, 'import unittest\n'), ((500, 531), 'numpy.random.random', 'np.random.random', (['dense2d.shape'], {}), '(dense2d.shape)\n', (516, 531), True, 'import numpy as np\n'), ((295, 323), 'numpy.errstate', 'np.errstate', ([], {'divide': '"""ig... |
from srxraylib.plot.gol import plot, set_qt
import matplotlib.pylab as plt
import numpy
labelsize=25
figsize=(12,8)
import matplotlib
import matplotlib.pylab as plt
matplotlib.rc('xtick', labelsize=labelsize)
matplotlib.rc('ytick', labelsize=labelsize)
matplotlib.rcParams.update({'font.size': labelsize... | [
"matplotlib.rc",
"numpy.abs",
"matplotlib.rcParams.update",
"numpy.loadtxt",
"srxraylib.plot.gol.set_qt",
"matplotlib.pylab.grid",
"matplotlib.pylab.show"
] | [((166, 209), 'matplotlib.rc', 'matplotlib.rc', (['"""xtick"""'], {'labelsize': 'labelsize'}), "('xtick', labelsize=labelsize)\n", (179, 209), False, 'import matplotlib\n'), ((218, 261), 'matplotlib.rc', 'matplotlib.rc', (['"""ytick"""'], {'labelsize': 'labelsize'}), "('ytick', labelsize=labelsize)\n", (231, 261), Fals... |
import argparse
import copy
import os
from itertools import chain
import numpy as np
import tensorboardX
import torch
import torch.nn.functional as F
import tqdm
from . import envs, nets, replay, run, utils
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class TD3Agent:
def __init__(
... | [
"tqdm.tqdm",
"copy.deepcopy",
"tensorboardX.SummaryWriter",
"torch.load",
"torch.randn",
"numpy.expand_dims",
"torch.clamp",
"torch.cuda.is_available",
"torch.no_grad",
"os.path.join"
] | [((3801, 3821), 'copy.deepcopy', 'copy.deepcopy', (['agent'], {}), '(agent)\n', (3814, 3821), False, 'import copy\n'), ((242, 267), 'torch.cuda.is_available', 'torch.cuda.is_available', ([], {}), '()\n', (265, 267), False, 'import torch\n'), ((1261, 1291), 'os.path.join', 'os.path.join', (['path', '"""actor.pt"""'], {}... |
import mxnet as mx
from mxnet.gluon.model_zoo import vision
import os
import numpy as np
import glob
import pandas as pd
#from scipy.spatial.distance import cosine
#from IPython.display import Image
from PIL import Image
from tqdm import tqdm
from flask import url_for
import cv2 as cv
from gluoncv import model_zoo... | [
"gluoncv.model_zoo.get_model",
"pandas.read_hdf",
"mxnet.image.center_crop",
"mxnet.gluon.model_zoo.vision.densenet201",
"mxnet.image.resize_short",
"matplotlib.pyplot.imsave",
"mxnet.cpu",
"cv2.rectangle",
"mxnet.nd.array",
"numpy.dot",
"numpy.linalg.norm",
"pandas.set_option",
"gluoncv.dat... | [((444, 452), 'mxnet.cpu', 'mx.cpu', ([], {}), '()\n', (450, 452), True, 'import mxnet as mx\n'), ((453, 494), 'pandas.set_option', 'pd.set_option', (['"""display.max_colwidth"""', '(-1)'], {}), "('display.max_colwidth', -1)\n", (466, 494), True, 'import pandas as pd\n'), ((2543, 2578), 'mxnet.gluon.model_zoo.vision.de... |
"""
Defining a synthetic lesion
===============================
"""
# # Defining a Lesion
# Conducting a lesion analysis in ConWhAt is extremely simple. All that is needed is a binary `.nii` format lesion mask, with ones indicating lesioned tissue, and zeros elsewhere.
#
#
# >(Note: we terms like 'lesion' and 'da... | [
"nibabel.load",
"warnings.filterwarnings",
"nipy.labs.spatial_models.discrete_domain.grid_domain_from_image",
"os.system",
"numpy.array",
"nilearn.plotting.plot_roi"
] | [((2326, 2359), 'warnings.filterwarnings', 'warnings.filterwarnings', (['"""ignore"""'], {}), "('ignore')\n", (2349, 2359), False, 'import warnings\n'), ((2655, 2686), 'os.system', 'os.system', (["('wget ' + t1_mni_url)"], {}), "('wget ' + t1_mni_url)\n", (2664, 2686), False, 'import os, sys, glob, numpy as np\n'), ((2... |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
from tqdm import tqdm
import numpy as np
import traceback
import sys
PITCH_CLASS_NAMES = [
'C', 'C#', 'D', 'Eb', 'E', 'F', 'F#', 'G', 'Ab', 'A', 'Bb', 'B']
POS_RESOLUTION = 4
ROOT_pitch = {
'C': 0,
... | [
"numpy.arange"
] | [((998, 1011), 'numpy.arange', 'np.arange', (['(13)'], {}), '(13)\n', (1007, 1011), True, 'import numpy as np\n')] |
import numpy as np
from PIL import Image
import os,glob
'''
READ DATA
'''
def fwt97(s, width=255, height=255):
''' Forward Cohen-Daubechies-Feauveau 9 tap / 7 tap wavelet transform
performed on all columns of the 2D n*n matrix signal s via lifting.
The returned result is s, the modified input matrix.
... | [
"numpy.empty",
"numpy.rot90",
"numpy.array",
"PIL.Image.open"
] | [((1705, 1730), 'numpy.empty', 'np.empty', (['(height, width)'], {}), '((height, width))\n', (1713, 1730), True, 'import numpy as np\n'), ((3964, 3989), 'numpy.empty', 'np.empty', (['(height, width)'], {}), '((height, width))\n', (3972, 3989), True, 'import numpy as np\n'), ((4872, 4889), 'PIL.Image.open', 'Image.open'... |
#!/export/b18/ssadhu/tools/python/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 23 14:46:38 2018
@author: <NAME>
"""
'Prepare data, train MLP and do cross validation using batch loading'
import argparse
import numpy as np
import pickle
import torch
import torch.utils.data
from torch import nn
from tor... | [
"pickle.dump",
"argparse.ArgumentParser",
"numpy.empty",
"numpy.shape",
"sys.stdout.flush",
"torch.utils.data.TensorDataset",
"os.path.join",
"torch.utils.data.DataLoader",
"numpy.append",
"torch.nn.Linear",
"torch.nn.Tanh",
"torch.autograd.Variable",
"numpy.square",
"torch.max",
"torch.... | [((614, 637), 'numpy.empty', 'np.empty', (['(0, data_dim)'], {}), '((0, data_dim))\n', (622, 637), True, 'import numpy as np\n'), ((651, 663), 'numpy.array', 'np.array', (['[]'], {}), '([])\n', (659, 663), True, 'import numpy as np\n'), ((1168, 1186), 'sys.stdout.flush', 'sys.stdout.flush', ([], {}), '()\n', (1184, 118... |
# Copyright (c) 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Quadratic Program Solver based on MOSEK.
"""
import re
from sys import stdout, stderr
from numpy import array, Inf, zeros, shape, tril, any
from numpy import... | [
"sys.stdout.write",
"numpy.zeros",
"numpy.shape",
"numpy.any",
"scipy.sparse.csr_matrix",
"numpy.array",
"pypower.mosek_options.mosek_options",
"pymosek.mosekopt",
"sys.stderr.write"
] | [((7057, 7087), 'pymosek.mosekopt', 'mosekopt', (['cmd', 'prob', 'mosek_opt'], {}), '(cmd, prob, mosek_opt)\n', (7065, 7087), False, 'from pymosek import mosekopt\n'), ((4369, 4385), 'scipy.sparse.csr_matrix', 'sparse', (['(nx, nx)'], {}), '((nx, nx))\n', (4375, 4385), True, 'from scipy.sparse import csr_matrix as spar... |
"""
Module correlations provides functions to calculate 2D fields
auto-correlations.
A brief description of the algorithm can be found at:
https://yketa.github.io/UBC_2018_Wiki/#Discrete%20field%20auto-correlation
"""
import numpy as np
from active_particles.maths import Grid
def corField2D_scalar(field):
"""
... | [
"numpy.conj",
"numpy.sum",
"numpy.roll",
"numpy.min",
"numpy.array",
"numpy.fft.fft2",
"numpy.linspace"
] | [((820, 838), 'numpy.fft.fft2', 'np.fft.fft2', (['field'], {}), '(field)\n', (831, 838), True, 'import numpy as np\n'), ((978, 996), 'numpy.sum', 'np.sum', (['(field ** 2)'], {}), '(field ** 2)\n', (984, 996), True, 'import numpy as np\n'), ((7293, 7307), 'numpy.array', 'np.array', (['grid'], {}), '(grid)\n', (7301, 73... |
#!/usr/bin/env python
# uses a lot of global variables, its a hack I know
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button, RadioButtons, CheckButtons
ftable = {
'300':(300,0,0),
'300-400':(300,400,0),
'GDG':(196,294,392),
'Gm' :(196,247,294),
'Play... | [
"matplotlib.pyplot.tight_layout",
"numpy.absolute",
"matplotlib.pyplot.show",
"numpy.abs",
"matplotlib.widgets.RadioButtons",
"matplotlib.pyplot.axes",
"matplotlib.pyplot.get_current_fig_manager",
"matplotlib.widgets.Slider",
"numpy.fft.fft",
"numpy.clip",
"numpy.sin",
"numpy.arange",
"numpy... | [((1062, 1081), 'numpy.arange', 'np.arange', (['(0)', '(1)', 'Ts'], {}), '(0, 1, Ts)\n', (1071, 1081), True, 'import numpy as np\n'), ((1139, 1151), 'numpy.arange', 'np.arange', (['n'], {}), '(n)\n', (1148, 1151), True, 'import numpy as np\n'), ((1674, 1692), 'matplotlib.pyplot.subplots', 'plt.subplots', (['(2)', '(2)'... |
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from glob import glob
N_BLOCKS = 4
# Calculating the reaction time means
rt_data = {block: [] for block in range(1, N_BLOCKS+1)} # Range values chosen because block numbers start at 1, range iterator at 0
rt_means = {}
files = glob('reaction_time... | [
"matplotlib.pyplot.show",
"matplotlib.pyplot.plot",
"pandas.read_csv",
"matplotlib.pyplot.scatter",
"numpy.mean",
"glob.glob",
"matplotlib.pyplot.ylabel",
"matplotlib.pyplot.xlabel"
] | [((301, 329), 'glob.glob', 'glob', (['"""reaction_times_*.csv"""'], {}), "('reaction_times_*.csv')\n", (305, 329), False, 'from glob import glob\n'), ((898, 945), 'matplotlib.pyplot.plot', 'plt.plot', (['conditions', 'mean_reaction_times_right'], {}), '(conditions, mean_reaction_times_right)\n', (906, 945), True, 'impo... |
import pandas as pd
import numpy as np
import networkx as nx
import json, pytz, os
from collections import Counter
from tqdm import tqdm
from .tennis_utils import *
from .handler_utils import *
TIMEZONE = {
"rg17": pytz.timezone('Europe/Paris'),
"uo17": pytz.timezone('America/New_York')
}
QUALIFIER_START = {
... | [
"json.dump",
"json.load",
"os.makedirs",
"pandas.read_csv",
"os.path.exists",
"os.system",
"networkx.Graph",
"pytz.timezone",
"numpy.array",
"collections.Counter"
] | [((220, 249), 'pytz.timezone', 'pytz.timezone', (['"""Europe/Paris"""'], {}), "('Europe/Paris')\n", (233, 249), False, 'import json, pytz, os\n'), ((263, 296), 'pytz.timezone', 'pytz.timezone', (['"""America/New_York"""'], {}), "('America/New_York')\n", (276, 296), False, 'import json, pytz, os\n'), ((2510, 2549), 'pan... |
import os
from itertools import product
import rasterio as rio
from rasterio import windows
import skimage
import skimage.io
import numpy as np
from rasterio.plot import reshape_as_image
import rasterio.mask
from rasterio.features import rasterize
import pandas as pd
import geopandas as gpd
from shapely.geometry imp... | [
"rasterio.open",
"numpy.save",
"shapely.ops.cascaded_union",
"shapely.geometry.Polygon",
"rasterio.windows.Window",
"os.walk",
"numpy.array",
"rasterio.windows.transform",
"rasterio.features.rasterize",
"os.chdir",
"skimage.io.imread",
"geopandas.read_file"
] | [((822, 870), 'skimage.io.imread', 'skimage.io.imread', (['image_path'], {'plugin': '"""tifffile"""'}), "(image_path, plugin='tifffile')\n", (839, 870), False, 'import skimage\n'), ((2530, 2562), 'numpy.array', 'np.array', (['images'], {'dtype': '"""uint32"""'}), "(images, dtype='uint32')\n", (2538, 2562), True, 'impor... |
import numpy as np
import pytest
import rnn
def test_sigmoid():
assert rnn.sigmoid(0) == 0.5
assert rnn.sigmoid(100) == 1.0
assert rnn.sigmoid(-100) < 0.001
assert rnn.sigmoid(-100) >= 0
def test_logistic_loss():
assert np.allclose(rnn.logistic_loss(1.0, 0.9999999999), [0])
assert np.allclo... | [
"rnn.logistic_loss",
"rnn.RNN",
"pytest.raises",
"numpy.array",
"rnn.sigmoid"
] | [((502, 523), 'rnn.RNN', 'rnn.RNN', ([], {'n_a': '(4)', 'n_x': '(1)'}), '(n_a=4, n_x=1)\n', (509, 523), False, 'import rnn\n'), ((798, 811), 'rnn.RNN', 'rnn.RNN', (['(4)', '(1)'], {}), '(4, 1)\n', (805, 811), False, 'import rnn\n'), ((820, 837), 'numpy.array', 'np.array', (['[[0.3]]'], {}), '([[0.3]])\n', (828, 837), T... |
from numpy import ones, zeros, sort, argsort
def HFPquantile(x,conf,p=None):
# This function computes the quantile of a Flexible probabilities
# distribution
# INPUTS
# x :[vector](1 x t_end) scenarios
# conf :[vector](1 x n_ql) confidence levels
# p (optional):[vector]... | [
"numpy.argsort",
"numpy.sort",
"numpy.zeros",
"numpy.ones"
] | [((681, 697), 'numpy.zeros', 'zeros', (['(1, n_ql)'], {}), '((1, n_ql))\n', (686, 697), False, 'from numpy import ones, zeros, sort, argsort\n'), ((627, 634), 'numpy.sort', 'sort', (['x'], {}), '(x)\n', (631, 634), False, 'from numpy import ones, zeros, sort, argsort\n'), ((636, 646), 'numpy.argsort', 'argsort', (['x']... |
import numpy as np
import pandas as pd
from enum import Enum
from syntactical_analysis.sa_utils import *
__all__ = [
'Parser',
]
class Parser:
def __init__(self):
self.predictive_parser_table_data = [
[0, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27],
[1... | [
"numpy.array",
"syntactical_analysis.lexer.Lexer"
] | [((11678, 11685), 'syntactical_analysis.lexer.Lexer', 'Lexer', ([], {}), '()\n', (11683, 11685), False, 'from syntactical_analysis.lexer import Lexer\n'), ((1812, 1850), 'numpy.array', 'np.array', (['self.predictive_parser_table'], {}), '(self.predictive_parser_table)\n', (1820, 1850), True, 'import numpy as np\n')] |
import numpy as np
from scipy.integrate import odeint
from .name2idx import V
from .set_model import diffeq, param_values, initial_values
class Simulation(object):
tspan = np.linspace(0,480,4801)
t = np.array(tspan)/60 # min -> hour
Ton = np.linspace(0,0.5,6) # 30 s pulse
Toff = np.linspace(0,479.... | [
"numpy.array",
"numpy.delete",
"numpy.linspace"
] | [((179, 204), 'numpy.linspace', 'np.linspace', (['(0)', '(480)', '(4801)'], {}), '(0, 480, 4801)\n', (190, 204), True, 'import numpy as np\n'), ((255, 277), 'numpy.linspace', 'np.linspace', (['(0)', '(0.5)', '(6)'], {}), '(0, 0.5, 6)\n', (266, 277), True, 'import numpy as np\n'), ((302, 329), 'numpy.linspace', 'np.lins... |
"""
Containing utility functions for data processing
"""
import random
from scipy import sparse
from rdkit import Chem
import networkx as nx
import numpy as np
from mx_mg.data import data_struct
__all__ = ['get_graph_from_smiles_list', 'get_mol_from_graph', 'get_mol_from_graph_list', 'get_d']
def get_graph_from_sm... | [
"numpy.amin",
"rdkit.Chem.CanonicalRankAtoms",
"rdkit.Chem.Mol",
"numpy.ones",
"numpy.argsort",
"numpy.arange",
"mx_mg.data.data_struct.get_mol_spec",
"numpy.pad",
"numpy.zeros_like",
"numpy.copy",
"rdkit.Chem.SanitizeMol",
"numpy.append",
"numpy.less",
"numpy.repeat",
"numpy.tril_indice... | [((344, 370), 'rdkit.Chem.MolFromSmiles', 'Chem.MolFromSmiles', (['smiles'], {}), '(smiles)\n', (362, 370), False, 'from rdkit import Chem\n'), ((861, 871), 'networkx.Graph', 'nx.Graph', ([], {}), '()\n', (869, 871), True, 'import networkx as nx\n'), ((3211, 3245), 'numpy.array', 'np.array', (['step_ids'], {'dtype': 'n... |
# License: Apache-2.0
import copy
import warnings
from typing import Union
import databricks.koalas as ks
import numpy as np
import pandas as pd
from ..data_cleaning.drop_columns import DropColumns
from ..transformers.transformer import Transformer
from ..util import util
from ._base_encoder import _BaseEncoder
cla... | [
"numpy.ndarray",
"pandas.get_dummies",
"copy.copy",
"numpy.array",
"warnings.warn",
"databricks.koalas.get_dummies"
] | [((6899, 6913), 'numpy.ndarray', 'np.ndarray', (['[]'], {}), '([])\n', (6909, 6913), True, 'import numpy as np\n'), ((7799, 7925), 'warnings.warn', 'warnings.warn', (['f"""`X` does not contain object columns:\n `{self.__class__.__name__}` is not needed"""'], {}), '(\n f"""`X` does not contain object c... |
import numpy as np
np.random.seed(0)
import pandas as pd
import matplotlib.pyplot as plt
import gym
import tensorflow as tf
tf.random.set_seed(0)
from tensorflow import keras
class Chart:
def __init__(self):
self.fig, self.ax = plt.subplots(1, 1)
def plot(self, episode_rewards):
self.ax.clear... | [
"tensorflow.random.set_seed",
"pickle.dump",
"numpy.random.seed",
"tensorflow.keras.layers.Dense",
"numpy.ones",
"numpy.clip",
"numpy.random.set_state",
"numpy.mean",
"pickle.load",
"numpy.random.normal",
"tensorflow.keras.Sequential",
"tensorflow.concat",
"numpy.random.choice",
"datetime.... | [((19, 36), 'numpy.random.seed', 'np.random.seed', (['(0)'], {}), '(0)\n', (33, 36), True, 'import numpy as np\n'), ((125, 146), 'tensorflow.random.set_seed', 'tf.random.set_seed', (['(0)'], {}), '(0)\n', (143, 146), True, 'import tensorflow as tf\n'), ((484, 507), 'gym.make', 'gym.make', (['"""Pendulum-v0"""'], {}), "... |
# -*- coding: utf-8 -*-
"""Dialog Policy Learning Module."""
from typing import List
import numpy as np
from .keras_dpl import get_model
from ..common.system_action import SystemAction
from ..common.dialog_state import DialogState
from ..common.component import Component
class DialogPolicyLearning(Component):
""... | [
"numpy.array"
] | [((559, 593), 'numpy.array', 'np.array', (['[s.vec for s in history]'], {}), '([s.vec for s in history])\n', (567, 593), True, 'import numpy as np\n'), ((674, 687), 'numpy.array', 'np.array', (['[x]'], {}), '([x])\n', (682, 687), True, 'import numpy as np\n')] |
import argparse
import os
import os.path
import sys
sys.path.append('../')
from make_representations.cpe_apply import CPE
from utility.file_utility import FileUtility
from multiprocessing import Pool
import tqdm
from sklearn.feature_extraction.text import TfidfVectorizer
import numpy as np
from nltk import FreqDist
fro... | [
"utility.file_utility.FileUtility.load_obj",
"argparse.ArgumentParser",
"sklearn.feature_extraction.text.TfidfVectorizer",
"utility.math_utility.get_sym_kl_rows",
"numpy.arange",
"numpy.round",
"utility.file_utility.FileUtility.ensure_dir",
"scipy.stats.alpha.rvs",
"sys.path.append",
"utility.file... | [((52, 74), 'sys.path.append', 'sys.path.append', (['"""../"""'], {}), "('../')\n", (67, 74), False, 'import sys\n'), ((4630, 4655), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {}), '()\n', (4653, 4655), False, 'import argparse\n'), ((1676, 1711), 'utility.file_utility.FileUtility.ensure_dir', 'FileUtili... |
import tensorflow as tf
import keras
import argparse
import keras.backend as K
from keras.models import load_model
import cv2
import numpy as np
def print_pred(preds,classes):
preds = preds.ravel()
y = len(classes)
x=""
for i in range(y):
preds_rounded = np.around(preds,decimals=4)
x ... | [
"keras.models.load_model",
"cv2.resize",
"argparse.ArgumentParser",
"cv2.imread",
"numpy.around",
"numpy.reshape",
"keras.backend.clear_session"
] | [((504, 519), 'cv2.imread', 'cv2.imread', (['img'], {}), '(img)\n', (514, 519), False, 'import cv2\n'), ((530, 557), 'cv2.resize', 'cv2.resize', (['img', '(224, 224)'], {}), '(img, (224, 224))\n', (540, 557), False, 'import cv2\n'), ((566, 599), 'numpy.reshape', 'np.reshape', (['img', '[1, 224, 224, 3]'], {}), '(img, [... |
from sklearn.manifold import TSNE
from sklearn.manifold import MDS
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import OPTICS
from sklearn.cluster import DBSCAN
from sklearn.cluster import AgglomerativeClustering
from sklearn.cluster import AffinityPropagation
from sklearn... | [
"os.startfile",
"matplotlib.pyplot.show",
"sklearn.cluster.AffinityPropagation",
"sklearn.manifold.TSNE",
"sklearn.cluster.SpectralClustering",
"numpy.unique",
"sklearn.metrics.silhouette_score",
"matplotlib.pyplot.figure",
"subprocess.call",
"sklearn.cluster.OPTICS",
"sklearn.cluster.Agglomerat... | [((1957, 1969), 'matplotlib.pyplot.figure', 'plt.figure', ([], {}), '()\n', (1967, 1969), True, 'import matplotlib.pyplot as plt\n'), ((3384, 3394), 'matplotlib.pyplot.show', 'plt.show', ([], {}), '()\n', (3392, 3394), True, 'import matplotlib.pyplot as plt\n'), ((4230, 4319), 'sklearn.cluster.OPTICS', 'OPTICS', ([], {... |
import numpy as np
import pandas as pd
from Task import MyOneHotEncoder, SimpleCounterEncoder, FoldCounters, weights
def test_imports():
with open('Task.py', 'r') as file:
lines = ' '.join(file.readlines())
assert 'import numpy' in lines
assert lines.count('import') == 1
assert 's... | [
"numpy.random.seed",
"Task.weights",
"numpy.allclose",
"numpy.array",
"numpy.random.choice"
] | [((415, 432), 'numpy.random.seed', 'np.random.seed', (['(1)'], {}), '(1)\n', (429, 432), True, 'import numpy as np\n'), ((441, 545), 'numpy.array', 'np.array', (['[1, 1, 1, 1, 0, 4, 1, 0, 0, 3, 2, 1, 0, 3, 1, 1, 3, 4, 0, 1, 3, 4, 2, 4, 0,\n 3, 1, 2, 0, 4]'], {}), '([1, 1, 1, 1, 0, 4, 1, 0, 0, 3, 2, 1, 0, 3, 1, 1, 3,... |
import datetime
import numpy as np
import os
import sys
# LIBRARY GLOBAL MODS
CELLTYPES = os.path.dirname(os.path.dirname(__file__))
INPUT_FOLDER = CELLTYPES + os.sep + "input"
RUNS_FOLDER = CELLTYPES + os.sep + "runs" # store timestamped runs here
sys.path.append(CELLTYPES)
print("Appended to sys... | [
"sys.path.append",
"os.path.isabs",
"numpy.load",
"numpy.save",
"os.makedirs",
"os.path.dirname",
"numpy.savetxt",
"os.path.exists",
"datetime.datetime.now",
"numpy.array",
"numpy.loadtxt",
"numpy.savez",
"os.path.join"
] | [((271, 297), 'sys.path.append', 'sys.path.append', (['CELLTYPES'], {}), '(CELLTYPES)\n', (286, 297), False, 'import sys\n'), ((107, 132), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (122, 132), False, 'import os\n'), ((1106, 1143), 'os.path.join', 'os.path.join', (['current_run_dir', '"""... |
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 20 10:01:52 2021
@author: leyuan
"""
import numpy as np
from functions import softmax, cross_entropy_error
class MulLayer(object):
def __init__(self):
self.x = None
self.y = None
def forward(self, x, y):
self.x = x
self.... | [
"numpy.sum",
"numpy.zeros",
"functions.cross_entropy_error",
"numpy.mean",
"numpy.arange",
"numpy.exp",
"numpy.random.rand",
"numpy.dot",
"numpy.sqrt",
"functions.softmax"
] | [((1644, 1666), 'numpy.dot', 'np.dot', (['dout', 'self.W.T'], {}), '(dout, self.W.T)\n', (1650, 1666), True, 'import numpy as np\n'), ((1685, 1707), 'numpy.dot', 'np.dot', (['self.x.T', 'dout'], {}), '(self.x.T, dout)\n', (1691, 1707), True, 'import numpy as np\n'), ((1726, 1746), 'numpy.sum', 'np.sum', (['dout'], {'ax... |
import numpy as np
import pandas as pd
import transformers
from typing import Mapping, Sequence, Text, Union
# converts texts into input matrices required by transformers
def from_tokenizer(tokenizer: transformers.PreTrainedTokenizer,
texts: Sequence[Text],
pad_token: int = 0) ->... | [
"numpy.full",
"pandas.read_csv",
"numpy.zeros",
"pandas.api.types.is_string_dtype",
"pandas.concat"
] | [((653, 695), 'numpy.full', 'np.full', ([], {'shape': 'shape', 'fill_value': 'pad_token'}), '(shape=shape, fill_value=pad_token)\n', (660, 695), True, 'import numpy as np\n'), ((711, 732), 'numpy.zeros', 'np.zeros', ([], {'shape': 'shape'}), '(shape=shape)\n', (719, 732), True, 'import numpy as np\n'), ((1098, 1134), '... |
"""Centroidal Voronoi Diagrams
This script contains functions for numerically computing centroidal Voronoi diagrams.
The method used is that of [Secord 02]. The sites are assumed to be given in integer
coordinates that are on a grid of a given width and height with (0, 0) in the
bottom left hand corner of the grid. ... | [
"shapely.geometry.Polygon",
"scipy.spatial.Voronoi",
"collections.defaultdict",
"numpy.cumsum",
"numpy.array",
"numpy.linalg.norm",
"numpy.dot",
"numpy.concatenate"
] | [((3818, 3840), 'numpy.cumsum', 'np.cumsum', (['rho'], {'axis': '(0)'}), '(rho, axis=0)\n', (3827, 3840), True, 'import numpy as np\n'), ((3851, 3871), 'numpy.cumsum', 'np.cumsum', (['P'], {'axis': '(0)'}), '(P, axis=0)\n', (3860, 3871), True, 'import numpy as np\n'), ((14526, 14543), 'collections.defaultdict', 'defaul... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#da https://www.tensorflow.org/tutorials/structured_data/time_series
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
data = df
#data["y"] = data["glucose"]
import pandas as pd
import numpy as np
from datetime import timedelta, datetime
import matplotlib as mpl
import matp... | [
"tensorflow.keras.layers.Reshape",
"tensorflow.keras.layers.Dense",
"matplotlib.pyplot.figure",
"numpy.arange",
"tensorflow.keras.callbacks.EarlyStopping",
"tensorflow.keras.preprocessing.timeseries_dataset_from_array",
"tensorflow.keras.layers.Flatten",
"tensorflow.stack",
"datetime.timedelta",
"... | [((4020, 4047), 'matplotlib.pyplot.figure', 'plt.figure', ([], {'figsize': '(12, 8)'}), '(figsize=(12, 8))\n', (4030, 4047), True, 'import matplotlib.pyplot as plt\n'), ((4952, 4974), 'matplotlib.pyplot.xlabel', 'plt.xlabel', (['"""Time [h]"""'], {}), "('Time [h]')\n", (4962, 4974), True, 'import matplotlib.pyplot as p... |
import ctypes
from ctypes import c_ulonglong, cast
from _ctypes import POINTER, addressof, sizeof
try:
from mcculw import ul
from mcculw.enums import ScanOptions, FunctionType, Status, ChannelType, ULRange, \
InterfaceType, TriggerSource, TriggerSensitivity, TriggerEvent, InfoType, BoardInfo
from mcculw.ul import ... | [
"mcculw.ul.scaled_win_buf_alloc",
"os.remove",
"numpy.mean",
"mcculw.ul.a_in_scan",
"mcculw.ul.release_daq_device",
"numpy.std",
"numpy.genfromtxt",
"numpy.max",
"mcculw.ul.create_daq_device",
"mcculw.ul.scaled_win_buf_to_array",
"numpy.linspace",
"scipy.signal.butter",
"ctypes.POINTER",
"... | [((3822, 3868), 'mcculw.ul.get_daq_device_inventory', 'ul.get_daq_device_inventory', (['InterfaceType.ANY'], {}), '(InterfaceType.ANY)\n', (3849, 3868), False, 'from mcculw import ul\n'), ((3871, 3914), 'mcculw.ul.create_daq_device', 'ul.create_daq_device', (['board_num', 'devices[0]'], {}), '(board_num, devices[0])\n'... |
import numpy as np
def linear_interpolation(x_data, y_data, point):
if len(x_data) != len(y_data):
raise Exception("X and Y vectors must have equal number of elements.")
if x_data.size < 2:
raise Exception("X and Y vectors have to contain at least 2 elements.")
def _interpolate(x1, x2, y... | [
"numpy.ndenumerate"
] | [((423, 450), 'numpy.ndenumerate', 'np.ndenumerate', (['x_data[:-1]'], {}), '(x_data[:-1])\n', (437, 450), True, 'import numpy as np\n')] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
: Project - Dialated CRF
: Validation for GANet
: Author - <NAME>
: Institute - University of Kansas
: Date - 4/26/2021
: Last Update - 7/10/2021
: License: Apache 2.0
"""
import numpy as np
import math
import torch
from pathlib import Path
from utils... | [
"numpy.float32",
"numpy.where",
"math.sqrt",
"numpy.argmax"
] | [((1968, 2012), 'numpy.float32', 'np.float32', (['(self.TP / (UN - self.TP + 1e-31))'], {}), '(self.TP / (UN - self.TP + 1e-31))\n', (1978, 2012), True, 'import numpy as np\n'), ((2157, 2177), 'numpy.float32', 'np.float32', (['accuracy'], {}), '(accuracy)\n', (2167, 2177), True, 'import numpy as np\n'), ((2402, 2451), ... |
import os
import numpy as np
from pyspark.sql import SparkSession
from spark_function import fc, split_array, divide_func, multiply_func, l2norm, concat
def convolve(item_features_df, item_neighbors_df, conv_fc1_w, conv_fc1_b, conv_fc2_w, conv_fc2_b, convolve_hidden_size):
""" sparksql realize PinSage Convolve d... | [
"spark_function.split_array",
"spark_function.fc",
"pyspark.sql.SparkSession.builder.config",
"numpy.random.normal",
"spark_function.l2norm"
] | [((704, 774), 'spark_function.fc', 'fc', (['neighbor_features_df', '"""feature"""', 'conv_fc1_w', 'conv_fc1_b', '"""feature"""'], {}), "(neighbor_features_df, 'feature', conv_fc1_w, conv_fc1_b, 'feature')\n", (706, 774), False, 'from spark_function import fc, split_array, divide_func, multiply_func, l2norm, concat\n'),... |
import numpy as np
import pandas as pd
class Generator(object):
def __init__(self, params):
self.num_respondents = params['num_respondents']
self.data_size = (self.num_respondents, 0)
self._data = None
self.output_file = params['output_file']
def generate_random_data(self):
... | [
"numpy.random.randint"
] | [((364, 438), 'numpy.random.randint', 'np.random.randint', (['self.scale_min', '(self.scale_max + 1)'], {'size': 'self.data_size'}), '(self.scale_min, self.scale_max + 1, size=self.data_size)\n', (381, 438), True, 'import numpy as np\n')] |
from datetime import datetime
from datetime import timedelta
import re
import calendar
import numpy as np
import roxar_api_utils.ioutil
from .profiles import Profiles
from .keyword_check import is_rate
from .profiles_interpolation import profiles_interpolation
def read_ofm(
file_name,
d... | [
"re.split",
"numpy.zeros",
"datetime.datetime",
"datetime.timedelta",
"calendar.monthrange",
"re.sub"
] | [((5960, 5980), 're.split', 're.split', (['"""\t"""', 'temp'], {}), "('\\t', temp)\n", (5968, 5980), False, 'import re\n'), ((6399, 6422), 're.sub', 're.sub', (['""" +"""', '""" """', 'line'], {}), "(' +', ' ', line)\n", (6405, 6422), False, 'import re\n'), ((7382, 7408), 'datetime.datetime', 'datetime', (['year', 'mon... |
from __future__ import print_function
import logging
import os
import pickle
from datetime import datetime
import networkx as nx
import numpy as np
import scipy.sparse as sp
import pandas as pd
import tensorflow as tf
flags = tf.compat.v1.flags
FLAGS = flags.FLAGS
class ExpLogger:
""" Experiment logger. """
... | [
"pickle.dump",
"pandas.read_csv",
"numpy.ones",
"os.path.isfile",
"os.path.join",
"scipy.sparse.eye",
"networkx.adjacency_matrix",
"pandas.DataFrame",
"numpy.power",
"os.path.dirname",
"os.path.exists",
"scipy.sparse.coo_matrix",
"datetime.datetime.now",
"numpy.ones_like",
"scipy.sparse.... | [((4818, 4836), 'scipy.sparse.coo_matrix', 'sp.coo_matrix', (['adj'], {}), '(adj)\n', (4831, 4836), True, 'import scipy.sparse as sp\n'), ((5192, 5203), 'numpy.zeros', 'np.zeros', (['l'], {}), '(l)\n', (5200, 5203), True, 'import numpy as np\n'), ((5233, 5262), 'numpy.array', 'np.array', (['mask'], {'dtype': 'np.bool'}... |
#!/usr/bin/env python3
import ast
from flask import Flask, session, redirect, url_for, request, jsonify
from flask import render_template, session, g
from werkzeug.utils import secure_filename
from PIL import Image
import serial
from time import sleep
app = Flask(__name__)
import numpy as np
from scipy.cluster.vq imp... | [
"serial.Serial",
"numpy.load",
"numpy.save",
"numpy.abs",
"flask.Flask",
"numpy.expand_dims",
"time.sleep",
"PIL.Image.open",
"numpy.around",
"numpy.array",
"flask.render_template",
"ast.literal_eval",
"numpy.concatenate",
"numpy.sqrt"
] | [((260, 275), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (265, 275), False, 'from flask import Flask, session, redirect, url_for, request, jsonify\n'), ((372, 424), 'serial.Serial', 'serial.Serial', (['"""/dev/serial0"""', '(9600)'], {'write_timeout': '(2)'}), "('/dev/serial0', 9600, write_timeout=2)\n... |
# simulate_perspective.py - search for a simple formula for the insolation on a flat earth
import numpy as np
import matplotlib.pyplot as plt
from scipy import optimize
import seaborn as sns
sns.set_style('whitegrid')
n = 36
m = 39
l = 12
p = 4
r0 = 1/2
z0 = 1/4
r = np.linspace(0, 2*r0, n)
λ = np.linspace(0, np.pi,... | [
"numpy.stack",
"seaborn.set_style",
"numpy.meshgrid",
"matplotlib.pyplot.show",
"numpy.sum",
"matplotlib.pyplot.plot",
"numpy.polyfit",
"numpy.empty",
"numpy.zeros",
"matplotlib.pyplot.ylabel",
"numpy.around",
"matplotlib.pyplot.figure",
"numpy.sin",
"numpy.linspace",
"numpy.cos",
"num... | [((192, 218), 'seaborn.set_style', 'sns.set_style', (['"""whitegrid"""'], {}), "('whitegrid')\n", (205, 218), True, 'import seaborn as sns\n'), ((271, 296), 'numpy.linspace', 'np.linspace', (['(0)', '(2 * r0)', 'n'], {}), '(0, 2 * r0, n)\n', (282, 296), True, 'import numpy as np\n'), ((300, 324), 'numpy.linspace', 'np.... |
# -*- coding: utf-8 -*-
"""anchorbox_generator.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1UyJUFUeV9iiJwSG9xuV9iCVNLdU0VcJk
"""
# -*- coding: utf-8 -*-
"""Untitled4.ipynb
Automatically generated by Colaboratory.
Original file is located at... | [
"numpy.maximum",
"numpy.log",
"numpy.sum",
"numpy.zeros",
"math.floor",
"numpy.finfo",
"numpy.where",
"numpy.arange",
"numpy.vstack",
"numpy.sqrt"
] | [((1597, 1634), 'numpy.arange', 'np.arange', (['(16)', '((fe_size + 1) * 16)', '(16)'], {}), '(16, (fe_size + 1) * 16, 16)\n', (1606, 1634), True, 'import numpy as np\n'), ((1645, 1682), 'numpy.arange', 'np.arange', (['(16)', '((fe_size + 1) * 16)', '(16)'], {}), '(16, (fe_size + 1) * 16, 16)\n', (1654, 1682), True, 'i... |
# MIT License
# Copyright (c) 2021 xadrianzetx
# 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, copy, modify, merge, pu... | [
"tensorflow.keras.models.load_model",
"numpy.argmin",
"tensorflow.keras.Model",
"coral_deeplab._encoders.mobilenetv2",
"coral_deeplab._downloads.download_and_checksum_mlmodel",
"coral_deeplab._blocks.deeplabv3_decoder",
"coral_deeplab._blocks.deeplab_aspp_module",
"tensorflow.keras.layers.Input",
"c... | [((3956, 3980), 'tensorflow.keras.layers.Input', 'Input', ([], {'shape': 'input_shape'}), '(shape=input_shape)\n', (3961, 3980), False, 'from tensorflow.keras.layers import Input\n'), ((3995, 4021), 'coral_deeplab._encoders.mobilenetv2', 'mobilenetv2', (['inputs', 'alpha'], {}), '(inputs, alpha)\n', (4006, 4021), False... |
"""Methods to plot rates results"""
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
from ipywidgets import interact
import ipywidgets as widgets
COLORS = {'Oil': 'black', 'Water': 'blue', 'Gas': 'orange', 'Free Gas': 'red'}
COMPARE_COLOR = 'green'
NAMES_TO_KW = {'Oil': 'WOPR', 'Water': 'WWPR', 'G... | [
"numpy.full",
"numpy.stack",
"ipywidgets.IntSlider",
"ipywidgets.Dropdown",
"numpy.cumsum",
"ipywidgets.Checkbox",
"matplotlib.pylab.subplots",
"matplotlib.pylab.show"
] | [((2708, 2743), 'ipywidgets.Dropdown', 'widgets.Dropdown', ([], {'options': 'wellnames'}), '(options=wellnames)\n', (2724, 2743), True, 'import ipywidgets as widgets\n'), ((3190, 3264), 'ipywidgets.Dropdown', 'widgets.Dropdown', ([], {'options': "['Oil', 'Water', 'Gas', 'Free Gas']", 'value': '"""Oil"""'}), "(options=[... |
# coding: utf-8
from __future__ import division, print_function
__author__ = "adrn <<EMAIL>>"
# Standard library
import os
# Third-party
import numpy as np
import matplotlib.pyplot as plt
# Project
import gary.potential as gp
from gary.units import galactic
from ..initialconditions import tube_grid_xz, box_grid
p... | [
"os.makedirs",
"matplotlib.pyplot.clf",
"gary.potential.LeeSutoTriaxialNFWPotential",
"matplotlib.pyplot.scatter",
"os.path.exists",
"matplotlib.pyplot.figure",
"numpy.linspace",
"numpy.testing.assert_allclose"
] | [((438, 529), 'gary.potential.LeeSutoTriaxialNFWPotential', 'gp.LeeSutoTriaxialNFWPotential', ([], {'v_c': '(0.22)', 'r_s': '(30.0)', 'a': '(1.0)', 'b': '(1.0)', 'c': '(0.8)', 'units': 'galactic'}), '(v_c=0.22, r_s=30.0, a=1.0, b=1.0, c=0.8,\n units=galactic)\n', (468, 529), True, 'import gary.potential as gp\n'), (... |
from typing import Dict
import numpy as np
import torch
from echovpr.datasets.utils import get_1_hot_encode, load_np_file
from torch.utils.data import DataLoader
from torch.utils.data.dataset import ConcatDataset, Subset, TensorDataset
def prepare_final_datasets(esn_descriptors: Dict[str, torch.Tensor], config, eval_... | [
"numpy.shape",
"numpy.arange",
"numpy.reshape",
"echovpr.datasets.utils.load_np_file",
"torch.utils.data.dataset.TensorDataset",
"numpy.random.permutation",
"torch.utils.data.dataset.Subset",
"numpy.round",
"torch.from_numpy"
] | [((2556, 2621), 'echovpr.datasets.utils.load_np_file', 'load_np_file', (["config['dataset_nordland_summer_dataset_file_path']"], {}), "(config['dataset_nordland_summer_dataset_file_path'])\n", (2568, 2621), False, 'from echovpr.datasets.utils import get_1_hot_encode, load_np_file\n'), ((2648, 2713), 'echovpr.datasets.u... |
##multi feature
##实例代码,分别转化的是均值,二阶矩,三阶矩,中位数
##现在原本的输入是29维数据,输出是7维数据
##一些变形的分析以及代码
##现在就是减小时间跨度实现小维度的抽样
##现在的state的信息
##lane_vehicle_count 每个车道的数量(56)
##start_lane_vehicle_count 开始车道上的数量(28)
##lane_waiting_vehicle_count 每条车道上等待车的数量(速度小于0.1m/s)
##lane_vehicles 车道上的车的id
##vehicle_speed 每个车的速度
##v... | [
"cmath.sqrt",
"numpy.median",
"numpy.zeros",
"numpy.ones",
"numpy.append",
"numpy.linalg.inv",
"numpy.reshape",
"numpy.array",
"numpy.diag",
"numpy.cov"
] | [((2474, 2508), 'numpy.reshape', 'np.reshape', (['state', '[1, state_size]'], {}), '(state, [1, state_size])\n', (2484, 2508), True, 'import numpy as np\n'), ((2523, 2563), 'numpy.reshape', 'np.reshape', (['next_state', '[1, state_size2]'], {}), '(next_state, [1, state_size2])\n', (2533, 2563), True, 'import numpy as n... |
import unittest
import numpy as np
from gradient_descent.Adam import Adam
class TestAdamClass(unittest.TestCase):
def setUp(self):
"""Setting up requirements for test
Params:
None
Returns:
None
"""
def f(x):
"""Apply function to point... | [
"unittest.main",
"numpy.sqrt",
"numpy.array",
"gradient_descent.Adam.Adam"
] | [((4744, 4759), 'unittest.main', 'unittest.main', ([], {}), '()\n', (4757, 4759), False, 'import unittest\n'), ((724, 853), 'gradient_descent.Adam.Adam', 'Adam', (['f', 'df'], {'x_t': '(10)', 'learning_rate': '(0.1)', 'max_iterations': '(1000)', 'tolerance': '(1e-06)', 'n_history_points': '(1000)', 'beta_1': '(0.9)', '... |
__description__ = \
"""
Find the eyes of people in a frame and then give them glowing orbs instead
of normal eyes.
"""
__author__ = "<NAME>"
__date__ = "2018-12-19"
import pyfx
from .base import Effect
import numpy as np
class GlowingEyes(Effect):
"""
Give people in a collection of frames glowing eyes. The e... | [
"pyfx.util.alpha_composite",
"pyfx.processors.HumanFaces",
"numpy.zeros",
"pyfx.visuals.sprites.GlowingParticle"
] | [((2086, 2203), 'pyfx.processors.HumanFaces', 'pyfx.processors.HumanFaces', (['self._workspace', 'training_data', 'max_time_gap', 'p_cutoff', 'real_cutoff', 'min_time_visible'], {}), '(self._workspace, training_data, max_time_gap,\n p_cutoff, real_cutoff, min_time_visible)\n', (2112, 2203), False, 'import pyfx\n'), ... |
import numpy as np
import matplotlib.pyplot as plt
iterations=500
from numpy import loadtxt
elapsed = loadtxt("SaveFiles/JetsonNano/test_HN2_32.txt", delimiter=" ", unpack=False)
x=range(iterations)
y=elapsed
plt.figure(figsize=(8, 8))
plt.plot(x, y)
plt.xlabel("Image")
plt.ylabel("Seconds")
plt.title('HN2 fp32 Pr... | [
"matplotlib.pyplot.title",
"matplotlib.pyplot.show",
"matplotlib.pyplot.plot",
"matplotlib.pyplot.figure",
"numpy.loadtxt",
"matplotlib.pyplot.ylabel",
"matplotlib.pyplot.xlabel"
] | [((104, 180), 'numpy.loadtxt', 'loadtxt', (['"""SaveFiles/JetsonNano/test_HN2_32.txt"""'], {'delimiter': '""" """', 'unpack': '(False)'}), "('SaveFiles/JetsonNano/test_HN2_32.txt', delimiter=' ', unpack=False)\n", (111, 180), False, 'from numpy import loadtxt\n'), ((214, 240), 'matplotlib.pyplot.figure', 'plt.figure', ... |
import sys
sys.path.insert(1, '/data/s2675544/git/neural_deprojection/')
sys.path.insert(1, '/home/matthijs/git/neural_deprojection/')
from neural_deprojection.graph_net_utils import AbstractModule, \
histogramdd, efficient_nn_index
from graph_nets import blocks
from graph_nets.modules import SelfAttention
from s... | [
"tensorflow.einsum",
"sonnet.LayerNorm",
"tensorflow.reshape",
"tensorflow.math.reduce_std",
"sonnet.initializers.Zeros",
"graph_nets.utils_tf.fully_connect_graph_static",
"sonnet.nets.MLP",
"neural_deprojection.graph_net_utils.histogramdd",
"tensorflow.reduce_max",
"graph_nets.blocks.GlobalBlock"... | [((12, 73), 'sys.path.insert', 'sys.path.insert', (['(1)', '"""/data/s2675544/git/neural_deprojection/"""'], {}), "(1, '/data/s2675544/git/neural_deprojection/')\n", (27, 73), False, 'import sys\n'), ((74, 135), 'sys.path.insert', 'sys.path.insert', (['(1)', '"""/home/matthijs/git/neural_deprojection/"""'], {}), "(1, '... |
from math import log,exp,sqrt
import numpy as np
# Child Adult
# Basic contact matrix C = Child [ C_cc C_ca ]
# Adult [ C_ac C_aa ]
#
#
# N_i = number of people in group i (i=c or a)
# C_{ij} = (number of people from group j encountered by an ... | [
"numpy.zeros",
"numpy.array",
"numpy.matmul"
] | [((1950, 1972), 'numpy.array', 'np.array', (['[0.25, 0.25]'], {}), '([0.25, 0.25])\n', (1958, 1972), True, 'import numpy as np\n'), ((1984, 2012), 'numpy.array', 'np.array', (['[0.15, 0.15, 0.25]'], {}), '([0.15, 0.15, 0.25])\n', (1992, 2012), True, 'import numpy as np\n'), ((2095, 2135), 'numpy.array', 'np.array', (['... |
import numpy as np
import rowan
from numpy.linalg import norm
from ef.config.component import ConfigComponent
from ef.util.serializable_h5 import SerializableH5
__all__ = ['Shape', 'Box', 'Cylinder', 'Tube', 'Sphere', 'Cone']
class Shape(ConfigComponent, SerializableH5):
def visualize(self, visualizer, **kwargs... | [
"numpy.stack",
"rowan.rotate",
"numpy.cross",
"numpy.logical_and.reduce",
"numpy.all",
"numpy.sin",
"numpy.array",
"numpy.linalg.norm",
"numpy.cos",
"numpy.dot",
"numpy.concatenate",
"numpy.sqrt"
] | [((954, 977), 'numpy.sqrt', 'np.sqrt', (['((1 + cos2) / 2)'], {}), '((1 + cos2) / 2)\n', (961, 977), True, 'import numpy as np\n'), ((988, 1011), 'numpy.sqrt', 'np.sqrt', (['((1 - cos2) / 2)'], {}), '((1 - cos2) / 2)\n', (995, 1011), True, 'import numpy as np\n'), ((1023, 1050), 'numpy.cross', 'np.cross', (['(0, 0, 1)'... |
import numpy as np
l = list(range(10))
print(l)
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print(l[4:8])
# [4, 5, 6, 7]
print(l[-5:-2])
# [5, 6, 7]
print(l[::-1])
# [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
a = np.arange(10)
print(a)
# [0 1 2 3 4 5 6 7 8 9]
print(a[4:8])
# [4 5 6 7]
print(a[-5:-2])
# [5 6 7]
print(a[::-1])
# [9 8 7... | [
"numpy.arange"
] | [((195, 208), 'numpy.arange', 'np.arange', (['(10)'], {}), '(10)\n', (204, 208), True, 'import numpy as np\n'), ((598, 611), 'numpy.arange', 'np.arange', (['(10)'], {}), '(10)\n', (607, 611), True, 'import numpy as np\n'), ((827, 840), 'numpy.arange', 'np.arange', (['(12)'], {}), '(12)\n', (836, 840), True, 'import num... |
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as p3
# Create helix:
def make_helix(n):
theta_max = 8 * np.pi
theta = np.linspace(0, theta_max, n)
x, y, z = theta / (8 * np.pi), 0.5 * np.sin(theta) + 0.5, 0.5 * np.cos(theta) + 0.5
helix = np.stack((x, y, z))
... | [
"numpy.stack",
"matplotlib.pyplot.show",
"matplotlib.pyplot.figure",
"numpy.sin",
"numpy.linspace",
"numpy.cos"
] | [((167, 195), 'numpy.linspace', 'np.linspace', (['(0)', 'theta_max', 'n'], {}), '(0, theta_max, n)\n', (178, 195), True, 'import numpy as np\n'), ((297, 316), 'numpy.stack', 'np.stack', (['(x, y, z)'], {}), '((x, y, z))\n', (305, 316), True, 'import numpy as np\n'), ((396, 408), 'matplotlib.pyplot.figure', 'plt.figure'... |
import unittest
import numpy as np
from chainer import testing
from chainer.testing import attr
from chainercv.datasets import coco_instance_segmentation_label_names
from chainercv.datasets import COCOInstanceSegmentationDataset
from chainercv.utils import assert_is_instance_segmentation_dataset
try:
import pyc... | [
"chainer.testing.product",
"chainercv.datasets.COCOInstanceSegmentationDataset",
"unittest.skipUnless",
"numpy.testing.assert_equal",
"chainer.testing.run_module",
"chainer.testing.product_dict"
] | [((2448, 2486), 'chainer.testing.run_module', 'testing.run_module', (['__name__', '__file__'], {}), '(__name__, __file__)\n', (2466, 2486), False, 'from chainer import testing\n'), ((447, 517), 'chainer.testing.product', 'testing.product', (["{'split': ['train', 'val'], 'year': ['2014', '2017']}"], {}), "({'split': ['t... |
import numpy as np
import copy
from profilehooks import profile
import cv2
import time
class Segmentor_grab:
def __init__(self, img):
self.img = copy.copy(img)
self.mask_color = (1, 255, 255)
@profile
def segment(self, rect):
start = time.time()
mask = np.zeros(self.img.... | [
"cv2.grabCut",
"numpy.zeros",
"copy.copy",
"time.time",
"numpy.where"
] | [((161, 175), 'copy.copy', 'copy.copy', (['img'], {}), '(img)\n', (170, 175), False, 'import copy\n'), ((275, 286), 'time.time', 'time.time', ([], {}), '()\n', (284, 286), False, 'import time\n'), ((302, 340), 'numpy.zeros', 'np.zeros', (['self.img.shape[:2]', 'np.uint8'], {}), '(self.img.shape[:2], np.uint8)\n', (310,... |
#%%
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import scipy as sp
from scipy import stats
import matplotlib.patches as mpl_patches
#%%
#Read CSV file in the folder
data = pd.read_csv('chart1.csv')
data.to_csv('new_chart.csv', index=False)
print(type(max(data['Observed'])))
... | [
"matplotlib.pyplot.title",
"matplotlib.pyplot.tight_layout",
"numpy.poly1d",
"numpy.polyfit",
"pandas.read_csv",
"matplotlib.pyplot.scatter",
"matplotlib.pyplot.legend",
"matplotlib.patches.Rectangle",
"scipy.stats.linregress",
"matplotlib.pyplot.ylabel",
"matplotlib.pyplot.xlabel",
"matplotli... | [((210, 235), 'pandas.read_csv', 'pd.read_csv', (['"""chart1.csv"""'], {}), "('chart1.csv')\n", (221, 235), True, 'import pandas as pd\n'), ((1276, 1313), 'matplotlib.pyplot.subplots', 'plt.subplots', ([], {'figsize': '(width, height)'}), '(figsize=(width, height))\n', (1288, 1313), True, 'import matplotlib.pyplot as p... |
#!/usr/bin/env python
import numpy as np
from mpi4py import MPI
# Communicator group
comm = MPI.COMM_WORLD
# Number of processes in the communicator group
size = comm.Get_size()
# Get the rank of the current process in the communicator group
rank = comm.Get_rank()
# Initialize array and table
row = np.zeros(size)
... | [
"numpy.zeros"
] | [((305, 319), 'numpy.zeros', 'np.zeros', (['size'], {}), '(size)\n', (313, 319), True, 'import numpy as np\n'), ((328, 350), 'numpy.zeros', 'np.zeros', (['(size, size)'], {}), '((size, size))\n', (336, 350), True, 'import numpy as np\n')] |
import SimpleITK as sitk
import numpy as np
import tensorflow as tf
from medpy.metric import hd,asd
from config.Defines import Get_Name_By_Index
from dirutil.helper import get_name_wo_suffix
from evaluate.metric import calculate_binary_dice, neg_jac, print_mean_and_std
from excelutil.output2excel import outpu2excel
fr... | [
"tensorflow.reduce_sum",
"tfop.losses.local_displacement_energy",
"excelutil.output2excel.outpu2excel",
"tfop.layers.upsample_resnet_block",
"learn2reg.loss.NVISimilarity",
"tensorflow.Variable",
"evaluate.metric.print_mean_and_std",
"tfop.utils.random_transform_generator",
"tfop.layers.ddf_summand"... | [((760, 798), 'model.base_model.BaseModelV2.__init__', 'BaseModelV2.__init__', (['self', 'sess', 'args'], {}), '(self, sess, args)\n', (780, 798), False, 'from model.base_model import BaseModelV2\n'), ((829, 858), 'learn2reg.sampler.MMSampler', 'MMSampler', (['self.args', '"""train"""'], {}), "(self.args, 'train')\n", ... |
import sys
sys.path.insert(0, '/media/sidk/Data/sidk/Research/OP3/')
from rlkit.torch.monet.monet import MonetVAE
from rlkit.torch.conv_networks import BroadcastCNN
import rlkit.torch.monet.monet as monet
from rlkit.torch.monet.unet import UNet
from rlkit.torch.monet.monet_trainer import MonetTrainer
import rlkit.torch... | [
"rlkit.core.logger.save_extra_data",
"h5py.File",
"rlkit.torch.monet.unet.UNet",
"sys.path.insert",
"rlkit.torch.monet.monet.MonetVAE",
"numpy.array",
"numpy.swapaxes",
"rlkit.core.logger.get_snapshot_dir",
"rlkit.torch.monet.monet_trainer.MonetTrainer",
"rlkit.launchers.launcher_util.run_experime... | [((11, 68), 'sys.path.insert', 'sys.path.insert', (['(0)', '"""/media/sidk/Data/sidk/Research/OP3/"""'], {}), "(0, '/media/sidk/Data/sidk/Research/OP3/')\n", (26, 68), False, 'import sys\n'), ((560, 585), 'h5py.File', 'h5py.File', (['data_path', '"""r"""'], {}), "(data_path, 'r')\n", (569, 585), False, 'import h5py\n')... |
import collections
import multiprocessing as mp
import multiprocessing.pool
import functools
import numpy as np
from buzzard._actors.message import Msg
from buzzard._actors.pool_job import ProductionJobWaiting, PoolJobWorking
class ActorComputer(object):
"""Actor that takes care of sheduling computations by usin... | [
"collections.defaultdict",
"functools.partial",
"numpy.atleast_3d",
"buzzard._actors.message.Msg"
] | [((1087, 1115), 'collections.defaultdict', 'collections.defaultdict', (['set'], {}), '(set)\n', (1110, 1115), False, 'import collections\n'), ((5029, 5047), 'numpy.atleast_3d', 'np.atleast_3d', (['res'], {}), '(res)\n', (5042, 5047), True, 'import numpy as np\n'), ((3965, 4019), 'buzzard._actors.message.Msg', 'Msg', ([... |
import argparse
import numpy as np
def main():
parser = argparse.ArgumentParser(
description='LOL HI THERE',
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument('src_results_fn')
parser.add_argument('dest_results_fn')
args = parser.parse_args()
desired = ['seed', 'clusters... | [
"numpy.savez_compressed",
"argparse.ArgumentParser",
"numpy.load"
] | [((59, 171), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""LOL HI THERE"""', 'formatter_class': 'argparse.ArgumentDefaultsHelpFormatter'}), "(description='LOL HI THERE', formatter_class=\n argparse.ArgumentDefaultsHelpFormatter)\n", (82, 171), False, 'import argparse\n'), ((603, 660)... |
import numpy as np
from scheduling.utils.bottleneck_assignment import solve_bap
from common.distance import distance
def solve_mbap(agents, seq_targets, already_spent_costs):
"""
Solve the multi-level bottleneck assignment problem.
A multi-level bottleneck assignment approach to the bus drivers' rostering... | [
"scheduling.utils.bottleneck_assignment.solve_bap",
"numpy.sum",
"numpy.zeros",
"numpy.ones",
"common.distance.distance"
] | [((2774, 2803), 'numpy.zeros', 'np.zeros', (['(k, T)'], {'dtype': 'float'}), '((k, T), dtype=float)\n', (2782, 2803), True, 'import numpy as np\n'), ((672, 698), 'numpy.ones', 'np.ones', (['(T, k)'], {'dtype': 'int'}), '((T, k), dtype=int)\n', (679, 698), True, 'import numpy as np\n'), ((887, 932), 'scheduling.utils.bo... |
# -*- coding: utf-8 -*-
"""
@Author: <NAME>
"""
import math as mt
import numpy as np
import pytest
import raman.utilities as ut
from numpy import testing as npt
from collections import namedtuple
from operator import attrgetter
@pytest.mark.parametrize("num_channels", [1, 10])
def test_compute_power_spectrum(num_chan... | [
"raman.utilities.compute_power_spectrum",
"math.ceil",
"numpy.testing.assert_allclose",
"raman.utilities.raised_cosine_comb",
"numpy.ones",
"numpy.append",
"numpy.arange",
"collections.namedtuple",
"numpy.array",
"pytest.mark.parametrize"
] | [((231, 279), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""num_channels"""', '[1, 10]'], {}), "('num_channels', [1, 10])\n", (254, 279), False, 'import pytest\n'), ((2884, 2929), 'pytest.mark.parametrize', 'pytest.mark.parametrize', (['"""roll_off"""', '[0, 0.5]'], {}), "('roll_off', [0, 0.5])\n", (2907,... |
import os
import numpy as np
import tensorflow as tf
from librosa import effects
from tacotron.models import create_model
from tacotron.utils.text import text_to_sequence, sequence_to_text
from tacotron.utils import plot
from datasets import audio
from datetime import datetime
import sounddevice as sd
import pyaudio
im... | [
"numpy.load",
"tensorflow.train.Saver",
"tensorflow.global_variables_initializer",
"numpy.asarray",
"tensorflow.Session",
"tensorflow.variable_scope",
"infolog.log",
"tensorflow.placeholder",
"tensorflow.train.write_graph",
"tensorflow.graph_util.convert_variables_to_constants",
"tacotron.utils.... | [((454, 496), 'infolog.log', 'log', (["('Constructing model: %s' % model_name)"], {}), "('Constructing model: %s' % model_name)\n", (457, 496), False, 'from infolog import log\n'), ((508, 553), 'tensorflow.placeholder', 'tf.placeholder', (['tf.int32', '[1, None]', '"""inputs"""'], {}), "(tf.int32, [1, None], 'inputs')\... |
# Copyright 2019 Google 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 writing, ... | [
"absl.testing.absltest.main",
"numpy.sum",
"tensorflow.compat.v2.io.gfile.makedirs",
"telluride_decoding.ingest.BrainTrial",
"numpy.mean",
"numpy.arange",
"telluride_decoding.ingest.LocalCopy",
"os.path.join",
"telluride_decoding.ingest.BrainExperiment.delete_suffix",
"telluride_decoding.ingest.di... | [((15245, 15278), 'tensorflow.compat.v2.compat.v1.enable_v2_behavior', 'tf.compat.v1.enable_v2_behavior', ([], {}), '()\n', (15276, 15278), True, 'import tensorflow.compat.v2 as tf\n'), ((15281, 15296), 'absl.testing.absltest.main', 'absltest.main', ([], {}), '()\n', (15294, 15296), False, 'from absl.testing import abs... |
#!/usr/bin/env python
# Built-in imports
import sys
# Own imports
import baxter_essentials.baxter_class as bc
# General module imports
import numpy as np
import rospy
import baxter_interface
from std_msgs.msg import (
String
)
from geometry_msgs.msg import (
Pose
)
from sensor_msgs.msg import (
JointS... | [
"rospy.Subscriber",
"rospy.Publisher",
"rospy.Rate",
"baxter_essentials.baxter_class.BaxterClass",
"rospy.is_shutdown",
"numpy.array",
"rospy.init_node",
"baxter_core_msgs.msg.JointCommand",
"numpy.concatenate"
] | [((7243, 7279), 'rospy.init_node', 'rospy.init_node', (['"""open_loop_control"""'], {}), "('open_loop_control')\n", (7258, 7279), False, 'import rospy\n'), ((857, 879), 'rospy.Rate', 'rospy.Rate', (['rospy_rate'], {}), '(rospy_rate)\n', (867, 879), False, 'import rospy\n'), ((1155, 1231), 'rospy.Subscriber', 'rospy.Sub... |
# Created byMartin.cz
# Copyright (c) <NAME>. All rights reserved.
import numpy
import pero
import perrot
# prepare data
x_data = numpy.linspace(-2 * numpy.pi, 2 * numpy.pi, 100)
y_data = numpy.sin(x_data)
x_data /= numpy.pi
# init plot
plot = perrot.plot.Plot(
x_axis_title="pi",
y_axis_title="f(x)")
# a... | [
"perrot.plot.Profile",
"numpy.sin",
"numpy.linspace",
"perrot.plot.Plot"
] | [((135, 183), 'numpy.linspace', 'numpy.linspace', (['(-2 * numpy.pi)', '(2 * numpy.pi)', '(100)'], {}), '(-2 * numpy.pi, 2 * numpy.pi, 100)\n', (149, 183), False, 'import numpy\n'), ((193, 210), 'numpy.sin', 'numpy.sin', (['x_data'], {}), '(x_data)\n', (202, 210), False, 'import numpy\n'), ((250, 306), 'perrot.plot.Plo... |
import cv2
import os
from PIL import Image, ImageDraw, ImageFont
import numpy as np
import colorsys
from Utils.GeometryUtils import compute_two_points_angle, get_coordinates_of_rotated_box
current_directory = os.path.dirname(__file__)
candidate_font = '田氏颜体大字库2.0.ttf'
annotate_font = ImageFont.truetype(os.path.join(cu... | [
"cv2.fillPoly",
"cv2.ellipse",
"cv2.rectangle",
"os.path.join",
"numpy.unique",
"cv2.line",
"os.path.dirname",
"Utils.GeometryUtils.compute_two_points_angle",
"PIL.ImageDraw.Draw",
"Utils.GeometryUtils.get_coordinates_of_rotated_box",
"cv2.resize",
"numpy.repeat",
"cv2.circle",
"numpy.asar... | [((210, 235), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (225, 235), False, 'import os\n'), ((305, 352), 'os.path.join', 'os.path.join', (['current_directory', 'candidate_font'], {}), '(current_directory, candidate_font)\n', (317, 352), False, 'import os\n'), ((1031, 1080), 'cv2.addWeight... |
"""
Bayesian nonparametric samplers
"""
import numpy as np
# CRP samplers
def sample_CRP(N, alpha,d =0):
"""
sample from a Pitman-Yor process via the Chinese Restaraunt process, default
value of d=0 samples from a Dirichlet process
Parameters
-----------
N : scalar, integer
number of s... | [
"numpy.zeros",
"numpy.ones",
"numpy.append",
"numpy.arange",
"numpy.random.poisson",
"numpy.random.choice"
] | [((1570, 1591), 'numpy.zeros', 'np.zeros', (['z_tmp.shape'], {}), '(z_tmp.shape)\n', (1578, 1591), True, 'import numpy as np\n'), ((1536, 1560), 'numpy.random.poisson', 'np.random.poisson', (['gamma'], {}), '(gamma)\n', (1553, 1560), True, 'import numpy as np\n'), ((1729, 1757), 'numpy.random.poisson', 'np.random.poiss... |
"""
Here we put some functions that both parsers need
"""
import numpy as np
def log_add(logx,logy):
"""This adds two log-transformed variables,
taking care of the underflow that you usually find when you do this
Arguments:
logx : float
logy : float"""
if logx==None: # This is just a hack s... | [
"numpy.log",
"subprocess.call",
"numpy.exp"
] | [((5866, 5924), 'subprocess.call', 'subprocess.call', (["['dot', '.tmp.dot', '-Tpdf', '-o', fname]"], {}), "(['dot', '.tmp.dot', '-Tpdf', '-o', fname])\n", (5881, 5924), False, 'import subprocess\n'), ((6192, 6250), 'subprocess.call', 'subprocess.call', (["['dot', '.tmp.dot', '-Tpng', '-o', fname]"], {}), "(['dot', '.t... |
import os
import numpy as np
import shutil
import json
import tensorflow as tf
def create_lines_dataset(data_source,
preprocessor,
destination_folder='lines_dataset',
size=10000, train_fraction=0.6, val_fraction=0.2):
temp_folder = os.path... | [
"os.remove",
"os.makedirs",
"keras_htr.generators.CompiledDataset",
"os.path.exists",
"json.dumps",
"tensorflow.keras.preprocessing.image.load_img",
"numpy.max",
"numpy.min",
"numpy.mean",
"os.path.splitext",
"numpy.random.choice",
"shutil.copyfile",
"shutil.copytree",
"os.path.join",
"o... | [((313, 364), 'os.path.join', 'os.path.join', (['destination_folder', '"""extracted_lines"""'], {}), "(destination_folder, 'extracted_lines')\n", (325, 364), False, 'import os\n'), ((464, 498), 'os.path.join', 'os.path.join', (['temp_folder', '"""train"""'], {}), "(temp_folder, 'train')\n", (476, 498), False, 'import o... |
import numpy as np
import sys, os
import argparse
import tabulate
from Utils.twokenize import *
from Utils.MyMetrics import *
from Utils.WordVecs import *
from Utils.Representations import *
from Utils.Datasets import *
from Utils.Semeval_2013_Dataset import *
from sklearn.linear_model import LogisticRegression
from sk... | [
"argparse.ArgumentParser",
"sklearn.linear_model.LogisticRegression",
"sklearn.metrics.f1_score",
"sys.stdout.flush",
"tabulate.tabulate",
"numpy.array"
] | [((5018, 5135), 'tabulate.tabulate', 'tabulate.tabulate', (['table_data'], {'headers': "['dataset', 'acc', 'prec', 'rec', 'f1']", 'tablefmt': '"""simple"""', 'floatfmt': '""".3f"""'}), "(table_data, headers=['dataset', 'acc', 'prec', 'rec',\n 'f1'], tablefmt='simple', floatfmt='.3f')\n", (5035, 5135), False, 'import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.