├── .coveragerc ├── .gdbinit ├── .gitattributes ├── .gitignore ├── .gitmodules ├── .travis.yml ├── HACKING.md ├── LICENSE ├── MANIFEST.in ├── README ├── README.md ├── all-crashes ├── all-inference-quality ├── all.cfg ├── backend ├── lite │ ├── __init__.py │ ├── address.py │ ├── basic_sps.py │ ├── builtin.py │ ├── cmvn.py │ ├── conditionals.py │ ├── consistency.py │ ├── continuous.py │ ├── covariance.py │ ├── crp.py │ ├── csp.py │ ├── detach.py │ ├── dirichlet.py │ ├── discrete.py │ ├── ensure_numpy.py │ ├── env.py │ ├── eval_sps.py │ ├── exception.py │ ├── exp.py │ ├── foreign.py │ ├── function.py │ ├── functional.py │ ├── gp.py │ ├── hmm.py │ ├── infer │ │ ├── __init__.py │ │ ├── dispatch.py │ │ ├── draw_scaffold.py │ │ ├── egibbs.py │ │ ├── hmc.py │ │ ├── map_gradient.py │ │ ├── meanfield.py │ │ ├── mh.py │ │ ├── pgibbs.py │ │ ├── rejection.py │ │ ├── slice_sample.py │ │ └── subsampled_mh.py │ ├── inference_sps.py │ ├── lkernel.py │ ├── mlens.py │ ├── msp.py │ ├── mvnormal.py │ ├── node.py │ ├── omegadb.py │ ├── orderedset.py │ ├── parallel_map.py │ ├── particle.py │ ├── psp.py │ ├── range_tree.py │ ├── records.py │ ├── regen.py │ ├── request.py │ ├── scaffold.py │ ├── scope.py │ ├── serialize.py │ ├── smap.py │ ├── sp.py │ ├── sp_help.py │ ├── sp_registry.py │ ├── sp_use.py │ ├── trace.py │ ├── types.py │ ├── typing.py │ ├── utils.py │ ├── value.py │ ├── vectors.py │ ├── venmath.py │ └── wttree.py ├── new_cxx │ ├── .gitignore │ ├── CMakeLists.txt │ ├── __init__.py │ ├── cmake │ │ └── Modules │ │ │ └── FindGSL.cmake │ ├── inc │ │ ├── Eigen │ │ │ ├── Array │ │ │ ├── CMakeLists.txt │ │ │ ├── Cholesky │ │ │ ├── CholmodSupport │ │ │ ├── Core │ │ │ ├── Dense │ │ │ ├── Eigen │ │ │ ├── Eigen2Support │ │ │ ├── Eigenvalues │ │ │ ├── Geometry │ │ │ ├── Householder │ │ │ ├── IterativeLinearSolvers │ │ │ ├── Jacobi │ │ │ ├── LU │ │ │ ├── LeastSquares │ │ │ ├── MetisSupport │ │ │ ├── OrderingMethods │ │ │ ├── PaStiXSupport │ │ │ ├── PardisoSupport │ │ │ ├── QR │ │ │ ├── QtAlignedMalloc │ │ │ ├── SPQRSupport │ │ │ ├── SVD │ │ │ ├── Sparse │ │ │ ├── SparseCholesky │ │ │ ├── SparseCore │ │ │ ├── SparseLU │ │ │ ├── SparseQR │ │ │ ├── StdDeque │ │ │ ├── StdList │ │ │ ├── StdVector │ │ │ ├── SuperLUSupport │ │ │ ├── UmfPackSupport │ │ │ └── src │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Cholesky │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── LDLT.h │ │ │ │ ├── LLT.h │ │ │ │ └── LLT_MKL.h │ │ │ │ ├── CholmodSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── CholmodSupport.h │ │ │ │ ├── Core │ │ │ │ ├── Array.h │ │ │ │ ├── ArrayBase.h │ │ │ │ ├── ArrayWrapper.h │ │ │ │ ├── Assign.h │ │ │ │ ├── Assign_MKL.h │ │ │ │ ├── BandMatrix.h │ │ │ │ ├── Block.h │ │ │ │ ├── BooleanRedux.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── CommaInitializer.h │ │ │ │ ├── CoreIterators.h │ │ │ │ ├── CwiseBinaryOp.h │ │ │ │ ├── CwiseNullaryOp.h │ │ │ │ ├── CwiseUnaryOp.h │ │ │ │ ├── CwiseUnaryView.h │ │ │ │ ├── DenseBase.h │ │ │ │ ├── DenseCoeffsBase.h │ │ │ │ ├── DenseStorage.h │ │ │ │ ├── Diagonal.h │ │ │ │ ├── DiagonalMatrix.h │ │ │ │ ├── DiagonalProduct.h │ │ │ │ ├── Dot.h │ │ │ │ ├── EigenBase.h │ │ │ │ ├── Flagged.h │ │ │ │ ├── ForceAlignedAccess.h │ │ │ │ ├── Functors.h │ │ │ │ ├── Fuzzy.h │ │ │ │ ├── GeneralProduct.h │ │ │ │ ├── GenericPacketMath.h │ │ │ │ ├── GlobalFunctions.h │ │ │ │ ├── IO.h │ │ │ │ ├── Map.h │ │ │ │ ├── MapBase.h │ │ │ │ ├── MathFunctions.h │ │ │ │ ├── Matrix.h │ │ │ │ ├── MatrixBase.h │ │ │ │ ├── NestByValue.h │ │ │ │ ├── NoAlias.h │ │ │ │ ├── NumTraits.h │ │ │ │ ├── PermutationMatrix.h │ │ │ │ ├── PlainObjectBase.h │ │ │ │ ├── ProductBase.h │ │ │ │ ├── Random.h │ │ │ │ ├── Redux.h │ │ │ │ ├── Ref.h │ │ │ │ ├── Replicate.h │ │ │ │ ├── ReturnByValue.h │ │ │ │ ├── Reverse.h │ │ │ │ ├── Select.h │ │ │ │ ├── SelfAdjointView.h │ │ │ │ ├── SelfCwiseBinaryOp.h │ │ │ │ ├── SolveTriangular.h │ │ │ │ ├── StableNorm.h │ │ │ │ ├── Stride.h │ │ │ │ ├── Swap.h │ │ │ │ ├── Transpose.h │ │ │ │ ├── Transpositions.h │ │ │ │ ├── TriangularMatrix.h │ │ │ │ ├── VectorBlock.h │ │ │ │ ├── VectorwiseOp.h │ │ │ │ ├── Visitor.h │ │ │ │ ├── arch │ │ │ │ │ ├── AltiVec │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ ├── Complex.h │ │ │ │ │ │ └── PacketMath.h │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── Default │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ └── Settings.h │ │ │ │ │ ├── NEON │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ ├── Complex.h │ │ │ │ │ │ └── PacketMath.h │ │ │ │ │ └── SSE │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ ├── Complex.h │ │ │ │ │ │ ├── MathFunctions.h │ │ │ │ │ │ └── PacketMath.h │ │ │ │ ├── products │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── CoeffBasedProduct.h │ │ │ │ │ ├── GeneralBlockPanelKernel.h │ │ │ │ │ ├── GeneralMatrixMatrix.h │ │ │ │ │ ├── GeneralMatrixMatrixTriangular.h │ │ │ │ │ ├── GeneralMatrixMatrixTriangular_MKL.h │ │ │ │ │ ├── GeneralMatrixMatrix_MKL.h │ │ │ │ │ ├── GeneralMatrixVector.h │ │ │ │ │ ├── GeneralMatrixVector_MKL.h │ │ │ │ │ ├── Parallelizer.h │ │ │ │ │ ├── SelfadjointMatrixMatrix.h │ │ │ │ │ ├── SelfadjointMatrixMatrix_MKL.h │ │ │ │ │ ├── SelfadjointMatrixVector.h │ │ │ │ │ ├── SelfadjointMatrixVector_MKL.h │ │ │ │ │ ├── SelfadjointProduct.h │ │ │ │ │ ├── SelfadjointRank2Update.h │ │ │ │ │ ├── TriangularMatrixMatrix.h │ │ │ │ │ ├── TriangularMatrixMatrix_MKL.h │ │ │ │ │ ├── TriangularMatrixVector.h │ │ │ │ │ ├── TriangularMatrixVector_MKL.h │ │ │ │ │ ├── TriangularSolverMatrix.h │ │ │ │ │ ├── TriangularSolverMatrix_MKL.h │ │ │ │ │ └── TriangularSolverVector.h │ │ │ │ └── util │ │ │ │ │ ├── BlasUtil.h │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── Constants.h │ │ │ │ │ ├── DisableStupidWarnings.h │ │ │ │ │ ├── ForwardDeclarations.h │ │ │ │ │ ├── MKL_support.h │ │ │ │ │ ├── Macros.h │ │ │ │ │ ├── Memory.h │ │ │ │ │ ├── Meta.h │ │ │ │ │ ├── NonMPL2.h │ │ │ │ │ ├── ReenableStupidWarnings.h │ │ │ │ │ ├── StaticAssert.h │ │ │ │ │ └── XprHelper.h │ │ │ │ ├── Eigen2Support │ │ │ │ ├── Block.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Cwise.h │ │ │ │ ├── CwiseOperators.h │ │ │ │ ├── Geometry │ │ │ │ │ ├── AlignedBox.h │ │ │ │ │ ├── All.h │ │ │ │ │ ├── AngleAxis.h │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── Hyperplane.h │ │ │ │ │ ├── ParametrizedLine.h │ │ │ │ │ ├── Quaternion.h │ │ │ │ │ ├── Rotation2D.h │ │ │ │ │ ├── RotationBase.h │ │ │ │ │ ├── Scaling.h │ │ │ │ │ ├── Transform.h │ │ │ │ │ └── Translation.h │ │ │ │ ├── LU.h │ │ │ │ ├── Lazy.h │ │ │ │ ├── LeastSquares.h │ │ │ │ ├── Macros.h │ │ │ │ ├── MathFunctions.h │ │ │ │ ├── Memory.h │ │ │ │ ├── Meta.h │ │ │ │ ├── Minor.h │ │ │ │ ├── QR.h │ │ │ │ ├── SVD.h │ │ │ │ ├── TriangularSolver.h │ │ │ │ └── VectorBlock.h │ │ │ │ ├── Eigenvalues │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── ComplexEigenSolver.h │ │ │ │ ├── ComplexSchur.h │ │ │ │ ├── ComplexSchur_MKL.h │ │ │ │ ├── EigenSolver.h │ │ │ │ ├── GeneralizedEigenSolver.h │ │ │ │ ├── GeneralizedSelfAdjointEigenSolver.h │ │ │ │ ├── HessenbergDecomposition.h │ │ │ │ ├── MatrixBaseEigenvalues.h │ │ │ │ ├── RealQZ.h │ │ │ │ ├── RealSchur.h │ │ │ │ ├── RealSchur_MKL.h │ │ │ │ ├── SelfAdjointEigenSolver.h │ │ │ │ ├── SelfAdjointEigenSolver_MKL.h │ │ │ │ └── Tridiagonalization.h │ │ │ │ ├── Geometry │ │ │ │ ├── AlignedBox.h │ │ │ │ ├── AngleAxis.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── EulerAngles.h │ │ │ │ ├── Homogeneous.h │ │ │ │ ├── Hyperplane.h │ │ │ │ ├── OrthoMethods.h │ │ │ │ ├── ParametrizedLine.h │ │ │ │ ├── Quaternion.h │ │ │ │ ├── Rotation2D.h │ │ │ │ ├── RotationBase.h │ │ │ │ ├── Scaling.h │ │ │ │ ├── Transform.h │ │ │ │ ├── Translation.h │ │ │ │ ├── Umeyama.h │ │ │ │ └── arch │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── Geometry_SSE.h │ │ │ │ ├── Householder │ │ │ │ ├── BlockHouseholder.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Householder.h │ │ │ │ └── HouseholderSequence.h │ │ │ │ ├── IterativeLinearSolvers │ │ │ │ ├── BasicPreconditioners.h │ │ │ │ ├── BiCGSTAB.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── ConjugateGradient.h │ │ │ │ ├── IncompleteLUT.h │ │ │ │ └── IterativeSolverBase.h │ │ │ │ ├── Jacobi │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── Jacobi.h │ │ │ │ ├── LU │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Determinant.h │ │ │ │ ├── FullPivLU.h │ │ │ │ ├── Inverse.h │ │ │ │ ├── PartialPivLU.h │ │ │ │ ├── PartialPivLU_MKL.h │ │ │ │ └── arch │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ └── Inverse_SSE.h │ │ │ │ ├── MetisSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── MetisSupport.h │ │ │ │ ├── OrderingMethods │ │ │ │ ├── Amd.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Eigen_Colamd.h │ │ │ │ └── Ordering.h │ │ │ │ ├── PaStiXSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── PaStiXSupport.h │ │ │ │ ├── PardisoSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── PardisoSupport.h │ │ │ │ ├── QR │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── ColPivHouseholderQR.h │ │ │ │ ├── ColPivHouseholderQR_MKL.h │ │ │ │ ├── FullPivHouseholderQR.h │ │ │ │ ├── HouseholderQR.h │ │ │ │ └── HouseholderQR_MKL.h │ │ │ │ ├── SPQRSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── SuiteSparseQRSupport.h │ │ │ │ ├── SVD │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── JacobiSVD.h │ │ │ │ ├── JacobiSVD_MKL.h │ │ │ │ └── UpperBidiagonalization.h │ │ │ │ ├── SparseCholesky │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── SimplicialCholesky.h │ │ │ │ └── SimplicialCholesky_impl.h │ │ │ │ ├── SparseCore │ │ │ │ ├── AmbiVector.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── CompressedStorage.h │ │ │ │ ├── ConservativeSparseSparseProduct.h │ │ │ │ ├── MappedSparseMatrix.h │ │ │ │ ├── SparseBlock.h │ │ │ │ ├── SparseColEtree.h │ │ │ │ ├── SparseCwiseBinaryOp.h │ │ │ │ ├── SparseCwiseUnaryOp.h │ │ │ │ ├── SparseDenseProduct.h │ │ │ │ ├── SparseDiagonalProduct.h │ │ │ │ ├── SparseDot.h │ │ │ │ ├── SparseFuzzy.h │ │ │ │ ├── SparseMatrix.h │ │ │ │ ├── SparseMatrixBase.h │ │ │ │ ├── SparsePermutation.h │ │ │ │ ├── SparseProduct.h │ │ │ │ ├── SparseRedux.h │ │ │ │ ├── SparseSelfAdjointView.h │ │ │ │ ├── SparseSparseProductWithPruning.h │ │ │ │ ├── SparseTranspose.h │ │ │ │ ├── SparseTriangularView.h │ │ │ │ ├── SparseUtil.h │ │ │ │ ├── SparseVector.h │ │ │ │ ├── SparseView.h │ │ │ │ └── TriangularSolver.h │ │ │ │ ├── SparseLU │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── SparseLU.h │ │ │ │ ├── SparseLUImpl.h │ │ │ │ ├── SparseLU_Memory.h │ │ │ │ ├── SparseLU_Structs.h │ │ │ │ ├── SparseLU_SupernodalMatrix.h │ │ │ │ ├── SparseLU_Utils.h │ │ │ │ ├── SparseLU_column_bmod.h │ │ │ │ ├── SparseLU_column_dfs.h │ │ │ │ ├── SparseLU_copy_to_ucol.h │ │ │ │ ├── SparseLU_gemm_kernel.h │ │ │ │ ├── SparseLU_heap_relax_snode.h │ │ │ │ ├── SparseLU_kernel_bmod.h │ │ │ │ ├── SparseLU_panel_bmod.h │ │ │ │ ├── SparseLU_panel_dfs.h │ │ │ │ ├── SparseLU_pivotL.h │ │ │ │ ├── SparseLU_pruneL.h │ │ │ │ └── SparseLU_relax_snode.h │ │ │ │ ├── SparseQR │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── SparseQR.h │ │ │ │ ├── StlSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── StdDeque.h │ │ │ │ ├── StdList.h │ │ │ │ ├── StdVector.h │ │ │ │ └── details.h │ │ │ │ ├── SuperLUSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── SuperLUSupport.h │ │ │ │ ├── UmfPackSupport │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── UmfPackSupport.h │ │ │ │ ├── misc │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Image.h │ │ │ │ ├── Kernel.h │ │ │ │ ├── Solve.h │ │ │ │ ├── SparseSolve.h │ │ │ │ └── blas.h │ │ │ │ └── plugins │ │ │ │ ├── ArrayCwiseBinaryOps.h │ │ │ │ ├── ArrayCwiseUnaryOps.h │ │ │ │ ├── BlockMethods.h │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── CommonCwiseBinaryOps.h │ │ │ │ ├── CommonCwiseUnaryOps.h │ │ │ │ ├── MatrixCwiseBinaryOps.h │ │ │ │ └── MatrixCwiseUnaryOps.h │ │ ├── args.h │ │ ├── builtin.h │ │ ├── concrete_trace.h │ │ ├── consistency.h │ │ ├── db.h │ │ ├── detach.h │ │ ├── env.h │ │ ├── expressions.h │ │ ├── gkernel.h │ │ ├── gkernels │ │ │ ├── egibbs.h │ │ │ ├── func_mh.h │ │ │ ├── hmc.h │ │ │ ├── mh.h │ │ │ ├── pgibbs.h │ │ │ ├── rejection.h │ │ │ └── slice.h │ │ ├── indexer.h │ │ ├── lkernel.h │ │ ├── mixmh.h │ │ ├── node.h │ │ ├── particle.h │ │ ├── pmap.hpp │ │ ├── pset.hpp │ │ ├── psp.h │ │ ├── pytrace.h │ │ ├── pyutils.h │ │ ├── regen.h │ │ ├── rng.h │ │ ├── scaffold.h │ │ ├── serialize.h │ │ ├── smap.h │ │ ├── sp.h │ │ ├── sprecord.h │ │ ├── sps │ │ │ ├── betabernoulli.h │ │ │ ├── conditional.h │ │ │ ├── continuous.h │ │ │ ├── crp.h │ │ │ ├── csp.h │ │ │ ├── deterministic.h │ │ │ ├── dir_mult.h │ │ │ ├── discrete.h │ │ │ ├── dstructure.h │ │ │ ├── eval.h │ │ │ ├── hmm.h │ │ │ ├── lite.h │ │ │ ├── matrix.h │ │ │ ├── misc.h │ │ │ ├── msp.h │ │ │ ├── mvn.h │ │ │ ├── numerical_helpers.h │ │ │ ├── scope.h │ │ │ └── silva_mvn.h │ │ ├── srs.h │ │ ├── stop-and-copy.h │ │ ├── trace.h │ │ ├── types.h │ │ ├── utils.h │ │ ├── value.h │ │ ├── values.h │ │ └── wttree.hpp │ ├── make_darwin.sh │ ├── src │ │ ├── args.cxx │ │ ├── builtin.cxx │ │ ├── concrete_trace.cxx │ │ ├── consistency.cxx │ │ ├── db.cxx │ │ ├── detach.cxx │ │ ├── env.cxx │ │ ├── expressions.cxx │ │ ├── gkernel.cxx │ │ ├── gkernels │ │ │ ├── egibbs.cxx │ │ │ ├── func_mh.cxx │ │ │ ├── hmc.cxx │ │ │ ├── mh.cxx │ │ │ ├── pgibbs.cxx │ │ │ ├── rejection.cxx │ │ │ └── slice.cxx │ │ ├── indexer.cxx │ │ ├── lkernel.cxx │ │ ├── mixmh.cxx │ │ ├── node.cxx │ │ ├── particle.cxx │ │ ├── psp.cxx │ │ ├── pytrace.cxx │ │ ├── pyutils.cxx │ │ ├── regen.cxx │ │ ├── scaffold.cxx │ │ ├── serialize.cxx │ │ ├── sp.cxx │ │ ├── sprecord.cxx │ │ ├── sps │ │ │ ├── betabernoulli.cxx │ │ │ ├── conditional.cxx │ │ │ ├── continuous.cxx │ │ │ ├── crp.cxx │ │ │ ├── csp.cxx │ │ │ ├── deterministic.cxx │ │ │ ├── dir_mult.cxx │ │ │ ├── discrete.cxx │ │ │ ├── dstructure.cxx │ │ │ ├── eval.cxx │ │ │ ├── hmm.cxx │ │ │ ├── lite.cxx │ │ │ ├── matrix.cxx │ │ │ ├── misc.cxx │ │ │ ├── msp.cxx │ │ │ ├── mvn.cxx │ │ │ ├── numerical_helpers.cxx │ │ │ ├── scope.cxx │ │ │ └── silva_mvn.cxx │ │ ├── stop_and_copy.cxx │ │ ├── test_pmap.cxx │ │ ├── trace.cxx │ │ ├── utils.cxx │ │ ├── value.cxx │ │ └── values.cxx │ ├── trace.py │ └── valgrind-python.supp └── untraced │ ├── __init__.py │ ├── evaluator.py │ ├── node.py │ ├── trace.py │ └── trace_search.py ├── base.cfg ├── benchmarks ├── .gitignore ├── Makefile ├── normal-normal-chain.cxx └── yep.py ├── check.sh ├── conda ├── meta.yaml └── upload.sh ├── crashes-base.cfg ├── crashes.cfg ├── demos └── jsripl │ ├── README.md │ ├── cluster_crp_mixture.html │ ├── cmvn_crp_mixture.html │ ├── cmvn_crp_mixture.js │ ├── common-scripts.js │ ├── demo │ ├── gp_curve_fitting.html │ ├── gp_fitting.js │ ├── gp_server.py │ ├── graph_curve_fitting.html │ ├── jripl.js │ ├── select_venture_server.html │ ├── template.txt │ ├── utils.js │ ├── vendor │ ├── Base.js │ ├── jquery.cookie.js │ ├── numeric-1.2.6.min.js │ ├── raphael-min.js │ └── spin.min.js │ ├── vis_crp_mixture.js │ └── vis_curve_fitting.js ├── doc ├── axch-dev-thrust-menu.org ├── axch-rax-project-list.org ├── class_diagram.fig ├── class_diagram.pdf ├── deep-freeze.md ├── design-for-parallelism-across-traces.md ├── design-for-puma-calling-lite-sps.md ├── design-for-venture-tutorial.md ├── error-reporting.md ├── foreign-interface.md ├── impossibility.md ├── intuiting-kl │ ├── .gitignore │ ├── Makefile │ └── intuiting-kl.tex ├── modeling-state.md ├── mvnormal │ ├── .gitignore │ ├── Makefile │ └── mvnormal.tex ├── on-approximating-kl-divergence.md ├── on-assessment-and-absorbing.md ├── on-comparing-discrete-distributions.md ├── on-densities-and-base-measures.md ├── on-geweke-testing.txt ├── on-latents.md ├── on-log-density-of-counts.md ├── on-non-probability-measures.md ├── on-sps-and-node-kernels.md ├── on-teaching-exchangeable-coupling.txt ├── on-testing.md ├── on-the-indian-gpa-problem.md ├── sp-math │ ├── .gitignore │ ├── sp-math.bib │ └── sp-math.tex ├── stale-mac-install-instructions.md ├── towards-operating-on-sufficient-statistics.md ├── type-system.md └── venture-value-design-notes.md ├── docker └── ubuntu1604 ├── examples ├── .gitignore ├── brownian │ ├── .gitignore │ ├── README │ ├── data-gen.py │ ├── drawing-plugin.py │ ├── film.vnt │ ├── graph.py │ ├── graph.vnt │ ├── measurement_plugin.py │ ├── model.py │ ├── model.vnt │ ├── pic.vnt │ └── plot.vnt ├── crosscat.vnt ├── crp_2d_demo.py ├── dpmm │ ├── .gitignore │ ├── Makefile │ ├── README │ ├── dpmm_example.vnts │ ├── extensions.py │ └── render_dpmm.py ├── hmm.vnt ├── hmm_plugin.py └── lda.vnt ├── external ├── README ├── ggplot │ ├── COPYING │ ├── README │ └── dist │ │ ├── PKG-INFO │ │ ├── README.rst │ │ ├── ggplot.egg-info │ │ ├── PKG-INFO │ │ ├── SOURCES.txt │ │ ├── dependency_links.txt │ │ ├── not-zip-safe │ │ ├── requires.txt │ │ └── top_level.txt │ │ ├── ggplot │ │ ├── __init__.py │ │ ├── components │ │ │ ├── __init__.py │ │ │ ├── aes.py │ │ │ ├── alphas.py │ │ │ ├── colors.py │ │ │ ├── husl.py │ │ │ ├── legend.py │ │ │ ├── linetypes.py │ │ │ ├── loess.py │ │ │ ├── palettes.py │ │ │ ├── shapes.py │ │ │ ├── size.py │ │ │ ├── smoothers.py │ │ │ └── xkcd_rgb.py │ │ ├── coords │ │ │ ├── __init__.py │ │ │ └── coord_equal.py │ │ ├── exampledata │ │ │ ├── __init__.py │ │ │ ├── diamonds.csv │ │ │ ├── meat.csv │ │ │ ├── movies.csv │ │ │ ├── mtcars.csv │ │ │ └── pageviews.csv │ │ ├── geoms │ │ │ ├── __init__.py │ │ │ ├── bird.png │ │ │ ├── chart_components.py │ │ │ ├── facet_grid.py │ │ │ ├── facet_wrap.py │ │ │ ├── geom.py │ │ │ ├── geom_abline.py │ │ │ ├── geom_area.py │ │ │ ├── geom_bar.py │ │ │ ├── geom_blank.py │ │ │ ├── geom_boxplot.py │ │ │ ├── geom_density.py │ │ │ ├── geom_dotplot.py │ │ │ ├── geom_histogram.py │ │ │ ├── geom_hline.py │ │ │ ├── geom_jitter.py │ │ │ ├── geom_line.py │ │ │ ├── geom_linerange.py │ │ │ ├── geom_now_its_art.py │ │ │ ├── geom_path.py │ │ │ ├── geom_point.py │ │ │ ├── geom_pointrange.py │ │ │ ├── geom_rect.py │ │ │ ├── geom_smooth.py │ │ │ ├── geom_step.py │ │ │ ├── geom_text.py │ │ │ ├── geom_tile.py │ │ │ └── geom_vline.py │ │ ├── ggplot.py │ │ ├── qplot.py │ │ ├── scales │ │ │ ├── __init__.py │ │ │ ├── scale.py │ │ │ ├── scale_axis.py │ │ │ ├── scale_colour_brewer.py │ │ │ ├── scale_colour_gradient.py │ │ │ ├── scale_colour_manual.py │ │ │ ├── scale_facet.py │ │ │ ├── scale_log.py │ │ │ ├── scale_reverse.py │ │ │ ├── scale_x_continuous.py │ │ │ ├── scale_x_date.py │ │ │ ├── scale_x_discrete.py │ │ │ ├── scale_y_continuous.py │ │ │ ├── scale_y_discrete.py │ │ │ └── utils.py │ │ ├── stats │ │ │ ├── __init__.py │ │ │ ├── stat.py │ │ │ ├── stat_abline.py │ │ │ ├── stat_bar.py │ │ │ ├── stat_bin.py │ │ │ ├── stat_bin2d.py │ │ │ ├── stat_density.py │ │ │ ├── stat_function.py │ │ │ ├── stat_hline.py │ │ │ ├── stat_identity.py │ │ │ ├── stat_smooth.py │ │ │ ├── stat_summary.py │ │ │ └── stat_vline.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── baseline_images │ │ │ │ ├── test_basic │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── diamonds_big.png │ │ │ │ │ ├── diamonds_facet.png │ │ │ │ │ ├── diamonds_small.png │ │ │ │ │ ├── factor_complicated.png │ │ │ │ │ ├── factor_geom_bar.png │ │ │ │ │ ├── factor_geom_line.png │ │ │ │ │ ├── factor_geom_point.png │ │ │ │ │ ├── factor_geom_point_line.png │ │ │ │ │ ├── geom_area.png │ │ │ │ │ ├── geom_area_facet.png │ │ │ │ │ ├── geom_density.png │ │ │ │ │ ├── geom_density_alpha.png │ │ │ │ │ ├── geom_density_facet.png │ │ │ │ │ ├── geom_hist.png │ │ │ │ │ ├── geom_hist_title.png │ │ │ │ │ ├── geom_line_facet.png │ │ │ │ │ ├── geom_point.png │ │ │ │ │ ├── geom_point_vline.png │ │ │ │ │ ├── geom_rect_inv.png │ │ │ │ │ ├── geom_text.png │ │ │ │ │ ├── labs.png │ │ │ │ │ ├── partial_limits.png │ │ │ │ │ ├── partial_limits_facet.png │ │ │ │ │ ├── point_smooth_se.png │ │ │ │ │ ├── scale1.png │ │ │ │ │ ├── scale_color_brewer.png │ │ │ │ │ ├── scale_date.png │ │ │ │ │ ├── smooth_se.png │ │ │ │ │ ├── stat_bin2d.png │ │ │ │ │ ├── stat_smooth.png │ │ │ │ │ └── ylim.png │ │ │ │ ├── test_element_text │ │ │ │ │ ├── all_text.png │ │ │ │ │ ├── axis_text.png │ │ │ │ │ ├── axis_title.png │ │ │ │ │ ├── axis_title_text.png │ │ │ │ │ ├── legend_title.png │ │ │ │ │ └── plot_title.png │ │ │ │ ├── test_faceting │ │ │ │ │ ├── faceting_grid_continous.png │ │ │ │ │ └── faceting_wrap_continous.png │ │ │ │ ├── test_geom │ │ │ │ │ └── geom_with_data.png │ │ │ │ ├── test_geom_bar │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── color_hist.png │ │ │ │ │ ├── facet_colors.png │ │ │ │ │ ├── faceting_grid_discrete.png │ │ │ │ │ ├── faceting_wrap_discrete.png │ │ │ │ │ ├── geom_hist_date.png │ │ │ │ │ ├── labels_auto.png │ │ │ │ │ └── labels_manual.png │ │ │ │ ├── test_geom_dotplot │ │ │ │ │ ├── geom_dotplot_bar-expected.png │ │ │ │ │ ├── geom_dotplot_bar.png │ │ │ │ │ ├── geom_dotplot_hist-expected.png │ │ │ │ │ └── geom_dotplot_hist.png │ │ │ │ ├── test_geom_linerange │ │ │ │ │ └── geom_linerange.png │ │ │ │ ├── test_geom_lines │ │ │ │ │ ├── geom_abline.png │ │ │ │ │ ├── geom_abline_functions.png │ │ │ │ │ ├── geom_abline_mapped.png │ │ │ │ │ ├── geom_abline_multiple.png │ │ │ │ │ ├── geom_festival_of_lines.png │ │ │ │ │ ├── geom_hline.png │ │ │ │ │ ├── geom_hline_function.png │ │ │ │ │ ├── geom_hline_mapped.png │ │ │ │ │ ├── geom_hline_multiple.png │ │ │ │ │ ├── geom_vline.png │ │ │ │ │ ├── geom_vline_function.png │ │ │ │ │ ├── geom_vline_mapped.png │ │ │ │ │ └── geom_vline_multiple.png │ │ │ │ ├── test_geom_pointrange │ │ │ │ │ └── geom_pointrange.png │ │ │ │ ├── test_geom_rect │ │ │ │ │ ├── geom_rect.png │ │ │ │ │ └── geom_rect_with_point.png │ │ │ │ ├── test_ggplot_internals │ │ │ │ │ ├── axis_changes_to_all.png │ │ │ │ │ └── geom_point_marker.png │ │ │ │ ├── test_legend │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── legend_alpha.png │ │ │ │ │ ├── legend_alpha_rect.png │ │ │ │ │ ├── legend_linetype.png │ │ │ │ │ └── legend_shape_alpha.png │ │ │ │ ├── test_readme_examples │ │ │ │ │ ├── density_with_fill.png │ │ │ │ │ ├── diamonds_carat_hist.png │ │ │ │ │ ├── diamonds_geom_point_alpha.png │ │ │ │ │ ├── geom_density_example.png │ │ │ │ │ ├── ggplot_demo_beef.png │ │ │ │ │ ├── ggplot_meat.png │ │ │ │ │ └── mtcars_geom_bar_cyl.png │ │ │ │ ├── test_reverse │ │ │ │ │ ├── scale_both_reverse.png │ │ │ │ │ ├── scale_without_reverse.png │ │ │ │ │ ├── scale_x_reverse.png │ │ │ │ │ └── scale_y_reverse.png │ │ │ │ ├── test_scale_facet_wrap │ │ │ │ │ ├── first_ax_not_off.png │ │ │ │ │ ├── free.png │ │ │ │ │ ├── free_x.png │ │ │ │ │ ├── free_y.png │ │ │ │ │ └── none.png │ │ │ │ ├── test_scale_log │ │ │ │ │ ├── scale_both_log.png │ │ │ │ │ ├── scale_both_log_base2.png │ │ │ │ │ ├── scale_without_log.png │ │ │ │ │ ├── scale_x_log.png │ │ │ │ │ └── scale_y_log.png │ │ │ │ ├── test_stat_function │ │ │ │ │ ├── fun_args.png │ │ │ │ │ ├── fun_dict_args.png │ │ │ │ │ ├── fun_dnorm.png │ │ │ │ │ └── fun_sin_vs_cos.png │ │ │ │ ├── test_stat_summary │ │ │ │ │ ├── default.png │ │ │ │ │ ├── fun_data.png │ │ │ │ │ └── fun_y.png │ │ │ │ ├── test_theme │ │ │ │ │ ├── general_first.png │ │ │ │ │ ├── general_last.png │ │ │ │ │ └── red_text.png │ │ │ │ ├── test_theme_bw │ │ │ │ │ └── theme_bw.png │ │ │ │ ├── test_theme_gray │ │ │ │ │ ├── theme_gray_default.png │ │ │ │ │ └── theme_gray_explicit.png │ │ │ │ ├── test_theme_mpl │ │ │ │ │ ├── theme_clean-expected.png │ │ │ │ │ ├── theme_clean.png │ │ │ │ │ ├── theme_clean2-expected.png │ │ │ │ │ ├── theme_clean2.png │ │ │ │ │ ├── theme_mpl_all_after-expected.png │ │ │ │ │ ├── theme_mpl_all_after.png │ │ │ │ │ ├── theme_mpl_all_before-expected.png │ │ │ │ │ ├── theme_mpl_all_before.png │ │ │ │ │ ├── theme_mpl_completly-expected.png │ │ │ │ │ ├── theme_mpl_completly.png │ │ │ │ │ ├── theme_mpl_only_one-expected.png │ │ │ │ │ └── theme_mpl_only_one.png │ │ │ │ └── test_theme_seaborn │ │ │ │ │ ├── theme_seaborn-expected.png │ │ │ │ │ └── theme_seaborn.png │ │ │ ├── test_basic.py │ │ │ ├── test_chart_components.py │ │ │ ├── test_colors.py │ │ │ ├── test_element_target.py │ │ │ ├── test_element_text.py │ │ │ ├── test_faceting.py │ │ │ ├── test_geom.py │ │ │ ├── test_geom_bar.py │ │ │ ├── test_geom_linerange.py │ │ │ ├── test_geom_lines.py │ │ │ ├── test_geom_pointrange.py │ │ │ ├── test_geom_rect.py │ │ │ ├── test_ggplot_add.py │ │ │ ├── test_ggplot_internals.py │ │ │ ├── test_ggsave.py │ │ │ ├── test_legend.py │ │ │ ├── test_qplot.py │ │ │ ├── test_readme_examples.py │ │ │ ├── test_reverse.py │ │ │ ├── test_scale_facet_wrap.py │ │ │ ├── test_scale_log.py │ │ │ ├── test_stat.py │ │ │ ├── test_stat_calculate_methods.py │ │ │ ├── test_stat_function.py │ │ │ ├── test_stat_summary.py │ │ │ ├── test_theme.py │ │ │ ├── test_theme_bw.py │ │ │ ├── test_theme_gray.py │ │ │ ├── test_theme_mpl.py │ │ │ └── test_theme_seaborn.py │ │ ├── themes │ │ │ ├── __init__.py │ │ │ ├── element_target.py │ │ │ ├── element_text.py │ │ │ ├── theme.py │ │ │ ├── theme_538.py │ │ │ ├── theme_bw.py │ │ │ ├── theme_gray.py │ │ │ ├── theme_matplotlib.py │ │ │ ├── theme_seaborn.py │ │ │ └── theme_xkcd.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ ├── color.py │ │ │ ├── date_breaks.py │ │ │ ├── date_format.py │ │ │ ├── exceptions.py │ │ │ ├── ggutils.py │ │ │ └── utils.py │ │ ├── setup.cfg │ │ └── setup.py ├── lemonade │ ├── COPYING │ ├── README │ └── dist │ │ ├── MANIFEST.in │ │ ├── PKG-INFO │ │ ├── README │ │ ├── bin │ │ └── lemonade │ │ ├── examples │ │ └── calc │ │ │ ├── calc.py │ │ │ └── gram.y │ │ ├── lemonade │ │ ├── __init__.py │ │ ├── action.py │ │ ├── acttab.py │ │ ├── build.py │ │ ├── ccruft.py │ │ ├── configlist.py │ │ ├── error.py │ │ ├── exceptions.py │ │ ├── lempar.tmpl │ │ ├── main.py │ │ ├── msort.py │ │ ├── parse.py │ │ ├── plink.py │ │ ├── report.py │ │ ├── set.py │ │ ├── struct.py │ │ └── table.py │ │ └── setup.py └── plex │ ├── COPYING │ ├── README │ ├── dist │ ├── Makefile │ ├── Plex │ │ ├── Actions.py │ │ ├── DFA.py │ │ ├── Errors.py │ │ ├── Lexicons.py │ │ ├── Machines.py │ │ ├── Regexps.py │ │ ├── Scanners.py │ │ ├── Timing.py │ │ ├── Traditional.py │ │ ├── Transitions.py │ │ ├── __init__.py │ │ └── test_tm.py │ ├── README │ ├── TODO │ ├── doc │ │ ├── Reference.html │ │ ├── Tutorial.html │ │ └── index.html │ ├── examples │ │ ├── example1and2.in │ │ ├── example1and2.py │ │ ├── example3.in │ │ ├── example3.py │ │ ├── example4.in │ │ ├── example4.py │ │ ├── example5.in │ │ ├── example5.py │ │ ├── example6.in │ │ ├── example6.py │ │ ├── example7.in │ │ ├── example7.py │ │ ├── pascal.in │ │ ├── pascal.py │ │ ├── python.in │ │ ├── python.py │ │ ├── speedtest.in │ │ └── speedtest.py │ └── tests │ │ ├── Test.py │ │ ├── runtests.py │ │ ├── test0.in │ │ ├── test0.out │ │ ├── test0.py │ │ ├── test1.in │ │ ├── test1.out │ │ ├── test1.py │ │ ├── test10.out │ │ ├── test10.py │ │ ├── test11.in │ │ ├── test11.out │ │ ├── test11.py │ │ ├── test12.in │ │ ├── test12.out │ │ ├── test12.py │ │ ├── test2.in │ │ ├── test2.out │ │ ├── test2.py │ │ ├── test3.in │ │ ├── test3.out │ │ ├── test3.py │ │ ├── test4.in │ │ ├── test4.out │ │ ├── test4.py │ │ ├── test5.in │ │ ├── test5.out │ │ ├── test5.py │ │ ├── test6.in │ │ ├── test6.out │ │ ├── test6.py │ │ ├── test7.in │ │ ├── test7.out │ │ ├── test7.py │ │ ├── test8.in │ │ ├── test8.out │ │ ├── test8.py │ │ ├── test9.in │ │ ├── test9.out │ │ └── test9.py │ └── prepare.sh ├── inference-quality.cfg ├── install_requires.txt ├── lite-crashes.cfg ├── performance.cfg ├── profile ├── README └── example_profile_script.py ├── puma-crashes.cfg ├── puma-inference-quality ├── pythenv.sh ├── python └── lib │ ├── .gitignore │ ├── __init__.py │ ├── engine │ ├── __init__.py │ ├── engine.py │ ├── inference.py │ ├── inference_prelude.py │ ├── plot_spec.py │ ├── trace.py │ └── trace_set.py │ ├── exception.py │ ├── mcdf.py │ ├── multiprocess.py │ ├── parser │ ├── __init__.py │ ├── ast.py │ ├── church_prime │ │ ├── __init__.py │ │ ├── grammar.y │ │ ├── parse.py │ │ └── scan.py │ └── venture_script │ │ ├── __init__.py │ │ ├── grammar.y │ │ ├── parse.py │ │ ├── scan.py │ │ └── subscanner.py │ ├── plots │ ├── __init__.py │ └── p_p_plot.py │ ├── plugins │ └── __init__.py │ ├── ripl │ ├── __init__.py │ ├── console.py │ ├── plugins.py │ ├── prelude.vnt │ ├── ripl.py │ ├── ripl_rest_client.py │ └── utils.py │ ├── server │ ├── __init__.py │ ├── crossdomain.py │ └── utils.py │ ├── shortcuts │ └── __init__.py │ ├── sivm │ ├── __init__.py │ ├── core_sivm.py │ ├── macro.py │ ├── macro_system.py │ ├── pattern_language.py │ ├── utils.py │ └── venture_sivm.py │ └── value │ ├── __init__.py │ └── dicts.py ├── refman ├── .gitignore ├── Makefile ├── README.md ├── apiref.rst ├── conf.py ├── faq.rst ├── foreigns.rst ├── index.rst ├── inference.rst ├── instructions.rst ├── modeling.rst ├── overview.rst ├── plugins.rst ├── programming-model.rst ├── usage.rst ├── venture.lite.psp.rst ├── venture.lite.sp.rst ├── venture.lite.sp_help.rst ├── venture.lite.types.rst ├── venture.lite.value.rst ├── venture.parser.ast.rst ├── venture.parser.venture_script.subscanner.rst ├── venture.ripl.ripl.rst ├── venture.shortcuts.rst └── venture.value.dicts.rst ├── sanity_tests.sh ├── script ├── README-world-ipython-server ├── compare-release-content ├── gradients.py ├── init_client.py ├── init_ripl.py ├── jenkins │ ├── check_built_sdist.sh │ ├── check_sdist.sh │ ├── debian-test-docker │ │ ├── .gitignore │ │ └── Dockerfile │ ├── debian-venture.sh │ ├── pip-test-docker │ │ └── Dockerfile │ └── venture-in-docker.sh ├── release-tarball ├── transcript.css ├── vendoc └── venture ├── setup.py ├── test ├── README.md ├── __init__.py ├── config.py ├── conformance │ ├── __init__.py │ ├── sps │ │ ├── __init__.py │ │ ├── test_array.py │ │ ├── test_basics.py │ │ ├── test_bernoulli.py │ │ ├── test_beta.py │ │ ├── test_binomial.py │ │ ├── test_categorical.py │ │ ├── test_cmvn.py │ │ ├── test_covariance.py │ │ ├── test_crp.py │ │ ├── test_dict.py │ │ ├── test_discrete.py │ │ ├── test_eval.py │ │ ├── test_exactly.py │ │ ├── test_expon.py │ │ ├── test_fix.py │ │ ├── test_gamma.py │ │ ├── test_genericity.py │ │ ├── test_gp.py │ │ ├── test_inv_gamma.py │ │ ├── test_laplace.py │ │ ├── test_list.py │ │ ├── test_lognormal.py │ │ ├── test_make_csp.py │ │ ├── test_matrix.py │ │ ├── test_misc.py │ │ ├── test_mvn.py │ │ ├── test_parallel.py │ │ ├── test_poisson.py │ │ ├── test_print.py │ │ ├── test_quote.py │ │ ├── test_trig.py │ │ ├── test_vector.py │ │ ├── test_wishart.py │ │ └── test_zip.py │ ├── test_constrain.py │ ├── test_determinism.py │ ├── test_execute.py │ ├── test_foreign_sp.py │ ├── test_forget.py │ ├── test_get_global_logscore.py │ ├── test_observe.py │ └── test_prelude.py ├── core │ ├── __init__.py │ ├── test_basics.py │ ├── test_equals.py │ └── test_mem.py ├── debug │ ├── __init__.py │ └── test_num_families.py ├── development_milestones │ ├── __init__.py │ ├── test_bernoulli.py │ ├── test_continuous.py │ ├── test_mem.py │ └── test_no_inference.py ├── errors.py ├── exception │ ├── __init__.py │ ├── test_runtime.py │ └── test_syntax.py ├── flaky.py ├── inference_language │ ├── __init__.py │ ├── test_advanced_blocking.py │ ├── test_basic_blocking.py │ ├── test_callback.py │ ├── test_collect.py │ ├── test_compound.py │ ├── test_diversify.py │ ├── test_dynamic_scope.py │ ├── test_enumerative_gibbs.py │ ├── test_enumerative_map.py │ ├── test_explicit_regen.py │ ├── test_extract_stats.py │ ├── test_for_each_particle.py │ ├── test_freeze.py │ ├── test_gotchas.py │ ├── test_gradient_methods.py │ ├── test_hmc.py │ ├── test_infer_inside_functions.py │ ├── test_infer_loop.py │ ├── test_likelihood_weighting.py │ ├── test_meanfield.py │ ├── test_monad.py │ ├── test_ordered_range_blocking.py │ ├── test_parallel_resamples.py │ ├── test_particle_filtering.py │ ├── test_persistent_inference_trace.py │ ├── test_pgibbs.py │ ├── test_plotf.py │ ├── test_plugins.py │ ├── test_rejection.py │ ├── test_slice.py │ ├── test_subsampledmh.py │ └── test_utils.py ├── inference_quality │ ├── __init__.py │ ├── end_to_end │ │ ├── __init__.py │ │ ├── test_cluster_model.py │ │ ├── test_goldwater.py │ │ ├── test_inc_eval.py │ │ └── test_pymem.py │ └── micro │ │ ├── __init__.py │ │ ├── test_basic_stats.py │ │ ├── test_latents.py │ │ ├── test_lkernels.py │ │ ├── test_make_sym_dir_mult.py │ │ ├── test_misc_aaa.py │ │ └── test_sequences.py ├── integration │ ├── __init__.py │ ├── plugin.py │ ├── test_console.py │ ├── test_doc_autogen.py │ ├── test_examples.py │ ├── test_plugin_loading.py │ └── test_sublanguages.py ├── lite-config.py ├── manual │ ├── all.sh │ ├── console-error.sh │ └── python-error.sh ├── misc │ ├── __init__.py │ ├── test_exp.py │ ├── test_profiler.py │ └── test_venture_script.py ├── numerical.py ├── performance │ ├── __init__.py │ ├── asymptotics │ │ ├── __init__.py │ │ ├── test_aaa.py │ │ ├── test_double_recursion.py │ │ ├── test_lda.py │ │ ├── test_particle_filtering.py │ │ ├── test_particles.py │ │ ├── test_references.py │ │ └── test_subsampled_mh.py │ ├── end_to_end │ │ └── __init__.py │ └── stack │ │ └── __init__.py ├── profiling │ ├── __init__.py │ └── test_basic.py ├── properties │ ├── __init__.py │ ├── test_conjugacy.py │ ├── test_gradients.py │ ├── test_ripl.py │ ├── test_sps.py │ └── test_values.py ├── puma-config.py ├── random_values.py ├── randomized.py ├── regressions │ ├── __init__.py │ ├── test_comments_in_strings.py │ ├── test_esr_ref_absorb.py │ ├── test_if.py │ ├── test_keyword_syntax.py │ ├── test_logdensitymvnormal.py │ ├── test_numerical_comparisons.py │ ├── test_observe_mem_scope.py │ ├── test_owain_mixture.py │ ├── test_references.py │ ├── test_regen_copying.py │ ├── test_regen_stale_aaa.py │ ├── test_repeat_zero.py │ ├── test_request_arrays.py │ ├── test_scopes_in_brush.py │ ├── test_scopes_wttree.py │ ├── test_toplevel_unquote.py │ ├── test_uneval_constant.py │ ├── test_variable_shadowing.py │ └── test_venturescript_example.py ├── serialize │ ├── __init__.py │ └── test_serialize.py ├── smc │ ├── __init__.py │ └── test_particle_filter.py ├── stack │ ├── __init__.py │ ├── functionality │ │ ├── __init__.py │ │ ├── churchprime_parser_test.py │ │ ├── core_sivm_cxx_test.py │ │ ├── rest_client_test.py │ │ ├── rest_server_test.py │ │ ├── ripl_test.py │ │ ├── sivm_exception_annotation_test.py │ │ ├── test_bulk_observe.py │ │ ├── venture_exception_test.py │ │ ├── venture_sivm_test.py │ │ ├── venturescript_parser_test.py │ │ └── vim_utils_test.py │ └── skip_ripl_hacks │ │ ├── __init__.py │ │ └── test_sivm_wrappers.py ├── stats.py ├── timing.py └── unit │ ├── __init__.py │ ├── test_explog.py │ ├── test_lenses.py │ ├── test_loggamma.py │ ├── test_logistic.py │ ├── test_orderedset.py │ ├── test_stats.py │ └── test_wttree.py └── tool ├── check_capabilities.sh ├── copyrights ├── copyright.py ├── notes.org └── venture ├── grind ├── jenkins ├── clean-tmp.config.xml ├── lite-func-pgibbs-inference-quality.config.xml ├── lite-meanfield-inference-quality.config.xml ├── lite-misc-inference-quality.config.xml ├── lite-rejection-inference-quality.config.xml ├── lite-subsampled-mh-inference-quality.config.xml ├── puma-meanfield-inference-quality.config.xml ├── puma-mh-inference-quality.config.xml ├── puma-misc-inference-quality.config.xml ├── puma-performance.config.xml ├── puma-pgibbs-inference-quality.config.xml ├── puma-rejection-inference-quality.config.xml ├── save_jenkins_jobs_config.py ├── set_up_jenkins_locally.py ├── venture-crashes.config.xml ├── venture-inference-quality.config.xml ├── venture-performance.config.xml ├── venture-pull-request-crashes.config.xml ├── venture-sdist-docker-debian-install.config.xml ├── venture-sdist-docker-pip-dependency-variation.config.xml └── venture-sdist-docker-pip-install.config.xml ├── minimal_deps.py ├── pylintrc-1.1.0 ├── pylintrc-1.5.1 ├── pylintrc-1.6.1 ├── python-flymake.el ├── refman-changelog ├── test-history ├── .gitignore ├── Makefile ├── count.dat ├── data.conf ├── fail.dat └── test-counts.conf ├── venture-epylint.py ├── venture-mode.el └── venture_mode_font_lock.py /.coveragerc: -------------------------------------------------------------------------------- 1 | [run] 2 | omit = *ggplot*, *plex* 3 | -------------------------------------------------------------------------------- /.gdbinit: -------------------------------------------------------------------------------- 1 | target exec python 2 | 3 | # Here's a way to run a particular test in gdb: 4 | # run /usr/local/bin/nosetests -c all.cfg --tc=get_ripl:puma -x test/performance/asymptotics/test_particle_filtering.py 5 | 6 | # By default, debug the console 7 | run /home/axch/work/pcp/Venturecxx/script/venture 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Testing out fix for line-endings 2 | # Prevent lf -> crlf conversion for all files on windows 3 | * -crlf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build artifacts 2 | /build 3 | env.d 4 | a.out 5 | 6 | # Log location for dev tools 7 | /tool/logs/* 8 | 9 | # Python compiled files 10 | *.pyc 11 | 12 | # Editor/OS temp files 13 | *~ 14 | .idea/ 15 | .DS_Store 16 | # VIM swap files 17 | .*.swp 18 | 19 | # Coverage reports 20 | /htmlcov 21 | /.coverage 22 | /.coverage.* 23 | 24 | # Dev/testing 25 | dump 26 | .noseids 27 | /.mypy_cache 28 | # Compiled Stan model cache 29 | /test/integration/models/ 30 | 31 | # Release artifacts 32 | /venture-*.tgz 33 | /venture-*.tar 34 | /venture-*.tar.gz 35 | /dist 36 | /MANIFEST 37 | /venture.egg-info 38 | 39 | # Lemonade parser generator output 40 | /python/lib/parser/church_prime/grammar.out 41 | /python/lib/parser/church_prime/grammar.py 42 | /python/lib/parser/venture_script/grammar.out 43 | /python/lib/parser/venture_script/grammar.py 44 | /python/lib/parser/church_prime/grammar.sha256 45 | /python/lib/parser/venture_script/grammar.sha256 46 | 47 | ideal_prior_trick_mar.png 48 | .eggs 49 | *.so 50 | ideal_prior_weight_mar.png 51 | 52 | 53 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/.gitmodules -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /all.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | [nosetests] 19 | verbosity=3 20 | detailed-errors=1 21 | nocapture=1 22 | tc-file=test/lite-config.py 23 | tc-format=python 24 | -------------------------------------------------------------------------------- /backend/lite/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /backend/new_cxx/.gitignore: -------------------------------------------------------------------------------- 1 | testEigen 2 | libtrace.so 3 | *# 4 | 5 | # CMake files 6 | CMakeCache.txt 7 | CMakeFiles 8 | cmake_install.cmake 9 | Makefile 10 | -------------------------------------------------------------------------------- /backend/new_cxx/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | from libpumatrace import Trace 18 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Array: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_ARRAY_MODULE_H 2 | #define EIGEN_ARRAY_MODULE_H 3 | 4 | // include Core first to handle Eigen2 support macros 5 | #include "Core" 6 | 7 | #ifndef EIGEN2_SUPPORT 8 | #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core. 9 | #endif 10 | 11 | #endif // EIGEN_ARRAY_MODULE_H 12 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include(RegexUtils) 2 | test_escape_string_as_regex() 3 | 4 | file(GLOB Eigen_directory_files "*") 5 | 6 | escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") 7 | 8 | foreach(f ${Eigen_directory_files}) 9 | if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src") 10 | list(APPEND Eigen_directory_files_to_install ${f}) 11 | endif() 12 | endforeach(f ${Eigen_directory_files}) 13 | 14 | install(FILES 15 | ${Eigen_directory_files_to_install} 16 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel 17 | ) 18 | 19 | add_subdirectory(src) 20 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Cholesky: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_CHOLESKY_MODULE_H 2 | #define EIGEN_CHOLESKY_MODULE_H 3 | 4 | #include "Core" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | /** \defgroup Cholesky_Module Cholesky module 9 | * 10 | * 11 | * 12 | * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices. 13 | * Those decompositions are accessible via the following MatrixBase methods: 14 | * - MatrixBase::llt(), 15 | * - MatrixBase::ldlt() 16 | * 17 | * \code 18 | * #include 19 | * \endcode 20 | */ 21 | 22 | #include "src/misc/Solve.h" 23 | #include "src/Cholesky/LLT.h" 24 | #include "src/Cholesky/LDLT.h" 25 | #ifdef EIGEN_USE_LAPACKE 26 | #include "src/Cholesky/LLT_MKL.h" 27 | #endif 28 | 29 | #include "src/Core/util/ReenableStupidWarnings.h" 30 | 31 | #endif // EIGEN_CHOLESKY_MODULE_H 32 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 33 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Dense: -------------------------------------------------------------------------------- 1 | #include "Core" 2 | #include "LU" 3 | #include "Cholesky" 4 | #include "QR" 5 | #include "SVD" 6 | #include "Geometry" 7 | #include "Eigenvalues" 8 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Eigen: -------------------------------------------------------------------------------- 1 | #include "Dense" 2 | //#include "Sparse" 3 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Householder: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_HOUSEHOLDER_MODULE_H 2 | #define EIGEN_HOUSEHOLDER_MODULE_H 3 | 4 | #include "Core" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | /** \defgroup Householder_Module Householder module 9 | * This module provides Householder transformations. 10 | * 11 | * \code 12 | * #include 13 | * \endcode 14 | */ 15 | 16 | #include "src/Householder/Householder.h" 17 | #include "src/Householder/HouseholderSequence.h" 18 | #include "src/Householder/BlockHouseholder.h" 19 | 20 | #include "src/Core/util/ReenableStupidWarnings.h" 21 | 22 | #endif // EIGEN_HOUSEHOLDER_MODULE_H 23 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 24 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Jacobi: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_JACOBI_MODULE_H 2 | #define EIGEN_JACOBI_MODULE_H 3 | 4 | #include "Core" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | /** \defgroup Jacobi_Module Jacobi module 9 | * This module provides Jacobi and Givens rotations. 10 | * 11 | * \code 12 | * #include 13 | * \endcode 14 | * 15 | * In addition to listed classes, it defines the two following MatrixBase methods to apply a Jacobi or Givens rotation: 16 | * - MatrixBase::applyOnTheLeft() 17 | * - MatrixBase::applyOnTheRight(). 18 | */ 19 | 20 | #include "src/Jacobi/Jacobi.h" 21 | 22 | #include "src/Core/util/ReenableStupidWarnings.h" 23 | 24 | #endif // EIGEN_JACOBI_MODULE_H 25 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 26 | 27 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/LeastSquares: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_REGRESSION_MODULE_H 2 | #define EIGEN_REGRESSION_MODULE_H 3 | 4 | #ifndef EIGEN2_SUPPORT 5 | #error LeastSquares is only available in Eigen2 support mode (define EIGEN2_SUPPORT) 6 | #endif 7 | 8 | // exclude from normal eigen3-only documentation 9 | #ifdef EIGEN2_SUPPORT 10 | 11 | #include "Core" 12 | 13 | #include "src/Core/util/DisableStupidWarnings.h" 14 | 15 | #include "Eigenvalues" 16 | #include "Geometry" 17 | 18 | /** \defgroup LeastSquares_Module LeastSquares module 19 | * This module provides linear regression and related features. 20 | * 21 | * \code 22 | * #include 23 | * \endcode 24 | */ 25 | 26 | #include "src/Eigen2Support/LeastSquares.h" 27 | 28 | #include "src/Core/util/ReenableStupidWarnings.h" 29 | 30 | #endif // EIGEN2_SUPPORT 31 | 32 | #endif // EIGEN_REGRESSION_MODULE_H 33 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/MetisSupport: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_METISSUPPORT_MODULE_H 2 | #define EIGEN_METISSUPPORT_MODULE_H 3 | 4 | #include "SparseCore" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | extern "C" { 9 | #include 10 | } 11 | 12 | 13 | /** \ingroup Support_modules 14 | * \defgroup MetisSupport_Module MetisSupport module 15 | * 16 | * \code 17 | * #include 18 | * \endcode 19 | * This module defines an interface to the METIS reordering package (http://glaros.dtc.umn.edu/gkhome/views/metis). 20 | * It can be used just as any other built-in method as explained in \link OrderingMethods_Module here. \endlink 21 | */ 22 | 23 | 24 | #include "src/MetisSupport/MetisSupport.h" 25 | 26 | #include "src/Core/util/ReenableStupidWarnings.h" 27 | 28 | #endif // EIGEN_METISSUPPORT_MODULE_H 29 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/PardisoSupport: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_PARDISOSUPPORT_MODULE_H 2 | #define EIGEN_PARDISOSUPPORT_MODULE_H 3 | 4 | #include "SparseCore" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | #include 9 | 10 | #include 11 | 12 | /** \ingroup Support_modules 13 | * \defgroup PardisoSupport_Module PardisoSupport module 14 | * 15 | * This module brings support for the Intel(R) MKL PARDISO direct sparse solvers. 16 | * 17 | * \code 18 | * #include 19 | * \endcode 20 | * 21 | * In order to use this module, the MKL headers must be accessible from the include paths, and your binary must be linked to the MKL library and its dependencies. 22 | * See this \ref TopicUsingIntelMKL "page" for more information on MKL-Eigen integration. 23 | * 24 | */ 25 | 26 | #include "src/PardisoSupport/PardisoSupport.h" 27 | 28 | #include "src/Core/util/ReenableStupidWarnings.h" 29 | 30 | #endif // EIGEN_PARDISOSUPPORT_MODULE_H 31 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/QR: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_QR_MODULE_H 2 | #define EIGEN_QR_MODULE_H 3 | 4 | #include "Core" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | #include "Cholesky" 9 | #include "Jacobi" 10 | #include "Householder" 11 | 12 | /** \defgroup QR_Module QR module 13 | * 14 | * 15 | * 16 | * This module provides various QR decompositions 17 | * This module also provides some MatrixBase methods, including: 18 | * - MatrixBase::qr(), 19 | * 20 | * \code 21 | * #include 22 | * \endcode 23 | */ 24 | 25 | #include "src/misc/Solve.h" 26 | #include "src/QR/HouseholderQR.h" 27 | #include "src/QR/FullPivHouseholderQR.h" 28 | #include "src/QR/ColPivHouseholderQR.h" 29 | #ifdef EIGEN_USE_LAPACKE 30 | #include "src/QR/HouseholderQR_MKL.h" 31 | #include "src/QR/ColPivHouseholderQR_MKL.h" 32 | #endif 33 | 34 | #ifdef EIGEN2_SUPPORT 35 | #include "src/Eigen2Support/QR.h" 36 | #endif 37 | 38 | #include "src/Core/util/ReenableStupidWarnings.h" 39 | 40 | #ifdef EIGEN2_SUPPORT 41 | #include "Eigenvalues" 42 | #endif 43 | 44 | #endif // EIGEN_QR_MODULE_H 45 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 46 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/QtAlignedMalloc: -------------------------------------------------------------------------------- 1 | 2 | #ifndef EIGEN_QTMALLOC_MODULE_H 3 | #define EIGEN_QTMALLOC_MODULE_H 4 | 5 | #include "Core" 6 | 7 | #if (!EIGEN_MALLOC_ALREADY_ALIGNED) 8 | 9 | #include "src/Core/util/DisableStupidWarnings.h" 10 | 11 | void *qMalloc(size_t size) 12 | { 13 | return Eigen::internal::aligned_malloc(size); 14 | } 15 | 16 | void qFree(void *ptr) 17 | { 18 | Eigen::internal::aligned_free(ptr); 19 | } 20 | 21 | void *qRealloc(void *ptr, size_t size) 22 | { 23 | void* newPtr = Eigen::internal::aligned_malloc(size); 24 | memcpy(newPtr, ptr, size); 25 | Eigen::internal::aligned_free(ptr); 26 | return newPtr; 27 | } 28 | 29 | #include "src/Core/util/ReenableStupidWarnings.h" 30 | 31 | #endif 32 | 33 | #endif // EIGEN_QTMALLOC_MODULE_H 34 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 35 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/SPQRSupport: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_SPQRSUPPORT_MODULE_H 2 | #define EIGEN_SPQRSUPPORT_MODULE_H 3 | 4 | #include "SparseCore" 5 | 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | #include "SuiteSparseQR.hpp" 9 | 10 | /** \ingroup Support_modules 11 | * \defgroup SPQRSupport_Module SuiteSparseQR module 12 | * 13 | * This module provides an interface to the SPQR library, which is part of the suitesparse package. 14 | * 15 | * \code 16 | * #include 17 | * \endcode 18 | * 19 | * In order to use this module, the SPQR headers must be accessible from the include paths, and your binary must be linked to the SPQR library and its dependencies (Cholmod, AMD, COLAMD,...). 20 | * For a cmake based project, you can use our FindSPQR.cmake and FindCholmod.Cmake modules 21 | * 22 | */ 23 | 24 | #include "src/misc/Solve.h" 25 | #include "src/misc/SparseSolve.h" 26 | #include "src/CholmodSupport/CholmodSupport.h" 27 | #include "src/SPQRSupport/SuiteSparseQRSupport.h" 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/SVD: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_SVD_MODULE_H 2 | #define EIGEN_SVD_MODULE_H 3 | 4 | #include "QR" 5 | #include "Householder" 6 | #include "Jacobi" 7 | 8 | #include "src/Core/util/DisableStupidWarnings.h" 9 | 10 | /** \defgroup SVD_Module SVD module 11 | * 12 | * 13 | * 14 | * This module provides SVD decomposition for matrices (both real and complex). 15 | * This decomposition is accessible via the following MatrixBase method: 16 | * - MatrixBase::jacobiSvd() 17 | * 18 | * \code 19 | * #include 20 | * \endcode 21 | */ 22 | 23 | #include "src/misc/Solve.h" 24 | #include "src/SVD/JacobiSVD.h" 25 | #if defined(EIGEN_USE_LAPACKE) && !defined(EIGEN_USE_LAPACKE_STRICT) 26 | #include "src/SVD/JacobiSVD_MKL.h" 27 | #endif 28 | #include "src/SVD/UpperBidiagonalization.h" 29 | 30 | #ifdef EIGEN2_SUPPORT 31 | #include "src/Eigen2Support/SVD.h" 32 | #endif 33 | 34 | #include "src/Core/util/ReenableStupidWarnings.h" 35 | 36 | #endif // EIGEN_SVD_MODULE_H 37 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */ 38 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/Sparse: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_SPARSE_MODULE_H 2 | #define EIGEN_SPARSE_MODULE_H 3 | 4 | /** \defgroup Sparse_Module Sparse meta-module 5 | * 6 | * Meta-module including all related modules: 7 | * - \ref SparseCore_Module 8 | * - \ref OrderingMethods_Module 9 | * - \ref SparseCholesky_Module 10 | * - \ref SparseLU_Module 11 | * - \ref SparseQR_Module 12 | * - \ref IterativeLinearSolvers_Module 13 | * 14 | * \code 15 | * #include 16 | * \endcode 17 | */ 18 | 19 | #include "SparseCore" 20 | #include "OrderingMethods" 21 | #include "SparseCholesky" 22 | #include "SparseLU" 23 | #include "SparseQR" 24 | #include "IterativeLinearSolvers" 25 | 26 | #endif // EIGEN_SPARSE_MODULE_H 27 | 28 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/SparseQR: -------------------------------------------------------------------------------- 1 | #ifndef EIGEN_SPARSEQR_MODULE_H 2 | #define EIGEN_SPARSEQR_MODULE_H 3 | 4 | #include "SparseCore" 5 | #include "OrderingMethods" 6 | #include "src/Core/util/DisableStupidWarnings.h" 7 | 8 | /** \defgroup SparseQR_Module SparseQR module 9 | * \brief Provides QR decomposition for sparse matrices 10 | * 11 | * This module provides a simplicial version of the left-looking Sparse QR decomposition. 12 | * The columns of the input matrix should be reordered to limit the fill-in during the 13 | * decomposition. Built-in methods (COLAMD, AMD) or external methods (METIS) can be used to this end. 14 | * See the \link OrderingMethods_Module OrderingMethods\endlink module for the list 15 | * of built-in and external ordering methods. 16 | * 17 | * \code 18 | * #include 19 | * \endcode 20 | * 21 | * 22 | */ 23 | 24 | #include "src/misc/Solve.h" 25 | #include "src/misc/SparseSolve.h" 26 | 27 | #include "OrderingMethods" 28 | #include "src/SparseCore/SparseColEtree.h" 29 | #include "src/SparseQR/SparseQR.h" 30 | 31 | #include "src/Core/util/ReenableStupidWarnings.h" 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/StdDeque: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Gael Guennebaud 5 | // Copyright (C) 2009 Hauke Heibel 6 | // 7 | // This Source Code Form is subject to the terms of the Mozilla 8 | // Public License v. 2.0. If a copy of the MPL was not distributed 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 10 | 11 | #ifndef EIGEN_STDDEQUE_MODULE_H 12 | #define EIGEN_STDDEQUE_MODULE_H 13 | 14 | #include "Core" 15 | #include 16 | 17 | #if (defined(_MSC_VER) && defined(_WIN64)) /* MSVC auto aligns in 64 bit builds */ 18 | 19 | #define EIGEN_DEFINE_STL_DEQUE_SPECIALIZATION(...) 20 | 21 | #else 22 | 23 | #include "src/StlSupport/StdDeque.h" 24 | 25 | #endif 26 | 27 | #endif // EIGEN_STDDEQUE_MODULE_H 28 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/StdList: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Hauke Heibel 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_STDLIST_MODULE_H 11 | #define EIGEN_STDLIST_MODULE_H 12 | 13 | #include "Core" 14 | #include 15 | 16 | #if (defined(_MSC_VER) && defined(_WIN64)) /* MSVC auto aligns in 64 bit builds */ 17 | 18 | #define EIGEN_DEFINE_STL_LIST_SPECIALIZATION(...) 19 | 20 | #else 21 | 22 | #include "src/StlSupport/StdList.h" 23 | 24 | #endif 25 | 26 | #endif // EIGEN_STDLIST_MODULE_H 27 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/StdVector: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009 Gael Guennebaud 5 | // Copyright (C) 2009 Hauke Heibel 6 | // 7 | // This Source Code Form is subject to the terms of the Mozilla 8 | // Public License v. 2.0. If a copy of the MPL was not distributed 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 10 | 11 | #ifndef EIGEN_STDVECTOR_MODULE_H 12 | #define EIGEN_STDVECTOR_MODULE_H 13 | 14 | #include "Core" 15 | #include 16 | 17 | #if (defined(_MSC_VER) && defined(_WIN64)) /* MSVC auto aligns in 64 bit builds */ 18 | 19 | #define EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(...) 20 | 21 | #else 22 | 23 | #include "src/StlSupport/StdVector.h" 24 | 25 | #endif 26 | 27 | #endif // EIGEN_STDVECTOR_MODULE_H 28 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | file(GLOB Eigen_src_subdirectories "*") 2 | escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") 3 | foreach(f ${Eigen_src_subdirectories}) 4 | if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" ) 5 | add_subdirectory(${f}) 6 | endif() 7 | endforeach() 8 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Cholesky/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Cholesky_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Cholesky_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Cholesky COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/CholmodSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_CholmodSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_CholmodSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/CholmodSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core COMPONENT Devel 6 | ) 7 | 8 | ADD_SUBDIRECTORY(products) 9 | ADD_SUBDIRECTORY(util) 10 | ADD_SUBDIRECTORY(arch) 11 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/arch/AltiVec/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_arch_AltiVec_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_arch_AltiVec_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/arch/AltiVec COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/arch/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ADD_SUBDIRECTORY(SSE) 2 | ADD_SUBDIRECTORY(AltiVec) 3 | ADD_SUBDIRECTORY(NEON) 4 | ADD_SUBDIRECTORY(Default) 5 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/arch/Default/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_arch_Default_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_arch_Default_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/arch/Default COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/arch/NEON/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_arch_NEON_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_arch_NEON_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/arch/NEON COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/arch/SSE/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_arch_SSE_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_arch_SSE_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/arch/SSE COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/products/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_Product_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_Product_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/products COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/util/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Core_util_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Core_util_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Core/util COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/util/NonMPL2.h: -------------------------------------------------------------------------------- 1 | #ifdef EIGEN_MPL2_ONLY 2 | #error Including non-MPL2 code in EIGEN_MPL2_ONLY mode 3 | #endif 4 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Core/util/ReenableStupidWarnings.h: -------------------------------------------------------------------------------- 1 | #ifdef EIGEN_WARNINGS_DISABLED 2 | #undef EIGEN_WARNINGS_DISABLED 3 | 4 | #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 5 | #ifdef _MSC_VER 6 | #pragma warning( pop ) 7 | #elif defined __INTEL_COMPILER 8 | #pragma warning pop 9 | #elif defined __clang__ 10 | #pragma clang diagnostic pop 11 | #endif 12 | #endif 13 | 14 | #endif // EIGEN_WARNINGS_DISABLED 15 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Eigen2Support/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Eigen2Support_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Eigen2Support_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Eigen2Support COMPONENT Devel 6 | ) 7 | 8 | ADD_SUBDIRECTORY(Geometry) -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Eigen2Support/Geometry/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Eigen2Support_Geometry_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Eigen2Support_Geometry_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Eigen2Support/Geometry 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Eigen2Support/Macros.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2011 Benoit Jacob 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN2_MACROS_H 11 | #define EIGEN2_MACROS_H 12 | 13 | #define ei_assert eigen_assert 14 | #define ei_internal_assert eigen_internal_assert 15 | 16 | #define EIGEN_ALIGN_128 EIGEN_ALIGN16 17 | 18 | #define EIGEN_ARCH_WANTS_ALIGNMENT EIGEN_ALIGN_STATICALLY 19 | 20 | #endif // EIGEN2_MACROS_H 21 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Eigenvalues/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_EIGENVALUES_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_EIGENVALUES_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Eigenvalues COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Geometry/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Geometry_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Geometry_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Geometry COMPONENT Devel 6 | ) 7 | 8 | ADD_SUBDIRECTORY(arch) 9 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Geometry/arch/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Geometry_arch_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Geometry_arch_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Geometry/arch COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Householder/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Householder_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Householder_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Householder COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/IterativeLinearSolvers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_IterativeLinearSolvers_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_IterativeLinearSolvers_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/IterativeLinearSolvers COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/Jacobi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_Jacobi_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_Jacobi_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/Jacobi COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/LU/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_LU_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_LU_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/LU COMPONENT Devel 6 | ) 7 | 8 | ADD_SUBDIRECTORY(arch) 9 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/LU/arch/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_LU_arch_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_LU_arch_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/LU/arch COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/MetisSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_MetisSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_MetisSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/MetisSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/OrderingMethods/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_OrderingMethods_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_OrderingMethods_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/OrderingMethods COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/PaStiXSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_PastixSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_PastixSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/PaStiXSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/PardisoSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_PardisoSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_PardisoSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/PardisoSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/QR/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_QR_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_QR_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/QR COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SPQRSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SPQRSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SPQRSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SPQRSupport/ COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SVD/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SVD_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SVD_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SVD COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SparseCholesky/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SparseCholesky_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SparseCholesky_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SparseCholesky COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SparseCore/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SparseCore_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SparseCore_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SparseCore COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SparseCore/SparseFuzzy.h: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2008 Gael Guennebaud 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #ifndef EIGEN_SPARSE_FUZZY_H 11 | #define EIGEN_SPARSE_FUZZY_H 12 | 13 | // template 14 | // template 15 | // bool SparseMatrixBase::isApprox( 16 | // const OtherDerived& other, 17 | // typename NumTraits::Real prec 18 | // ) const 19 | // { 20 | // const typename internal::nested::type nested(derived()); 21 | // const typename internal::nested::type otherNested(other.derived()); 22 | // return (nested - otherNested).cwise().abs2().sum() 23 | // <= prec * prec * (std::min)(nested.cwise().abs2().sum(), otherNested.cwise().abs2().sum()); 24 | // } 25 | 26 | #endif // EIGEN_SPARSE_FUZZY_H 27 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SparseLU/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SparseLU_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SparseLU_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SparseLU COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SparseQR/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SparseQR_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SparseQR_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SparseQR/ COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/StlSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_StlSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_StlSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/StlSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/SuperLUSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_SuperLUSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_SuperLUSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/SuperLUSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/UmfPackSupport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_UmfPackSupport_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_UmfPackSupport_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/UmfPackSupport COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/misc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_misc_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_misc_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/misc COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/Eigen/src/plugins/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_plugins_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_plugins_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen/src/plugins COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/builtin.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 2 | // 3 | // This file is part of Venture. 4 | // 5 | // Venture is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // Venture is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with Venture. If not, see . 17 | 18 | #ifndef BUILTIN_H 19 | #define BUILTIN_H 20 | 21 | #include "types.h" 22 | struct SP; 23 | 24 | map initBuiltInValues(); 25 | map initBuiltInSPs(); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/consistency.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | // 3 | // This file is part of Venture. 4 | // 5 | // Venture is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // Venture is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with Venture. If not, see . 17 | 18 | #ifndef CONSISTENCY_H 19 | #define CONSISTENCY_H 20 | 21 | #include "types.h" 22 | 23 | struct Scaffold; 24 | struct Trace; 25 | 26 | void assertTorus(const shared_ptr & scaffold); 27 | void assertTrace(Trace * trace, const shared_ptr & scaffold); 28 | 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/mixmh.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | // 3 | // This file is part of Venture. 4 | // 5 | // Venture is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // Venture is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with Venture. If not, see . 17 | 18 | #ifndef MIX_MH_H 19 | #define MIX_MH_H 20 | 21 | #include "types.h" 22 | struct ConcreteTrace; 23 | struct ScaffoldIndexer; 24 | struct GKernel; 25 | 26 | int mixMH(ConcreteTrace * trace, 27 | const boost::shared_ptr & indexer, 28 | const boost::shared_ptr & gKernel); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /backend/new_cxx/inc/sps/conditional.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | // 3 | // This file is part of Venture. 4 | // 5 | // Venture is free software: you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation, either version 3 of the License, or 8 | // (at your option) any later version. 9 | // 10 | // Venture is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with Venture. If not, see . 17 | 18 | #ifndef SPS_CONDITIONAL_H 19 | #define SPS_CONDITIONAL_H 20 | 21 | #include "psp.h" 22 | 23 | struct BiplexOutputPSP : virtual PSP 24 | , DeterministicPSP 25 | { 26 | VentureValuePtr simulate(const shared_ptr & args, gsl_rng * rng) const; 27 | }; 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /backend/new_cxx/make_darwin.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | export PUMA_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/venture/puma 19 | make 20 | sudo mv -f libtrace.dylib $PUMA_PATH/libtrace.so 21 | -------------------------------------------------------------------------------- /backend/untraced/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /benchmarks/.gitignore: -------------------------------------------------------------------------------- 1 | *.prof 2 | *.prof.time 3 | -------------------------------------------------------------------------------- /conda/meta.yaml: -------------------------------------------------------------------------------- 1 | package: 2 | name: venture 3 | version: {{ CONDA_PACKAGE_VERSION }} 4 | 5 | source: 6 | path: ../ 7 | 8 | build: 9 | script: python setup.py install 10 | 11 | source: 12 | path: ../ 13 | 14 | requirements: 15 | build: 16 | - git 17 | - python 2.7.* 18 | run: 19 | - nomkl 20 | - flask >=0.10 21 | - jsonschema 22 | - matplotlib 1.5.* 23 | - networkx 24 | - numpy 1.11.* 25 | - pandas 0.18.* 26 | - patsy >=0.2 27 | - python 2.7.* 28 | - requests >=1.2 29 | - scipy 0.17.* 30 | - six 1.10.* 31 | 32 | test: 33 | source_files: 34 | - test 35 | - examples 36 | requires: 37 | - markdown2 # For building the tutorial with venture-transcript. TODO Is markdown2 a real dependency? 38 | - matplotlib 1.5.* 39 | - nose >=1.3 40 | - pexpect 41 | - pytest 2.8.* 42 | - python 2.7.* 43 | - six 1.10.* 44 | commands: 45 | - nosetests -c lite-crashes.cfg -w test -e integration 46 | 47 | about: 48 | home: https://github.com/probcomp/Venturecxx 49 | license: Apache 50 | license_file: LICENSE 51 | -------------------------------------------------------------------------------- /conda/upload.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ev 3 | 4 | # fyi, the logic below is necessary due to the fact that on a tagged build, TRAVIS_BRANCH and TRAVIS_TAG are the same 5 | # in the case of a tagged build, use the REAL_BRANCH env var defined in travis.yml 6 | if [ -n "${TRAVIS_TAG}" ]; then 7 | conda install anaconda-client 8 | # if tag didn't come from master, add the "dev" label 9 | if [ ${REAL_BRANCH} = "master" ]; then 10 | anaconda -t ${CONDA_UPLOAD_TOKEN} upload -u ${CONDA_USER} ~/miniconda/conda-bld/linux-64/${PACKAGE_NAME}-*.tar.bz2 --force 11 | else 12 | anaconda -t ${CONDA_UPLOAD_TOKEN} upload -u ${CONDA_USER} -l dev ~/miniconda/conda-bld/linux-64/${PACKAGE_NAME}-*.tar.bz2 --force 13 | fi 14 | elif [ ${TRAVIS_BRANCH} = "master" ]; then 15 | if [ ${TRAVIS_EVENT_TYPE} = "cron" ]; then 16 | # don't build package for nightly cron.. this is just for test stability info 17 | exit 0 18 | else 19 | conda install anaconda-client 20 | anaconda -t ${CONDA_UPLOAD_TOKEN} upload -u ${CONDA_USER} -l edge ~/miniconda/conda-bld/linux-64/${PACKAGE_NAME}-*.tar.bz2 --force 21 | fi 22 | else 23 | exit 0 24 | fi 25 | -------------------------------------------------------------------------------- /crashes-base.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | [nosetests] 19 | verbosity=3 20 | detailed-errors=1 21 | nocapture=1 22 | 23 | tc-file=test/lite-config.py 24 | tc-format=python 25 | 26 | tc=ignore_inference_quality:true 27 | 28 | # For code coverage with coverage.py and nose-cov: 29 | # pip install coverage 30 | # pip install nose-cov 31 | # with-cov=1 32 | # cov=venture 33 | # cov-report=html 34 | -------------------------------------------------------------------------------- /demos/jsripl/README.md: -------------------------------------------------------------------------------- 1 | VentureJSRIPL 2 | ============= 3 | 4 | A Javascript client for the Venture RIPL, and a collection of web demos for Venture. 5 | 6 | Running 7 | ======= 8 | 9 | First, start a venture server: 10 | 11 | $ venture server puma 12 | 13 | Now start a demo: 14 | 15 | $ firefox graph_curve_fitting.html 16 | 17 | You will be asked to pick a venture server. Select the second option. 18 | 19 | The demos are 20 | 21 | - graph_curve_fitting.html 22 | - cluster_crp_mixture.html 23 | - currently broken for reasons unknown (crashes the Venture server 24 | or the client loop when trying to add a point) 25 | - cmvn_crp_mixture.html 26 | - requires venture server lite 27 | - gp_curve_fitting.html 28 | 29 | GP Demo 30 | ======= 31 | 32 | The Gaussian Process demo is a bit non-standard; instead of starting a server yourself, use the provided script: 33 | 34 | $ python gp_server.py 35 | 36 | Then start the demo as usual: 37 | 38 | $ firefox gp_curve_fitting.html 39 | -------------------------------------------------------------------------------- /doc/class_diagram.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/doc/class_diagram.pdf -------------------------------------------------------------------------------- /doc/intuiting-kl/.gitignore: -------------------------------------------------------------------------------- 1 | /intuiting-kl.aux 2 | /intuiting-kl.log 3 | /intuiting-kl.out 4 | /intuiting-kl.pdf 5 | -------------------------------------------------------------------------------- /doc/intuiting-kl/Makefile: -------------------------------------------------------------------------------- 1 | default-target: all 2 | default-target: .PHONY 3 | .PHONY: 4 | 5 | PDFLATEX = pdflatex 6 | 7 | all: .PHONY 8 | all: intuiting-kl.pdf 9 | 10 | clean: .PHONY 11 | clean: clean-intuiting-kl 12 | 13 | clean-intuiting-kl: .PHONY 14 | -rm -f intuiting-kl.aux 15 | -rm -f intuiting-kl.log 16 | -rm -f intuiting-kl.pdf 17 | 18 | .SUFFIXES: .pdf 19 | .SUFFIXES: .tex 20 | 21 | .tex.pdf: 22 | $(PDFLATEX) \\nonstopmode\\input $< 23 | $(PDFLATEX) \\nonstopmode\\input $< 24 | $(PDFLATEX) \\nonstopmode\\input $< 25 | -------------------------------------------------------------------------------- /doc/mvnormal/.gitignore: -------------------------------------------------------------------------------- 1 | /mvnormal.aux 2 | /mvnormal.log 3 | /mvnormal.pdf 4 | -------------------------------------------------------------------------------- /doc/mvnormal/Makefile: -------------------------------------------------------------------------------- 1 | default-target: all 2 | default-target: .PHONY 3 | .PHONY: 4 | 5 | PDFLATEX = pdflatex 6 | 7 | all: .PHONY 8 | all: pdf 9 | 10 | pdf: .PHONY 11 | pdf: mvnormal.pdf 12 | 13 | clean: .PHONY 14 | clean: clean-mvnormal 15 | 16 | mvnormal.pdf: mvnormal.tex 17 | $(PDFLATEX) \\nonstopmode\\input mvnormal 18 | $(PDFLATEX) \\nonstopmode\\input mvnormal 19 | $(PDFLATEX) \\nonstopmode\\input mvnormal 20 | 21 | clean-mvnormal: .PHONY 22 | -rm -f mvnormal.aux 23 | -rm -f mvnormal.log 24 | -rm -f mvnormal.pdf 25 | -------------------------------------------------------------------------------- /doc/sp-math/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.pdf 3 | *.bbl 4 | *.blg 5 | -------------------------------------------------------------------------------- /doc/sp-math/sp-math.bib: -------------------------------------------------------------------------------- 1 | @book{murphy, 2 | author = {Kevin P. Murphy}, 3 | title = {{Machine Learning, A Probabilistic Perspective}}, 4 | publisher = {MIT Press}, 5 | year = 2012, 6 | address = {Cambridge, MA}, 7 | isbn = {9780262018029} 8 | } 9 | -------------------------------------------------------------------------------- /examples/.gitignore: -------------------------------------------------------------------------------- 1 | *venture_random_seed* 2 | *_asymptotics/ 3 | ml-models/ 4 | .ipynb_checkpoints/ 5 | -------------------------------------------------------------------------------- /examples/brownian/.gitignore: -------------------------------------------------------------------------------- 1 | *.png 2 | -------------------------------------------------------------------------------- /examples/brownian/README: -------------------------------------------------------------------------------- 1 | This is an example of several inference schemes operating on 2 | a brownian motion model. 3 | 4 | Interesting properties: 5 | - Custom state visualization showing inference operating. 6 | - Presented at the PPAML PI meeting in July 2014, and reused for the 7 | NIPS 2014 prob prog workshop as part of the abstract on gradients. 8 | - Annoying to test mechanically due to visual+video nature, and 9 | heavy dependency on pygame. 10 | - Hasn't been used or tested since 2014, probably somewhat bit-rotten, 11 | and de-facto abandoned. 12 | -------------------------------------------------------------------------------- /examples/dpmm/.gitignore: -------------------------------------------------------------------------------- 1 | *.png 2 | -------------------------------------------------------------------------------- /examples/dpmm/Makefile: -------------------------------------------------------------------------------- 1 | RESULTS := results-samples.png results-logscore.png results-num_clusters.png 2 | 3 | $(RESULTS): dpmm_example.vnts extensions.py render_dpmm.py Makefile 4 | venture -s 1063234350 -f dpmm_example.vnts -L extensions.py -e 'doit(6, 3, 2, 8, 4)' 5 | -------------------------------------------------------------------------------- /external/ggplot/README: -------------------------------------------------------------------------------- 1 | ggplot: Grammar of Graphics plotting library for Python. 2 | 3 | https://github.com/yhat/ggplot 4 | http://ggplot.yhathq.com/ 5 | 6 | Based on the package for R of the same name at . 7 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot.egg-info/not-zip-safe: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | six 2 | statsmodels 3 | brewer2mpl 4 | matplotlib 5 | scipy 6 | patsy 7 | pandas 8 | numpy 9 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | ggplot 2 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | # For testing purposes we might need to set mpl backend before any 4 | # other import of matplotlib. 5 | def _set_mpl_backend(): 6 | import os 7 | import matplotlib as mpl 8 | 9 | env_backend = os.environ.get('MATPLOTLIB_BACKEND') 10 | if env_backend: 11 | # we were instructed 12 | mpl.use(env_backend) 13 | 14 | _set_mpl_backend() 15 | 16 | # This is the only place the version is specified and 17 | # used in both setup.py and docs/conf.py to set the 18 | # version of ggplot. 19 | __version__ = '0.6.8' 20 | 21 | from .qplot import qplot 22 | from .ggplot import ggplot 23 | from .components import aes 24 | from .coords import * 25 | from .geoms import * 26 | from .stats import * 27 | from .scales import * 28 | from .themes import * 29 | from .utils import * 30 | from .exampledata import (diamonds,mtcars,meat,pageviews,movies) 31 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/coords/__init__.py: -------------------------------------------------------------------------------- 1 | from .coord_equal import coord_equal 2 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/coords/coord_equal.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from copy import deepcopy 4 | 5 | 6 | class coord_equal(object): 7 | 8 | def __radd__(self, gg): 9 | gg = deepcopy(gg) 10 | gg.coord_equal = True 11 | return gg 12 | 13 | 14 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/exampledata/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | import pandas as pd 4 | import matplotlib.image as mpimg 5 | import os 6 | 7 | __all__ = ["diamonds","mtcars","meat","pageviews","movies"] 8 | __all__ = [str(u) for u in __all__] 9 | _ROOT = os.path.abspath(os.path.dirname(__file__)) 10 | 11 | diamonds = pd.read_csv(os.path.join(_ROOT, "diamonds.csv")) 12 | mtcars = pd.read_csv(os.path.join(_ROOT, "mtcars.csv")) 13 | meat = pd.read_csv(os.path.join(_ROOT, "meat.csv"), parse_dates=[0]) 14 | movies = pd.read_csv(os.path.join(_ROOT, "movies.csv")) 15 | pageviews = pd.read_csv(os.path.join(_ROOT, "pageviews.csv"), parse_dates=[0]) 16 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/geoms/bird.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_area.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from .geom import geom 5 | 6 | 7 | class geom_area(geom): 8 | DEFAULT_AES = {'alpha': None, 'color': None, 'fill': '#333333', 9 | 'linetype': 'solid', 'size': 1.0} 10 | REQUIRED_AES = {'x', 'ymax', 'ymin'} 11 | DEFAULT_PARAMS = {'stat': 'identity', 'position': 'stack'} 12 | 13 | _aes_renames = {'linetype': 'linestyle', 'ymin': 'y1', 'ymax': 'y2', 14 | 'size': 'linewidth', 'fill': 'facecolor', 'color': 'edgecolor'} 15 | _units = { 'alpha', 'edgecolor', 'facecolor', 'linestyle', 'linewidth'} 16 | 17 | def _plot_unit(self, pinfo, ax): 18 | pinfo = self.sort_by_x(pinfo) 19 | ax.fill_between(**pinfo) 20 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_blank.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .geom import geom 4 | 5 | 6 | class geom_blank(geom): 7 | DEFAULT_AES = {} 8 | REQUIRED_AES = set() 9 | DEFAULT_PARAMS = {'stat': 'identity', 'position': 'identity'} 10 | 11 | _aes_renames = {} 12 | _units = set() 13 | 14 | def _plot_unit(self, pinfo, ax): 15 | pass 16 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_histogram.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .geom_bar import geom_bar 4 | 5 | geom_histogram = geom_bar 6 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_jitter.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .geom_point import geom_point 4 | 5 | class geom_jitter(geom_point): 6 | def __init__(self, *args, **kwargs): 7 | # jitter is just a special case of geom_point, so we'll just use 8 | # geom_point and then enforce jitter 9 | super(geom_point, self).__init__(*args, **kwargs) 10 | self.manual_aes['position'] = "jitter" 11 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_now_its_art.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | import matplotlib.image as mpimg 4 | from .geom import geom 5 | import os 6 | 7 | _ROOT = os.path.abspath(os.path.dirname(__file__)) 8 | 9 | 10 | class geom_now_its_art(geom): 11 | DEFAULT_AES = {'alpha': 0.5} 12 | DEFAULT_PARAMS = {'stat': 'identity', 'position': 'identity'} 13 | 14 | def _plot_unit(self, pinfo, ax): 15 | img = mpimg.imread(os.path.join(_ROOT, 'bird.png')) 16 | ax.imshow(img, alpha=pinfo['alpha']) 17 | print ("Put a bird on it!") 18 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_path.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | import matplotlib as mpl 4 | from .geom import geom 5 | import numpy as np 6 | 7 | class geom_path(geom): 8 | DEFAULT_AES = {'alpha': None, 'color': 'black', 'linetype': 'solid', 9 | 'size': 1.0} 10 | 11 | REQUIRED_AES = {'x', 'y'} 12 | DEFAULT_PARAMS = {'stat': 'identity', 'position': 'identity'} 13 | 14 | _aes_renames = {'size': 'linewidth', 'linetype': 'linestyle'} 15 | _units = {'alpha', 'color', 'linestyle', 'linewidth'} 16 | 17 | def _plot_unit(self, pinfo, ax): 18 | x = pinfo.pop('x') 19 | y = pinfo.pop('y') 20 | ax.plot(x, y, **pinfo) 21 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/geoms/geom_step.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .geom import geom 4 | 5 | # TODO: Needs testing 6 | class geom_step(geom): 7 | 8 | DEFAULT_AES = {'color': 'black', 'alpha': None, 'linetype': 'solid', 9 | 'size': 1.0} 10 | REQUIRED_AES = {'x', 'y'} 11 | DEFAULT_PARAMS = {'stat': 'identity', 'position': 'identity', 12 | 'direction': 'hv'} 13 | 14 | _aes_renames = {'size': 'linewidth', 'linetype': 'linestyle'} 15 | _units = {'alpha', 'color', 'linestyle', 'linewidth'} 16 | 17 | def _plot_unit(self, pinfo, ax): 18 | x = pinfo.pop('x') 19 | y = pinfo.pop('y') 20 | 21 | x_stepped = [] 22 | y_stepped = [] 23 | # TODO: look into this? 24 | # seems off and there are no test cases 25 | for i in range(len(x) - 1): 26 | x_stepped.append(x[i]) 27 | x_stepped.append(x[i+1]) 28 | y_stepped.append(y[i]) 29 | y_stepped.append(y[i]) 30 | 31 | ax.plot(x_stepped, y_stepped, **pinfo) 32 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | class scale(object): 5 | VALID_SCALES = [] 6 | def __init__(self, *args, **kwargs): 7 | for s in self.VALID_SCALES: 8 | setattr(self, s, None) 9 | 10 | if args: 11 | self.name = args[0] 12 | 13 | for k, v in kwargs.items(): 14 | if k in self.VALID_SCALES: 15 | setattr(self, k, v) 16 | 17 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale_axis.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | # default 1st argument is the name 4 | class scale(object): 5 | VALID_SCALES = ['name', 'limits', 'breaks', 'trans'] 6 | def __init__(self, *args, **kwargs): 7 | for s in self.VALID_SCALES: 8 | setattr(self, s, None) 9 | 10 | if args: 11 | self.name = args[0] 12 | 13 | for k, v in kwargs.items(): 14 | if k in self.VALID_SCALES: 15 | setattr(self, k, v) 16 | 17 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale_log.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .scale import scale 4 | from copy import deepcopy 5 | 6 | 7 | class scale_y_log(scale): 8 | def __init__(self, base=10): 9 | self.base = base 10 | def __radd__(self, gg): 11 | gg = deepcopy(gg) 12 | gg.scale_y_log = self.base 13 | return gg 14 | 15 | 16 | class scale_x_log(scale): 17 | def __init__(self, base=10): 18 | self.base = base 19 | def __radd__(self, gg, base=10): 20 | gg = deepcopy(gg) 21 | gg.scale_x_log = self.base 22 | return gg 23 | 24 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale_reverse.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | from .scale import scale 4 | from copy import deepcopy 5 | 6 | 7 | class scale_y_reverse(scale): 8 | 9 | def __radd__(self, gg): 10 | gg = deepcopy(gg) 11 | gg.scale_y_reverse = True 12 | return gg 13 | 14 | 15 | class scale_x_reverse(scale): 16 | def __radd__(self, gg): 17 | gg = deepcopy(gg) 18 | gg.scale_x_reverse = True 19 | return gg 20 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale_x_discrete.py: -------------------------------------------------------------------------------- 1 | from .scale import scale 2 | from copy import deepcopy 3 | 4 | class scale_x_discrete(scale): 5 | """ 6 | Scale x axis as discrete values 7 | 8 | Parameters 9 | ---------- 10 | breaks: list 11 | maps to xbreaks 12 | labels: list, dict 13 | maps to xtick_labels 14 | 15 | Examples 16 | -------- 17 | >>> print ggplot(mtcars, aes('mpg', 'qsec')) + \ 18 | ... geom_point() + \ 19 | ... scale_x_discrete(breaks=[10,20,30], \ 20 | ... labels=["horrible", "ok", "awesome"]) 21 | 22 | """ 23 | VALID_SCALES = ['name', 'limits', 'labels', 'breaks', 'trans'] 24 | def __radd__(self, gg): 25 | gg = deepcopy(gg) 26 | if self.name: 27 | gg.xlab = self.name 28 | if not (self.limits is None): 29 | gg.xlimits = self.limits 30 | if not (self.breaks is None): 31 | gg.xbreaks = self.breaks 32 | if not (self.labels is None): 33 | gg.xtick_labels = self.labels 34 | return gg 35 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/scales/scale_y_discrete.py: -------------------------------------------------------------------------------- 1 | from .scale import scale 2 | from copy import deepcopy 3 | 4 | class scale_y_discrete(scale): 5 | """ 6 | Scale y axis as discrete values 7 | 8 | Parameters 9 | ---------- 10 | breaks: list 11 | maps to ybreaks 12 | labels: list, dict 13 | maps to ytick_labels 14 | 15 | Examples 16 | -------- 17 | >>> print ggplot(mtcars, aes('mpg', 'qsec')) + \ 18 | ... geom_point() + \ 19 | ... scale_y_discrete(breaks=[10,20,30], \ 20 | ... labels=["horrible", "ok", "awesome"]) 21 | 22 | """ 23 | VALID_SCALES = ['name', 'limits', 'labels', 'breaks', 'trans'] 24 | def __radd__(self, gg): 25 | gg = deepcopy(gg) 26 | if self.name: 27 | gg.ylab = self.name 28 | if not (self.limits is None): 29 | gg.ylimits = self.limits 30 | if not (self.breaks is None): 31 | gg.ybreaks = self.breaks 32 | if not (self.labels is None): 33 | gg.ytick_labels = self.labels 34 | return gg 35 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/stats/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from .stat_abline import stat_abline 5 | from .stat_bin import stat_bin 6 | from .stat_bin2d import stat_bin2d 7 | from .stat_density import stat_density 8 | from .stat_function import stat_function 9 | from .stat_hline import stat_hline 10 | from .stat_identity import stat_identity 11 | from .stat_smooth import stat_smooth 12 | from .stat_summary import stat_summary 13 | from .stat_vline import stat_vline 14 | from .stat_bar import stat_bar 15 | 16 | __all__ = ['stat_abline', 'stat_bin', 'stat_bin2d', 'stat_density', 17 | 'stat_function', 'stat_hline', 'stat_identity', 18 | 'stat_smooth', 'stat_summary', 'stat_vline'] 19 | __all__ = [str(u) for u in __all__] 20 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/stats/stat_identity.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from .stat import stat 5 | 6 | 7 | class stat_identity(stat): 8 | DEFAULT_PARAMS = {'geom': 'point', 'position': 'identity', 9 | 'width': None, 'height': None} 10 | 11 | def _calculate(self, data): 12 | return data 13 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/Thumbs.db -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_big.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_facet.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/diamonds_small.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_complicated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_complicated.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_bar.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_line.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_point.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_point_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/factor_geom_point_line.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_area.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_area.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_area_facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_area_facet.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density_alpha.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density_facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_density_facet.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_hist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_hist.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_hist_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_hist_title.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_line_facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_line_facet.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_point.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_point_vline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_point_vline.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_rect_inv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_rect_inv.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/geom_text.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/labs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/labs.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/partial_limits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/partial_limits.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/partial_limits_facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/partial_limits_facet.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/point_smooth_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/point_smooth_se.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale1.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale_color_brewer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale_color_brewer.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/scale_date.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/smooth_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/smooth_se.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/stat_bin2d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/stat_bin2d.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/stat_smooth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/stat_smooth.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_basic/ylim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_basic/ylim.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/all_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/all_text.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_text.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_title.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_title_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/axis_title_text.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/legend_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/legend_title.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/plot_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_element_text/plot_title.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_faceting/faceting_grid_continous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_faceting/faceting_grid_continous.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_faceting/faceting_wrap_continous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_faceting/faceting_wrap_continous.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom/geom_with_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom/geom_with_data.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/Thumbs.db -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/color_hist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/color_hist.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/facet_colors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/facet_colors.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/faceting_grid_discrete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/faceting_grid_discrete.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/faceting_wrap_discrete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/faceting_wrap_discrete.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/geom_hist_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/geom_hist_date.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/labels_auto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/labels_auto.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/labels_manual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_bar/labels_manual.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_bar-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_bar-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_bar.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_hist-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_hist-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_hist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_dotplot/geom_dotplot_hist.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_linerange/geom_linerange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_linerange/geom_linerange.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_functions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_functions.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_mapped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_mapped.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_multiple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_abline_multiple.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_festival_of_lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_festival_of_lines.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_function.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_mapped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_mapped.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_multiple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_hline_multiple.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_function.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_mapped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_mapped.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_multiple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_lines/geom_vline_multiple.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_pointrange/geom_pointrange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_pointrange/geom_pointrange.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_rect/geom_rect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_rect/geom_rect.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_geom_rect/geom_rect_with_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_geom_rect/geom_rect_with_point.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_ggplot_internals/axis_changes_to_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_ggplot_internals/axis_changes_to_all.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_ggplot_internals/geom_point_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_ggplot_internals/geom_point_marker.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_legend/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_legend/Thumbs.db -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_alpha.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_alpha_rect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_alpha_rect.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_linetype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_linetype.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_shape_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_legend/legend_shape_alpha.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/density_with_fill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/density_with_fill.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/diamonds_carat_hist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/diamonds_carat_hist.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/diamonds_geom_point_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/diamonds_geom_point_alpha.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/geom_density_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/geom_density_example.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/ggplot_demo_beef.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/ggplot_demo_beef.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/ggplot_meat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/ggplot_meat.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/mtcars_geom_bar_cyl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_readme_examples/mtcars_geom_bar_cyl.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_both_reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_both_reverse.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_without_reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_without_reverse.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_x_reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_x_reverse.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_y_reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_reverse/scale_y_reverse.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/first_ax_not_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/first_ax_not_off.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free_x.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free_y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/free_y.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/none.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_facet_wrap/none.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_both_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_both_log.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_both_log_base2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_both_log_base2.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_without_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_without_log.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_x_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_x_log.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_y_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_scale_log/scale_y_log.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_args.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_args.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_dict_args.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_dict_args.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_dnorm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_dnorm.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_sin_vs_cos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_function/fun_sin_vs_cos.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/default.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/fun_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/fun_data.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/fun_y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_stat_summary/fun_y.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme/general_first.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme/general_first.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme/general_last.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme/general_last.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme/red_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme/red_text.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_bw/theme_bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_bw/theme_bw.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_gray/theme_gray_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_gray/theme_gray_default.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_gray/theme_gray_explicit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_gray/theme_gray_explicit.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean2-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean2-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_clean2.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_after-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_after-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_after.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_after.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_before-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_before-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_all_before.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_completly-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_completly-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_completly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_completly.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_only_one-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_only_one-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_only_one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_mpl/theme_mpl_only_one.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_seaborn/theme_seaborn-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_seaborn/theme_seaborn-expected.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/baseline_images/test_theme_seaborn/theme_seaborn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/ggplot/dist/ggplot/tests/baseline_images/test_theme_seaborn/theme_seaborn.png -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_geom_linerange.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from . import get_assert_same_ggplot, cleanup 5 | assert_same_ggplot = get_assert_same_ggplot(__file__) 6 | 7 | from ggplot import * 8 | 9 | import numpy as np 10 | import pandas as pd 11 | 12 | 13 | def _build_testing_df(): 14 | rst = np.random.RandomState(42) 15 | x = np.linspace(0.5, 9.5, num=10) 16 | y = rst.randn(10) 17 | ymin = y - rst.uniform(0, 1, size=10) 18 | ymax = y + rst.uniform(0, 1, size=10) 19 | 20 | df = pd.DataFrame({'x': x, 'y': y, 'ymin': ymin, 'ymax': ymax}) 21 | return df 22 | 23 | 24 | @cleanup 25 | def test_geom_linerange(): 26 | df = _build_testing_df() 27 | gg = ggplot(aes(x="x", y="y", ymin="ymin", ymax="ymax"), data=df) 28 | gg = gg + geom_linerange() 29 | assert_same_ggplot(gg, "geom_linerange") 30 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_geom_pointrange.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from . import get_assert_same_ggplot, cleanup 5 | assert_same_ggplot = get_assert_same_ggplot(__file__) 6 | 7 | from ggplot import * 8 | 9 | import numpy as np 10 | import pandas as pd 11 | 12 | 13 | def _build_testing_df(): 14 | rst = np.random.RandomState(42) 15 | x = np.linspace(0.5, 9.5, num=10) 16 | y = rst.randn(10) 17 | ymin = y - rst.uniform(0, 1, size=10) 18 | ymax = y + rst.uniform(0, 1, size=10) 19 | 20 | df = pd.DataFrame({'x': x, 'y': y, 'ymin': ymin, 'ymax': ymax}) 21 | return df 22 | 23 | 24 | @cleanup 25 | def test_geom_pointrange(): 26 | df = _build_testing_df() 27 | gg = ggplot(aes(x="x", y="y", ymin="ymin", ymax="ymax"), data=df) 28 | gg = gg + geom_pointrange() 29 | assert_same_ggplot(gg, "geom_pointrange") 30 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_scale_log.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from nose.tools import assert_equal, assert_true, assert_raises 5 | 6 | from . import get_assert_same_ggplot, cleanup 7 | assert_same_ggplot = get_assert_same_ggplot(__file__) 8 | 9 | import numpy as np 10 | import pandas as pd 11 | 12 | from ggplot import * 13 | 14 | 15 | @cleanup 16 | def test_scale_log(): 17 | df = pd.DataFrame({"x": np.linspace(0, 10, 10), 18 | "y": np.linspace(0, 3, 10),}) 19 | 20 | df['y'] = 10.**df.y 21 | 22 | gg = ggplot(aes(x="x", y="y"), data=df) + geom_line() 23 | 24 | assert_same_ggplot(gg, 'scale_without_log') 25 | assert_same_ggplot(gg + scale_y_log(),'scale_y_log') 26 | assert_same_ggplot(gg + scale_x_log(),'scale_x_log') 27 | assert_same_ggplot(gg + scale_x_log()+ scale_y_log(),'scale_both_log') 28 | assert_same_ggplot(gg + scale_x_log(2)+ scale_y_log(2),'scale_both_log_base2') 29 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_theme_bw.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from nose.tools import assert_true 5 | from ..tests import image_comparison 6 | 7 | from ggplot import * 8 | 9 | 10 | @image_comparison(baseline_images=['theme_bw'], extensions=["png"]) 11 | def test_theme_bw1(): 12 | gg = ggplot(aes(x='date', y='beef'), data=meat) + \ 13 | geom_point(color='lightblue') + \ 14 | stat_smooth(span=.15, color='black', se=True) + \ 15 | ggtitle("Beef: It's What's for Dinner") + \ 16 | xlab("Date") + \ 17 | ylab("Head of Cattle Slaughtered") 18 | gg_theme = gg + theme_bw() 19 | assert_true(isinstance(gg_theme.theme, theme_bw)) 20 | print(gg_theme) 21 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_theme_gray.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from nose.tools import assert_true 5 | from ..tests import image_comparison 6 | 7 | from ggplot import * 8 | 9 | @image_comparison(baseline_images=['theme_gray_default'], extensions=["png"]) 10 | def test_theme_gray1(): 11 | #theme_gray is the default 12 | gg = ggplot(aes(x='date', y='beef'), data=meat) + \ 13 | geom_point(color='lightblue') + \ 14 | stat_smooth(span=.15, color='black', se=True) + \ 15 | ggtitle("Beef: It's What's for Dinner") + \ 16 | xlab("Date") + \ 17 | ylab("Head of Cattle Slaughtered") 18 | assert_true(isinstance(gg.theme, theme_gray)) 19 | print(gg) 20 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/tests/test_theme_seaborn.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from nose.tools import assert_is_instance 5 | from ..tests import image_comparison 6 | 7 | from ggplot import * 8 | 9 | @image_comparison(baseline_images=['theme_seaborn']) 10 | def test_theme_matplotlib2(): 11 | gg = ggplot(aes(x='date', y='beef'), data=meat) + \ 12 | geom_point(color='lightblue') + \ 13 | stat_smooth(span=.15, color='black', se=True) + \ 14 | ggtitle("Beef: It's What's for Dinner") + \ 15 | xlab("Date") + \ 16 | ylab("Head of Cattle Slaughtered") 17 | gg_theme = gg + theme_seaborn() 18 | assert_is_instance(gg_theme.theme, theme_seaborn) 19 | print(gg_theme) 20 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/themes/__init__.py: -------------------------------------------------------------------------------- 1 | from .theme import theme 2 | from .theme_538 import theme_538 3 | from .theme_bw import theme_bw 4 | from .theme_gray import theme_gray 5 | from .theme_xkcd import theme_xkcd 6 | from .theme_matplotlib import theme_matplotlib 7 | from .theme_seaborn import theme_seaborn 8 | from .element_text import element_text 9 | 10 | __all__ = ["theme", "theme_538", "theme_bw", "theme_gray", "theme_xkcd", 11 | "theme_matplotlib", "theme_seaborn", "element_text"] 12 | __all__ = [str(u) for u in __all__] 13 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/themes/theme_bw.py: -------------------------------------------------------------------------------- 1 | from .theme_gray import theme_gray 2 | 3 | 4 | class theme_bw(theme_gray): 5 | """ 6 | White background w/ black gridlines 7 | """ 8 | 9 | def __init__(self): 10 | super(theme_bw, self).__init__() 11 | self._rcParams['axes.facecolor'] = 'white' 12 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/utils/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | from .ggutils import ggsave, add_ggplotrc_params 5 | from .date_breaks import date_breaks 6 | from .date_format import date_format 7 | from .utils import (pop, is_categorical, is_string, is_scalar_or_string, 8 | is_sequence_of_booleans, is_sequence_of_strings, 9 | make_iterable, make_iterable_ntimes) 10 | 11 | __all__ = ["ggsave", "date_breaks", "date_format", "add_ggplotrc_params"] 12 | __all__ = [str(u) for u in __all__] 13 | 14 | class _rc_context(object): 15 | def __init__(self, fname=None): 16 | self.fname = fname 17 | def __enter__(self): 18 | import matplotlib as mpl 19 | self._rcparams = mpl.rcParams.copy() 20 | if self.fname: 21 | mpl.rcfile(self.fname) 22 | def __exit__(self, type, value, tb): 23 | import matplotlib as mpl 24 | mpl.rcParams.update(self._rcparams) 25 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/utils/date_format.py: -------------------------------------------------------------------------------- 1 | from matplotlib.dates import DateFormatter 2 | 3 | def date_format(format='%Y-%m-%d'): 4 | """ 5 | "Formatted dates." 6 | 7 | Arguments: 8 | format => Date format using standard strftime format. 9 | 10 | Example: 11 | date_format('%b-%y') 12 | date_format('%B %d, %Y') 13 | """ 14 | return DateFormatter(format) 15 | -------------------------------------------------------------------------------- /external/ggplot/dist/ggplot/utils/exceptions.py: -------------------------------------------------------------------------------- 1 | from __future__ import (absolute_import, division, print_function, 2 | unicode_literals) 3 | 4 | 5 | class GgplotError(Exception): 6 | """ 7 | Exception for ggplot errors 8 | """ 9 | def __init__(self, *args): 10 | self.message = " ".join(args) 11 | 12 | def __str__(self): 13 | return repr(self.message) -------------------------------------------------------------------------------- /external/ggplot/dist/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [egg_info] 5 | tag_build = 6 | tag_date = 0 7 | tag_svn_revision = 0 8 | 9 | -------------------------------------------------------------------------------- /external/lemonade/COPYING: -------------------------------------------------------------------------------- 1 | public domain 2 | -------------------------------------------------------------------------------- /external/lemonade/README: -------------------------------------------------------------------------------- 1 | lemonade - LALR parser generator for Python 2 | 3 | https://pypi.python.org/pypi/lemonade 4 | 5 | Ported to Python from the LEMON parser generator by D. Richard Hipp: 6 | 7 | http://www.hwaci.com/sw/lemon/ 8 | 9 | We have back-ported some bug fixes from LEMON into our copy of 10 | lemonade, since upstream does not appear to be maintained. (Upstream 11 | author responded to email but then vanished.) 12 | -------------------------------------------------------------------------------- /external/lemonade/dist/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include MANIFEST.in 2 | include lemonade/lempar.tmpl 3 | recursive-include examples *.py *.y 4 | -------------------------------------------------------------------------------- /external/lemonade/dist/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 1.0 2 | Name: lemonade 3 | Version: 1.0b1 4 | Summary: Port of the LEMON Parser Generator 5 | Home-page: UNKNOWN 6 | Author: Leif Strand 7 | Author-email: leif@cacr.caltech.edu 8 | License: UNKNOWN 9 | Description: UNKNOWN 10 | Platform: UNKNOWN 11 | Classifier: License :: Public Domain 12 | Classifier: Development Status :: 4 - Beta 13 | Classifier: Programming Language :: Python :: 2 14 | Classifier: Intended Audience :: Developers 15 | Classifier: Topic :: Software Development :: Code Generators 16 | Classifier: Topic :: Software Development :: Compilers 17 | -------------------------------------------------------------------------------- /external/lemonade/dist/README: -------------------------------------------------------------------------------- 1 | 2 | Lemonade is a Python port of the LEMON Parser Generator written by 3 | D. Richard Hipp: 4 | 5 | http://www.hwaci.com/sw/lemon/ 6 | 7 | Lemonade can be used in the traditional fashion to create a standalone 8 | parser: 9 | 10 | lemonade gram.y 11 | 12 | The above command generates "gram.py", which you can include in your 13 | project. 14 | 15 | Since Python is a dynamic language, Lemonade could also enable client 16 | software to generate a parser from a user-supplied .y file, and then 17 | use the generated parser on the fly. 18 | 19 | This is the beta release of Lemonade. There is no documentation yet. 20 | You may find the original LEMON documentation helpful: 21 | 22 | http://www.hwaci.com/sw/lemon/lemon.html 23 | 24 | However, many of LEMON's "%" directives are irrelevant in Python; 25 | therefore, they have been eliminated in Lemonade. Further, Lemonade 26 | does not allow code fragments ("{}") within the grammar file. 27 | Instead, the reduce actions are specified in a separate delegate 28 | class. See the 'examples' directory for an example. 29 | 30 | ---- 31 | Leif Strand 32 | August 28, 2012 33 | 34 | -------------------------------------------------------------------------------- /external/lemonade/dist/bin/lemonade: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from lemonade.main import main 4 | import sys 5 | 6 | sys.exit(main(sys.argv)) 7 | 8 | -------------------------------------------------------------------------------- /external/lemonade/dist/examples/calc/gram.y: -------------------------------------------------------------------------------- 1 | 2 | %left PLUS MINUS. 3 | %left DIVIDE TIMES. 4 | 5 | program(print_result) ::= expr(result). 6 | 7 | expr(sub) ::= expr(a) MINUS expr(b). 8 | expr(add) ::= expr(a) PLUS expr(b). 9 | expr(mul) ::= expr(a) TIMES expr(b). 10 | expr(div) ::= expr(a) DIVIDE expr(b). 11 | 12 | expr(num) ::= NUM(value). 13 | 14 | -------------------------------------------------------------------------------- /external/lemonade/dist/lemonade/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/probcomp/Venturecxx/6fb998651084eb280acb016445ae243663630e5b/external/lemonade/dist/lemonade/__init__.py -------------------------------------------------------------------------------- /external/lemonade/dist/lemonade/exceptions.py: -------------------------------------------------------------------------------- 1 | 2 | class BadGrammarError(Exception): 3 | pass 4 | 5 | class EmptyGrammarError(BadGrammarError): 6 | pass 7 | 8 | -------------------------------------------------------------------------------- /external/lemonade/dist/lemonade/plink.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Routines processing configuration follow-set propagation links in the 3 | LEMON parser generator. 4 | ''' 5 | 6 | 7 | def Plink_add(plpp, cfp): 8 | '''Add a plink to a plink list.''' 9 | from struct import plink 10 | new = plink( 11 | next = plpp, 12 | cfp = cfp 13 | ) 14 | return new 15 | 16 | 17 | def Plink_copy(to, _from): 18 | '''Transfer every plink on the list "from" to the list "to".''' 19 | while _from: 20 | nextpl = _from.next 21 | _from.next = to 22 | to = _from 23 | _from = nextpl 24 | return to 25 | 26 | -------------------------------------------------------------------------------- /external/lemonade/dist/lemonade/set.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Set manipulation routines for the LEMON parser generator. 3 | ''' 4 | 5 | size = 0 6 | 7 | 8 | def SetSize(n): 9 | '''Set the set size.''' 10 | global size 11 | size = n + 1 12 | return 13 | 14 | 15 | def SetNew(): 16 | '''Allocate a new set.''' 17 | return [False] * size 18 | 19 | 20 | def SetAdd(s, e): 21 | '''Add a new element to the set. Return True if the element was 22 | added and False if it was already there. 23 | ''' 24 | rv = s[e] 25 | s[e] = True 26 | return not rv 27 | 28 | 29 | def SetUnion(s1, s2): 30 | '''Add every element of s2 to s1. Return True if s1 changes.''' 31 | progress = False 32 | for i in range(size): 33 | if not s2[i]: 34 | continue 35 | if not s1[i]: 36 | progress = True 37 | s1[i] = True 38 | return progress 39 | 40 | 41 | def SetFind(X, Y): 42 | '''True if Y is in set X.''' 43 | return X[Y] 44 | 45 | -------------------------------------------------------------------------------- /external/lemonade/dist/setup.py: -------------------------------------------------------------------------------- 1 | 2 | from distutils.core import setup 3 | 4 | setup(name = 'lemonade', 5 | version = '1.0b1', 6 | description = 'Port of the LEMON Parser Generator', 7 | 8 | scripts = ['bin/lemonade'], 9 | packages = ['lemonade'], 10 | package_data = { 'lemonade': ['lempar.tmpl'] }, 11 | 12 | classifiers = [ 13 | 'License :: Public Domain', 14 | 'Development Status :: 4 - Beta', 15 | 'Programming Language :: Python :: 2', 16 | 'Intended Audience :: Developers', 17 | 'Topic :: Software Development :: Code Generators', 18 | 'Topic :: Software Development :: Compilers', 19 | ], 20 | 21 | author = 'Leif Strand', 22 | author_email = 'leif@cacr.caltech.edu', 23 | ) 24 | -------------------------------------------------------------------------------- /external/plex/COPYING: -------------------------------------------------------------------------------- 1 | Plex is free of any restrictions. You can use it, redistribute it, 2 | sell it, whatever you want. All I ask is that you give me credit if 3 | you distribute any code derived from it. 4 | 5 | 6 | Greg Ewing, 7 | Computer Science Department, 8 | University of Canterbury, 9 | Christchurch, 10 | New Zealand 11 | 12 | greg@cosc.canterbury.ac.nz 13 | -------------------------------------------------------------------------------- /external/plex/README: -------------------------------------------------------------------------------- 1 | plex - lexical analyzer 2 | 3 | http://www.cosc.canterbury.ac.nz/greg.ewing/python/Plex/ 4 | -------------------------------------------------------------------------------- /external/plex/dist/Makefile: -------------------------------------------------------------------------------- 1 | VERSION = 1.1.5 2 | TAR = ../Plex-$(VERSION).tar 3 | tar: clean 4 | tar cvf $(TAR) * 5 | rm -f $(TAR).gz 6 | gzip $(TAR) 7 | 8 | clean: 9 | rm -f */*.pyc *~ */*~ */*.dump tests/*.out2 tests/*.err 10 | 11 | -------------------------------------------------------------------------------- /external/plex/dist/Plex/Timing.py: -------------------------------------------------------------------------------- 1 | # 2 | # Get time in platform-dependent way 3 | # 4 | 5 | import os 6 | from sys import platform, exit, stderr 7 | 8 | if platform == 'mac': 9 | import MacOS 10 | def time(): 11 | return MacOS.GetTicks() / 60.0 12 | timekind = "real" 13 | elif hasattr(os, 'times'): 14 | def time(): 15 | t = os.times() 16 | return t[0] + t[1] 17 | timekind = "cpu" 18 | else: 19 | stderr.write( 20 | "Don't know how to get time on platform %s\n" % repr(platform)) 21 | exit(1) 22 | 23 | -------------------------------------------------------------------------------- /external/plex/dist/Plex/test_tm.py: -------------------------------------------------------------------------------- 1 | import sys 2 | sys.stderr = sys.stdout 3 | 4 | from TransitionMaps import TransitionMap 5 | 6 | m = TransitionMap() 7 | print m 8 | 9 | def add(c, s): 10 | print 11 | print "adding", repr(c), "-->", repr(s) 12 | m.add_transition(c, s) 13 | print m 14 | print "keys:", m.keys() 15 | 16 | add('a','alpha') 17 | add('e', 'eta') 18 | add('f', 'foo') 19 | add('i', 'iota') 20 | add('i', 'imp') 21 | add('eol', 'elephant') 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /external/plex/dist/TODO: -------------------------------------------------------------------------------- 1 | * Multiple state names in State constructor 2 | 3 | * Implement scanning in C 4 | 5 | * Case-insensitivity flag 6 | 7 | * Trailing contexts? 8 | 9 | * Make Action a callable object 10 | 11 | * Action sequences 12 | 13 | * Hook up to existing parser module 14 | 15 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example1and2.in: -------------------------------------------------------------------------------- 1 | Python rocks 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example1and2.py: -------------------------------------------------------------------------------- 1 | # 2 | # Example 1 3 | # 4 | 5 | from Plex import * 6 | 7 | lexicon = Lexicon([ 8 | (Str("Python"), "my_favourite_language"), 9 | (Str("Perl"), "the_other_language"), 10 | (Str("rocks"), "is_excellent"), 11 | (Str("sucks"), "is_differently_good"), 12 | (Rep1(Any(" \t\n")), IGNORE) 13 | ]) 14 | 15 | # 16 | # Example 2 17 | # 18 | 19 | filename = "example1and2.in" 20 | f = open(filename, "r") 21 | scanner = Scanner(lexicon, f, filename) 22 | while 1: 23 | token = scanner.read() 24 | print token 25 | if token[0] is None: 26 | break 27 | 28 | 29 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example3.in: -------------------------------------------------------------------------------- 1 | if x > y * 5 then 2 | b = c / d 3 | else 4 | Python = handy + useful 5 | end 6 | 7 | 8 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example3.py: -------------------------------------------------------------------------------- 1 | # 2 | # Example 3 3 | # 4 | 5 | from Plex import * 6 | 7 | letter = Range("AZaz") 8 | digit = Range("09") 9 | name = letter + Rep(letter | digit) 10 | number = Rep1(digit) 11 | space = Any(" \t\n") 12 | comment = Str("{") + Rep(AnyBut("}")) + Str("}") 13 | 14 | resword = Str("if", "then", "else", "end") 15 | 16 | lexicon = Lexicon([ 17 | (name, 'ident'), 18 | (number, 'int'), 19 | (resword, TEXT), 20 | (Any("+-*/=<>"), TEXT), 21 | (space | comment, IGNORE) 22 | ]) 23 | 24 | filename = "example3.in" 25 | f = open(filename, "r") 26 | scanner = Scanner(lexicon, f, filename) 27 | while 1: 28 | token = scanner.read() 29 | print token 30 | if token[0] is None: 31 | break 32 | 33 | 34 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example4.in: -------------------------------------------------------------------------------- 1 | alpha beta (*spam (*and*) eggs*) gamma 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example4.py: -------------------------------------------------------------------------------- 1 | # 2 | # Example 4 3 | # 4 | 5 | from Plex import * 6 | 7 | def begin_comment(scanner, text): 8 | scanner.nesting_level = scanner.nesting_level + 1 9 | 10 | def end_comment(scanner, text): 11 | scanner.nesting_level = scanner.nesting_level - 1 12 | 13 | def maybe_a_name(scanner, text): 14 | if scanner.nesting_level == 0: 15 | return 'ident' 16 | 17 | letter = Range("AZaz") 18 | digit = Range("09") 19 | name = letter + Rep(letter | digit) 20 | space = Any(" \t\n") 21 | 22 | lexicon = Lexicon([ 23 | (Str("(*"), begin_comment), 24 | (Str("*)"), end_comment), 25 | (name, maybe_a_name), 26 | (space, IGNORE) 27 | ]) 28 | 29 | filename = "example4.in" 30 | f = open(filename, "r") 31 | scanner = Scanner(lexicon, f, filename) 32 | scanner.nesting_level = 0 33 | while 1: 34 | token = scanner.read() 35 | print token 36 | if token[0] is None: 37 | break 38 | 39 | 40 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example5.in: -------------------------------------------------------------------------------- 1 | alpha beta (*spam and 42 eggs*) gamma 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example5.py: -------------------------------------------------------------------------------- 1 | # 2 | # Example 5 3 | # 4 | 5 | from Plex import * 6 | 7 | letter = Range("AZaz") 8 | digit = Range("09") 9 | name = letter + Rep(letter | digit) 10 | number = Rep1(digit) 11 | space = Any(" \t\n") 12 | 13 | lexicon = Lexicon([ 14 | (name, 'ident'), 15 | (number, 'int'), 16 | (space, IGNORE), 17 | (Str("(*"), Begin('comment')), 18 | State('comment', [ 19 | (Str("*)"), Begin('')), 20 | (AnyChar, IGNORE) 21 | ]) 22 | ]) 23 | 24 | filename = "example5.in" 25 | f = open(filename, "r") 26 | scanner = Scanner(lexicon, f, filename) 27 | while 1: 28 | token = scanner.read() 29 | print token 30 | if token[0] is None: 31 | break 32 | 33 | 34 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example6.in: -------------------------------------------------------------------------------- 1 | alpha beta (*spam and*) {42 eggs} gamma 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example6.py: -------------------------------------------------------------------------------- 1 | # 2 | # Example 6 3 | # 4 | 5 | from Plex import * 6 | 7 | letter = Range("AZaz") 8 | digit = Range("09") 9 | name = letter + Rep(letter | digit) 10 | number = Rep1(digit) 11 | space = Any(" \t\n") 12 | 13 | lexicon = Lexicon([ 14 | (name, 'ident'), 15 | (number, 'int'), 16 | (space, IGNORE), 17 | (Str("(*"), Begin('comment1')), 18 | (Str("{"), Begin('comment2')), 19 | State('comment1', [ 20 | (Str("*)"), Begin('')), 21 | (AnyChar, IGNORE) 22 | ]), 23 | State('comment2', [ 24 | (Str("}"), Begin('')), 25 | (AnyChar, IGNORE) 26 | ]) 27 | ]) 28 | 29 | filename = "example6.in" 30 | f = open(filename, "r") 31 | scanner = Scanner(lexicon, f, filename) 32 | while 1: 33 | token = scanner.read() 34 | print token 35 | if token[0] is None: 36 | break 37 | 38 | 39 | -------------------------------------------------------------------------------- /external/plex/dist/examples/example7.in: -------------------------------------------------------------------------------- 1 | alpha beta (*spam and (*42*) eggs*) gamma 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/examples/pascal.in: -------------------------------------------------------------------------------- 1 | { Test input for the 2 | Plex Pascal scanner } 3 | 4 | program spam(input, output); 5 | var 6 | order: integer; 7 | begin 8 | write('How many spoons of spam would you like with your eggs, sir? '); 9 | readln(order); 10 | if order >= 1 then 11 | writeln('Certainly, sir.') 12 | else 13 | writeln('Sorry, sir, invalid order.') 14 | end 15 | end. 16 | 17 | -------------------------------------------------------------------------------- /external/plex/dist/examples/python.in: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | # This, in case you didn't notice, is a comment. 4 | 5 | def gcd(x, y): 6 | while x <> y: 7 | if x > y: # This is another comment. 8 | print "x is bigger" 9 | x = x - y 10 | # This comment doesn't imply any indentation. 11 | else: 12 | 13 | print "y is bigger" 14 | y = y - x 15 | return x 16 | 17 | def go(): 18 | for x, y in [(12,20), (37,18), (2, 54)]: 19 | print gcd\ 20 | (x, y) 21 | 22 | 23 | -------------------------------------------------------------------------------- /external/plex/dist/examples/speedtest.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | import Plex 5 | import pascal 6 | 7 | if sys.platform == 'mac': 8 | import MacOS 9 | def time(): 10 | return MacOS.GetTicks() / 60.0 11 | timekind = "real" 12 | else: 13 | def time(): 14 | t = os.times() 15 | return t[0] + t[1] 16 | timekind = "cpu" 17 | 18 | time1 = time() 19 | lexicon = pascal.make_lexicon() 20 | time2 = time() 21 | print "Constructing scanner took %s %s seconds" % (time2 - time1, timekind) 22 | 23 | f = open("speedtest.in", "r") 24 | scanner = Plex.Scanner(lexicon, f) 25 | time1 = time() 26 | while 1: 27 | value, text = scanner.read() 28 | if value is None: 29 | break 30 | time2 = time() 31 | _, lines, _ = scanner.position() 32 | time = time2 - time1 33 | lps = float(lines) / float(time) 34 | print "Scanning %d lines took %s %s seconds (%s lines/sec)" % ( 35 | lines, time, timekind, lps) 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /external/plex/dist/tests/Test.py: -------------------------------------------------------------------------------- 1 | # 2 | # Run a Plex test 3 | # 4 | 5 | import sys 6 | 7 | # Mac slow console stderr hack 8 | if sys.platform == 'mac': 9 | if sys.stderr is sys.__stderr__: 10 | sys.stderr = sys.__stdout__ 11 | 12 | import Plex 13 | 14 | force_debug = 0 15 | 16 | if force_debug or sys.argv[1:2] == ["-d"]: 17 | debug = sys.stderr 18 | else: 19 | debug = None 20 | 21 | def run(lexicon, test_name, 22 | debug = 0, trace = 0, scanner_class = Plex.Scanner): 23 | if debug: 24 | debug_file = sys.stdout 25 | lexicon.machine.dump(debug_file) 26 | print "=" * 70 27 | else: 28 | debug_file = None 29 | in_name = test_name + ".in" 30 | f = open(in_name, "rU") 31 | s = scanner_class(lexicon, f, in_name) 32 | if trace: 33 | s.trace = 1 34 | while 1: 35 | value, text = s.read() 36 | name, line, pos = s.position() 37 | print "%s %3d %3d %-10s %s" % (name, line, pos, value, repr(text)) 38 | if value is None: 39 | break 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test0.in: -------------------------------------------------------------------------------- 1 | 2 | aaa 3 | 4 | 5 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test0.out: -------------------------------------------------------------------------------- 1 | test0.in 2 0 thing 'a' 2 | test0.in 2 1 thing 'a' 3 | test0.in 2 2 thing 'a' 4 | test0.in 5 0 None '' 5 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test0.py: -------------------------------------------------------------------------------- 1 | import Test 2 | from Plex import * 3 | import sys 4 | 5 | lex = Lexicon([ 6 | (Str("a"), 'thing'), 7 | (Any("\n"), IGNORE) 8 | ], 9 | debug = Test.debug, 10 | timings = sys.stderr 11 | ) 12 | 13 | Test.run(lex, "test0", debug = 0, trace = 0) 14 | 15 | 16 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test1.in: -------------------------------------------------------------------------------- 1 | a b aa ab ba a0 a1 b0 b1 ab01 2 | babba01 abba babb b0001a 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test1.out: -------------------------------------------------------------------------------- 1 | test1.in 1 0 ident 'a' 2 | test1.in 1 2 ident 'b' 3 | test1.in 1 4 ident 'aa' 4 | test1.in 1 7 ident 'ab' 5 | test1.in 1 10 ident 'ba' 6 | test1.in 1 13 ident 'a0' 7 | test1.in 1 16 ident 'a1' 8 | test1.in 1 19 ident 'b0' 9 | test1.in 1 22 ident 'b1' 10 | test1.in 1 25 ident 'ab01' 11 | test1.in 2 0 ident 'babba01' 12 | test1.in 2 8 ident 'abba' 13 | test1.in 2 13 ident 'babb' 14 | test1.in 2 18 ident 'b0001a' 15 | test1.in 4 0 None '' 16 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test1.py: -------------------------------------------------------------------------------- 1 | import Test 2 | from Plex import * 3 | import sys 4 | 5 | lex = Lexicon([ 6 | (Any("ab") + Rep(Any("ab01")), 'ident'), 7 | (Any(" \n"), IGNORE) 8 | ], 9 | debug = Test.debug, 10 | timings = sys.stderr 11 | ) 12 | 13 | Test.run(lex, "test1", debug = 0, trace = 0) 14 | 15 | 16 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test11.in: -------------------------------------------------------------------------------- 1 | Python python 2 | COBOL cobol CoBol COboL 3 | perl Perl pERl 4 | Serbo-Croatian serbo-croatian 5 | REALbasic realbasic REalbasic 6 | REALBasic realBasic REalBasic 7 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test11.out: -------------------------------------------------------------------------------- 1 | test11.in 1 0 upper-python 'Python' 2 | test11.in 1 7 lower-python 'python' 3 | test11.in 2 0 other-language 'COBOL' 4 | test11.in 2 6 other-language 'cobol' 5 | test11.in 2 12 other-language 'CoBol' 6 | test11.in 2 18 other-language 'COboL' 7 | test11.in 3 0 other-language 'perl' 8 | test11.in 3 5 other-language 'Perl' 9 | test11.in 3 10 other-language 'pERl' 10 | test11.in 4 0 other-language 'Serbo-Croatian' 11 | test11.in 4 15 other-language 'serbo-croatian' 12 | test11.in 5 0 real-1 'REALbasic' 13 | test11.in 5 10 real-1 'realbasic' 14 | test11.in 5 20 real-1 'REalbasic' 15 | test11.in 6 0 real-2 'REALBasic' 16 | test11.in 6 10 real-2 'realBasic' 17 | test11.in 6 20 real-2 'REalBasic' 18 | test11.in 7 0 None '' 19 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test11.py: -------------------------------------------------------------------------------- 1 | import Test 2 | from Plex import * 3 | import sys 4 | 5 | lex = Lexicon([ 6 | (Str("Python"), 'upper-python'), 7 | (Str("python"), 'lower-python'), 8 | (NoCase(Str("COBOL", "perl", "Serbo-Croatian")), 'other-language'), 9 | (NoCase(Str("real") + Case(Str("basic"))), 'real-1'), 10 | (NoCase(Str("real") + Case(Str("Basic"))), 'real-2'), 11 | (Any(" \t\n"), IGNORE) 12 | ], 13 | debug = Test.debug, 14 | timings = sys.stderr 15 | ) 16 | 17 | Test.run(lex, "test11", debug = 0, trace = 0) 18 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test12.in: -------------------------------------------------------------------------------- 1 | 'Single-line text literal''Multi- 2 | line text literal' -------------------------------------------------------------------------------- /external/plex/dist/tests/test12.out: -------------------------------------------------------------------------------- 1 | test12.in 1 0 'Single-line text literal' "'Single-line text literal'" 2 | test12.in 1 26 'Multi- 3 | line text literal' "'Multi-\nline text literal'" 4 | test12.in 2 18 None '' 5 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test12.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from cStringIO import StringIO 3 | 4 | import Test 5 | from Plex import * 6 | 7 | lex = Lexicon([ 8 | (Str("'") + Rep(AnyBut("'")) + Str("'"), TEXT) 9 | ], 10 | debug = Test.debug, 11 | timings = sys.stderr 12 | ) 13 | 14 | Test.run(lex, "test12", debug = 0, trace = 0) 15 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test2.in: -------------------------------------------------------------------------------- 1 | 2 | a b ab abba a0 !xyzzy! 3 | b1 abab0110bba1 #burble# 4 | 0 1 00 01 (fee) [fie] [foe] "fum" 5 | 101010 0001010101 6 | 7 | 8 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test2.out: -------------------------------------------------------------------------------- 1 | test2.in 2 0 ident 'a' 2 | test2.in 2 2 ident 'b' 3 | test2.in 2 4 ident 'ab' 4 | test2.in 2 7 ident 'abba' 5 | test2.in 2 12 ident 'a0' 6 | test2.in 3 0 ident 'b1' 7 | test2.in 3 3 ident 'abab0110bba1' 8 | test2.in 4 0 num '0' 9 | test2.in 4 2 num '1' 10 | test2.in 4 4 num '00' 11 | test2.in 4 7 num '01' 12 | test2.in 5 0 num '101010' 13 | test2.in 5 7 num '0001010101' 14 | test2.in 8 0 None '' 15 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test2.py: -------------------------------------------------------------------------------- 1 | import Test 2 | from Plex import * 3 | import sys 4 | 5 | lex = Lexicon([ 6 | (Seq(Any("ab"), Rep(Any("ab01"))), 'ident'), 7 | (Seq(Any("01"), Rep(Any("01"))), 'num'), 8 | (Any(' \n'), IGNORE), 9 | (Str("abba"), 'abba'), 10 | (Any('([{!"#') + Rep(AnyBut('!"#}])')) + Any('!"#}])'), IGNORE) 11 | ], 12 | debug = Test.debug, 13 | timings = sys.stderr 14 | ) 15 | 16 | Test.run(lex, "test2", debug = 0, trace = 0) 17 | 18 | 19 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test3.in: -------------------------------------------------------------------------------- 1 | program furbie(input, output, throughput); 2 | begin 3 | repeat 4 | make(cute_noises); 5 | have_flat_battery; 6 | until owner_is(fed_up); 7 | end. 8 | 9 | 10 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test3.out: -------------------------------------------------------------------------------- 1 | test3.in 1 0 program 'program' 2 | test3.in 1 8 ident 'furbie' 3 | test3.in 1 14 ( '(' 4 | test3.in 1 15 ident 'input' 5 | test3.in 1 20 , ',' 6 | test3.in 1 22 ident 'output' 7 | test3.in 1 28 , ',' 8 | test3.in 1 30 ident 'throughput' 9 | test3.in 1 40 ) ')' 10 | test3.in 1 41 ; ';' 11 | test3.in 2 0 begin 'begin' 12 | test3.in 3 3 repeat 'repeat' 13 | test3.in 4 5 ident 'make' 14 | test3.in 4 9 ( '(' 15 | test3.in 4 10 ident 'cute_noises' 16 | test3.in 4 21 ) ')' 17 | test3.in 4 22 ; ';' 18 | test3.in 5 5 ident 'have_flat_battery' 19 | test3.in 5 22 ; ';' 20 | test3.in 6 3 until 'until' 21 | test3.in 6 9 ident 'owner_is' 22 | test3.in 6 17 ( '(' 23 | test3.in 6 18 ident 'fed_up' 24 | test3.in 6 24 ) ')' 25 | test3.in 6 25 ; ';' 26 | test3.in 7 0 end 'end' 27 | test3.in 7 3 . '.' 28 | test3.in 10 0 None '' 29 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test3.py: -------------------------------------------------------------------------------- 1 | import Test 2 | import sys 3 | from Plex import * 4 | 5 | letter = Range("AZaz") | Any("_") 6 | digit = Range("09") 7 | space = Any(" \t\n") 8 | 9 | ident = Seq(letter, Rep(Alt(letter, digit))) 10 | number = Seq(digit, Rep(digit)) 11 | punct = Any("*()-+=[]{};:<>,./") 12 | spaces = Seq(space, Rep(space)) 13 | resword = Str("program", "begin", "end", "repeat", "until") 14 | 15 | lex = Lexicon([ 16 | (resword, TEXT), 17 | (ident, 'ident'), 18 | (number, 'num'), 19 | (punct, TEXT), 20 | (spaces, IGNORE) 21 | ], 22 | debug = Test.debug, 23 | timings = sys.stderr 24 | ) 25 | 26 | Test.run(lex, "test3", trace = 0) 27 | 28 | 29 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test4.in: -------------------------------------------------------------------------------- 1 | this (should ignore (anything between (matching) pairs) of) brackets 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test4.out: -------------------------------------------------------------------------------- 1 | test4.in 1 0 letter 't' 2 | test4.in 1 1 letter 'h' 3 | test4.in 1 2 letter 'i' 4 | test4.in 1 3 letter 's' 5 | test4.in 1 60 letter 'b' 6 | test4.in 1 61 letter 'r' 7 | test4.in 1 62 letter 'a' 8 | test4.in 1 63 letter 'c' 9 | test4.in 1 64 letter 'k' 10 | test4.in 1 65 letter 'e' 11 | test4.in 1 66 letter 't' 12 | test4.in 1 67 letter 's' 13 | test4.in 4 0 None '' 14 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test4.py: -------------------------------------------------------------------------------- 1 | import Test 2 | import sys 3 | from Plex import * 4 | 5 | letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_" 6 | 7 | wax = Any("(") 8 | wane = Any(")") 9 | letter = Any(letters) 10 | space = Any(" \t\n") 11 | 12 | def open_paren(s, t): 13 | s.counter = s.counter + 1 14 | 15 | def close_paren(s, t): 16 | s.counter = s.counter - 1 17 | 18 | def got_a_letter(s, t): 19 | if s.counter == 0: 20 | return 'letter' 21 | else: 22 | return None 23 | 24 | lex = Lexicon([ 25 | (wax, open_paren), 26 | (wane, close_paren), 27 | (letter, got_a_letter), 28 | (space, IGNORE) 29 | ], 30 | debug = Test.debug, 31 | timings = sys.stderr 32 | ) 33 | 34 | class MyScanner(Scanner): 35 | counter = 0 36 | trace = 0 37 | 38 | Test.run(lex, "test4", scanner_class = MyScanner, trace = 0) 39 | 40 | 41 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test5.in: -------------------------------------------------------------------------------- 1 | a b {this is a comment} c abc 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test5.out: -------------------------------------------------------------------------------- 1 | test5.in 1 0 ident 'a' 2 | test5.in 1 2 ident 'b' 3 | test5.in 1 24 ident 'c' 4 | test5.in 1 26 ident 'abc' 5 | test5.in 4 0 None '' 6 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test5.py: -------------------------------------------------------------------------------- 1 | import Test 2 | import sys 3 | from Plex import * 4 | 5 | letters = "abc" 6 | spaces = " \t\n" 7 | all = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz*/{} \t\n" 8 | 9 | letter = Any(letters) 10 | space = Any(" \t\n") 11 | 12 | ident = Rep1(letter) 13 | spaces = Rep1(space) 14 | begin_comment = Str("{") 15 | end_comment = Str("}") 16 | 17 | lex = Lexicon([ 18 | (ident, 'ident'), 19 | (spaces, IGNORE), 20 | (begin_comment, Begin('comment')), 21 | State('comment', [ 22 | (end_comment, Begin('')), 23 | (AnyBut("}"), IGNORE), 24 | ]) 25 | ], 26 | debug = Test.debug, 27 | timings = sys.stderr 28 | ) 29 | 30 | Test.run(lex, "test5") 31 | 32 | 33 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test6.in: -------------------------------------------------------------------------------- 1 | { Test input for the 2 | Plex Pascal scanner } 3 | 4 | program spam(input, output); 5 | var 6 | order: integer; 7 | begin 8 | write('How many slices of spam would you like with your eggs, sir? '); 9 | readln(order); 10 | if order >= 1 then 11 | writeln('Certainly, sir.') 12 | else 13 | writeln('Sorry, sir, invalid order.') 14 | end 15 | end. 16 | 17 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test7.in: -------------------------------------------------------------------------------- 1 | aa bbb bb bbbbb b ccc 2 | a bb bbb b cc 3 | bb bbb bbbbb bb bbb 4 | ddddddddddddddd 5 | aaa bbb bb cccc 6 | 7 | 8 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test7.out: -------------------------------------------------------------------------------- 1 | test7.in 1 0 begin 'aa' 2 | test7.in 1 3 middle 'bbb' 3 | test7.in 1 7 middle 'bb' 4 | test7.in 1 10 middle 'bbbbb' 5 | test7.in 1 16 middle 'b' 6 | test7.in 1 18 end 'ccc' 7 | test7.in 2 0 begin 'a' 8 | test7.in 2 2 middle 'bb' 9 | test7.in 2 5 middle 'bbb' 10 | test7.in 2 9 middle 'b' 11 | test7.in 2 11 end 'cc' 12 | test7.in 3 0 middle 'bb' 13 | test7.in 3 3 middle 'bbb' 14 | test7.in 3 7 middle 'bbbbb' 15 | test7.in 3 14 middle 'bb' 16 | test7.in 3 17 middle 'bbb' 17 | test7.in 4 0 everything 'ddddddddddddddd' 18 | test7.in 5 0 begin 'aaa' 19 | test7.in 5 4 middle 'bbb' 20 | test7.in 5 8 middle 'bb' 21 | test7.in 5 11 end 'cccc' 22 | test7.in 8 0 None '' 23 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test7.py: -------------------------------------------------------------------------------- 1 | import Test 2 | import sys 3 | from Plex import * 4 | 5 | spaces = Rep1(Any(" \t\n")) 6 | 7 | lex = Lexicon([ 8 | (Bol + Rep1(Str("a")), 'begin'), 9 | ( Rep1(Str("b")), 'middle'), 10 | ( Rep1(Str("c")) + Eol, 'end'), 11 | (Bol + Rep1(Str("d")) + Eol, 'everything'), 12 | (spaces, IGNORE) 13 | ], 14 | debug = Test.debug, 15 | timings = sys.stderr 16 | ) 17 | 18 | Test.run(lex, "test7", trace = 0) 19 | 20 | 21 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test8.in: -------------------------------------------------------------------------------- 1 | ftang ftang ftangftang ftangfta ftang 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test8.out: -------------------------------------------------------------------------------- 1 | test8.in 1 0 one_ftang 'ftang' 2 | test8.in 1 6 one_ftang 'ftang' 3 | test8.in 1 12 two_ftangs 'ftangftang' 4 | test8.in 1 23 one_ftang 'ftang' 5 | test8.in 1 28 one_fta 'fta' 6 | test8.in 1 32 one_ftang 'ftang' 7 | test8.in 4 0 None '' 8 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test8.py: -------------------------------------------------------------------------------- 1 | # 2 | # This one tests the backing-up mechanism. 3 | # 4 | 5 | import Test 6 | import sys 7 | from Plex import * 8 | 9 | spaces = Rep1(Any(" \t\n")) 10 | 11 | lex = Lexicon([ 12 | (Str("ftangftang"), 'two_ftangs'), 13 | (Str("ftang"), 'one_ftang'), 14 | (Str("fta"), 'one_fta'), 15 | (spaces, IGNORE) 16 | ], 17 | debug = Test.debug, 18 | timings = sys.stderr 19 | ) 20 | 21 | Test.run(lex, "test8", trace = 0) 22 | 23 | 24 | -------------------------------------------------------------------------------- /external/plex/dist/tests/test9.in: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | # This, in case you didn't notice, is a comment. 4 | 5 | def gcd(x, y): 6 | while x <> y: 7 | if x > y: # This is another comment. 8 | print "x is bigger" 9 | x = x - y 10 | # This comment doesn't imply any indentation. 11 | else: 12 | 13 | print "y is bigger" 14 | y = y - x 15 | return x 16 | 17 | def go(): 18 | for x, y in [(12,20), (37,18), (2, 54)]: 19 | print gcd\ 20 | (x, y) 21 | 22 | 23 | -------------------------------------------------------------------------------- /performance.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | [nosetests] 19 | verbosity=3 20 | detailed-errors=1 21 | nocapture=1 22 | 23 | tc-file=test/puma-config.py 24 | tc-format=python 25 | 26 | tests=test/performance 27 | 28 | -------------------------------------------------------------------------------- /profile/README: -------------------------------------------------------------------------------- 1 | How to profile Puma 2 | 3 | ============================================================ 4 | 5 | 1. Step One: cProfile 6 | 7 | Create a script that runs a computation under cProfile, as in 8 | 9 | example_profile_script.py 10 | 11 | 2. Step 2: run it under callgrind to do the actual profiling 12 | 13 | valgrind --tool=callgrind python -E -tt -c "import as p; p.()" 14 | 15 | e.g. 16 | 17 | valgrind --tool=callgrind python -E -tt -c "import example_profile_script as p; p.profileReferencesProgram()" 18 | 19 | 3. Step 3: launch kcachegrind and open the result (callgrind.annotate.) 20 | -------------------------------------------------------------------------------- /python/lib/.gitignore: -------------------------------------------------------------------------------- 1 | # Autogenerated 2 | version.py 3 | -------------------------------------------------------------------------------- /python/lib/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | #!/usr/bin/env python 19 | # -*- coding: utf-8 -*- 20 | 21 | from venture.version import __version__ 22 | -------------------------------------------------------------------------------- /python/lib/engine/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | -------------------------------------------------------------------------------- /python/lib/parser/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | #!/usr/bin/env python 19 | # -*- coding: utf-8 -*- 20 | 21 | 22 | from venture.parser.church_prime.parse import ChurchPrimeParser 23 | from venture.parser.venture_script.parse import VentureScriptParser 24 | -------------------------------------------------------------------------------- /python/lib/parser/church_prime/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | from venture.parser.church_prime.parse import ChurchPrimeParser 19 | -------------------------------------------------------------------------------- /python/lib/parser/venture_script/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /python/lib/plots/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /python/lib/plugins/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 4 | # 5 | # This file is part of Venture. 6 | # 7 | # Venture is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # Venture is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with Venture. If not, see . 19 | -------------------------------------------------------------------------------- /python/lib/ripl/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | #!/usr/bin/env python 18 | # -*- coding: utf-8 -*- 19 | 20 | 21 | from venture.ripl.ripl import Ripl 22 | from venture.ripl.ripl_rest_client import RiplRestClient 23 | -------------------------------------------------------------------------------- /python/lib/server/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | #!/usr/bin/env python 18 | # -*- coding: utf-8 -*- 19 | 20 | from venture.server import utils 21 | from venture.ripl.utils import _RIPL_FUNCTIONS 22 | 23 | 24 | class RiplRestServer(utils.RestServer): 25 | def __init__(self,ripl): 26 | super(RiplRestServer,self).__init__(ripl,_RIPL_FUNCTIONS) 27 | 28 | -------------------------------------------------------------------------------- /python/lib/sivm/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | #!/usr/bin/env python 18 | # -*- coding: utf-8 -*- 19 | 20 | from venture.sivm.core_sivm import CoreSivm 21 | from venture.sivm.venture_sivm import VentureSivm 22 | -------------------------------------------------------------------------------- /python/lib/value/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | #!/usr/bin/env python 18 | # -*- coding: utf-8 -*- 19 | -------------------------------------------------------------------------------- /refman/.gitignore: -------------------------------------------------------------------------------- 1 | _* 2 | *.gen 3 | -------------------------------------------------------------------------------- /refman/README.md: -------------------------------------------------------------------------------- 1 | Venture Reference Manual Sources 2 | ================================ 3 | 4 | Significant chunks of the actual reference documentation are extracted 5 | from in-source descriptions of various entities using the `vendoc` 6 | program. 7 | 8 | To build 9 | -------- 10 | 11 | - _Reinstall Venture_ 12 | - `rm -f *.gen && make html` in this directory 13 | 14 | The `rm` is currently needed, because the Makefile doesn't know where 15 | in the Venture source the documentation strings are extracted from. 16 | 17 | To upload to the CSAIL web space 18 | -------------------------------- 19 | 20 | - `scp -r _build/html/* login.csail.mit.edu:/afs/csail.mit.edu/proj/probcomp/www/data/dev/venture/edge/reference/` 21 | 22 | N.B. Can also use rsync 23 | -------------------------------------------------------------------------------- /refman/apiref.rst: -------------------------------------------------------------------------------- 1 | Python API Reference 2 | -------------------- 3 | 4 | What follows is auto-generated API documentation for the Venture 5 | modules that a user might want to programmatically interact with. 6 | Please be patient as we fill the documentation in. 7 | 8 | .. toctree:: 9 | :maxdepth: 2 10 | 11 | venture.shortcuts.rst 12 | venture.ripl.ripl.rst 13 | venture.value.dicts.rst 14 | venture.parser.ast.rst 15 | venture.parser.venture_script.subscanner.rst 16 | venture.lite.sp.rst 17 | venture.lite.psp.rst 18 | venture.lite.sp_help.rst 19 | venture.lite.types.rst 20 | venture.lite.value.rst 21 | -------------------------------------------------------------------------------- /refman/index.rst: -------------------------------------------------------------------------------- 1 | .. Venture documentation master file, created by 2 | sphinx-quickstart on Sun Jul 13 23:32:36 2014. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | VentureScript Reference Manual 7 | ============================== 8 | 9 | Contents: 10 | 11 | .. toctree:: 12 | :maxdepth: 2 13 | 14 | overview.rst 15 | usage.rst 16 | programming-model.rst 17 | instructions.rst 18 | modeling.rst 19 | inference.rst 20 | plugins.rst 21 | apiref.rst 22 | faq.rst 23 | -------------------------------------------------------------------------------- /refman/venture.lite.psp.rst: -------------------------------------------------------------------------------- 1 | Primitive Stochastic Procedure Interface: module venture.lite.psp 2 | ----------------------------------------------------------------- 3 | 4 | .. automodule:: venture.lite.psp 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.lite.sp.rst: -------------------------------------------------------------------------------- 1 | Stochastic Procedure Interface: module venture.lite.sp 2 | ------------------------------------------------------ 3 | 4 | .. automodule:: venture.lite.sp 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.lite.sp_help.rst: -------------------------------------------------------------------------------- 1 | Foreign SP helpers: module venture.lite.sp_help 2 | ----------------------------------------------- 3 | 4 | .. automodule:: venture.lite.sp_help 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.lite.types.rst: -------------------------------------------------------------------------------- 1 | Type annotations for foreign procedures: module venture.lite.types 2 | ------------------------------------------------------------------ 3 | 4 | .. automodule:: venture.lite.types 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.lite.value.rst: -------------------------------------------------------------------------------- 1 | Internal representation of values: module venture.lite.value 2 | ------------------------------------------------------------ 3 | 4 | .. automodule:: venture.lite.value 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.parser.ast.rst: -------------------------------------------------------------------------------- 1 | Location-annotated abstract syntax: module venture.parser.ast 2 | ------------------------------------------------------------- 3 | 4 | .. automodule:: venture.parser.ast 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.parser.venture_script.subscanner.rst: -------------------------------------------------------------------------------- 1 | Adapter for Plex-like sub-scanners: module venture.parser.venture_script.subscanner 2 | ----------------------------------------------------------------------------------- 3 | 4 | .. automodule:: venture.parser.venture_script.subscanner 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.ripl.ripl.rst: -------------------------------------------------------------------------------- 1 | Read Infer Predict Layer: module venture.ripl.ripl 2 | -------------------------------------------------- 3 | 4 | .. automodule:: venture.ripl.ripl 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /refman/venture.shortcuts.rst: -------------------------------------------------------------------------------- 1 | Entry Point: package venture.shortcuts 2 | ====================================== 3 | 4 | Module contents 5 | --------------- 6 | 7 | .. automodule:: venture.shortcuts 8 | :members: 9 | :undoc-members: 10 | :show-inheritance: 11 | -------------------------------------------------------------------------------- /refman/venture.value.dicts.rst: -------------------------------------------------------------------------------- 1 | Programmatic values and expressions: module venture.value.dicts 2 | --------------------------------------------------------------- 3 | 4 | .. automodule:: venture.value.dicts 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /script/README-world-ipython-server: -------------------------------------------------------------------------------- 1 | What I did to get ipython for the PPAML summer school students: 2 | - Create a user axch-ipython on probcomp-2 3 | - Copy the notebooks into that user's home directory 4 | - (install ipython-notebook) 5 | - Follow the instructions to set up a public IPython server: 6 | http://ipython.org/ipython-doc/rel-1.1.0/interactive/public_server.html 7 | Synthesize password 'ppaml' 8 | Synthesize self-signed cert in notebook.pem 9 | ipython profile create nbserver 10 | -------------------------------------------------------------------------------- /script/init_ripl.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python -i 2 | 3 | # Copyright (c) 2013, 2014 MIT Probabilistic Computing Project. 4 | # 5 | # This file is part of Venture. 6 | # 7 | # Venture is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # Venture is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with Venture. If not, see . 19 | 20 | from venture import shortcuts 21 | ripl = shortcuts.make_lite_church_prime_ripl() 22 | print "Venture RIPL handle in `ripl' variable" 23 | -------------------------------------------------------------------------------- /script/jenkins/debian-test-docker/.gitignore: -------------------------------------------------------------------------------- 1 | # These things get put here by script/jenkins/venture-in-docker.sh 2 | check_built_sdist.sh 3 | dist/ 4 | tool/ 5 | -------------------------------------------------------------------------------- /script/transcript.css: -------------------------------------------------------------------------------- 1 | * { 2 | font-family: 'helvetica nueue', arial; 3 | color: #333;} 4 | 5 | h1, h2, h3, h4, h5, h6 { 6 | font-weight: 300} 7 | 8 | pre, code { 9 | font-family: monaco, monospace; 10 | font-size: 12; 11 | background-color: #efefef;} 12 | 13 | pre { 14 | padding: 2em; 15 | border-radius: 3px;} 16 | 17 | pre.stdout { 18 | padding-top: 0em; 19 | margin-top: -3em; 20 | } 21 | 22 | pre.stdout code { 23 | font-style: italic; 24 | } 25 | 26 | pre.value { 27 | padding-top: 0em; 28 | margin-top: -3em; 29 | } 30 | 31 | pre.value code { 32 | font-style: italic; 33 | } 34 | 35 | html { 36 | margin-left: auto; 37 | margin-right: auto; 38 | padding-top: 3em; 39 | max-width: 960px;} 40 | 41 | img {max-width: 100%;} 42 | 43 | @media print{ 44 | h1 {font-size: 20pt} 45 | h2 {font-size: 16pt} 46 | h3 {font-size: 14pt} 47 | h4, h5 {font-size: 12pt} 48 | h6 {font-size: 11pt} 49 | p {font-size: 10pt} 50 | pre code {font-size: 8pt} 51 | pre {border: 1px solid #aaa;} 52 | @page :left{ margin: 1cm } 53 | @page :right{ margin: 1cm } 54 | } 55 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/conformance/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/conformance/sps/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/conformance/sps/test_vector.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | from venture.test.config import get_ripl 19 | 20 | def test_append(): 21 | ripl = get_ripl(init_mode='venture_script') 22 | ripl.assume('a', '[1,2,3]') 23 | ripl.assume('b', '[4,5,6]') 24 | assert ripl.sample('append(a, b)') == [1,2,3,4,5,6] 25 | -------------------------------------------------------------------------------- /test/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/debug/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/development_milestones/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/development_milestones/test_mem.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | from nose.tools import eq_ 19 | 20 | from venture.test.config import get_ripl 21 | from venture.test.config import on_inf_prim 22 | 23 | @on_inf_prim("none") 24 | def testMem1(): 25 | ripl = get_ripl() 26 | ripl.assume('f', '(mem flip)') 27 | flip1 = ripl.predict('(f)') 28 | flip2 = ripl.predict('(f)') 29 | eq_(flip1, flip2) 30 | -------------------------------------------------------------------------------- /test/exception/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/flaky.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | def flaky(f): 19 | def flaky_f(*args, **kwargs): 20 | for trial in xrange(2): 21 | try: 22 | x = f(*args, **kwargs) 23 | except Exception: 24 | continue 25 | else: 26 | return x 27 | return f(*args, **kwargs) 28 | return flaky_f 29 | -------------------------------------------------------------------------------- /test/inference_language/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/inference_quality/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/inference_quality/end_to_end/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/inference_quality/micro/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/integration/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/integration/plugin.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | import venture.lite.value as v 19 | 20 | def __venture_start__(r): 21 | r.bind_callback("foo", lambda _inferrer: None) 22 | return v.VentureNumber(7) # To test that load_plugin will forward the return value 23 | -------------------------------------------------------------------------------- /test/integration/test_doc_autogen.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | import subprocess as s 19 | 20 | from venture.test.config import in_backend 21 | 22 | @in_backend("none") 23 | def testSPDocAutogens(): 24 | dev_null = open("/dev/null", "w") 25 | assert s.call(["vendoc"], stdout=dev_null) == 0 26 | -------------------------------------------------------------------------------- /test/manual/all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 4 | # 5 | # This file is part of Venture. 6 | # 7 | # Venture is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # Venture is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with Venture. If not, see . 19 | 20 | # Reset the working directory to the directory of the script's path 21 | my_abs_path=$(readlink -f "$0") 22 | root_dirname=$(dirname $my_abs_path) 23 | cd $root_dirname 24 | 25 | echo "Running all the test scripts in $root_dirname:" 26 | ls *.sh | grep -v all.sh 27 | ls *.sh | grep -v all.sh | xargs -l bash 28 | -------------------------------------------------------------------------------- /test/misc/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/misc/test_exp.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | 18 | import numpy 19 | 20 | from venture.test.config import get_ripl 21 | from venture.test.config import on_inf_prim 22 | import venture.value.dicts as v 23 | 24 | @on_inf_prim("none") 25 | def testVector(): 26 | # Test that array-like objects don't get interpreted as expressions. 27 | ripl = get_ripl() 28 | ripl.predict(v.vector(numpy.array([1, 2]))) 29 | -------------------------------------------------------------------------------- /test/performance/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/performance/asymptotics/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/performance/end_to_end/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/performance/stack/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/profiling/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/properties/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/regressions/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/serialize/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/smc/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/stack/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/stack/functionality/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/stack/skip_ripl_hacks/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /test/unit/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 MIT Probabilistic Computing Project. 2 | # 3 | # This file is part of Venture. 4 | # 5 | # Venture is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # Venture is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with Venture. If not, see . 17 | -------------------------------------------------------------------------------- /tool/grind: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2014 MIT Probabilistic Computing Project. 4 | # 5 | # This file is part of Venture. 6 | # 7 | # Venture is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # Venture is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with Venture. If not, see . 19 | 20 | if [ -z $1 ]; then 21 | echo "Usage: grind python