Search is not available for this dataset
repo_id
stringlengths
12
110
file_path
stringlengths
24
164
content
stringlengths
3
89.3M
__index_level_0__
int64
0
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Array2.h
#ifndef ARRAY2_H #define ARRAY2_H #include "Array1.h" #include <stdexcept> #include <string> class Array2 { public: // Default constructor Array2(); // Size/array constructor Array2(int nrows, int ncols, long* data=0); // Copy constructor Array2(const Array2 & source); // Destructor ~Array2(); ...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/testTensor.py
#! /usr/bin/env python # System imports from distutils.util import get_platform from math import sqrt import os import sys import unittest # Import NumPy import numpy as np major, minor = [ int(d) for d in np.__version__.split(".")[:2] ] if major == 0: BadListError = TypeError else: BadListErro...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/testFortran.py
#! /usr/bin/env python # System imports from distutils.util import get_platform import os import sys import unittest # Import NumPy import numpy as np major, minor = [ int(d) for d in np.__version__.split(".")[:2] ] if major == 0: BadListError = TypeError else: BadListError = ValueError import Fortran ##...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Array1.h
#ifndef ARRAY1_H #define ARRAY1_H #include <stdexcept> #include <string> class Array1 { public: // Default/length/array constructor Array1(int length = 0, long* data = 0); // Copy constructor Array1(const Array1 & source); // Destructor ~Array1(); // Assignment operator Array1 & operator=(const Ar...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Matrix.i
// -*- c++ -*- %module Matrix %{ #define SWIG_FILE_WITH_INIT #include "Matrix.h" %} // Get the NumPy typemaps %include "../numpy.i" %init %{ import_array(); %} %define %apply_numpy_typemaps(TYPE) %apply (TYPE IN_ARRAY2[ANY][ANY]) {(TYPE matrix[ANY][ANY])}; %apply (TYPE* IN_ARRAY2, int DIM1, int DIM2) {(TYPE* mat...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Fortran.h
#ifndef FORTRAN_H #define FORTRAN_H #define TEST_FUNC_PROTOS(TYPE, SNAME) \ \ TYPE SNAME ## SecondElement( TYPE * matrix, int rows, int cols); \ TEST_FUNC_PROTOS(signed char , schar ) TEST_FUNC_PROTOS(unsigned char , uchar ) TEST_FUNC_PROTOS(short , short ) TEST_FUNC_PROTOS(unsigned ...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Vector.h
#ifndef VECTOR_H #define VECTOR_H // The following macro defines the prototypes for a family of // functions that work with 1D arrays with the forms // // TYPE SNAMELength( TYPE vector[3]); // TYPE SNAMEProd( TYPE * series, int size); // TYPE SNAMESum( int size, TYPE * series); // void SNAMERevers...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/testMatrix.py
#! /usr/bin/env python # System imports from distutils.util import get_platform import os import sys import unittest # Import NumPy import numpy as np major, minor = [ int(d) for d in np.__version__.split(".")[:2] ] if major == 0: BadListError = TypeError else: BadListError = ValueError import Matrix ###...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/testFarray.py
#! /usr/bin/env python # System imports from distutils.util import get_platform import os import sys import unittest # Import NumPy import numpy as np major, minor = [ int(d) for d in np.__version__.split(".")[:2] ] if major == 0: BadListError = TypeError else: BadListError = ValueError # Add the distutil...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Fortran.cxx
#include <stdlib.h> #include <math.h> #include <iostream> #include "Fortran.h" #define TEST_FUNCS(TYPE, SNAME) \ \ TYPE SNAME ## SecondElement(TYPE * matrix, int rows, int cols) { \ TYPE result = matrix[1]; \ return result; \ } ...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Array.i
// -*- c++ -*- %module Array %{ #define SWIG_FILE_WITH_INIT #include "Array1.h" #include "Array2.h" %} // Get the NumPy typemaps %include "../numpy.i" // Get the STL typemaps %include "stl.i" // Handle standard exceptions %include "exception.i" %exception { try { $action } catch (const std::invalid_ar...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Matrix.h
#ifndef MATRIX_H #define MATRIX_H // The following macro defines the prototypes for a family of // functions that work with 2D arrays with the forms // // TYPE SNAMEDet( TYPE matrix[2][2]); // TYPE SNAMEMax( TYPE * matrix, int rows, int cols); // TYPE SNAMEMin( int rows, int cols, TYPE * matrix); ...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/Tensor.i
// -*- c++ -*- %module Tensor %{ #define SWIG_FILE_WITH_INIT #include "Tensor.h" %} // Get the NumPy typemaps %include "../numpy.i" %init %{ import_array(); %} %define %apply_numpy_typemaps(TYPE) %apply (TYPE IN_ARRAY3[ANY][ANY][ANY]) {(TYPE tensor[ANY][ANY][ANY])}; %apply (TYPE* IN_ARRAY3, int DIM1, int DIM2, i...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/test/testVector.py
#! /usr/bin/env python # System imports from distutils.util import get_platform import os import sys import unittest # Import NumPy import numpy as np major, minor = [ int(d) for d in np.__version__.split(".")[:2] ] if major == 0: BadListError = TypeError else: BadListError = ValueError import Vector ###...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/doc/numpy_swig.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.4: http://...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/doc/testing.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.4: http://...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/doc/numpy_swig.txt
========================================== numpy.i: a SWIG Interface File for NumPy ========================================== :Author: Bill Spotz :Institution: Sandia National Laboratories :Date: 1 December, 2007 .. contents:: Introduction ============ The Simple Wrapper and Interface Generator (or `S...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/doc/testing.txt
============================ Testing the numpy.i Typemaps ============================ :Author: Bill Spotz :Institution: Sandia National Laboratories :Date: 6 April, 2007 .. contents:: Introduction ============ Writing tests for the ``numpy.i`` `SWIG <http://www.swig.org>`_ interface file is a combinato...
0
public_repos/datetime/doc/swig
public_repos/datetime/doc/swig/doc/Makefile
# ReStructured Text RST2HTML = rst2html.py RST2LATEX = rst2latex.py RFLAGS = --generator --time HTML_FLAGS = --no-xml-declaration LATEX_FLAGS = LATEX = pdflatex # Web pages that need to be made WEB_PAGES = numpy_swig.html testing.html # LaTeX files that need to be made LATEX_FILES = numpy_swig.tex testing.tex # PDF ...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpybook/runcode.py
# This script takes a lyx file and runs the python code in it. # Then rewrites the lyx file again. # # Each section of code portion is assumed to be in the same namespace # where a from numpy import * has been applied # # If a PYNEW inside a Note is encountered, the name space is restarted # # The output (if any) is ...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpybook/capi.lyx
#LyX 1.5.1 created this file. For more info see http://www.lyx.org/ \lyxformat 276 \begin_document \begin_header \textclass mybook \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpybook/numpybook.lyx
#LyX 1.5.1 created this file. For more info see http://www.lyx.org/ \lyxformat 276 \begin_document \begin_header \textclass mybook \begin_preamble \usepackage{array} % This gives us a better font in URL links (otherwise the default % MonoSpace font is bitmapped, and it looks horrible in PDF) \usepackage{courier} \...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/Figures/threefundamental.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: threefundamental.fig %%Creator: fig2dev Version 3.2 Patchlevel 4 %%CreationDate: Mon Jan 16 15:40:51 2006 %%For: oliphant@den.local.net (Travis Oliphant) %%BoundingBox: 0 0 438 162 %%Magnification: 1.0000 %%EndComments /$F2psDict 200 dict def $F2psDict begin $F2psDict /mtrx matrix put /...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/Figures/threefundamental.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 6 1950 2850 4350 3450 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 1950 2850 4350 2850 4350 3450 1950 3450 1950 2850 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 2550 2850 2550 3450 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 3150 2850 3150 3450 2 1 0 1 0 7 50 -...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/Figures/contiguous.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 6 3300 1500 10500 2250 2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 5700 1575 6900 1575 6900 2175 5700 2175 5700 1575 2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 7500 1575 8700 1575 8700 2175 7500 2175 7500 1575 2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 3300 ...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/Figures/hierarchy.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: hierarchy.dia %%Creator: Dia v0.94 %%CreationDate: Wed Jan 4 16:44:07 2006 %%For: oliphant %%Orientation: Portrait %%Magnification: 1.0000 %%BoundingBox: 0 0 743 584 %%BeginSetup %%EndSetup %%EndComments %%BeginProlog [ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.n...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/Figures/contiguous.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: contiguous.fig %%Creator: fig2dev Version 3.2 Patchlevel 4 %%CreationDate: Thu Aug 18 12:08:29 2005 %%For: oliphant@oliphant (Travis Oliphant) %%BoundingBox: 0 0 434 215 %%Magnification: 1.0000 %%EndComments /$F2psDict 200 dict def $F2psDict begin $F2psDict /mtrx matrix put /col-1 {0 se...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/comparison/timing.py
import timeit pyrex_pre = """ import numpy as N a = N.random.rand(%d,%d) import filter """ pyrex_run = """ b = filter.filter(a) """ weave_pre = """ import numpy as N a = N.random.rand(%d,%d) import filter """ weave_run = """ b = filter.filter(a) """ ctypes_pre = """ import numpy as N a = N.random.rand(%d,%d) impo...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/weave/filter.py
from scipy import weave, zeros_like def filter(a): if a.ndim != 2: raise ValueError, "a must be 2-d" code = r""" int i,j; for(i=1;i<Na[0]-1;i++) { for(j=1;j<Na[1]-1;j++) { B2(i,j) = A2(i,j) + (A2(i-1,j) + A2(i+1,j) + A2(i,j-1) + A2...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/weave/inline.py
from scipy import weave from numpy import rand, zeros_like def example1(a): if not isinstance(a, list): raise ValueError, "argument must be a list" code = r""" int i; py::tuple results(2); for (i=0; i<a.length(); i++) { a[i] = i; } ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/weave/timeme
python2.4 -m timeit -s "import numpy as N; a=N.random.rand(100,200); import filter" "b = filter.filter(a)"
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/ctypes/newfile.dat
$@>@...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/ctypes/code.c
typedef struct {double real; double imag;} cdouble; typedef struct {double real; double imag;} cfloat; /* Add arrays of contiguous data */ void zadd(cdouble *a, cdouble *b, cdouble *c, long n) { while (n--) { c->real = a->real + b->real; c->imag = a->imag + b->imag; a++; b++; c++; } } void cadd(cfloat *a, ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/ctypes/filter.py
__all__ = ['filter2d'] import numpy as N import os import ctypes _path = os.path.dirname('__file__') lib = N.ctypeslib.load_library('code', _path) lib.dfilter2d.restype = None lib.dfilter2d.argtypes = [N.ctypeslib.ndpointer(float, ndim=2, flags='aligned'), ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/ctypes/interface.py
__all__ = ['add', 'filter2d'] import numpy as N import os import ctypes _path = os.path.dirname('__file__') lib = N.ctypeslib.load_library('code', _path) _typedict = {'zadd' : complex, 'sadd' : N.single, 'cadd' : N.csingle, 'dadd' : float} for name in _typedict.keys(): val =...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/ctypes/timeme
python2.4 -m timeit -s "import numpy as N; a=N.random.rand(100,200); import filter" "b = filter.filter(a)"
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/add.pyf
! -*- f90 -*- ! Note: the context of this file is case sensitive. python module add ! in interface ! in :add subroutine zadd(a,b,c,n) ! in :add:add.f double complex dimension(n) :: a double complex dimension(n) :: b double complex intent(out), dimension(n) :: c ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/filtermodule.c
/* File: filtermodule.c * This file is auto-generated with f2py (version:2_3032). * f2py is a Fortran to Python Interface Generator (FPIG), Second Edition, * written by Pearu Peterson <pearu@cens.ioc.ee>. * See http://cens.ioc.ee/projects/f2py2e/ * Generation date: Thu Aug 17 12:03:28 2006 * $Revision:$ * $Date:...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/add.f
C SUBROUTINE ZADD(A,B,C,N) C DOUBLE COMPLEX A(*) DOUBLE COMPLEX B(*) DOUBLE COMPLEX C(*) INTEGER N DO 20 J = 1, N C(J) = A(J) + B(J) 20 CONTINUE END SUBROUTINE CADD(A,B,C,N) C COMPLEX A(*) COMPLEX B(*) COMPLEX C(*) INTEGER N DO 2...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/filter.f
SUBROUTINE DFILTER2D(A,B,M,N) C DOUBLE PRECISION A(M,N) DOUBLE PRECISION B(M,N) INTEGER N, M CF2PY INTENT(OUT) :: B CF2PY INTENT(HIDE) :: N CF2PY INTENT(HIDE) :: M DO 20 I = 2,M-1 DO 40 J=2,N-1 B(I,J) = A(I,J) + $ (A(I-1,J)+A(I+1,J) + $ ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/timeme
python2.4 -m timeit -s "import numpy as N; a=N.random.rand(100,200); import filter" "b=N.zeros_like(a); none = filter.DFILTER2D(a,b)"
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/f2py/filter.pyf
! -*- f90 -*- ! Note: the context of this file is case sensitive. python module filter ! in interface ! in :filter subroutine dfilter2d(a,b,m,n) ! in :filter:filter.f double precision dimension(m,n) :: a double precision dimension(m,n),intent(out),depend(m,n) :: b i...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/add.pyx
# -*- Mode: Python -*- Not really, but close enough cimport c_numpy from c_numpy cimport import_array, ndarray, npy_intp, npy_cdouble, \ npy_cfloat, NPY_DOUBLE, NPY_CDOUBLE, NPY_FLOAT, \ NPY_CFLOAT #We need to initialize NumPy import_array() def zadd(object ao, object bo): cdef ndarray c, a, b cde...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/setup.py
#!/usr/bin/env python from distutils.core import setup from distutils.extension import Extension import numpy # Define a pyrex-based extension module, using the generated sources if pyrex from Pyrex.Distutils import build_ext pyx_sources = ['add.pyx'] cmdclass = {'build_ext': build_ext} pyx_ext = Extension('add...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/add.c
/* Generated by Pyrex 0.9.4.1 on Thu Aug 17 02:11:41 2006 */ #include "Python.h" #include "structmember.h" #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif __PYX_EXTERN_C double pow(double, double); #include "nu...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/c_numpy.pxd
# :Author: Robert Kern # :Copyright: 2004, Enthought, Inc. # :License: BSD Style cdef extern from "numpy/arrayobject.h": cdef enum NPY_TYPES: NPY_BOOL NPY_BYTE NPY_UBYTE NPY_SHORT NPY_USHORT NPY_INT NPY_UINT NPY_LONG NPY_ULONG ...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/filter.pyx
# -*- Mode: Python -*- Not really, but close enough cimport c_numpy from c_numpy cimport import_array, ndarray, npy_intp,\ NPY_DOUBLE, NPY_CDOUBLE, NPY_FLOAT, \ NPY_CFLOAT, NPY_ALIGNED #We need to initialize NumPy import_array() def filter(object ao): cdef ndarray a, b cdef npy_intp i, j, M, N, S0...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/filter.c
/* Generated by Pyrex 0.9.4.1 on Thu Aug 17 02:11:42 2006 */ #include "Python.h" #include "structmember.h" #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif __PYX_EXTERN_C double pow(double, double); #include "nu...
0
public_repos/datetime/doc/numpybook/comparison
public_repos/datetime/doc/numpybook/comparison/pyrex/timeme
python2.4 -m timeit -s "import numpy as N; a=N.random.rand(100,200); import filter" "b = filter.filter(a)"
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/tip.xfig.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 1 3 0 1 1 1 50 -1 20 0.000 1 0.0000 3600 2400 660 660 3600 2400 4260 2400 1 3 0 1 7 7 51 -1 20 0.000 1 0.0000 3600 2400 720 720 3600 2400 4320 2400 4 0 7 50 -1 2 92 0.0000 4 960 390 3450 2850 i\001
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/note.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: note.fig %%Creator: fig2dev Version 3.2 Patchlevel 4 %%CreationDate: Wed Aug 24 03:03:42 2005 %%For: oliphant@den.local.net (Travis Oliphant) %%BoundingBox: 0 0 88 88 %%Magnification: 1.0000 %%EndComments /$F2psDict 200 dict def $F2psDict begin $F2psDict /mtrx matrix put /col-1 {0 setgr...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/warning.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: warning.fig %%Creator: fig2dev Version 3.2 Patchlevel 4 %%CreationDate: Wed Aug 24 00:00:52 2005 %%For: oliphant@den.local.net (Travis Oliphant) %%BoundingBox: 0 0 88 88 %%Magnification: 1.0000 %%EndComments /$F2psDict 200 dict def $F2psDict begin $F2psDict /mtrx matrix put /col-1 {0 se...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/tip.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 0 32 #e0f4ff 0 33 #000000 1 3 0 1 1 1 50 -1 20 0.000 1 0.0000 3600 2400 660 660 3600 2400 4260 2400 1 3 0 1 7 7 51 -1 20 0.000 1 0.0000 3600 2400 720 720 3600 2400 4320 2400 4 0 7 50 -1 2 110 0.0000 4 1140 465 3384 2940 i\001
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/tip.eps
%!PS-Adobe-2.0 EPSF-2.0 %%Title: tip.fig %%Creator: fig2dev Version 3.2 Patchlevel 4 %%CreationDate: Tue Aug 23 23:51:46 2005 %%For: oliphant@den.local.net (Travis Oliphant) %%BoundingBox: 0 0 88 88 %%Magnification: 1.0000 %%EndComments /$F2psDict 200 dict def $F2psDict begin $F2psDict /mtrx matrix put /col-1 {0 setgra...
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/warning.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 0 32 #e0f4ff 0 33 #ffd2d2 0 34 #fcf6dc 1 3 0 1 20 20 50 -1 20 0.000 1 0.0000 3600 2400 720 720 3600 2400 4320 2400 2 2 0 1 7 7 50 -1 20 0.000 0 0 -1 0 0 5 3096 2268 4104 2268 4104 2532 3096 2532 3096 2268
0
public_repos/datetime/doc/numpybook
public_repos/datetime/doc/numpybook/graphics/note.fig
#FIG 3.2 Landscape Center Inches Letter 100.00 Single -2 1200 2 0 32 #e0f4ff 0 33 #ffd2d2 0 34 #fcf6dc 2 3 0 1 31 31 52 -1 20 0.000 0 0 -1 0 0 5 3600 1680 2880 2400 3600 3120 4320 2400 3600 1680 2 3 0 5 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 3600 1860 3060 2400 3600 2940 4140 2400 3600 1860
0
public_repos/datetime/doc
public_repos/datetime/doc/cdoc/numpyfilter.py
#!/usr/bin/env python """ numpyfilter.py INPUTFILE Interpret C comments as ReStructuredText, and replace them by the HTML output. Also, add Doxygen /** and /**< syntax automatically where appropriate. """ import sys import re import os import textwrap import optparse import cPickle as pickle CACHE_FILE = 'build/rst-...
0
public_repos/datetime/doc
public_repos/datetime/doc/cdoc/README
cdoc ==== This is a simple Doxygen project for building Numpy C code documentation, with docstrings extracted from the C sources themselves. The understood syntax for documentation in the C source is /* * Some text in reStructuredText format */ int function_to_which_the_text_applies() { ...
0
public_repos/datetime/doc
public_repos/datetime/doc/cdoc/Makefile
all: build build: doxygen .PHONY: all build
0
public_repos/datetime/doc
public_repos/datetime/doc/cdoc/Doxyfile
# Doxyfile 1.6.3 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += v...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpy.scipy.org/content.rst
Numerical Python ================= .. toctree:: :maxdepth: 2 old_array_packages.rst license.rst
0
public_repos/datetime/doc
public_repos/datetime/doc/numpy.scipy.org/Makefile
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) ...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpy.scipy.org/old_array_packages.rst
==================== Older Array Packages ==================== It may take months for the large code base that uses Numeric and/or Numarray to transition to the new NumPy system. Links to the older packages are provided here. New users should start out with NumPy. Much of the documentation for Numeric and Numarra...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpy.scipy.org/conf.py
# -*- coding: utf-8 -*- # # Scipy.org documentation build configuration file # # 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 configuration values have a default; values that are comme...
0
public_repos/datetime/doc
public_repos/datetime/doc/numpy.scipy.org/license.rst
Numpy license ============= | Copyright © 2005-2010, NumPy Developers. | All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice,...
0
public_repos/datetime/doc/numpy.scipy.org/_theme
public_repos/datetime/doc/numpy.scipy.org/_theme/scipy/layout.html
{% extends "sphinxdoc/layout.html" %} {% block rootrellink %} {% endblock %} {% block relbar1 %} <div class="top-logo-header"> <a href="{{ pathto('index') }}"><img src="{{ pathto("_static/numpy_logo.png", 1) }}" border="0" alt="NumPy Homepage"/></a> </div> {% endblock %} {% block relbar2 %} {% endblock %} {# put th...
0
public_repos/datetime/doc/numpy.scipy.org/_theme
public_repos/datetime/doc/numpy.scipy.org/_theme/scipy/index.html
{% extends "!layout.html" %} {% set title = 'Scientific Computing Tools For Python' %} {% block body %} <table> <tr> <td style="border-style: none;"> <a href="http://new.scipy.org/download.html"> <img alt="Download" src="_static/images/download.png" title="Download" height="80" style="display: b...
0
public_repos/datetime/doc/numpy.scipy.org/_theme
public_repos/datetime/doc/numpy.scipy.org/_theme/scipy/theme.conf
[theme] inherit = sphinxdoc stylesheet = scipy.css pygments_css = friendly
0
public_repos/datetime/doc/numpy.scipy.org/_theme/scipy
public_repos/datetime/doc/numpy.scipy.org/_theme/scipy/static/scipy.css
@import "sphinxdoc.css"; /** * Spacing fixes */ div.body { width: 90%; } div.bodywrapper { width: 100%; } div.documentwrapper { border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; } div.body p, div.body dd, div.body li { line-height: 125%; } ul.simple { mar...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/README.txt
================== NumPy and Cython ================== This directory contains a small example of how to use NumPy and Cython together. While much work is planned for the Summer of 2008 as part of the Google Summer of Code project to improve integration between the two, even today Cython can be used effectively to w...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/setup.py
#!/usr/bin/env python """Install file for example on how to use Cython with Numpy. Note: Cython is the successor project to Pyrex. For more information, see http://cython.org. """ from distutils.core import setup from distutils.extension import Extension import numpy # We detect whether Cython is available, so tha...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/Makefile
# Simple makefile to quickly access handy build commands for Cython extension # code generation. Note that the actual code to produce the extension lives in # the setup.py file, this Makefile is just meant as a command # convenience/reminder while doing development. help: @echo "Numpy/Cython tasks. Available tasks:...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/c_numpy.pxd
# :Author: Travis Oliphant # API declaration section. This basically exposes the NumPy C API to # Pyrex/Cython programs. cdef extern from "numpy/arrayobject.h": cdef enum NPY_TYPES: NPY_BOOL NPY_BYTE NPY_UBYTE NPY_SHORT NPY_USHORT NPY_INT NPY_UINT ...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/c_python.pxd
# :Author: Robert Kern # :Copyright: 2004, Enthought, Inc. # :License: BSD Style cdef extern from "Python.h": # Not part of the Python API, but we might as well define it here. # Note that the exact type doesn't actually matter for Pyrex. ctypedef int size_t # Some type declarations we need ...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/run_test.py
#!/usr/bin/env python from numpyx import test test()
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/numpyx.pyx
# -*- Mode: Python -*- Not really, but close enough """Cython access to Numpy arrays - simple example. """ ############################################################################# # Load C APIs declared in .pxd files via cimport # # A 'cimport' is similar to a Python 'import' statement, but it provides access #...
0
public_repos/datetime/doc
public_repos/datetime/doc/cython/MANIFEST
numpyx.pyx setup.py
0
public_repos
public_repos/nltk_book_rus/README.md
nltk_book_rus ============= Russian translation of the NLTK book
0
public_repos
public_repos/engineering-class/README.md
# Lightning Bits: Engineering for Researchers This repository contains additional materials and show notes for the [Lightning Bits: Engineering for Researchers](https://www.pytorchlightning.ai/edu/engineering-class) video series. ## Ep 01: Notebooks vs Python Projects - [🍿 Watch Episode 1](https://youtu.be/JGno...
0
public_repos/engineering-class
public_repos/engineering-class/ep04-IDE/Ep04-ShowNotes.md
# Episode 4: Interactive/Integrated Developer Environments (IDEs) [[Watch Episode 4](https://www.youtube.com/watch?v=ISGNh4B1Z74)] It's 2022. There are lots of different tools available that make your life as a programmer, engineer, and researcher more convenient. This episode is focused on [PyCharm](https://www....
0
public_repos/engineering-class
public_repos/engineering-class/ep03-environments/Ep03-ShowNotes.md
# Episode 3: -- Environments [[Watch Episode 3](https://www.youtube.com/watch?v=WHWsABk4Ejk)] There are many ways we can set up a virtual environment: Virtualenv, Anaconda, miniconda, Mini-forge, and several others. Here, we are going to focus on miniconda and conda-forge. ## A note about Miniconda vs Mini-fo...
0
public_repos/engineering-class
public_repos/engineering-class/ep08-github-pr/Ep08-ShowNotes.md
# Episide 8: Creating a Pull Request on GitHub [Watch Episode 8](https://youtu.be/_0X_dljzr5E) ## Recap In the previous episodes, we covered the basic concepts and commands behind Git for version control. These episodes are not mandatory for creating projects on GitHub, but we recommend you check them out as well:...
0
public_repos/engineering-class
public_repos/engineering-class/ep10-oop/Ep10-ShowNotes.md
# Episode 10: Python Classes and Object-Oriented Programming [[Watch Episode 10](https://youtu.be/7wb2wUMrkkE)] The process of using classes and objects is called object-oriented programming. Fun fact: Python is a (heavily) object-oriented programming language! Technically, you could be programming in Python withou...
0
public_repos/engineering-class
public_repos/engineering-class/ep01-nbs-vs-projects/Ep01-ShowNotes.md
# Episode 1 Show Notes -- Notebooks vs Python Projects [[Watch Episode 1](https://www.youtube.com/watch?v=JGnoTN1OnWY)] ## 1. Using Jupyter Notebooks Excited to get started with using Jupyter notebooks? The most common application for working with Jupyter notebooks is JupyterLab. Jupyter notebooks are great scr...
0
public_repos/engineering-class/ep01-nbs-vs-projects
public_repos/engineering-class/ep01-nbs-vs-projects/project/README.md
This is an example project.
0
public_repos/engineering-class/ep01-nbs-vs-projects/project
public_repos/engineering-class/ep01-nbs-vs-projects/project/src/setup.py
import setuptools setuptools.setup( name='mypackage', version='0.1', author='sebastian', packages=setuptools.find_packages(), )
0
public_repos/engineering-class/ep01-nbs-vs-projects/project/src
public_repos/engineering-class/ep01-nbs-vs-projects/project/src/mypackage/mycode.py
def hello_world_func(): return 'hello world'
0
public_repos/engineering-class
public_repos/engineering-class/ep05-debugging/Ep05-ShowNotes.md
# Episode 5: Debugging Python Code [[Watch Episode 5](https://www.youtube.com/watch?v=mD-1OZvuVDU)] Learning and using a professional debugging tool is one of the key things you can do to boost your productivity. Sure, you can often get by with the goold old "`print()`" statement approach. However, instead of i...
0
public_repos/engineering-class
public_repos/engineering-class/ep06-git-basics/Ep06-ShowNotes.md
# Episode 6: Getting Started With Version Control Using Git [Watch Episode 6](https://youtu.be/HF6KAFDk9dY) ## What is Git? Version control (also known as source control) allows us to track code changes and work and collaborate on code projects effectively. In this episode, we learn the basics of Git, the version ...
0
public_repos/engineering-class
public_repos/engineering-class/ep02-terminal/Ep02-ShowNotes.md
# Episode 2: The Terminal [[Watch Episode 2](https://www.youtube.com/watch?v=KhQKqaxU7BQ)] ## Opening the Terminal If you are on a Mac, you can find the terminal in the Applications/Utilities folder: <img src="Ep02-ShowNotes_figures/terminal-app.png" width=800> On a Mac, our favorite shortcut to open the Termi...
0
public_repos/engineering-class
public_repos/engineering-class/ep09-github-collab/Ep09-ShowNotes.md
# Episode 9: Collaborating with Pull Requests using GitHub [[Watch Episode 9](https://youtu.be/7wb2wUMrkkE)] ## Recap In the previous episode ([Ep 08](../ep08-github-pr/Ep08-ShowNotes)), we learned how to create a pull request and ended on a cliffhanger. ## Using The GitHub Interface Once a Pull Request has ...
0
public_repos/engineering-class
public_repos/engineering-class/ep07-git-branching/Ep07-ShowNotes.md
# Episode 7: Managing Code Projects with Git Branching [Watch Episode 7](https://youtu.be/tzJDZY1x31I) ## Recap In the previous episode, we covered the basic concepts and commands behind Git for version control. If you haven't watched the [previous episode](../ep06-git-basics/Ep06-ShowNotes.md), we recommend check...
0
public_repos
public_repos/pandas-user-surveys/environment.yml
name: pandas-user-surveys dependencies: - pandas - seaborn - matplotlib
0
public_repos
public_repos/pandas-user-surveys/Makefile
2019.md: 2019.ipynb template.tpl jupyter nbconvert --to=markdown $< --template=template.tpl rsync -r 2019_files/ ../pandas-blog/content/images/2019_files/ sed -i 's/2019_files/{static}\/images\/2019_files/g' 2019.md cp 2019.md ../pandas-blog/content/2019-user-survey.md
0
public_repos
public_repos/pandas-user-surveys/template.tpl
{% extends 'markdown.tpl'%} {% block header -%} Title: 2019 Pandas User Survey Date: 2019-08-22 <style type="text/css"> table td { background: none; } table tr.even td { background: none; } table { text-shadow: none; } </style> {% endblock header %} {% block input_group %} {% endblock input_group %}
0
public_repos
public_repos/pandas-user-surveys/2019.ipynb
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline plt.rcParams['figure.dpi'] = 150 df = pd.read_csv("data/2019.csv.gz", parse_dates=['Timestamp'])order = [ 'Less than 3 months', '3 months - 1 year', '1 - 2 years', '3 - 5 years', '5+ years', ] sns.countp...
0
public_repos
public_repos/pandas-user-surveys/README.md
# Pandas User Surveys This repository contains the results from pandas' user surveys. [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pandas-dev/pandas-user-surveys/master)
0
public_repos
public_repos/nltk_teach/README.md
nltk_teach ========== Miscellaneous materials for teaching NLP using NLTK
0
public_repos
public_repos/nltk_teach/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined b...
0
public_repos/nltk_teach/examples
public_repos/nltk_teach/examples/grammars/Makefile
# NLTK: Documentation Makefile # # Copyright (C) 2001-2014 NLTK Project # Author: Ewan Klein <ewan@inf.ed.ac.uk> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT DATADIR = ../../../nltk_data PUBLISH = $(DATADIR)/packages/grammars PACKAGE_DIRS = book_grammars sample_grammars #basque_grammars spani...
0