metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "third_party.py", "repo_name": "fred3m/toyz", "repo_path": "toyz_extracted/toyz-master/toyz/utils/third_party.py", "type": "Python" }
# Copyright 2015 by Fred Moolekamp # License: BSD 3-clause """ Settings for 3rd party web libraries, including jquery, jquery_ui, jquery_ui_themes. These are the packages for any third party libraries, containing version information and a path to the source code. """ from __future__ import division, print_function fro...
fred3mREPO_NAMEtoyzPATH_START.@toyz_extracted@toyz-master@toyz@utils@third_party.py@.PATH_END.py
{ "filename": "_lineposition.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/heatmapgl/legendgrouptitle/font/_lineposition.py", "type": "Python" }
import _plotly_utils.basevalidators class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__( self, plotly_name="lineposition", parent_name="heatmapgl.legendgrouptitle.font", **kwargs, ): super(LinepositionValidator, self).__init__( ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@heatmapgl@legendgrouptitle@font@_lineposition.py@.PATH_END.py
{ "filename": "get_path_to_datafile.md", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/g3doc/api_docs/python/tflite_support/metadata/get_path_to_datafile.md", "type": "Markdown" }
page_type: reference description: Gets the path to the specified file in the data dependencies. <link rel="stylesheet" href="/site-assets/css/style.css"> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tflite_...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@g3doc@api_docs@python@tflite_support@metadata@get_path_to_datafile.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "sibirrer/hierArc", "repo_path": "hierArc_extracted/hierArc-main/test/test_Likelihood/test_KDELikelihood/__init__.py", "type": "Python" }
sibirrerREPO_NAMEhierArcPATH_START.@hierArc_extracted@hierArc-main@test@test_Likelihood@test_KDELikelihood@__init__.py@.PATH_END.py
{ "filename": "Filters.py", "repo_name": "wmpg/Supracenter", "repo_path": "Supracenter_extracted/Supracenter-master/supra/Stations/Filters.py", "type": "Python" }
""" Functions for fetching USarray waveforms. """ from __future__ import print_function, division, absolute_import import os import sys import datetime import argparse import copy import time # Check version if sys.version_info.major < 3: import urllib as urllibrary else: import urllib.request as urllibrar...
wmpgREPO_NAMESupracenterPATH_START.@Supracenter_extracted@Supracenter-master@supra@Stations@Filters.py@.PATH_END.py
{ "filename": "hydrosim_plotting.py", "repo_name": "parsotat/ProcessMCRaT", "repo_path": "ProcessMCRaT_extracted/ProcessMCRaT-master/processmcrat/hydrosim_plotting.py", "type": "Python" }
import numpy as np from scipy import interpolate from astropy.visualization import quantity_support quantity_support() from .hydrosim_lib import load_photon_vs_fluid_quantities from .mclib import calc_optical_depth, calc_equal_arrival_time_surface, calc_line_of_sight import matplotlib.pyplot as plt import os from mpl_t...
parsotatREPO_NAMEProcessMCRaTPATH_START.@ProcessMCRaT_extracted@ProcessMCRaT-master@processmcrat@hydrosim_plotting.py@.PATH_END.py
{ "filename": "_mode.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattergeo/_mode.py", "type": "Python" }
import _plotly_utils.basevalidators class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="mode", parent_name="scattergeo", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ed...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattergeo@_mode.py@.PATH_END.py
{ "filename": "utils.py", "repo_name": "delphes/delphes", "repo_path": "delphes_extracted/delphes-master/validation/src/utils.py", "type": "Python" }
import sys, os import numpy as np from array import array import ROOT import math from collections import OrderedDict from ROOT import TVector3, TLorentzVector, TVectorD, TMath import matplotlib.pyplot as plt from matplotlib.lines import Line2D import pandas as pd import matplotlib # matplotlib.use("tkagg") plt.rcPar...
delphesREPO_NAMEdelphesPATH_START.@delphes_extracted@delphes-master@validation@src@utils.py@.PATH_END.py
{ "filename": "_customdata.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/mesh3d/_customdata.py", "type": "Python" }
import _plotly_utils.basevalidators class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="customdata", parent_name="mesh3d", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name,...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@mesh3d@_customdata.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "timstaley/voevent-parse", "repo_path": "voevent-parse_extracted/voevent-parse-master/documentation/source/conf.py", "type": "Python" }
from __future__ import print_function import sys, os import voeventparse # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. needs_sphinx = '1.3' # Add any Sphinx extension module names here, as strings. They can be e...
timstaleyREPO_NAMEvoevent-parsePATH_START.@voevent-parse_extracted@voevent-parse-master@documentation@source@conf.py@.PATH_END.py
{ "filename": "_minexponent.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/yaxis/_minexponent.py", "type": "Python" }
import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="minexponent", parent_name="layout.yaxis", **kwargs): super(MinexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@yaxis@_minexponent.py@.PATH_END.py
{ "filename": "one_k.py", "repo_name": "wlxu/RelicClass", "repo_path": "RelicClass_extracted/RelicClass-master/scripts/one_k.py", "type": "Python" }
# coding: utf-8 # In[ ]: # 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 from scipy.optimize import fsolve from scipy.interpolate import interp1d import math # In[ ]: # esthe...
wlxuREPO_NAMERelicClassPATH_START.@RelicClass_extracted@RelicClass-master@scripts@one_k.py@.PATH_END.py
{ "filename": "braginskii.py", "repo_name": "PlasmaPy/PlasmaPy", "repo_path": "PlasmaPy_extracted/PlasmaPy-main/src/plasmapy/formulary/braginskii.py", "type": "Python" }
r""" Functions to calculate classical transport coefficients. .. nbgallery:: /notebooks/formulary/braginskii .. attention:: |expect-api-changes| Introduction ============ Classical transport theory is derived by using kinetic theory to close the plasma two-fluid (electron and ion fluid) equations in the co...
PlasmaPyREPO_NAMEPlasmaPyPATH_START.@PlasmaPy_extracted@PlasmaPy-main@src@plasmapy@formulary@braginskii.py@.PATH_END.py
{ "filename": "pk_individual_2d_hexa.py", "repo_name": "Samreay/Barry", "repo_path": "Barry_extracted/Barry-master/config/examples/pk_individual_2d_hexa.py", "type": "Python" }
import sys from chainconsumer import ChainConsumer sys.path.append("..") from barry.samplers import DynestySampler from barry.cosmology.camb_generator import getCambGenerator from barry.postprocessing import BAOExtractor from barry.config import setup from barry.utils import weighted_avg_and_cov from barry.models imp...
SamreayREPO_NAMEBarryPATH_START.@Barry_extracted@Barry-master@config@examples@pk_individual_2d_hexa.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "Swift-BAT/NITRATES", "repo_path": "NITRATES_extracted/NITRATES-main/nitrates/HeasoftTools/__init__.py", "type": "Python" }
__all__ = [ "bat_tool_funcs", "gen_tools", "mk_drms", "mk_ray_trace_footprints", "mk_ray_trace_groups", ] from .bat_tool_funcs import * from .gen_tools import * from .mk_drms import * from .mk_ray_trace_footprints import * from .mk_ray_trace_groups import *
Swift-BATREPO_NAMENITRATESPATH_START.@NITRATES_extracted@NITRATES-main@nitrates@HeasoftTools@__init__.py@.PATH_END.py
{ "filename": "_selected.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/choroplethmap/_selected.py", "type": "Python" }
import _plotly_utils.basevalidators class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="selected", parent_name="choroplethmap", **kwargs): super(SelectedValidator, 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@choroplethmap@_selected.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "keras-team/keras", "repo_path": "keras_extracted/keras-master/keras/api/utils/legacy/__init__.py", "type": "Python" }
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras.src.legacy.saving.serialization import deserialize_keras_object from keras.src.legacy.saving.serialization import serialize_keras_object
keras-teamREPO_NAMEkerasPATH_START.@keras_extracted@keras-master@keras@api@utils@legacy@__init__.py@.PATH_END.py
{ "filename": "Visualize.py", "repo_name": "HWang-Summit/HCGrid", "repo_path": "HCGrid_extracted/HCGrid-master/HCGrid/Visualize.py", "type": "Python" }
# -------------------------------------------------------------------- # # title :Visualize.py # description :Visualize output map # author :Hao Wang, Jian Xiao, Ce Yu # # -------------------------------------------------------------------- #!/usr/bin/env python # -*- coding...
HWang-SummitREPO_NAMEHCGridPATH_START.@HCGrid_extracted@HCGrid-master@HCGrid@Visualize.py@.PATH_END.py
{ "filename": "_fillcolor.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattergl/_fillcolor.py", "type": "Python" }
import _plotly_utils.basevalidators class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="fillcolor", parent_name="scattergl", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattergl@_fillcolor.py@.PATH_END.py
{ "filename": "_shadowsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="shadowsrc", parent_name="funnel.hoverlabel.font", **kwargs ): super(ShadowsrcValidator, self).__init__( plotly_name=plotly_name, par...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@funnel@hoverlabel@font@_shadowsrc.py@.PATH_END.py
{ "filename": "isentropic_rel.py", "repo_name": "EigenDev/simbi", "repo_path": "simbi_extracted/simbi-main/simbi_configs/examples/isentropic_rel.py", "type": "Python" }
from simbi import BaseConfig, DynamicArg, simbi_property from simbi.key_types import * import numpy as np import argparse ALPHA_MAX = 2.0 ALPHA_MIN = 1e-3 def range_limited_float_type(arg: Any) -> Any: """ Type function for argparse - a float within some predefined bounds """ try: f = float(arg) ...
EigenDevREPO_NAMEsimbiPATH_START.@simbi_extracted@simbi-main@simbi_configs@examples@isentropic_rel.py@.PATH_END.py
{ "filename": "_colorbar.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattercarpet/marker/_colorbar.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="colorbar", parent_name="scattercarpet.marker", **kwargs ): super(ColorbarValidator, self).__init__( plotly_name=plotly_name, par...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattercarpet@marker@_colorbar.py@.PATH_END.py
{ "filename": "interferometer_testing_LWA.py", "repo_name": "epic-astronomy/EPIC", "repo_path": "EPIC_extracted/EPIC-master/main/interferometer_testing_LWA.py", "type": "Python" }
import datetime as DT import numpy as NP import matplotlib.pyplot as PLT import matplotlib.colors as PLTC import scipy.constants as FCNST from astropy.io import fits from astropy.io import ascii from astropy.table import Table import progressbar as PGB import antenna_array as AA import geometry as GEOM import my_DSP_mo...
epic-astronomyREPO_NAMEEPICPATH_START.@EPIC_extracted@EPIC-master@main@interferometer_testing_LWA.py@.PATH_END.py
{ "filename": "_y.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/densitymap/colorbar/_y.py", "type": "Python" }
import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="y", parent_name="densitymap.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@densitymap@colorbar@_y.py@.PATH_END.py
{ "filename": "TrajSim.py", "repo_name": "wmpg/WesternMeteorPyLib", "repo_path": "WesternMeteorPyLib_extracted/WesternMeteorPyLib-master/wmpl/TrajSim/TrajSim.py", "type": "Python" }
""" Meteor trajectory simulator. Features: - Simulating individual trajectories and projecting the observations to the observers. """ from __future__ import print_function, division, absolute_import import numpy as np import scipy.optimize from wmpl.Trajectory.Orbit import calcOrbit from wmpl.Utils.TrajConver...
wmpgREPO_NAMEWesternMeteorPyLibPATH_START.@WesternMeteorPyLib_extracted@WesternMeteorPyLib-master@wmpl@TrajSim@TrajSim.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "spedas/pyspedas", "repo_path": "pyspedas_extracted/pyspedas-master/pyspedas/projects/dscovr/tests/__init__.py", "type": "Python" }
spedasREPO_NAMEpyspedasPATH_START.@pyspedas_extracted@pyspedas-master@pyspedas@projects@dscovr@tests@__init__.py@.PATH_END.py
{ "filename": "height.py", "repo_name": "DanieleFasano/wakeflow", "repo_path": "wakeflow_extracted/wakeflow-master/src/spiralmoments/height.py", "type": "Python" }
# height.py # Written by Thomas Hilder """ Contains the HeightFunctions class, which allows users to generate functions that return the disk height as a function of radius, using the parameterisation of their choice. """ import numpy as np from typing import Callable class HeightFunctions(): """ Class conta...
DanieleFasanoREPO_NAMEwakeflowPATH_START.@wakeflow_extracted@wakeflow-master@src@spiralmoments@height.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "GeminiDRSoftware/DRAGONS", "repo_path": "DRAGONS_extracted/DRAGONS-master/recipe_system/doc/rs_ProgManual/conf.py", "type": "Python" }
# # DRAGONS Recipe System Programmer's Manual documentation build configuration file, # sphinx-quickstart on Thu Mar 20 15:06:19 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
GeminiDRSoftwareREPO_NAMEDRAGONSPATH_START.@DRAGONS_extracted@DRAGONS-master@recipe_system@doc@rs_ProgManual@conf.py@.PATH_END.py
{ "filename": "install_lib.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/setuptools/py2/setuptools/command/install_lib.py", "type": "Python" }
import os import sys from itertools import product, starmap import distutils.command.install_lib as orig class install_lib(orig.install_lib): """Don't add compiled flags to filenames of non-Python files""" def run(self): self.build() outfiles = self.install() if outfiles is not None: ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@setuptools@py2@setuptools@command@install_lib.py@.PATH_END.py
{ "filename": "model.py", "repo_name": "triton-inference-server/server", "repo_path": "server_extracted/server-main/qa/L0_optional_input/models/optional_identity/1/model.py", "type": "Python" }
# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of con...
triton-inference-serverREPO_NAMEserverPATH_START.@server_extracted@server-main@qa@L0_optional_input@models@optional_identity@1@model.py@.PATH_END.py
{ "filename": "Baseline.py", "repo_name": "GBTSpectroscopy/gbtpipe", "repo_path": "gbtpipe_extracted/gbtpipe-master/gbtpipe/Baseline.py", "type": "Python" }
import numpy as np import numpy.polynomial.legendre as legendre from scipy.optimize import least_squares as lsq from spectral_cube import SpectralCube import astropy.units as u import astropy.utils.console as console try: import pyspeckit.spectrum.models.ammonia_constants as acons except ModuleNotFoundError: im...
GBTSpectroscopyREPO_NAMEgbtpipePATH_START.@gbtpipe_extracted@gbtpipe-master@gbtpipe@Baseline.py@.PATH_END.py
{ "filename": "visufunc.py", "repo_name": "healpy/healpy", "repo_path": "healpy_extracted/healpy-main/lib/healpy/visufunc.py", "type": "Python" }
# # This file is part of Healpy. # # Healpy 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 2 of the License, or # (at your option) any later version. # # Healpy is distributed in the hope...
healpyREPO_NAMEhealpyPATH_START.@healpy_extracted@healpy-main@lib@healpy@visufunc.py@.PATH_END.py
{ "filename": "_customdata.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/sankey/link/_customdata.py", "type": "Python" }
import _plotly_utils.basevalidators class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="customdata", parent_name="sankey.link", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@sankey@link@_customdata.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/histogram2d/textfont/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="style", parent_name="histogram2d.textfont", **kwargs ): super(StyleValidator, self).__init__( plotly_name=plotly_name, parent_nam...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@histogram2d@textfont@_style.py@.PATH_END.py
{ "filename": "dictionary_utils.py", "repo_name": "jrenaud90/TidalPy", "repo_path": "TidalPy_extracted/TidalPy-main/TidalPy/utilities/dictionary_utils.py", "type": "Python" }
import copy from typing import Any, List, Tuple, Union PossibleKeyType = Union[str, int, float] def nested_get( input_dict: dict, nested_keys: Union[PossibleKeyType, List[PossibleKeyType], Tuple[PossibleKeyType, ...]], default: Any = None, raiseon_nolocate: bool = False ) -> Any: """ Returns ...
jrenaud90REPO_NAMETidalPyPATH_START.@TidalPy_extracted@TidalPy-main@TidalPy@utilities@dictionary_utils.py@.PATH_END.py
{ "filename": "diag_triage.py", "repo_name": "christopherburke/TESS-ExoClass", "repo_path": "TESS-ExoClass_extracted/TESS-ExoClass-master/code/diag_triage.py", "type": "Python" }
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Feb 24 21:13:43 2019 @author: cjburke """ import numpy as np import matplotlib.pyplot as plt import h5py import math import os if __name__ == '__main__': tic = 55092869 pn = 1 sector = 9 sesDataDir = '/pdo/users/cjburke/spocvet/sector6...
christopherburkeREPO_NAMETESS-ExoClassPATH_START.@TESS-ExoClass_extracted@TESS-ExoClass-master@code@diag_triage.py@.PATH_END.py
{ "filename": "turok_jax.py", "repo_name": "astro-informatics/s2fft", "repo_path": "s2fft_extracted/s2fft-main/s2fft/recursions/turok_jax.py", "type": "Python" }
from functools import partial import jax.lax as lax import jax.numpy as jnp import numpy as np from jax import jit @partial(jit, static_argnums=(2, 3)) def compute_slice(beta: float, el: int, L: int, mm: int) -> jnp.ndarray: r""" Compute a particular slice :math:`m^{\prime}`, denoted `mm`, of the complet...
astro-informaticsREPO_NAMEs2fftPATH_START.@s2fft_extracted@s2fft-main@s2fft@recursions@turok_jax.py@.PATH_END.py
{ "filename": "ssd.py", "repo_name": "pytorch/vision", "repo_path": "vision_extracted/vision-main/torchvision/models/detection/ssd.py", "type": "Python" }
import warnings from collections import OrderedDict from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn.functional as F from torch import nn, Tensor from ...ops import boxes as box_ops from ...transforms._presets import ObjectDetection from ...utils import _log_api_usage_once from .._api ...
pytorchREPO_NAMEvisionPATH_START.@vision_extracted@vision-main@torchvision@models@detection@ssd.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/pytest/data/black_friday/README.md", "type": "Markdown" }
Small subset of dataset from https://www.kaggle.com/mehdidag/black-friday
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@pytest@data@black_friday@README.md@.PATH_END.py
{ "filename": "CONTRIBUTING.md", "repo_name": "aymgal/COOLEST", "repo_path": "COOLEST_extracted/COOLEST-main/CONTRIBUTING.md", "type": "Markdown" }
<!-- omit in toc --> # Contributing to COOLEST Thank you for your interest in COOLEST! All types of feedback, feature proposals and contributions are highly encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sur...
aymgalREPO_NAMECOOLESTPATH_START.@COOLEST_extracted@COOLEST-main@CONTRIBUTING.md@.PATH_END.py
{ "filename": "max_pooling2d.py", "repo_name": "fchollet/keras", "repo_path": "keras_extracted/keras-master/keras/src/layers/pooling/max_pooling2d.py", "type": "Python" }
from keras.src.api_export import keras_export from keras.src.layers.pooling.base_pooling import BasePooling @keras_export(["keras.layers.MaxPooling2D", "keras.layers.MaxPool2D"]) class MaxPooling2D(BasePooling): """Max pooling operation for 2D spatial data. Downsamples the input along its spatial dimensions ...
fcholletREPO_NAMEkerasPATH_START.@keras_extracted@keras-master@keras@src@layers@pooling@max_pooling2d.py@.PATH_END.py
{ "filename": "interface.py", "repo_name": "amusecode/amuse", "repo_path": "amuse_extracted/amuse-main/src/amuse/community/huayno/interface.py", "type": "Python" }
from amuse.community import * from amuse.community.interface.gd import GravitationalDynamicsInterface,GravityFieldInterface from amuse.community.interface.gd import GravitationalDynamics,GravityFieldCode class HuaynoInterface(CodeInterface, LiteratureReferencesMixIn, Gravita...
amusecodeREPO_NAMEamusePATH_START.@amuse_extracted@amuse-main@src@amuse@community@huayno@interface.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/icicle/marker/colorbar/tickfont/_variant.py", "type": "Python" }
import _plotly_utils.basevalidators class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="variant", parent_name="icicle.marker.colorbar.tickfont", **kwargs, ): super(VariantValidator, self).__init__( plotl...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@icicle@marker@colorbar@tickfont@_variant.py@.PATH_END.py
{ "filename": "test_misc.py", "repo_name": "PaulHancock/Aegean", "repo_path": "Aegean_extracted/Aegean-main/tests/unit/test_misc.py", "type": "Python" }
#! /usr/bin/env python """ Tests for modules that are too small to warrant their own test suite """ __author__ = 'Paul Hancock' def test_flags(): """Test that the flags import without errors""" import AegeanTools.flags # use a flag if not AegeanTools.flags.FITERR > 0: raise AssertionError("FI...
PaulHancockREPO_NAMEAegeanPATH_START.@Aegean_extracted@Aegean-main@tests@unit@test_misc.py@.PATH_END.py
{ "filename": "_color.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/splom/unselected/marker/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="splom.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@splom@unselected@marker@_color.py@.PATH_END.py
{ "filename": "interactive_config.py", "repo_name": "GeminiDRSoftware/DRAGONS", "repo_path": "DRAGONS_extracted/DRAGONS-master/geminidr/interactive/interactive_config.py", "type": "Python" }
# Adding a central location for any configurable # options we may want. from recipe_system.config import globalConf __all__ = ["interactive_conf", "show_add_aperture_button"] # Hit if we want to show or hide the add aperture button # It was decided to remove it in favor of keystrokes # but at some point I may want...
GeminiDRSoftwareREPO_NAMEDRAGONSPATH_START.@DRAGONS_extracted@DRAGONS-master@geminidr@interactive@interactive_config.py@.PATH_END.py
{ "filename": "can_modify_bolo_props_in_map.py", "repo_name": "CMB-S4/spt3g_software", "repo_path": "spt3g_software_extracted/spt3g_software-master/calibration/tests/can_modify_bolo_props_in_map.py", "type": "Python" }
#!/usr/bin/env python from spt3g import core, calibration # Test that parts of BolometerPropertiesMap are appropriately settable a = calibration.BolometerProperties() a.pol_angle = 3 a.pol_angle += 3 assert(a.pol_angle == 6) b = calibration.BolometerPropertiesMap() b['test'] = a assert(b['test'].pol_angle == 6) b['te...
CMB-S4REPO_NAMEspt3g_softwarePATH_START.@spt3g_software_extracted@spt3g_software-master@calibration@tests@can_modify_bolo_props_in_map.py@.PATH_END.py
{ "filename": "utils.py", "repo_name": "DaneSpaeth/pyoscillot", "repo_path": "pyoscillot_extracted/pyoscillot-main/pyoscillot/utils.py", "type": "Python" }
import numpy as np import matplotlib.pyplot as plt from astropy.convolution import convolve_fft, convolve from astropy.convolution import Gaussian1DKernel from scipy.interpolate import CubicSpline, interp1d from scipy.optimize import curve_fit import subprocess import pandas as pd from numpy.polynomial.polynomial impor...
DaneSpaethREPO_NAMEpyoscillotPATH_START.@pyoscillot_extracted@pyoscillot-main@pyoscillot@utils.py@.PATH_END.py
{ "filename": "gphoton_utils.py", "repo_name": "cmillion/gPhoton", "repo_path": "gPhoton_extracted/gPhoton-master/gPhoton/gphoton_utils.py", "type": "Python" }
""" .. module:: gphoton_utils :synopsis: Read, plot, time conversion, and other functionality useful when dealing with gPhoton data. """ from __future__ import absolute_import, division, print_function # Core and Third Party imports. from astropy.time import Time import scipy.stats import matplotlib.pyplot a...
cmillionREPO_NAMEgPhotonPATH_START.@gPhoton_extracted@gPhoton-master@gPhoton@gphoton_utils.py@.PATH_END.py
{ "filename": "_tickangle.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/splom/marker/colorbar/_tickangle.py", "type": "Python" }
import _plotly_utils.basevalidators class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): def __init__( self, plotly_name="tickangle", parent_name="splom.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, pa...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@splom@marker@colorbar@_tickangle.py@.PATH_END.py
{ "filename": "toy_casa.py", "repo_name": "lucabaldini/ixpeobssim", "repo_path": "ixpeobssim_extracted/ixpeobssim-main/ixpeobssim/examples/toy_casa.py", "type": "Python" }
# Copyright (C) 2016--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 d...
lucabaldiniREPO_NAMEixpeobssimPATH_START.@ixpeobssim_extracted@ixpeobssim-main@ixpeobssim@examples@toy_casa.py@.PATH_END.py
{ "filename": "basic.ipynb", "repo_name": "alibaba/TinyNeuralNetwork", "repo_path": "TinyNeuralNetwork_extracted/TinyNeuralNetwork-main/tutorials/pruning/basic.ipynb", "type": "Jupyter Notebook" }
# Network Pruning Network pruning is a commonly-used technique to speed up your model during inference. We will talk about this topic in this tutorial. ## Basic concept As we all know, the majority of the runtime is attributed to the generic matrix multiply (a.k.a. GEMM) operations. So naturally, the problem comes ou...
alibabaREPO_NAMETinyNeuralNetworkPATH_START.@TinyNeuralNetwork_extracted@TinyNeuralNetwork-main@tutorials@pruning@basic.ipynb@.PATH_END.py
{ "filename": "test_pointing_summary.py", "repo_name": "spacetelescope/jwst", "repo_path": "jwst_extracted/jwst-main/jwst/lib/tests/test_pointing_summary.py", "type": "Python" }
"""Test module pointing_summary""" import sys from pathlib import Path import pytest from astropy.table import Table from astropy.utils.diff import report_diff_values from stdatamodels.jwst.datamodels import ImageModel from jwst.lib import engdb_tools import jwst.lib.pointing_summary as ps DATA_PATH = Path(__file...
spacetelescopeREPO_NAMEjwstPATH_START.@jwst_extracted@jwst-main@jwst@lib@tests@test_pointing_summary.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "astertaylor/SAMUS", "repo_path": "SAMUS_extracted/SAMUS-main/setup.py", "type": "Python" }
from setuptools import setup setup( name='SAMUS', version='0.1.0', description='SAMUS package', url='https://github.com/astertaylor/SAMUS', author='Aster Taylor', author_email='astertaylor@uchicago.edu', license='BSD 2-clause', packages=['SAMUS'], install_requires=['numpy', ...
astertaylorREPO_NAMESAMUSPATH_START.@SAMUS_extracted@SAMUS-main@setup.py@.PATH_END.py
{ "filename": "_hovertemplatesrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/sunburst/_hovertemplatesrc.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="hovertemplatesrc", parent_name="sunburst", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@sunburst@_hovertemplatesrc.py@.PATH_END.py
{ "filename": "atomic.py", "repo_name": "tardis-sn/tardis", "repo_path": "tardis_extracted/tardis-main/tardis/plasma/properties/atomic.py", "type": "Python" }
import logging import numpy as np import pandas as pd from collections import Counter as counter from tardis.plasma.properties.base import ( ProcessingPlasmaProperty, HiddenPlasmaProperty, BaseAtomicDataProperty, ) from tardis.plasma.exceptions import IncompleteAtomicData logger = logging.getLogger(__nam...
tardis-snREPO_NAMEtardisPATH_START.@tardis_extracted@tardis-main@tardis@plasma@properties@atomic.py@.PATH_END.py
{ "filename": "tessilator.py", "repo_name": "alexbinks/tessilator", "repo_path": "tessilator_extracted/tessilator-main/tessilator/tessilator.py", "type": "Python" }
""" Alexander Binks, Moritz Guenther, 2024 License: MIT 2024 The TESSILATOR """ ############################################################################### ####################################IMPORTS#################################### ############################################################################...
alexbinksREPO_NAMEtessilatorPATH_START.@tessilator_extracted@tessilator-main@tessilator@tessilator.py@.PATH_END.py
{ "filename": "mrt.py", "repo_name": "HERA-Team/aipy", "repo_path": "aipy_extracted/aipy-main/aipy/_src/mrt.py", "type": "Python" }
""" The Mauritius Radio Telescope catalog. Can be downloaded from http://www.rri.res.in/surveys/MRT/Catalogues/CatalogueMRTa.txt Copy this file to "CatalogueMRTa.txt" in the _src directory of your AIPY installation. """ from __future__ import print_function, division, absolute_import try: import aipy as a except...
HERA-TeamREPO_NAMEaipyPATH_START.@aipy_extracted@aipy-main@aipy@_src@mrt.py@.PATH_END.py
{ "filename": "s3os2.py", "repo_name": "maxmahlke/classy", "repo_path": "classy_extracted/classy-main/classy/sources/pds/s3os2.py", "type": "Python" }
import pandas as pd import rocks from classy import config from classy import index from classy.sources import pds SHORTBIB, BIBCODE = "Lazzaro+ 2004", "2004Icar..172..179L" DATA_KWARGS = {"names": ["wave", "refl", "refl_err"], "delimiter": r"\s+"} def _build_index(PATH_REPO): """Create index of spectra collec...
maxmahlkeREPO_NAMEclassyPATH_START.@classy_extracted@classy-main@classy@sources@pds@s3os2.py@.PATH_END.py
{ "filename": "test_SolveSIDMprofile_GivenCDMandBaryon.py", "repo_name": "JiangFangzhou/SIDM", "repo_path": "SIDM_extracted/SIDM-main/test_SolveSIDMprofile_GivenCDMandBaryon.py", "type": "Python" }
######################################################################### # Program that solves the Jeans-Poisson equation for the density profile # of SIDM halo in the presence of Hernquist baryon mass distribution. # In this version, we start with a NFW CDM halo of given halo age, as # well as the Henquist baryon...
JiangFangzhouREPO_NAMESIDMPATH_START.@SIDM_extracted@SIDM-main@test_SolveSIDMprofile_GivenCDMandBaryon.py@.PATH_END.py
{ "filename": "test_ii_minus_projected.py", "repo_name": "astropy/halotools", "repo_path": "halotools_extracted/halotools-master/halotools/mock_observables/ia_correlations/tests/test_ii_minus_projected.py", "type": "Python" }
""" Module providing unit-testing for the `~halotools.mock_observables.alignments.w_gminus` function. """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import warnings import pytest from astropy.utils.misc import NumpyRNGContext from ..ii_minus_projected import...
astropyREPO_NAMEhalotoolsPATH_START.@halotools_extracted@halotools-master@halotools@mock_observables@ia_correlations@tests@test_ii_minus_projected.py@.PATH_END.py
{ "filename": "starbase.5.md", "repo_name": "jbroll/starbase", "repo_path": "starbase_extracted/starbase-master/docs/starbase.5.md", "type": "Markdown" }
Starbase Data Table File Format ------------------------------- DESCRIPTION ----------- `starbase` uses an ascii file format used to store relational data base tables with a few magic characters deliniating columns and tables. When the table file format is combined with the starbase filter programs and the i/o libr...
jbrollREPO_NAMEstarbasePATH_START.@starbase_extracted@starbase-master@docs@starbase.5.md@.PATH_END.py
{ "filename": "test_streamlit_callback.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/tests/unit_tests/callbacks/test_streamlit_callback.py", "type": "Python" }
import builtins import unittest from typing import Any from unittest import mock from unittest.mock import MagicMock from langchain_community.callbacks.streamlit import StreamlitCallbackHandler class TestImport(unittest.TestCase): """Test the StreamlitCallbackHandler 'auto-updating' API""" def setUp(self) -...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@tests@unit_tests@callbacks@test_streamlit_callback.py@.PATH_END.py
{ "filename": "sampledynesty.py", "repo_name": "Harry45/DESEMU", "repo_path": "DESEMU_extracted/DESEMU-main/sampledynesty.py", "type": "Python" }
from absl import flags, app from ml_collections.config_flags import config_flags import jax import jax.numpy as jnp import jax_cosmo as jc import jax.scipy.stats.norm as jxnorm from dynesty import NestedSampler # our script from cosmology.bandpowers import get_bandpowers_theory, get_params_vec from sample import load...
Harry45REPO_NAMEDESEMUPATH_START.@DESEMU_extracted@DESEMU-main@sampledynesty.py@.PATH_END.py
{ "filename": "plotBright3Dsmooth.py", "repo_name": "folsomcp/ZDIpy", "repo_path": "ZDIpy_extracted/ZDIpy-main/utils/plotBright3Dsmooth.py", "type": "Python" }
#!/usr/bin/python3 # #Plot a brightness map from a outBrightMap.dat file #plotted in 3D using matplotlib (if possible) import numpy as np try: import core.geometryStellar as geometryStellar import core.brightnessGeom as brightnessGeom import core.mainFuncs as mf except ImportError: #If this is run from...
folsomcpREPO_NAMEZDIpyPATH_START.@ZDIpy_extracted@ZDIpy-main@utils@plotBright3Dsmooth.py@.PATH_END.py
{ "filename": "recursive_text_splitter.ipynb", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/docs/docs/how_to/recursive_text_splitter.ipynb", "type": "Jupyter Notebook" }
--- keywords: [recursivecharactertextsplitter] --- # How to recursively split text by characters This [text splitter](/docs/concepts/text_splitters/) is the recommended one for generic text. It is parameterized by a list of characters. It tries to split on them in order until the chunks are small enough. The default l...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@docs@docs@how_to@recursive_text_splitter.ipynb@.PATH_END.py
{ "filename": "formats.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/astropy/time/formats.py", "type": "Python" }
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import fnmatch import time import re import datetime from collections import OrderedDict import numpy as np from .. impo...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@astropy@time@formats.py@.PATH_END.py
{ "filename": "gpu_ops_test.py", "repo_name": "google/jax", "repo_path": "jax_extracted/jax-main/tests/pallas/gpu_ops_test.py", "type": "Python" }
# Copyright 2023 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@tests@pallas@gpu_ops_test.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop from ._title import Title from . import title else: from _plotly_utils.importers import relative_import __all__, __getattr__, _...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@contour@colorbar@__init__.py@.PATH_END.py
{ "filename": "gppm_fit.py", "repo_name": "JamesKirk11/Tiberius", "repo_path": "Tiberius_extracted/Tiberius-main/src/fitting_utils/gppm_fit.py", "type": "Python" }
#### Author of this code: James Kirk #### Contact: jameskirk@live.co.uk import numpy as np import matplotlib.pyplot as plt import pickle from collections import OrderedDict import argparse from scipy.interpolate import UnivariateSpline as US from global_utils import parseInput from Tiberius.src.fitting_utils import m...
JamesKirk11REPO_NAMETiberiusPATH_START.@Tiberius_extracted@Tiberius-main@src@fitting_utils@gppm_fit.py@.PATH_END.py
{ "filename": "test_mirror.py", "repo_name": "chandra-marx/marxs", "repo_path": "marxs_extracted/marxs-main/marxs/optics/tests/test_mirror.py", "type": "Python" }
# Licensed under GPL version 3 - see LICENSE.rst import numpy as np import pytest from astropy.coordinates import SkyCoord import astropy.units as u from scipy.interpolate import RectBivariateSpline from ... import source, optics from ...math.utils import h2e from marxs.utils import generate_test_photons @pytest.mar...
chandra-marxREPO_NAMEmarxsPATH_START.@marxs_extracted@marxs-main@marxs@optics@tests@test_mirror.py@.PATH_END.py
{ "filename": "kernels.py", "repo_name": "bd-j/prospector", "repo_path": "prospector_extracted/prospector-main/prospect/likelihood/kernels.py", "type": "Python" }
import numpy as np __all__ = ["Kernel", "Uncorrelated", "ExpSquared", "Matern", "PhotoCal", "PhotSamples_MVN"] class Kernel(object): def __init__(self, parnames=[], weight_by=None, name=''): """ :param parnames: A list of names of the kernel params, used to alias the intr...
bd-jREPO_NAMEprospectorPATH_START.@prospector_extracted@prospector-main@prospect@likelihood@kernels.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "thomaswilliamsastro/mcfine", "repo_path": "mcfine_extracted/mcfine-main/README.md", "type": "Markdown" }
# McFine: A tool for hyperfine spectral line fitting [![](https://img.shields.io/pypi/v/mcfine.svg?label=PyPI&style=flat-square)](https://pypi.org/pypi/mcfine/) [![](https://img.shields.io/pypi/pyversions/mcfine.svg?label=Python&color=yellow&style=flat-square)](https://pypi.org/pypi/mcfine/) [![Actions](https://img.sh...
thomaswilliamsastroREPO_NAMEmcfinePATH_START.@mcfine_extracted@mcfine-main@README.md@.PATH_END.py
{ "filename": "_name.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py", "type": "Python" }
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="name", parent_name="layout.ternary.caxis.tickformatstop", **kwargs, ): super(NameValidator, self).__init__( plotly_name=pl...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@ternary@caxis@tickformatstop@_name.py@.PATH_END.py
{ "filename": "_shadow.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/parcats/tickfont/_shadow.py", "type": "Python" }
import _plotly_utils.basevalidators class ShadowValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="shadow", parent_name="parcats.tickfont", **kwargs): super(ShadowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@parcats@tickfont@_shadow.py@.PATH_END.py
{ "filename": "afino_test_script.py", "repo_name": "aringlis/afino_release_version", "repo_path": "afino_release_version_extracted/afino_release_version-master/afino/afino_test_script.py", "type": "Python" }
import afino_start from astropy.io import fits result = fits.open('test_data/flare566801.fits') hdu1 = result[1] flux = hdu1.data['flux'] tt = hdu1.data['time'] tt2 = tt*60 afino_start.analyse_series(tt2,flux,low_frequency_cutoff=10, model_ids = [0,1,2,3], overwrite_gauss_bounds = [(-10.0,...
aringlisREPO_NAMEafino_release_versionPATH_START.@afino_release_version_extracted@afino_release_version-master@afino@afino_test_script.py@.PATH_END.py
{ "filename": "_color.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/densitymapbox/hoverlabel/font/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="densitymapbox.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@densitymapbox@hoverlabel@font@_color.py@.PATH_END.py
{ "filename": "test_units.py", "repo_name": "einsteinpy/einsteinpy", "repo_path": "einsteinpy_extracted/einsteinpy-main/tests/test_units.py", "type": "Python" }
import astropy.units as u import numpy as np from numpy.testing import assert_allclose from einsteinpy.units import primitive def test_primitive(): """ Tests, if quantities are safely being converted into ``numpy.float64`` values """ M = 10 * u.kg a = 0.29 * u.one Q = 1e3 * u.C t = 1e3 ...
einsteinpyREPO_NAMEeinsteinpyPATH_START.@einsteinpy_extracted@einsteinpy-main@tests@test_units.py@.PATH_END.py
{ "filename": "backest_iraf.py", "repo_name": "spacetelescope/stsdas_stripped", "repo_path": "stsdas_stripped_extracted/stsdas_stripped-master/stsdas/pkg/analysis/slitless/axe/backest_iraf.py", "type": "Python" }
import iraf no = iraf.no yes = iraf.yes from axe import axesrc #import axesrc # Point to default parameter file for task _parfile = 'axe$backest.par' _taskname = 'backest' ###### # Set up Python IRAF interface here ###### def backest_iraf(grism, config, np, interp,...
spacetelescopeREPO_NAMEstsdas_strippedPATH_START.@stsdas_stripped_extracted@stsdas_stripped-master@stsdas@pkg@analysis@slitless@axe@backest_iraf.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "zclaytor/kiauhoku", "repo_path": "kiauhoku_extracted/kiauhoku-main/kiauhoku/__init__.py", "type": "Python" }
name = "kiauhoku" from .stargrid import install_grid, load_interpolator, download from .stargrid import load_grid, load_full_grid, load_eep_grid __version__ = "2.0.0"
zclaytorREPO_NAMEkiauhokuPATH_START.@kiauhoku_extracted@kiauhoku-main@kiauhoku@__init__.py@.PATH_END.py
{ "filename": "_color.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scatterpolar/textfont/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="scatterpolar.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=pa...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scatterpolar@textfont@_color.py@.PATH_END.py
{ "filename": "control_flow_grad.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/ops/control_flow_grad.py", "type": "Python" }
# Copyright 2015 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@python@ops@control_flow_grad.py@.PATH_END.py
{ "filename": "_visible.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/funnelarea/_visible.py", "type": "Python" }
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="visible", parent_name="funnelarea", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@funnelarea@_visible.py@.PATH_END.py
{ "filename": "test_set_value.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/frame/indexing/test_set_value.py", "type": "Python" }
import numpy as np import pytest from pandas.core.dtypes.common import is_float_dtype from pandas import ( DataFrame, isna, ) class TestSetValue: def test_set_value(self, float_frame): for idx in float_frame.index: for col in float_frame.columns: float_frame._set_valu...
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@frame@indexing@test_set_value.py@.PATH_END.py
{ "filename": "_hovertextsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/treemap/_hovertextsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="hovertextsrc", parent_name="treemap", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@treemap@_hovertextsrc.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "lenstronomy/lenstronomy", "repo_path": "lenstronomy_extracted/lenstronomy-main/lenstronomy/Conf/__init__.py", "type": "Python" }
lenstronomyREPO_NAMElenstronomyPATH_START.@lenstronomy_extracted@lenstronomy-main@lenstronomy@Conf@__init__.py@.PATH_END.py
{ "filename": "runpython.py", "repo_name": "lsst-uk/lasair-lsst", "repo_path": "lasair-lsst_extracted/lasair-lsst-main/tests/system/api/runpython.py", "type": "Python" }
import json, sys sys.path.append('../../common') import lasair try: import settings token = settings.token except: token = '4b762569bb349bd8d60f1bc7da3f39dbfaefff9a' ra = 194.493 dec = 48.852 objectIds = ['ZTF21aapvmcu', 'ZTF21aaopqqk'] topic = '2SN-likecandidates' L = lasair.lasair_client(token, cache='a...
lsst-ukREPO_NAMElasair-lsstPATH_START.@lasair-lsst_extracted@lasair-lsst-main@tests@system@api@runpython.py@.PATH_END.py
{ "filename": "_line.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_line.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatterpolargl.marker" _path_str = "scatterpolargl.marker.line" _valid_props = { "auto...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@scatterpolargl@marker@_line.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "adamjermyn/Skye", "repo_path": "Skye_extracted/Skye-main/README.md", "type": "Markdown" }
version https://git-lfs.github.com/spec/v1 oid sha256:dc51fcac38d8062aeca8ef56cf63b130b69bf7ae481ca8bc4c3cbcfd0e28e778 size 4783
adamjermynREPO_NAMESkyePATH_START.@Skye_extracted@Skye-main@README.md@.PATH_END.py
{ "filename": "Tutorial-Solving_the_Scalar_Wave_Equation_with_NumPy.ipynb", "repo_name": "zachetienne/nrpytutorial", "repo_path": "nrpytutorial_extracted/nrpytutorial-master/Tutorial-Solving_the_Scalar_Wave_Equation_with_NumPy.ipynb", "type": "Jupyter Notebook" }
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-59152712-8"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-59152712-8'); </script> # NRPy+ Tutorial: Solving the Scalar Wave Equation with `Nu...
zachetienneREPO_NAMEnrpytutorialPATH_START.@nrpytutorial_extracted@nrpytutorial-master@Tutorial-Solving_the_Scalar_Wave_Equation_with_NumPy.ipynb@.PATH_END.py
{ "filename": "objects.Path.ipynb", "repo_name": "mwaskom/seaborn", "repo_path": "seaborn_extracted/seaborn-master/doc/_docstrings/objects.Path.ipynb", "type": "Jupyter Notebook" }
```python import seaborn.objects as so from seaborn import load_dataset healthexp = load_dataset("healthexp").sort_values(["Country", "Year"]) ``` Unlike :class:`Line`, this mark does not sort observations before plotting, making it suitable for plotting trajectories through a variable space: ```python p = so.Plot(hea...
mwaskomREPO_NAMEseabornPATH_START.@seaborn_extracted@seaborn-master@doc@_docstrings@objects.Path.ipynb@.PATH_END.py
{ "filename": "conf.py", "repo_name": "spacetelescope/specview", "repo_path": "specview_extracted/specview-master/docs/conf.py", "type": "Python" }
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst # # Astropy documentation build configuration file. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this file. # # All configurati...
spacetelescopeREPO_NAMEspecviewPATH_START.@specview_extracted@specview-master@docs@conf.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@choroplethmapbox@colorbar@title@__init__.py@.PATH_END.py
{ "filename": "pwe_hfa.py", "repo_name": "spedas/pyspedas", "repo_path": "pyspedas_extracted/pyspedas-master/pyspedas/projects/erg/satellite/erg/pwe/pwe_hfa.py", "type": "Python" }
from pytplot import clip, options, ylim, zlim, get_data from ..load import load from ..get_gatt_ror import get_gatt_ror from typing import List, Optional def pwe_hfa( trange: List[str] = ['2017-04-01', '2017-04-02'], datatype: str = 'spec', mode: str = 'low', level: str = 'l2', suffix: str = '',...
spedasREPO_NAMEpyspedasPATH_START.@pyspedas_extracted@pyspedas-master@pyspedas@projects@erg@satellite@erg@pwe@pwe_hfa.py@.PATH_END.py
{ "filename": "online_tess_science_eleanor.ipynb", "repo_name": "afeinstein20/eleanor", "repo_path": "eleanor_extracted/eleanor-main/notebooks/online_tess_science_eleanor.ipynb", "type": "Jupyter Notebook" }
### Installation - `pip install eleanor` ([eleanor Docs](http://adina.feinste.in/eleanor)) - Through Github ([eleanor GitHub](https://github.com/afeinstein20/eleanor)) ```python import eleanor import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.size'] = 16 ``` ## Step 1: Initiating eleanor.Source ...
afeinstein20REPO_NAMEeleanorPATH_START.@eleanor_extracted@eleanor-main@notebooks@online_tess_science_eleanor.ipynb@.PATH_END.py
{ "filename": "ez_setup.py", "repo_name": "GBTAmmoniaSurvey/GAS", "repo_path": "GAS_extracted/GAS-master/ez_setup.py", "type": "Python" }
#!python """Bootstrap setuptools installation If you want to use setuptools in your package's setup.py, just include this file in the same directory with it, and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() If you want to require a specific version of setuptools...
GBTAmmoniaSurveyREPO_NAMEGASPATH_START.@GAS_extracted@GAS-master@ez_setup.py@.PATH_END.py
{ "filename": "_r0.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/barpolar/_r0.py", "type": "Python" }
import _plotly_utils.basevalidators class R0Validator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="r0", parent_name="barpolar", **kwargs): super(R0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwarg...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@barpolar@_r0.py@.PATH_END.py
{ "filename": "logger.py", "repo_name": "D-arioSpace/astroquery", "repo_path": "astroquery_extracted/astroquery-main/astroquery/logger.py", "type": "Python" }
import logging from astropy.logger import AstropyLogger def _init_log(config=None): """ Initializes the logger, using the AstropyLogger class. """ orig_logger_cls = logging.getLoggerClass() logging.setLoggerClass(AstropyLogger) try: log = logging.getLogger('astroquery') if con...
D-arioSpaceREPO_NAMEastroqueryPATH_START.@astroquery_extracted@astroquery-main@astroquery@logger.py@.PATH_END.py
{ "filename": "_fill.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/volume/spaceframe/_fill.py", "type": "Python" }
import _plotly_utils.basevalidators class FillValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="fill", parent_name="volume.spaceframe", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@volume@spaceframe@_fill.py@.PATH_END.py
{ "filename": "_violin.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/figure_factory/_violin.py", "type": "Python" }
from __future__ import absolute_import from numbers import Number from plotly import exceptions, optional_imports import plotly.colors as clrs from plotly.graph_objs import graph_objs from plotly.subplots import make_subplots pd = optional_imports.get_module("pandas") np = optional_imports.get_module("numpy") scipy_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@figure_factory@_violin.py@.PATH_END.py