<commit_before>#!/bin/bash
# Adapted from similar install script in pyNN (https://github.com/NeuralEnsemble/PyNN)

set -e  # stop execution in case of errors

export NRN_VERSION="nrn-7.4"
if [ ! -f "$HOME/$NRN_VERSION/configure" ]; then
    wget http://www.neuron.yale.edu/ftp/neuron/versions/v7.3/$NRN_VERSION.tar.gz -O $HOME/$NRN_VERSION.tar.gz;
    pushd $HOME;
    tar xzf $NRN_VERSION.tar.gz;
    popd;
else
    echo 'Using cached version of NEURON sources.';
fi
mkdir -p $HOME/build/$NRN_VERSION
pushd $HOME/build/$NRN_VERSION
export VENV=`python -c "import sys; print sys.prefix"`;
if [ ! -f "$HOME/build/$NRN_VERSION/config.log" ]; then
    $HOME/$NRN_VERSION/configure --with-paranrn --with-nrnpython --prefix=$VENV --disable-rx3d --without-iv;
    make;
else
    echo 'Using cached NEURON build directory.';
fi
make install
cd src/nrnpython
python setup.py install

pip install nrnutils  # must be installed after NEURON

# Create links to required NEURON utilities
cd $VENV/bin;
ls -l;
ln -sf ../x86_64/bin/nrnivmodl;
ln -sf ../x86_64/bin/modlunit;
popd<commit_msg>fixed neuron install script<commit_after>#!/bin/bash
# Adapted from similar install script in pyNN (https://github.com/NeuralEnsemble/PyNN)

set -e  # stop execution in case of errors

export NRN_VERSION="7.4"
if [ ! -f "$HOME/nrn-$NRN_VERSION/configure" ]; then
    wget http://www.neuron.yale.edu/ftp/neuron/versions/v$NRN_VERSION/nrn-$NRN_VERSION.tar.gz -O $HOME/nrn-$NRN_VERSION.tar.gz;
    pushd $HOME;
    tar xzf nrn-$NRN_VERSION.tar.gz;
    popd;
else
    echo 'Using cached version of NEURON sources.';
fi
mkdir -p $HOME/build/nrn-$NRN_VERSION
pushd $HOME/build/nrn-$NRN_VERSION
export VENV=`python -c "import sys; print sys.prefix"`;
if [ ! -f "$HOME/build/nrn-$NRN_VERSION/config.log" ]; then
    $HOME/nrn-$NRN_VERSION/configure --with-paranrn --with-nrnpython --prefix=$VENV --disable-rx3d --without-iv;
    make;
else
    echo 'Using cached NEURON build directory.';
fi
make install
cd src/nrnpython
python setup.py install

pip install nrnutils  # must be installed after NEURON

# Create links to required NEURON utilities
cd $VENV/bin;
ls -l;
ln -sf ../x86_64/bin/nrnivmodl;
ln -sf ../x86_64/bin/modlunit;
popd
{'fraction_non_alphanumeric': 0.1366318656377667, 'fraction_numerical': 0.010894235133908307, 'mean_word_length': 3.6893617021276595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2326127', 'n_tokens_mistral': 855, 'n_tokens_neox': 823, 'n_words': 212}