metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "classifier.py", "repo_name": "loostrum/darc", "repo_path": "darc_extracted/darc-master/darc/processor_tools/classifier.py", "type": "Python" }
#!/usr/bin/env python3 import os import socket from argparse import Namespace from time import sleep from queue import Empty import multiprocessing as mp import threading import yaml import numpy as np import h5py from darc.definitions import CONFIG_FILE from darc.logger import get_queue_logger # silence the tensorfl...
loostrumREPO_NAMEdarcPATH_START.@darc_extracted@darc-master@darc@processor_tools@classifier.py@.PATH_END.py
{ "filename": "style_guide.md", "repo_name": "spacetelescope/mirage", "repo_path": "mirage_extracted/mirage-master/style_guide/style_guide.md", "type": "Markdown" }
Python Code Style Guide for `mirage` =================================== This document serves as a style guide for all `mirage` software development. Any requested contribution to the `mirage` code repository should be checked against this guide, and any violation of the guide should be fixed before the code is commi...
spacetelescopeREPO_NAMEmiragePATH_START.@mirage_extracted@mirage-master@style_guide@style_guide.md@.PATH_END.py
{ "filename": "debug.py", "repo_name": "spacetelescope/specview", "repo_path": "specview_extracted/specview-master/proto/specviewer/qt_signals/debug.py", "type": "Python" }
import logging import sys def msg_debug(msg, cls=None): if cls is None: logging.debug('{}: {}'.format(sys._getframe(1).f_code.co_name, msg)) else: logging.debug('{}.{}: {}'.format(cls.__name__, sys._getframe(1).f_cod...
spacetelescopeREPO_NAMEspecviewPATH_START.@specview_extracted@specview-master@proto@specviewer@qt_signals@debug.py@.PATH_END.py
{ "filename": "kpno_meta.py", "repo_name": "HETDEX/elixer", "repo_path": "elixer_extracted/elixer-main/elixer/kpno_meta.py", "type": "Python" }
KPNO_META_DICT = { 'km1203_5336.fits': {'RA_min':180.309799,'RA_max':181.386272,'Dec_min':53.224441,'Dec_max':53.920689,'instrument':'mosaic_1_1','filter':'g SDSS k1017','path':'/data/03261/polonius/hdr2/imaging/KMImaging/km1203_5336.fits'}, 'km1439_5224.fits': {'RA_min':219.099152,'RA_max':220.144887,'Dec_min':52.0884...
HETDEXREPO_NAMEelixerPATH_START.@elixer_extracted@elixer-main@elixer@kpno_meta.py@.PATH_END.py
{ "filename": "distributions.py", "repo_name": "zclaytor/butterpy", "repo_path": "butterpy_extracted/butterpy-main/butterpy/distributions.py", "type": "Python" }
import numpy as np class Distribution(object): """Base probability distribution class. Distribution has shape `shape` and range [min, max). """ def __init__(self, min, max, shape): """ Initialize distribution shape. Args: min (float): distribution range minimum. ...
zclaytorREPO_NAMEbutterpyPATH_START.@butterpy_extracted@butterpy-main@butterpy@distributions.py@.PATH_END.py
{ "filename": "smp_comp_flux.py", "repo_name": "dscolnic/Pantheon", "repo_path": "Pantheon_extracted/Pantheon-master/SCRIPTS/smp_comp_flux.py", "type": "Python" }
import numpy as np import string import matplotlib.pyplot as plt import matplotlib import plotsetup from matplotlib import gridspec from scipy.stats import pearsonr from pylab import polyfit plotsetup.fullpaperfig() #matplotlib.rcParams.update({'font.size': 14}) val1=[] val2=[] fil=[] a=open('smp_comp.txt', 'r') for l...
dscolnicREPO_NAMEPantheonPATH_START.@Pantheon_extracted@Pantheon-master@SCRIPTS@smp_comp_flux.py@.PATH_END.py
{ "filename": "setup_package.py", "repo_name": "astropy/astroquery", "repo_path": "astroquery_extracted/astroquery-main/astroquery/ogle/tests/setup_package.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os def get_package_data(): paths_test = [os.path.join('data', '*.txt')] return {'astroquery.ogle.tests': paths_test}
astropyREPO_NAMEastroqueryPATH_START.@astroquery_extracted@astroquery-main@astroquery@ogle@tests@setup_package.py@.PATH_END.py
{ "filename": "pytestplugin.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/hypothesis/py3/hypothesis/extra/pytestplugin.py", "type": "Python" }
# This file is part of Hypothesis, which may be found at # https://github.com/HypothesisWorks/hypothesis/ # # Copyright the Hypothesis Authors. # Individual contributors are listed in AUTHORS.rst and the git log. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@hypothesis@py3@hypothesis@extra@pytestplugin.py@.PATH_END.py
{ "filename": "test_util.py", "repo_name": "sibirrer/lenstronomy", "repo_path": "lenstronomy_extracted/lenstronomy-main/test/test_Util/test_util.py", "type": "Python" }
__author__ = "sibirrer" import lenstronomy.Util.util as util import numpy as np import pytest import numpy.testing as npt import unittest def test_isiterable(): z = np.array([0, 1]) boolean = util.isiterable(z) assert boolean is True z = 1 boolean = util.isiterable(z) assert boolean is Fals...
sibirrerREPO_NAMElenstronomyPATH_START.@lenstronomy_extracted@lenstronomy-main@test@test_Util@test_util.py@.PATH_END.py
{ "filename": "test_pipeline_hst.py", "repo_name": "gbrammer/grizli", "repo_path": "grizli_extracted/grizli-master/test_pipeline_hst.py", "type": "Python" }
import unittest import os import glob import yaml import numpy as np import matplotlib.pyplot as plt import mastquery from grizli import utils, prep, multifit, GRIZLI_PATH from grizli.pipeline import auto_script TEST_HOME = os.getcwd() HOME_PATH = f'{os.getcwd()}/PipelineTest' if not os.path.exists(HOME_PATH): ...
gbrammerREPO_NAMEgrizliPATH_START.@grizli_extracted@grizli-master@test_pipeline_hst.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "silburt/DeepMoon", "repo_path": "DeepMoon_extracted/DeepMoon-master/README.md", "type": "Markdown" }
# DeepMoon - Lunar Crater Counting Through Deep Learning Center for Planetary Sciences / Department of Astronomy & Astrophysics / Canadian Institute for Theoretical Astrophysics University of Toronto DeepMoon is a TensorFlow-based pipeline for training a convolutional neural network (CNN) to recognize craters on the M...
silburtREPO_NAMEDeepMoonPATH_START.@DeepMoon_extracted@DeepMoon-master@README.md@.PATH_END.py
{ "filename": "simulate.py", "repo_name": "smsharma/fermi-gce-flows", "repo_path": "fermi-gce-flows_extracted/fermi-gce-flows-main/simulate.py", "type": "Python" }
from __future__ import absolute_import, division, print_function, unicode_literals import sys, os import argparse import logging from operator import itemgetter import numpy as np import healpy as hp from tqdm.auto import tqdm import torch logger = logging.getLogger(__name__) sys.path.append("./") sys.path.append(".....
smsharmaREPO_NAMEfermi-gce-flowsPATH_START.@fermi-gce-flows_extracted@fermi-gce-flows-main@simulate.py@.PATH_END.py
{ "filename": "transform.py", "repo_name": "rhayes777/PyAutoFit", "repo_path": "PyAutoFit_extracted/PyAutoFit-main/autofit/graphical/factor_graphs/transform.py", "type": "Python" }
from abc import abstractmethod from typing import Dict, Tuple, Optional, List import numpy as np from scipy.linalg import cho_factor from autoconf import cached_property from autofit.graphical.factor_graphs.abstract import AbstractNode, Value, FactorValue # from ...mapper.operator import from autofit.mapper.operator ...
rhayes777REPO_NAMEPyAutoFitPATH_START.@PyAutoFit_extracted@PyAutoFit-main@autofit@graphical@factor_graphs@transform.py@.PATH_END.py
{ "filename": "basic_spectral_analysis-checkpoint.ipynb", "repo_name": "aburgasser/kastredux", "repo_path": "kastredux_extracted/kastredux-main/training/.ipynb_checkpoints/basic_spectral_analysis-checkpoint.ipynb", "type": "Jupyter Notebook" }
# KastRedux Tutorial: Basic Spectral Analysis ## Authors Adam Burgasser ## Version date 12 July 2024 ## Learning Goals * Read in an optical Kast spectrum (kastredux.getSpectrum) * Explore built-in functions for Spectrum objects (kastredux.Spectrum) * Some basic manipulation of spectra - normalizing, scaling, trimmin...
aburgasserREPO_NAMEkastreduxPATH_START.@kastredux_extracted@kastredux-main@training@.ipynb_checkpoints@basic_spectral_analysis-checkpoint.ipynb@.PATH_END.py
{ "filename": "_outlinecolor.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinecolor.py", "type": "Python" }
import _plotly_utils.basevalidators class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="outlinecolor", parent_name="densitymap.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@densitymap@colorbar@_outlinecolor.py@.PATH_END.py
{ "filename": "plot_c_miri.ipynb", "repo_name": "arminrest/jhat", "repo_path": "jhat_extracted/jhat-master/Docs/source/examples/plot_c_miri.ipynb", "type": "Jupyter Notebook" }
```python %matplotlib inline ``` # JWST MIRI Aligning JWST/MIRI images with JHAT. An example MIRI Dataset is downloaded, and then a series of alignment methods are used. For more information on the key parameters used for alignment see `params:Useful Parameters`. ```python import sys,os,glob from astropy.io i...
arminrestREPO_NAMEjhatPATH_START.@jhat_extracted@jhat-master@Docs@source@examples@plot_c_miri.ipynb@.PATH_END.py
{ "filename": "test_efsearch.py", "repo_name": "StingraySoftware/HENDRICS", "repo_path": "HENDRICS_extracted/HENDRICS-main/hendrics/tests/test_efsearch.py", "type": "Python" }
import copy import importlib import os from collections.abc import Iterable import numpy as np import pytest from stingray.events import EventList from stingray.lightcurve import Lightcurve from hendrics.base import HAS_PINT, hen_root from hendrics.efsearch import ( HAS_IMAGEIO, decide_binary_parameters, ...
StingraySoftwareREPO_NAMEHENDRICSPATH_START.@HENDRICS_extracted@HENDRICS-main@hendrics@tests@test_efsearch.py@.PATH_END.py
{ "filename": "newWindowHack.py", "repo_name": "iraf-community/pyraf", "repo_path": "pyraf_extracted/pyraf-main/pyraf/newWindowHack.py", "type": "Python" }
""" This module hacks tkSimpleDialog to make askstring() work even when the root window has been withdrawn. w/o this hack, Python-2.4.3/Tk8.4 locks up for the following code: the dialog is created, but it is withdrawn just like the root window (!) so there is nothing to interact with and the system hangs. import t...
iraf-communityREPO_NAMEpyrafPATH_START.@pyraf_extracted@pyraf-main@pyraf@newWindowHack.py@.PATH_END.py
{ "filename": "_plotting.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/scikit-learn/py3/sklearn/utils/_plotting.py", "type": "Python" }
import numpy as np from . import check_consistent_length, check_matplotlib_support from ._response import _get_response_values_binary from .multiclass import type_of_target from .validation import _check_pos_label_consistency class _BinaryClassifierCurveDisplayMixin: """Mixin class to be used in Displays requiri...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@scikit-learn@py3@sklearn@utils@_plotting.py@.PATH_END.py
{ "filename": "Star.py", "repo_name": "bretonr/Icarus", "repo_path": "Icarus_extracted/Icarus-master/Icarus/Core/Star.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function, division __all__ = ["Star"] from ..Utils.import_modules import * from .. import Utils from .Star_base import Star_base logger = logging.getLogger(__name__) ######################## class Star ########################...
bretonrREPO_NAMEIcarusPATH_START.@Icarus_extracted@Icarus-master@Icarus@Core@Star.py@.PATH_END.py
{ "filename": "GaussBAODVLikelihood.py", "repo_name": "ja-vazquez/SimpleMC", "repo_path": "SimpleMC_extracted/SimpleMC-master/simplemc/likelihoods/GaussBAODVLikelihood.py", "type": "Python" }
from simplemc.likelihoods.BaseLikelihood import BaseLikelihood class GaussBAODVLikelihood(BaseLikelihood): def __init__(self, name, z, DV, DVErr, fidtheory, maxchi2=1e30): """ This is a BAO likelihood, where we give DV and its error and optionally a value at which chi2 is cut. Par...
ja-vazquezREPO_NAMESimpleMCPATH_START.@SimpleMC_extracted@SimpleMC-master@simplemc@likelihoods@GaussBAODVLikelihood.py@.PATH_END.py
{ "filename": "slice2d_get_support.py", "repo_name": "spedas/pyspedas", "repo_path": "pyspedas_extracted/pyspedas-master/pyspedas/particles/spd_slice2d/slice2d_get_support.py", "type": "Python" }
from .tplot_average import tplot_average def slice2d_get_support(variable, trange, matrix=False): """ Retrieve user specified support data for spd_slice2d Input ------ variable: str or float or ndarray Tplot variable or input data trange: list of float Time ra...
spedasREPO_NAMEpyspedasPATH_START.@pyspedas_extracted@pyspedas-master@pyspedas@particles@spd_slice2d@slice2d_get_support.py@.PATH_END.py
{ "filename": "MakePlotMovie.py", "repo_name": "saopicc/killMS", "repo_path": "killMS_extracted/killMS-master/killMS/MakePlotMovie.py", "type": "Python" }
#!/usr/bin/env python """ killMS, a package for calibration in radio interferometry. Copyright (C) 2013-2017 Cyril Tasse, l'Observatoire de Paris, SKA South Africa, Rhodes University This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
saopiccREPO_NAMEkillMSPATH_START.@killMS_extracted@killMS-master@killMS@MakePlotMovie.py@.PATH_END.py
{ "filename": "DecayLCDMCosmology.py", "repo_name": "igomezv/simplemc_tests", "repo_path": "simplemc_tests_extracted/simplemc_tests-main/simplemc/models/DecayLCDMCosmology.py", "type": "Python" }
import sys import numpy as np from scipy.integrate import odeint from scipy.interpolate import interp1d from scipy.optimize import minimize from simplemc.models.LCDMCosmology import LCDMCosmology from simplemc.cosmo.paramDefs import xfrac_par, lambda_par class DecayLCDMCosmology(LCDMCosmology): # note that if w...
igomezvREPO_NAMEsimplemc_testsPATH_START.@simplemc_tests_extracted@simplemc_tests-main@simplemc@models@DecayLCDMCosmology.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "astrobengaly/GaPP", "repo_path": "GaPP_extracted/GaPP-main/README.md", "type": "Markdown" }
# GaPP This Gaussian Processes GaPP code auxiliary repository, replacing the original link [http://www.acgc.uct.ac.za/~seikel/GAPP/index.html] which seems to be broken. GaPP was written by Seikel, Clarkson, Smith 2012 (https://arxiv.org/abs/1204.2832, JCAP06(2012)036). The algorithm Gaussian processes can reconstruc...
astrobengalyREPO_NAMEGaPPPATH_START.@GaPP_extracted@GaPP-main@README.md@.PATH_END.py
{ "filename": "saveopts.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/setuptools/command/saveopts.py", "type": "Python" }
from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self): dist = self.distribution settings = {} for cmd in dist.com...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@setuptools@command@saveopts.py@.PATH_END.py
{ "filename": "_family.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/violin/hoverlabel/font/_family.py", "type": "Python" }
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="violin.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_na...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@violin@hoverlabel@font@_family.py@.PATH_END.py
{ "filename": "test_initial_point.py", "repo_name": "pymc-devs/pymc", "repo_path": "pymc_extracted/pymc-main/tests/test_initial_point.py", "type": "Python" }
# Copyright 2024 The PyMC Developers # # 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 ag...
pymc-devsREPO_NAMEpymcPATH_START.@pymc_extracted@pymc-main@tests@test_initial_point.py@.PATH_END.py
{ "filename": "wrappers.py", "repo_name": "3fon3fonov/exostriker", "repo_path": "exostriker_extracted/exostriker-main/exostriker/lib/wrapt_ES/wrappers.py", "type": "Python" }
import os import sys import functools import operator import weakref import inspect PY2 = sys.version_info[0] == 2 if PY2: string_types = basestring, else: string_types = str, def with_metaclass(meta, *bases): """Create a base class with a metaclass.""" return meta("NewBase", bases, {}) class _Objec...
3fon3fonovREPO_NAMEexostrikerPATH_START.@exostriker_extracted@exostriker-main@exostriker@lib@wrapt_ES@wrappers.py@.PATH_END.py
{ "filename": "_linecolor.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linecolor.py", "type": "Python" }
import _plotly_utils.basevalidators class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="linecolor", parent_name="layout.smith.realaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, pa...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@smith@realaxis@_linecolor.py@.PATH_END.py
{ "filename": "_variant.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py", "type": "Python" }
import _plotly_utils.basevalidators class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="variant", parent_name="scattercarpet.marker.colorbar.title.font", **kwargs, ): super(VariantValidator, self).__init__( ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattercarpet@marker@colorbar@title@font@_variant.py@.PATH_END.py
{ "filename": "metrics_nonportable.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/python/metrics/metrics_nonportable.py", "type": "Python" }
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@python@metrics@metrics_nonportable.py@.PATH_END.py
{ "filename": "mpi4py_cluster.py", "repo_name": "jax-ml/jax", "repo_path": "jax_extracted/jax-main/jax/_src/clusters/mpi4py_cluster.py", "type": "Python" }
# Copyright 2024 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...
jax-mlREPO_NAMEjaxPATH_START.@jax_extracted@jax-main@jax@_src@clusters@mpi4py_cluster.py@.PATH_END.py
{ "filename": "plot_screens.py", "repo_name": "scintillometry/screen-database", "repo_path": "screen-database_extracted/screen-database-main/plot_screens.py", "type": "Python" }
import matplotlib.pyplot as plt import numpy as np from astropy.coordinates import SkyCoord import astropy.coordinates as coord import astropy.units as u def plot_screens_3D(sources,screens,bounds=[-0.5,0.5,-0.5,0.5,-0.5,0.5],include_legend=False,cm="magma"): """ Plot the 3D locations and velocity vectors of s...
scintillometryREPO_NAMEscreen-databasePATH_START.@screen-database_extracted@screen-database-main@plot_screens.py@.PATH_END.py
{ "filename": "options.py", "repo_name": "jdswinbank/Comet", "repo_path": "Comet_extracted/Comet-master/comet/utility/options.py", "type": "Python" }
# Comet VOEvent Broker. # Base class for command line options. import os from argparse import ArgumentParser, ArgumentTypeError from lxml.etree import XPath, XPathSyntaxError import comet.plugins import comet.log as log from comet.utility.voevent import parse_ivoid, BadIvoidError __all__ = ["BaseOptions", "valid_iv...
jdswinbankREPO_NAMECometPATH_START.@Comet_extracted@Comet-master@comet@utility@options.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scatter/unselected/textfont/__init__.py", "type": "Python" }
import sys if sys.version_info < (3, 7): from ._color import ColorValidator else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._color.ColorValidator"] )
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scatter@unselected@textfont@__init__.py@.PATH_END.py
{ "filename": "ppm.md", "repo_name": "python-hydro/ppmpy", "repo_path": "ppmpy_extracted/ppmpy-main/docs/ppm.md", "type": "Markdown" }
# The Piecewise Parabolic Method for Hydrodynamics The PPM interface construction is more involved for hydrodynamics than advection because there are 3 characteristic waves. The basic overview of the method is: * Convert the conserved state, ${\bf U}$ to primitive variables, ${\bf q}$ * Reconstruct each of the pri...
python-hydroREPO_NAMEppmpyPATH_START.@ppmpy_extracted@ppmpy-main@docs@ppm.md@.PATH_END.py
{ "filename": "_family.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_family.py", "type": "Python" }
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="contourcarpet.colorbar.tickfont", **kwargs, ): super(FamilyValidator, self).__init__( plotly_name=...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contourcarpet@colorbar@tickfont@_family.py@.PATH_END.py
{ "filename": "gaussian.py", "repo_name": "kevin218/POET", "repo_path": "POET_extracted/POET-master/code/lib/gaussian.py", "type": "Python" }
# $Author: patricio $ # $Revision: 285 $ # $Date: 2010-06-18 17:59:25 -0400 (Fri, 18 Jun 2010) $ # $HeadURL: file:///home/esp01/svn/code/python/branches/patricio/photpipe/lib/gaussian.py $ # $Id: gaussian.py 285 2010-06-18 21:59:25Z patricio $ #! /usr/bin/env python ''' Name ---- gaussian File --...
kevin218REPO_NAMEPOETPATH_START.@POET_extracted@POET-master@code@lib@gaussian.py@.PATH_END.py
{ "filename": "_name.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/slider/_name.py", "type": "Python" }
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="name", parent_name="layout.slider", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, e...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@slider@_name.py@.PATH_END.py
{ "filename": "roadrunner_model_example_1.ipynb", "repo_name": "hpparvi/PyTransit", "repo_path": "PyTransit_extracted/PyTransit-master/doc/source/notebooks/models/roadrunner/roadrunner_model_example_1.ipynb", "type": "Jupyter Notebook" }
# RoadRunner transit model example I - basics *Author:* Hannu Parviainen<br> *Last modified:* 23 April 2024 The *RoadRunner* transit model (RRModel, [Parviainen, 2020a](https://ui.adsabs.harvard.edu/abs/2020MNRAS.499.1633P/abstract)) implemented by ``pytransit.RoadRunnerModel`` is a fast transit model that allows for...
hpparviREPO_NAMEPyTransitPATH_START.@PyTransit_extracted@PyTransit-master@doc@source@notebooks@models@roadrunner@roadrunner_model_example_1.ipynb@.PATH_END.py
{ "filename": "makePlanetInput.ipynb", "repo_name": "stevepur/DR25-occurrence-public", "repo_path": "DR25-occurrence-public_extracted/DR25-occurrence-public-main/GKbaseline_gaiaRadCut/makePlanetInput.ipynb", "type": "Jupyter Notebook" }
This notebook prepares a planet candidate catalog for the stellar population in the specified input stellar catalog. It computes the reliability, corrected planet radius and includes useful planet properties such as robovetter score. It outputs two catalogs, one that contains only PCs and one that contains all KOIs. ...
stevepurREPO_NAMEDR25-occurrence-publicPATH_START.@DR25-occurrence-public_extracted@DR25-occurrence-public-main@GKbaseline_gaiaRadCut@makePlanetInput.ipynb@.PATH_END.py
{ "filename": "_hovertext.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/histogram/_hovertext.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertext", parent_name="histogram", **kwargs): super(HovertextValidator, 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@histogram@_hovertext.py@.PATH_END.py
{ "filename": "plot_hysteresis.py", "repo_name": "scikit-image/scikit-image", "repo_path": "scikit-image_extracted/scikit-image-main/doc/examples/filters/plot_hysteresis.py", "type": "Python" }
""" ======================= Hysteresis thresholding ======================= *Hysteresis* is the lagging of an effect---a kind of inertia. In the context of thresholding, it means that areas above some *low* threshold are considered to be above the threshold *if* they are also connected to areas above a higher, more st...
scikit-imageREPO_NAMEscikit-imagePATH_START.@scikit-image_extracted@scikit-image-main@doc@examples@filters@plot_hysteresis.py@.PATH_END.py
{ "filename": "_sizeref.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scatter/marker/_sizeref.py", "type": "Python" }
import _plotly_utils.basevalidators class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="sizeref", parent_name="scatter.marker", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scatter@marker@_sizeref.py@.PATH_END.py
{ "filename": "test_config.py", "repo_name": "scikit-learn/scikit-learn", "repo_path": "scikit-learn_extracted/scikit-learn-main/sklearn/tests/test_config.py", "type": "Python" }
import builtins import time from concurrent.futures import ThreadPoolExecutor import pytest import sklearn from sklearn import config_context, get_config, set_config from sklearn.utils.fixes import _IS_WASM from sklearn.utils.parallel import Parallel, delayed def test_config_context(): assert get_config() == { ...
scikit-learnREPO_NAMEscikit-learnPATH_START.@scikit-learn_extracted@scikit-learn-main@sklearn@tests@test_config.py@.PATH_END.py
{ "filename": "exceptions.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/_plotly_utils/exceptions.py", "type": "Python" }
class PlotlyError(Exception): pass class PlotlyEmptyDataError(PlotlyError): pass class PlotlyGraphObjectError(PlotlyError): def __init__(self, message="", path=(), notes=()): """ General graph object error for validation failures. :param (str|unicode) message: The error message....
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@_plotly_utils@exceptions.py@.PATH_END.py
{ "filename": "index.md", "repo_name": "ultralytics/ultralytics", "repo_path": "ultralytics_extracted/ultralytics-main/docs/en/tasks/index.md", "type": "Markdown" }
--- comments: true description: Explore Ultralytics YOLO11 for detection, segmentation, classification, OBB, and pose estimation with high accuracy and speed. Learn how to apply each task. keywords: Ultralytics YOLO11, detection, segmentation, classification, oriented object detection, pose estimation, computer vision,...
ultralyticsREPO_NAMEultralyticsPATH_START.@ultralytics_extracted@ultralytics-main@docs@en@tasks@index.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/chart-studio/chart_studio/plotly/__init__.py", "type": "Python" }
""" plotly ====== This module defines functionality that requires interaction between your local machine and Plotly. Almost all functionality used here will require a verifiable account (username/api-key pair) and a network connection. """ from .plotly import ( sign_in, update_plot_options, get_credential...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@chart-studio@chart_studio@plotly@__init__.py@.PATH_END.py
{ "filename": "nucliadb.ipynb", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/docs/docs/integrations/vectorstores/nucliadb.ipynb", "type": "Jupyter Notebook" }
# NucliaDB You can use a local NucliaDB instance or use [Nuclia Cloud](https://nuclia.cloud). When using a local instance, you need a Nuclia Understanding API key, so your texts are properly vectorized and indexed. You can get a key by creating a free account at [https://nuclia.cloud](https://nuclia.cloud), and then ...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@docs@docs@integrations@vectorstores@nucliadb.ipynb@.PATH_END.py
{ "filename": "tl_dish.py", "repo_name": "TianlaiProject/tlpipe", "repo_path": "tlpipe_extracted/tlpipe-master/tlpipe/map/drift/telescope/tl_dish.py", "type": "Python" }
import os import abc import numpy as np from scipy.special import jn from cora.util import coord from ..core import telescope def ang_conv(ang): """ Covert the string represents of angle in degree to float number in degree. Parameters ---------- ang : string string represents the angle i...
TianlaiProjectREPO_NAMEtlpipePATH_START.@tlpipe_extracted@tlpipe-master@tlpipe@map@drift@telescope@tl_dish.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "OSSOS/SurveySimulator", "repo_path": "SurveySimulator_extracted/SurveySimulator-master/python/README.md", "type": "Markdown" }
## The python version of the Survey Simulator The python implementation creates a `module` using the `F95` source code and then build a set of python classes to interact with the simulator via the `F95` compiled module `ossssim.SurveySubsF95` The python code is documented and `pydoc` provides some details on how to ...
OSSOSREPO_NAMESurveySimulatorPATH_START.@SurveySimulator_extracted@SurveySimulator-master@python@README.md@.PATH_END.py
{ "filename": "val.md", "repo_name": "ultralytics/ultralytics", "repo_path": "ultralytics_extracted/ultralytics-main/docs/en/reference/models/yolo/segment/val.md", "type": "Markdown" }
--- description: Explore the YOLO Segmentation Validator module for validating segment models. Understand its usage, metrics, and implementation within the Ultralytics framework. keywords: YOLO, segmentation, validator, Ultralytics, model validation, machine learning, deep learning, AI, computer vision --- # Reference...
ultralyticsREPO_NAMEultralyticsPATH_START.@ultralytics_extracted@ultralytics-main@docs@en@reference@models@yolo@segment@val.md@.PATH_END.py
{ "filename": "utils.py", "repo_name": "athob/py-ananke", "repo_path": "py-ananke_extracted/py-ananke-main/src/ananke/utils.py", "type": "Python" }
#!/usr/bin/env python """ Module miscellaneous utilities """ from typing import Optional, List import re import docstring_parser as DS_parser import pandas as pd from Galaxia_ananke import utils as Gutils __all__ = ['compare_given_and_required', 'confirm_equal_length_arrays_in_dict', 'RecordingDataFrame', 'extract_pa...
athobREPO_NAMEpy-anankePATH_START.@py-ananke_extracted@py-ananke-main@src@ananke@utils.py@.PATH_END.py
{ "filename": "O1O2data.py", "repo_name": "CosmoStatGW/MGCosmoPop", "repo_path": "MGCosmoPop_extracted/MGCosmoPop-master/MGCosmoPop/dataStructures/O1O2data.py", "type": "Python" }
#!/usr/bin/env python3 # Copyright (c) 2021 Michele Mancarella <michele.mancarella@unige.ch> # # All rights reserved. Use of this source code is governed by a modified BSD # license that can be found in the LICENSE file. from .ABSdata import Data, LVCData import numpy as np import astropy.units as u import h...
CosmoStatGWREPO_NAMEMGCosmoPopPATH_START.@MGCosmoPop_extracted@MGCosmoPop-master@MGCosmoPop@dataStructures@O1O2data.py@.PATH_END.py
{ "filename": "skymap.py", "repo_name": "Fermipy/fermipy", "repo_path": "fermipy_extracted/fermipy-master/fermipy/skymap.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function import copy import numpy as np import healpy as hp from scipy.interpolate import RegularGridInterpolator from scipy.ndimage import map_coordinates from astropy.io import fits from astropy.wcs...
FermipyREPO_NAMEfermipyPATH_START.@fermipy_extracted@fermipy-master@fermipy@skymap.py@.PATH_END.py
{ "filename": "base.py", "repo_name": "amusecode/amuse", "repo_path": "amuse_extracted/amuse-main/src/amuse/io/base.py", "type": "Python" }
import textwrap import struct import numpy import os.path from amuse.support.core import late from amuse.support import exceptions registered_fileformat_processors = {} class IoException(exceptions.CoreException): formatstring = "IO exception: {0}" class UnsupportedFormatException(IoException): """Raised ...
amusecodeREPO_NAMEamusePATH_START.@amuse_extracted@amuse-main@src@amuse@io@base.py@.PATH_END.py
{ "filename": "tinygp_multidimensional_matern32_activity.py", "repo_name": "LucaMalavolta/PyORBIT", "repo_path": "PyORBIT_extracted/PyORBIT-main/pyorbit/models/tinygp_multidimensional_matern32_activity.py", "type": "Python" }
from pyorbit.subroutines.common import * from pyorbit.models.abstract_model import * from pyorbit.keywords_definitions import * from scipy.linalg import cho_factor, cho_solve, lapack, LinAlgError from scipy import matrix, spatial import sys __all__ = ['TinyGP_Multidimensional_Matern32Activity'] try: import jax ...
LucaMalavoltaREPO_NAMEPyORBITPATH_START.@PyORBIT_extracted@PyORBIT-main@pyorbit@models@tinygp_multidimensional_matern32_activity.py@.PATH_END.py
{ "filename": "test_convolve_kernels.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/astropy/convolution/tests/test_convolve_kernels.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import itertools import pytest import numpy as np from numpy.testing import assert_almost_equal from ..convolve import convolve, convolve_fft fr...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@astropy@convolution@tests@test_convolve_kernels.py@.PATH_END.py
{ "filename": "tess_io.py", "repo_name": "yuliang419/AstroNet-Triage", "repo_path": "AstroNet-Triage_extracted/AstroNet-Triage-master/light_curve_util/tess_io.py", "type": "Python" }
# Copyright 2018 Liang Yu. # # 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, so...
yuliang419REPO_NAMEAstroNet-TriagePATH_START.@AstroNet-Triage_extracted@AstroNet-Triage-master@light_curve_util@tess_io.py@.PATH_END.py
{ "filename": "demo_MBS_collision_trimesh.py", "repo_name": "projectchrono/chrono", "repo_path": "chrono_extracted/chrono-main/src/demos/python/mbs/demo_MBS_collision_trimesh.py", "type": "Python" }
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2019 projectchrono.org # All rights reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distr...
projectchronoREPO_NAMEchronoPATH_START.@chrono_extracted@chrono-main@src@demos@python@mbs@demo_MBS_collision_trimesh.py@.PATH_END.py
{ "filename": "avroUtils.py", "repo_name": "jlenain/flaapluc", "repo_path": "flaapluc_extracted/flaapluc-master/flaapluc/avroUtils.py", "type": "Python" }
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Time-stamp: "2022-11-17 12:16:18 jlenain" import io import json import fastavro # From https://github.com/astrolabsoftware/fink-client/blob/master/fink_client/avroUtils.py def encode_into_avro(alert: dict, schema_file: str) -> str: """Encode a dict record into a...
jlenainREPO_NAMEflaaplucPATH_START.@flaapluc_extracted@flaapluc-master@flaapluc@avroUtils.py@.PATH_END.py
{ "filename": "CODE_OF_CONDUCT.md", "repo_name": "RadioAstronomySoftwareGroup/pyuvdata", "repo_path": "pyuvdata_extracted/pyuvdata-main/CODE_OF_CONDUCT.md", "type": "Markdown" }
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex ch...
RadioAstronomySoftwareGroupREPO_NAMEpyuvdataPATH_START.@pyuvdata_extracted@pyuvdata-main@CODE_OF_CONDUCT.md@.PATH_END.py
{ "filename": "make_para_maps.ipynb", "repo_name": "SpandanCh/Barnard5_filaments", "repo_path": "Barnard5_filaments_extracted/Barnard5_filaments-main/make_para_maps.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np import matplotlib.pyplot as plt from astropy.io import fits import pyspeckit from matplotlib.colors import ListedColormap ``` ```python ``` ## Read data files ```python nh3_11, hd_amm = fits.getdata('datacubes/nh3_11_whole_cube_8as_3px.fits', header=True) npeaks, hd2d = fits.getdata(...
SpandanChREPO_NAMEBarnard5_filamentsPATH_START.@Barnard5_filaments_extracted@Barnard5_filaments-main@make_para_maps.ipynb@.PATH_END.py
{ "filename": "_column.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/map/domain/_column.py", "type": "Python" }
import _plotly_utils.basevalidators class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__(self, plotly_name="column", parent_name="layout.map.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@map@domain@_column.py@.PATH_END.py
{ "filename": "time_varying.md", "repo_name": "MWATelescope/mwa_hyperdrive", "repo_path": "mwa_hyperdrive_extracted/mwa_hyperdrive-main/mdbook/src/user/di_cal/advanced/time_varying.md", "type": "Markdown" }
# Varying solutions over time ~~~admonish tip See [this page](../../../defs/blocks.md) for information on timeblocks. ~~~ By default, `di-calibrate` uses only one "timeblock", i.e. all data timesteps are averaged together during calibration. This provides good signal-to-noise, but it is possible that calibration is i...
MWATelescopeREPO_NAMEmwa_hyperdrivePATH_START.@mwa_hyperdrive_extracted@mwa_hyperdrive-main@mdbook@src@user@di_cal@advanced@time_varying.md@.PATH_END.py
{ "filename": "_stylesrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py", "type": "Python" }
import _plotly_utils.basevalidators class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="stylesrc", parent_name="sankey.link.hoverlabel.font", **kwargs, ): super(StylesrcValidator, self).__init__( plotly_name=p...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@sankey@link@hoverlabel@font@_stylesrc.py@.PATH_END.py
{ "filename": "auth.md", "repo_name": "ultralytics/ultralytics", "repo_path": "ultralytics_extracted/ultralytics-main/docs/en/reference/hub/auth.md", "type": "Markdown" }
--- description: Learn how to manage API key and cookie-based authentication in Ultralytics with the Auth class. Step-by-step guide for effective authentication. keywords: Ultralytics, authentication, API key, cookies, Auth class, YOLO, API, guide --- # Reference for `ultralytics/hub/auth.py` !!! note This file ...
ultralyticsREPO_NAMEultralyticsPATH_START.@ultralytics_extracted@ultralytics-main@docs@en@reference@hub@auth.md@.PATH_END.py
{ "filename": "test_params_estim.py", "repo_name": "mavrix93/LightCurvesClassifier", "repo_path": "LightCurvesClassifier_extracted/LightCurvesClassifier-master/test/stars_processing/test_params_estim.py", "type": "Python" }
""" Created on Jan 25, 2017 @author: Martin Vo """ import unittest import numpy as np from lcc.entities.star import Star from lcc.stars_processing.deciders.supervised_deciders import QDADec from lcc.stars_processing.descriptors.abbe_value_descr import AbbeValueDescr from lcc.stars_processing.descriptors.curves_shap...
mavrix93REPO_NAMELightCurvesClassifierPATH_START.@LightCurvesClassifier_extracted@LightCurvesClassifier-master@test@stars_processing@test_params_estim.py@.PATH_END.py
{ "filename": "testidefix.py", "repo_name": "idefix-code/idefix", "repo_path": "idefix_extracted/idefix-master/test/Planet/PlanetSpiral2D/python/testidefix.py", "type": "Python" }
#!/usr/bin/env python # coding: utf-8 import sys import os sys.path.append(os.getenv("IDEFIX_DIR")) from pytools.vtk_io import readVTK import numpy as np import matplotlib.pyplot as plt on = 3 ds = readVTK(f"../data.{on:04d}.vtk", geometry="polar") Rmed = ds.x phimed = (ds.y/(np.pi))%2*np.pi-np.pi dR = np.ediff1d(d...
idefix-codeREPO_NAMEidefixPATH_START.@idefix_extracted@idefix-master@test@Planet@PlanetSpiral2D@python@testidefix.py@.PATH_END.py
{ "filename": "objects.KDE.ipynb", "repo_name": "mwaskom/seaborn", "repo_path": "seaborn_extracted/seaborn-master/doc/_docstrings/objects.KDE.ipynb", "type": "Jupyter Notebook" }
```python import seaborn.objects as so from seaborn import load_dataset penguins = load_dataset("penguins") ``` This stat estimates transforms observations into a smooth function representing the estimated density: ```python p = so.Plot(penguins, x="flipper_length_mm") p.add(so.Area(), so.KDE()) ``` Adjust the smoothi...
mwaskomREPO_NAMEseabornPATH_START.@seaborn_extracted@seaborn-master@doc@_docstrings@objects.KDE.ipynb@.PATH_END.py
{ "filename": "linalg.py", "repo_name": "google/jax", "repo_path": "jax_extracted/jax-main/jax/_src/numpy/linalg.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@numpy@linalg.py@.PATH_END.py
{ "filename": "_ticks.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticks.py", "type": "Python" }
import _plotly_utils.basevalidators class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="ticks", parent_name="choroplethmapbox.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, paren...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@choroplethmapbox@colorbar@_ticks.py@.PATH_END.py
{ "filename": "_tickvalssrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py", "type": "Python" }
import _plotly_utils.basevalidators class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="tickvalssrc", parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( pl...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scatterternary@marker@colorbar@_tickvalssrc.py@.PATH_END.py
{ "filename": "FitsHandlers.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/GalfitModule/Classes/FitsHandlers.py", "type": "Python" }
#!/usr/bin/env python # coding: utf-8 # In[1]: import os import sys from os.path import join as pj from os.path import exists import subprocess from copy import deepcopy from IPython import get_ipython from astropy.io import fits import gc import psutil import numpy as np import scipy.linalg as slg from scipy.stats...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@GalfitModule@Classes@FitsHandlers.py@.PATH_END.py
{ "filename": "castor_source.py", "repo_name": "AndreaSimongini/CASTOR", "repo_path": "CASTOR_extracted/CASTOR-main/Scripts/castor_source.py", "type": "Python" }
###################################################################################################### # ###################################################### # ____ _ ____ _____ ___ ____ ################################. #############...
AndreaSimonginiREPO_NAMECASTORPATH_START.@CASTOR_extracted@CASTOR-main@Scripts@castor_source.py@.PATH_END.py
{ "filename": "_showspikes.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showspikes.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="showspikes", parent_name="layout.scene.yaxis", **kwargs ): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@scene@yaxis@_showspikes.py@.PATH_END.py
{ "filename": "_x.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/candlestick/_x.py", "type": "Python" }
import _plotly_utils.basevalidators class XValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="x", parent_name="candlestick", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@candlestick@_x.py@.PATH_END.py
{ "filename": "params.py", "repo_name": "JayWadekar/gwIAS-HM", "repo_path": "gwIAS-HM_extracted/gwIAS-HM-main/Pipeline/params.py", "type": "Python" }
# Parameters used in data analysis # Template bank parameters # ----------------------------------------------------------------------------- # Frequency range (Hz) # Sets minimum frequency of waveform generation FMIN = 20. # HM_search = True # if HM_search: FMAX = 512. # else: FMAX = 1024. FMAX = 1024. NF_GEN = 10...
JayWadekarREPO_NAMEgwIAS-HMPATH_START.@gwIAS-HM_extracted@gwIAS-HM-main@Pipeline@params.py@.PATH_END.py
{ "filename": "gwb_spectral_variance.ipynb", "repo_name": "astrolamb/pop_synth", "repo_path": "pop_synth_extracted/pop_synth-main/notebooks/gwb_spectral_variance.ipynb", "type": "Jupyter Notebook" }
Based on a notebook by Stephen Taylor This notebook uses a very basic population synthesis model to test out the analytical relations found in Lamb & Taylor 2024 ```python import numpy as np import scipy.stats as ss import matplotlib.pyplot as plt from astropy.cosmology import FlatLambdaCDM from astropy.constants im...
astrolambREPO_NAMEpop_synthPATH_START.@pop_synth_extracted@pop_synth-main@notebooks@gwb_spectral_variance.ipynb@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "mit-ll/spacegym-kspdg", "repo_path": "spacegym-kspdg_extracted/spacegym-kspdg-main/src/kspdg/private_src/python3_9/Linux_x86_64/pyarmor_runtime_000000/__init__.py", "type": "Python" }
# Pyarmor 8.5.11 (trial), 000000, 2024-12-09T10:19:41.411263 from .pyarmor_runtime import __pyarmor__
mit-llREPO_NAMEspacegym-kspdgPATH_START.@spacegym-kspdg_extracted@spacegym-kspdg-main@src@kspdg@private_src@python3_9@Linux_x86_64@pyarmor_runtime_000000@__init__.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "mneeleman/qubefit", "repo_path": "qubefit_extracted/qubefit-master/doc/conf.py", "type": "Python" }
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
mneelemanREPO_NAMEqubefitPATH_START.@qubefit_extracted@qubefit-master@doc@conf.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/contourcarpet/contours/labelfont/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="contourcarpet.contours.labelfont", **kwargs, ): super(ColorValidator, self).__init__( plotly_name=plo...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contourcarpet@contours@labelfont@_color.py@.PATH_END.py
{ "filename": "rundap.py", "repo_name": "sdss/mangadap", "repo_path": "mangadap_extracted/mangadap-main/mangadap/scripts/rundap.py", "type": "Python" }
from IPython import embed from mangadap.scripts import scriptbase class RunDap(scriptbase.ScriptBase): """ Simple wrapper class for the rundap script. """ @classmethod def name(cls): """ Return the name of the executable. """ return 'rundap' @classmethod ...
sdssREPO_NAMEmangadapPATH_START.@mangadap_extracted@mangadap-main@mangadap@scripts@rundap.py@.PATH_END.py
{ "filename": "_layer.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/newshape/_layer.py", "type": "Python" }
import _plotly_utils.basevalidators class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="layer", parent_name="layout.newshape", **kwargs): super(LayerValidator, 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@newshape@_layer.py@.PATH_END.py
{ "filename": "demo_MBS_spring.py", "repo_name": "projectchrono/chrono", "repo_path": "chrono_extracted/chrono-main/src/demos/python/mbs/demo_MBS_spring.py", "type": "Python" }
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2014 projectchrono.org # All rights reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distr...
projectchronoREPO_NAMEchronoPATH_START.@chrono_extracted@chrono-main@src@demos@python@mbs@demo_MBS_spring.py@.PATH_END.py
{ "filename": "test_utils.py", "repo_name": "HERA-Team/hera_opm", "repo_path": "hera_opm_extracted/hera_opm-main/hera_opm/tests/test_utils.py", "type": "Python" }
"""Tests for utils.py""" import pytest import hera_opm.utils as utils def test_get_makeflow_ArgumentParser(): # get an argument parser and make sure it behaves as expected a = utils.get_makeflow_ArgumentParser() config_file = "config_file.cfg" output_file = "mf.log" obsids = ["zen.2458000.12345.x...
HERA-TeamREPO_NAMEhera_opmPATH_START.@hera_opm_extracted@hera_opm-main@hera_opm@tests@test_utils.py@.PATH_END.py
{ "filename": "_hoverlabel.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/scene/annotation/_hoverlabel.py", "type": "Python" }
import _plotly_utils.basevalidators class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="hoverlabel", parent_name="layout.scene.annotation", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@scene@annotation@_hoverlabel.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "hahnec/torchimize", "repo_path": "torchimize_extracted/torchimize-master/torchimize/__init__.py", "type": "Python" }
__author__ = "Christopher Hahne" __email__ = "inbox@christopherhahne.de" __license__ = """ Copyright (c) 2022 Christopher Hahne <inbox@christopherhahne.de> 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 S...
hahnecREPO_NAMEtorchimizePATH_START.@torchimize_extracted@torchimize-master@torchimize@__init__.py@.PATH_END.py
{ "filename": "test_make_moments.py", "repo_name": "Astroua/TurbuStat", "repo_path": "TurbuStat_extracted/TurbuStat-master/turbustat/moments/tests/test_make_moments.py", "type": "Python" }
# Licensed under an MIT open source license - see LICENSE from __future__ import print_function, absolute_import, division import numpy.testing as npt import astropy.units as u import os from glob import glob import pytest from .. import Moments from ...tests._testing_data import dataset1, sc1, props1 @pytest.mark...
AstrouaREPO_NAMETurbuStatPATH_START.@TurbuStat_extracted@TurbuStat-master@turbustat@moments@tests@test_make_moments.py@.PATH_END.py
{ "filename": "maps.py", "repo_name": "simonsobs/nemo", "repo_path": "nemo_extracted/nemo-main/nemo/maps.py", "type": "Python" }
""" This module contains tools for manipulating maps. """ from astLib import * from scipy import ndimage from scipy import interpolate from scipy.signal import convolve as scipy_convolve from scipy import optimize import astropy.io.fits as pyfits import astropy.table as atpy import astropy.stats as apyStats import m...
simonsobsREPO_NAMEnemoPATH_START.@nemo_extracted@nemo-main@nemo@maps.py@.PATH_END.py
{ "filename": "imagemaker.py", "repo_name": "spacetelescope/hstaxe", "repo_path": "hstaxe_extracted/hstaxe-main/hstaxe/axesrc/imagemaker.py", "type": "Python" }
""" See LICENSE.txt """ import logging import os from astropy.io import fits from hstaxe import axeerror from hstaxe.config import get_random_filename from . import configfile # make sure there is a logger _log = logging.getLogger(__name__) class DummyImages: """ Small class to create dummy images for the...
spacetelescopeREPO_NAMEhstaxePATH_START.@hstaxe_extracted@hstaxe-main@hstaxe@axesrc@imagemaker.py@.PATH_END.py
{ "filename": "rain_check_images.py", "repo_name": "jsnguyen/rain", "repo_path": "rain_extracted/rain-main/rain_check_images.py", "type": "Python" }
import os import time import numpy as np from astropy.io import fits from tqdm import tqdm from rain import rain def distortion(index_x, index_y, x_dist, y_dist): ''' -- Description: performs the distortion correction according to x_dist and y_dist assumes that x_dist and y_dist are both functions of...
jsnguyenREPO_NAMErainPATH_START.@rain_extracted@rain-main@rain_check_images.py@.PATH_END.py
{ "filename": "local.py", "repo_name": "ML4GW/hermes", "repo_path": "hermes_extracted/hermes-main/hermes/quiver/io/local.py", "type": "Python" }
import glob import os import shutil from dataclasses import dataclass from pathlib import Path from typing import TYPE_CHECKING, List, Optional from hermes.quiver.io.exceptions import NoFilesFoundError from hermes.quiver.io.file_system import FileSystem if TYPE_CHECKING: from hermes.types import IO_TYPE @datacl...
ML4GWREPO_NAMEhermesPATH_START.@hermes_extracted@hermes-main@hermes@quiver@io@local.py@.PATH_END.py
{ "filename": "script_example_model+fit_2_lines.ipynb", "repo_name": "thomasorb/orcs", "repo_path": "orcs_extracted/orcs-master/docs/_build/doctrees/nbsphinx/script_example_model+fit_2_lines.ipynb", "type": "Jupyter Notebook" }
# Modelling and fitting a spectrum with two resolved lines Based on what we have seen in the example [Modelling and fitting one emission line](./script_example_model+fit_1_line.ipynb) we will model and fit a spectrum with two resolved lines. This example will then be used in [Modelling and fitting two unresolved emiss...
thomasorbREPO_NAMEorcsPATH_START.@orcs_extracted@orcs-master@docs@_build@doctrees@nbsphinx@script_example_model+fit_2_lines.ipynb@.PATH_END.py
{ "filename": "test_gcs.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/io/test_gcs.py", "type": "Python" }
from io import BytesIO import os import pathlib import tarfile import zipfile import numpy as np import pytest from pandas.compat.pyarrow import pa_version_under17p0 from pandas import ( DataFrame, Index, date_range, read_csv, read_excel, read_json, read_parquet, ) import pandas._testing ...
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@io@test_gcs.py@.PATH_END.py
{ "filename": "test_h_voxel_volume.py", "repo_name": "jrenaud90/TidalPy", "repo_path": "TidalPy_extracted/TidalPy-main/Tests/Test_Old/Test_SetB_Package/test_h_voxel_volume.py", "type": "Python" }
""" Tests for spherical helper function to calculate the volume of spherical voxels. """ import numpy as np import TidalPy from TidalPy.utilities.spherical_helper.volume import calculate_voxel_volumes, calculate_voxel_volumes_npy planet_radius = 6300.0e3 def test_voxel_volume_numba(): """ Test the voxel volu...
jrenaud90REPO_NAMETidalPyPATH_START.@TidalPy_extracted@TidalPy-main@Tests@Test_Old@Test_SetB_Package@test_h_voxel_volume.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py", "type": "Python" }
import sys if sys.version_info < (3, 7): from ._size import SizeValidator from ._family import FamilyValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._siz...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattergeo@marker@colorbar@title@font@__init__.py@.PATH_END.py
{ "filename": "test_classifier.py", "repo_name": "morpheus-project/morpheus", "repo_path": "morpheus_extracted/morpheus-master/morpheus/tests/test_classifier.py", "type": "Python" }
# MIT License # Copyright 2018 Ryan Hausen # # 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, publis...
morpheus-projectREPO_NAMEmorpheusPATH_START.@morpheus_extracted@morpheus-master@morpheus@tests@test_classifier.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/choroplethmapbox/stream/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@choroplethmapbox@stream@__init__.py@.PATH_END.py