<commit_before>#!/bin/bash

cp README.rst $HOME/.

git config --global user.email "<EMAIL>"
git config --global user.name "travis-ci"

git subtree --prefix=docs/ split -b documentation

cd $HOME

git clone --quiet --branch=master <EMAIL>:loklak/dev.loklak.org.git loklak_docs

cd loklak_docs

if ! git subtree pull --prefix=raw/server ../loklak_server documentation --squash -m "Update server subtree"
  git subtree add --prefix=raw/server ../loklak_server documentation --squash -m "Update server subtree"
fi

cp -f $HOME/README.rst .
git add -f .
git commit -m "Latest server documentation file on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to dev.loklak.org"
git push -fq origin master > /dev/null 2>&1

if [ $? -eq 0 ]; then
  echo -e "Published Raw files to dev.loklak.org.\n"
  exit 0
else
  echo -e "Publishing failed. Maybe the access-token was invalid or had insufficient permissions.\n"
  exit 1
fi<commit_msg>Fixes #1215 fix syntax error in the script (#1217)<commit_after>#!/bin/bash

cp README.rst $HOME/.

git config --global user.email "<EMAIL>"
git config --global user.name "travis-ci"

git subtree --prefix=docs/ split -b documentation

cd $HOME

git clone --quiet --branch=master <EMAIL>:loklak/dev.loklak.org.git loklak_docs

cd loklak_docs

if ! git subtree pull --prefix=raw/server ../loklak_server documentation --squash -m "Update server subtree" ; then
  git subtree add --prefix=raw/server ../loklak_server documentation --squash -m "Update server subtree"
fi

cp -f $HOME/README.rst .
git add -f .
git commit -m "Latest server documentation file on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to dev.loklak.org"
git push -fq origin master > /dev/null 2>&1

if [ $? -eq 0 ]; then
  echo -e "Published Raw files to dev.loklak.org.\n"
  exit 0
else
  echo -e "Publishing failed. Maybe the access-token was invalid or had insufficient permissions.\n"
  exit 1
fi
{'fraction_non_alphanumeric': 0.1145397489539749, 'fraction_numerical': 0.009414225941422594, 'mean_word_length': 3.5875299760191846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '5903392', 'n_tokens_mistral': 694, 'n_tokens_neox': 657, 'n_words': 232}