index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
67,563 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket150.py | from __future__ import absolute_import, division, print_function
import os
import sys
import numpy as np
import pytest
from numpy.testing import assert_allclose
from .. import locations, refs
from ..exceptions import OverlapError
from ..obsbandpass import ObsBandpass
from ..spectrum import (ArraySpectralElement, Arr... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,564 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_table.py | """
Test table format errors. Usually in real life these occur
in file access, but many of them apply to ArraySpectrum objects
as well & can be tested that way.
"""
from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from ..exceptions import (BadRow, DuplicateWavelength, ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,565 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/observation.py | # It defines a new Observation class, subclassed from CompositeSourceSpectrum,
# that has some special methods and attributes and explicitly removes
# certain other methods.
"""This module handles an observation and related calculations."""
from __future__ import division
import numpy as np
import math
from . import ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,566 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/exceptions.py | """Custom exceptions for ``pysynphot`` to raise."""
# TODO: error message about BaseException
class PysynphotError(Exception):
"""Parent class for ``pysynphot`` exceptions.
Parameters
----------
msg : str
Error message.
"""
def __init__(self,msg):
Exception.__init__(self,msg)
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,567 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket21.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from .. import refs
from ..observationmode import ObservationMode
from ..spectrum import InterpolatedSpectralElement
old_comptable = None
def setup_module(module):
"""
Freeze the version of the comptable so tests are ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,568 | spacetelescope/pysynphot | refs/heads/master | /commissioning/platform_cases.py | """These test cases are generated from reports that synphot performs
differently on different platforms:
Mode = band(acs,wfc1,f814w)
Spectrum: rn(icat(k93models,3500,0.0,4.6),band(v),18.0,vegamag)
Task: Countrate
Mode = band(acs,wfc1,f555w)
Spectrum: rn(spec(/usr/stsci/stdata/calspec/gd71_mod_005.fits),box(5125.0,1.... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,569 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ui.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from astropy.io import fits
from numpy.testing import assert_array_equal, assert_allclose
from .. import units, refs
from ..obsbandpass import ObsBandpass
from ..spectrum import (MergeWaveSets, ArraySourceSpec... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,570 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_locations.py | from __future__ import absolute_import, division, print_function
import os
import astropy
from astropy.utils.data import get_pkg_data_filename
from astropy.utils.introspection import minversion
from .. import locations
ASTROPY_LT_4_3 = not minversion(astropy, '4.3')
if ASTROPY_LT_4_3:
from astropy.utils.data i... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,571 | spacetelescope/pysynphot | refs/heads/master | /commissioning/invalid_rn_cases.py | import unittest
from pysynphot import etc
class C1(unittest.TestCase):
def setUp(self):
self.sp="rn(icat(ck04models,41000,4.5,0),band(ACS,HRC,G800L,F220W),4.5,vegamag)"
def testinvalid(self):
self.assertRaises(ValueError,
etc.parse_spec,
se... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,572 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/refs.py | """This module handles constants and look-up tables used in calculations.
**Global Variables**
* ``pysynphot.refs._default_waveset`` - Default wavelength set to use if no
instrument-specific values found.
* ``pysynphot.refs._default_waveset_str`` - Description of the default
wavelength set above.
* ``pysynphot.re... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,573 | spacetelescope/pysynphot | refs/heads/master | /commissioning/acs_effstim_cases.py | from pytools import testutil
import sys
import basecase
class E1photlam(basecase.effstimCase):
def setUp(self):
self.spectrum="bb(2000) "
self.obsmode="acs,wfc1,f606w"
self.form="photlam"
self.setglobal(__file__)
self.runpy()
class E1flam(basecase.effstimCase):
def se... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,574 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_v05_tickets.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from numpy.testing import assert_array_equal, assert_allclose
from .. import Cache, extinction
from ..obsbandpass import ObsBandpass
from ..reddening import Extinction, RedLaw
from ..spectrum import (ArraySour... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,575 | spacetelescope/pysynphot | refs/heads/master | /commissioning/printversion.py | from __future__ import print_function
import pysynphot as S
from pysynphot import observationmode as O
print("S.__svn_revision__: %s"%S.__svn_revision__)
print(O.GRAPHTABLE)
print(O.COMPTABLE)
print(O.THERMTABLE)
| {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,576 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_units.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from numpy.testing import assert_allclose, assert_array_equal
from .. import extinction, refs
from ..binning import calculate_bin_widths, calculate_bin_edges
from ..spectrum import ArraySourceSpectrum, BlackBody, FlatSpe... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,577 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_write.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from ..catalog import Icat
from ..obsbandpass import ObsBandpass
from ..spectrum import (ArraySourceSpectrum, BlackBody, Box,
FileSourceSpectrum, FileSpectralElement, FlatSpectrum,
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,578 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket157.py | from __future__ import absolute_import, division, print_function
import os
import astropy
import numpy as np
import pytest
from astropy.utils.data import get_pkg_data_filename
from astropy.utils.introspection import minversion
from numpy.testing import assert_allclose
from .. import locations, refs
from ..exceptions... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,579 | spacetelescope/pysynphot | refs/heads/master | /commissioning/wfc3_ir_imaging_80_thermback.py | from pytools import testutil
import sys
import basecase
class thermbackCase1(basecase.thermbackCase):
def setUp(self):
self.obsmode="wfc3,ir,f140w"
self.spectrum="None"
self.subset=True
self.etcid="irim006.tab:0000"
self.setglobal(__file__)
self.runpy()
class thermbac... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,580 | spacetelescope/pysynphot | refs/heads/master | /commissioning/doscalars.py | from __future__ import print_function
import kwfile_dict
import glob, os, sys
import numpy as N
from astropy.io import fits as pyfits
import pylab as P
import matplotlib
from pysynphot.compat import ASTROPY_LT_1_3
def getdata(dirpath,fieldname,instr,save=True):
#get the list of files
flist=glob.glob("%s/*.lo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,581 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket166.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from numpy.testing import assert_allclose
from ..exceptions import DisjointError, PartialOverlap
from ..observation import Observation
from ..spectrum import ArraySourceSpectrum, ArraySpectralElement
class TestHandmade... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,582 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/reddening.py | """This module handles
:ref:`reddening laws and extinction <pysynphot-extinction>` calculations.
"""
from __future__ import absolute_import, division, print_function
from astropy.io import fits as pyfits
from .spectrum import ArraySpectralElement
from . import Cache
from . import extinction #temporary(?) backwards co... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,583 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/locations.py | """This module handles locations of data files.
**Global Variables**
* ``pysynphot.locations.rootdir`` - Root directory for TRDS/CRDS
data files. By default, it is extracted from your ``PYSYN_CDBS``
environment variable.
* ``pysynphot.locations.specdir`` - Data directory for
data files distributed with this so... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,584 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket113.py | from __future__ import absolute_import, division, print_function
import pytest
from ..spparser import scan
@pytest.mark.parametrize('pstr', ['/a/b/c/foo.fits', 'C:/a/b/c/foo.fits'])
def test_path(pstr):
tokens = [pstr]
x = scan(pstr)
assert x[0].attr == tokens[0]
assert len(x) == len(tokens)
| {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,585 | spacetelescope/pysynphot | refs/heads/master | /setup.py | #!/usr/bin/env python
from glob import glob
from numpy import get_include as np_include
from setuptools import setup, Extension
setup(
name='pysynphot',
use_scm_version={'write_to': 'pysynphot/version.py'},
author=('Vicki Laidler, Pey Lian Lim, Matt Davis, Robert Jedrzejewski, '
'Ivo Busko'),
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,586 | spacetelescope/pysynphot | refs/heads/master | /commissioning/extrap/remove_unpinned.py | """ Use this script to remove the pinned versions from the allpinned
directory created by extrap.py."""
from __future__ import print_function
from extrap import fincre
import os, sys
def run(flist,dirname):
f=open(flist)
for fname in f:
#increment the version number
newname=fincre(fname.strip(... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,587 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/spectrum.py | """This module contains the basis for all spectra classes,
including source spectra and bandpasses.
It also pre-loads the built-in :ref:`pysynphot-vega-spec` spectrum to
``pysynphot.spectrum.Vega``.
"""
from __future__ import absolute_import, division, print_function
import re
import os
import math
import warnings
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,588 | spacetelescope/pysynphot | refs/heads/master | /commissioning/nicmos_effstim_cases.py | from pytools import testutil
import sys
import basecase
class E1photlam(basecase.effstimCase):
def setUp(self):
self.spectrum="bb(5000) "
self.obsmode="bessell,h"
self.form="photlam"
self.setglobal(__file__)
self.runpy()
class E1flam(basecase.effstimCase):
def setUp(s... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,589 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/graphtab.py | """ Graph table re-implementation
Data structure & traversal algorithm suggested by Alex Martelli,
http://stackoverflow.com/questions/844505/is-a-graph-library-eg-networkx-the-right-solution-for-my-python-problem
"""
from __future__ import division, print_function
from collections import defaultdict
from astropy.io im... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,590 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_obsbandpass.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from numpy.testing import assert_allclose, assert_array_equal
from ..exceptions import OverlapError
from ..obsbandpass import ObsBandpass, pixel_range, wave_range
from ..refs import setref
@pytest.mark.remote_data
class TestOb... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,591 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/Cache.py | """This module is a container for IO-intensive items that should be
read in only once, and then re-used from memory.
This includes the :ref:`reddening laws <pysynphot-extinction>`
(``pysynphot.locations.RedLaws``)
and some indices for the `~pysynphot.catalog` model atlases
(``pysynphot.Cache.CATALOG_CACHE``).
"""
fro... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,592 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/extinction.py | """This module handles deprecated extinction models for backward compatibility
with IRAF STSDAS SYNPHOT.
"""
from __future__ import division
import numpy as N
from . import spectrum
from . import units
from . import refs
_seatonx = N.array([0., 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, \
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,593 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/binning.py | """Utilities related to wavelength bin calculations."""
from __future__ import division
import numpy as np
def calculate_bin_edges(centers):
"""
Calculate the edges of wavelength bins given the centers.
The algorithm calculates bin edges as the midpoints between bin centers
and treats the first and ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,628 | jkelley79/data_engineering_project_capstone | refs/heads/master | /sql_queries.py | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('config.cfg')
# DROP TABLES
staging_travelers_table_drop = "DROP TABLE IF EXISTS staging_travelers"
staging_airports_table_drop = "DROP TABLE IF EXISTS staging_airports"
staging_cities_table_drop = "DROP TABLE IF EXISTS staging_cities"
st... | {"/etl.py": ["/sql_queries.py"]} |
67,629 | jkelley79/data_engineering_project_capstone | refs/heads/master | /dataprep.py | import pandas as pd
import datetime
import pyspark.sql.types as T
import pyspark.sql.functions as F
import configparser
from pyspark.sql import SparkSession
import os
import glob
import boto3
def prep_cities_data(config):
"""
Read cities data in from CSV and format into appropriate dataframe before exporting t... | {"/etl.py": ["/sql_queries.py"]} |
67,630 | jkelley79/data_engineering_project_capstone | refs/heads/master | /etl.py | import configparser
import psycopg2
from sql_queries import copy_table_queries, insert_table_queries, validation_queries, staging_validation_queries
import json
def load_staging_tables(cur, conn):
"""
Loads staging data from S3 into staging tables via `copy_table_queries` list.
"""
for query in copy_ta... | {"/etl.py": ["/sql_queries.py"]} |
67,637 | MikeMula/FaceRecogntionAuthorizationSystem | refs/heads/main | /enroll.py | import cv2
import os
import uuid
import numpy as np
from PIL import Image
NUM_OF_SAMPLES = 25
#
# Register a user into our database
def enroll(name, face_detector):
# Create unique ID for a user
ID = uuid.uuid4().int & (1<<32)-1
# Get a reference to a webcam
video_capture = cv2.VideoCapture(0)
... | {"/face_recognition.py": ["/arduino.py"]} |
67,638 | MikeMula/FaceRecogntionAuthorizationSystem | refs/heads/main | /face_recognition.py | import cv2
import numpy as np
import os
import time
import pyttsx3
import arduino
engine = pyttsx3.init()
engine.setProperty('volume',1.0)
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[33].id)
engine.setProperty('rate', 180)
#
# First time user should enroll first using enroll.py
#
# Matc... | {"/face_recognition.py": ["/arduino.py"]} |
67,639 | MikeMula/FaceRecogntionAuthorizationSystem | refs/heads/main | /arduino.py | import serial # import serial library
arduino = serial.Serial('/dev/cu.usbmodem14201', 9600) # create serial object named arduino
# Send 'open' command to arduino board
def openDoor(command):
print("Door opening...")
arduino.write(str.encode(command)) ... | {"/face_recognition.py": ["/arduino.py"]} |
67,640 | lognat0704/Progressive-Growing-Of-GANs-Pytorch- | refs/heads/master | /utils.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as nu
import torch.utils.data as d
def deconv(c_in, c_out, k_size, stride=1, pad=0, bn=True):
"""Custom deconvolutional layer for simplicity."""
layers = []
layers.append(nn.ConvTranspose2d(c_in, c_out, k_size, stride, pad))
... | {"/test_pytorch.py": ["/utils.py", "/Network.py"], "/Network.py": ["/utils.py"]} |
67,641 | lognat0704/Progressive-Growing-Of-GANs-Pytorch- | refs/heads/master | /test_pytorch.py | import torch
import torch.nn as nn
import numpy as np
from torch.autograd import Variable
import torch.nn.functional as F
from utils import *
# x=np.random.rand(100,1,2,2)
# x=torch.Tensor(x)
# y=sum(x,[2,3],keepdim=True)
# print (y.size())
# y=x.repeat(*[1,3,1,1])
# print (y.size())
# x.unsqueeze_(0)
# print (x.si... | {"/test_pytorch.py": ["/utils.py", "/Network.py"], "/Network.py": ["/utils.py"]} |
67,642 | lognat0704/Progressive-Growing-Of-GANs-Pytorch- | refs/heads/master | /Network.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from utils import *
import numpy as np
from torch.autograd import Variable
import torch
import torch.nn as nn
import torchvision.datasets as dsets
import torchvision.transforms as transforms
from torch.autograd import Variable
from PIL import Image
cl... | {"/test_pytorch.py": ["/utils.py", "/Network.py"], "/Network.py": ["/utils.py"]} |
67,654 | TrellixVulnTeam/Jumo-Test_CU93 | refs/heads/master | /loan_parameter.py |
class LoanParameter(object):
registry = {}
def __init__(self, name):
self.name = name
self.totals_loan = 0
self.count = 1
@classmethod
def create_item(cls, x):
try:
return cls.registry[x]
except KeyError:
new_item = cls(x)
cls.registry[x] = new_item
... | {"/jumo_test.py": ["/loan_parameter.py"]} |
67,655 | TrellixVulnTeam/Jumo-Test_CU93 | refs/heads/master | /jumo_test.py | import pandas as pd
import dateutil.parser
from loan_parameter import LoanParameter
def read_from_csv():
file = r'Loans.csv'
df = pd.read_csv(file)
loanDataLists = []
for column in df.loc[0:, 'Network':'Amount']:
loanDataLists.append(df[column])
return loanDataLists
def get_totals... | {"/jumo_test.py": ["/loan_parameter.py"]} |
67,682 | dheerajreddy2020/CRUD_in_Flask | refs/heads/master | /details.py | from settings import *
import json
# Initializing our database
db = SQLAlchemy(app)
class Details(db.Model):
__tablename__ = 'details'
id = db.Column(db.Integer, primary_key=True)
studentid = db.Column(db.Integer, nullable=False)
firstname = db.Column(db.String(64), nullable=False)
lastname = db.Colum... | {"/app.py": ["/details.py"]} |
67,683 | dheerajreddy2020/CRUD_in_Flask | refs/heads/master | /app.py | from details import db
db.create_all()
from details import *
# route to get all students
@app.route('/', methods=['GET'])
def get_home():
return jsonify({'Students':'This is Home Page'})
# route to get all students
@app.route('/students', methods=['GET'])
def get_students():
return jsonify({'Students'... | {"/app.py": ["/details.py"]} |
67,684 | mateuszdargacz/westing_sales | refs/heads/master | /westwing_sales/core/urls.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from westwing_sales.core import views
__author__ = 'mateuszdargacz@gmail.com'
__date__ = '3/8/16 / 2:10 PM'
__git__ = 'https://github.com/mateuszdargacz'
urlpatterns = [
# URL pattern for the UserL... | {"/westwing_sales/core/urls.py": ["/westwing_sales/core/__init__.py"], "/westwing_sales/core/views.py": ["/westwing_sales/core/get_products.py"]} |
67,685 | mateuszdargacz/westing_sales | refs/heads/master | /westwing_sales/core/__init__.py | # -*- coding: utf-8 -*-
__author__ = 'mateuszdargacz@gmail.com'
__date__ = '3/12/16 / 2:59 PM'
__git__ = 'https://github.com/mateuszdargacz'
| {"/westwing_sales/core/urls.py": ["/westwing_sales/core/__init__.py"], "/westwing_sales/core/views.py": ["/westwing_sales/core/get_products.py"]} |
67,686 | mateuszdargacz/westing_sales | refs/heads/master | /westwing_sales/core/get_products.py | # -*- coding: utf-8 -*-
import datetime
import json
import os
import re
import requests
from bs4 import BeautifulSoup
from django.conf import settings
__author__ = 'mateuszdargacz@gmail.com'
__date__ = '3/12/16 / 11:56 AM'
__git__ = 'https://github.com/mateuszdargacz'
CAMPAING_DETAILS_URL_CLASS = 'campaign-item__wrap... | {"/westwing_sales/core/urls.py": ["/westwing_sales/core/__init__.py"], "/westwing_sales/core/views.py": ["/westwing_sales/core/get_products.py"]} |
67,687 | mateuszdargacz/westing_sales | refs/heads/master | /westwing_sales/core/views.py | # -*- coding: utf-8 -*-
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from westwing_sales.core.get_products import get_all_products
__author__ = 'mateuszdargacz@gmail.com'
__date__ = '3/12/16 / 2:59 PM'
__git__ = 'https://github.com/mateuszdargacz'
class Hom... | {"/westwing_sales/core/urls.py": ["/westwing_sales/core/__init__.py"], "/westwing_sales/core/views.py": ["/westwing_sales/core/get_products.py"]} |
67,699 | VIVelev/nujo | refs/heads/master | /nujo/flow.py | ''' a chainable computation Flow
'''
from abc import abstractmethod
from copy import deepcopy
from itertools import chain
from typing import List, Union
from nujo.autodiff.tensor import Tensor
class _FlowMeta(type):
''' Flow's metaclass used to setup the computation flow
'''
def __call__(cls, *args, **k... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,700 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/modes.py | __all__ = [
'DIFF_ENABLED',
'no_diff',
]
DIFF_ENABLED = True
''' This variable controls whether nujo to compute gradients
for the tensors in the computation graph:
- True = differentiation enabled, compute gradients
for the diff enabled (diff=True) tensors.
- False = differentiation disabled, do ... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,701 | VIVelev/nujo | refs/heads/master | /examples/graph_visualization.py | import nujo as nj
from nujo.utils import ComputationGraphPlotter
x = nj.Tensor(10, name='X')
y = 7 * (x**2) + 5 * x + 3
cg_plot = ComputationGraphPlotter(filename='graph').create(y)
cg_plot.view()
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,702 | VIVelev/nujo | refs/heads/master | /tests/test_flow.py | import pytest
from nujo.autodiff.tensor import Tensor
from nujo.flow import Flow
# ====================================================================================================
# Test custom Flow creation
def test_custom_flow_creation():
class CustomFlow(Flow):
def __init__(self, name):
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,703 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/__init__.py | ''' nujo's core Reverse-mode Automatic Differentiation module
'''
from nujo.autodiff.function import Function
from nujo.autodiff.modes import no_diff
from nujo.autodiff.tensor import Tensor
__all__ = [
'Function',
'no_diff',
'Tensor',
]
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,704 | VIVelev/nujo | refs/heads/master | /nujo/nn/layers.py | from functools import lru_cache
from typing import Tuple, Union
from nujo.autodiff._functions._transform import _ConstPad, _Im2col
from nujo.autodiff.tensor import Tensor
from nujo.flow import Flow
from nujo.init.random import randn
__all__ = [
'Linear',
'Conv2d',
'ConstPad2d',
]
# ======================... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,705 | VIVelev/nujo | refs/heads/master | /nujo/optim/__init__.py | ''' nujo's optimization module
Various optimizers used in machine learning problems are defined here.
Check out the following link for more info about the optimizers:
http://ruder.io/optimizing-gradient-descent/index.html
'''
from nujo.optim.optimizer import Optimizer
from nujo.optim.optimizers import *
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,706 | VIVelev/nujo | refs/heads/master | /nujo/math/aggregate.py | from typing import Optional
from numpy import prod as np_prod
from numpy import sum as np_sum
from nujo.autodiff._functions._aggregate import _InnerProd, _InnerSum
from nujo.autodiff.tensor import Tensor
__all__ = [
'sum',
'prod',
'mean',
]
# =============================================================... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,707 | VIVelev/nujo | refs/heads/master | /nujo/objective/loss.py | from typing import Optional
from nujo.flow import Flow
from nujo.math.aggregate import mean, sum
__all__ = [
'QualitativeLoss',
'QuantitativeLoss',
]
# ====================================================================================================
class _Loss(Flow):
''' Base Loss Function Class
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,708 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_node.py | from itertools import count
from typing import Any
class _Node:
''' A Node in the computation graph
Can be either a Function or a Tensor.
Parameters:
-----------
- children : varargs, the children of the node
- name : string, representation of the node
'''
_id_generator = count()... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,709 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/tensor.py | from numbers import Number
from typing import List, Tuple, Union
from numpy import array, empty, ndarray
import nujo.autodiff.modes as modes
from nujo.autodiff._node import _Node
from nujo.autodiff._utils import _if_not_none
class Tensor(_Node):
''' Tensor - a multi-dimensional array
Tensors are the main u... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,710 | VIVelev/nujo | refs/heads/master | /nujo/nn/__init__.py | ''' nujo's Neural Network module
Neural Network utilities are defined here.
'''
from nujo.nn.activations import *
from nujo.nn.layers import *
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,711 | VIVelev/nujo | refs/heads/master | /nujo/objective/quantitative.py | from nujo.autodiff.tensor import Tensor
from nujo.math.scalar import abs
from nujo.objective.loss import QuantitativeLoss
__all__ = [
'L1Loss',
'L2Loss',
]
# ====================================================================================================
class L1Loss(QuantitativeLoss):
''' L1 loss (... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,712 | VIVelev/nujo | refs/heads/master | /tools/decorators.py | ''' this decorators are ment to be used with
line/memory profiler's @profile decorator
'''
__all__ = [
'decorate_if',
'decorate_if_defined',
]
def decorate_if(condition, decorator):
return decorator if condition else lambda x: x
def decorate_if_defined(decorator):
return globals().get(decorator, l... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,713 | VIVelev/nujo | refs/heads/master | /nujo/objective/qualitative.py | from numpy import clip
from nujo.autodiff.tensor import Tensor
from nujo.math import log, sum
from nujo.objective.loss import QualitativeLoss
__all__ = [
'BinaryCrossEntropy',
'CrossEntropy',
]
# ====================================================================================================
class Bina... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,714 | VIVelev/nujo | refs/heads/master | /tests/test_objective/test_qualitative.py | import pytest
from nujo.autodiff.tensor import Tensor
from nujo.init.random import rand
from nujo.objective.qualitative import BinaryCrossEntropy, CrossEntropy
# ====================================================================================================
# Test Binary Cross Entropy
def test_binary_cross_ent... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,715 | VIVelev/nujo | refs/heads/master | /tests/test_math/test_scalar.py | import pytest
from numpy import (abs, allclose, ceil, exp, floor, log, log2, log10, round,
sqrt)
import nujo.math.scalar as scalar
from nujo.init.random import rand
# ====================================================================================================
# Test Logarithms with differen... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,716 | VIVelev/nujo | refs/heads/master | /nujo/init/random.py | from numpy.random import rand as np_rand
from numpy.random import randint as np_randint
from numpy.random import randn as np_randn
from nujo.autodiff.tensor import Tensor
__all__ = [
'rand',
'randn',
'randint',
]
def rand(*shape: int, diff=False, name='Tensor[rand]') -> Tensor:
''' Random values in ... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,717 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_utils.py | __all__ = [
'_if_not_none',
]
def _if_not_none(*args) -> list:
return [arg for arg in args if arg is not None]
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,718 | VIVelev/nujo | refs/heads/master | /nujo/utils/__init__.py | ''' nujo utils '''
from nujo.utils.computation_graph_plotter import ComputationGraphPlotter
__all__ = [
'ComputationGraphPlotter',
]
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,719 | VIVelev/nujo | refs/heads/master | /nujo/utils/computation_graph_plotter.py | from graphviz import Digraph
from nujo.autodiff._node import _Node
from nujo.autodiff.tensor import Tensor
class ComputationGraphPlotter:
''' Computation Graph Plotter
Uses graphviz.
'''
def __init__(self, **kwargs):
self.computation_graph = Digraph(**kwargs)
@staticmethod
def ... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,720 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_functions/_elementary.py | from numbers import Number
from typing import List, Union
from numpy import log, ndarray, ones
from nujo.autodiff.function import Function
from nujo.autodiff.tensor import Tensor
__all__ = [
'_Addition',
'_Negation',
'_Multiplication',
'_Reciprocal',
'_Power',
'_Logarithm',
'_MatrixMul',
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,721 | VIVelev/nujo | refs/heads/master | /examples/mnist_feed_forward_nn.py | import numpy as np
from mnist import MNIST
import nujo as nj
import nujo.nn as nn
import nujo.objective as obj
import nujo.optim as optim
from nujo.utils import ComputationGraphPlotter
net = nn.Linear(28 * 28, 256) >> nn.Sigmoid() \
>> nn.Linear(256, 128) >> nn.Sigmoid() \
>> nn.Linear(128, 10) >> nn.Soft... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,722 | VIVelev/nujo | refs/heads/master | /tests/test_math/test_aggregate.py | import pytest
from numpy import allclose, mean, prod, sum
import nujo.math.aggregate as aggregate
from nujo.init.random import rand
# ====================================================================================================
# Test Summation
def test_sum(inputs):
# Test Forward pass (Inner sum)
ou... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,723 | VIVelev/nujo | refs/heads/master | /nujo/init/__init__.py | ''' Tensor initializers
The functions presented here are just tiny wrappers around
`numpy` functions, in order to make them compatible with nujo.
'''
from nujo.init.basic import *
from nujo.init.random import *
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,724 | VIVelev/nujo | refs/heads/master | /tests/test_autodiff/test_tensor.py | import pytest
from numpy import expand_dims, ndarray
from nujo import Tensor
from nujo.autodiff._functions._elementary import _Addition
# ====================================================================================================
# Test Tensor value and creator properties
def test_tensor_value(tensors):
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,725 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_functions/_activations.py | from math import e
from numbers import Number
from typing import List, Union
from numpy import exp, max, maximum, ndarray, ones, sum, zeros
from nujo.autodiff.function import Function
from nujo.autodiff.tensor import Tensor
__all__ = [
'_BinaryStep',
'_Sigmoid',
'_TanH',
'_ReLU',
'_LeakyReLU',
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,726 | VIVelev/nujo | refs/heads/master | /nujo/math/scalar.py | from copy import deepcopy
from math import e
from numpy import around as np_round
from numpy import ceil as np_ceil
from numpy import floor as np_floor
from nujo.autodiff._functions._elementary import _Logarithm, _Power
from nujo.autodiff.tensor import Tensor
__all__ = [
'log',
'log2',
'log10',
'exp'... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,727 | VIVelev/nujo | refs/heads/master | /nujo/init/basic.py | from numpy import empty as np_empty
from numpy import full as np_full
from nujo.autodiff.tensor import Tensor
__all__ = [
'empty',
'full',
'ones',
'ones_like',
'zeros',
'zeros_like',
]
# ====================================================================================================
def... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,728 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/function.py | from abc import abstractmethod
from numbers import Number
from typing import Any, Dict, Iterable, List, TypeVar, Union
from numpy import ndarray
import nujo.autodiff.modes as modes
from nujo.autodiff._node import _Node
from nujo.autodiff.tensor import Tensor
# ========================================================... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,729 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_functions/_aggregate.py | from numbers import Number
from typing import List, Optional, Union
from numpy import ndarray, ones, prod, sum
from nujo.autodiff.function import Function
from nujo.autodiff.tensor import Tensor
__all__ = [
'_InnerSum',
'_InnerProd',
]
# ======================================================================... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,730 | VIVelev/nujo | refs/heads/master | /tools/profiler.py | import os
import sys
if __name__ == '__main__':
path_to_script_with_args = ' '.join(sys.argv[1:])
os.system(
f'python -m cProfile -o output.pstats {path_to_script_with_args}')
os.system('gprof2dot --colour-nodes-by-selftime -f pstats output.pstats |\
dot -Tpng -o output.png')
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,731 | VIVelev/nujo | refs/heads/master | /nujo/nn/activations.py | ''' Neural Network activation functions
More info here:
https://missinglink.ai/guides/neural-network-concepts/7-types-neural-network-activation-functions-right/
'''
from math import e
from nujo.autodiff._functions._activations import (_BinaryStep, _LeakyReLU,
_ReLU... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,732 | VIVelev/nujo | refs/heads/master | /tests/test_objective/test_quantitative.py | import pytest
from nujo.autodiff.tensor import Tensor
from nujo.init.random import rand
from nujo.objective.quantitative import L1Loss, L2Loss
# ====================================================================================================
# Test L1 Loss
def test_l1_loss(inputs, targets):
loss_fn = L1Loss... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,733 | VIVelev/nujo | refs/heads/master | /tests/test_autodiff/test_functions/test_elementary.py | import pytest
from numpy import allclose, log, log2
import nujo.autodiff._functions._elementary as funcs
from nujo import Tensor, ones
# ====================================================================================================
# Unit Testing Addition
def test_addition(inputs):
A, B = inputs
add =... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,734 | VIVelev/nujo | refs/heads/master | /nujo/optim/optimizers.py | ''' Stochastic Gradient Descent (SGD) Optimizers
Check out the following link for more info about the optimizers:
http://ruder.io/optimizing-gradient-descent/index.html
'''
from typing import Dict, List
from nujo.autodiff.tensor import Tensor
from nujo.init.basic import zeros_like
from nujo.math.scalar import sqrt
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,735 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_functions/_trigonometric.py | from numpy import cos, ndarray, sin, tan
from nujo.autodiff.function import Function
__all__ = [
'_Sin',
'_Cos',
'_Tan',
]
# ====================================================================================================
class _Sin(Function):
def forward(self) -> ndarray:
return sin(se... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,736 | VIVelev/nujo | refs/heads/master | /nujo/math/__init__.py | ''' nujo's core mathematical functionality
'''
from nujo.math.aggregate import *
from nujo.math.scalar import *
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,737 | VIVelev/nujo | refs/heads/master | /nujo/__init__.py | from nujo.autodiff import Function, Tensor, no_diff
from nujo.flow import Flow
from nujo.init import *
from nujo.math import *
__all__ = [
'Function',
'Tensor',
'no_diff',
'Flow',
]
__version__ = '0.3.0'
| {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,738 | VIVelev/nujo | refs/heads/master | /docs/gendocs.py | ''' Documentation generation and update procedure
'''
import os
import shutil
def gen_docs():
print('Generating HTML documentation for nujo out of docstrings...')
nujo = os.path.join(os.path.dirname(__file__), '../nujo')
docs = os.path.dirname(__file__)
print('nujo dir:', nujo)
print('docs dir:... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,739 | VIVelev/nujo | refs/heads/master | /tests/test_autodiff/test_node.py | from nujo.autodiff._node import _Node
def test_node_equality():
A, B = _Node(), _Node()
assert A == A
assert A != B
def test_node_children():
A = _Node(_Node(1), _Node(2), 3)
assert len(A.children) == 3
assert isinstance(A.children[0], _Node)
assert A.children[1].children[0] == 2
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,740 | VIVelev/nujo | refs/heads/master | /tests/test_autodiff/test_autodiff.py | import pytest
import torch
from numpy import allclose, random
import nujo as nj
# ====================================================================================================
def test_scalar_diff(scalar_tensors):
(X_nj, y_nj, W1_nj, W2_nj, X_torch, y_torch, W1_torch,
W2_torch) = scalar_tensors
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,741 | VIVelev/nujo | refs/heads/master | /examples/nn_linear.py | import nujo as nj
import nujo.nn as nn
import nujo.objective as obj
import nujo.optim as optim
from nujo.utils import ComputationGraphPlotter
# Define the net and optimizer
net = nn.Linear(3, 6) >> nn.Linear(6, 2) >> nn.Linear(2, 1)
print('Defined net:', net)
loss_fn = obj.L2Loss()
print('Loss:', loss_fn)
optimizer ... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,742 | VIVelev/nujo | refs/heads/master | /nujo/optim/optimizer.py | from abc import abstractmethod
from typing import Generator
from nujo.autodiff import Tensor, no_diff
class Optimizer:
''' Stochastic Gradient Descent Optimizer
A base class. If you want to implement a custom
optimizer you should inherit this class.
The optimizers are made to work with nujo flows.
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,743 | VIVelev/nujo | refs/heads/master | /tests/test_optim/test_optimizers.py | import pytest
import nujo.optim as optim
from nujo import mean, rand, randn
# ====================================================================================================
# Test Stochastic Gradient Descent (SGD)
@pytest.mark.slow
def test_sgd_basic(scalar_params, get_generator_for, num_iters,
... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,744 | VIVelev/nujo | refs/heads/master | /nujo/objective/__init__.py | ''' nujo's objective functions module
All sorts of objective functions used in machine learning are defined here.
More details here:
https://ml-cheatsheet.readthedocs.io/en/latest/loss_functions.html
'''
from nujo.objective.loss import *
from nujo.objective.qualitative import *
from nujo.objective.quantitative impo... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,745 | VIVelev/nujo | refs/heads/master | /tests/test_nn/test_layers.py | import pytest
import torch
import torch.nn as torch_nn
import nujo as nj
import nujo.nn as nj_nn
# ====================================================================================================
def test_single_conv2d(image_input):
nj_tensor, torch_tensor = image_input
nj_conv = nj_nn.Conv2d(3, 6, 4, ... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,746 | VIVelev/nujo | refs/heads/master | /nujo/autodiff/_functions/_transform.py | from numbers import Number
from typing import List, Optional, Tuple, Union
from numpy import add, arange, ndarray, pad, repeat, tile, zeros
from nujo._cache import cached_property
from nujo.autodiff.function import Function
from nujo.autodiff.tensor import Tensor
__all__ = [
'_Reshape',
'_Transpose',
'_C... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,747 | VIVelev/nujo | refs/heads/master | /tests/test_nn/test_activations.py | import pytest
from numpy import allclose, exp, maximum, sum
import nujo.nn.activations as activ
from nujo.autodiff.tensor import Tensor
# ====================================================================================================
# Test BinaryStep activation function
def test_binary_step(inputs):
# Tes... | {"/nujo/flow.py": ["/nujo/autodiff/tensor.py"], "/examples/graph_visualization.py": ["/nujo/__init__.py", "/nujo/utils/__init__.py"], "/tests/test_flow.py": ["/nujo/autodiff/tensor.py", "/nujo/flow.py"], "/nujo/autodiff/__init__.py": ["/nujo/autodiff/function.py", "/nujo/autodiff/modes.py", "/nujo/autodiff/tensor.py"],... |
67,749 | luozhouyang/stupidtree | refs/heads/master | /stupidtree/examples/address/node_test.py | # Copyright (c) 2018 luozhouyang
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | {"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]} |
67,750 | luozhouyang/stupidtree | refs/heads/master | /stupidtree/core/base_tree.py | # Copyright (c) 2018 luozhouyang
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | {"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]} |
67,751 | luozhouyang/stupidtree | refs/heads/master | /stupidtree/examples/address/pcd_tree_test.py | # Copyright (c) 2018 luozhouyang
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | {"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.