<commit_before>#!/bin/sh

# Taken from https://github.com/jgm/pandoc/wiki/Installing-the-development-version-of-pandoc
# and modified to pick up my development version, with dokuwiki output

# Set up my location
cd
PANDOC_SETUP_DIR=~/develop/pandoc_dokuwiki
mkdir -p $PANDOC_SETUP_DIR
cd       $PANDOC_SETUP_DIR

echo Setting up dokuwiki version of pandoc code in `pwd` ...

# If you want to live dangerously, you can install the still-in-progress pandoc 1.11.2 from github.
# You'll need git the Haskell Platform.

# First, you'll need to install the new pandoc-types from the github repository:

if [ ! -d pandoc-types ]; then
    git clone git://github.com/jgm/pandoc-types
fi
cd pandoc-types
git checkout bbae35cce0d81bae80e488eaf777537aa487e847
cabal update
cabal install --force
cd ..

# Now clone my copy of pandoc-templates:

if [ ! -d pandoc-templates ]; then
    git clone https://github.com/claremacrae/pandoc-templates.git
fi
cd pandoc-templates
git checkout dokuwiki
cd ..

# Now install pandoc:

if [ ! -d pandoc ]; then
    git clone https://github.com/claremacrae/pandoc.git
fi
cd pandoc
git checkout dokuwiki
#git submodule update --init
cp ../pandoc-templates/* data/templates/
cabal install --force --enable-tests<commit_msg>Corrected some comments, to minimse diffs with install_pandoc_dev.sh<commit_after>#!/bin/sh

# Taken from https://github.com/jgm/pandoc/wiki/Installing-the-development-version-of-pandoc
# and modified to pick up my development version, with dokuwiki output

# Set up my location
cd
PANDOC_SETUP_DIR=~/develop/pandoc_dokuwiki
mkdir -p $PANDOC_SETUP_DIR
cd       $PANDOC_SETUP_DIR

echo Setting up dokuwiki version of pandoc code in `pwd` ...

# If you want to live dangerously, you can install the still-in-progress pandoc from github.
# You'll need git and the Haskell Platform.

# First, you'll need to install the new pandoc-types from the github repository:

if [ ! -d pandoc-types ]; then
    git clone git://github.com/jgm/pandoc-types
fi
cd pandoc-types
git checkout bbae35cce0d81bae80e488eaf777537aa487e847
cabal update
cabal install --force
cd ..

# Now clone my copy of pandoc-templates:

if [ ! -d pandoc-templates ]; then
    git clone https://github.com/claremacrae/pandoc-templates.git
fi
cd pandoc-templates
git checkout dokuwiki
cd ..

# Now install pandoc:

if [ ! -d pandoc ]; then
    git clone https://github.com/claremacrae/pandoc.git
fi
cd pandoc
git checkout dokuwiki
#git submodule update --init
cp ../pandoc-templates/* data/templates/
cabal install --force --enable-tests
{'fraction_non_alphanumeric': 0.09370078740157481, 'fraction_numerical': 0.01889763779527559, 'mean_word_length': 3.8959537572254335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1431333', 'n_tokens_mistral': 939, 'n_tokens_neox': 863, 'n_words': 276}