<commit_before>#!/bin/bash

# Deployment script that pushes to gh-pages
# From https://gist.github.com/domenic/ec8b0fc8ab45f39403dd

set -e # exit with nonzero exit code if anything fails
SOURCE_BRANCH="master"
TARGET_BRANCH="gh-pages"
OUT_DIR="target/dist"

if [ "$TRAVIS_BRANCH" != $SOURCE_BRANCH ]
then
  echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!"
  exit 0
fi

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deply)
git clone $REPO $OUT_DIR
cd $OUT_DIR
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..

# Clean out existing contents
rm -rf $OUT_DIR/**/* || exit 0

# clean and build our app
gulp clean
gulp dist

# go to the out directory and create a *new* Git repo
cd target/dist
git init
#git config --global url."https://".insteadOf git://﻿<commit_msg>Create out dit for Travis CI<commit_after>#!/bin/bash

# Deployment script that pushes to gh-pages
# From https://gist.github.com/domenic/ec8b0fc8ab45f39403dd

set -e # exit with nonzero exit code if anything fails
SOURCE_BRANCH="master"
TARGET_BRANCH="gh-pages"
OUT_DIR="target/dist"

if [ "$TRAVIS_BRANCH" != $SOURCE_BRANCH ]
then
  echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!"
  exit 0
fi

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deply)
mkdir -p $OUT_DIR
git clone $REPO $OUT_DIR
cd $OUT_DIR
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..

# Clean out existing contents
rm -rf $OUT_DIR/**/* || exit 0

# clean and build our app
gulp clean
gulp dist

# go to the out directory and create a *new* Git repo
cd target/dist
git init
#git config --global url."https://".insteadOf git://﻿
{'fraction_non_alphanumeric': 0.0982381206620395, 'fraction_numerical': 0.012813667912439935, 'mean_word_length': 4.205555555555556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2309564', 'n_tokens_mistral': 665, 'n_tokens_neox': 625, 'n_words': 247}