metadata
dict
text
stringlengths
0
40.6M
id
stringlengths
14
255
{ "filename": "sigpsingle.py", "repo_name": "jpcoles/glass", "repo_path": "glass_extracted/glass-master/glass/misc/sigpsingle.py", "type": "Python" }
import sys sys.path.append('..') from spherical_deproject import sigpsingle from numpy import loadtxt files = sys.argv[1:] if not files: dir = '/smaug/data/theorie/justin/Backup/Mylaptop/Scratch/Lensing/Cuspcore/CMerger1' files.append(dir + '/cmerger_1_sigpx.txt') for f in files: data = loadtxt(f, ...
jpcolesREPO_NAMEglassPATH_START.@glass_extracted@glass-master@glass@misc@sigpsingle.py@.PATH_END.py
{ "filename": "setup_d.py", "repo_name": "mhammond/pywin32", "repo_path": "pywin32_extracted/pywin32-main/win32/scripts/setup_d.py", "type": "Python" }
# Install and register pythonXX_d.dll, pywintypesXX_d.dll and pythoncomXX_d.dll # # Assumes the _d files can be found in the same directory as this script # or in the cwd. import os import shutil import sys import winreg import win32api def usage_and_die(rc): print() print("This script is designed to copy a...
mhammondREPO_NAMEpywin32PATH_START.@pywin32_extracted@pywin32-main@win32@scripts@setup_d.py@.PATH_END.py
{ "filename": "gp.py", "repo_name": "pyro-ppl/numpyro", "repo_path": "numpyro_extracted/numpyro-master/examples/gp.py", "type": "Python" }
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 """ Example: Gaussian Process ========================= In this example we show how to use NUTS to sample from the posterior over the hyperparameters of a gaussian process. .. image:: ../_static/img/examples/gp.png :align: center...
pyro-pplREPO_NAMEnumpyroPATH_START.@numpyro_extracted@numpyro-master@examples@gp.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/graph_objs/bar/hoverlabel/__init__.py", "type": "Python" }
import sys if sys.version_info < (3, 7): from ._font import Font else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@graph_objs@bar@hoverlabel@__init__.py@.PATH_END.py
{ "filename": "0005_dbquery_queries.py", "repo_name": "mavrix93/LightCurvesClassifier", "repo_path": "LightCurvesClassifier_extracted/LightCurvesClassifier-master/lcc_web/web/interface/migrations/0005_dbquery_queries.py", "type": "Python" }
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-15 09:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('interface', '0004_auto_20170313_1952'), ] operations = [ migrations.AddField(...
mavrix93REPO_NAMELightCurvesClassifierPATH_START.@LightCurvesClassifier_extracted@LightCurvesClassifier-master@lcc_web@web@interface@migrations@0005_dbquery_queries.py@.PATH_END.py
{ "filename": "Gas.py", "repo_name": "psheehan/pdspy", "repo_path": "pdspy_extracted/pdspy-master/pdspy/gas/Gas.py", "type": "Python" }
from pdspy.constants.physics import m_p, c, h import numpy import h5py class Gas: def set_properties_from_lambda(self, filename): f = open(filename) for i in range(3): f.readline() self.mass = float(f.readline()) f.readline() nlev = int(f.readline()) ...
psheehanREPO_NAMEpdspyPATH_START.@pdspy_extracted@pdspy-master@pdspy@gas@Gas.py@.PATH_END.py
{ "filename": "plot_ska_fs8.py", "repo_name": "philbull/RadioFisher", "repo_path": "RadioFisher_extracted/RadioFisher-master/plotting/plot_ska_fs8.py", "type": "Python" }
#!/usr/bin/python """ Plot f.sigma_8 as a function of z """ import numpy as np import pylab as P from rfwrapper import rf import matplotlib.patches import matplotlib.cm import matplotlib.ticker from radiofisher import euclid import copy cosmo = rf.experiments.cosmo #------------------------------------------------ # ...
philbullREPO_NAMERadioFisherPATH_START.@RadioFisher_extracted@RadioFisher-master@plotting@plot_ska_fs8.py@.PATH_END.py
{ "filename": "VERSION.md", "repo_name": "cdslaborg/paramonte", "repo_path": "paramonte_extracted/paramonte-main/src/python/VERSION.md", "type": "Markdown" }
3.0.0 ParaMonte Python library version file. This project uses semantic versioning. For details, see http://semver.org
cdslaborgREPO_NAMEparamontePATH_START.@paramonte_extracted@paramonte-main@src@python@VERSION.md@.PATH_END.py
{ "filename": "bimod_sats_fithelp.py", "repo_name": "ArgonneCPAC/diffmah", "repo_path": "diffmah_extracted/diffmah-main/diffmah/diffmahpop_kernels/bimod_sats_fithelp.py", "type": "Python" }
""" """ from jax import jit as jjit from jax import numpy as jnp from jax import random as jran from jax import value_and_grad, vmap from . import mc_bimod_sats as mcs T_OBS_FIT_MIN = 0.5 @jjit def _mse(x, y): d = y - x return jnp.mean(d * d) @jjit def _loss_mah_moments_singlebin( diffmahpop_params, ...
ArgonneCPACREPO_NAMEdiffmahPATH_START.@diffmah_extracted@diffmah-main@diffmah@diffmahpop_kernels@bimod_sats_fithelp.py@.PATH_END.py
{ "filename": "sghmc.py", "repo_name": "blackjax-devs/blackjax", "repo_path": "blackjax_extracted/blackjax-main/blackjax/sgmcmc/sghmc.py", "type": "Python" }
# Copyright 2020- The Blackjax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
blackjax-devsREPO_NAMEblackjaxPATH_START.@blackjax_extracted@blackjax-main@blackjax@sgmcmc@sghmc.py@.PATH_END.py
{ "filename": "_surface.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/_surface.py", "type": "Python" }
import _plotly_utils.basevalidators class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="surface", parent_name="", **kwargs): super(SurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, dat...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@_surface.py@.PATH_END.py
{ "filename": "acweSaveSeg_v5.py", "repo_name": "jalanderos/STRIDE-CH", "repo_path": "STRIDE-CH_extracted/STRIDE-CH-main/acwe_lib/acweSaveSeg_v5.py", "type": "Python" }
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 18 13:44:16 2020 Updated on Mon Feb 20 16:19:33 2023 @author: jgra """ # In[1] # Import Libraries and Tools import numpy as np # In[2] # Define Save function def saveSeg(filename,seg,h,correct_limb_brightening,resize_param, foreground_...
jalanderosREPO_NAMESTRIDE-CHPATH_START.@STRIDE-CH_extracted@STRIDE-CH-main@acwe_lib@acweSaveSeg_v5.py@.PATH_END.py
{ "filename": "test_Acspy_Common_TimeHelper.py", "repo_name": "ACS-Community/ACS", "repo_path": "ACS_extracted/ACS-master/LGPL/CommonSoftware/acspycommon/test/test_Acspy_Common_TimeHelper.py", "type": "Python" }
#! /usr/bin/env python #******************************************************************************* # ALMA - Atacama Large Millimiter Array # (c) National Research Council of Canada, 2008 # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public...
ACS-CommunityREPO_NAMEACSPATH_START.@ACS_extracted@ACS-master@LGPL@CommonSoftware@acspycommon@test@test_Acspy_Common_TimeHelper.py@.PATH_END.py
{ "filename": "online_storage.py", "repo_name": "renecotyfanboy/jaxspec", "repo_path": "jaxspec_extracted/jaxspec-main/src/jaxspec/util/online_storage.py", "type": "Python" }
import pooch table_manager = pooch.create( # Use the default cache folder for the operating system path=pooch.os_cache("jaxspec"), base_url="https://github.com/renecotyfanboy/jaxspec-database/raw/main/", # The registry specifies the files that can be fetched registry={ "abundances.dat": "sh...
renecotyfanboyREPO_NAMEjaxspecPATH_START.@jaxspec_extracted@jaxspec-main@src@jaxspec@util@online_storage.py@.PATH_END.py
{ "filename": "exceptions.py", "repo_name": "astropy/astroplan", "repo_path": "astroplan_extracted/astroplan-main/astroplan/exceptions.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst from astropy.utils.exceptions import AstropyWarning __all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning", "OldEarthOrientationDataWarning", "PlotWarning", "PlotBelowHorizonWarning", "AstroplanWarning", "MissingConst...
astropyREPO_NAMEastroplanPATH_START.@astroplan_extracted@astroplan-main@astroplan@exceptions.py@.PATH_END.py
{ "filename": "_opacity.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/box/unselected/marker/_opacity.py", "type": "Python" }
import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="opacity", parent_name="box.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@box@unselected@marker@_opacity.py@.PATH_END.py
{ "filename": "_weight.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/choropleth/legendgrouptitle/font/_weight.py", "type": "Python" }
import _plotly_utils.basevalidators class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="weight", parent_name="choropleth.legendgrouptitle.font", **kwargs, ): super(WeightValidator, self).__init__( plotly_nam...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@choropleth@legendgrouptitle@font@_weight.py@.PATH_END.py
{ "filename": "interface_generator.py", "repo_name": "JulianBMunoz/RelicFast", "repo_path": "RelicFast_extracted/RelicFast-master/CLASS_Current/python/interface_generator.py", "type": "Python" }
""" Automatically reads header files to generate an interface """ from __future__ import division, print_function import sys import logging try: from collections import OrderedDict as od except ImportError: try: from ordereddict import OrderedDict as od except ImportError: raise ImportError(...
JulianBMunozREPO_NAMERelicFastPATH_START.@RelicFast_extracted@RelicFast-master@CLASS_Current@python@interface_generator.py@.PATH_END.py
{ "filename": "bare_rock.ipynb", "repo_name": "nichollsh/AGNI", "repo_path": "AGNI_extracted/AGNI-main/misc/bare_rock.ipynb", "type": "Jupyter Notebook" }
```python import numpy as np import matplotlib.pyplot as plt from scipy.optimize import root_scalar from scipy.interpolate import PchipInterpolator ``` ```python # Constants (SI units) AU = 1.495979e+11 sigma = 5.670374419e-8 h_pl = 6.62607015e-34 k_B = 1.380649e-23 c_vac = 299792458.0 ``` ```python # Parame...
nichollshREPO_NAMEAGNIPATH_START.@AGNI_extracted@AGNI-main@misc@bare_rock.ipynb@.PATH_END.py
{ "filename": "_dash.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/ohlc/increasing/line/_dash.py", "type": "Python" }
import _plotly_utils.basevalidators class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="dash", parent_name="ohlc.increasing.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@ohlc@increasing@line@_dash.py@.PATH_END.py
{ "filename": "_xpad.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xpad.py", "type": "Python" }
import _plotly_utils.basevalidators class XpadValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="xpad", parent_name="scatter3d.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scatter3d@marker@colorbar@_xpad.py@.PATH_END.py
{ "filename": "cninv.py", "repo_name": "toshiyan/cmblensplus", "repo_path": "cmblensplus_extracted/cmblensplus-master/wrap/curvedsky/cninv.py", "type": "Python" }
import libcurvedsky import numpy def cnfilter_freq(n,mn,nside,lmax,cl,bl,iNcov,maps,chn=1,lmaxs=[0],nsides=[0],itns=[1],eps=[1e-6],filter='W',verbose=False,ro=50,stat='',inl=None): """ Combining multiple frequency CMB maps optimally. The filtering would work if the noise variance is not significantly varied with ...
toshiyanREPO_NAMEcmblensplusPATH_START.@cmblensplus_extracted@cmblensplus-master@wrap@curvedsky@cninv.py@.PATH_END.py
{ "filename": "_xpad.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xpad.py", "type": "Python" }
import _plotly_utils.basevalidators class XpadValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="xpad", parent_name="parcats.line.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@parcats@line@colorbar@_xpad.py@.PATH_END.py
{ "filename": "quickstart.md", "repo_name": "ebellm/pyraf-dbsp", "repo_path": "pyraf-dbsp_extracted/pyraf-dbsp-master/docs/quickstart.md", "type": "Markdown" }
### Quick Start/Command Summary Complete night reduction: `cd` to your data directory. Save a copy of your files in a "raw" directory--this code overwrites the originals! mdkir raw cp *.fits raw Start `ipython` and load the script: %run /path/to/dbsp.py For users on the Caltech astro network, log in to soro...
ebellmREPO_NAMEpyraf-dbspPATH_START.@pyraf-dbsp_extracted@pyraf-dbsp-master@docs@quickstart.md@.PATH_END.py
{ "filename": "test_rambo.py", "repo_name": "LoganAMorrison/Hazma", "repo_path": "Hazma_extracted/Hazma-master/test/rambo/test_rambo.py", "type": "Python" }
import unittest import pytest import numpy as np from numpy.testing import assert_allclose from hazma.field_theory_helper_functions.common_functions import minkowski_dot as MDot from hazma.parameters import GF, alpha_em from hazma.parameters import electron_mass as me from hazma.parameters import muon_mass as mmu fro...
LoganAMorrisonREPO_NAMEHazmaPATH_START.@Hazma_extracted@Hazma-master@test@rambo@test_rambo.py@.PATH_END.py
{ "filename": "test_take.py", "repo_name": "pandas-dev/pandas", "repo_path": "pandas_extracted/pandas-main/pandas/tests/test_take.py", "type": "Python" }
from datetime import datetime import numpy as np import pytest from pandas._libs import iNaT from pandas import array import pandas._testing as tm import pandas.core.algorithms as algos @pytest.fixture( params=[ (np.int8, np.int16(127), np.int8), (np.int8, np.int16(128), np.int16), (np....
pandas-devREPO_NAMEpandasPATH_START.@pandas_extracted@pandas-main@pandas@tests@test_take.py@.PATH_END.py
{ "filename": "_variant.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py", "type": "Python" }
import _plotly_utils.basevalidators class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="variant", parent_name="histogram2dcontour.colorbar.tickfont", **kwargs, ): super(VariantValidator, self).__init__( ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@histogram2dcontour@colorbar@tickfont@_variant.py@.PATH_END.py
{ "filename": "_shadow.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/parcoords/tickfont/_shadow.py", "type": "Python" }
import _plotly_utils.basevalidators class ShadowValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="shadow", parent_name="parcoords.tickfont", **kwargs ): super(ShadowValidator, self).__init__( plotly_name=plotly_name, parent_name=p...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@parcoords@tickfont@_shadow.py@.PATH_END.py
{ "filename": "pgvector.ipynb", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/docs/docs/integrations/vectorstores/pgvector.ipynb", "type": "Jupyter Notebook" }
# PGVector > An implementation of LangChain vectorstore abstraction using `postgres` as the backend and utilizing the `pgvector` extension. The code lives in an integration package called: [langchain_postgres](https://github.com/langchain-ai/langchain-postgres/). ## Status This code has been ported over from `langc...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@docs@docs@integrations@vectorstores@pgvector.ipynb@.PATH_END.py
{ "filename": "styles.py", "repo_name": "hopehhchen/Droplets", "repo_path": "Droplets_extracted/Droplets-master/Droplets/styles.py", "type": "Python" }
from matplotlib import rcParams from cycler import cycler colors_538 = ["#30a2da", "#fc4f30", "#e5ae38", "#6d904f", "#8b8b8b"] ### Hope's implementation ### # lines rcParams['lines.linewidth'] = 1 rcParams['lines.markersize'] = 20 # image rcParams['image.cmap'] ...
hopehhchenREPO_NAMEDropletsPATH_START.@Droplets_extracted@Droplets-master@Droplets@styles.py@.PATH_END.py
{ "filename": "test_diskdf.py", "repo_name": "jobovy/galpy", "repo_path": "galpy_extracted/galpy-main/tests/test_diskdf.py", "type": "Python" }
# Tests of the diskdf module: distribution functions from Dehnen (1999) import os import numpy import pytest from scipy import stats from galpy.df import dehnendf, schwarzschilddf, shudf _FEWERLONGINTEGRALS = True # So we can reuse the following ddf_correct_flat = None ddf_correct2_flat = None ddf_correct_powerrise ...
jobovyREPO_NAMEgalpyPATH_START.@galpy_extracted@galpy-main@tests@test_diskdf.py@.PATH_END.py
{ "filename": "_enabled.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_enabled.py", "type": "Python" }
import _plotly_utils.basevalidators class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="enabled", parent_name="layout.yaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, ...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@layout@yaxis@tickformatstop@_enabled.py@.PATH_END.py
{ "filename": "_show.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/surface/contours/x/_show.py", "type": "Python" }
import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="show", parent_name="surface.contours.x", **kwargs): super(ShowValidator, 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@surface@contours@x@_show.py@.PATH_END.py
{ "filename": "_color.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattergl/error_x/_color.py", "type": "Python" }
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="color", parent_name="scattergl.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattergl@error_x@_color.py@.PATH_END.py
{ "filename": "shell.py", "repo_name": "xraypy/xraylarch", "repo_path": "xraylarch_extracted/xraylarch-master/larch/shell.py", "type": "Python" }
#!/usr/bin/env python """ Larch command-line shell """ import cmd import os import sys import signal from .interpreter import Interpreter from .site_config import history_file from .version import make_banner from .larchlib import StdWriter from .utils import uname HAS_READLINE = False try: import readline HA...
xraypyREPO_NAMExraylarchPATH_START.@xraylarch_extracted@xraylarch-master@larch@shell.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/graph_objs/scattergeo/selected/__init__.py", "type": "Python" }
import sys if sys.version_info < (3, 7): from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._marker.Marker", "._textfont.Textfont"] )
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@graph_objs@scattergeo@selected@__init__.py@.PATH_END.py
{ "filename": "FRB_Cat.ipynb", "repo_name": "FRBs/FRB", "repo_path": "FRB_extracted/FRB-main/docs/nb/FRB_Cat.ipynb", "type": "Jupyter Notebook" }
# Reading FRB Cat [v1.3] v1.2 -- Update in 2018 v1.3 -- Update on 07 Dec 2019 http://frbcat.org/ ```python # imports from imp import reload import numpy as np from matplotlib import pyplot as plt from astropy.table import Table from astropy.time import Time from frb import frbcat as ffcat from frb ...
FRBsREPO_NAMEFRBPATH_START.@FRB_extracted@FRB-main@docs@nb@FRB_Cat.ipynb@.PATH_END.py
{ "filename": "E12_not_second.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/parso/py3/tests/normalizer_issue_files/E12_not_second.py", "type": "Python" }
def qualify_by_address( self, cr, uid, ids, context=None, params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)): """ This gets called by the web server """ def qualify_by_address(self, cr, uid, ids, context=None, params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)): """ Th...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@parso@py3@tests@normalizer_issue_files@E12_not_second.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "qubvel/segmentation_models.pytorch", "repo_path": "segmentation_models.pytorch_extracted/segmentation_models.pytorch-main/segmentation_models_pytorch/base/__init__.py", "type": "Python" }
from .model import SegmentationModel from .modules import Conv2dReLU, Attention from .heads import SegmentationHead, ClassificationHead __all__ = [ "SegmentationModel", "Conv2dReLU", "Attention", "SegmentationHead", "ClassificationHead", ]
qubvelREPO_NAMEsegmentation_models.pytorchPATH_START.@segmentation_models.pytorch_extracted@segmentation_models.pytorch-main@segmentation_models_pytorch@base@__init__.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "PrefectHQ/prefect", "repo_path": "prefect_extracted/prefect-main/src/integrations/prefect-ray/README.md", "type": "Markdown" }
# prefect-ray <p align="center"> <!--- Insert a cover image here --> <!--- <br> --> <a href="https://pypi.python.org/pypi/prefect-ray/" alt="PyPI version"> <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-ray?color=26272B&labelColor=090422"></a> <a href="https://pepy.tech/badge/prefec...
PrefectHQREPO_NAMEprefectPATH_START.@prefect_extracted@prefect-main@src@integrations@prefect-ray@README.md@.PATH_END.py
{ "filename": "cp424.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/tools/python3/Lib/encodings/cp424.py", "type": "Python" }
""" Python Character Mapping Codec cp424 generated from 'MAPPINGS/VENDORS/MISC/CP424.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@tools@python3@Lib@encodings@cp424.py@.PATH_END.py
{ "filename": "plugin_upload.py", "repo_name": "sbraden/circle-craters", "repo_path": "circle-craters_extracted/circle-craters-master/plugin_upload.py", "type": "Python" }
#!/usr/bin/env python # coding=utf-8 """This script uploads a plugin package on the server. Authors: A. Pasotti, V. Picavet git sha : $TemplateVCSFormat """ import sys import getpass import xmlrpclib from optparse import OptionParser # Configuration PROTOCOL = 'http' SERVER = 'plugins.qgi...
sbradenREPO_NAMEcircle-cratersPATH_START.@circle-craters_extracted@circle-craters-master@plugin_upload.py@.PATH_END.py
{ "filename": "_family.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_family.py", "type": "Python" }
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, paren...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattergeo@hoverlabel@font@_family.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/restricted/googletest/googletest/README.md", "type": "Markdown" }
### Generic Build Instructions #### Setup To build GoogleTest and your tests that use it, you need to tell your build system where to find its headers and source files. The exact way to do it depends on which build system you use, and is usually straightforward. ### Build with CMake GoogleTest comes with a CMake bu...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@restricted@googletest@googletest@README.md@.PATH_END.py
{ "filename": "Step4_matching_img_ifs_part2-checkpoint.ipynb", "repo_name": "aabdurrouf/piXedfit", "repo_path": "piXedfit_extracted/piXedfit-main/examples/FUVtoNIR_CALIFA/.ipynb_checkpoints/Step4_matching_img_ifs_part2-checkpoint.ipynb", "type": "Jupyter Notebook" }
# 4. Spatial and spectral matching between imaging data and IFS data cube using `piXedfit_spectrophotometric` -- Part II <font size="4">In this step, we correct for the wavelength-dependant mismatch between the IFS spectra and the photometric SEDs on pixel level. This mismatch can be caused by at least two factors: sy...
aabdurroufREPO_NAMEpiXedfitPATH_START.@piXedfit_extracted@piXedfit-main@examples@FUVtoNIR_CALIFA@.ipynb_checkpoints@Step4_matching_img_ifs_part2-checkpoint.ipynb@.PATH_END.py
{ "filename": "_name.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/splom/_name.py", "type": "Python" }
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="name", parent_name="splom", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@splom@_name.py@.PATH_END.py
{ "filename": "_width.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattermap/line/_width.py", "type": "Python" }
import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="width", parent_name="scattermap.line", **kwargs): super(WidthValidator, 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@scattermap@line@_width.py@.PATH_END.py
{ "filename": "_spectra.py", "repo_name": "LoganAMorrison/Hazma", "repo_path": "Hazma_extracted/Hazma-master/hazma/experimental/pseudo_scalar_mediator/_spectra.py", "type": "Python" }
import numpy as np from hazma import spectra from hazma.parameters import muon_mass as mmu from hazma.parameters import electron_mass as me from ._proto import PseudoScalarMediatorBase from ._fsr import dnde_xx_to_p_to_ffg from ._msqrd import msqrd_xx_to_p_to_000, msqrd_xx_to_p_to_pm0 # Stuff needed to compute fsr f...
LoganAMorrisonREPO_NAMEHazmaPATH_START.@Hazma_extracted@Hazma-master@hazma@experimental@pseudo_scalar_mediator@_spectra.py@.PATH_END.py
{ "filename": "jwstnirspec.py", "repo_name": "jruffio/breads", "repo_path": "breads_extracted/breads-main/breads/instruments/jwstnirspec.py", "type": "Python" }
from matplotlib.pyplot import axis import matplotlib.pyplot as plt from breads.instruments.instrument import Instrument import breads.utils as utils from warnings import warn import astropy.io.fits as pyfits import numpy as np import ctypes from astropy.coordinates import SkyCoord, EarthLocation import astropy.units as...
jruffioREPO_NAMEbreadsPATH_START.@breads_extracted@breads-main@breads@instruments@jwstnirspec.py@.PATH_END.py
{ "filename": "derived_field.py", "repo_name": "yt-project/yt", "repo_path": "yt_extracted/yt-main/doc/source/cookbook/derived_field.py", "type": "Python" }
import yt # Load the dataset. ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") # You can create a derived field by manipulating any existing derived fields # in any way you choose. In this case, let's just make a simple one: # thermal_energy_density = 3/2 nkT # First create a function which yields your new der...
yt-projectREPO_NAMEytPATH_START.@yt_extracted@yt-main@doc@source@cookbook@derived_field.py@.PATH_END.py
{ "filename": "_legend.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scatter3d/_legend.py", "type": "Python" }
import _plotly_utils.basevalidators class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): def __init__(self, plotly_name="legend", parent_name="scatter3d", **kwargs): super(LegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scatter3d@_legend.py@.PATH_END.py
{ "filename": "_utils.py", "repo_name": "astropy/astropy", "repo_path": "astropy_extracted/astropy-main/astropy/cosmology/_utils.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import annotations __all__: list[str] = [] # nothing is publicly scoped import functools import operator from collections.abc import Callable from dataclasses import Field from numbers import Number from typing import TYPE_CHECKING, Any...
astropyREPO_NAMEastropyPATH_START.@astropy_extracted@astropy-main@astropy@cosmology@_utils.py@.PATH_END.py
{ "filename": "make_transmission.py", "repo_name": "igmhub/LyaCoLoRe", "repo_path": "LyaCoLoRe_extracted/LyaCoLoRe-master/scripts/make_transmission.py", "type": "Python" }
#!/usr/bin/env python import multiprocessing import numpy as np import os import sys import time from astropy.io import fits from multiprocessing import Pool from scipy.interpolate import interp1d from lyacolore import parse, simulation_data, utils ###################################################################...
igmhubREPO_NAMELyaCoLoRePATH_START.@LyaCoLoRe_extracted@LyaCoLoRe-master@scripts@make_transmission.py@.PATH_END.py
{ "filename": "download-data.ipynb", "repo_name": "HITS-AIN/PINK", "repo_path": "PINK_extracted/PINK-master/jupyter/download-data.ipynb", "type": "Jupyter Notebook" }
```python import sys !{sys.executable} -m pip install --user googledrivedownloader requests %reset -f ``` Requirement already satisfied: googledrivedownloader in /usr/local/lib/python3.6/dist-packages (0.4) Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (2.22.0) Require...
HITS-AINREPO_NAMEPINKPATH_START.@PINK_extracted@PINK-master@jupyter@download-data.ipynb@.PATH_END.py
{ "filename": "_tickfont.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/heatmapgl/colorbar/_tickfont.py", "type": "Python" }
import _plotly_utils.basevalidators class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="tickfont", parent_name="heatmapgl.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, paren...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@heatmapgl@colorbar@_tickfont.py@.PATH_END.py
{ "filename": "scan_util.py", "repo_name": "brinckmann/montepython_public", "repo_path": "montepython_public_extracted/montepython_public-master/montepython/likelihoods/bao_BOSS_DR11_Lya_cross/scan_util.py", "type": "Python" }
# scan_util.py # # This is a module containing subfunctions to read the chi2 tables from BOSS and # eBOSS Lya auto and Lya-QSO cross correlation results # # class:chi2_interpolators # - __init__ # - get_chi2_distances # import numpy as np from scipy.interpolate import RectBivariateSpline #################...
brinckmannREPO_NAMEmontepython_publicPATH_START.@montepython_public_extracted@montepython_public-master@montepython@likelihoods@bao_BOSS_DR11_Lya_cross@scan_util.py@.PATH_END.py
{ "filename": "_tickwidth.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py", "type": "Python" }
import _plotly_utils.basevalidators class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="tickwidth", parent_name="scattermapbox.marker.colorbar", **kwargs, ): super(TickwidthValidator, self).__init__( plotl...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattermapbox@marker@colorbar@_tickwidth.py@.PATH_END.py
{ "filename": "_font.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/splom/legendgrouptitle/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="splom.legendgrouptitle", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=p...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@splom@legendgrouptitle@_font.py@.PATH_END.py
{ "filename": "sleep.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/data/experimental/ops/sleep.py", "type": "Python" }
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@python@data@experimental@ops@sleep.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/graph_objs/splom/marker/colorbar/__init__.py", "type": "Python" }
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop from ._title import Title from . import title else: from _plotly_utils.importers import relative_import __all__, __getattr__, _...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@graph_objs@splom@marker@colorbar@__init__.py@.PATH_END.py
{ "filename": "test_imports.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/tests/unit_tests/chat_models/test_imports.py", "type": "Python" }
from langchain_community.chat_models import __all__, _module_lookup EXPECTED_ALL = [ "AzureChatOpenAI", "BedrockChat", "ChatAnthropic", "ChatAnyscale", "ChatBaichuan", "ChatClovaX", "ChatCohere", "ChatCoze", "ChatDatabricks", "ChatDeepInfra", "ChatEverlyAI", "ChatEdenAI"...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@tests@unit_tests@chat_models@test_imports.py@.PATH_END.py
{ "filename": "TOA_characterise.py", "repo_name": "mattpitkin/tempo2", "repo_path": "tempo2_extracted/tempo2-master/python/toasim/bin/TOA_characterise.py", "type": "Python" }
#!/usr/bin/python import sys import matplotlib.pylab as plt from math import sqrt,pi,degrees import random import ephem def printhelp(): print("TOA_characterise [options] tempo2.tim") print("") print("Characterises the given TOAs (tempo2 format tim file).") print("Can simulate future observations bas...
mattpitkinREPO_NAMEtempo2PATH_START.@tempo2_extracted@tempo2-master@python@toasim@bin@TOA_characterise.py@.PATH_END.py
{ "filename": "values.py", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/distribute/coordinator/values.py", "type": "Python" }
# Copyright 2020 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 applicable ...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@python@distribute@coordinator@values.py@.PATH_END.py
{ "filename": "cli__cross-validation__purpose__div.md", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/catboost/docs/en/_includes/work_src/reusage/cli__cross-validation__purpose__div.md", "type": "Markdown" }
Training can be launched in cross-validation mode. In this case, only the training dataset is required. This dataset is split, and the resulting folds are used as the learning and evaluation datasets. If the input dataset contains the {{ cd-file__col-type__GroupId }} column, all objects from one group are added to the...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@catboost@docs@en@_includes@work_src@reusage@cli__cross-validation__purpose__div.md@.PATH_END.py
{ "filename": "input.py", "repo_name": "jcolinhill/pyilc", "repo_path": "pyilc_extracted/pyilc-main/pyilc/input.py", "type": "Python" }
from __future__ import print_function import numpy as np import yaml import os import healpy as hp """ module to read in relevant input specified by user """ ########################## # wavelet types implemented thus far # WV_TYPES = ['GaussianNeedlets','TopHatHarmonic'] WV_TYPES = ['GaussianNeedlets','TopHatHarmonic'...
jcolinhillREPO_NAMEpyilcPATH_START.@pyilc_extracted@pyilc-main@pyilc@input.py@.PATH_END.py
{ "filename": "athena.py", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/document_loaders/athena.py", "type": "Python" }
from __future__ import annotations import io import json import time from typing import Any, Dict, Iterator, List, Optional, Tuple from langchain_core.documents import Document from langchain_community.document_loaders.base import BaseLoader class AthenaLoader(BaseLoader): """Load documents from `AWS Athena`. ...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@document_loaders@athena.py@.PATH_END.py
{ "filename": "sumLine.py", "repo_name": "GBTSpectroscopy/gbtpipe", "repo_path": "gbtpipe_extracted/gbtpipe-master/gbtpipe/contrib/sumLine.py", "type": "Python" }
# parsel-tongue script tuned for SGR B2 obs of NH3 #HISTORY #11JAN26 GIL add help #10OCT06 GIL measure the NH3 1-1 integrated profile only from AIPS import * from AIPS import AIPS from AIPSTask import AIPSTask, AIPSList from AIPSData import * from AIPSData import AIPSUVData, AIPSImage from Wizardry.AIPSData import AIP...
GBTSpectroscopyREPO_NAMEgbtpipePATH_START.@gbtpipe_extracted@gbtpipe-master@gbtpipe@contrib@sumLine.py@.PATH_END.py
{ "filename": "menubars.py", "repo_name": "spacetelescope/specview", "repo_path": "specview_extracted/specview-master/specview/ui/qt/menubars.py", "type": "Python" }
from ...external.qt import QtGui class MainMainBar(QtGui.QMenuBar): def __init__(self): super(MainMainBar, self).__init__() # File self.atn_exit = QtGui.QAction('&Exit', self) self.atn_exit.setShortcut('Ctrl+Q') self.atn_exit.setStatusTip('Exit application') self.a...
spacetelescopeREPO_NAMEspecviewPATH_START.@specview_extracted@specview-master@specview@ui@qt@menubars.py@.PATH_END.py
{ "filename": "option_utils.py", "repo_name": "gwastro/pycbc", "repo_path": "pycbc_extracted/pycbc-master/pycbc/inference/option_utils.py", "type": "Python" }
# Copyright (C) 2016 Collin Capano, Duncan Brown # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is d...
gwastroREPO_NAMEpycbcPATH_START.@pycbc_extracted@pycbc-master@pycbc@inference@option_utils.py@.PATH_END.py
{ "filename": "utilfuncs.py", "repo_name": "IvS-KULeuven/IvSPythonRepository", "repo_path": "IvSPythonRepository_extracted/IvSPythonRepository-master/sigproc/lmfit/utilfuncs.py", "type": "Python" }
"""Utility mathematical functions and common lineshapes for minimizer """ import numpy import scipy from scipy.special import gamma CUSTOM_FUNCTIONS = {} log2 = numpy.log(2) pi = numpy.pi def gauss(x, amp, cen, wid): "gaussian function: wid = half-width at half-max" return amp * numpy.exp(-log2 * (x-cen) **2...
IvS-KULeuvenREPO_NAMEIvSPythonRepositoryPATH_START.@IvSPythonRepository_extracted@IvSPythonRepository-master@sigproc@lmfit@utilfuncs.py@.PATH_END.py
{ "filename": "plot.py", "repo_name": "zenitani/OpenMHD", "repo_path": "OpenMHD_extracted/OpenMHD-master/3D_basic/plot.py", "type": "Python" }
import matplotlib.pyplot as plt import numpy as np import openmhd3d as openmhd # dummy index vx=0;vy=1;vz=2;pr=3;ro=4;bx=5;by=6;bz=7;ps=8 # reading the data ... x,y,z,t,data = openmhd.data_read("data/field-00010.dat") # reading the data (partial domain: [ix1,ix2] x [jx1,jx2] x [kx1,kx2]) # x,y,z,t,data = openmhd.data_...
zenitaniREPO_NAMEOpenMHDPATH_START.@OpenMHD_extracted@OpenMHD-master@3D_basic@plot.py@.PATH_END.py
{ "filename": "prepare_pfailsimulations.py", "repo_name": "desihub/LSS", "repo_path": "LSS_extracted/LSS-main/scripts/prepare_pfailsimulations.py", "type": "Python" }
import numpy as np import scipy import sys from scipy import stats from scipy.stats import norm from scipy.stats import binom import fitsio import glob import os import matplotlib.pyplot as plt import statistics import argparse import astropy from astropy.table import Table from astropy.table import join from astropy.t...
desihubREPO_NAMELSSPATH_START.@LSS_extracted@LSS-main@scripts@prepare_pfailsimulations.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "Harry45/DESEMU", "repo_path": "DESEMU_extracted/DESEMU-main/jax_cosmo/scipy/__init__.py", "type": "Python" }
Harry45REPO_NAMEDESEMUPATH_START.@DESEMU_extracted@DESEMU-main@jax_cosmo@scipy@__init__.py@.PATH_END.py
{ "filename": "_treemapcolorway.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/layout/_treemapcolorway.py", "type": "Python" }
import _plotly_utils.basevalidators class TreemapcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): def __init__(self, plotly_name="treemapcolorway", parent_name="layout", **kwargs): super(TreemapcolorwayValidator, self).__init__( plotly_name=plotly_name, parent_na...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@layout@_treemapcolorway.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "golmschenk/eesunhong", "repo_path": "eesunhong_extracted/eesunhong-main/tests/end_to_end_tests/binary_lens/advanced_dseek/__init__.py", "type": "Python" }
golmschenkREPO_NAMEeesunhongPATH_START.@eesunhong_extracted@eesunhong-main@tests@end_to_end_tests@binary_lens@advanced_dseek@__init__.py@.PATH_END.py
{ "filename": "in-depth-guide.md", "repo_name": "tensorflow/tensorflow", "repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/tools/proto_splitter/g3doc/in-depth-guide.md", "type": "Markdown" }
# Proto Splitter / Merger Library This doc lists implementation details about the [Proto Splitter/Merger library](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/proto_splitter). New Splitters should take these details into consideration to generate valid chunks and metadata that are compatible w...
tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@tools@proto_splitter@g3doc@in-depth-guide.md@.PATH_END.py
{ "filename": "_font.py", "repo_name": "plotly/plotly.py", "repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_font.py", "type": "Python" }
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="histogram2d.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=p...
plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@histogram2d@hoverlabel@_font.py@.PATH_END.py
{ "filename": "_width.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattergl/line/_width.py", "type": "Python" }
import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="width", parent_name="scattergl.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattergl@line@_width.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "GeminiDRSoftware/DRAGONS", "repo_path": "DRAGONS_extracted/DRAGONS-master/geminidr/gemini/tests/__init__.py", "type": "Python" }
GeminiDRSoftwareREPO_NAMEDRAGONSPATH_START.@DRAGONS_extracted@DRAGONS-master@geminidr@gemini@tests@__init__.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "sibirrer/lenstronomy", "repo_path": "lenstronomy_extracted/lenstronomy-main/lenstronomy/Conf/__init__.py", "type": "Python" }
sibirrerREPO_NAMElenstronomyPATH_START.@lenstronomy_extracted@lenstronomy-main@lenstronomy@Conf@__init__.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "GeminiDRSoftware/GHOSTDR", "repo_path": "GHOSTDR_extracted/GHOSTDR-master/ghostdr/ghost/test/__init__.py", "type": "Python" }
""" Primitive unit tests for the GHOST instrument. Only the simplest of the unit tests are provided in this module. A lot of primitives require various calibrators in order to be run correctly. These primitives are tested during the full reduction tests (:any:`ghostdr.ghost.recipes.test`). """
GeminiDRSoftwareREPO_NAMEGHOSTDRPATH_START.@GHOSTDR_extracted@GHOSTDR-master@ghostdr@ghost@test@__init__.py@.PATH_END.py
{ "filename": "lat_dm.py", "repo_name": "HeRTA/FRBSTATS", "repo_path": "FRBSTATS_extracted/FRBSTATS-main/figs/lat_dm.py", "type": "Python" }
from csv import reader import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt ### Set MPL plot parameters # Selectable SVG text plt.rcParams['svg.fonttype'] = 'none' # Use TeX plt.rcParams['text.usetex'] = True # Set figsize plt.rcParams["figure.figsize"] = (24,20) plt.rcParams["figure.dpi"] = ...
HeRTAREPO_NAMEFRBSTATSPATH_START.@FRBSTATS_extracted@FRBSTATS-main@figs@lat_dm.py@.PATH_END.py
{ "filename": "hydro_2_python.py", "repo_name": "agnwinds/python", "repo_path": "python_extracted/python-main/py_progs/hydro_2_python.py", "type": "Python" }
#!/usr/bin/env python ''' Parses a hydro input file into an astropy table. Synopsis: This is a simple program which will parse a hydro input file into an astropy table that python can read in as a wind Description: The code attempts to work out if the input file is an hdf file or an asc...
agnwindsREPO_NAMEpythonPATH_START.@python_extracted@python-main@py_progs@hydro_2_python.py@.PATH_END.py
{ "filename": "base_observer.py", "repo_name": "telegraphic/pygdsm", "repo_path": "pygdsm_extracted/pygdsm-master/pygdsm/base_observer.py", "type": "Python" }
import ephem import healpy as hp import numpy as np from astropy.time import Time from pygdsm.plot_utils import show_plt from pygdsm.utils import hpix2sky, sky2hpix from astropy.coordinates import SkyCoord class BaseObserver(ephem.Observer): """ Observer of the Global Sky Model. Generates the Observed sky, fo...
telegraphicREPO_NAMEpygdsmPATH_START.@pygdsm_extracted@pygdsm-master@pygdsm@base_observer.py@.PATH_END.py
{ "filename": "conf.py", "repo_name": "wcoulton/CompressedFisher", "repo_path": "CompressedFisher_extracted/CompressedFisher-main/docs/source/conf.py", "type": "Python" }
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import pathlib import sys import sphinx_rtd_theme sys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_po...
wcoultonREPO_NAMECompressedFisherPATH_START.@CompressedFisher_extracted@CompressedFisher-main@docs@source@conf.py@.PATH_END.py
{ "filename": "test_reader.py", "repo_name": "rmjarvis/TreeCorr", "repo_path": "TreeCorr_extracted/TreeCorr-main/tests/test_reader.py", "type": "Python" }
# Copyright (c) 2003-2024 by Mike Jarvis # # TreeCorr is free software: redistribution and use in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of condi...
rmjarvisREPO_NAMETreeCorrPATH_START.@TreeCorr_extracted@TreeCorr-main@tests@test_reader.py@.PATH_END.py
{ "filename": "conftest.py", "repo_name": "halomod/halomod", "repo_path": "halomod_extracted/halomod-main/tests/conftest.py", "type": "Python" }
from pathlib import Path import pytest @pytest.fixture(scope="session") def datadir() -> Path: """The directory in which the test data resides.""" return Path(__file__).parent / "data"
halomodREPO_NAMEhalomodPATH_START.@halomod_extracted@halomod-main@tests@conftest.py@.PATH_END.py
{ "filename": "wavfile.py", "repo_name": "scipy/scipy", "repo_path": "scipy_extracted/scipy-main/scipy/io/wavfile.py", "type": "Python" }
""" Module to read / write wav files using NumPy arrays Functions --------- `read`: Return the sample rate (in samples/sec) and data from a WAV file. `write`: Write a NumPy array as a WAV file. """ import io import sys import numpy as np import struct import warnings from enum import IntEnum __all__ = [ 'WavFi...
scipyREPO_NAMEscipyPATH_START.@scipy_extracted@scipy-main@scipy@io@wavfile.py@.PATH_END.py
{ "filename": "parameter.py", "repo_name": "gammapy/gammapy", "repo_path": "gammapy_extracted/gammapy-main/gammapy/modeling/parameter.py", "type": "Python" }
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Model parameter classes.""" import collections.abc import copy import html import itertools import logging import numpy as np from astropy import units as u from astropy.table import Table from gammapy.utils.interpolation import interpolation_scale __...
gammapyREPO_NAMEgammapyPATH_START.@gammapy_extracted@gammapy-main@gammapy@modeling@parameter.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "mavrix93/LightCurvesClassifier", "repo_path": "LightCurvesClassifier_extracted/LightCurvesClassifier-master/lcc_web/web/interface/static/css/__init__.py", "type": "Python" }
mavrix93REPO_NAMELightCurvesClassifierPATH_START.@LightCurvesClassifier_extracted@LightCurvesClassifier-master@lcc_web@web@interface@static@css@__init__.py@.PATH_END.py
{ "filename": "README.md", "repo_name": "teuben/QAC", "repo_path": "QAC_extracted/QAC-master/README.md", "type": "Markdown" }
# Quick Array Combinations (QAC) QAC provides a set of functions that mostly call CASA tools and tasks to help you combining data from a single dish and interferometer. QAC hides some of the complexity of writing CASA scripts and provide a simpler interface to array combination tools and tasks in CASA. An alternative...
teubenREPO_NAMEQACPATH_START.@QAC_extracted@QAC-master@README.md@.PATH_END.py
{ "filename": "womcmwselector.py", "repo_name": "msiebert1/UCSC_spectral_pipeline", "repo_path": "UCSC_spectral_pipeline_extracted/UCSC_spectral_pipeline-master/spectral_reduction/tmath/wombat/womcmwselector.py", "type": "Python" }
def womcmwselector(hop): """select combine 2 with weights""" from tmath.wombat.womcom import womcom hop=womcom(hop,2,True) return hop
msiebert1REPO_NAMEUCSC_spectral_pipelinePATH_START.@UCSC_spectral_pipeline_extracted@UCSC_spectral_pipeline-master@spectral_reduction@tmath@wombat@womcmwselector.py@.PATH_END.py
{ "filename": "_highlight.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/surface/contours/y/_highlight.py", "type": "Python" }
import _plotly_utils.basevalidators class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="highlight", parent_name="surface.contours.y", **kwargs ): super(HighlightValidator, self).__init__( plotly_name=plotly_name, par...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@surface@contours@y@_highlight.py@.PATH_END.py
{ "filename": "pinecone.ipynb", "repo_name": "langchain-ai/langchain", "repo_path": "langchain_extracted/langchain-master/docs/docs/integrations/vectorstores/pinecone.ipynb", "type": "Jupyter Notebook" }
# Pinecone >[Pinecone](https://docs.pinecone.io/docs/overview) is a vector database with broad functionality. This notebook shows how to use functionality related to the `Pinecone` vector database. ## Setup To use the `PineconeVectorStore` you first need to install the partner package, as well as the other packages...
langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@docs@docs@integrations@vectorstores@pinecone.ipynb@.PATH_END.py
{ "filename": "_zmid.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/heatmap/_zmid.py", "type": "Python" }
import _plotly_utils.basevalidators class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="zmid", parent_name="heatmap", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_ty...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@heatmap@_zmid.py@.PATH_END.py
{ "filename": "test_data_classifier.py", "repo_name": "soar-telescope/goodman_pipeline", "repo_path": "goodman_pipeline_extracted/goodman_pipeline-main/goodman_pipeline/images/tests/test_data_classifier.py", "type": "Python" }
from __future__ import absolute_import import numpy as np import os import shutil from astropy.io import fits from ccdproc import CCDData from unittest import TestCase, skip from ..data_classifier import DataClassifier class DataClassifierTests(TestCase): def setUp(self): self.raw_path = os.path.join...
soar-telescopeREPO_NAMEgoodman_pipelinePATH_START.@goodman_pipeline_extracted@goodman_pipeline-main@goodman_pipeline@images@tests@test_data_classifier.py@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "cy-xu/cosmic-conn", "repo_path": "cosmic-conn_extracted/cosmic-conn-main/cosmic_conn/dl_framework/__init__.py", "type": "Python" }
cy-xuREPO_NAMEcosmic-connPATH_START.@cosmic-conn_extracted@cosmic-conn-main@cosmic_conn@dl_framework@__init__.py@.PATH_END.py
{ "filename": "5_posterior_SHMF.ipynb", "repo_name": "smsharma/mining-for-substructure-lens", "repo_path": "mining-for-substructure-lens_extracted/mining-for-substructure-lens-master/notebooks/5_posterior_SHMF.ipynb", "type": "Jupyter Notebook" }
# Bayesian inference ```python import sys, os import logging import numpy as np from scipy.stats import uniform, norm import matplotlib import matplotlib.pyplot as plt from matplotlib.legend_handler import HandlerPatch %matplotlib inline sys.path.append('../') import paper_settings from simulation.units import * fro...
smsharmaREPO_NAMEmining-for-substructure-lensPATH_START.@mining-for-substructure-lens_extracted@mining-for-substructure-lens-master@notebooks@5_posterior_SHMF.ipynb@.PATH_END.py
{ "filename": "__init__.py", "repo_name": "catboost/catboost", "repo_path": "catboost_extracted/catboost-master/contrib/python/scipy/py2/scipy/signal/windows/__init__.py", "type": "Python" }
""" ============================================== Window functions (:mod:`scipy.signal.windows`) ============================================== The suite of window functions for filtering and spectral estimation. .. autosummary:: :toctree: generated/ get_window -- Return a window of a given length and ...
catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@scipy@py2@scipy@signal@windows@__init__.py@.PATH_END.py
{ "filename": "2_developers.md", "repo_name": "mattpitkin/tempo2", "repo_path": "tempo2_extracted/tempo2-master/documentation/2_developers.md", "type": "Markdown" }
Core Developers {#devs} =============== Tempo2 development team ======================= Tempo2 was origianaly written by George Hobbs and Rusell Edwards. Core package maintainers ------------------------ + George Hobbs [GH] \anchor GH george.hobbs@csiro.au - Core tempo2 development. - Gravitational wave c...
mattpitkinREPO_NAMEtempo2PATH_START.@tempo2_extracted@tempo2-master@documentation@2_developers.md@.PATH_END.py