metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "attribute.py", "repo_name": "rhayes777/PyAutoFit", "repo_path": "PyAutoFit_extracted/PyAutoFit-main/autofit/database/query/query/attribute.py", "type": "Python" }
from autofit.database.query import condition as c from .abstract import AbstractQuery class AttributeQuery(AbstractQuery): @property def fit_query(self) -> str: """ The SQL string produced by this query. This is applied directly to the database. """ return f"SELECT id FROM fit...
rhayes777REPO_NAMEPyAutoFitPATH_START.@PyAutoFit_extracted@PyAutoFit-main@autofit@database@query@query@attribute.py@.PATH_END.py
{ "filename": "_real.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattersmith/_real.py", "type": "Python" }
import _plotly_utils.basevalidators class RealValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="real", parent_name="scattersmith", **kwargs): super(RealValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattersmith@_real.py@.PATH_END.py
{ "filename": "_showticksuffix.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showticksuffix", parent_name="scattersmith.marker.colorbar", **kwargs, ): super(ShowticksuffixValidator, self).__init__(...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattersmith@marker@colorbar@_showticksuffix.py@.PATH_END.py
{ "filename": "rodata2asm.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/build/scripts/rodata2asm.py", "type": "Python" }
import os import argparse def main(): parser = argparse.ArgumentParser(description='Convert rodata into asm source with embedded file content') parser.add_argument('symbol', help='symvol name exported from generated filr') parser.add_argument('rodata', help='input .rodata file path') parser.add_argume...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@build@scripts@rodata2asm.py@.PATH_END.py
{ "filename": "core.py", "repo_name": "aburgasser/splat", "repo_path": "splat_extracted/splat-main/splat/core.py", "type": "Python" }
# -*- coding: utf-8 -*- from __future__ import print_function # imports - internal import copy import bz2 import glob import gzip import os import shutil import sys import warnings # imports - external import matplotlib #try: matplotlib.use('agg') #except: pass import matplotlib.pyplot as plt import numpy import pand...
aburgasserREPO_NAMEsplatPATH_START.@splat_extracted@splat-main@splat@core.py@.PATH_END.py
{ "filename": "feature_request.md", "repo_name": "HERA-Team/matvis", "repo_path": "matvis_extracted/matvis-main/.github/ISSUE_TEMPLATE/feature_request.md", "type": "Markdown" }
--- name: Feature request about: Suggest an idea for this project title: "[Feature Req]" labels: 'Type: feature' assignees: steven-murray --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the ...
HERA-TeamREPO_NAMEmatvisPATH_START.@matvis_extracted@matvis-main@.github@ISSUE_TEMPLATE@feature_request.md@.PATH_END.py
{ "filename": "time_domain.py", "repo_name": "miguelzuma/GLoW_public", "repo_path": "GLoW_public_extracted/GLoW_public-main/time_domain.py", "type": "Python" }
# # GLoW - time_domain.py # # Copyright (C) 2023, Hector Villarrubia-Rojo # # 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 versi...
miguelzumaREPO_NAMEGLoW_publicPATH_START.@GLoW_public_extracted@GLoW_public-main@time_domain.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "crossbario/crossbar", "repo_path": "crossbar_extracted/crossbar-master/crossbar/master/api/__init__.py", "type": "Python" }
############################################################################### # # Crossbar.io Master # Copyright (c) typedef int GmbH. Licensed under EUPLv1.2. # ############################################################################### from typing import List, Union # noqa from crossbar.master.api.remote imp...
crossbarioREPO_NAMEcrossbarPATH_START.@crossbar_extracted@crossbar-master@crossbar@master@api@__init__.py@.PATH_END.py
{ "filename": "aleph_alpha.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/langchain/langchain/embeddings/aleph_alpha.py", "type": "Python" }
from typing import TYPE_CHECKING, Any from langchain._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ( AlephAlphaAsymmetricSemanticEmbedding, AlephAlphaSymmetricSemanticEmbedding, ) # Create a way to dynamically look up deprecated imports. # Used to co...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@langchain@langchain@embeddings@aleph_alpha.py@.PATH_END.py
{ "filename": "data_inspect_2458058.ipynb", "repo_name": "HERA-Team/H1C_IDR3_Notebooks", "repo_path": "H1C_IDR3_Notebooks-main/data_inspect/data_inspect_2458058.ipynb", "type": "Jupyter Notebook" }
```python import matplotlib import matplotlib.pyplot as plt from matplotlib.ticker import FormatStrFormatter import matplotlib.patches as mpatches import matplotlib.gridspec as gridspec import numpy as np from pyuvdata import UVCal, UVData import os import sys import glob import uvtools as uvt from astropy.time import ...
HERA-TeamREPO_NAMEH1C_IDR3_NotebooksPATH_START.@H1C_IDR3_Notebooks-main@data_inspect@data_inspect_2458058.ipynb@.PATH_END.py
{ "filename": "st_trace.py", "repo_name": "simonsobs/nextline-rdb", "repo_path": "nextline-rdb_extracted/nextline-rdb-main/src/nextline_rdb/alembic/models/rev_4dc6a93dfed8/strategies/st_trace.py", "type": "Python" }
from collections.abc import Iterable from typing import Callable, Optional, cast from hypothesis import strategies as st from nextline_test_utils.strategies import st_graphql_ints, st_none_or from .. import Run, Trace from .st_run import st_model_run from .utils import st_started_at_ended_at @st.composite def st_m...
simonsobsREPO_NAMEnextline-rdbPATH_START.@nextline-rdb_extracted@nextline-rdb-main@src@nextline_rdb@alembic@models@rev_4dc6a93dfed8@strategies@st_trace.py@.PATH_END.py
{ "filename": "sexcatalog.py", "repo_name": "spacetelescope/stsdas_stripped", "repo_path": "stsdas_stripped_extracted/stsdas_stripped-master/stsdas/python/sexcatalog.py", "type": "Python" }
# ====================================================================== # # Cosmograil: cosmograil.tools.sexcatalog # # sexcatalog module. # # Author: Laurent Le Guillou <laurentl@ster.kuleuven.ac.be> # # $Id: sexcatalog.py,v 1.1 2005/06/29 13:07:41 hack Exp $ # # ======================================================...
spacetelescopeREPO_NAMEstsdas_strippedPATH_START.@stsdas_stripped_extracted@stsdas_stripped-master@stsdas@python@sexcatalog.py@.PATH_END.py
{ "filename": "simulation_utils.py", "repo_name": "mackelab/sbi", "repo_path": "sbi_extracted/sbi-main/sbi/utils/simulation_utils.py", "type": "Python" }
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed # under the Apache License Version 2.0, see <https://www.apache.org/licenses/> from typing import Any, Callable, Optional, Tuple, Union import numpy as np import torch from joblib import Parallel, delayed from numpy import ndarray f...
mackelabREPO_NAMEsbiPATH_START.@sbi_extracted@sbi-main@sbi@utils@simulation_utils.py@.PATH_END.py
{ "filename": "test_photometry.py", "repo_name": "lgrcia/prose", "repo_path": "prose_extracted/prose-main/tests/test_photometry.py", "type": "Python" }
import numpy as np from prose import Sequence, blocks, simulations t = np.linspace(0, 1, 20) true_y = np.sin(2 * np.pi * t / 0.5) + 1.0 np.random.seed(5) fluxes = np.array([true_y, *[np.ones(len(t)) for _ in range(20)]]) _coords = np.random.rand(len(fluxes), 2) shape = (100, 100) coords = np.array([_coords * shape ...
lgrciaREPO_NAMEprosePATH_START.@prose_extracted@prose-main@tests@test_photometry.py@.PATH_END.py
{ "filename": "node.py", "repo_name": "HERA-Team/hera_mc", "repo_path": "hera_mc_extracted/hera_mc-main/hera_mc/node.py", "type": "Python" }
# -*- mode: python; coding: utf-8 -*- # Copyright 2018 the HERA Collaboration # Licensed under the 2-clause BSD license. """Node M&C info from the node's Redis database.""" import numpy as np from sqlalchemy import BigInteger, Boolean, Column, Float, Integer, String from . import MCDeclarativeBase, cm_utils # the a...
HERA-TeamREPO_NAMEhera_mcPATH_START.@hera_mc_extracted@hera_mc-main@hera_mc@node.py@.PATH_END.py
{ "filename": "test_xs.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/frame/indexing/test_xs.py", "type": "Python" }
import re import numpy as np import pytest from pandas import ( DataFrame, Index, IndexSlice, MultiIndex, Series, concat, ) import pandas._testing as tm from pandas.tseries.offsets import BDay @pytest.fixture def four_level_index_dataframe(): arr = np.array( [ [-0.51...
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@frame@indexing@test_xs.py@.PATH_END.py
{ "filename": "_hovertemplate.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/mesh3d/_hovertemplate.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertemplate", parent_name="mesh3d", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@mesh3d@_hovertemplate.py@.PATH_END.py
{ "filename": "fit_metrics.py", "repo_name": "ebachelet/pyLIMA", "repo_path": "pyLIMA_extracted/pyLIMA-master/pyLIMA/fits/fit_metrics.py", "type": "Python" }
import numpy as np from emcee import autocorr def Gelman_Rubin(chain): W = np.mean(np.var(chain, axis=0), axis=0) theta_B = np.mean(chain, axis=0) theta_BB = np.mean(theta_B, axis=0) B = chain.shape[0] / (chain.shape[1] - 1) * np.sum((theta_B - theta_BB) ** 2, ...
ebacheletREPO_NAMEpyLIMAPATH_START.@pyLIMA_extracted@pyLIMA-master@pyLIMA@fits@fit_metrics.py@.PATH_END.py
{ "filename": "test_HabEvapCore.py", "repo_name": "VirtualPlanetaryLaboratory/vplanet", "repo_path": "vplanet_extracted/vplanet-main/tests/AtmescStellar/HabEvapCore/test_HabEvapCore.py", "type": "Python" }
from benchmark import Benchmark, benchmark import astropy.units as u @benchmark( { "log.initial.system.Age": {"value": 0.000000, "unit": u.sec}, "log.initial.system.Time": {"value": 0.000000, "unit": u.sec}, "log.initial.system.TotAngMom": {"value": 2.238488e+42, "unit": (u.kg * u.m ** 2...
VirtualPlanetaryLaboratoryREPO_NAMEvplanetPATH_START.@vplanet_extracted@vplanet-main@tests@AtmescStellar@HabEvapCore@test_HabEvapCore.py@.PATH_END.py
{ "filename": "testTools.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/fonttools/fontTools/misc/testTools.py", "type": "Python" }
"""Helpers for writing unit tests.""" from collections.abc import Iterable from io import BytesIO import os import re import shutil import sys import tempfile from unittest import TestCase as _TestCase from fontTools.config import Config from fontTools.misc.textTools import tobytes from fontTools.misc.xmlWriter import...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@fonttools@fontTools@misc@testTools.py@.PATH_END.py
{ "filename": "prompt.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/prompt.py", "type": "Python" }
""" Line editing functionality. --------------------------- This provides a UI for a line input, similar to GNU Readline, libedit and linenoise. Either call the `prompt` function for every line input. Or create an instance of the :class:`.PromptSession` class and call the `prompt` method from that class. In the secon...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@prompt-toolkit@py3@prompt_toolkit@shortcuts@prompt.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "gabrieledemasi/skyfast", "repo_path": "skyfast_extracted/skyfast-main/setup.py", "type": "Python" }
from setuptools import setup, find_packages from setuptools import Extension from setuptools.command.build_ext import build_ext as _build_ext from codecs import open from pathlib import Path from distutils.extension import Extension import os import warnings with open("requirements.txt") as requires_file: requ...
gabrieledemasiREPO_NAMEskyfastPATH_START.@skyfast_extracted@skyfast-main@setup.py@.PATH_END.py
{ "filename": "_base.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/bar/_base.py", "type": "Python" }
import _plotly_utils.basevalidators class BaseValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="base", parent_name="bar", **kwargs): super(BaseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, array_ok=kwarg...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@bar@_base.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/violin/legendgrouptitle/font/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="style", parent_name="violin.legendgrouptitle.font", **kwargs ): super(StyleValidator, self).__init__( plotly_name=plotly_name, pa...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@violin@legendgrouptitle@font@_style.py@.PATH_END.py
{ "filename": "_hovertextsrc.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/contourcarpet/_hovertextsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="hovertextsrc", parent_name="contourcarpet", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, par...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contourcarpet@_hovertextsrc.py@.PATH_END.py
{ "filename": "EXEC.py", "repo_name": "COINtoolbox/DRACULA", "repo_path": "DRACULA_extracted/DRACULA-master/CODE/Drac/EXEC.py", "type": "Python" }
from __future__ import print_function import numpy as np import os import sys sys.path.append(os.path.abspath('')) from main_funcs import * CONFIG=set_prop() def reduc() : reducC (CONFIG) def cluster() : clusterC (CONFIG) def do_quality(): do_qualityC (CONFIG) def plot() : plotC (CONFIG) def plot_spec() : plot...
COINtoolboxREPO_NAMEDRACULAPATH_START.@DRACULA_extracted@DRACULA-master@CODE@Drac@EXEC.py@.PATH_END.py
{ "filename": "petroff10.py", "repo_name": "matplotlib/matplotlib", "repo_path": "matplotlib_extracted/matplotlib-main/galleries/examples/style_sheets/petroff10.py", "type": "Python" }
""" ===================== Petroff10 style sheet ===================== This example demonstrates the "petroff10" style, which implements the 10-color sequence developed by Matthew A. Petroff [1]_ for accessible data visualization. The style balances aesthetics with accessibility considerations, making it suitable for v...
matplotlibREPO_NAMEmatplotlibPATH_START.@matplotlib_extracted@matplotlib-main@galleries@examples@style_sheets@petroff10.py@.PATH_END.py
{ "filename": "interface.py", "repo_name": "amusecode/amuse", "repo_path": "amuse_extracted/amuse-main/src/amuse/community/distributed/interface.py", "type": "Python" }
import logging from amuse.community import * from amuse.community.interface.common import CommonCodeInterface from amuse.community.interface.common import CommonCode from amuse.support import options from amuse.rfi.channel import DistributedChannel from distributed_datamodel import Resources, Resource from distribut...
amusecodeREPO_NAMEamusePATH_START.@amuse_extracted@amuse-main@src@amuse@community@distributed@interface.py@.PATH_END.py
{ "filename": "_stream.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/contour/_stream.py", "type": "Python" }
import _plotly_utils.basevalidators class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="stream", parent_name="contour", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@contour@_stream.py@.PATH_END.py
{ "filename": "update_results.py", "repo_name": "nanograv/pint_pal", "repo_path": "pint_pal_extracted/pint_pal-main/src/pint_pal/update_results.py", "type": "Python" }
""" This module provides tools for automatically updating results (yamls/pars) based on output from autoruns on Thorny Flats (or potentially elsewhere). """ from pint_pal.yamlio import * from pint_pal.timingconfiguration import TimingConfiguration from astropy import log from datetime import datetime import subprocess...
nanogravREPO_NAMEpint_palPATH_START.@pint_pal_extracted@pint_pal-main@src@pint_pal@update_results.py@.PATH_END.py
{ "filename": "disc_launch.py", "repo_name": "FabioRigamonti/pyADfit", "repo_path": "pyADfit_extracted/pyADfit-main/disc_launch.py", "type": "Python" }
import numpy as np import yaml import pandas as pd from disc_fit import analysis,calling_all import os import matplotlib.pyplot as plt def read_data(input_path): """ Reads in data from a text file. USER DEFINED. Parameters ---------- input_path : str Path to the input file. Returns ...
FabioRigamontiREPO_NAMEpyADfitPATH_START.@pyADfit_extracted@pyADfit-main@disc_launch.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "rodluger/starry_process", "repo_path": "starry_process_extracted/starry_process-master/starry_process/ops/wigner/__init__.py", "type": "Python" }
# -*- coding: utf-8 -*- from .Rx import RxOp from .Ry import RyOp from .tensordotRz import tensordotRzOp from .special_tensordotRz import special_tensordotRzOp
rodlugerREPO_NAMEstarry_processPATH_START.@starry_process_extracted@starry_process-master@starry_process@ops@wigner@__init__.py@.PATH_END.py
{ "filename": "_marker.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/graph_objs/waterfall/decreasing/_marker.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "waterfall.decreasing" _path_str = "waterfall.decreasing.marker" _valid_props = {"color", "li...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@graph_objs@waterfall@decreasing@_marker.py@.PATH_END.py
{ "filename": "_range.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/xaxis/rangeslider/_range.py", "type": "Python" }
import _plotly_utils.basevalidators class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__( self, plotly_name="range", parent_name="layout.xaxis.rangeslider", **kwargs ): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@xaxis@rangeslider@_range.py@.PATH_END.py
{ "filename": "random_contrast_test.py", "repo_name": "keras-team/keras", "repo_path": "keras_extracted/keras-master/keras/src/layers/preprocessing/image_preprocessing/random_contrast_test.py", "type": "Python" }
import numpy as np import pytest from tensorflow import data as tf_data from keras.src import backend from keras.src import layers from keras.src import testing class RandomContrastTest(testing.TestCase): @pytest.mark.requires_trainable_backend def test_layer(self): self.run_layer_test( l...
keras-teamREPO_NAMEkerasPATH_START.@keras_extracted@keras-master@keras@src@layers@preprocessing@image_preprocessing@random_contrast_test.py@.PATH_END.py
{ "filename": "Emax_vs_sfr.ipynb", "repo_name": "FRBs/zdm", "repo_path": "zdm_extracted/zdm-main/papers/H0_I/Figures/Emax_vs_sfr.ipynb", "type": "Jupyter Notebook" }
# Emax vs sfr_n ```python # imports from importlib import reload import numpy as np from matplotlib import pyplot as plt from zdm.craco import loading from zdm import iteration as it from zdm import io import figs_zdm_H0_I ``` # Load ```python cube_out = np.load('../Analysis/Cubes/craco_sfr_Emax_cube.npz') #cu...
FRBsREPO_NAMEzdmPATH_START.@zdm_extracted@zdm-main@papers@H0_I@Figures@Emax_vs_sfr.ipynb@.PATH_END.py
{ "filename": "NormalizationOptionsStartMeanVector.md", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/g3doc/api_docs/python/tflite_support/metadata_schema_py_generated/NormalizationOptionsStartMeanVector.md", "type": "Markdown" }
page_type: reference <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_support.metadata_schema_py_generated.NormalizationOptionsStartMeanVector" />...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@g3doc@api_docs@python@tflite_support@metadata_schema_py_generated@NormalizationOptionsStartMeanVector.md@.PATH_END.py
{ "filename": "_tiling.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/icicle/_tiling.py", "type": "Python" }
import _plotly_utils.basevalidators class TilingValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="tiling", parent_name="icicle", **kwargs): super(TilingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@icicle@_tiling.py@.PATH_END.py
{ "filename": "calc_cl.py", "repo_name": "NoahSailer/MaPar", "repo_path": "MaPar_extracted/MaPar-main/spectra/calc_cl.py", "type": "Python" }
# A wrapper around NaMaster # Neatly stores all spectra and covariances in a .json format import numpy as np import healpy as hp import pymaster as nmt import sys import json from os.path import exists readme = "cl_X_Y is the pseudo Cell C^{XY}. wl_X_Y is the window function for C^{XY}. " readme+= "cij is a (nma...
NoahSailerREPO_NAMEMaParPATH_START.@MaPar_extracted@MaPar-main@spectra@calc_cl.py@.PATH_END.py
{ "filename": "data.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/scipy/sparse/data.py", "type": "Python" }
"""Base class for sparse matrice with a .data attribute subclasses must provide a _with_data() method that creates a new matrix with the same sparsity pattern as self but with a different data array """ from __future__ import division, print_function, absolute_import import numpy as np from .base impor...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@scipy@sparse@data.py@.PATH_END.py
{ "filename": "test_inference.py", "repo_name": "probabilists/lampe", "repo_path": "lampe_extracted/lampe-master/tests/test_inference.py", "type": "Python" }
r"""Tests for the lampe.inference module.""" import torch from lampe.inference import * from lampe.masks import BernoulliMask from torch import randn def test_NRE(): estimator = NRE(3, 5) # Non-batched theta, x = randn(3), randn(5) log_r = estimator(theta, x) assert log_r.shape == () asser...
probabilistsREPO_NAMElampePATH_START.@lampe_extracted@lampe-master@tests@test_inference.py@.PATH_END.py
{ "filename": "fisher_matrix.py", "repo_name": "CosmicFish/CosmicFish", "repo_path": "CosmicFish_extracted/CosmicFish-master/python/cosmicfish_pylib/fisher_matrix.py", "type": "Python" }
#---------------------------------------------------------------------------------------- # # This file is part of CosmicFish. # # Copyright (C) 2015-2017 by the CosmicFish authors # # The CosmicFish code is free software; # You can use it, redistribute it, and/or modify it under the terms # of the GNU General Public L...
CosmicFishREPO_NAMECosmicFishPATH_START.@CosmicFish_extracted@CosmicFish-master@python@cosmicfish_pylib@fisher_matrix.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/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...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@choroplethmapbox@legendgrouptitle@font@__init__.py@.PATH_END.py
{ "filename": "_lineposition.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py", "type": "Python" }
import _plotly_utils.basevalidators class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__( self, plotly_name="lineposition", parent_name="icicle.marker.colorbar.tickfont", **kwargs, ): super(LinepositionValidator, self).__init__( ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@icicle@marker@colorbar@tickfont@_lineposition.py@.PATH_END.py
{ "filename": "test_pure_python_isolation.py", "repo_name": "astropy/halotools", "repo_path": "halotools_extracted/halotools-master/halotools/mock_observables/isolation_functions/tests/test_pure_python_isolation.py", "type": "Python" }
""" Module providing testing for the brute force isolation functions """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from astropy.utils.misc import NumpyRNGContext from .pure_python_isolation import naive_spherical_isolation from ...tests.cf_helpers import ge...
astropyREPO_NAMEhalotoolsPATH_START.@halotools_extracted@halotools-master@halotools@mock_observables@isolation_functions@tests@test_pure_python_isolation.py@.PATH_END.py
{ "filename": "mepi_nml.py", "repo_name": "spedas/pyspedas", "repo_path": "pyspedas_extracted/pyspedas-master/pyspedas/projects/erg/satellite/erg/mepi/mepi_nml.py", "type": "Python" }
from pytplot import options, ylim, get_data from ..load import load from ..get_gatt_ror import get_gatt_ror from typing import List, Optional def mepi_nml( trange: List[str] = ['2017-03-27', '2017-03-28'], datatype: str = 'omniflux', level: str = 'l2', suffix: str = '', get_support_data: bool = ...
spedasREPO_NAMEpyspedasPATH_START.@pyspedas_extracted@pyspedas-master@pyspedas@projects@erg@satellite@erg@mepi@mepi_nml.py@.PATH_END.py
{ "filename": "unet.py", "repo_name": "felixyu7/nt_mlreco", "repo_path": "nt_mlreco_extracted/nt_mlreco-main/networks/common/unet.py", "type": "Python" }
import torch.nn as nn import torch import MinkowskiEngine as ME from networks.common.resnet_block import ResNetBlock class UNet(ME.MinkowskiNetwork): def __init__(self, in_features=2, reps=2, depth=8, first_num_filters=16, str...
felixyu7REPO_NAMEnt_mlrecoPATH_START.@nt_mlreco_extracted@nt_mlreco-main@networks@common@unet.py@.PATH_END.py
{ "filename": "_yclick.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/annotation/_yclick.py", "type": "Python" }
import _plotly_utils.basevalidators class YclickValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="yclick", parent_name="layout.annotation", **kwargs): super(YclickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@annotation@_yclick.py@.PATH_END.py
{ "filename": "specifiers.py", "repo_name": "davidharvey1986/pyRRG", "repo_path": "pyRRG_extracted/pyRRG-master/unittests/bugFixPyRRG/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/specifiers.py", "type": "Python" }
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import abc import functools import itertools import re from ._compat impo...
davidharvey1986REPO_NAMEpyRRGPATH_START.@pyRRG_extracted@pyRRG-master@unittests@bugFixPyRRG@lib@python3.7@site-packages@pkg_resources@_vendor@packaging@specifiers.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "wdpozzo/raynest", "repo_path": "raynest_extracted/raynest-main/setup.py", "type": "Python" }
import os import platform import numpy from setuptools import setup, Extension, find_packages from Cython.Build import cythonize WINDOWS = platform.system().lower() == "windows" # set extension libraries = [] if WINDOWS else ["m"] ext_modules = [Extension("raynest.parameter", sources=[os.path...
wdpozzoREPO_NAMEraynestPATH_START.@raynest_extracted@raynest-main@setup.py@.PATH_END.py
{ "filename": "dr7.py", "repo_name": "dstndstn/astrometry.net", "repo_path": "astrometry.net_extracted/astrometry.net-main/sdss/dr7.py", "type": "Python" }
# This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE import os from .common import * from astrometry.util.miscutils import * from astrometry.util.fits import * class DR7(SdssDR): def __init__(self, **kwargs): ''' kwargs: (ba...
dstndstnREPO_NAMEastrometry.netPATH_START.@astrometry.net_extracted@astrometry.net-main@sdss@dr7.py@.PATH_END.py
{ "filename": "incdir.py", "repo_name": "kapteyn-astro/kapteyn", "repo_path": "kapteyn_extracted/kapteyn-master/src/incdir.py", "type": "Python" }
from distutils.sysconfig import get_python_inc import numpy pi = get_python_inc() ni = numpy.get_include() print "-I%s -I%s -I%s/numpy" % (pi, ni, ni)
kapteyn-astroREPO_NAMEkapteynPATH_START.@kapteyn_extracted@kapteyn-master@src@incdir.py@.PATH_END.py
{ "filename": "MpiRun.py", "repo_name": "jronayne/PyTransport", "repo_path": "PyTransport_extracted/PyTransport-master/Examples/DoubleQuad/MpiRun.py", "type": "Python" }
import subprocess subprocess.Popen(['mpiexec', '-n', '10', 'python', 'MpiEqBi.py'])
jronayneREPO_NAMEPyTransportPATH_START.@PyTransport_extracted@PyTransport-master@Examples@DoubleQuad@MpiRun.py@.PATH_END.py
{ "filename": "deconvolution.py", "repo_name": "itseez/opencv", "repo_path": "opencv_extracted/opencv-master/samples/python/deconvolution.py", "type": "Python" }
#!/usr/bin/env python ''' Wiener deconvolution. Sample shows how DFT can be used to perform Weiner deconvolution [1] of an image with user-defined point spread function (PSF) Usage: deconvolution.py [--circle] [--angle <degrees>] [--d <diameter>] [--snr <signal/noise ratio in db>] [<input ...
itseezREPO_NAMEopencvPATH_START.@opencv_extracted@opencv-master@samples@python@deconvolution.py@.PATH_END.py
{ "filename": "BoundaryAbstractMethods.py", "repo_name": "LLNL/spheral", "repo_path": "spheral_extracted/spheral-main/src/PYB11/Boundary/BoundaryAbstractMethods.py", "type": "Python" }
#------------------------------------------------------------------------------- # Provide the abstact Boundary interface, suitable for injection to our actual # classes. #------------------------------------------------------------------------------- from PYB11Generator import * @PYB11ignore class BoundaryAbstractMet...
LLNLREPO_NAMEspheralPATH_START.@spheral_extracted@spheral-main@src@PYB11@Boundary@BoundaryAbstractMethods.py@.PATH_END.py
{ "filename": "version.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/jupyter-core/py3/jupyter_core/version.py", "type": "Python" }
""" store the current version info of the jupyter_core. """ from __future__ import annotations import re # Version string must appear intact for hatch versioning __version__ = "5.7.2" # Build up version_info tuple for backwards compatibility pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)" match...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@jupyter-core@py3@jupyter_core@version.py@.PATH_END.py
{ "filename": "_hoverinfo.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/waterfall/_hoverinfo.py", "type": "Python" }
import _plotly_utils.basevalidators class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="hoverinfo", parent_name="waterfall", **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@waterfall@_hoverinfo.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "tanner-trickle/EXCEED-DM", "repo_path": "EXCEED-DM_extracted/EXCEED-DM-main/docs/conf.py", "type": "Python" }
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
tanner-trickleREPO_NAMEEXCEED-DMPATH_START.@EXCEED-DM_extracted@EXCEED-DM-main@docs@conf.py@.PATH_END.py
{ "filename": "apod.py", "repo_name": "abeelen/powspec", "repo_path": "powspec_extracted/powspec-master/powspec/utils/apod.py", "type": "Python" }
import numpy as np from scipy import signal from astropy.convolution import CustomKernel, convolve_fft __all__ = ["shrink_mask", "fft_2d_hanning"] def shrink_mask(mask, kernel): """Shrink mask wrt to a kernel Parameters ---------- mask : 2D boolean array_like the mask to be shrinked by... ...
abeelenREPO_NAMEpowspecPATH_START.@powspec_extracted@powspec-master@powspec@utils@apod.py@.PATH_END.py
{ "filename": "test_knockoff.py", "repo_name": "statsmodels/statsmodels", "repo_path": "statsmodels_extracted/statsmodels-main/statsmodels/stats/tests/test_knockoff.py", "type": "Python" }
import numpy as np from numpy.testing import assert_allclose, assert_array_equal, assert_equal import pytest import statsmodels.api as sm from statsmodels.stats import knockoff_regeffects as kr from statsmodels.stats._knockoff import (RegressionFDR, _design_knockoff_equi, ...
statsmodelsREPO_NAMEstatsmodelsPATH_START.@statsmodels_extracted@statsmodels-main@statsmodels@stats@tests@test_knockoff.py@.PATH_END.py
{ "filename": "best-model-short-desc.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/docs/en/_includes/work_src/reusage/best-model-short-desc.md", "type": "Markdown" }
If this parameter is set, the number of trees that are saved in the resulting model is defined as follows: 1. Build the number of trees defined by the training parameters. 1. Use the validation dataset to identify the iteration with the optimal value of the metric specified in  `--eval-metric` (`--eval-metric`).
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@docs@en@_includes@work_src@reusage@best-model-short-desc.md@.PATH_END.py
{ "filename": "zscale.py", "repo_name": "jfoster17/extinction-distances", "repo_path": "extinction-distances_extracted/extinction-distances-master/extinction_distance/support/zscale.py", "type": "Python" }
""" This comes from numdisplay """ import math import numpy MAX_REJECT = 0.5 MIN_NPIXELS = 5 GOOD_PIXEL = 0 BAD_PIXEL = 1 KREJ = 2.5 MAX_ITERATIONS = 5 def zscale (image, nsamples=1000, contrast=0.25, bpmask=None, zmask=None): """Implement IRAF zscale algorithm nsamples=1000 and contrast=0.25 are the IRAF d...
jfoster17REPO_NAMEextinction-distancesPATH_START.@extinction-distances_extracted@extinction-distances-master@extinction_distance@support@zscale.py@.PATH_END.py
{ "filename": "pk_interp.py", "repo_name": "smsharma/dark-photons-perturbations", "repo_path": "dark-photons-perturbations_extracted/dark-photons-perturbations-master/grf/pk_interp.py", "type": "Python" }
import numpy as np from scipy.interpolate import RegularGridInterpolator class PowerSpectrumGridInterpolator(): def __init__(self, ps_type='nonlin_matter', file_name=None, k_max=1e7): file_name = "../data/log_pk_grids/log_pk_" + ps_type + "_grid_ary.npz" if file_name is not None: fil...
smsharmaREPO_NAMEdark-photons-perturbationsPATH_START.@dark-photons-perturbations_extracted@dark-photons-perturbations-master@grf@pk_interp.py@.PATH_END.py
{ "filename": "Dirichlet_Op.py", "repo_name": "hmuellergoe/mrbeam", "repo_path": "mrbeam_extracted/mrbeam-main/mr_beam/itreg/regpy/operators/obstacle2d/Dirichlet_Op.py", "type": "Python" }
# -*- coding: utf-8 -*- """ Created on Sun Jul 14 20:12:14 2019 @author: Björn Müller """ # from regpy.operators.obstacle2d.Curves.StarTrig import StarTrig from .functions.operator import op_S from .functions.operator import op_T from .functions.operator import op_K from .functions.farfieldmatrix import farfield_matri...
hmuellergoeREPO_NAMEmrbeamPATH_START.@mrbeam_extracted@mrbeam-main@mr_beam@itreg@regpy@operators@obstacle2d@Dirichlet_Op.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/scatter/textfont/_sizesrc.py", "type": "Python" }
import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="sizesrc", parent_name="scatter.textfont", **kwargs): super(SizesrcValidator, 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@scatter@textfont@_sizesrc.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "mikekatz04/LISAanalysistools", "repo_path": "LISAanalysistools_extracted/LISAanalysistools-main/README.md", "type": "Markdown" }
# LISA Analysis Tools [![Doc badge](https://img.shields.io/badge/Docs-master-brightgreen)](https://mikekatz04.github.io/LISAanalysistools) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10930980.svg)](https://doi.org/10.5281/zenodo.10930980) LISA Analysis Tools is a package for performing LISA Data Analysis task...
mikekatz04REPO_NAMELISAanalysistoolsPATH_START.@LISAanalysistools_extracted@LISAanalysistools-main@README.md@.PATH_END.py
{ "filename": "_side.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/parcoords/line/colorbar/title/_side.py", "type": "Python" }
import _plotly_utils.basevalidators class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="side", parent_name="parcoords.line.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, pare...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@parcoords@line@colorbar@title@_side.py@.PATH_END.py
{ "filename": "test_evaluate.py", "repo_name": "pyro-ppl/pyro", "repo_path": "pyro_extracted/pyro-master/tests/contrib/forecast/test_evaluate.py", "type": "Python" }
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import math import pytest import torch import pyro import pyro.distributions as dist from pyro.contrib.forecast import Forecaster, ForecastingModel, HMCForecaster, backtest from pyro.contrib.forecast.evaluate import DEFAULT_METRICS f...
pyro-pplREPO_NAMEpyroPATH_START.@pyro_extracted@pyro-master@tests@contrib@forecast@test_evaluate.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "fkeruzore/panco2", "repo_path": "panco2_extracted/panco2-main/docs/source/conf.py", "type": "Python" }
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
fkeruzoreREPO_NAMEpanco2PATH_START.@panco2_extracted@panco2-main@docs@source@conf.py@.PATH_END.py
{ "filename": "contour_plot.py", "repo_name": "miguelzuma/GLoW_public", "repo_path": "GLoW_public_extracted/GLoW_public-main/scripts/glow_paper/contour_plot.py", "type": "Python" }
import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as colors import matplotlib.patches as patches from matplotlib.lines import Line2D from matplotlib.patches import Circle from mpl_toolkits.axes_grid1 import make_axes_locatable from glow import lenses, time_domain_c, freq_dom...
miguelzumaREPO_NAMEGLoW_publicPATH_START.@GLoW_public_extracted@GLoW_public-main@scripts@glow_paper@contour_plot.py@.PATH_END.py
{ "filename": "_tickfont.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatterternary.marker.colorbar" _path_str = "scatterternary.marker.colorbar.tickfont" _val...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@scatterternary@marker@colorbar@_tickfont.py@.PATH_END.py
{ "filename": "test_deprecation.py", "repo_name": "scikit-learn/scikit-learn", "repo_path": "scikit-learn_extracted/scikit-learn-main/sklearn/utils/tests/test_deprecation.py", "type": "Python" }
# Authors: The scikit-learn developers # SPDX-License-Identifier: BSD-3-Clause import pickle from inspect import signature import pytest from sklearn.utils.deprecation import _is_deprecated, deprecated @deprecated("qwerty") class MockClass1: pass class MockClass2: @deprecated("mockclass2_method") de...
scikit-learnREPO_NAMEscikit-learnPATH_START.@scikit-learn_extracted@scikit-learn-main@sklearn@utils@tests@test_deprecation.py@.PATH_END.py
{ "filename": "pred21cm.ipynb", "repo_name": "micbia/serenet", "repo_path": "serenet_extracted/serenet-main/depr/pred21cm.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np, matplotlib.pyplot as plt, os import tools21cm as t2c import random, zipfile from tqdm import tqdm import matplotlib.gridspec as gridspec from itertools import permutations from datetime import datetime ``` 2021-11-19 09:41:44.842696: W tensorflow/stream_executor/platform/default/dso...
micbiaREPO_NAMEserenetPATH_START.@serenet_extracted@serenet-main@depr@pred21cm.ipynb@.PATH_END.py
{ "filename": "_stream.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattermap/_stream.py", "type": "Python" }
import _plotly_utils.basevalidators class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="stream", parent_name="scattermap", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattermap@_stream.py@.PATH_END.py
{ "filename": "test_constraints.py", "repo_name": "astropy/astropy", "repo_path": "astropy_extracted/astropy-main/astropy/modeling/tests/test_constraints.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst # pylint: disable=invalid-name import platform import types import warnings from contextlib import nullcontext import numpy as np import pytest from numpy.random import default_rng from numpy.testing import assert_allclose from astropy.modeling import f...
astropyREPO_NAMEastropyPATH_START.@astropy_extracted@astropy-main@astropy@modeling@tests@test_constraints.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "ratt-ru/QuartiCal", "repo_path": "QuartiCal_extracted/QuartiCal-main/README.md", "type": "Markdown" }
# QuartiCal QuartiCal is the successor to CubiCal. It implements a suite of fast radio interferometric calibration routines exploiting complex optimisation. Unlike CubiCal, QuartiCal allows for any available Jones terms to be combined. It can also be deployed on a cluster (documentation under construction). ## Instal...
ratt-ruREPO_NAMEQuartiCalPATH_START.@QuartiCal_extracted@QuartiCal-main@README.md@.PATH_END.py
{ "filename": "_tickformat.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattersmith/marker/colorbar/_tickformat.py", "type": "Python" }
import _plotly_utils.basevalidators class TickformatValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="tickformat", parent_name="scattersmith.marker.colorbar", **kwargs, ): super(TickformatValidator, self).__init__( plo...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattersmith@marker@colorbar@_tickformat.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "spacetelescope/jdaviz", "repo_path": "jdaviz_extracted/jdaviz-main/jdaviz/configs/__init__.py", "type": "Python" }
from .cubeviz import * # noqa from .default import * # noqa from .imviz import * # noqa from .mosviz import * # noqa from .rampviz import * # noqa from .specviz import * # noqa from .specviz2d import * # noqa
spacetelescopeREPO_NAMEjdavizPATH_START.@jdaviz_extracted@jdaviz-main@jdaviz@configs@__init__.py@.PATH_END.py
{ "filename": "_flatshading.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/mesh3d/_flatshading.py", "type": "Python" }
import _plotly_utils.basevalidators class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="flatshading", parent_name="mesh3d", **kwargs): super(FlatshadingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@mesh3d@_flatshading.py@.PATH_END.py
{ "filename": "test_sparse.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/extension/test_sparse.py", "type": "Python" }
""" This file contains a minimal set of tests for compliance with the extension array interface test suite, and should contain no other tests. The test suite for the full functionality of the array is located in `pandas/tests/arrays/`. The tests in this file are inherited from the BaseExtensionTests, and only minimal ...
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@extension@test_sparse.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "jmschrei/pomegranate", "repo_path": "pomegranate_extracted/pomegranate-master/pomegranate/__init__.py", "type": "Python" }
__version__ = "1.1.1"
jmschreiREPO_NAMEpomegranatePATH_START.@pomegranate_extracted@pomegranate-master@pomegranate@__init__.py@.PATH_END.py
{ "filename": "quickvet2.ipynb", "repo_name": "astrobel/spinneret", "repo_path": "spinneret_extracted/spinneret-master/notebooks/quickvet2.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.pylab as pl from matplotlib.colors import ListedColormap import matplotlib.colors as cl import joblib import scipy.stats as sps from tqdm import tqdm ``` ```python sectorlist = np.arange(2,27) data = np.loadtxt(f'secto...
astrobelREPO_NAMEspinneretPATH_START.@spinneret_extracted@spinneret-master@notebooks@quickvet2.ipynb@.PATH_END.py
{ "filename": "shape_base.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/numpy/core/shape_base.py", "type": "Python" }
from __future__ import division, absolute_import, print_function __all__ = ['atleast_1d', 'atleast_2d', 'atleast_3d', 'block', 'hstack', 'stack', 'vstack'] from . import numeric as _nx from .numeric import array, asanyarray, newaxis from .multiarray import normalize_axis_index def atleast_1d(*arys): ...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@numpy@core@shape_base.py@.PATH_END.py
{ "filename": "data_2D_manipulation.py", "repo_name": "BiaPyX/BiaPy", "repo_path": "BiaPy_extracted/BiaPy-master/biapy/data/data_2D_manipulation.py", "type": "Python" }
import numpy as np import os import math from PIL import Image def crop_data_with_overlap(data, crop_shape, data_mask=None, overlap=(0, 0), padding=(0, 0), verbose=True, load_data=True): """ Crop data into small square pieces with overlap. The difference with :func:`~crop_data` is th...
BiaPyXREPO_NAMEBiaPyPATH_START.@BiaPy_extracted@BiaPy-master@biapy@data@data_2D_manipulation.py@.PATH_END.py
{ "filename": "array.py", "repo_name": "sirocco-rt/sirocco", "repo_path": "sirocco_extracted/sirocco-main/py_progs/py4py/py4py/array.py", "type": "Python" }
""" Array Functions Standard functions used for manipulating arrays, e.g. to calculate full width half maxima, centroids or midpoints. """ from typing import Union, Tuple from numpy.typing import NDArray from numpy import floating import numpy as np def calculate_fwhm( midpoints: NDArray[floating], ...
sirocco-rtREPO_NAMEsiroccoPATH_START.@sirocco_extracted@sirocco-main@py_progs@py4py@py4py@array.py@.PATH_END.py
{ "filename": "_thicknessmode.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/surface/colorbar/_thicknessmode.py", "type": "Python" }
import _plotly_utils.basevalidators class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="thicknessmode", parent_name="surface.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@surface@colorbar@_thicknessmode.py@.PATH_END.py
{ "filename": "_autorangeoptions.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/layout/yaxis/_autorangeoptions.py", "type": "Python" }
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.autorangeoptions" _valid_props = { ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@layout@yaxis@_autorangeoptions.py@.PATH_END.py
{ "filename": "api.py", "repo_name": "statsmodels/statsmodels", "repo_path": "statsmodels_extracted/statsmodels-main/statsmodels/tsa/filters/api.py", "type": "Python" }
__all__ = ["bkfilter", "hpfilter", "cffilter", "miso_lfilter", "convolution_filter", "recursive_filter"] from .bk_filter import bkfilter from .hp_filter import hpfilter from .cf_filter import cffilter from .filtertools import miso_lfilter, convolution_filter, recursive_filter
statsmodelsREPO_NAMEstatsmodelsPATH_START.@statsmodels_extracted@statsmodels-main@statsmodels@tsa@filters@api.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "zoglauer/megalib", "repo_path": "megalib_extracted/megalib-main/resource/examples/geomega/cosiballoon/README.md", "type": "Markdown" }
# Mass model "COSI balloon" This is the official mass model for the 2016 COSI balloon flight. This document summarizes mass model v4, and possible improvements. ## Updates for massmodel v4: - A few years ago, Alex created a python script to define each of the GeD's in an independent .geo file which can take into ...
zoglauerREPO_NAMEmegalibPATH_START.@megalib_extracted@megalib-main@resource@examples@geomega@cosiballoon@README.md@.PATH_END.py
{ "filename": "footprint_hsc_ssp.py", "repo_name": "HETDEX/elixer", "repo_path": "elixer_extracted/elixer-main/elixer/footprint_hsc_ssp.py", "type": "Python" }
#to use, pipe the output to some text file, then repalce hsc_meta.py with that text file #NOTE: the last entry in the dictionary has a trailing comma ... need to remove that """ hsc_ssp : all wide so: (2" ??) g: 26.6 r: 26.2 i: 26.2 z: 25.3 y: 24.5 cosmos: all pdr2_wide/deepCoadd_-results w01: all pdr2_wide/deepCo...
HETDEXREPO_NAMEelixerPATH_START.@elixer_extracted@elixer-main@elixer@footprint_hsc_ssp.py@.PATH_END.py
{ "filename": "_stream.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/graph_objs/area/_stream.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "area" _path_str = "area.stream" _valid_props = {"maxpoints", "token"} # maxpoints #...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@graph_objs@area@_stream.py@.PATH_END.py
{ "filename": "apps.py", "repo_name": "juanep97/iop4", "repo_path": "iop4_extracted/iop4-main/iop4admin/apps.py", "type": "Python" }
import django.contrib.admin.apps class IOP4AdminConfig(django.contrib.admin.apps.SimpleAdminConfig): name = 'iop4admin' default_site = 'iop4admin.sites.IOP4AdminSite'
juanep97REPO_NAMEiop4PATH_START.@iop4_extracted@iop4-main@iop4admin@apps.py@.PATH_END.py
{ "filename": "one_hot.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/testing/op_tests/one_hot.py", "type": "Python" }
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@testing@op_tests@one_hot.py@.PATH_END.py
{ "filename": "_textcase.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcase.py", "type": "Python" }
import _plotly_utils.basevalidators class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="textcase", parent_name="scattercarpet.textfont", **kwargs ): super(TextcaseValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattercarpet@textfont@_textcase.py@.PATH_END.py
{ "filename": "train.py", "repo_name": "gmzsebastian/FLEET", "repo_path": "FLEET_extracted/FLEET-master/FLEET/train.py", "type": "Python" }
from FLEET.classify import predict_SLSN from multiprocessing import Pool from astropy import table import numpy as np import glob import os all_objects = table.Table.read('sne_best.txt', format = 'ascii') def predict_individual(i, date_range = 70, model = 'double', overwrite_features = False): print(' ...
gmzsebastianREPO_NAMEFLEETPATH_START.@FLEET_extracted@FLEET-master@FLEET@train.py@.PATH_END.py
{ "filename": "relativedelta.py", "repo_name": "waynebhayes/SpArcFiRe", "repo_path": "SpArcFiRe_extracted/SpArcFiRe-master/scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/dateutil/relativedelta.py", "type": "Python" }
# -*- coding: utf-8 -*- import datetime import calendar import operator from math import copysign from six import integer_types from warnings import warn from ._common import weekday MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7)) __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "FR"...
waynebhayesREPO_NAMESpArcFiRePATH_START.@SpArcFiRe_extracted@SpArcFiRe-master@scripts@SpArcFiRe-pyvenv@lib@python2.7@site-packages@dateutil@relativedelta.py@.PATH_END.py
{ "filename": "flax_sharp_bits.md", "repo_name": "google/flax", "repo_path": "flax_extracted/flax-main/docs/guides/flax_sharp_bits.md", "type": "Markdown" }
--- jupytext: formats: ipynb,md:myst text_representation: extension: .md format_name: myst format_version: 0.13 jupytext_version: 1.13.8 --- # 🔪 Flax - The Sharp Bits 🔪 Flax exposes the full power of JAX. And just like when using JAX, there are certain _["sharp bits"](https://jax.readthedocs.io/...
googleREPO_NAMEflaxPATH_START.@flax_extracted@flax-main@docs@guides@flax_sharp_bits.md@.PATH_END.py
{ "filename": "_labels.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/icicle/_labels.py", "type": "Python" }
import _plotly_utils.basevalidators class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="labels", parent_name="icicle", **kwargs): super(LabelsValidator, 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@icicle@_labels.py@.PATH_END.py
{ "filename": "graphql.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/Pygments/py3/pygments/lexers/graphql.py", "type": "Python" }
""" pygments.lexers.graphql ~~~~~~~~~~~~~~~~~~~~~~~ Lexer for GraphQL, an open-source data query and manipulation language for APIs. More information: https://graphql.org/ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ f...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@Pygments@py3@pygments@lexers@graphql.py@.PATH_END.py
{ "filename": "ucb.py", "repo_name": "astrocatalogs/supernovae", "repo_path": "supernovae_extracted/supernovae-master/tasks/ucb.py", "type": "Python" }
"""Import tasks for Alex Fillipenko's UC Berkeley group. """ import csv import json import os import urllib from math import floor from astropy.time import Time as astrotime from astrocats.catalog.photometry import PHOTOMETRY from astrocats.catalog.utils import (get_sig_digits, is_number, pbar, ...
astrocatalogsREPO_NAMEsupernovaePATH_START.@supernovae_extracted@supernovae-master@tasks@ucb.py@.PATH_END.py