metadata dict | text stringlengths 0 40.6M | id stringlengths 14 255 |
|---|---|---|
{
"filename": "_texttemplate.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/treemap/_texttemplate.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="texttemplate", parent_name="treemap", **kwargs):
super(TexttemplateValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_n... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@treemap@_texttemplate.py@.PATH_END.py |
{
"filename": "shape_poly.md",
"repo_name": "google/jax",
"repo_path": "jax_extracted/jax-main/docs/export/shape_poly.md",
"type": "Markdown"
} | (shape_poly)=
# Shape polymorphism
When JAX is used in JIT mode, a function will be traced, lowered to StableHLO, and compiled for each
combination of input types and shapes. After exporting a function and
deserializing it on another system we don't have the Python sources available anymore,
so we cannot re-trace and... | googleREPO_NAMEjaxPATH_START.@jax_extracted@jax-main@docs@export@shape_poly.md@.PATH_END.py |
{
"filename": "objects.Dash.ipynb",
"repo_name": "mwaskom/seaborn",
"repo_path": "seaborn_extracted/seaborn-master/doc/_docstrings/objects.Dash.ipynb",
"type": "Jupyter Notebook"
} | ```python
import seaborn.objects as so
from seaborn import load_dataset
penguins = load_dataset("penguins")
```
A line segment is drawn for each datapoint, centered on the value along the orientation axis:
```python
p = so.Plot(penguins, "species", "body_mass_g", color="sex")
p.add(so.Dash())
```
A number of propertie... | mwaskomREPO_NAMEseabornPATH_START.@seaborn_extracted@seaborn-master@doc@_docstrings@objects.Dash.ipynb@.PATH_END.py |
{
"filename": "rscd_step.py",
"repo_name": "spacetelescope/jwst",
"repo_path": "jwst_extracted/jwst-main/jwst/rscd/rscd_step.py",
"type": "Python"
} | from stdatamodels.jwst import datamodels
from ..stpipe import Step
from . import rscd_sub
__all__ = ["RscdStep"]
class RscdStep(Step):
"""
RscdStep: Performs an RSCD correction to MIRI data.
Baseline version flags the first N groups as 'DO_NOT_USE' in
the 2nd and later integrations in a copy of the ... | spacetelescopeREPO_NAMEjwstPATH_START.@jwst_extracted@jwst-main@jwst@rscd@rscd_step.py@.PATH_END.py |
{
"filename": "PyMC3Models.py",
"repo_name": "kevin218/Eureka",
"repo_path": "Eureka_extracted/Eureka-main/src/eureka/S5_lightcurve_fitting/differentiable_models/PyMC3Models.py",
"type": "Python"
} | import numpy as np
import copy
import theano
theano.config.gcc__cxxflags += " -fexceptions"
import theano.tensor as tt
# Avoid tonnes of "Cannot construct a scalar test value" messages
import logging
logger = logging.getLogger("theano.tensor.opt")
logger.setLevel(logging.ERROR)
import pymc3 as pm
BoundedNormal_0 = p... | kevin218REPO_NAMEEurekaPATH_START.@Eureka_extracted@Eureka-main@src@eureka@S5_lightcurve_fitting@differentiable_models@PyMC3Models.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "mikecokina/elisa",
"repo_path": "elisa_extracted/elisa-master/src/elisa/numba_functions/__init__.py",
"type": "Python"
} | mikecokinaREPO_NAMEelisaPATH_START.@elisa_extracted@elisa-master@src@elisa@numba_functions@__init__.py@.PATH_END.py | |
{
"filename": "_variant.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/box/hoverlabel/font/_variant.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="variant", parent_name="box.hoverlabel.font", **kwargs
):
super(VariantValidator, self).__init__(
plotly_name=plotly_name,
paren... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@box@hoverlabel@font@_variant.py@.PATH_END.py |
{
"filename": "test_ephemeris.py",
"repo_name": "lucabaldini/ixpeobssim",
"repo_path": "ixpeobssim_extracted/ixpeobssim-main/tests/test_ephemeris.py",
"type": "Python"
} | #!/usr/bin/env python
#
# Copyright (C) 2020, the ixpeobssim team.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
#... | lucabaldiniREPO_NAMEixpeobssimPATH_START.@ixpeobssim_extracted@ixpeobssim-main@tests@test_ephemeris.py@.PATH_END.py |
{
"filename": "MSMDDictionaries.py",
"repo_name": "hmuellergoe/mrbeam",
"repo_path": "mrbeam_extracted/mrbeam-main/mr_beam/MSI/MSI/MSMDDictionaries.py",
"type": "Python"
} | from lightwise import imgutils, wtutils, nputils
from MSI.MSDecomposition import Beam
from MSI.utils.beams import Bessel2D as bessel
import numpy as np
class DOGDictionary():
def __init__(self, widths, shape, angle=0, ellipticities=6, nsigma=10, support=None, rml=False, **args):
self.widths = widths
... | hmuellergoeREPO_NAMEmrbeamPATH_START.@mrbeam_extracted@mrbeam-main@mr_beam@MSI@MSI@MSMDDictionaries.py@.PATH_END.py |
{
"filename": "_marker.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/waterfall/totals/_marker.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="marker", parent_name="waterfall.totals", **kwargs):
super(MarkerValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@waterfall@totals@_marker.py@.PATH_END.py |
{
"filename": "README.md",
"repo_name": "microsoft/vscode",
"repo_path": "vscode_extracted/vscode-main/extensions/html-language-features/README.md",
"type": "Markdown"
} | # Language Features for HTML
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
## Features
See [HTML in Visual Studio Code](https://code.visualstudio.com/docs/languages/html) to learn about the features of this extension.
Please read the [CONTRIBUTING.md](https:/... | microsoftREPO_NAMEvscodePATH_START.@vscode_extracted@vscode-main@extensions@html-language-features@README.md@.PATH_END.py |
{
"filename": "_sizesrc.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scattercarpet/marker/_sizesrc.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self, plotly_name="sizesrc", parent_name="scattercarpet.marker", **kwargs
):
super(SizesrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scattercarpet@marker@_sizesrc.py@.PATH_END.py |
{
"filename": "pulsar.py",
"repo_name": "plazar/TOASTER",
"repo_path": "TOASTER_extracted/TOASTER-master/pulsar.py",
"type": "Python"
} | #!/usr/bin/env python
"""
pulsar.py
A multi-purpose program to interact with pulsar.
Patrick Lazarus, Dec 9, 2012
"""
import utils
import database
import errors
toolkit = ['add_pulsar', \
'show_pulsars', \
'rename_pulsar', \
'add_pulsar_alias', \
'merge_pulsar', \
... | plazarREPO_NAMETOASTERPATH_START.@TOASTER_extracted@TOASTER-master@pulsar.py@.PATH_END.py |
{
"filename": "demo_ROS_custom_handler.py",
"repo_name": "projectchrono/chrono",
"repo_path": "chrono_extracted/chrono-main/src/demos/python/ros/demo_ROS_custom_handler.py",
"type": "Python"
} | # =============================================================================
# PROJECT CHRONO - http://projectchrono.org
#
# Copyright (c) 2021 projectchrono.org
# All right reserved.
#
# Use of this source code is governed by a BSD-style license that can be found
# in the LICENSE file at the top level of the distri... | projectchronoREPO_NAMEchronoPATH_START.@chrono_extracted@chrono-main@src@demos@python@ros@demo_ROS_custom_handler.py@.PATH_END.py |
{
"filename": "_diffuse.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/cone/lighting/_diffuse.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="diffuse", parent_name="cone.lighting", **kwargs):
super(DiffuseValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@cone@lighting@_diffuse.py@.PATH_END.py |
{
"filename": "norm_lens.py",
"repo_name": "toshiyan/cmblensplus",
"repo_path": "cmblensplus_extracted/cmblensplus-master/wrap/flatsky/norm_lens.py",
"type": "Python"
} | import libflatsky
import numpy
def qtt(nx,ny,D,rL,OT,TT,eL):
"""
Normalization of the temperature quadratic estimator for CMB lensing potential and its curl mode
Args:
:nx, ny (*int*): Number of Lx and Ly grids
:D[*xy*] (*double*): Map side length, or equivalent to dLx/2pi, dLy/2pi, with bounds (2)
... | toshiyanREPO_NAMEcmblensplusPATH_START.@cmblensplus_extracted@cmblensplus-master@wrap@flatsky@norm_lens.py@.PATH_END.py |
{
"filename": "aperture.py",
"repo_name": "avigan/pyZELDA",
"repo_path": "pyZELDA_extracted/pyZELDA-master/pyzelda/utils/aperture.py",
"type": "Python"
} | # -*- coding: utf-8 -*-
'''
Aperture/pupil utility functions for pyZELDA
'''
import numpy as np
import collections
import scipy.ndimage as ndimage
def coordinates(dim, size, diameter=False, strict=False, center=(), cpix=False, normalized=True, outside=np.nan, polar=True):
'''
Returns rho,theta coordinates ... | aviganREPO_NAMEpyZELDAPATH_START.@pyZELDA_extracted@pyZELDA-master@pyzelda@utils@aperture.py@.PATH_END.py |
{
"filename": "test_orbits.py",
"repo_name": "pysat/pysat",
"repo_path": "pysat_extracted/pysat-main/pysat/tests/test_orbits.py",
"type": "Python"
} | #!/usr/bin/env python
# Full license can be found in License.md
# Full author list can be found in .zenodo.json file
# DOI:10.5281/zenodo.1199703
#
# DISTRIBUTION STATEMENT A: Approved for public release. Distribution is
# unlimited.
# ----------------------------------------------------------------------------
"""Test... | pysatREPO_NAMEpysatPATH_START.@pysat_extracted@pysat-main@pysat@tests@test_orbits.py@.PATH_END.py |
{
"filename": "ARCHITECTURE.md",
"repo_name": "pymc-devs/pymc",
"repo_path": "pymc_extracted/pymc-main/ARCHITECTURE.md",
"type": "Markdown"
} | # Architecture
This document describes the high-level architecture of PyMC.
# Bird's Eye View
[comment]: <> (https://drive.google.com/file/d/1lfEzokkNUJr_JIeSDQfha5a57pokz0qI)

Lets you define probabilistic graphs or models that can be easily used to compute log probabilities for ... | pymc-devsREPO_NAMEpymcPATH_START.@pymc_extracted@pymc-main@ARCHITECTURE.md@.PATH_END.py |
{
"filename": "test_dynlib.py",
"repo_name": "icrar/daliuge",
"repo_path": "daliuge_extracted/daliuge-master/daliuge-engine/test/apps/test_dynlib.py",
"type": "Python"
} | #
# ICRAR - International Centre for Radio Astronomy Research
# (c) UWA - The University of Western Australia, 2017
# 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@test@apps@test_dynlib.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "rennehan/yt-swift",
"repo_path": "yt-swift_extracted/yt-swift-main/yt/frontends/eagle/__init__.py",
"type": "Python"
} | rennehanREPO_NAMEyt-swiftPATH_START.@yt-swift_extracted@yt-swift-main@yt@frontends@eagle@__init__.py@.PATH_END.py | |
{
"filename": "args.py",
"repo_name": "OpenAccess-AI-Collective/axolotl",
"repo_path": "axolotl_extracted/axolotl-main/src/axolotl/integrations/spectrum/args.py",
"type": "Python"
} | # Copyright 2024 Axolotl AI. 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 law or a... | OpenAccess-AI-CollectiveREPO_NAMEaxolotlPATH_START.@axolotl_extracted@axolotl-main@src@axolotl@integrations@spectrum@args.py@.PATH_END.py |
{
"filename": "_spikethickness.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/yaxis/_spikethickness.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="spikethickness", parent_name="layout.yaxis", **kwargs
):
super(SpikethicknessValidator, self).__init__(
plotly_name=plotly_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@yaxis@_spikethickness.py@.PATH_END.py |
{
"filename": "ImageShow.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/Pillow/py3/PIL/ImageShow.py",
"type": "Python"
} | #
# The Python Imaging Library.
# $Id$
#
# im.show() drivers
#
# History:
# 2008-04-06 fl Created
#
# Copyright (c) Secret Labs AB 2008.
#
# See the README file for information on usage and redistribution.
#
from __future__ import annotations
import os
import shutil
import subprocess
import sys
from shlex import quo... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@Pillow@py3@PIL@ImageShow.py@.PATH_END.py |
{
"filename": "strip_unused.py",
"repo_name": "tensorflow/tensorflow",
"repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/tools/strip_unused.py",
"type": "Python"
} | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@python@tools@strip_unused.py@.PATH_END.py |
{
"filename": "_ticklabelstep.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self,
plotly_name="ticklabelstep",
parent_name="choroplethmapbox.colorbar",
**kwargs,
):
super(TicklabelstepValidator, self).__init__(
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@choroplethmapbox@colorbar@_ticklabelstep.py@.PATH_END.py |
{
"filename": "target-fluctuations.ipynb",
"repo_name": "desihub/desitarget",
"repo_path": "desitarget_extracted/desitarget-main/doc/nb/target-fluctuations.ipynb",
"type": "Jupyter Notebook"
} | # Target Fluctuations
This notebook is not a complete effort, although it does contain several potentially useful plots which show how QSO, ELG, BGS, and LRG target density varies with Galactic reddening and imaging depth (based on DR5).
The bottom of the notebook also contains a simple regression of target density ... | desihubREPO_NAMEdesitargetPATH_START.@desitarget_extracted@desitarget-main@doc@nb@target-fluctuations.ipynb@.PATH_END.py |
{
"filename": "http.py",
"repo_name": "rat-pac/rat-pac",
"repo_path": "rat-pac_extracted/rat-pac-master/python/couchdb/http.py",
"type": "Python"
} | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009 Christopher Lenz
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
"""Simple HTTP client implementation based on the ``httplib`` module in the
standar... | rat-pacREPO_NAMErat-pacPATH_START.@rat-pac_extracted@rat-pac-master@python@couchdb@http.py@.PATH_END.py |
{
"filename": "SECURITY.md",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/libs/pybind11/SECURITY.md",
"type": "Markdown"
} | # Security Policy
## Supported Versions
Security updates are applied only to the latest release.
## Reporting a Vulnerability
If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue be... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@libs@pybind11@SECURITY.md@.PATH_END.py |
{
"filename": "runGridGetdist.py",
"repo_name": "cmbant/CosmoMC",
"repo_path": "CosmoMC_extracted/CosmoMC-master/python/runGridGetdist.py",
"type": "Python"
} | from __future__ import absolute_import
from __future__ import print_function
import os
import subprocess
import getdist
from getdist import IniFile
import time
from paramgrid import batchjob_args
def checkDir(fname):
if not os.path.exists(fname): os.makedirs(fname)
Opts = batchjob_args.batchArgs('Run getdist ov... | cmbantREPO_NAMECosmoMCPATH_START.@CosmoMC_extracted@CosmoMC-master@python@runGridGetdist.py@.PATH_END.py |
{
"filename": "simpletable.py",
"repo_name": "annayqho/TheCannon",
"repo_path": "TheCannon_extracted/TheCannon-master/TheCannon/helpers/simpletable.py",
"type": "Python"
} | """ This file implements a Table class
that is designed to be the basis of any format
Requirements
------------
* FIT format:
* astropy:
provides a replacement to pyfits
pyfits can still be used instead but astropy is now the default
* HDF5 format:
* pytables
RuntimeError will be raised ... | annayqhoREPO_NAMETheCannonPATH_START.@TheCannon_extracted@TheCannon-master@TheCannon@helpers@simpletable.py@.PATH_END.py |
{
"filename": "cli.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/jsonschema/py3/jsonschema/cli.py",
"type": "Python"
} | """
The ``jsonschema`` command line.
"""
from __future__ import absolute_import
import argparse
import json
import sys
from jsonschema import __version__
from jsonschema._reflect import namedAny
from jsonschema.validators import validator_for
def _namedAnyWithDefault(name):
if "." not in name:
name = "js... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@jsonschema@py3@jsonschema@cli.py@.PATH_END.py |
{
"filename": "_dewarp.py",
"repo_name": "t-brandt/acorns-adi",
"repo_path": "acorns-adi_extracted/acorns-adi-master/parallel/_dewarp.py",
"type": "Python"
} | #!/usr/bin/env python
#
from progressbar import ProgressBar
from transform import *
import re
import pyfits as pyf
from parallel import *
def _dewarp(filesetup, memory, flux=None, storeall=True, write_files=False):
nframes = len(filesetup.framelist)
print '\nDewarping %d Frames' % nframes
fullframe = re... | t-brandtREPO_NAMEacorns-adiPATH_START.@acorns-adi_extracted@acorns-adi-master@parallel@_dewarp.py@.PATH_END.py |
{
"filename": "plot_sgd_early_stopping.py",
"repo_name": "scikit-learn/scikit-learn",
"repo_path": "scikit-learn_extracted/scikit-learn-main/examples/linear_model/plot_sgd_early_stopping.py",
"type": "Python"
} | """
=============================================
Early stopping of Stochastic Gradient Descent
=============================================
Stochastic Gradient Descent is an optimization technique which minimizes a loss
function in a stochastic fashion, performing a gradient descent step sample by
sample. In particu... | scikit-learnREPO_NAMEscikit-learnPATH_START.@scikit-learn_extracted@scikit-learn-main@examples@linear_model@plot_sgd_early_stopping.py@.PATH_END.py |
{
"filename": "[2]Providing n-body particle input for Galaxia.ipynb",
"repo_name": "jan-rybizki/Galaxia_wrap",
"repo_path": "Galaxia_wrap_extracted/Galaxia_wrap-master/notebook/notebook_aida/[2]Providing n-body particle input for Galaxia.ipynb",
"type": "Jupyter Notebook"
} | Here we illustrate how to sample n-body particles with Galaxia.
A simple application is to provide a flat starformation history with reasonable age-metallicity relation in order to sample a colour magnitude diagram and look at the occupation of CMD space by the different stellar populations and look at their astrophys... | jan-rybizkiREPO_NAMEGalaxia_wrapPATH_START.@Galaxia_wrap_extracted@Galaxia_wrap-master@notebook@notebook_aida@[2]Providing n-body particle input for Galaxia.ipynb@.PATH_END.py |
{
"filename": "_unselected.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/scattermapbox/_unselected.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="unselected", parent_name="scattermapbox", **kwargs):
super(UnselectedValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@scattermapbox@_unselected.py@.PATH_END.py |
{
"filename": "_tickformat.py",
"repo_name": "plotly/plotly.py",
"repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformat.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TickformatValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name="tickformat",
parent_name="choroplethmapbox.colorbar",
**kwargs,
):
super(TickformatValidator, self).__init__(
plotly... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@choroplethmapbox@colorbar@_tickformat.py@.PATH_END.py |
{
"filename": "changes.md",
"repo_name": "Keck-DataReductionPipelines/MosfireDRP",
"repo_path": "MosfireDRP_extracted/MosfireDRP-master/manual/docs/changes.md",
"type": "Markdown"
} | # Change Log
## Changes in Version 2018
### New features
* Python3 compatibility!
* Improved installation procedure uses anaconda cloud
* The 1D spectral extraction code now provides the user the ability to set the default aperture width.
* Revamped documentation using mkdocs including the addition of an examples se... | Keck-DataReductionPipelinesREPO_NAMEMosfireDRPPATH_START.@MosfireDRP_extracted@MosfireDRP-master@manual@docs@changes.md@.PATH_END.py |
{
"filename": "_title.py",
"repo_name": "plotly/plotly.py",
"repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_title.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self, plotly_name="title", parent_name="contourcarpet.colorbar", **kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=p... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@contourcarpet@colorbar@_title.py@.PATH_END.py |
{
"filename": "cltt_terms.py",
"repo_name": "wlxu/RelicClass",
"repo_path": "RelicClass_extracted/RelicClass-master/scripts/cltt_terms.py",
"type": "Python"
} |
# coding: utf-8
# In[ ]:
# import necessary modules
# uncomment to get plots displayed in notebook
#%matplotlib inline
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from classy import Class
from scipy.optimize import fsolve
from scipy.interpolate import interp1d
import math
# In[ ]:
# esthe... | wlxuREPO_NAMERelicClassPATH_START.@RelicClass_extracted@RelicClass-master@scripts@cltt_terms.py@.PATH_END.py |
{
"filename": "cvrun_nufft.py",
"repo_name": "tnakazato/priism",
"repo_path": "priism_extracted/priism-main/tests/cvrun_nufft.py",
"type": "Python"
} | # Copyright (C) 2019-2022
# Inter-University Research Institute Corporation, National Institutes of Natural Sciences
# 2-21-1, Osawa, Mitaka, Tokyo, 181-8588, Japan.
#
# This file is part of PRIISM.
#
# PRIISM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License... | tnakazatoREPO_NAMEpriismPATH_START.@priism_extracted@priism-main@tests@cvrun_nufft.py@.PATH_END.py |
{
"filename": "mpi.py",
"repo_name": "galsci/pysm",
"repo_path": "pysm_extracted/pysm-main/src/pysm3/mpi.py",
"type": "Python"
} | import healpy as hp
import numpy as np
from . import units as u
from . import utils
try:
import libsharp
except ImportError:
libsharp = None
def distribute_pixels_uniformly(mpi_comm, nside):
"""Define the pixel_indices for each MPI rank to distribute a map uniformly
Parameters
----------
mp... | galsciREPO_NAMEpysmPATH_START.@pysm_extracted@pysm-main@src@pysm3@mpi.py@.PATH_END.py |
{
"filename": "_testutils.py",
"repo_name": "scipy/scipy",
"repo_path": "scipy_extracted/scipy-main/scipy/linalg/_testutils.py",
"type": "Python"
} | import numpy as np
class _FakeMatrix:
def __init__(self, data):
self._data = data
self.__array_interface__ = data.__array_interface__
class _FakeMatrix2:
def __init__(self, data):
self._data = data
def __array__(self, dtype=None, copy=None):
if copy:
return s... | scipyREPO_NAMEscipyPATH_START.@scipy_extracted@scipy-main@scipy@linalg@_testutils.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "sPaMFouR/RedPipe",
"repo_path": "RedPipe_extracted/RedPipe-master/__init__.py",
"type": "Python"
} | """
This is RedPipe, a python package to perform Photometry & Spectroscopy on Optical FITS Images.
:Authors: Avinash Singh
:License: GPLv3
"""
__author__ = "Avinash Singh"
__copyright__ = "2018, Avinash Singh"
__version__ = "0.1.0"
import Photometry, PhotStandard, PhotTemp, PhotUVIT, PreProcPhot, PreProcSpec, PostP... | sPaMFouRREPO_NAMERedPipePATH_START.@RedPipe_extracted@RedPipe-master@__init__.py@.PATH_END.py |
{
"filename": "_offsetsrc.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/waterfall/_offsetsrc.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="offsetsrc", parent_name="waterfall", **kwargs):
super(OffsetsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@waterfall@_offsetsrc.py@.PATH_END.py |
{
"filename": "args.py",
"repo_name": "sfarrens/sf_deconvolve",
"repo_path": "sf_deconvolve_extracted/sf_deconvolve-master/sf_deconvolve_lib/args.py",
"type": "Python"
} | # -*- coding: utf-8 -*-
"""SF DECONVOLVE ARGUMENTS
This module sets the arguments for sf_deconvolve.py.
:Author: Samuel Farrens <samuel.farrens@gmail.com>
:Version: 2.4
:Date: 23/10/2017
"""
import argparse as ap
from argparse import ArgumentDefaultsHelpFormatter as formatter
from . info import __version__
cla... | sfarrensREPO_NAMEsf_deconvolvePATH_START.@sf_deconvolve_extracted@sf_deconvolve-master@sf_deconvolve_lib@args.py@.PATH_END.py |
{
"filename": "pair_data_2D_generator.py",
"repo_name": "BiaPyX/BiaPy",
"repo_path": "BiaPy_extracted/BiaPy-master/biapy/data/generators/pair_data_2D_generator.py",
"type": "Python"
} | import numpy as np
import os
from PIL import Image
from typing import Dict
from biapy.utils.util import save_tif
from biapy.data.generators.pair_base_data_generator import PairBaseDataGenerator
class Pair2DImageDataGenerator(PairBaseDataGenerator):
"""Custom 2D data generator based on `imgaug <https://github.com... | BiaPyXREPO_NAMEBiaPyPATH_START.@BiaPy_extracted@BiaPy-master@biapy@data@generators@pair_data_2D_generator.py@.PATH_END.py |
{
"filename": "_showexponent.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/carpet/aaxis/_showexponent.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="showexponent", parent_name="carpet.aaxis", **kwargs
):
super(ShowexponentValidator, self).__init__(
plotly_name=plotly_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@carpet@aaxis@_showexponent.py@.PATH_END.py |
{
"filename": "signals.py",
"repo_name": "lsst-uk/lasair-lsst",
"repo_path": "lasair-lsst_extracted/lasair-lsst-main/webserver/lasair/apps/watchlist/signals.py",
"type": "Python"
} | lsst-ukREPO_NAMElasair-lsstPATH_START.@lasair-lsst_extracted@lasair-lsst-main@webserver@lasair@apps@watchlist@signals.py@.PATH_END.py | |
{
"filename": "_color.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/scatterternary/line/_color.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="color", parent_name="scatterternary.line", **kwargs
):
super(ColorValidator, self).__init__(
plotly_name=plotly_name,
parent_name=pare... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@scatterternary@line@_color.py@.PATH_END.py |
{
"filename": "matvis.py",
"repo_name": "HERA-Team/hera_sim",
"repo_path": "hera_sim_extracted/hera_sim-main/hera_sim/visibilities/matvis.py",
"type": "Python"
} | """Wrapper for matvis visibility simulator."""
from __future__ import annotations
import astropy.units as u
import itertools
import logging
import numpy as np
from astropy.coordinates import EarthLocation
from astropy.time import Time
from matvis import HAVE_GPU, __version__
from matvis import conversions as convs
fr... | HERA-TeamREPO_NAMEhera_simPATH_START.@hera_sim_extracted@hera_sim-main@hera_sim@visibilities@matvis.py@.PATH_END.py |
{
"filename": "generate_deripple.py",
"repo_name": "askap-craco/CELEBI",
"repo_path": "CELEBI_extracted/CELEBI-main/beamform/generate_deripple.py",
"type": "Python"
} | import numpy as np
from scipy import fft, io
import sys
def _main():
nfft = int(sys.argv[1])
dr = sys.argv[2] # path to ADE_R6_OSFIR.mat
N = 1536
res = 6
OS_De = 27.0
OS_Nu = 32.0
h = io.loadmat(dr)["c"][0]
print("Loaded data")
passbandLength = int(((nfft / 2) * OS_De) / OS_Nu)
... | askap-cracoREPO_NAMECELEBIPATH_START.@CELEBI_extracted@CELEBI-main@beamform@generate_deripple.py@.PATH_END.py |
{
"filename": "Lorimer_1995b_raw_to_yaml.py",
"repo_name": "NickSwainston/pulsar_spectra",
"repo_path": "pulsar_spectra_extracted/pulsar_spectra-main/pulsar_spectra/catalogue_papers/Lorimer_1995b_raw_to_yaml.py",
"type": "Python"
} | import json
import psrqpy
import csv
with open("Lorimer_1995b_raw.tsv") as file:
tsv_file = csv.reader(file, delimiter="\t")
lines = []
for line in tsv_file:
lines.append(line)
query = psrqpy.QueryATNF(params=['PSRJ', 'NAME', 'PSRB']).pandas
print(lines)
print(list(query['PSRB']))
pulsar_dict = {}... | NickSwainstonREPO_NAMEpulsar_spectraPATH_START.@pulsar_spectra_extracted@pulsar_spectra-main@pulsar_spectra@catalogue_papers@Lorimer_1995b_raw_to_yaml.py@.PATH_END.py |
{
"filename": "plot_ska_hda.py",
"repo_name": "philbull/RadioFisher",
"repo_path": "RadioFisher_extracted/RadioFisher-master/plotting/plot_ska_hda.py",
"type": "Python"
} | #!/usr/bin/python
"""
Plot functions of redshift.
"""
import numpy as np
import pylab as P
from rfwrapper import rf
import matplotlib.patches
import matplotlib.cm
cosmo = rf.experiments.cosmo
"""
#-------------------------------------------------------------------------------
# SKA BAO chapter D_V constraints
#------... | philbullREPO_NAMERadioFisherPATH_START.@RadioFisher_extracted@RadioFisher-master@plotting@plot_ska_hda.py@.PATH_END.py |
{
"filename": "versions_test.py",
"repo_name": "tensorflow/tensorflow",
"repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/framework/versions_test.py",
"type": "Python"
} | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@python@framework@versions_test.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "mlafarga/raccoon",
"repo_path": "raccoon_extracted/raccoon-master/raccoon/scripts/__init__.py",
"type": "Python"
} | mlafargaREPO_NAMEraccoonPATH_START.@raccoon_extracted@raccoon-master@raccoon@scripts@__init__.py@.PATH_END.py | |
{
"filename": "models.py",
"repo_name": "lsst-uk/lasair-lsst",
"repo_path": "lasair-lsst_extracted/lasair-lsst-main/webserver/lasair/apps/watchmap/models.py",
"type": "Python"
} | from django.db import models
from django.contrib.auth.models import User
class Watchmap(models.Model):
"""Watchmap.
"""
ar_id = models.AutoField(primary_key=True)
user = models.ForeignKey(User, models.DO_NOTHING, db_column='user', blank=True, null=True)
name = models.CharField(max_length=256, blank... | lsst-ukREPO_NAMElasair-lsstPATH_START.@lasair-lsst_extracted@lasair-lsst-main@webserver@lasair@apps@watchmap@models.py@.PATH_END.py |
{
"filename": "README.md",
"repo_name": "f4hzg/p2Gravity",
"repo_path": "p2Gravity_extracted/p2Gravity-main/README.md",
"type": "Markdown"
} | # Tools to generate OBs for GRAVITY
## Requires:
- numpy
- astropy, astroquery
- ruamel.yaml
- whereistheplanet (optional)
- and maybe something else?
## Install:
Make sure you have installed all the required packages, in particular ruamel.yaml
Just clone or download the repository. You should then be able to execu... | f4hzgREPO_NAMEp2GravityPATH_START.@p2Gravity_extracted@p2Gravity-main@README.md@.PATH_END.py |
{
"filename": "mock-qa.ipynb",
"repo_name": "desihub/desitarget",
"repo_path": "desitarget_extracted/desitarget-main/doc/nb/mock-qa.ipynb",
"type": "Jupyter Notebook"
} | # Mock QA
This notebook visualizes the default set of mocks currently (as of 2018 August) being used in the DESI Data Challenges.
```python
import os
import numpy as np
import matplotlib.pyplot as plt
```
```python
import seaborn as sns
sns.set(style='white', font_scale=1.1, palette='Set2')
```
#### Dark-time tar... | desihubREPO_NAMEdesitargetPATH_START.@desitarget_extracted@desitarget-main@doc@nb@mock-qa.ipynb@.PATH_END.py |
{
"filename": "README.md",
"repo_name": "AstroAccelerateOrg/astro-accelerate",
"repo_path": "astro-accelerate_extracted/astro-accelerate-master/README.md",
"type": "Markdown"
} | Repository for Astro-Accelerate Code
====
Introduction
===
This documentation summarises the content of the Astro-Accelerate software.
Please also refer to the [wiki pages](https://github.com/AstroAccelerateOrg/astro-accelerate/blob/master/wiki/home.md).
Publications
===
If you use AstroAccelerate, please cite the c... | AstroAccelerateOrgREPO_NAMEastro-acceleratePATH_START.@astro-accelerate_extracted@astro-accelerate-master@README.md@.PATH_END.py |
{
"filename": "ADRs.md",
"repo_name": "spacetelescope/drizzlepac",
"repo_path": "drizzlepac_extracted/drizzlepac-main/doc/ADRs.md",
"type": "Markdown"
} | # Updating WCS in Headers 11/14/23
## Context
In updating WCS information there was a worry that information about datasets used in research would be lost.
## Decision
In order to ensure reproducibility and the ability to share consistent datasets "headerlets" were created. These hold the wcs inforamtion without an... | spacetelescopeREPO_NAMEdrizzlepacPATH_START.@drizzlepac_extracted@drizzlepac-main@doc@ADRs.md@.PATH_END.py |
{
"filename": "_legendgrouptitle.py",
"repo_name": "plotly/plotly.py",
"repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scatter3d/_legendgrouptitle.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="legendgrouptitle", parent_name="scatter3d", **kwargs
):
super(LegendgrouptitleValidator, self).__init__(
plotly_name=plotly_name,
... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scatter3d@_legendgrouptitle.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "langchain-ai/langchain",
"repo_path": "langchain_extracted/langchain-master/libs/community/langchain_community/tools/mojeek_search/__init__.py",
"type": "Python"
} | langchain-aiREPO_NAMElangchainPATH_START.@langchain_extracted@langchain-master@libs@community@langchain_community@tools@mojeek_search@__init__.py@.PATH_END.py | |
{
"filename": "_tickcolor.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/layout/polar/radialaxis/_tickcolor.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="tickcolor", parent_name="layout.polar.radialaxis", **kwargs
):
super(TickcolorValidator, self).__init__(
plotly_name=plotly_name,
... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@layout@polar@radialaxis@_tickcolor.py@.PATH_END.py |
{
"filename": "plot1_fit_Tgas.py",
"repo_name": "radis/radis",
"repo_path": "radis_extracted/radis-master/examples/3_Fitting/plot1_fit_Tgas.py",
"type": "Python"
} | # -*- coding: utf-8 -*-
"""
================================================================================
Example #1: Temperature fit
================================================================================
RADIS has its own fitting feature, as shown in
`1 temperature fit example <https://radis.readthedocs... | radisREPO_NAMEradisPATH_START.@radis_extracted@radis-master@examples@3_Fitting@plot1_fit_Tgas.py@.PATH_END.py |
{
"filename": "input.py",
"repo_name": "GalSim-developers/GalSim",
"repo_path": "GalSim_extracted/GalSim-main/galsim/config/input.py",
"type": "Python"
} | # Copyright (c) 2012-2023 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | GalSim-developersREPO_NAMEGalSimPATH_START.@GalSim_extracted@GalSim-main@galsim@config@input.py@.PATH_END.py |
{
"filename": "train_serial.py",
"repo_name": "projectchrono/chrono",
"repo_path": "chrono_extracted/chrono-main/src/demos/python/chrono-tensorflow/PPO/train_serial.py",
"type": "Python"
} | """
PPO: Proximal Policy Optimization
serial version
"""
import sys
sys.path.append('../envs')
import chtrain as gym
import numpy as np
from policy import Policy
from value_function import NNValueFunction
import scipy.signal
from utils import Logger, Scaler
from datetime import datetime
import argparse
import signal
... | projectchronoREPO_NAMEchronoPATH_START.@chrono_extracted@chrono-main@src@demos@python@chrono-tensorflow@PPO@train_serial.py@.PATH_END.py |
{
"filename": "sandbox_main.py",
"repo_name": "andycasey/smhr",
"repo_path": "smhr_extracted/smhr-master/smh/gui/sandbox_main.py",
"type": "Python"
} | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" The main GUI window for Spectroscopy Made Hard. """
from __future__ import (division, print_function, absolute_import,
unicode_literals)
import logging
logging.basicConfig()
from PySide2 import (QtCore, QtWidgets as QtGui)
import yaml
import t... | andycaseyREPO_NAMEsmhrPATH_START.@smhr_extracted@smhr-master@smh@gui@sandbox_main.py@.PATH_END.py |
{
"filename": "sunrise.py",
"repo_name": "skyfielders/python-skyfield",
"repo_path": "python-skyfield_extracted/python-skyfield-master/design/sunrise.py",
"type": "Python"
} | from skyfield import almanac, api
from skyfield.api import load, tau
# http://slittlefair.staff.shef.ac.uk/teaching/phy115/session3/page4/page6/page6.html
# sin ALT = sin LAT * sin DEC + cos LAT * cos DEC * cos HA
# sin LAT * sin DEC + cos LAT * cos DEC * cos HA = sin ALT
# cos LAT * cos DEC * cos HA = sin ALT - sin ... | skyfieldersREPO_NAMEpython-skyfieldPATH_START.@python-skyfield_extracted@python-skyfield-master@design@sunrise.py@.PATH_END.py |
{
"filename": "_metasrc.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/image/_metasrc.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="metasrc", parent_name="image", **kwargs):
super(MetasrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edi... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@image@_metasrc.py@.PATH_END.py |
{
"filename": "roms.py",
"repo_name": "light-curve/light-curve-python",
"repo_path": "light-curve-python_extracted/light-curve-python-master/light-curve/light_curve/light_curve_py/features/roms.py",
"type": "Python"
} | import numpy as np
from ._base import BaseSingleBandFeature
class Roms(BaseSingleBandFeature):
r"""Robust median statistic
$$
\frac1{N-1} \sum_{i=0}^{N-1} \frac{|m_i - \mathrm{median}(m_i)|}{\sigma_i}
$$
For non-variable data, it should be less than one.
- Depends on: **magnitude**, **error... | light-curveREPO_NAMElight-curve-pythonPATH_START.@light-curve-python_extracted@light-curve-python-master@light-curve@light_curve@light_curve_py@features@roms.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "rice-solar-physics/ebtelPlusPlus",
"repo_path": "ebtelPlusPlus_extracted/ebtelPlusPlus-main/ebtelplusplus/__init__.py",
"type": "Python"
} | """
ebtelplusplus: Zero-dimensional hydrodynamics of coronal loops
"""
from ebtelplusplus.high_level import EbtelResult, run
try:
from ebtelplusplus._version import __version__
except ImportError:
__version__ = "unknown"
__all__ = ["run", "EbtelResult", "__version__"]
| rice-solar-physicsREPO_NAMEebtelPlusPlusPATH_START.@ebtelPlusPlus_extracted@ebtelPlusPlus-main@ebtelplusplus@__init__.py@.PATH_END.py |
{
"filename": "LICENSE.md",
"repo_name": "alphaparrot/ExoPlaSim",
"repo_path": "ExoPlaSim_extracted/ExoPlaSim-master/docs/LICENSE.md",
"type": "Markdown"
} | ### GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates... | alphaparrotREPO_NAMEExoPlaSimPATH_START.@ExoPlaSim_extracted@ExoPlaSim-master@docs@LICENSE.md@.PATH_END.py |
{
"filename": "setup.py",
"repo_name": "soichiro-hattori/unpopular",
"repo_path": "unpopular_extracted/unpopular-master/setup.py",
"type": "Python"
} | import setuptools
with open("README.md", "r") as f:
readme = f.read()
setuptools.setup(
name="unpopular",
version="0.0.1",
author="Soichiro Hattori",
author_email="soichiro.hattori@gmail.com",
url="https://github.com/soichiro-hattori/tess_cpm",
license="MIT",
description="An implementa... | soichiro-hattoriREPO_NAMEunpopularPATH_START.@unpopular_extracted@unpopular-master@setup.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "CosmoStat/shapepipe",
"repo_path": "shapepipe_extracted/shapepipe-master/shapepipe/modules/make_cat_package/__init__.py",
"type": "Python"
} | r"""MAKE CATALOGUE PACKAGE.
This package contains the module for ``make_cat``.
:Author: Axel Guinot
:Parent modules:
- ``sextractor_runner``
- ``spread_model_runner``
- ``psfex_interp_runner`` or ``mccd_interp_runner``
- ``ngmix_runner``
:Input: SExtractor catalogues, sqlite catalogue
:Output: SExtractor catalogu... | CosmoStatREPO_NAMEshapepipePATH_START.@shapepipe_extracted@shapepipe-master@shapepipe@modules@make_cat_package@__init__.py@.PATH_END.py |
{
"filename": "conf.py",
"repo_name": "BRML/climin",
"repo_path": "climin_extracted/climin-master/docs/source/conf.py",
"type": "Python"
} | # -*- coding: utf-8 -*-
#
# climin documentation build configuration file, created by
# sphinx-quickstart on Tue May 7 13:56:19 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | BRMLREPO_NAMEcliminPATH_START.@climin_extracted@climin-master@docs@source@conf.py@.PATH_END.py |
{
"filename": "_tickprefix.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py3/plotly/validators/heatmap/colorbar/_tickprefix.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class TickprefixValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="tickprefix", parent_name="heatmap.colorbar", **kwargs
):
super(TickprefixValidator, self).__init__(
plotly_name=plotly_name,
par... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py3@plotly@validators@heatmap@colorbar@_tickprefix.py@.PATH_END.py |
{
"filename": "Engine.py",
"repo_name": "dokester/BayesicFitting",
"repo_path": "BayesicFitting_extracted/BayesicFitting-master/BayesicFitting/source/Engine.py",
"type": "Python"
} | import numpy as numpy
from . import Tools
from .LevenbergMarquardtFitter import LevenbergMarquardtFitter
from .Walker import Walker
from .PhantomCollection import PhantomCollection
from .Formatter import formatter as fmt
__author__ = "Do Kester"
__year__ = 2024
__license__ = "GPL3"
__version__ = "3.2.1"
__url__ = "ht... | dokesterREPO_NAMEBayesicFittingPATH_START.@BayesicFitting_extracted@BayesicFitting-master@BayesicFitting@source@Engine.py@.PATH_END.py |
{
"filename": "epic.py",
"repo_name": "jvc2688/K2-CPM",
"repo_path": "K2-CPM_extracted/K2-CPM-master/source/K2CPM/epic.py",
"type": "Python"
} | from __future__ import print_function
import requests
import json
import urllib
import os
import sys
def get_tpfs(ra,dec,r,camp, channel):
url = 'https://archive.stsci.edu/k2/data_search/search.php'
data = {"ra": ra, "dec": dec, "radius":r, "sci_campaign":camp, 'sci_channel':channel, "outputformat": "JSON", ... | jvc2688REPO_NAMEK2-CPMPATH_START.@K2-CPM_extracted@K2-CPM-master@source@K2CPM@epic.py@.PATH_END.py |
{
"filename": "PseudoInverse.py",
"repo_name": "astro-informatics/LeIA",
"repo_path": "LeIA_extracted/LeIA-main/src/networks/PseudoInverse.py",
"type": "Python"
} |
import numpy as np
import tensorflow as tf
class PseudoInverse(tf.keras.Model):
def __init__(
self,
image_shape,
uv,
op,
measurement_weights=1,
batch_size=20,
rescale= True,
**kwargs,
):
m_op = op()
m_op.plan(uv, image_sh... | astro-informaticsREPO_NAMELeIAPATH_START.@LeIA_extracted@LeIA-main@src@networks@PseudoInverse.py@.PATH_END.py |
{
"filename": "1_cosmic_removal.ipynb",
"repo_name": "JamesKirk11/Tiberius",
"repo_path": "Tiberius_extracted/Tiberius-main/src/reduction_utils/JWST_utils/reduction_notebooks/1_cosmic_removal.ipynb",
"type": "Jupyter Notebook"
} | Note: locate_cosmics was run in advance so this notebook is to clean up any residual cosmics.
```python
pwd
```
'/Users/james/JWSTdata/GJ341b/MAST_2023-03-12T0537/JWST/reduction01/reduction_notebooks'
```python
%matplotlib nbagg
```
```python
import numpy as np
import pickle
import matplotlib.pyplot as... | JamesKirk11REPO_NAMETiberiusPATH_START.@Tiberius_extracted@Tiberius-main@src@reduction_utils@JWST_utils@reduction_notebooks@1_cosmic_removal.ipynb@.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/funnelarea/marker/__init__.py",
"type": "Python"
} | import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._line import Line
from ._pattern import Pattern
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__, [], ["._line.Line", "._pattern.P... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@graph_objs@funnelarea@marker@__init__.py@.PATH_END.py |
{
"filename": "gaia.py",
"repo_name": "sblunt/orbitize",
"repo_path": "orbitize_extracted/orbitize-main/orbitize/gaia.py",
"type": "Python"
} | import os
import numpy as np
import contextlib
import requests
with contextlib.redirect_stdout(None):
from astroquery.gaia import Gaia
from astropy import units as u
import astropy.io.fits as fits
import astropy.time as time
from astropy.io.ascii import read
from astropy.coordinates import get_body_barycentric_pos... | sbluntREPO_NAMEorbitizePATH_START.@orbitize_extracted@orbitize-main@orbitize@gaia.py@.PATH_END.py |
{
"filename": "lc_gif.py",
"repo_name": "afeinstein20/nirhiss",
"repo_path": "nirhiss_extracted/nirhiss-main/src/nirhiss/lc_gif.py",
"type": "Python"
} | import os, sys
import imageio
import matplotlib
import numpy as np
from pylab import *
from astropy import units
import matplotlib.pyplot as plt
from astropy.table import Table, Column
from matplotlib.gridspec import GridSpec
from matplotlib.patches import Circle, Rectangle
from mpl_toolkits.axes_grid1 import make_axes... | afeinstein20REPO_NAMEnirhissPATH_START.@nirhiss_extracted@nirhiss-main@src@nirhiss@lc_gif.py@.PATH_END.py |
{
"filename": "_font.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/layout/ternary/aaxis/title/_font.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="font", parent_name="layout.ternary.aaxis.title", **kwargs
):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | catboostREPO_NAMEcatboostPATH_START.@catboost_extracted@catboost-master@contrib@python@plotly@py2@plotly@validators@layout@ternary@aaxis@title@_font.py@.PATH_END.py |
{
"filename": "01_broadband_parameter_estimation.ipynb",
"repo_name": "hpparvi/PyTransit",
"repo_path": "PyTransit_extracted/PyTransit-master/notebooks/01_broadband_parameter_estimation.ipynb",
"type": "Jupyter Notebook"
} | # 1. Exoplanet characterisation based on a single light curve
## Introduction
This is a first part of a set of tutorials covering Bayesian exoplanet characterisation using wide-band photometry (transit light curves), radial velocities, and, later, transmission spectroscopy. The tutorials use freely available open sou... | hpparviREPO_NAMEPyTransitPATH_START.@PyTransit_extracted@PyTransit-master@notebooks@01_broadband_parameter_estimation.ipynb@.PATH_END.py |
{
"filename": "sparse_tensor_experiments_Dec2021.ipynb",
"repo_name": "gully/blase",
"repo_path": "blase_extracted/blase-main/notebooks/01_Exploratory/sparse_tensor_experiments_Dec2021.ipynb",
"type": "Jupyter Notebook"
} | # Can we represent spectral lines with sparse tensors in PyTorch?
April 23-26, 2021
Updated December 2021
gully
```python
%config Completer.use_jedi = False
```
```python
import torch
from blase.emulator import PhoenixEmulator
import matplotlib.pyplot as plt
from gollum.phoenix import PHOENIXSpectrum
import ... | gullyREPO_NAMEblasePATH_START.@blase_extracted@blase-main@notebooks@01_Exploratory@sparse_tensor_experiments_Dec2021.ipynb@.PATH_END.py |
{
"filename": "_weight.py",
"repo_name": "plotly/plotly.py",
"repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_weight.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class WeightValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self,
plotly_name="weight",
parent_name="streamtube.colorbar.title.font",
**kwargs,
):
super(WeightValidator, self).__init__(
plotly_name=... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@streamtube@colorbar@title@font@_weight.py@.PATH_END.py |
{
"filename": "acsstartupCreateChannel.py",
"repo_name": "ACS-Community/ACS",
"repo_path": "ACS_extracted/ACS-master/LGPL/CommonSoftware/acsstartup/src/acsstartupCreateChannel.py",
"type": "Python"
} | #! /usr/bin/env python
#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) National Research Council of Canada, 2006
#
# 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@acsstartup@src@acsstartupCreateChannel.py@.PATH_END.py |
{
"filename": "_color.py",
"repo_name": "catboost/catboost",
"repo_path": "catboost_extracted/catboost-master/contrib/python/plotly/py2/plotly/validators/parcoords/line/_color.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(self, plotly_name="color", parent_name="parcoords.line", **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@parcoords@line@_color.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/scattergl/marker/line/_width.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="width", parent_name="scattergl.marker.line", **kwargs
):
super(WidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=p... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattergl@marker@line@_width.py@.PATH_END.py |
{
"filename": "group_normalization_test.py",
"repo_name": "fchollet/keras",
"repo_path": "keras_extracted/keras-master/keras/src/layers/normalization/group_normalization_test.py",
"type": "Python"
} | import numpy as np
import pytest
from keras.src import constraints
from keras.src import layers
from keras.src import regularizers
from keras.src import testing
class GroupNormalizationTest(testing.TestCase):
@pytest.mark.requires_trainable_backend
def test_groupnorm(self):
self.run_layer_test(
... | fcholletREPO_NAMEkerasPATH_START.@keras_extracted@keras-master@keras@src@layers@normalization@group_normalization_test.py@.PATH_END.py |
{
"filename": "control_imports.py",
"repo_name": "tensorflow/tensorflow",
"repo_path": "tensorflow_extracted/tensorflow-master/tensorflow/python/platform/control_imports.py",
"type": "Python"
} | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | tensorflowREPO_NAMEtensorflowPATH_START.@tensorflow_extracted@tensorflow-master@tensorflow@python@platform@control_imports.py@.PATH_END.py |
{
"filename": "sim_data.py",
"repo_name": "eas342/tshirt",
"repo_path": "tshirt_extracted/tshirt-master/tshirt/pipeline/sim_data.py",
"type": "Python"
} | import photutils
from astropy.io import fits, ascii
import sys
import os
from pkg_resources import resource_filename
import matplotlib.pyplot as plt
import glob
from photutils import CircularAperture, CircularAnnulus
from photutils import RectangularAperture
from photutils import aperture_photometry
if photutils.__vers... | eas342REPO_NAMEtshirtPATH_START.@tshirt_extracted@tshirt-master@tshirt@pipeline@sim_data.py@.PATH_END.py |
{
"filename": "fakedome.py",
"repo_name": "astroufsc/chimera",
"repo_path": "chimera_extracted/chimera-master/src/chimera/instruments/fakedome.py",
"type": "Python"
} | #! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
# chimera - observatory automation system
# Copyright (C) 2006-2007 P. Henrique Silva <henrique@astro.ufsc.br>
# 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 S... | astroufscREPO_NAMEchimeraPATH_START.@chimera_extracted@chimera-master@src@chimera@instruments@fakedome.py@.PATH_END.py |
{
"filename": "DEVELOPERS.md",
"repo_name": "crossbario/crossbar",
"repo_path": "crossbar_extracted/crossbar-master/DEVELOPERS.md",
"type": "Markdown"
} | # Developer Guide
This guide is for developers of the Crossbar.io code itself, not for application developers creating Crossbar.io based applications.
## Roadmap
### 0.11.0
[Milestone for 0.11.0](https://github.com/crossbario/crossbar/milestones/0.11.0)
* **Python 3** - Crossbar.io runs on Python 3 now!
* **new lo... | crossbarioREPO_NAMEcrossbarPATH_START.@crossbar_extracted@crossbar-master@DEVELOPERS.md@.PATH_END.py |
{
"filename": "_symmetric.py",
"repo_name": "plotly/plotly.py",
"repo_path": "plotly.py_extracted/plotly.py-master/packages/python/plotly/plotly/validators/scattergl/error_y/_symmetric.py",
"type": "Python"
} | import _plotly_utils.basevalidators
class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="symmetric", parent_name="scattergl.error_y", **kwargs
):
super(SymmetricValidator, self).__init__(
plotly_name=plotly_name,
pare... | plotlyREPO_NAMEplotly.pyPATH_START.@plotly.py_extracted@plotly.py-master@packages@python@plotly@plotly@validators@scattergl@error_y@_symmetric.py@.PATH_END.py |
{
"filename": "moduleSanity.py",
"repo_name": "sczesla/PyAstronomy",
"repo_path": "PyAstronomy_extracted/PyAstronomy-master/src/funcFit/moduleSanity.py",
"type": "Python"
} | from __future__ import print_function, division
import unittest
from PyAstronomy import funcFit as fuf
import os
import numpy as np
class TestFuncFitSanity(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
if os.path.isfile("saveState.tmp"):
os.remove("saveState.tmp")
... | sczeslaREPO_NAMEPyAstronomyPATH_START.@PyAstronomy_extracted@PyAstronomy-master@src@funcFit@moduleSanity.py@.PATH_END.py |
{
"filename": "create_inputfile_global.py",
"repo_name": "BASTAcode/BASTA",
"repo_path": "BASTA_extracted/BASTA-main/examples/xmlinput/create_inputfile_global.py",
"type": "Python"
} | """
Make an input file for BASTA in XML format
This is a specific example of the template.
"""
import os
# If you ran the recommended helper routines, this should be defined
from basta._gridpath import __gridpath__
#
# THIS IS THE FUNCTION YOU ARE LOOKING FOR!
#
def define_input(define_io, define_fit, define_outpu... | BASTAcodeREPO_NAMEBASTAPATH_START.@BASTA_extracted@BASTA-main@examples@xmlinput@create_inputfile_global.py@.PATH_END.py |
{
"filename": "__init__.py",
"repo_name": "galtay/rabacus",
"repo_path": "rabacus_extracted/rabacus-master/rabacus/utils/__init__.py",
"type": "Python"
} | from utils import *
| galtayREPO_NAMErabacusPATH_START.@rabacus_extracted@rabacus-master@rabacus@utils@__init__.py@.PATH_END.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.