metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "test_mlab_envisage.py", "repo_name": "enthought/mayavi", "repo_path": "mayavi_extracted/mayavi-master/integrationtests/mayavi/test_mlab_envisage.py", "type": "Python" }
from mayavi import mlab from pyface.api import GUI def close(): """Close the scene.""" f = mlab.gcf() e = mlab.get_engine() e.window.workbench.prompt_on_exit = False e.window.close() mlab.options.backend = 'auto' # Hack: on Linux the splash screen does not go away so we force it. GUI.in...
enthoughtREPO_NAMEmayaviPATH_START.@mayavi_extracted@mayavi-master@integrationtests@mayavi@test_mlab_envisage.py@.PATH_END.py
{ "filename": "telescope.py", "repo_name": "CASTOR-telescope/ETC", "repo_path": "ETC_extracted/ETC-master/castor_etc/telescope.py", "type": "Python" }
""" Utilities to characterize the telescope parameters. --- GNU General Public License v3 (GNU GPLv3) (c) 2022. (c) 2022. Government of Canada Gouvernement du Canada National Research Council Conseil national de recherches Ottawa, Canada, K1A 0R6 ...
CASTOR-telescopeREPO_NAMEETCPATH_START.@ETC_extracted@ETC-master@castor_etc@telescope.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/scikit-learn/py2/sklearn/externals/setup.py", "type": "Python" }
# -*- coding: utf-8 -*- def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('externals', parent_package, top_path) config.add_subpackage('joblib') return config
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@scikit-learn@py2@sklearn@externals@setup.py@.PATH_END.py
{ "filename": "OrbitalMotion.md", "repo_name": "valboz/VBBinaryLensing", "repo_path": "VBBinaryLensing_extracted/VBBinaryLensing-master/docs/OrbitalMotion.md", "type": "Markdown" }
[Back to **Parallax**](Parallax.md) # Orbital motion Binary lenses orbit around the common center of mass. If the microlensing event is long enough, we should take orbital motion into account. However, to first order, microlensing is only sensitive to changes in the projected separation and orientation of the binary ...
valbozREPO_NAMEVBBinaryLensingPATH_START.@VBBinaryLensing_extracted@VBBinaryLensing-master@docs@OrbitalMotion.md@.PATH_END.py
{ "filename": "ProgressDialog.py", "repo_name": "3fon3fonov/exostriker", "repo_path": "exostriker_extracted/exostriker-main/exostriker/lib/pyqtgraph/widgets/ProgressDialog.py", "type": "Python" }
from time import perf_counter from ..Qt import QtCore, QtGui, QtWidgets __all__ = ['ProgressDialog'] class ProgressDialog(QtWidgets.QProgressDialog): """ Extends QProgressDialog: * Adds context management so the dialog may be used in `with` statements * Allows nesting multiple progress dial...
3fon3fonovREPO_NAMEexostrikerPATH_START.@exostriker_extracted@exostriker-main@exostriker@lib@pyqtgraph@widgets@ProgressDialog.py@.PATH_END.py
{ "filename": "sophie.py", "repo_name": "njcuk9999/lbl", "repo_path": "lbl_extracted/lbl-main/lbl/instruments/sophie.py", "type": "Python" }
#!/usr/bin/env python # -*- coding: utf-8 -*- """ SOPHIE instrument class here: instrument specific settings Created on 2023-06-21 @author: p. larue """ import glob import os from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np from lbl.core import astro from lbl.core import base from lbl.c...
njcuk9999REPO_NAMElblPATH_START.@lbl_extracted@lbl-main@lbl@instruments@sophie.py@.PATH_END.py
{ "filename": "prediction_phase.py", "repo_name": "Zafiirah13/FRBID", "repo_path": "FRBID_extracted/FRBID-master/FRBID_code/prediction_phase.py", "type": "Python" }
#!usr/bin/env python """ Authors : Zafiirah Hosenie Email : zafiirah.hosenie@gmail.com or zafiirah.hosenie@postgrad.manchester.ac.uk Affiliation : The University of Manchester, UK. License : MIT Status : Under Development Description : Python implementation for FRBID: Fast Radio Burst Intelligent Distinguisher. This co...
Zafiirah13REPO_NAMEFRBIDPATH_START.@FRBID_extracted@FRBID-master@FRBID_code@prediction_phase.py@.PATH_END.py
{ "filename": "wigner4.py", "repo_name": "carronj/lenspyx", "repo_path": "lenspyx_extracted/lenspyx-master/lenspyx/tests/wigners/wigner4.py", "type": "Python" }
from __future__ import annotations try: from plancklens.wigners import wigners as wigners_pl except: assert 0, 'cant do this test witout plancklens' import numpy as np from ducc0.misc import GL_thetas from lenspyx.wigners import wigners if __name__ == '__main__': lmax = 5 cl = np.random.standard_norm...
carronjREPO_NAMElenspyxPATH_START.@lenspyx_extracted@lenspyx-master@lenspyx@tests@wigners@wigner4.py@.PATH_END.py
{ "filename": "matrix_inverse_op_test.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/compiler/tests/matrix_inverse_op_test.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@compiler@tests@matrix_inverse_op_test.py@.PATH_END.py
{ "filename": "vel_history.py", "repo_name": "AMReX-Astro/Castro", "repo_path": "Castro_extracted/Castro-main/Exec/science/Detonation/nse_runs/vel_history.py", "type": "Python" }
import glob import os import operator import sys import numpy as np import matplotlib.pyplot as plt import yt yt.funcs.mylog.setLevel(50) class Profile: """read a plotfile using yt and store the 1d profile for T and enuc""" def __init__(self, plotfile): ds = yt.load(plotfile) time = float(...
AMReX-AstroREPO_NAMECastroPATH_START.@Castro_extracted@Castro-main@Exec@science@Detonation@nse_runs@vel_history.py@.PATH_END.py
{ "filename": "collections.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/hypothesis/py2/hypothesis/strategies/_internal/collections.py", "type": "Python" }
# coding=utf-8 # # This file is part of Hypothesis, which may be found at # https://github.com/HypothesisWorks/hypothesis/ # # Most of this work is copyright (C) 2013-2019 David R. MacIver # (david@drmaciver.com), but it contains contributions by others. See # CONTRIBUTING.rst for a full list of people who may hold cop...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@hypothesis@py2@hypothesis@strategies@_internal@collections.py@.PATH_END.py
{ "filename": "_font.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="barpolar.legendgrouptitle", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_nam...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@barpolar@legendgrouptitle@_font.py@.PATH_END.py
{ "filename": "_metasrc.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattersmith/_metasrc.py", "type": "Python" }
import _plotly_utils.basevalidators class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="metasrc", parent_name="scattersmith", **kwargs): super(MetasrcValidator, 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@scattersmith@_metasrc.py@.PATH_END.py
{ "filename": "repeat_test.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/data/kernel_tests/repeat_test.py", "type": "Python" }
# Copyright 2017 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@data@kernel_tests@repeat_test.py@.PATH_END.py
{ "filename": "SpheralPickle.py", "repo_name": "LLNL/spheral", "repo_path": "spheral_extracted/spheral-main/src/PYB11/SpheralPickle.py", "type": "Python" }
#------------------------------------------------------------------------------- # Helper to define methods for pickling/unpickling Spheral types. # This can be important with pyMPI, since pyMPI relies on picking data types # for communication! #--------------------------------------------------------------------------...
LLNLREPO_NAMEspheralPATH_START.@spheral_extracted@spheral-main@src@PYB11@SpheralPickle.py@.PATH_END.py
{ "filename": "plotSettings.py", "repo_name": "mattyowl/fitScalingRelation", "repo_path": "fitScalingRelation_extracted/fitScalingRelation-master/fitScalingRelation/plotSettings.py", "type": "Python" }
""" This module contains global plot settings. For any routine that makes a plot using matplotlib, call plotSettings.update_rcParams() first. """ import pylab as plt import matplotlib as mpl from cycler import cycler #------------------------------------------------------------------------------------------------...
mattyowlREPO_NAMEfitScalingRelationPATH_START.@fitScalingRelation_extracted@fitScalingRelation-master@fitScalingRelation@plotSettings.py@.PATH_END.py
{ "filename": "LIGO_PIcurve.py", "repo_name": "damonge/schNell", "repo_path": "schNell_extracted/schNell-master/plots/LIGO_PIcurve.py", "type": "Python" }
import numpy as np import schnell as snl import matplotlib.pyplot as plt from matplotlib import rc rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']}) rc('text', usetex=True) t_obs = 1 f_ref = 63. nside = 16 obs_time = t_obs*365*24*3600. freqs = np.geomspace(10., 1010., 1010) dets = [s...
damongeREPO_NAMEschNellPATH_START.@schNell_extracted@schNell-master@plots@LIGO_PIcurve.py@.PATH_END.py
{ "filename": "test_regions.py", "repo_name": "marblestation/iSpec", "repo_path": "iSpec_extracted/iSpec-master/ispec/tests/test_regions.py", "type": "Python" }
import os import sys import unittest import numpy as np import tempfile ispec_dir = os.path.dirname(os.path.realpath(__file__)) + "/../../" sys.path.insert(0, os.path.abspath(ispec_dir)) import ispec class TestRegions(unittest.TestCase): def test_find_continuum_regions(self): star_spectrum = ispec.read_...
marblestationREPO_NAMEiSpecPATH_START.@iSpec_extracted@iSpec-master@ispec@tests@test_regions.py@.PATH_END.py
{ "filename": "_font.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="contourcarpet.legendgrouptitle", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, paren...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contourcarpet@legendgrouptitle@_font.py@.PATH_END.py
{ "filename": "fmt.py", "repo_name": "lucabaldini/ixpeobssim", "repo_path": "ixpeobssim_extracted/ixpeobssim-main/ixpeobssim/binning/fmt.py", "type": "Python" }
# Copyright (C) 2015--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@binning@fmt.py@.PATH_END.py
{ "filename": "_colorscale.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattermapbox/marker/_colorscale.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__( self, plotly_name="colorscale", parent_name="scattermapbox.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattermapbox@marker@_colorscale.py@.PATH_END.py
{ "filename": "forward_logging.py", "repo_name": "dmlc/xgboost", "repo_path": "xgboost_extracted/xgboost-master/demo/dask/forward_logging.py", "type": "Python" }
""" Example of forwarding evaluation logs to the client =================================================== The example runs on GPU. Two classes are defined to show how to use Dask builtins to forward the logs to the client process. """ import logging import dask import distributed from dask import array as da from...
dmlcREPO_NAMExgboostPATH_START.@xgboost_extracted@xgboost-master@demo@dask@forward_logging.py@.PATH_END.py
{ "filename": "RUN_TEST.md", "repo_name": "laristra/flecsph", "repo_path": "flecsph_extracted/flecsph-master/doc/RUN_TEST.md", "type": "Markdown" }
TODO : Add description for testing with pars in data/
laristraREPO_NAMEflecsphPATH_START.@flecsph_extracted@flecsph-master@doc@RUN_TEST.md@.PATH_END.py
{ "filename": "redcal_non_redundant_single_time_calibration_no_filter.ipynb", "repo_name": "Ntsikelelo-Charles/Fringe_rate_filters", "repo_path": "Fringe_rate_filters_extracted/Fringe_rate_filters-main/Mutual_coupling_fringe_rate_filters/redcal_non_redundant_single_time_calibration_no_filter.ipynb", "type": "Ju...
# redundant calibration Nick Kern <br> May, 2022 See Dillon et al. 2018 and Dillon et al. 2021 for notes on the degeneracies associated with redundant calibration (1. average amplitude and 2. East-West phase gradient i.e. tip-tilt gradient). See Kern et al. 2020 for an example of how these degenerate terms are calibr...
Ntsikelelo-CharlesREPO_NAMEFringe_rate_filtersPATH_START.@Fringe_rate_filters_extracted@Fringe_rate_filters-main@Mutual_coupling_fringe_rate_filters@redcal_non_redundant_single_time_calibration_no_filter.ipynb@.PATH_END.py
{ "filename": "unraisableexception.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/pytest/py3/_pytest/unraisableexception.py", "type": "Python" }
import sys import traceback import warnings from types import TracebackType from typing import Any from typing import Callable from typing import Generator from typing import Optional from typing import Type import pytest # Copied from cpython/Lib/test/support/__init__.py, with modifications. class catch_unraisable_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@pytest@py3@_pytest@unraisableexception.py@.PATH_END.py
{ "filename": "displaypub.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/ipython/py2/IPython/core/displaypub.py", "type": "Python" }
"""An interface for publishing rich data to frontends. There are two components of the display system: * Display formatters, which take a Python object and compute the representation of the object in various formats (text, HTML, SVG, etc.). * The display publisher that is used to send the representation data to the...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@ipython@py2@IPython@core@displaypub.py@.PATH_END.py
{ "filename": "qtView.py", "repo_name": "samb8s/PsrPopPy", "repo_path": "PsrPopPy_extracted/PsrPopPy-master/bin/old_viewing_software/qtView.py", "type": "Python" }
#!/usr/bin/env python import sys import os import argparse import random import cPickle import numpy as np from PyQt4.QtCore import * from PyQt4.QtGui import * import matplotlib from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import \ FigureCanvasQTAgg as FigCanvas, \ Navigatio...
samb8sREPO_NAMEPsrPopPyPATH_START.@PsrPopPy_extracted@PsrPopPy-master@bin@old_viewing_software@qtView.py@.PATH_END.py
{ "filename": "_sizeref.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattercarpet/marker/_sizeref.py", "type": "Python" }
import _plotly_utils.basevalidators class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="sizeref", parent_name="scattercarpet.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_n...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattercarpet@marker@_sizeref.py@.PATH_END.py
{ "filename": "registry.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/document_loaders/parsers/registry.py", "type": "Python" }
"""Module includes a registry of default parser configurations.""" from langchain_community.document_loaders.base import BaseBlobParser from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser from langchain_community.document_loaders.parsers.msword import MsWordParser from langchain_commun...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@document_loaders@parsers@registry.py@.PATH_END.py
{ "filename": "test_gain_normalizer.py", "repo_name": "LCOGT/banzai", "repo_path": "banzai_extracted/banzai-main/banzai/tests/test_gain_normalizer.py", "type": "Python" }
import pytest import numpy as np from astropy.io.fits import Header from banzai.gain import GainNormalizer from banzai.tests.utils import FakeLCOObservationFrame, FakeCCDData, FakeContext pytestmark = pytest.mark.gain_normalizer test_header = Header({'SATURATE': 35000, 'GAIN': 3.54, ...
LCOGTREPO_NAMEbanzaiPATH_START.@banzai_extracted@banzai-main@banzai@tests@test_gain_normalizer.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/layout/ternary/baxis/__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__, _...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@layout@ternary@baxis@__init__.py@.PATH_END.py
{ "filename": "_showtickprefix.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showtickprefix.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showtickprefix", parent_name="bar.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_na...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@bar@marker@colorbar@_showtickprefix.py@.PATH_END.py
{ "filename": "yaml.py", "repo_name": "jolideco/jolideco", "repo_path": "jolideco_extracted/jolideco-main/jolideco/utils/io/yaml.py", "type": "Python" }
import logging from pathlib import Path log = logging.getLogger(__name__) __all__ = ["to_yaml_str"] def to_yaml_str(data): """Convert dict to YAML string Parameters ---------- data : dict Data dictionary Returns ------- yaml_str : str YAML string """ from ruamel...
jolidecoREPO_NAMEjolidecoPATH_START.@jolideco_extracted@jolideco-main@jolideco@utils@io@yaml.py@.PATH_END.py
{ "filename": "_fgcolorsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="fgcolorsrc", parent_name="funnelarea.marker.pattern", **kwargs, ): super(FgcolorsrcValidator, self).__init__( plotly_na...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@funnelarea@marker@pattern@_fgcolorsrc.py@.PATH_END.py
{ "filename": "model.py", "repo_name": "triton-inference-server/server", "repo_path": "server_extracted/server-main/qa/python_models/pytorch_fp32_fp32/model.py", "type": "Python" }
# Copyright 2020-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 o...
triton-inference-serverREPO_NAMEserverPATH_START.@server_extracted@server-main@qa@python_models@pytorch_fp32_fp32@model.py@.PATH_END.py
{ "filename": "E30not.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/parso/py3/tests/normalizer_issue_files/E30not.py", "type": "Python" }
# Okay class X: pass # Okay def foo(): pass # Okay # -*- coding: utf-8 -*- class X: pass # Okay # -*- coding: utf-8 -*- def foo(): pass # Okay class X: def a(): pass # comment def b(): pass # This is a # ... multi-line comment def c(): pass #...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@parso@py3@tests@normalizer_issue_files@E30not.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "thomasorb/orcs", "repo_path": "orcs_extracted/orcs-master/setup.py", "type": "Python" }
from setuptools import setup, Extension, find_namespace_packages import io import codecs import os import sys import orcs import orcs.version packages = find_namespace_packages(where=".") here = os.path.abspath(os.path.dirname(__file__)) with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long...
thomasorbREPO_NAMEorcsPATH_START.@orcs_extracted@orcs-master@setup.py@.PATH_END.py
{ "filename": "gradients.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/ops/parallel_for/gradients.py", "type": "Python" }
# Copyright 2018 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@parallel_for@gradients.py@.PATH_END.py
{ "filename": "wpcaf_functions.py", "repo_name": "tcassanelli/pywpf", "repo_path": "pywpf_extracted/pywpf-main/pywpf/wpcaf_functions.py", "type": "Python" }
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Tomas Cassanelli import numpy as np from fast_histogram import histogram1d __all__ = [ 'nextpow2', 'flat_region_finder', 'pre_analysis', 'folding', 'folding_fast', 'pca', 'find_period', 'cp_value', 'rms_value' ] def nextpow2(n): """ Use `p...
tcassanelliREPO_NAMEpywpfPATH_START.@pywpf_extracted@pywpf-main@pywpf@wpcaf_functions.py@.PATH_END.py
{ "filename": "_xperiod.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/bar/_xperiod.py", "type": "Python" }
import _plotly_utils.basevalidators class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="xperiod", parent_name="bar", **kwargs): super(XperiodValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@bar@_xperiod.py@.PATH_END.py
{ "filename": "collimator.py", "repo_name": "mtalapinto/moes", "repo_path": "platospec/optics/collimator.py", "type": "Python" }
import numpy as np from . import transform #import compare_zemax def DCcoll(H, DCs, T, r): n = np.zeros([len(H), 3]) DC_out = np.zeros([len(DCs), 3]) H_out = np.zeros([len(H), 3]) old_z_coor = H[:, 2].copy() H[:, 2] = 0 H_comp = H.copy() H = transform.transform(H, -T) DCs = transfo...
mtalapintoREPO_NAMEmoesPATH_START.@platospec@optics@collimator.py@.PATH_END.py
{ "filename": "constants.py", "repo_name": "multiwavelength/redshifts", "repo_path": "redshifts_extracted/redshifts-main/redshifts/constants.py", "type": "Python" }
import yaml from dataclasses import replace, asdict, is_dataclass, field from typing import List from pydantic.dataclasses import dataclass from astropy import units as u class Quantity(u.SpecificTypeQuantity): """ Validation of the types of unit for each parameter, to ensure the right type is being give...
multiwavelengthREPO_NAMEredshiftsPATH_START.@redshifts_extracted@redshifts-main@redshifts@constants.py@.PATH_END.py
{ "filename": "priors.md", "repo_name": "iancze/DiskJockey", "repo_path": "DiskJockey_extracted/DiskJockey-main/docs/src/priors.md", "type": "Markdown" }
# Priors When fitting certain disks, it may be worthwhile to include new information from separate analyses. For example, when fitting multiple CO transitions, it may be worthwhile to make priors that constrain the temperature profile. Because flexible priors like these are difficult to "hard-code" into the package, ...
ianczeREPO_NAMEDiskJockeyPATH_START.@DiskJockey_extracted@DiskJockey-main@docs@src@priors.md@.PATH_END.py
{ "filename": "common.py", "repo_name": "CobayaSampler/cobaya", "repo_path": "cobaya_extracted/cobaya-master/tests/common.py", "type": "Python" }
import sys import os from io import StringIO from contextlib import contextmanager def is_ci_test(): return os.environ.get('GITHUB_ACTIONS') == 'true' def process_packages_path(packages_path) -> str: packages_path = os.getenv('COBAYA_FORCE_PACKAGES_PATH', packages_path) if not packages_path: if ...
CobayaSamplerREPO_NAMEcobayaPATH_START.@cobaya_extracted@cobaya-master@tests@common.py@.PATH_END.py
{ "filename": "_size.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/newshape/label/font/_size.py", "type": "Python" }
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="layout.newshape.label.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@newshape@label@font@_size.py@.PATH_END.py
{ "filename": "charged_particle_radiography_particle_tracing_custom_source.ipynb", "repo_name": "PlasmaPy/PlasmaPy", "repo_path": "PlasmaPy_extracted/PlasmaPy-main/docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_custom_source.ipynb", "type": "Jupyter Notebook" }
# Synthetic Radiographs with Custom Source Profiles [Tracker]: ../../api/plasmapy.diagnostics.charged_particle_radiography.synthetic_radiography.Tracker.rst#plasmapy.diagnostics.charged_particle_radiography.synthetic_radiography.Tracker In real charged particle radiography experiments, the finite size and distributio...
PlasmaPyREPO_NAMEPlasmaPyPATH_START.@PlasmaPy_extracted@PlasmaPy-main@docs@notebooks@diagnostics@charged_particle_radiography_particle_tracing_custom_source.ipynb@.PATH_END.py
{ "filename": "_align.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/table/header/_align.py", "type": "Python" }
import _plotly_utils.basevalidators class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="align", parent_name="table.header", **kwargs): super(AlignValidator, 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@table@header@_align.py@.PATH_END.py
{ "filename": "test_precompute_expn_asy.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/scipy/special/tests/test_precompute_expn_asy.py", "type": "Python" }
from __future__ import division, print_function, absolute_import from numpy.testing import assert_equal from scipy.special._testutils import check_version, MissingModule from scipy.special._precompute.expn_asy import generate_A try: import sympy from sympy import Poly except ImportError: sympy = MissingM...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@scipy@special@tests@test_precompute_expn_asy.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "sfschen/spinosaurus", "repo_path": "spinosaurus_extracted/spinosaurus-main/spinosaurus/__init__.py", "type": "Python" }
sfschenREPO_NAMEspinosaurusPATH_START.@spinosaurus_extracted@spinosaurus-main@spinosaurus@__init__.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "nuc-astro/winnet", "repo_path": "winnet_extracted/winnet-master/data/Example_data/Example_NSM_dyn_ejecta_ns10ns10_rosswog/README.md", "type": "Markdown" }
### r-process example When using the data in this folder please read and cite the following literature. #### Literature - [Korobkin O., Rosswog S., Arcones A., Winteler C., 2012, MNRAS, 426, 1940. doi:10.1111/j.1365-2966.2012.21859.x](https://ui.adsabs.harvard.edu/abs/2012MNRAS.426.1940K/abstract) - [Rosswog S., Piran ...
nuc-astroREPO_NAMEwinnetPATH_START.@winnet_extracted@winnet-master@data@Example_data@Example_NSM_dyn_ejecta_ns10ns10_rosswog@README.md@.PATH_END.py
{ "filename": "analytical_functions.py", "repo_name": "miguelcarcamov/csromer", "repo_path": "csromer_extracted/csromer-master/src/csromer/utils/analytical_functions.py", "type": "Python" }
from abc import ABC, ABCMeta, abstractmethod import numpy as np class Function1D(metaclass=ABCMeta): def __init__(self, x=None): if x is not None: self.x = x else: self.x = np.array([]) @abstractmethod def run(self): return class Gaussian(Function1D, AB...
miguelcarcamovREPO_NAMEcsromerPATH_START.@csromer_extracted@csromer-master@src@csromer@utils@analytical_functions.py@.PATH_END.py
{ "filename": "pg2010.py", "repo_name": "gregreen/dustmaps", "repo_path": "dustmaps_extracted/dustmaps-master/dustmaps/pg2010.py", "type": "Python" }
#!/usr/bin/env python # # pg2010.py # Reads the Peek & Graves (2010) correction to the SFD'98 dust reddening map. # # Copyright (C) 2018 Gregory M. Green # # 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 F...
gregreenREPO_NAMEdustmapsPATH_START.@dustmaps_extracted@dustmaps-master@dustmaps@pg2010.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "cmccully/astroscrappy", "repo_path": "astroscrappy_extracted/astroscrappy-master/astroscrappy/tests/__init__.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module contains package tests. """
cmccullyREPO_NAMEastroscrappyPATH_START.@astroscrappy_extracted@astroscrappy-master@astroscrappy@tests@__init__.py@.PATH_END.py
{ "filename": "plotting.py", "repo_name": "arjunsavel/SImMER", "repo_path": "SImMER_extracted/SImMER-main/src/simmer/plotting.py", "type": "Python" }
""" Module that controls all plotting performed by SImMER. Largely involves checking user input via a yml file, checking it against a schema, and performing corresponding Matplotlib plotting. """ import matplotlib.colors as co import matplotlib.pyplot as plt import numpy as np from .schemas import read_yml as read i...
arjunsavelREPO_NAMESImMERPATH_START.@SImMER_extracted@SImMER-main@src@simmer@plotting.py@.PATH_END.py
{ "filename": "write_to_npy.py", "repo_name": "catrionamurray/occultence", "repo_path": "occultence_extracted/occultence-main/occultence/write/write_to_npy.py", "type": "Python" }
from ..imports import * from ..version import version def to_rainbow_npy(self, filepath, **kw): """ Write a LightCurve to a file in the .lightcurve.npy format. Parameters ---------- self : LightCurve The object to be saved. filepath : str The path to the file to write. ""...
catrionamurrayREPO_NAMEoccultencePATH_START.@occultence_extracted@occultence-main@occultence@write@write_to_npy.py@.PATH_END.py
{ "filename": "correlation_function.py", "repo_name": "cosmodesi/pycorr", "repo_path": "pycorr_extracted/pycorr-main/pycorr/correlation_function.py", "type": "Python" }
"""Implements high-level interface to estimate 2-point correlation function.""" import time import logging from .twopoint_estimator import get_twopoint_estimator, TwoPointEstimator from .twopoint_counter import TwoPointCounter, AnalyticTwoPointCounter from .twopoint_jackknife import JackknifeTwoPointCounter def Two...
cosmodesiREPO_NAMEpycorrPATH_START.@pycorr_extracted@pycorr-main@pycorr@correlation_function.py@.PATH_END.py
{ "filename": "_labels.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/sunburst/_labels.py", "type": "Python" }
import _plotly_utils.basevalidators class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="labels", parent_name="sunburst", **kwargs): super(LabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@sunburst@_labels.py@.PATH_END.py
{ "filename": "_colorscale.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorscale.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__( self, plotly_name="colorscale", parent_name="scatter3d.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scatter3d@marker@line@_colorscale.py@.PATH_END.py
{ "filename": "_fork_pty.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/ptyprocess/py2/ptyprocess/_fork_pty.py", "type": "Python" }
"""Substitute for the forkpty system call, to support Solaris. """ import os import errno from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD) from .util import PtyProcessError def fork_pty(): '''This implements a substitute for the forkpty system call. This should be more portable than the pty...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@ptyprocess@py2@ptyprocess@_fork_pty.py@.PATH_END.py
{ "filename": "sequence_inn.py", "repo_name": "vislearn/FrEIA", "repo_path": "FrEIA_extracted/FrEIA-master/FrEIA/framework/sequence_inn.py", "type": "Python" }
from typing import Iterable, Tuple, List, Union import torch.nn as nn import torch from torch import Tensor from FrEIA.modules import InvertibleModule from FrEIA.modules.inverse import Inverse class SequenceINN(InvertibleModule): """ Simpler than FrEIA.framework.GraphINN: Only supports a sequential seri...
vislearnREPO_NAMEFrEIAPATH_START.@FrEIA_extracted@FrEIA-master@FrEIA@framework@sequence_inn.py@.PATH_END.py
{ "filename": "_y.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/splom/marker/colorbar/_y.py", "type": "Python" }
import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="y", parent_name="splom.marker.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ed...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@splom@marker@colorbar@_y.py@.PATH_END.py
{ "filename": "_hovertemplate.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scatter/_hovertemplate.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertemplate", parent_name="scatter", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scatter@_hovertemplate.py@.PATH_END.py
{ "filename": "_hoverinfo.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/streamtube/_hoverinfo.py", "type": "Python" }
import _plotly_utils.basevalidators class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="hoverinfo", parent_name="streamtube", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name,...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@streamtube@_hoverinfo.py@.PATH_END.py
{ "filename": "get_goes_flare_events.py", "repo_name": "jmason86/James-s-EVE-Dimming-Index-JEDI", "repo_path": "James-s-EVE-Dimming-Index-JEDI_extracted/James-s-EVE-Dimming-Index-JEDI-master/get_goes_flare_events.py", "type": "Python" }
# Standard modules import numpy as np from sunpy.instr.goes import get_goes_event_list from sunpy.time import TimeRange # Custom modules from jpm_time_conversions import metatimes_to_human from jpm_logger import JpmLogger __author__ = 'James Paul Mason' __contact__ = 'jmason86@gmail.com' def get_goes_flare_events(s...
jmason86REPO_NAMEJames-s-EVE-Dimming-Index-JEDIPATH_START.@James-s-EVE-Dimming-Index-JEDI_extracted@James-s-EVE-Dimming-Index-JEDI-master@get_goes_flare_events.py@.PATH_END.py
{ "filename": "athena_importer.py", "repo_name": "xraypy/xraylarch", "repo_path": "xraylarch_extracted/xraylarch-master/larch/wxlib/athena_importer.py", "type": "Python" }
#!/usr/bin/env python """ Athena Project Importer """ import os import numpy as np np.seterr(all='ignore') import wx import larch from larch import Group from larch.io import read_athena # from .colors import COLORS, set_color from wxutils import (SimpleText, Button, Choice, FileCheckList, FileD...
xraypyREPO_NAMExraylarchPATH_START.@xraylarch_extracted@xraylarch-master@larch@wxlib@athena_importer.py@.PATH_END.py
{ "filename": "Config.py", "repo_name": "wmpg/WesternMeteorPyLib", "repo_path": "WesternMeteorPyLib_extracted/WesternMeteorPyLib-master/wmpl/Config.py", "type": "Python" }
""" Configuration for running the library. It is loaded by several modules to read in the default settings. """ from __future__ import print_function, division, absolute_import import os import sys if sys.version_info.major < 3: import urllib as urllibrary else: import urllib.request as urllibrary import...
wmpgREPO_NAMEWesternMeteorPyLibPATH_START.@WesternMeteorPyLib_extracted@WesternMeteorPyLib-master@wmpl@Config.py@.PATH_END.py
{ "filename": "whitespace.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/pip/vendor/html5lib/filters/whitespace.py", "type": "Python" }
from __future__ import absolute_import, division, unicode_literals import re from . import _base from ..constants import rcdataElements, spaceCharacters spaceCharacters = "".join(spaceCharacters) SPACES_REGEX = re.compile("[%s]+" % spaceCharacters) class Filter(_base.Filter): spacePreserveElements = frozenset...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@pip@vendor@html5lib@filters@whitespace.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "paumard/cubefit", "repo_path": "cubefit_extracted/cubefit-main/examples/README.md", "type": "Markdown" }
# Sample usage of CubeFit Scripts in this directory give examples of how CubeFit can be used. They can be used as tests of the code that are too complex/time consuming to go in the unit test suite. Developpers should run them regurlarly.
paumardREPO_NAMEcubefitPATH_START.@cubefit_extracted@cubefit-main@examples@README.md@.PATH_END.py
{ "filename": "Ivezic_2014_SNR.ipynb", "repo_name": "LSSTDESC/WeakLensingDeblending", "repo_path": "WeakLensingDeblending_extracted/WeakLensingDeblending-master/notebooks/Ivezic_2014_SNR.ipynb", "type": "Jupyter Notebook" }
There is more documentation in here: http://smtn-002.lsst.io/en/latest/ and here: https://docushare.lsstcorp.org/docushare/dsweb/Get/LSE-40 ```python %pylab inline ``` Populating the interactive namespace from numpy and matplotlib ```python import astropy.table import astropy.io.fits as fits ``` ```python f...
LSSTDESCREPO_NAMEWeakLensingDeblendingPATH_START.@WeakLensingDeblending_extracted@WeakLensingDeblending-master@notebooks@Ivezic_2014_SNR.ipynb@.PATH_END.py
{ "filename": "fit_mcmc.py", "repo_name": "franciscovillaescusa/Pylians", "repo_path": "Pylians_extracted/Pylians-master/Examples/fit_mcmc.py", "type": "Python" }
# This scripts is an example of a MCMC fit. We generate points from a linear law # y = a*x+b and we add noise to them. We then try to obtain the values of a and b # from the data import numpy as np import emcee,corner from scipy.optimize import minimize import sys,os # This function returns the predicted y-values for...
franciscovillaescusaREPO_NAMEPyliansPATH_START.@Pylians_extracted@Pylians-master@Examples@fit_mcmc.py@.PATH_END.py
{ "filename": "resnet_block.py", "repo_name": "felixyu7/nt_mlreco", "repo_path": "nt_mlreco_extracted/nt_mlreco-main/networks/common/resnet_block.py", "type": "Python" }
""" resnet_block.py - Sparse submanifold resnet blocks implemented with MinkowskiEngine Felix J. Yu """ import torch.nn as nn import torch import MinkowskiEngine as ME class Identity(nn.Module): def __init__(self): super(Identity, self).__init__() def forward(self, input): return input cl...
felixyu7REPO_NAMEnt_mlrecoPATH_START.@nt_mlreco_extracted@nt_mlreco-main@networks@common@resnet_block.py@.PATH_END.py
{ "filename": "_b.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/layout/slider/pad/_b.py", "type": "Python" }
import _plotly_utils.basevalidators class BValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="b", parent_name="layout.slider.pad", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_t...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@layout@slider@pad@_b.py@.PATH_END.py
{ "filename": "TestSupernovaStokesV.py", "repo_name": "saopicc/DDFacet", "repo_path": "DDFacet_extracted/DDFacet-master/DDFacet/Tests/ShortAcceptanceTests/TestSupernovaStokesV.py", "type": "Python" }
''' DDFacet, a facet-based radio imaging package Copyright (C) 2013-2016 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 by the Free Software Foundation; eit...
saopiccREPO_NAMEDDFacetPATH_START.@DDFacet_extracted@DDFacet-master@DDFacet@Tests@ShortAcceptanceTests@TestSupernovaStokesV.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "gammapy/gammapy", "repo_path": "gammapy_extracted/gammapy-main/docs/conf.py", "type": "Python" }
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst # # Gammapy 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...
gammapyREPO_NAMEgammapyPATH_START.@gammapy_extracted@gammapy-main@docs@conf.py@.PATH_END.py
{ "filename": "multinomial_test.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/kernel_tests/distributions/multinomial_test.py", "type": "Python" }
# Copyright 2016 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@kernel_tests@distributions@multinomial_test.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/carpet/font/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="style", parent_name="carpet.font", **kwargs): super(StyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@carpet@font@_style.py@.PATH_END.py
{ "filename": "test_bls.py", "repo_name": "astropy/astropy", "repo_path": "astropy_extracted/astropy-main/astropy/timeseries/periodograms/bls/tests/test_bls.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest from numpy.testing import assert_allclose, assert_equal from astropy import units as u from astropy.tests.helper import assert_quantity_allclose from astropy.time import Time, TimeDelta from astropy.timeseries.periodogram...
astropyREPO_NAMEastropyPATH_START.@astropy_extracted@astropy-main@astropy@timeseries@periodograms@bls@tests@test_bls.py@.PATH_END.py
{ "filename": "dynamicvariables.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/hypothesis/py2/hypothesis/utils/dynamicvariables.py", "type": "Python" }
# coding=utf-8 # # This file is part of Hypothesis, which may be found at # https://github.com/HypothesisWorks/hypothesis/ # # Most of this work is copyright (C) 2013-2019 David R. MacIver # (david@drmaciver.com), but it contains contributions by others. See # CONTRIBUTING.rst for a full list of people who may hold cop...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@hypothesis@py2@hypothesis@utils@dynamicvariables.py@.PATH_END.py
{ "filename": "_font.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/indicator/delta/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="font", parent_name="indicator.delta", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@indicator@delta@_font.py@.PATH_END.py
{ "filename": "_text.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/cone/colorbar/title/_text.py", "type": "Python" }
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="text", parent_name="cone.colorbar.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@cone@colorbar@title@_text.py@.PATH_END.py
{ "filename": "setupext.py", "repo_name": "rennehan/yt-swift", "repo_path": "yt-swift_extracted/yt-swift-main/setupext.py", "type": "Python" }
import contextlib import glob import logging import os import platform import shutil import subprocess import sys import tempfile from textwrap import dedent from concurrent.futures import ThreadPoolExecutor from distutils.ccompiler import CCompiler, new_compiler from distutils.sysconfig import customize_compiler from ...
rennehanREPO_NAMEyt-swiftPATH_START.@yt-swift_extracted@yt-swift-main@setupext.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "spacetelescope/jwst", "repo_path": "jwst_extracted/jwst-main/jwst/associations/generator/__init__.py", "type": "Python" }
from .generate import generate
spacetelescopeREPO_NAMEjwstPATH_START.@jwst_extracted@jwst-main@jwst@associations@generator@__init__.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "tiberioap/grav_waldo", "repo_path": "grav_waldo_extracted/grav_waldo-main/README.md", "type": "Markdown" }
# **Waveform AnomaLy DetectOr (WALDO)** [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7127963.svg)](https://doi.org/10.5281/zenodo.7127963) [![PyPI Version](https://img.shields.io/pypi/v/grav-waldo?color=)](https://pypi.org/project/grav-waldo/) [![Orcid](https://img.shields.io/badge/orcid-A6CE39?style=flat&logo=...
tiberioapREPO_NAMEgrav_waldoPATH_START.@grav_waldo_extracted@grav_waldo-main@README.md@.PATH_END.py
{ "filename": "test_st_run.py", "repo_name": "simonsobs/nextline-rdb", "repo_path": "nextline-rdb_extracted/nextline-rdb-main/src/nextline_rdb/alembic/models/rev_f3edea6dbde2/strategies/tests/test_st_run.py", "type": "Python" }
from hypothesis import Phase, given, settings from hypothesis import strategies as st from nextline_rdb.db import DB from nextline_rdb.utils import class_name_and_primary_keys_of, load_all from nextline_test_utils import safe_compare as sc from nextline_test_utils.strategies import ( st_datetimes, st_graphql_i...
simonsobsREPO_NAMEnextline-rdbPATH_START.@nextline-rdb_extracted@nextline-rdb-main@src@nextline_rdb@alembic@models@rev_f3edea6dbde2@strategies@tests@test_st_run.py@.PATH_END.py
{ "filename": "_token.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattersmith/stream/_token.py", "type": "Python" }
import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="token", parent_name="scattersmith.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=par...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattersmith@stream@_token.py@.PATH_END.py
{ "filename": "test_jwstdata.py", "repo_name": "D-arioSpace/astroquery", "repo_path": "astroquery_extracted/astroquery-main/astroquery/esa/jwst/tests/test_jwstdata.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ================ eJWST DATA Tests ================ European Space Astronomy Centre (ESAC) European Space Agency (ESA) """ import os import pytest from requests import HTTPError from astroquery.esa.jwst.tests.DummyTapHandler import DummyTapHandler fr...
D-arioSpaceREPO_NAMEastroqueryPATH_START.@astroquery_extracted@astroquery-main@astroquery@esa@jwst@tests@test_jwstdata.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "nichollsh/AGNI", "repo_path": "AGNI_extracted/AGNI-main/README.md", "type": "Markdown" }
<h1 align="center"> <div> <img src="docs/src/assets/logo_title.svg" style="vertical-align: middle;" width="22%"/> </div> </h1> <p align="center"> <a href="https://github.com/nichollsh/AGNI/actions/workflows/install_and_test.yml"> <img src="https://github.com/nichollsh/AGNI/actions/workflows/insta...
nichollshREPO_NAMEAGNIPATH_START.@AGNI_extracted@AGNI-main@README.md@.PATH_END.py
{ "filename": "test_callee.py", "repo_name": "crossbario/crossbar", "repo_path": "crossbar_extracted/crossbar-master/crossbar/bridge/rest/test/test_callee.py", "type": "Python" }
##################################################################################### # # Copyright (c) typedef int GmbH # SPDX-License-Identifier: EUPL-1.2 # ##################################################################################### from twisted.web.http_headers import Headers from twisted.internet.defer...
crossbarioREPO_NAMEcrossbarPATH_START.@crossbar_extracted@crossbar-master@crossbar@bridge@rest@test@test_callee.py@.PATH_END.py
{ "filename": "_tickformatstopdefaults.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py", "type": "Python" }
import _plotly_utils.basevalidators class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="tickformatstopdefaults", parent_name="layout.ternary.aaxis", **kwargs, ): super(TickformatstopdefaultsValidator, s...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@ternary@aaxis@_tickformatstopdefaults.py@.PATH_END.py
{ "filename": "_sizesrc.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py", "type": "Python" }
import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="sizesrc", parent_name="waterfall.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@waterfall@hoverlabel@font@_sizesrc.py@.PATH_END.py
{ "filename": "_spherical_bessel.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/scipy/special/_spherical_bessel.py", "type": "Python" }
from __future__ import division, print_function, absolute_import from ._ufuncs import (_spherical_jn, _spherical_yn, _spherical_in, _spherical_kn, _spherical_jn_d, _spherical_yn_d, _spherical_in_d, _spherical_kn_d) def spherical_jn(n, z, derivative=False): r"""Spherical...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@scipy@special@_spherical_bessel.py@.PATH_END.py
{ "filename": "_size.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/contour/textfont/_size.py", "type": "Python" }
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="size", parent_name="contour.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@contour@textfont@_size.py@.PATH_END.py
{ "filename": "rfi_pipeline.py", "repo_name": "CHIME-Pulsar-Timing/CHIME-Pulsar_automated_filterbank", "repo_path": "CHIME-Pulsar_automated_filterbank_extracted/CHIME-Pulsar_automated_filterbank-main/rfi_pipeline.py", "type": "Python" }
# ## Import stuff import numpy as np import matplotlib matplotlib.use('pdf') from matplotlib import pyplot as plt import copy from collections.abc import Iterable from presto_without_presto import rfifind from iqrm import iqrm_mask from rfifind_numpy_tools import write_new_mask_from import sys import argparse from...
CHIME-Pulsar-TimingREPO_NAMECHIME-Pulsar_automated_filterbankPATH_START.@CHIME-Pulsar_automated_filterbank_extracted@CHIME-Pulsar_automated_filterbank-main@rfi_pipeline.py@.PATH_END.py
{ "filename": "_thickness.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/parcats/line/colorbar/_thickness.py", "type": "Python" }
import _plotly_utils.basevalidators class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="thickness", parent_name="parcats.line.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, p...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@parcats@line@colorbar@_thickness.py@.PATH_END.py
{ "filename": "CosmoMCImportanceSampler.py", "repo_name": "ja-vazquez/SimpleMC", "repo_path": "SimpleMC_extracted/SimpleMC-master/simplemc/tools/CosmoMCImportanceSampler.py", "type": "Python" }
# # # This module importance samples a cosmomc chain. # # from random import * from math import * import numpy as np import os.path as path from simplemc.cosmo.Parameter import * class CosmoMCImportanceSampler: def __init__(self, inroot, outroot, like): self.dtype = [] self.dtype.append(('weight',...
ja-vazquezREPO_NAMESimpleMCPATH_START.@SimpleMC_extracted@SimpleMC-master@simplemc@tools@CosmoMCImportanceSampler.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "temken/DarkARC", "repo_path": "DarkARC_extracted/DarkARC-master/data/integration_methods_1/README.md", "type": "Markdown" }
This folder will contain the tables of the optimal integration method for the evaluation of I_1(k^prime,q).
temkenREPO_NAMEDarkARCPATH_START.@DarkARC_extracted@DarkARC-master@data@integration_methods_1@README.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/indicator/delta/font/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator from ._textcase import TextcaseValidator from ._style import StyleValidator from ._size import SizeValidator from ._shadow impor...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@indicator@delta@font@__init__.py@.PATH_END.py
{ "filename": "_variantsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="variantsrc", parent_name="waterfall.hoverlabel.font", **kwargs, ): super(VariantsrcValidator, self).__init__( plotly_na...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@waterfall@hoverlabel@font@_variantsrc.py@.PATH_END.py
{ "filename": "_bgcolor.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py", "type": "Python" }
import _plotly_utils.basevalidators class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bgcolor", parent_name="scatterpolargl.marker.colorbar", **kwargs, ): super(BgcolorValidator, self).__init__( plotly_name...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scatterpolargl@marker@colorbar@_bgcolor.py@.PATH_END.py
{ "filename": "_selected.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/choroplethmapbox/_selected.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.selected" _valid_props = {"marker"} #...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@choroplethmapbox@_selected.py@.PATH_END.py