metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "_font.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattermap/hoverlabel/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="scattermap.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=pa...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattermap@hoverlabel@_font.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "aringlis/afino_release_version", "repo_path": "afino_release_version_extracted/afino_release_version-master/afino/__init__.py", "type": "Python" }
# An init file
aringlisREPO_NAMEafino_release_versionPATH_START.@afino_release_version_extracted@afino_release_version-master@afino@__init__.py@.PATH_END.py
{ "filename": "PlotPlayground.ipynb", "repo_name": "adamamiller/ztf_early_Ia_2018", "repo_path": "ztf_early_Ia_2018_extracted/ztf_early_Ia_2018-master/playground/PlotPlayground.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from scipy.stats import spearmanr ``` ```python %matplotlib notebook ``` # Plot Playground This notebook is exploratory in nature and designed to look at various correlations in the early...
adamamillerREPO_NAMEztf_early_Ia_2018PATH_START.@ztf_early_Ia_2018_extracted@ztf_early_Ia_2018-master@playground@PlotPlayground.ipynb@.PATH_END.py
{ "filename": "Far-Field Simulation_binocular.ipynb", "repo_name": "McMahonCosmologyGroup/holosim-ml", "repo_path": "holosim-ml_extracted/holosim-ml-main/ML model construction/Far-Field Simulation_binocular.ipynb", "type": "Jupyter Notebook" }
# Far-field Beam Simulation: ML Training Sets ## Simons Observatory Large Aperture Telescope ### Grace E. Chesmore and Jeff McMahon - McMahonCosmologyGroup We will simulate the far-field beam of the SO LAT using ray-tracing technique. We will simulate the SO LAT geometry in five scenarios, with a range of surface pane...
McMahonCosmologyGroupREPO_NAMEholosim-mlPATH_START.@holosim-ml_extracted@holosim-ml-main@ML model construction@Far-Field Simulation_binocular.ipynb@.PATH_END.py
{ "filename": "multi_fit_example.py", "repo_name": "rzellem/EXOTIC", "repo_path": "EXOTIC_extracted/EXOTIC-main/examples/multiple_transit/multi_fit_example.py", "type": "Python" }
import numpy as np import matplotlib.pyplot as plt from exotic.api.elca import transit, glc_fitter if __name__ == "__main__": # simulate input data epochs = np.random.choice(np.arange(100), 8, replace=False) input_data = [] local_bounds = [] for i, epoch in enumerate(epochs): nobs = np....
rzellemREPO_NAMEEXOTICPATH_START.@EXOTIC_extracted@EXOTIC-main@examples@multiple_transit@multi_fit_example.py@.PATH_END.py
{ "filename": "localtime.py", "repo_name": "sczesla/PyAstronomy", "repo_path": "PyAstronomy_extracted/PyAstronomy-master/src/pyasl/asl/localtime.py", "type": "Python" }
# -*- coding: utf-8 -*- import numpy as np from PyAstronomy.pyaC import pyaErrors as PE def localTime(utc, lon, diff=True): """ Computes the Local Time for a given UTC at a given geographic longitude. The local time is computed as UTC + LONGITUDE/15. Parameters ---------- utc : float o...
sczeslaREPO_NAMEPyAstronomyPATH_START.@PyAstronomy_extracted@PyAstronomy-master@src@pyasl@asl@localtime.py@.PATH_END.py
{ "filename": "SolidNodeList.py", "repo_name": "LLNL/spheral", "repo_path": "spheral_extracted/spheral-main/src/PYB11/NodeList/SolidNodeList.py", "type": "Python" }
from PYB11Generator import * from FluidNodeList import FluidNodeList from RestartMethods import * #------------------------------------------------------------------------------- # SolidNodeList template #------------------------------------------------------------------------------- @PYB11template("Dimension") @PYB11...
LLNLREPO_NAMEspheralPATH_START.@spheral_extracted@spheral-main@src@PYB11@NodeList@SolidNodeList.py@.PATH_END.py
{ "filename": "pareto.py", "repo_name": "google/jax", "repo_path": "jax_extracted/jax-main/jax/_src/scipy/stats/pareto.py", "type": "Python" }
# Copyright 2018 The JAX Authors. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
googleREPO_NAMEjaxPATH_START.@jax_extracted@jax-main@jax@_src@scipy@stats@pareto.py@.PATH_END.py
{ "filename": "HeFESTo_2024_to_burnman.py", "repo_name": "geodynamics/burnman", "repo_path": "burnman_extracted/burnman-main/burnman/data/input_raw_endmember_datasets/HeFESTo_2024_to_burnman.py", "type": "Python" }
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for # the Earth and Planetary Sciences # Copyright (C) 2012 - 2024 by the BurnMan team, released under the GNU # GPL v2 or later. # This is a script that converts a version of the # HeFESTo data format into the standard burnman # format (print...
geodynamicsREPO_NAMEburnmanPATH_START.@burnman_extracted@burnman-main@burnman@data@input_raw_endmember_datasets@HeFESTo_2024_to_burnman.py@.PATH_END.py
{ "filename": "utils.py", "repo_name": "LoganAMorrison/blackthorn", "repo_path": "blackthorn_extracted/blackthorn-master/blackthorn/models/utils.py", "type": "Python" }
from typing import List, Tuple from ..constants import Gen LEPTON_STR_GEN: List[Tuple[str, Gen]] = [ ("e", Gen.Fst), ("mu", Gen.Snd), ("tau", Gen.Trd), ] UP_QUARK_STR_GEN: List[Tuple[str, Gen]] = [ ("u", Gen.Fst), ("c", Gen.Snd), ("t", Gen.Trd), ] DOWN_QUARK_STR_GEN: List[Tuple[str, Gen]] = [...
LoganAMorrisonREPO_NAMEblackthornPATH_START.@blackthorn_extracted@blackthorn-master@blackthorn@models@utils.py@.PATH_END.py
{ "filename": "CreateMesh_Circle_in_Vacuum.py", "repo_name": "C-Briddon/SELCIE", "repo_path": "SELCIE_extracted/SELCIE-main/Examples/CreateMesh_Circle_in_Vacuum.py", "type": "Python" }
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 7 13:49:00 2021 @author: Chad Briddon Example of creating a mesh. In this example the mesh is a circular source inside an empty vacuum. """ from SELCIE import MeshingTools # Choose source and vacuum radial sizes. r_s = 0.005 r_v = 1.0 filename =...
C-BriddonREPO_NAMESELCIEPATH_START.@SELCIE_extracted@SELCIE-main@Examples@CreateMesh_Circle_in_Vacuum.py@.PATH_END.py
{ "filename": "test_internals.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/python-dateutil/py3/tests/test_internals.py", "type": "Python" }
# -*- coding: utf-8 -*- """ Tests for implementation details, not necessarily part of the user-facing API. The motivating case for these tests is #483, where we want to smoke-test code that may be difficult to reach through the standard API calls. """ import sys import pytest import warnings from dateutil.parser._pa...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@python-dateutil@py3@tests@test_internals.py@.PATH_END.py
{ "filename": "density_grid_sampling.ipynb", "repo_name": "CRPropa/CRPropa3", "repo_path": "CRPropa3_extracted/CRPropa3-master/doc/pages/example_notebooks/density/density_grid_sampling.ipynb", "type": "Jupyter Notebook" }
# Example of grid based densities of the Milky Way and sampling source position ```python from crpropa import * import numpy as np import matplotlib.pyplot as plt # optional for plotting import matplotlib as mpl from tqdm import trange # progressbar # alternative trange = range ``` In this example a mass distribut...
CRPropaREPO_NAMECRPropa3PATH_START.@CRPropa3_extracted@CRPropa3-master@doc@pages@example_notebooks@density@density_grid_sampling.ipynb@.PATH_END.py
{ "filename": "main.py", "repo_name": "ML4GW/aframe", "repo_path": "aframe_extracted/aframe-main/projects/data/data/segments/main.py", "type": "Python" }
import logging from jsonargparse import ArgumentParser from data.segments.segments import DataQualityDict parser = ArgumentParser() parser.add_method_arguments(DataQualityDict, "query_segments") parser.add_argument("--output_file", "-o", type=str) def main(args=None): args = args.query.as_dict() output_fil...
ML4GWREPO_NAMEaframePATH_START.@aframe_extracted@aframe-main@projects@data@data@segments@main.py@.PATH_END.py
{ "filename": "run_2d.py", "repo_name": "jdhenshaw/acorns", "repo_path": "acorns_extracted/acorns-master/examples/run_2d.py", "type": "Python" }
import numpy as np from acorns import Acorns import sys import os from astropy.io import fits """ Example of how to generate the input to acorns, run the code, and save the output. If method = "PPV" acorns requires an array in the following format: x, y, I, sigI, vel, + any other variables req'd for the linking. """...
jdhenshawREPO_NAMEacornsPATH_START.@acorns_extracted@acorns-master@examples@run_2d.py@.PATH_END.py
{ "filename": "test_step_function.py", "repo_name": "lucabaldini/ixpeobssim", "repo_path": "ixpeobssim_extracted/ixpeobssim-main/tests/test_step_function.py", "type": "Python" }
# Copyright (C) 2022, the ixpeobssim team. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distrib...
lucabaldiniREPO_NAMEixpeobssimPATH_START.@ixpeobssim_extracted@ixpeobssim-main@tests@test_step_function.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "pyro-ppl/numpyro", "repo_path": "numpyro_extracted/numpyro-master/numpyro/examples/__init__.py", "type": "Python" }
pyro-pplREPO_NAMEnumpyroPATH_START.@numpyro_extracted@numpyro-master@numpyro@examples@__init__.py@.PATH_END.py
{ "filename": "photometry.py", "repo_name": "abs2k12/COCOA", "repo_path": "COCOA_extracted/COCOA-master/photometry.py", "type": "Python" }
import itertools import functools import inspect import logging import random import math import numpy as np import os import subprocess from input_observation import seei from subprocess import* from param_rtt import * from sim2obs_param import * from read_off import read_lines from photo_functions import * #from fiel...
abs2k12REPO_NAMECOCOAPATH_START.@COCOA_extracted@COCOA-master@photometry.py@.PATH_END.py
{ "filename": "igimf_epoch_95.py", "repo_name": "juzikong/photGalIMF", "repo_path": "photGalIMF_extracted/photGalIMF-main/simulation_results_from_galaxy_evol/example/igimf_epoch_95.py", "type": "Python" }
# File to define a custom IMF # The return value represents the chosen IMF value for the input mass def custom_imf(mass, time): # there is no time dependence for IGIMF if mass < 0.08: return 0 elif mass < 0.101: return -881912095498.0004 * mass + 126349388048.4443 elif mass < 0.10201: ...
juzikongREPO_NAMEphotGalIMFPATH_START.@photGalIMF_extracted@photGalIMF-main@simulation_results_from_galaxy_evol@example@igimf_epoch_95.py@.PATH_END.py
{ "filename": "sn_snr_metric.py", "repo_name": "lsst/rubin_sim", "repo_path": "rubin_sim_extracted/rubin_sim-main/rubin_sim/maf/metrics/sn_snr_metric.py", "type": "Python" }
__all__ = ("SNSNRMetric",) from collections.abc import Iterable import matplotlib.pylab as plt import numpy as np import numpy.lib.recfunctions as rf from scipy import interpolate import rubin_sim.maf.metrics as metrics from rubin_sim.maf.utils.sn_utils import GenerateFakeObservations class SNSNRMetric(metrics.Bas...
lsstREPO_NAMErubin_simPATH_START.@rubin_sim_extracted@rubin_sim-main@rubin_sim@maf@metrics@sn_snr_metric.py@.PATH_END.py
{ "filename": "data_structures.py", "repo_name": "rennehan/yt-swift", "repo_path": "yt-swift_extracted/yt-swift-main/yt/frontends/owls_subfind/data_structures.py", "type": "Python" }
import glob import os from collections import defaultdict import numpy as np from yt.data_objects.static_output import ParticleDataset, ParticleFile from yt.frontends.gadget.data_structures import _fix_unit_ordering from yt.funcs import only_on_root, setdefaultattr from yt.geometry.particle_geometry_handler import Pa...
rennehanREPO_NAMEyt-swiftPATH_START.@yt-swift_extracted@yt-swift-main@yt@frontends@owls_subfind@data_structures.py@.PATH_END.py
{ "filename": "post_training_integer_quant.ipynb", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/g3doc/performance/post_training_integer_quant.ipynb", "type": "Jupyter Notebook" }
##### Copyright 2024 The AI Edge Authors. ``` #@title 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@g3doc@performance@post_training_integer_quant.ipynb@.PATH_END.py
{ "filename": "example_fit.py", "repo_name": "NumCosmo/NumCosmo", "repo_path": "NumCosmo_extracted/NumCosmo-master/examples/pydata_simple/example_fit.py", "type": "Python" }
#!/usr/bin/env python # # example_fit.py # # Mon May 22 16:00:00 2023 # Copyright 2023 Sandro Dias Pinto Vitenti # <vitenti@uel.br> # # example_fit.py # Copyright (C) 2023 Sandro Dias Pinto Vitenti <vitenti@uel.br> # # numcosmo is free software: you can redistribute it and/or modify it # under the terms of the GNU Ge...
NumCosmoREPO_NAMENumCosmoPATH_START.@NumCosmo_extracted@NumCosmo-master@examples@pydata_simple@example_fit.py@.PATH_END.py
{ "filename": "_range.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/carpet/aaxis/_range.py", "type": "Python" }
import _plotly_utils.basevalidators class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__(self, plotly_name="range", parent_name="carpet.aaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@carpet@aaxis@_range.py@.PATH_END.py
{ "filename": "chandra_global.py", "repo_name": "chandra-marx/marxs", "repo_path": "marxs_extracted/marxs-main/marxs/missions/chandra/chandra_global.py", "type": "Python" }
# Licensed under GPL version 3 - see LICENSE.rst import numpy as np from .fitsheaders import complete_header from ...simulator import Sequence class Chandra(Sequence): '''Main class representing the Chandra X-ray observatory ''' def process_photons(self, photons): photons.meta['MISSION'] = ('A...
chandra-marxREPO_NAMEmarxsPATH_START.@marxs_extracted@marxs-main@marxs@missions@chandra@chandra_global.py@.PATH_END.py
{ "filename": "kernel.py", "repo_name": "AstroVPK/kali", "repo_path": "kali_extracted/kali-master/python/kali/kernel.py", "type": "Python" }
import math import cmath import numpy as np import pdb class Kernel(object): def __init__(self): pass def __call__(): pass class Lanczos(Kernel): def __init__(self, a=3): self.a = a def _lanczos(self, z): if z == 0.0: return 1.0 elif math.fabs(...
AstroVPKREPO_NAMEkaliPATH_START.@kali_extracted@kali-master@python@kali@kernel.py@.PATH_END.py
{ "filename": "data_structures.py", "repo_name": "rennehan/yt-swift", "repo_path": "yt-swift_extracted/yt-swift-main/yt/frontends/enzo_e/data_structures.py", "type": "Python" }
import os from functools import cached_property import numpy as np from yt.data_objects.index_subobjects.grid_patch import AMRGridPatch from yt.data_objects.static_output import Dataset from yt.fields.field_info_container import NullFunc from yt.frontends.enzo.misc import cosmology_get_units from yt.frontends.enzo_e....
rennehanREPO_NAMEyt-swiftPATH_START.@yt-swift_extracted@yt-swift-main@yt@frontends@enzo_e@data_structures.py@.PATH_END.py
{ "filename": "_separatethousands.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/ternary/aaxis/_separatethousands.py", "type": "Python" }
import _plotly_utils.basevalidators class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="separatethousands", parent_name="layout.ternary.aaxis", **kwargs, ): super(SeparatethousandsValidator, self).__init__( ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@ternary@aaxis@_separatethousands.py@.PATH_END.py
{ "filename": "test_addtask.py", "repo_name": "mhammond/pywin32", "repo_path": "pywin32_extracted/pywin32-main/com/win32comext/taskscheduler/test/test_addtask.py", "type": "Python" }
import os import sys import time import pythoncom import win32api from win32com.taskscheduler import taskscheduler task_name = "test_addtask.job" ts = pythoncom.CoCreateInstance( taskscheduler.CLSID_CTaskScheduler, None, pythoncom.CLSCTX_INPROC_SERVER, taskscheduler.IID_ITaskScheduler, ) tasks = ts.En...
mhammondREPO_NAMEpywin32PATH_START.@pywin32_extracted@pywin32-main@com@win32comext@taskscheduler@test@test_addtask.py@.PATH_END.py
{ "filename": "test_baccoemu.py", "repo_name": "LSSTDESC/CCL", "repo_path": "CCL_extracted/CCL-master/pyccl/tests/test_baccoemu.py", "type": "Python" }
import numpy as np import pyccl as ccl import pytest BEMULIN_TOLERANCE = 1e-3 BEMUNL_TOLERANCE = 5e-3 BEMBAR_TOLERANCE = 1e-3 def test_baccoemu_linear_As_sigma8(): bemu = ccl.BaccoemuLinear() cosmo1 = ccl.Cosmology( Omega_c=0.27, Omega_b=0.05, h=0.67, sigma8=0.83, n_s...
LSSTDESCREPO_NAMECCLPATH_START.@CCL_extracted@CCL-master@pyccl@tests@test_baccoemu.py@.PATH_END.py
{ "filename": "calib_params.py", "repo_name": "RTIP/artip", "repo_path": "artip_extracted/artip-master/src/main/python/models/calib_params.py", "type": "Python" }
from collections import namedtuple CalibParams = namedtuple('CalibParams', 'channel, width, minsnr, solint')
RTIPREPO_NAMEartipPATH_START.@artip_extracted@artip-master@src@main@python@models@calib_params.py@.PATH_END.py
{ "filename": "utils.py", "repo_name": "BradGreig/21CMMC", "repo_path": "21CMMC_extracted/21CMMC-master/21CMMC_SourceCode/Programs/CosmoHammer_21CMMC/emcee/utils.py", "type": "Python" }
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, print_function, absolute_import, unicode_literals) __all__ = ["sample_ball", "MH_proposal_axisaligned"] import numpy as np # If mpi4py is installed, import it. try: from mpi4py import MPI MPI = MPI excep...
BradGreigREPO_NAME21CMMCPATH_START.@21CMMC_extracted@21CMMC-master@21CMMC_SourceCode@Programs@CosmoHammer_21CMMC@emcee@utils.py@.PATH_END.py
{ "filename": "_templateitemname.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py", "type": "Python" }
import _plotly_utils.basevalidators class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="templateitemname", parent_name="parcats.line.colorbar.tickformatstop", **kwargs, ): super(TemplateitemnameValidator, self)...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@parcats@line@colorbar@tickformatstop@_templateitemname.py@.PATH_END.py
{ "filename": "plot.ipynb", "repo_name": "zenitani/OpenMHD", "repo_path": "OpenMHD_extracted/OpenMHD-master/2D_basic_gpu/plot.ipynb", "type": "Jupyter Notebook" }
```python %matplotlib inline import matplotlib.pyplot as plt import numpy as np import openmhd # dummy index vx=0;vy=1;vz=2;pr=3;ro=4;bx=5;by=6;bz=7;ps=8 # reading the data ... x,y,t,data = openmhd.data_read("data/field-00020.dat") # reading the data (partial domain: [ix1,ix2] x [jx1,jx2]) # x,y,t,data = openmhd.data_...
zenitaniREPO_NAMEOpenMHDPATH_START.@OpenMHD_extracted@OpenMHD-master@2D_basic_gpu@plot.ipynb@.PATH_END.py
{ "filename": "_textcase.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/histogram/legendgrouptitle/font/_textcase.py", "type": "Python" }
import _plotly_utils.basevalidators class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="textcase", parent_name="histogram.legendgrouptitle.font", **kwargs, ): super(TextcaseValidator, self).__init__( pl...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@histogram@legendgrouptitle@font@_textcase.py@.PATH_END.py
{ "filename": "node.py", "repo_name": "crossbario/crossbar", "repo_path": "crossbar_extracted/crossbar-master/crossbar/master/api/node.py", "type": "Python" }
############################################################################### # # Crossbar.io Master # Copyright (c) typedef int GmbH. Licensed under EUPLv1.2. # ############################################################################### from crossbar.master.api.remote import RemoteApi __all__ = ('RemoteNodeApi...
crossbarioREPO_NAMEcrossbarPATH_START.@crossbar_extracted@crossbar-master@crossbar@master@api@node.py@.PATH_END.py
{ "filename": "test_classifier.py", "repo_name": "dtamayo/spock", "repo_path": "spock_extracted/spock-master/spock/test/test_classifier.py", "type": "Python" }
import unittest import os import rebound import pandas as pd import numpy as np from sklearn import metrics from sklearn.metrics import roc_curve, confusion_matrix, auc from spock import FeatureClassifier, NbodyRegressor from spock.feature_functions import get_tseries from spock.simsetup import init_sim_parameters de...
dtamayoREPO_NAMEspockPATH_START.@spock_extracted@spock-master@spock@test@test_classifier.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/library/cpp/testing/hook/README.md", "type": "Markdown" }
# Hook for google benchmark and gtest Y_TEST_HOOK_BEFORE_INIT - вызываСтся ΠΏΠ΅Ρ€Π΅Π΄ ΠΈΠ½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠ΅ΠΉ ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰Π΅Π³ΠΎ Ρ„Ρ€Π΅ΠΉΠΌΠ²ΠΎΡ€ΠΊΠ° Y_TEST_HOOK_BEFORE_RUN - вызываСтся ΠΏΠ΅Ρ€Π΅Π΄ запуском тСстов Y_TEST_HOOK_AFTER_RUN - вызываСтся всСгда послС Π·Π°Π²Π΅Ρ€ΡˆΠ΅Π½ΠΈΡ выполнСния тСстов, Ссли этап ΠΈΠ½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ Π±Ρ‹Π» ΡƒΡΠΏΠ΅ΡˆΠ½...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@library@cpp@testing@hook@README.md@.PATH_END.py
{ "filename": "test_rp_pi_tpcf.py", "repo_name": "astropy/halotools", "repo_path": "halotools_extracted/halotools-master/halotools/mock_observables/two_point_clustering/tests/test_rp_pi_tpcf.py", "type": "Python" }
""" Module provides unit-testing for the `~halotools.mock_observables.rp_pi_tpcf` function. """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from astropy.utils.misc import NumpyRNGContext from ..rp_pi_tpcf import rp_pi_tpcf __all__ = ('test_rp_pi_tpcf_auto_non...
astropyREPO_NAMEhalotoolsPATH_START.@halotools_extracted@halotools-master@halotools@mock_observables@two_point_clustering@tests@test_rp_pi_tpcf.py@.PATH_END.py
{ "filename": "pdf.py", "repo_name": "duvall3/rat-pac", "repo_path": "rat-pac_extracted/rat-pac-master/python/SCons/Tool/pdf.py", "type": "Python" }
"""SCons.Tool.pdf Common PDF Builder definition for various other Tool modules that use it. Add an explicit action to run epstopdf to convert .eps files to .pdf """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation # # Permission is hereby granted, free of charge, to any per...
duvall3REPO_NAMErat-pacPATH_START.@rat-pac_extracted@rat-pac-master@python@SCons@Tool@pdf.py@.PATH_END.py
{ "filename": "0007_auto_20160322_1545.py", "repo_name": "ratt-ru/rodrigues", "repo_path": "rodrigues_extracted/rodrigues-master/scheduler/migrations/0007_auto_20160322_1545.py", "type": "Python" }
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-22 13:45 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('scheduler', '0006_auto_20160322_1441'),...
ratt-ruREPO_NAMErodriguesPATH_START.@rodrigues_extracted@rodrigues-master@scheduler@migrations@0007_auto_20160322_1545.py@.PATH_END.py
{ "filename": "_uid.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/contourcarpet/_uid.py", "type": "Python" }
import _plotly_utils.basevalidators class UidValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="uid", parent_name="contourcarpet", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@contourcarpet@_uid.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "jbjolly/LineStacker", "repo_path": "LineStacker_extracted/LineStacker-master/LineStacker/analysisTools/__init__.py", "type": "Python" }
''' **LineStacker.analysisTools Module:**\n Module containing statistical/analysis tools for stacking. ''' import sys import numpy as np def bootstraping_OneD( Images, nRandom=1000, chansStack='full', method='mean', cen...
jbjollyREPO_NAMELineStackerPATH_START.@LineStacker_extracted@LineStacker-master@LineStacker@analysisTools@__init__.py@.PATH_END.py
{ "filename": "test_targetids.py", "repo_name": "desihub/desitarget", "repo_path": "desitarget_extracted/desitarget-main/py/desitarget/test/test_targetids.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """Test desitarget.targets targetid encode/decode """ import unittest import numpy as np from desitarget.targets import (encode_negative_targetid, decode_negative_targetid) class TestTargetID(unitt...
desihubREPO_NAMEdesitargetPATH_START.@desitarget_extracted@desitarget-main@py@desitarget@test@test_targetids.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "rhayes777/PyAutoFit", "repo_path": "PyAutoFit_extracted/PyAutoFit-main/test_autofit/non_linear/paths/__init__.py", "type": "Python" }
rhayes777REPO_NAMEPyAutoFitPATH_START.@PyAutoFit_extracted@PyAutoFit-main@test_autofit@non_linear@paths@__init__.py@.PATH_END.py
{ "filename": "fixtures.py", "repo_name": "gwpy/gwpy", "repo_path": "gwpy_extracted/gwpy-main/gwpy/testing/fixtures.py", "type": "Python" }
# -*- coding: utf-8 -*- # Copyright (C) Duncan Macleod (2018-2020) # # This file is part of GWpy. # # GWpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option)...
gwpyREPO_NAMEgwpyPATH_START.@gwpy_extracted@gwpy-main@gwpy@testing@fixtures.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "QEF/q-e", "repo_path": "q-e_extracted/q-e-master/QEHeat/examples/README.md", "type": "Markdown" }
# INSTALLATION OVERVIEW Before running the examples, you need to be sure that QEHeat is installed. To compile, we suggest the following procedure. As usual in a QuantumEspresso installation, enter the distribution folder and run autoconf : ``` > ./configure ``` Than from the distribution folder: ``` > make al...
QEFREPO_NAMEq-ePATH_START.@q-e_extracted@q-e-master@QEHeat@examples@README.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "astropy/pyvo", "repo_path": "pyvo_extracted/pyvo-main/pyvo/registry/tests/__init__.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst
astropyREPO_NAMEpyvoPATH_START.@pyvo_extracted@pyvo-main@pyvo@registry@tests@__init__.py@.PATH_END.py
{ "filename": "test_logging.py", "repo_name": "macrocosme/shwirl", "repo_path": "shwirl_extracted/shwirl-master/shwirl/extern/vispy/util/tests/test_logging.py", "type": "Python" }
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import logging from vispy.util import logger, use_log_level from vispy.testing import (assert_in, assert_not_in, run_tests_if_main, assert_equal) ...
macrocosmeREPO_NAMEshwirlPATH_START.@shwirl_extracted@shwirl-master@shwirl@extern@vispy@util@tests@test_logging.py@.PATH_END.py
{ "filename": "_valueminus.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scatter/error_y/_valueminus.py", "type": "Python" }
import _plotly_utils.basevalidators class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="valueminus", parent_name="scatter.error_y", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, pare...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scatter@error_y@_valueminus.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "smsharma/fermi-gce-flows", "repo_path": "fermi-gce-flows_extracted/fermi-gce-flows-main/sbi/neural_nets/__init__.py", "type": "Python" }
smsharmaREPO_NAMEfermi-gce-flowsPATH_START.@fermi-gce-flows_extracted@fermi-gce-flows-main@sbi@neural_nets@__init__.py@.PATH_END.py
{ "filename": "_color.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/legend/title/font/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="layout.legend.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@legend@title@font@_color.py@.PATH_END.py
{ "filename": "demo_spherical_convolution.ipynb", "repo_name": "deepsphere/deepsphere-cosmo-tf1", "repo_path": "deepsphere-cosmo-tf1_extracted/deepsphere-cosmo-tf1-master/demo_spherical_convolution.ipynb", "type": "Jupyter Notebook" }
# [DeepSphere]: a spherical convolutional neural network [DeepSphere]: https://github.com/SwissDataScienceCenter/DeepSphere [NathanaΓ«l Perraudin](https://perraudin.info), [MichaΓ«l Defferrard](http://deff.ch), Tomasz Kacprzak, Raphael Sgier # Demo: spherical convolution In this small notebook, we test an implementati...
deepsphereREPO_NAMEdeepsphere-cosmo-tf1PATH_START.@deepsphere-cosmo-tf1_extracted@deepsphere-cosmo-tf1-master@demo_spherical_convolution.ipynb@.PATH_END.py
{ "filename": "test_superrest_frame.py", "repo_name": "moble/scri", "repo_path": "scri_extracted/scri-main/tests/test_superrest_frame.py", "type": "Python" }
import scri import pytest import numpy as np import spinsfast import spherical_functions as sf import quaternion from quaternion.calculus import derivative ABD = scri.AsymptoticBondiData def kerr_schild(mass, spin, ell_max=8): psi2 = np.zeros(sf.LM_total_size(0, ell_max), dtype=complex) psi1 = np.zeros(sf.LM...
mobleREPO_NAMEscriPATH_START.@scri_extracted@scri-main@tests@test_superrest_frame.py@.PATH_END.py
{ "filename": "fitter_chi_squared.py", "repo_name": "CU-NESS/pylinex", "repo_path": "pylinex_extracted/pylinex-master/examples/fitter/fitter_chi_squared.py", "type": "Python" }
""" File: examples/fitter/fitter_chi_squared.py Author: Keith Tauscher Date: 10 Apr 2021 Description: Example showing how the reduced_chi_squared and reduced_chi_squared_expected_distribution properties of the Fitter class behave. """ import numpy as np import matplotlib.pyplot as pl from dis...
CU-NESSREPO_NAMEpylinexPATH_START.@pylinex_extracted@pylinex-master@examples@fitter@fitter_chi_squared.py@.PATH_END.py
{ "filename": "npe.ipynb", "repo_name": "changhoonhahn/haloflow", "repo_path": "haloflow_extracted/haloflow-main/nb/npe.ipynb", "type": "Jupyter Notebook" }
# estimate $p(M_*, M_h | {\rm photometry})$ using NPE for central subhalos using forward modeled photometry constructed from TNG subhalos ```python import os, h5py import numpy as np from astropy import table as aTable from tqdm.notebook import tqdm, trange ``` ```python import torch from sbi import utils as Ut fr...
changhoonhahnREPO_NAMEhaloflowPATH_START.@haloflow_extracted@haloflow-main@nb@npe.ipynb@.PATH_END.py
{ "filename": "simuWrapper.py", "repo_name": "lsstdesc/sn_pipe", "repo_path": "sn_pipe_extracted/sn_pipe-master/run_scripts/simulation/simuWrapper.py", "type": "Python" }
from sn_simu_wrapper.sn_simu import SNSimulation import numpy as np import yaml import os from sn_tools.sn_io import check_get_file class MakeYaml: """ class to generate a yaml file from a generic one Parameters --------------- dbDir: str location dir of the database dbName: str O...
lsstdescREPO_NAMEsn_pipePATH_START.@sn_pipe_extracted@sn_pipe-master@run_scripts@simulation@simuWrapper.py@.PATH_END.py
{ "filename": "_text.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_text.py", "type": "Python" }
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="text", parent_name="icicle.legendgrouptitle", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=pa...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@icicle@legendgrouptitle@_text.py@.PATH_END.py
{ "filename": "cohere_rerank.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/langchain/langchain/retrievers/document_compressors/cohere_rerank.py", "type": "Python" }
from __future__ import annotations from copy import deepcopy from typing import Any, Dict, List, Optional, Sequence, Union from langchain_core._api.deprecation import deprecated from langchain_core.callbacks.manager import Callbacks from langchain_core.documents import Document from langchain_core.utils import get_fr...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@langchain@langchain@retrievers@document_compressors@cohere_rerank.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "franciscovillaescusa/Pylians3", "repo_path": "Pylians3_extracted/Pylians3-master/library/Pk_library/__init__.py", "type": "Python" }
__all__ = ['Pk_library','Pk_snapshot'] from .Pk_library import * from .Pk_snapshot import * from .bispectrum_library import *
franciscovillaescusaREPO_NAMEPylians3PATH_START.@Pylians3_extracted@Pylians3-master@library@Pk_library@__init__.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "exo-cesm/CESM2.1.3", "repo_path": "CESM2.1.3_extracted/CESM2.1.3-main/Tidally_locked_exoplanets/cases/TP_1_e_SSPO_P19_1pc/README.md", "type": "Markdown" }
# TRAPPIST-1 e (W21 spectrum, 1% PAL of oxygen, with the substellar point over ocean) case setup instructions ## If setting the case up on ARC4: run buildcase_TP_1_e_SSPO_W21_1pc. A case will be created with the name b.e21.BWma1850.f19_g17.TRAPPIST1_e.SSPO.W21.1pc_o2.my_case.001. Change the name in buildcase_TP_1_e_S...
exo-cesmREPO_NAMECESM2.1.3PATH_START.@CESM2.1.3_extracted@CESM2.1.3-main@Tidally_locked_exoplanets@cases@TP_1_e_SSPO_P19_1pc@README.md@.PATH_END.py
{ "filename": "model.py", "repo_name": "benrendle/AIMS", "repo_path": "AIMS_extracted/AIMS-master/AIMS_v1.2/model.py", "type": "Python" }
#!/usr/bin/env python # coding: utf-8 # $Id: model.py # Author: Daniel R. Reese <daniel.reese@obspm.fr> # Copyright (C) Daniel R. Reese and contributors # Copyright license: GNU GPL v3.0 # # AIMS is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
benrendleREPO_NAMEAIMSPATH_START.@AIMS_extracted@AIMS-master@AIMS_v1.2@model.py@.PATH_END.py
{ "filename": "egg_info.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/setuptools/py3/setuptools/command/egg_info.py", "type": "Python" }
"""setuptools.command.egg_info Create a distribution's .egg-info directory and contents""" from distutils.filelist import FileList as _FileList from distutils.errors import DistutilsInternalError from distutils.util import convert_path from distutils import log import distutils.errors import distutils.filelist import...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@setuptools@py3@setuptools@command@egg_info.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/surface/contours/x/__init__.py", "type": "Python" }
import sys if sys.version_info < (3, 7): from ._width import WidthValidator from ._usecolormap import UsecolormapValidator from ._start import StartValidator from ._size import SizeValidator from ._show import ShowValidator from ._project import ProjectValidator from ._highlightwidth import...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@surface@contours@x@__init__.py@.PATH_END.py
{ "filename": "test_series_apply_relabeling.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/apply/test_series_apply_relabeling.py", "type": "Python" }
import pandas as pd import pandas._testing as tm def test_relabel_no_duplicated_method(): # this is to test there is no duplicated method used in agg df = pd.DataFrame({"A": [1, 2, 1, 2], "B": [1, 2, 3, 4]}) result = df["A"].agg(foo="sum") expected = df["A"].agg({"foo": "sum"}) tm.assert_series_e...
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@apply@test_series_apply_relabeling.py@.PATH_END.py
{ "filename": "_dtick.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/densitymapbox/colorbar/_dtick.py", "type": "Python" }
import _plotly_utils.basevalidators class DtickValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name="dtick", parent_name="densitymapbox.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=par...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@densitymapbox@colorbar@_dtick.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "statsmodels/statsmodels", "repo_path": "statsmodels_extracted/statsmodels-main/statsmodels/datasets/elec_equip/__init__.py", "type": "Python" }
__all__ = ["load", "load_pandas", "COPYRIGHT", "TITLE", "SOURCE", "DESCRSHORT", "DESCRLONG", "NOTE"] from .data import ( load, load_pandas, COPYRIGHT, TITLE, SOURCE, DESCRSHORT, DESCRLONG, NOTE)
statsmodelsREPO_NAMEstatsmodelsPATH_START.@statsmodels_extracted@statsmodels-main@statsmodels@datasets@elec_equip@__init__.py@.PATH_END.py
{ "filename": "npyio.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/numpy/lib/npyio.py", "type": "Python" }
from __future__ import division, absolute_import, print_function import io import sys import os import re import itertools import warnings import weakref from operator import itemgetter, index as opindex import numpy as np from . import format from ._datasource import DataSource from numpy.core.multiarray import pack...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@numpy@lib@npyio.py@.PATH_END.py
{ "filename": "build.py", "repo_name": "AFD-Illinois/ebhlight", "repo_path": "ebhlight_extracted/ebhlight-master/prob/comptonization/build.py", "type": "Python" }
################################################################################ # # # OPTICALLY THIN BREMSSTRAHLUNG COOLING # # ...
AFD-IllinoisREPO_NAMEebhlightPATH_START.@ebhlight_extracted@ebhlight-master@prob@comptonization@build.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "LSSTDESC/gen3_workflow", "repo_path": "gen3_workflow_extracted/gen3_workflow-master/python/desc/__init__.py", "type": "Python" }
import pkgutil __path__ = pkgutil.extend_path(__path__, __name__)
LSSTDESCREPO_NAMEgen3_workflowPATH_START.@gen3_workflow_extracted@gen3_workflow-master@python@desc@__init__.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/io/sas/__init__.py", "type": "Python" }
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@io@sas@__init__.py@.PATH_END.py
{ "filename": "_lenmode.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/slider/_lenmode.py", "type": "Python" }
import _plotly_utils.basevalidators class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="lenmode", parent_name="layout.slider", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@slider@_lenmode.py@.PATH_END.py
{ "filename": "cvlimitedgravity.ipynb", "repo_name": "reggiebernardo/PTAfast", "repo_path": "PTAfast_extracted/PTAfast-main/app3_cvlimitedgravity/cvlimitedgravity.ipynb", "type": "Jupyter Notebook" }
```python !pip install PTAfast ``` ## Testing gravity with cosmic variance-limited PTA measurements ```python import os # requires *full path* %matplotlib inline from matplotlib import pyplot as plt from mpl_toolkits.axes_grid1.inset_locator import inset_axes # for insets, if needed import numpy as np from PTAfast...
reggiebernardoREPO_NAMEPTAfastPATH_START.@PTAfast_extracted@PTAfast-main@app3_cvlimitedgravity@cvlimitedgravity.ipynb@.PATH_END.py
{ "filename": "test_testing.py", "repo_name": "scikit-learn/scikit-learn", "repo_path": "scikit-learn_extracted/scikit-learn-main/sklearn/utils/tests/test_testing.py", "type": "Python" }
import atexit import os import warnings import numpy as np import pytest from scipy import sparse from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.tree import DecisionTreeClassifier from sklearn.utils._testing import ( TempMemmap, _convert_container, _delete_folder, _g...
scikit-learnREPO_NAMEscikit-learnPATH_START.@scikit-learn_extracted@scikit-learn-main@sklearn@utils@tests@test_testing.py@.PATH_END.py
{ "filename": "apps.py", "repo_name": "lsst-uk/lasair-lsst", "repo_path": "lasair-lsst_extracted/lasair-lsst-main/webserver/lasair/apps/filter_query/apps.py", "type": "Python" }
from django.apps import AppConfig class FilterConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'lasair.apps.filter_query'
lsst-ukREPO_NAMElasair-lsstPATH_START.@lasair-lsst_extracted@lasair-lsst-main@webserver@lasair@apps@filter_query@apps.py@.PATH_END.py
{ "filename": "plot_haar.py", "repo_name": "scikit-image/scikit-image", "repo_path": "scikit-image_extracted/scikit-image-main/doc/examples/features_detection/plot_haar.py", "type": "Python" }
""" ============================ Haar-like feature descriptor ============================ Haar-like features are simple digital image features that were introduced in a real-time face detector [1]_. These features can be efficiently computed on any scale in constant time, using an integral image [1]_. After that, a s...
scikit-imageREPO_NAMEscikit-imagePATH_START.@scikit-image_extracted@scikit-image-main@doc@examples@features_detection@plot_haar.py@.PATH_END.py
{ "filename": "_tickfont.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "funnel.marker.colorbar" _path_str = "funnel.marker.colorbar.tickfont" _valid_props = {"col...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@graph_objs@funnel@marker@colorbar@_tickfont.py@.PATH_END.py
{ "filename": "ddfixfreq.py", "repo_name": "plazar/TOASTER", "repo_path": "TOASTER_extracted/TOASTER-master/manipulators/ddfixfreq.py", "type": "Python" }
"""Set the centre frequency of an archive, dedisperse and fully scrunch. """ import manipulators plugin_name = 'ddfixfreq' def manipulate(infns, outname, ctrfreq, dm=None): """Set centre frequency of the archive and dedisperse and scrunch fully. Input: infns: A list of file names...
plazarREPO_NAMETOASTERPATH_START.@TOASTER_extracted@TOASTER-master@manipulators@ddfixfreq.py@.PATH_END.py
{ "filename": "_line.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/indicator/gauge/bar/_line.py", "type": "Python" }
import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="line", parent_name="indicator.gauge.bar", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@indicator@gauge@bar@_line.py@.PATH_END.py
{ "filename": "_colorbar.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/contour/_colorbar.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "contour" _path_str = "contour.colorbar" _valid_props = { "bgcolor", "borde...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@contour@_colorbar.py@.PATH_END.py
{ "filename": "_font.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/choropleth/legendgrouptitle/_font.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "choropleth.legendgrouptitle" _path_str = "choropleth.legendgrouptitle.font" _valid_props = { ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@choropleth@legendgrouptitle@_font.py@.PATH_END.py
{ "filename": "recipe_summary.py", "repo_name": "igrins/plp", "repo_path": "plp_extracted/plp-master/igrins/igrins_recipes/recipe_summary.py", "type": "Python" }
import numpy as np from itertools import cycle def make_tuple(row): return [(row["GROUP1"], row["EXPTIME"], row["FRAMETYPES"].count("OFF"), row["FRAMETYPES"].count("ON"), len(row["OBSIDS"]))] def in_between(v, vmin, vmax): return vmin <= v <= vmax def g...
igrinsREPO_NAMEplpPATH_START.@plp_extracted@plp-master@igrins@igrins_recipes@recipe_summary.py@.PATH_END.py
{ "filename": "elixir.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/document_loaders/parsers/language/elixir.py", "type": "Python" }
from typing import TYPE_CHECKING from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 TreeSitterSegmenter, ) if TYPE_CHECKING: from tree_sitter import Language CHUNK_QUERY = """ [ (call target: ((identifier) @_identifier (#any-of? @_...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@document_loaders@parsers@language@elixir.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "fkeruzore/picasso", "repo_path": "picasso_extracted/picasso-main/picasso/utils/__init__.py", "type": "Python" }
__author__ = "Florian KΓ©ruzorΓ©" __email__ = "florian.keruzore@gmail.com" __all__ = [ "sph", "transform_minmax", "inv_transform_minmax", "quantile_normalization", ] from . import sph from .data_preparation import ( transform_minmax, inv_transform_minmax, quantile_normalization, )
fkeruzoreREPO_NAMEpicassoPATH_START.@picasso_extracted@picasso-main@picasso@utils@__init__.py@.PATH_END.py
{ "filename": "tr_interior_point.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/scipy/py2/scipy/optimize/_trustregion_constr/tr_interior_point.py", "type": "Python" }
"""Trust-region interior point method. References ---------- .. [1] Byrd, Richard H., Mary E. Hribar, and Jorge Nocedal. "An interior point algorithm for large-scale nonlinear programming." SIAM Journal on Optimization 9.4 (1999): 877-900. .. [2] Byrd, Richard H., Guanghui Liu, and Jorge Nocedal. ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@scipy@py2@scipy@optimize@_trustregion_constr@tr_interior_point.py@.PATH_END.py
{ "filename": "test_base.py", "repo_name": "cosmodesi/cosmoprimo", "repo_path": "cosmoprimo_extracted/cosmoprimo-main/cosmoprimo/emulators/tests/test_base.py", "type": "Python" }
import os import numpy as np import jax from jax import numpy as jnp from cosmoprimo.fiducial import DESI from cosmoprimo.emulators import Emulator, EmulatedEngine, setup_logging emulator_dir = '_tests' emulator_fn = os.path.join(emulator_dir, 'emu.npy') def test_base(): cosmo = DESI() params = {'Omega_cd...
cosmodesiREPO_NAMEcosmoprimoPATH_START.@cosmoprimo_extracted@cosmoprimo-main@cosmoprimo@emulators@tests@test_base.py@.PATH_END.py
{ "filename": "_source.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/image/_source.py", "type": "Python" }
import _plotly_utils.basevalidators class SourceValidator(_plotly_utils.basevalidators.ImageUriValidator): def __init__(self, plotly_name="source", parent_name="layout.image", **kwargs): super(SourceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@image@_source.py@.PATH_END.py
{ "filename": "additional-parameters__pmml__possible-values__list-only.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/docs/en/_includes/work_src/reusage-export-formats/additional-parameters__pmml__possible-values__list-only.md", "type": "Markdown" }
- `pmml_copyright` - `pmml_description` - `pmml_model_version`
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@docs@en@_includes@work_src@reusage-export-formats@additional-parameters__pmml__possible-values__list-only.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "mhammond/pywin32", "repo_path": "pywin32_extracted/pywin32-main/com/win32comext/shell/__init__.py", "type": "Python" }
# See if we have a special directory for the binaries (for developers) import win32com win32com.__PackageSupportBuildPath__(__path__)
mhammondREPO_NAMEpywin32PATH_START.@pywin32_extracted@pywin32-main@com@win32comext@shell@__init__.py@.PATH_END.py
{ "filename": "_lineposition.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/funnelarea/title/font/_lineposition.py", "type": "Python" }
import _plotly_utils.basevalidators class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__( self, plotly_name="lineposition", parent_name="funnelarea.title.font", **kwargs ): super(LinepositionValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@funnelarea@title@font@_lineposition.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "spacetelescope/jdaviz", "repo_path": "jdaviz_extracted/jdaviz-main/jdaviz/configs/default/plugins/metadata_viewer/__init__.py", "type": "Python" }
from .metadata_viewer import * # noqa
spacetelescopeREPO_NAMEjdavizPATH_START.@jdaviz_extracted@jdaviz-main@jdaviz@configs@default@plugins@metadata_viewer@__init__.py@.PATH_END.py
{ "filename": "lcdcpicker_dialog.py", "repo_name": "Varnani/pywd2015-qt5", "repo_path": "pywd2015-qt5_extracted/pywd2015-qt5-master/gui/lcdcpicker_dialog.py", "type": "Python" }
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'lcdcpicker_dialog.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_LCDCPickerDialog(object): def setupUi(self, LCDCPickerDia...
VarnaniREPO_NAMEpywd2015-qt5PATH_START.@pywd2015-qt5_extracted@pywd2015-qt5-master@gui@lcdcpicker_dialog.py@.PATH_END.py
{ "filename": "feature_request.md", "repo_name": "ratt-ru/QuartiCal", "repo_path": "QuartiCal_extracted/QuartiCal-main/.github/ISSUE_TEMPLATE/feature_request.md", "type": "Markdown" }
--- name: Feature Request about: Help us improve by telling us what you need. title: '' labels: '' assignees: '' --- **Describe the problem that the feature should address** A clear and concise description of what the problem/missing functionality is. **Describe the solution you'd like** A clear and concise descript...
ratt-ruREPO_NAMEQuartiCalPATH_START.@QuartiCal_extracted@QuartiCal-main@.github@ISSUE_TEMPLATE@feature_request.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "arviz-devs/arviz", "repo_path": "arviz_extracted/arviz-main/arviz/tests/base_tests/__init__.py", "type": "Python" }
"""Base test suite."""
arviz-devsREPO_NAMEarvizPATH_START.@arviz_extracted@arviz-main@arviz@tests@base_tests@__init__.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/parcats/tickfont/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator from ._textcase import TextcaseValidator from ._style import StyleValidator from ._size import SizeValidator from ._shadow impor...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@parcats@tickfont@__init__.py@.PATH_END.py
{ "filename": "distances.ipynb", "repo_name": "classULDM/class.SFDM", "repo_path": "class.SFDM_extracted/class.SFDM-master/notebooks/distances.ipynb", "type": "Jupyter Notebook" }
```python # import necessary modules # uncomment to get plots displayed in notebook %matplotlib inline import matplotlib import matplotlib.pyplot as plt import numpy as np from classy import Class ``` ```python font = {'size' : 20, 'family':'STIXGeneral'} axislabelfontsize='large' matplotlib.rc('font', **font) matp...
classULDMREPO_NAMEclass.SFDMPATH_START.@class.SFDM_extracted@class.SFDM-master@notebooks@distances.ipynb@.PATH_END.py
{ "filename": "models.py", "repo_name": "juanep97/iop4", "repo_path": "iop4_extracted/iop4-main/iop4api/models.py", "type": "Python" }
from django.db import models # Create your models here. from iop4lib.db import *
juanep97REPO_NAMEiop4PATH_START.@iop4_extracted@iop4-main@iop4api@models.py@.PATH_END.py
{ "filename": "DEVELOPERS.md", "repo_name": "crossbario/crossbar", "repo_path": "crossbar_extracted/crossbar-master/docs-cfx/DEVELOPERS.md", "type": "Markdown" }
# Crossbar.io Fabric Dev Docs Some docs and hints for Crossbar.io Fabric developers. ## Master node controller components The main controlling component on * :class:`crossbarfx.master.node.node.FabricCenterNode` * :class:`crossbarfx.master.node.node.FabricServiceNodeManager` _initialize_mrealms ## Environment ```...
crossbarioREPO_NAMEcrossbarPATH_START.@crossbar_extracted@crossbar-master@docs-cfx@DEVELOPERS.md@.PATH_END.py
{ "filename": "trifinder.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/matplotlib/py2/matplotlib/tri/trifinder.py", "type": "Python" }
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib.tri import Triangulation import matplotlib._tri as _tri import numpy as np class TriFinder(object): """ Abstract base class for classes used to find the triangles of a ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@matplotlib@py2@matplotlib@tri@trifinder.py@.PATH_END.py
{ "filename": "queryaverage.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/docs/en/references/queryaverage.md", "type": "Markdown" }
# {{ error-function__QueryAverage }} - [{{ title__loss-functions__calculation-principles }}](#calculation) - [{{ title__loss-functions__text__user-defined-params }}](#user-defined-parameters) ## {{ title__loss-functions__calculation-principles }} {#calculation} {% include [loss-functions-function-calculation](../_in...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@docs@en@references@queryaverage.md@.PATH_END.py