<commit_before>#!/bin/bash

DEFAULT_PACKAGES="IJulia PyPlot SIUnits Gadfly DataStructures HDF5 MAT \
Iterators NumericExtensions SymPy Interact Roots \
DataFrames RDatasets Distributions SVM Clustering GLM \
Optim JuMP GLPKMathProgInterface Clp NLopt Ipopt \
Cairo GraphViz \
Images ImageView WAV ODE Sundials LinearLeastSquares \
BayesNets PGFPlots GraphLayout \
Stan \
Patchwork Quandl Lazy QuantEcon"

for pkg in ${DEFAULT_PACKAGES}
do
    echo ""
    echo "Adding default package $pkg"
    julia -e "Pkg.add(\"$pkg\")"
done

INTERNAL_PACKAGES="https://github.com/shashi/Homework.jl.git \
https://github.com/tanmaykm/JuliaBox.jl.git"

for pkg in ${INTERNAL_PACKAGES}
do
    echo ""
    echo "Adding internal package $pkg"
    julia -e "Pkg.clone(\"$pkg\")"
done

julia -e "Pkg.status()" > /home/juser/.juliabox/packages.txt
julia -e "Pkg.test()" > /home/juser/.juliabox/packages_test_result.txt<commit_msg>disable package tests<commit_after>#!/bin/bash

DEFAULT_PACKAGES="IJulia PyPlot SIUnits Gadfly DataStructures HDF5 MAT \
Iterators NumericExtensions SymPy Interact Roots \
DataFrames RDatasets Distributions SVM Clustering GLM \
Optim JuMP GLPKMathProgInterface Clp NLopt Ipopt \
Cairo GraphViz \
Images ImageView WAV ODE Sundials LinearLeastSquares \
BayesNets PGFPlots GraphLayout \
Stan \
Patchwork Quandl Lazy QuantEcon"

for pkg in ${DEFAULT_PACKAGES}
do
    echo ""
    echo "Adding default package $pkg"
    julia -e "Pkg.add(\"$pkg\")"
done

INTERNAL_PACKAGES="https://github.com/shashi/Homework.jl.git \
https://github.com/tanmaykm/JuliaBox.jl.git"

for pkg in ${INTERNAL_PACKAGES}
do
    echo ""
    echo "Adding internal package $pkg"
    julia -e "Pkg.clone(\"$pkg\")"
done

echo ""
echo "Creating package list..."
julia -e "Pkg.status()" > /home/juser/.juliabox/packages.txt
#echo ""
#echo "Running package tests..."
#julia -e "Pkg.test()" > /home/juser/.juliabox/packages_test_result.txt
{'fraction_non_alphanumeric': 0.11576741749607124, 'fraction_numerical': 0.0010476689366160294, 'mean_word_length': 4.261707988980716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4586567', 'n_tokens_mistral': 737, 'n_tokens_neox': 693, 'n_words': 173}