<commit_before>#!/bin/bash
#
# Generate apple doc reference documentation, update & commit gh-pages branch and push gh-pages branch

git checkout gh-pages
echo "Rebasing gh-pages to master"
git rebase master
# Do the generation
echo "Generating appledoc documentation"
appledoc -h --no-create-docset --project-name "Restcomm iOS SDK" --project-company Telestax --company-id com.telestax --output "./doc" --index-desc "RestCommClient/doc/index.markdown" RestCommClient/Classes/RC* RestCommClient/Classes/RestCommClient.h
# Add and commit
echo "Adding changes to staging area and committing"
git add .
# Only commit if there are differences
git diff --quiet --exit-code --cached || git commit -m "Update gh-pages"
echo "Pushing gh-pages to origin"
git push origin gh-pages
echo "Done updating docs, checking out master"
git checkout master<commit_msg>Adding force push for gh-pages<commit_after>#!/bin/bash
#
# Generate apple doc reference documentation, update & commit gh-pages branch and push gh-pages branch

echo "Checking out gh-pages"
git checkout gh-pages
echo "Rebasing gh-pages to master"
git rebase master
# Do the generation
echo "Generating appledoc documentation"
appledoc -h --no-create-docset --project-name "Restcomm iOS SDK" --project-company Telestax --company-id com.telestax --output "./doc" --index-desc "RestCommClient/doc/index.markdown" RestCommClient/Classes/RC* RestCommClient/Classes/RestCommClient.h
# Add and commit
echo "Adding changes to staging area and committing"
git add .
# Only commit if there are differences
git diff --quiet --exit-code --cached || git commit -m "Update gh-pages"
echo "Force-pushing gh-pages to origin"
git push -f origin gh-pages
echo "Done updating docs, checking out master"
git checkout master
{'fraction_non_alphanumeric': 0.09697661152310325, 'fraction_numerical': 0.0, 'mean_word_length': 4.48125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3483698', 'n_tokens_mistral': 532, 'n_tokens_neox': 492, 'n_words': 202}