metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "_unselected.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/choropleth/_unselected.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.unselected" _valid_props = {"marker"} # marker ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@choropleth@_unselected.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "icecube/skyllh", "repo_path": "skyllh_extracted/skyllh-master/skyllh/datasets/__init__.py", "type": "Python" }
icecubeREPO_NAMEskyllhPATH_START.@skyllh_extracted@skyllh-master@skyllh@datasets@__init__.py@.PATH_END.py
{ "filename": "_side.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/treemap/pathbar/_side.py", "type": "Python" }
import _plotly_utils.basevalidators class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="side", parent_name="treemap.pathbar", **kwargs): super(SideValidator, 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@treemap@pathbar@_side.py@.PATH_END.py
{ "filename": "Guide-checkpoint.ipynb", "repo_name": "kevin-flaherty/disk_model3", "repo_path": "disk_model3_extracted/disk_model3-master/.ipynb_checkpoints/Guide-checkpoint.ipynb", "type": "Jupyter Notebook" }
This is a quick guide to running the Wesleyan python disk modeling code. It is based heavily on Katherine Rosenfeld's original idl code (Rosenfeld et al. 2013, among others), which is based on the structure in Dartois et al. 2003. More detail on the underlying disk structure used in this code can be found in Flaherty e...
kevin-flahertyREPO_NAMEdisk_model3PATH_START.@disk_model3_extracted@disk_model3-master@.ipynb_checkpoints@Guide-checkpoint.ipynb@.PATH_END.py
{ "filename": "conftest.py", "repo_name": "ultralytics/ultralytics", "repo_path": "ultralytics_extracted/ultralytics-main/tests/conftest.py", "type": "Python" }
# Ultralytics YOLO 🚀, AGPL-3.0 license import shutil from pathlib import Path from tests import TMP def pytest_addoption(parser): """ Add custom command-line options to pytest. Args: parser (pytest.config.Parser): The pytest parser object for adding custom command-line options. Returns: ...
ultralyticsREPO_NAMEultralyticsPATH_START.@ultralytics_extracted@ultralytics-main@tests@conftest.py@.PATH_END.py
{ "filename": "common.py", "repo_name": "itseez/opencv", "repo_path": "opencv_extracted/opencv-master/samples/python/common.py", "type": "Python" }
#!/usr/bin/env python ''' This module contains some common routines used by other samples. ''' # Python 2/3 compatibility from __future__ import print_function import sys PY3 = sys.version_info[0] == 3 if PY3: from functools import reduce import numpy as np import cv2 as cv # built-in modules import os import ...
itseezREPO_NAMEopencvPATH_START.@opencv_extracted@opencv-master@samples@python@common.py@.PATH_END.py
{ "filename": "javelin_ai_gateway.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/langchain/langchain/chat_models/javelin_ai_gateway.py", "type": "Python" }
from typing import TYPE_CHECKING, Any from langchain._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.javelin_ai_gateway import ( ChatJavelinAIGateway, ChatParams, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for rai...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@langchain@langchain@chat_models@javelin_ai_gateway.py@.PATH_END.py
{ "filename": "vtk_xml_file_reader.py", "repo_name": "enthought/mayavi", "repo_path": "mayavi_extracted/mayavi-master/mayavi/sources/vtk_xml_file_reader.py", "type": "Python" }
"""A VTK XML file reader object. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import basename # Enthought library imports. from traits.api import Instance, List, Str, Bool, Button from traitsui.api import...
enthoughtREPO_NAMEmayaviPATH_START.@mayavi_extracted@mayavi-master@mayavi@sources@vtk_xml_file_reader.py@.PATH_END.py
{ "filename": "_zerolinecolor.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinecolor.py", "type": "Python" }
import _plotly_utils.basevalidators class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="zerolinecolor", parent_name="layout.xaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@xaxis@_zerolinecolor.py@.PATH_END.py
{ "filename": "fisher.py", "repo_name": "wcoulton/CompressedFisher", "repo_path": "CompressedFisher_extracted/CompressedFisher-main/CompressedFisher/fisher.py", "type": "Python" }
import numpy as np import warnings import scipy.linalg central_difference_weights={ 1: np.array([1.]), 2:np.array([-1/2.,+1/2.]), 4:np.array([1/12.,-2./3,+2./3.,-1./12.]), 6:np.array([-1./60,3./20,-3./4,0,3./4,-3./20,1./60]) } def geometricMean(A,B): AB = np.linalg.solve(A,B) sqrt_AB = scipy....
wcoultonREPO_NAMECompressedFisherPATH_START.@CompressedFisher_extracted@CompressedFisher-main@CompressedFisher@fisher.py@.PATH_END.py
{ "filename": "_error_x.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/bar/_error_x.py", "type": "Python" }
import _plotly_utils.basevalidators class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="error_x", parent_name="bar", **kwargs): super(Error_XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@bar@_error_x.py@.PATH_END.py
{ "filename": "_shadow.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/indicator/number/font/_shadow.py", "type": "Python" }
import _plotly_utils.basevalidators class ShadowValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="shadow", parent_name="indicator.number.font", **kwargs ): super(ShadowValidator, self).__init__( plotly_name=plotly_name, parent_nam...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@indicator@number@font@_shadow.py@.PATH_END.py
{ "filename": "_tickmode.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/contour/colorbar/_tickmode.py", "type": "Python" }
import _plotly_utils.basevalidators class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="tickmode", parent_name="contour.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, paren...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contour@colorbar@_tickmode.py@.PATH_END.py
{ "filename": "snap.py", "repo_name": "AFD-Illinois/ebhlight", "repo_path": "ebhlight_extracted/ebhlight-master/script/analysis/snap.py", "type": "Python" }
#!/usr/bin/env python import matplotlib import matplotlib.pyplot as plt import plot as bplt import sys, os import hdf5_to_dict as io import numpy as np import sys font = {'size' : 16} matplotlib.rc('font', **font) from argparse import ArgumentParser parser = ArgumentParser( description='Plot 2d slices of your simul...
AFD-IllinoisREPO_NAMEebhlightPATH_START.@ebhlight_extracted@ebhlight-master@script@analysis@snap.py@.PATH_END.py
{ "filename": "_showticksuffix.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/splom/marker/colorbar/_showticksuffix.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showticksuffix", parent_name="splom.marker.colorbar", **kwargs, ): super(ShowticksuffixValidator, self).__init__( ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@splom@marker@colorbar@_showticksuffix.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "jonathansick/MoAstro", "repo_path": "MoAstro_extracted/MoAstro-master/setup.py", "type": "Python" }
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys from setuptools import find_packages, setup import moastro # Set affiliated package-specific settings PACKAGENAME = 'moastro' DESCRIPTION = 'MongoDB framework for observational astronomers' LONG_DES...
jonathansickREPO_NAMEMoAstroPATH_START.@MoAstro_extracted@MoAstro-master@setup.py@.PATH_END.py
{ "filename": "meta.py", "repo_name": "icrar/daliuge", "repo_path": "daliuge_extracted/daliuge-master/daliuge-engine/dlg/meta.py", "type": "Python" }
# # ICRAR - International Centre for Radio Astronomy Research # (c) UWA - The University of Western Australia, 2016 # Copyright by UWA (in the framework of the ICRAR) # All rights reserved # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser G...
icrarREPO_NAMEdaliugePATH_START.@daliuge_extracted@daliuge-master@daliuge-engine@dlg@meta.py@.PATH_END.py
{ "filename": "_sunburst.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/_sunburst.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Sunburst(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "sunburst" _valid_props = { "branchvalues", "count", "customdata", "cus...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@_sunburst.py@.PATH_END.py
{ "filename": "pipe_commands.py", "repo_name": "LSSTDESC/rail_pipelines", "repo_path": "rail_pipelines_extracted/rail_pipelines-main/src/rail/cli/rail_pipe/pipe_commands.py", "type": "Python" }
from typing import Any import click from rail.core import __version__ from ...utils.project import RailProject from . import pipe_options, pipe_scripts from .reduce_roman_rubin_data import reduce_roman_rubin_data @click.group() @click.version_option(__version__) def pipe_cli() -> None: """RAIL pipeline scripts...
LSSTDESCREPO_NAMErail_pipelinesPATH_START.@rail_pipelines_extracted@rail_pipelines-main@src@rail@cli@rail_pipe@pipe_commands.py@.PATH_END.py
{ "filename": "all-objectives-and-metrics.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/docs/en/_includes/work_src/reusage/all-objectives-and-metrics.md", "type": "Markdown" }
- {{ error-function--RMSE }} - {{ error-function--Logit }} - {{ error-function--MAE }} - {{ error-function--CrossEntropy }} - {{ error-function--Quantile }} - {{ error-function--LogLinQuantile }} - {{ error-function__lq }} - {{ error-function__MultiRMSE }} - {{ error-function--MultiClass }} - {{ error-function--MultiC...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@docs@en@_includes@work_src@reusage@all-objectives-and-metrics.md@.PATH_END.py
{ "filename": "_namelength.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelength.py", "type": "Python" }
import _plotly_utils.basevalidators class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="namelength", parent_name="violin.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, p...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@violin@hoverlabel@_namelength.py@.PATH_END.py
{ "filename": "eleanor.py", "repo_name": "KeplerGO/lightkurve", "repo_path": "lightkurve_extracted/lightkurve-main/src/lightkurve/io/eleanor.py", "type": "Python" }
"""Reader for GSFC-ELEANOR-LITE light curve files. Details can be found at https://archive.stsci.edu/hlsp/eleanor and https://archive.stsci.edu/hlsp/gsfc-eleanor-lite """ from ..lightcurve import TessLightCurve from ..utils import TessQualityFlags from astropy import units as u from .generic import read_generic_lightc...
KeplerGOREPO_NAMElightkurvePATH_START.@lightkurve_extracted@lightkurve-main@src@lightkurve@io@eleanor.py@.PATH_END.py
{ "filename": "_valign.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/legend/_valign.py", "type": "Python" }
import _plotly_utils.basevalidators class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="valign", parent_name="layout.legend", **kwargs): super(ValignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@legend@_valign.py@.PATH_END.py
{ "filename": "radial_integrals.py", "repo_name": "temken/DarkARC", "repo_path": "DarkARC_extracted/DarkARC-master/src/radial_integrals.py", "type": "Python" }
import sys import time import scipy.integrate as integrate import scipy.special as special import hankel import mpmath as mp import math from hankel import HankelTransform from wave_functions import * def main(): start_tot = time.time() # Test individual integrals with different methods element = Ar n = 3 l = ...
temkenREPO_NAMEDarkARCPATH_START.@DarkARC_extracted@DarkARC-master@src@radial_integrals.py@.PATH_END.py
{ "filename": "sliderdemo.py", "repo_name": "mhammond/pywin32", "repo_path": "pywin32_extracted/pywin32-main/Pythonwin/pywin/Demos/sliderdemo.py", "type": "Python" }
# sliderdemo.py # Demo of the slider control courtesy of Mike Fletcher. import win32con import win32ui from pywin.mfc import dialog class MyDialog(dialog.Dialog): """ Example using simple controls """ _dialogstyle = ( win32con.WS_MINIMIZEBOX | win32con.WS_DLGFRAME | win32con....
mhammondREPO_NAMEpywin32PATH_START.@pywin32_extracted@pywin32-main@Pythonwin@pywin@Demos@sliderdemo.py@.PATH_END.py
{ "filename": "tfsa-2021-177.md", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/security/advisory/tfsa-2021-177.md", "type": "Markdown" }
## TFSA-2021-177: Use after free / memory leak in `CollectiveReduceV2` ### CVE Number CVE-2021-41220 ### Impact The [async implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/collective_ops.cc#L604-L615) of `CollectiveReduceV2` suffers from a ...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@security@advisory@tfsa-2021-177.md@.PATH_END.py
{ "filename": "_weight.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py", "type": "Python" }
import _plotly_utils.basevalidators class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="weight", parent_name="choroplethmap.colorbar.tickfont", **kwargs, ): super(WeightValidator, self).__init__( plotly_name...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@choroplethmap@colorbar@tickfont@_weight.py@.PATH_END.py
{ "filename": "test_chemistry_struct_synched.py", "repo_name": "grackle-project/grackle", "repo_path": "grackle_extracted/grackle-main/src/python/tests/test_chemistry_struct_synched.py", "type": "Python" }
######################################################################## # # Explicitly test that the API for dynamically accessing fields of # chemistry_data is synchronized with the members of chemistry_data # (this is meant to identify the scenario where a new member gets added to # chemistry_data but the dynamic AP...
grackle-projectREPO_NAMEgracklePATH_START.@grackle_extracted@grackle-main@src@python@tests@test_chemistry_struct_synched.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/choroplethmapbox/colorbar/tickfont/_textcase.py", "type": "Python" }
import _plotly_utils.basevalidators class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="textcase", parent_name="choroplethmapbox.colorbar.tickfont", **kwargs, ): super(TextcaseValidator, self).__init__( ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@choroplethmapbox@colorbar@tickfont@_textcase.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="style", parent_name="layout.polar.radialaxis.title.font", **kwargs, ): super(StyleValidator, self).__init__( plotly_n...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@polar@radialaxis@title@font@_style.py@.PATH_END.py
{ "filename": "simple_contour_in_slice.py", "repo_name": "rennehan/yt-swift", "repo_path": "yt-swift_extracted/yt-swift-main/doc/source/cookbook/simple_contour_in_slice.py", "type": "Python" }
import yt # Load the data file. ds = yt.load("Sedov_3d/sedov_hdf5_chk_0002") # Make a traditional slice plot. sp = yt.SlicePlot(ds, "x", ("gas", "density")) # Overlay the slice plot with thick red contours of density. sp.annotate_contour( ("gas", "density"), levels=3, clim=(1e-2, 1e-1), label=True, ...
rennehanREPO_NAMEyt-swiftPATH_START.@yt-swift_extracted@yt-swift-main@doc@source@cookbook@simple_contour_in_slice.py@.PATH_END.py
{ "filename": "triangulation.md", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/doc/unconverted/python/triangulation.md", "type": "Markdown" }
--- jupyter: jupytext: notebook_metadata_filter: all text_representation: extension: .md format_name: markdown format_version: '1.1' jupytext_version: 1.1.1 kernelspec: display_name: Python 2 language: python name: python2 plotly: permalink: python/triangulation/ ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@doc@unconverted@python@triangulation.md@.PATH_END.py
{ "filename": "utils.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/langchain/langchain/smith/evaluation/utils.py", "type": "Python" }
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@langchain@langchain@smith@evaluation@utils.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/contourcarpet/colorbar/tickfont/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="style", parent_name="contourcarpet.colorbar.tickfont", **kwargs, ): super(StyleValidator, self).__init__( plotly_name...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@contourcarpet@colorbar@tickfont@_style.py@.PATH_END.py
{ "filename": "plots_waCDM.ipynb", "repo_name": "igomezv/simplemc_tests", "repo_path": "simplemc_tests_extracted/simplemc_tests-main/plots_waCDM.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np import numdifftools as nd import scipy.linalg as la import matplotlib.pyplot as plt from simplemc.DriverMC import DriverMC from simplemc.plots import Simple_Plots from simplemc.plots.Plot_elipses import plot_elipses import corner import arviz from getdist import plots, MCSamples import getd...
igomezvREPO_NAMEsimplemc_testsPATH_START.@simplemc_tests_extracted@simplemc_tests-main@plots_waCDM.ipynb@.PATH_END.py
{ "filename": "OpResolverType.md", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/lite/g3doc/api_docs/python/tf/lite/experimental/OpResolverType.md", "type": "Markdown" }
page_type: reference description: Different types of op resolvers for Tensorflow Lite. <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="tf.lite.experime...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@lite@g3doc@api_docs@python@tf@lite@experimental@OpResolverType.md@.PATH_END.py
{ "filename": "_lineposition.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py", "type": "Python" }
import _plotly_utils.basevalidators class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__( self, plotly_name="lineposition", parent_name="histogram2d.colorbar.tickfont", **kwargs, ): super(LinepositionValidator, self).__init__( ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@histogram2d@colorbar@tickfont@_lineposition.py@.PATH_END.py
{ "filename": "pyuvdata_inspect.py", "repo_name": "RadioAstronomySoftwareGroup/pyuvdata", "repo_path": "pyuvdata_extracted/pyuvdata-main/scripts/pyuvdata_inspect.py", "type": "Python" }
#!/usr/bin/env python # Copyright (c) 2018 Radio Astronomy Software Group # Licensed under the 2-clause BSD License """Inspect attributes of pyuvdata objects.""" import argparse import os from pyuvdata import UVBeam, UVCal, UVData # setup argparse a = argparse.ArgumentParser( description=( "Inspect attri...
RadioAstronomySoftwareGroupREPO_NAMEpyuvdataPATH_START.@pyuvdata_extracted@pyuvdata-main@scripts@pyuvdata_inspect.py@.PATH_END.py
{ "filename": "foregrounds.py", "repo_name": "HERA-Team/hera_sim", "repo_path": "hera_sim_extracted/hera_sim-main/hera_sim/foregrounds.py", "type": "Python" }
"""Visibility-space foreground models. This module defines several cheap foreground models evaluated in visibility space. """ import numpy as np from astropy import units from . import utils from .components import component @component class Foreground: """Base class for foreground models.""" pass class...
HERA-TeamREPO_NAMEhera_simPATH_START.@hera_sim_extracted@hera_sim-main@hera_sim@foregrounds.py@.PATH_END.py
{ "filename": "plot.py", "repo_name": "moble/GWFrames", "repo_path": "GWFrames_extracted/GWFrames-master/Code/GWFrames/plot.py", "type": "Python" }
""" This submodule specializes the usual pyplot.plot function to be used as methods with Waveform objects. """ def plotWaveform(this, WaveformPart='Abs', Modes=(), t_fid=None, *pyplot_args, **pyplot_kwargs) : """ This function should be called as a method of the Waveform class, e.g., as >>> W.plot('A...
mobleREPO_NAMEGWFramesPATH_START.@GWFrames_extracted@GWFrames-master@Code@GWFrames@plot.py@.PATH_END.py
{ "filename": "_fresnel.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/volume/lighting/_fresnel.py", "type": "Python" }
import _plotly_utils.basevalidators class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="fresnel", parent_name="volume.lighting", **kwargs): super(FresnelValidator, 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@volume@lighting@_fresnel.py@.PATH_END.py
{ "filename": "spark_sql.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/utilities/spark_sql.py", "type": "Python" }
from __future__ import annotations from typing import TYPE_CHECKING, Any, Iterable, List, Optional if TYPE_CHECKING: from pyspark.sql import DataFrame, Row, SparkSession class SparkSQL: """SparkSQL is a utility class for interacting with Spark SQL.""" def __init__( self, spark_session: ...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@utilities@spark_sql.py@.PATH_END.py
{ "filename": "sunau.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/tools/python3/Lib/sunau.py", "type": "Python" }
"""Stuff to parse Sun and NeXT audio files. An audio file consists of a header followed by the data. The structure of the header is as follows. +---------------+ | magic word | +---------------+ | header size | +---------------+ | data size | +--------...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@tools@python3@Lib@sunau.py@.PATH_END.py
{ "filename": "_dtick.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/scene/yaxis/_dtick.py", "type": "Python" }
import _plotly_utils.basevalidators class DtickValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="dtick", parent_name="layout.scene.yaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@scene@yaxis@_dtick.py@.PATH_END.py
{ "filename": "_colorscale.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scatterpolargl/marker/line/_colorscale.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__( self, plotly_name="colorscale", parent_name="scatterpolargl.marker.line", **kwargs, ): super(ColorscaleValidator, self).__init__( p...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scatterpolargl@marker@line@_colorscale.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "spacetelescope/hstaxe", "repo_path": "hstaxe_extracted/hstaxe-main/cookbooks/ACS/SBC_basic_extraction/README.md", "type": "Markdown" }
In this Jupyter Notebook tutorial, we present the workflow for performing a basic spectral extraction using ACS/SBC Prism full frame data with the HSTaXe software. This directory, once cloned/downloaded, should contain this README.md, the tutorial Jupyter Notebook acs_sbc_hstaxe.ipynb, and a .HTML copy of the notebook...
spacetelescopeREPO_NAMEhstaxePATH_START.@hstaxe_extracted@hstaxe-main@cookbooks@ACS@SBC_basic_extraction@README.md@.PATH_END.py
{ "filename": "renderer.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/matplotlylib/renderer.py", "type": "Python" }
""" Renderer Module This module defines the PlotlyRenderer class and a single function, fig_to_plotly, which is intended to be the main way that user's will interact with the matplotlylib package. """ from __future__ import absolute_import import six import warnings import plotly.graph_objs as go from plotly.matplo...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@matplotlylib@renderer.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/streamtube/legendgrouptitle/font/_textcase.py", "type": "Python" }
import _plotly_utils.basevalidators class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="textcase", parent_name="streamtube.legendgrouptitle.font", **kwargs, ): super(TextcaseValidator, self).__init__( p...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@streamtube@legendgrouptitle@font@_textcase.py@.PATH_END.py
{ "filename": "example_split.py", "repo_name": "icrar/daliuge", "repo_path": "daliuge_extracted/daliuge-master/daliuge-engine/test/integrate/example_split.py", "type": "Python" }
""" This is an example of splitting a measurementset using the CASA MSTRANSFORM task We need to develop a template based on it so it can get multiple spws based on frequency ranges and widths To run it standalone, change the directories, which are now hardcoded """ # pylint: skip-file import datetime import os import...
icrarREPO_NAMEdaliugePATH_START.@daliuge_extracted@daliuge-master@daliuge-engine@test@integrate@example_split.py@.PATH_END.py
{ "filename": "par_hierarchical_inference.py", "repo_name": "sterinaldi/figaro", "repo_path": "figaro_extracted/figaro-main/figaro/_pipelines/par_hierarchical_inference.py", "type": "Python" }
import numpy as np import optparse import importlib import warnings from pathlib import Path from tqdm import tqdm from figaro.mixture import DPGMM, HDPGMM from figaro.utils import save_options, load_options, get_priors from figaro.plot import plot_median_cr, plot_multidim from figaro.load import load_data, load_sin...
sterinaldiREPO_NAMEfigaroPATH_START.@figaro_extracted@figaro-main@figaro@_pipelines@par_hierarchical_inference.py@.PATH_END.py
{ "filename": "compute_second_order_aperture_mass_correlations_HOWLS.py", "repo_name": "sheydenreich/threepoint", "repo_path": "threepoint_extracted/threepoint-main/python_scripts/old/compute_second_order_aperture_mass_correlations_HOWLS.py", "type": "Python" }
from utility import extract_second_order_aperture_masses import numpy as np import sys from tqdm import tqdm import multiprocessing.managers from multiprocessing import Pool from astropy.io import fits import os class MyManager(multiprocessing.managers.BaseManager): pass MyManager.register('np_zeros', np.zeros, mu...
sheydenreichREPO_NAMEthreepointPATH_START.@threepoint_extracted@threepoint-main@python_scripts@old@compute_second_order_aperture_mass_correlations_HOWLS.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "toros-astro/corral", "repo_path": "corral_extracted/corral-master/corral/template/template/__init__.py", "type": "Python" }
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created at ${timestamp} by corral ${version} # ============================================================================= # DOCS # ============================================================================= """${project_name} a corral pipeline """
toros-astroREPO_NAMEcorralPATH_START.@corral_extracted@corral-master@corral@template@template@__init__.py@.PATH_END.py
{ "filename": "rfi_flagging.py", "repo_name": "TianlaiProject/tlpipe", "repo_path": "tlpipe_extracted/tlpipe-master/tlpipe/timestream/rfi_flagging.py", "type": "Python" }
"""RFI flagging. Inheritance diagram ------------------- .. inheritance-diagram:: Flag :parts: 2 """ import numpy as np import timestream_task from tlpipe.container.raw_timestream import RawTimestream from tlpipe.container.timestream import Timestream from tlpipe.rfi import interpolate from tlpipe.rfi import gau...
TianlaiProjectREPO_NAMEtlpipePATH_START.@tlpipe_extracted@tlpipe-master@tlpipe@timestream@rfi_flagging.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "ARCLab-MIT/kspdg", "repo_path": "kspdg_extracted/kspdg-main/src/kspdg/agent_api/README.md", "type": "Markdown" }
# Agent API This subpackage provides an API, or base classes, for defining differential game agents and running those agents within specific KSPDG environments
ARCLab-MITREPO_NAMEkspdgPATH_START.@kspdg_extracted@kspdg-main@src@kspdg@agent_api@README.md@.PATH_END.py
{ "filename": "test_normalize.py", "repo_name": "grahambell/pymoc", "repo_path": "pymoc_extracted/pymoc-main/test/test_normalize.py", "type": "Python" }
# Copyright (C) 2014 Science and Technology Facilities Council. # # 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. # # Th...
grahambellREPO_NAMEpymocPATH_START.@pymoc_extracted@pymoc-main@test@test_normalize.py@.PATH_END.py
{ "filename": "_dtickrange.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py", "type": "Python" }
import _plotly_utils.basevalidators class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__( self, plotly_name="dtickrange", parent_name="treemap.marker.colorbar.tickformatstop", **kwargs, ): super(DtickrangeValidator, self).__init__( ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@treemap@marker@colorbar@tickformatstop@_dtickrange.py@.PATH_END.py
{ "filename": "setup.py", "repo_name": "Zafiirah13/FRBID", "repo_path": "FRBID_extracted/FRBID-master/FRBID_code/setup.py", "type": "Python" }
from setuptools import setup, find_packages setup(name = 'FRBID', version = '1.0.0', description = 'Fast Radio Burst Intelligent Distinguisher using Deep Learning', author = 'Zafiirah Hosenie', author_email = 'zafiirah.hosenie@gmail.com', license = 'MIT', url = 'https://github.com/Z...
Zafiirah13REPO_NAMEFRBIDPATH_START.@FRBID_extracted@FRBID-master@FRBID_code@setup.py@.PATH_END.py
{ "filename": "map_funcs.py", "repo_name": "ebaxter/CMBClusterLens", "repo_path": "CMBClusterLens_extracted/CMBClusterLens-main/map_funcs.py", "type": "Python" }
import numpy as np def get_theta_maps(map_settings): """Get theta maps in radians.""" N_pix = map_settings['N_pix'] pix_size_arcmin = map_settings['pix_size_arcmin'] x_row = (np.arange(N_pix) - 0.5*(N_pix-1.))*pix_size_arcmin + map_settings['map_center_x_arcmin'] y_row = (np.arange(N_pix) - 0.5*(N...
ebaxterREPO_NAMECMBClusterLensPATH_START.@CMBClusterLens_extracted@CMBClusterLens-main@map_funcs.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._minor import Minor from ._rangebreak import Rangebreak from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop from ._title impor...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@layout@yaxis@__init__.py@.PATH_END.py
{ "filename": "index.md", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/docs/docs/integrations/providers/portkey/index.md", "type": "Markdown" }
# Portkey [Portkey](https://portkey.ai) is the Control Panel for AI apps. With it's popular AI Gateway and Observability Suite, hundreds of teams ship **reliable**, **cost-efficient**, and **fast** apps. ## LLMOps for Langchain Portkey brings production readiness to Langchain. With Portkey, you can - [x] Connect to...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@docs@docs@integrations@providers@portkey@index.md@.PATH_END.py
{ "filename": "setup_package.py", "repo_name": "astropy/astroquery", "repo_path": "astroquery_extracted/astroquery-main/astroquery/exoplanet_orbit_database/setup_package.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os def get_package_data(): paths_core = [os.path.join('data', '*.json'), os.path.join('tests', 'data', '*.csv')] return {'astroquery.exoplanet_orbit_database': paths_core}
astropyREPO_NAMEastroqueryPATH_START.@astroquery_extracted@astroquery-main@astroquery@exoplanet_orbit_database@setup_package.py@.PATH_END.py
{ "filename": "MFieldCosmology.py", "repo_name": "ja-vazquez/SimpleMC", "repo_path": "SimpleMC_extracted/SimpleMC-master/simplemc/models/MFieldCosmology.py", "type": "Python" }
## This is Multi field cosmology #Using the dynamical system approach import numpy as np from simplemc.models.LCDMCosmology import LCDMCosmology from scipy.interpolate import interp1d from scipy.integrate import odeint from scipy.optimize import newton import sys class MFieldCosmology(LCDMCosmology): def __init_...
ja-vazquezREPO_NAMESimpleMCPATH_START.@SimpleMC_extracted@SimpleMC-master@simplemc@models@MFieldCosmology.py@.PATH_END.py
{ "filename": "_style.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/shape/legendgrouptitle/font/_style.py", "type": "Python" }
import _plotly_utils.basevalidators class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="style", parent_name="layout.shape.legendgrouptitle.font", **kwargs, ): super(StyleValidator, self).__init__( plotly_n...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@shape@legendgrouptitle@font@_style.py@.PATH_END.py
{ "filename": "demo.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/ipython/py2/IPython/lib/demo.py", "type": "Python" }
"""Module for interactive demos using IPython. This module implements a few classes for running Python scripts interactively in IPython for demonstrations. With very simple markup (a few tags in comments), you can control points where the script stops executing and returns control to IPython. Provided classes -----...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@ipython@py2@IPython@lib@demo.py@.PATH_END.py
{ "filename": "_marker.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/funnelarea/_marker.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.marker" _valid_props = {"colors", "colorssrc", "line", "...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@funnelarea@_marker.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/document_compressors/__init__.py", "type": "Python" }
import importlib from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from langchain_community.document_compressors.dashscope_rerank import ( DashScopeRerank, ) from langchain_community.document_compressors.flashrank_rerank import ( FlashrankRerank, ) from langchain_community.doc...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@document_compressors@__init__.py@.PATH_END.py
{ "filename": "_side.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/smith/realaxis/_side.py", "type": "Python" }
import _plotly_utils.basevalidators class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="side", parent_name="layout.smith.realaxis", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@smith@realaxis@_side.py@.PATH_END.py
{ "filename": "omniglot.py", "repo_name": "pytorch/vision", "repo_path": "vision_extracted/vision-main/torchvision/datasets/omniglot.py", "type": "Python" }
from os.path import join from pathlib import Path from typing import Any, Callable, List, Optional, Tuple, Union from PIL import Image from .utils import check_integrity, download_and_extract_archive, list_dir, list_files from .vision import VisionDataset class Omniglot(VisionDataset): """`Omniglot <https://git...
pytorchREPO_NAMEvisionPATH_START.@vision_extracted@vision-main@torchvision@datasets@omniglot.py@.PATH_END.py
{ "filename": "_cmax.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattercarpet/marker/_cmax.py", "type": "Python" }
import _plotly_utils.basevalidators class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="cmax", parent_name="scattercarpet.marker", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattercarpet@marker@_cmax.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "dtamayo/reboundx", "repo_path": "reboundx_extracted/reboundx-main/reboundx/test/__init__.py", "type": "Python" }
dtamayoREPO_NAMEreboundxPATH_START.@reboundx_extracted@reboundx-main@reboundx@test@__init__.py@.PATH_END.py
{ "filename": "_pi_k_k.py", "repo_name": "LoganAMorrison/Hazma", "repo_path": "Hazma_extracted/Hazma-master/hazma/form_factors/vector/_pi_k_k.py", "type": "Python" }
"""Module implementing the pi-k-k form factors.""" import abc from dataclasses import InitVar, dataclass, field from typing import overload import numpy as np from hazma.phase_space import PhaseSpaceDistribution1D from hazma.utils import ComplexArray, ComplexOrComplexArray, RealArray, RealOrRealArray from . import ...
LoganAMorrisonREPO_NAMEHazmaPATH_START.@Hazma_extracted@Hazma-master@hazma@form_factors@vector@_pi_k_k.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/partners/ollama/README.md", "type": "Markdown" }
# langchain-ollama This package contains the LangChain integration with Ollama ## Installation ```bash pip install -U langchain-ollama ``` You will also need to run the Ollama server locally. You can download it [here](https://ollama.com/download). ## Chat Models `ChatOllama` class exposes chat models from Ollam...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@partners@ollama@README.md@.PATH_END.py
{ "filename": "json_to_phot.py", "repo_name": "astrocatalogs/supernovae", "repo_path": "supernovae_extracted/supernovae-master/scripts/json_to_phot.py", "type": "Python" }
import json import numpy as np import matplotlib.pyplot as plt file = raw_input('File to read: ') sn = file.split('.')[0] f = open(file,'r') data=json.load(f) f.close() lc = [] for i in data[sn]['photometry']: try: time = i['time'] mag = i['magnitude'] try: err = i['e_magnitude'] ...
astrocatalogsREPO_NAMEsupernovaePATH_START.@supernovae_extracted@supernovae-master@scripts@json_to_phot.py@.PATH_END.py
{ "filename": "_column.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/sankey/domain/_column.py", "type": "Python" }
import _plotly_utils.basevalidators class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__(self, plotly_name="column", parent_name="sankey.domain", **kwargs): super(ColumnValidator, 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@sankey@domain@_column.py@.PATH_END.py
{ "filename": "function_utils_test.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/util/function_utils_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@util@function_utils_test.py@.PATH_END.py
{ "filename": "random.py", "repo_name": "keras-team/keras", "repo_path": "keras_extracted/keras-master/keras/src/backend/jax/random.py", "type": "Python" }
import jax from keras.src.backend.config import floatx from keras.src.random.seed_generator import SeedGenerator from keras.src.random.seed_generator import draw_seed from keras.src.random.seed_generator import make_default_seed def jax_draw_seed(seed): if isinstance(seed, jax.Array): return seed els...
keras-teamREPO_NAMEkerasPATH_START.@keras_extracted@keras-master@keras@src@backend@jax@random.py@.PATH_END.py
{ "filename": "pysr_demo.ipynb", "repo_name": "MilesCranmer/PySR", "repo_path": "PySR_extracted/PySR-master/examples/pysr_demo.ipynb", "type": "Jupyter Notebook" }
# Setup ## Instructions 1. Work on a copy of this notebook: _File_ > _Save a copy in Drive_ (you will need a Google account). 2. (Optional) If you would like to do the deep learning component of this tutorial, turn on the GPU with Edit->Notebook settings->Hardware accelerator->GPU ``` !pip install -U pysr ``` Juli...
MilesCranmerREPO_NAMEPySRPATH_START.@PySR_extracted@PySR-master@examples@pysr_demo.ipynb@.PATH_END.py
{ "filename": "_widthsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattercarpet/marker/line/_widthsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="widthsrc", parent_name="scattercarpet.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, par...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattercarpet@marker@line@_widthsrc.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "marblestation/posidonius", "repo_path": "posidonius_extracted/posidonius-master/posidonius/effects/__init__.py", "type": "Python" }
import posidonius.effects.disk import posidonius.effects.general_relativity import posidonius.effects.rotational_flattening import posidonius.effects.tides import posidonius.effects.wind import posidonius.effects.evolution
marblestationREPO_NAMEposidoniusPATH_START.@posidonius_extracted@posidonius-master@posidonius@effects@__init__.py@.PATH_END.py
{ "filename": "_line.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/graph_objs/ohlc/_line.py", "type": "Python" }
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.line" _valid_props = {"dash", "width"} # dash # ---- @pro...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@ohlc@_line.py@.PATH_END.py
{ "filename": "_warnings.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/pluggy/py3/pluggy/_warnings.py", "type": "Python" }
from typing import final class PluggyWarning(UserWarning): """Base class for all warnings emitted by pluggy.""" __module__ = "pluggy" @final class PluggyTeardownRaisedWarning(PluggyWarning): """A plugin raised an exception during an :ref:`old-style hookwrapper <old_style_hookwrappers>` teardown. ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@pluggy@py3@pluggy@_warnings.py@.PATH_END.py
{ "filename": "test_hm12.py", "repo_name": "galtay/rabacus", "repo_path": "rabacus_extracted/rabacus-master/rabacus/unittest/test_hm12.py", "type": "Python" }
""" Test the HM12 UV background model. http://adsabs.harvard.edu/abs/2012ApJ...746..125H """ import unittest import numpy as np import rabacus as ra H1i_z0p00 = 0.228e-13 / ra.U.s H1h_z0p00 = 0.889e-13 * ra.U.eV / ra.U.s He2i_z15p10 = 0.192e-22 / ra.U.s He2h_z15p10 = 0.154e-19 * ra.U.eV / ra.U.s class TestHM12...
galtayREPO_NAMErabacusPATH_START.@rabacus_extracted@rabacus-master@rabacus@unittest@test_hm12.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/barpolar/unselected/textfont/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._color.ColorValidator"] )
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@barpolar@unselected@textfont@__init__.py@.PATH_END.py
{ "filename": "_arrowhead.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/annotation/_arrowhead.py", "type": "Python" }
import _plotly_utils.basevalidators class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="arrowhead", parent_name="layout.annotation", **kwargs ): super(ArrowheadValidator, self).__init__( plotly_name=plotly_name, pare...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@annotation@_arrowhead.py@.PATH_END.py
{ "filename": "_bordercolor.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/choropleth/hoverlabel/_bordercolor.py", "type": "Python" }
import _plotly_utils.basevalidators class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bordercolor", parent_name="choropleth.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@choropleth@hoverlabel@_bordercolor.py@.PATH_END.py
{ "filename": "knownissues.md", "repo_name": "HETDEX/hetdex_api", "repo_path": "hetdex_api_extracted/hetdex_api-master/known_issues/hdr1/knownissues.md", "type": "Markdown" }
# List of known issues ## Bad shots A list of badshots that should be removed according to science goals are contained in: badshots.list Any detections contained in the shot are removed upon initialization of Detections() API. Users not using this call should remove the detections in their code. These engineering...
HETDEXREPO_NAMEhetdex_apiPATH_START.@hetdex_api_extracted@hetdex_api-master@known_issues@hdr1@knownissues.md@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "ucberkeleyseti/blimpy", "repo_path": "blimpy_extracted/blimpy-master/blimpy/__init__.py", "type": "Python" }
from __future__ import absolute_import try: from . import waterfall from .waterfall import Waterfall from .guppi import GuppiRaw from . import utils from . import fil2h5 from . import h52fil from . import h5diag from . import bl_scrunch from . import calcload from . import rawhd...
ucberkeleysetiREPO_NAMEblimpyPATH_START.@blimpy_extracted@blimpy-master@blimpy@__init__.py@.PATH_END.py
{ "filename": "_showticksuffix.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/indicator/gauge/axis/_showticksuffix.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showticksuffix", parent_name="indicator.gauge.axis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_n...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@indicator@gauge@axis@_showticksuffix.py@.PATH_END.py
{ "filename": "main.py", "repo_name": "gmbrandt/HTOF", "repo_path": "HTOF_extracted/HTOF-main/htof/main.py", "type": "Python" }
""" Driver script for htof. The Astrometry class is what a user should use to both parse and fit the intermediate astrometric data. Author: G. Mirek Brandt """ from astropy.time import Time from astropy.coordinates import Angle import warnings from htof.fit import AstrometricFitter from htof.special_parse import to_...
gmbrandtREPO_NAMEHTOFPATH_START.@HTOF_extracted@HTOF-main@htof@main.py@.PATH_END.py
{ "filename": "test_ssodnet.py", "repo_name": "maxmahlke/rocks", "repo_path": "rocks_extracted/rocks-master/tests/test_ssodnet.py", "type": "Python" }
import warnings import pytest import rocks @pytest.mark.parametrize("id_", ["Ceres", "doesnotexist"]) def test_get_ssoCard(id_): warnings.filterwarnings("ignore", "UserWarning") card = rocks.ssodnet.get_ssocard(id_) if id_ == "Ceres": assert isinstance(card, dict) else: assert card i...
maxmahlkeREPO_NAMErocksPATH_START.@rocks_extracted@rocks-master@tests@test_ssodnet.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "ArgonneCPAC/dsps", "repo_path": "dsps_extracted/dsps-main/docs/source/conf.py", "type": "Python" }
""" """ from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution("emcee").version except DistributionNotFound: __version__ = "unknown version" project = "dsps" copyright = "2023, Andrew Hearin" author = "Andrew Hearin" version = __version__ release = __version__ #...
ArgonneCPACREPO_NAMEdspsPATH_START.@dsps_extracted@dsps-main@docs@source@conf.py@.PATH_END.py
{ "filename": "_bordercolorsrc.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/violin/hoverlabel/_bordercolorsrc.py", "type": "Python" }
import _plotly_utils.basevalidators class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="bordercolorsrc", parent_name="violin.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@violin@hoverlabel@_bordercolorsrc.py@.PATH_END.py
{ "filename": "inset_locator_demo.py", "repo_name": "matplotlib/matplotlib", "repo_path": "matplotlib_extracted/matplotlib-main/galleries/examples/axes_grid1/inset_locator_demo.py", "type": "Python" }
""" ================== Inset locator demo ================== """ # %% # The `.inset_locator`'s `~.inset_locator.inset_axes` allows # easily placing insets in the corners of the Axes by specifying a width and # height and optionally a location (loc) that accepts locations as codes, # similar to `~matplotlib.axes.Axes....
matplotlibREPO_NAMEmatplotlibPATH_START.@matplotlib_extracted@matplotlib-main@galleries@examples@axes_grid1@inset_locator_demo.py@.PATH_END.py
{ "filename": "additional-simulation-initialization-examples.ipynb", "repo_name": "small-body-dynamics/SBDynT", "repo_path": "SBDynT_extracted/SBDynT-main/example-notebooks/Advanced-Features-and-Tools/additional-simulation-initialization-examples.ipynb", "type": "Jupyter Notebook" }
```python import rebound import sys #change the next line to reflect where you have downloaded the source code sys.path.insert(0, '/Users/kvolk/Documents/GitHub/SBDynT/src') import sbdynt as sbd ``` **Example of setting up an integration based on an orbit fit from find_orb:** ```python obj_name='example' #Find_orb o...
small-body-dynamicsREPO_NAMESBDynTPATH_START.@SBDynT_extracted@SBDynT-main@example-notebooks@Advanced-Features-and-Tools@additional-simulation-initialization-examples.ipynb@.PATH_END.py
{ "filename": "test_literal_validator.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/_plotly_utils/tests/validators/test_literal_validator.py", "type": "Python" }
import pytest from _plotly_utils.basevalidators import LiteralValidator import numpy as np # Fixtures # -------- @pytest.fixture() def validator(): return LiteralValidator("prop", "parent", "scatter") # Tests # ----- # ### Acceptance ### @pytest.mark.parametrize("val", ["scatter"]) def test_acceptance(val, vali...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@_plotly_utils@tests@validators@test_literal_validator.py@.PATH_END.py
{ "filename": "remstriping.py", "repo_name": "spacetelescope/jwebbinar_prep", "repo_path": "jwebbinar_prep_extracted/jwebbinar_prep-main/ceers/nircam/remstriping.py", "type": "Python" }
import os import shutil from glob import glob import argparse import logging from datetime import datetime import numpy as np from astropy.io import fits from astropy.stats import sigma_clipped_stats from scipy.optimize import curve_fit import yaml # jwst-related imports from jwst.datamodels import ImageModel, FlatMode...
spacetelescopeREPO_NAMEjwebbinar_prepPATH_START.@jwebbinar_prep_extracted@jwebbinar_prep-main@ceers@nircam@remstriping.py@.PATH_END.py
{ "filename": "train.py", "repo_name": "deepskies/DeepSLIDE", "repo_path": "DeepSLIDE_extracted/DeepSLIDE-main/src/scripts/train.py", "type": "Python" }
""" Simple stubs to use for re-train of the final model Can leave a default data source, or specify that 'load data' loads the dataset used in the final version """ import argparse def architecture(): """ :return: compiled architecture of the model you want to have trained """ return 0 def load_data(...
deepskiesREPO_NAMEDeepSLIDEPATH_START.@DeepSLIDE_extracted@DeepSLIDE-main@src@scripts@train.py@.PATH_END.py
{ "filename": "sampler.py", "repo_name": "brinckmann/montepython_public", "repo_path": "montepython_public_extracted/montepython_public-master/montepython/sampler.py", "type": "Python" }
""" .. module:: sampler :synopsis: Generic sampler .. moduleauthor:: Benjamin Audren <benjamin.audren@epfl.ch> .. moduleauthor:: Surhudm More <> This module defines one key function, :func:`run`, that distributes the work to the desired actual sampler (Metropolis Hastings, MultiNest, or PolyChord so far). It also...
brinckmannREPO_NAMEmontepython_publicPATH_START.@montepython_public_extracted@montepython_public-master@montepython@sampler.py@.PATH_END.py
{ "filename": "noise_model.py", "repo_name": "simonsobs/sotodlib", "repo_path": "sotodlib_extracted/sotodlib-master/sotodlib/mapmaking/noise_model.py", "type": "Python" }
################################ ####### Noise model stuff ###### ################################ import numpy as np import so3g from pixell import fft, utils, bunch from .utilities import * class Nmat: def __init__(self): """Initialize the noise model. In subclasses this will typically set up parameter...
simonsobsREPO_NAMEsotodlibPATH_START.@sotodlib_extracted@sotodlib-master@sotodlib@mapmaking@noise_model.py@.PATH_END.py
{ "filename": "HypervelocityWhiteDwarfCandidatesInGaiaDR3.ipynb", "repo_name": "astro-datalab/notebooks-latest", "repo_path": "notebooks-latest_extracted/notebooks-latest-master/03_ScienceExamples/WhiteDwarfs/HypervelocityWhiteDwarfCandidatesInGaiaDR3.ipynb", "type": "Jupyter Notebook" }
```python __nbid__ = '0032' __author__ = 'Alice Jacques <alice.jacques@noirlab.edu>' __version__ = '20240606' # yyyymmdd __datasets__ = ['gaia_dr3'] __keywords__ = ['science example', 'stars', 'parallax', 'vospace'] ``` # Using Gaia DR3 to identify hyper-runaway and hypervelocity white dwarf candidates ### Table of c...
astro-datalabREPO_NAMEnotebooks-latestPATH_START.@notebooks-latest_extracted@notebooks-latest-master@03_ScienceExamples@WhiteDwarfs@HypervelocityWhiteDwarfCandidatesInGaiaDR3.ipynb@.PATH_END.py