<commit_before>#!/bin/sh

USAGE="usage: gitflow gh-pages [-c | --commit]\n\n"

firstcommit=0
branch_exists=0

while test $# != 0
do

	case "$1" in
		-c | --commit)
			firstcommit=1
			;;
		-h | --help)
			printf "${USAGE}"
			exit 0
			;;
		*)
			printf "Unknown option.\n"
			printf "${USAGE}"
			exit 1
			;;
	esac
	shift

done

# Gh-Pages Branch
# ===============

# Check if Gh-Pages Branch Exists
# -------------------------------
if git show-ref --verify -q refs/heads/gh-pages; then
	branch_exists=1
fi

if [[ "$branch_exists" ]]; then
	printf "Error: gh-pages branch already exists.\n"
else
	# Create Gh-Pages Branch
	# ----------------------
	git checkout master &&
	git checkout --orphan gh-pages &&
	git rm -rf .

	if [[ $firstcommit ]]; then
		echo "Docs coming soon." > index.html &&
		git add index.html &&
		git commit -a -m "initial gh-pages commit"
	fi

	git push origin gh-pages

fi

<commit_msg>bugfix: fixed conditional operator<commit_after>#!/bin/sh

USAGE="usage: gitflow gh-pages [-c | --commit]\n\n"

firstcommit=0
branch_exists=0

while test $# != 0
do

	case "$1" in
		-c | --commit)
			firstcommit=1
			;;
		-h | --help)
			printf "${USAGE}"
			exit 0
			;;
		*)
			printf "Unknown option.\n"
			printf "${USAGE}"
			exit 1
			;;
	esac
	shift

done

# Gh-Pages Branch
# ===============

# Check if Gh-Pages Branch Exists
# -------------------------------
if git show-ref --verify -q refs/heads/gh-pages; then
	branch_exists=1
fi

if [ "$branch_exists" -eq 1 ]; then
	printf "Error: gh-pages branch already exists.\n"
else
	# Create Gh-Pages Branch
	# ----------------------
	git checkout master &&
	git checkout --orphan gh-pages &&
	git rm -rf .

	if [[ $firstcommit ]]; then
		echo "Docs coming soon." > index.html &&
		git add index.html &&
		git commit -a -m "initial gh-pages commit"
	fi

	git push origin gh-pages

fi


{'fraction_non_alphanumeric': 0.20831084727468968, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 2.235602094240838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4184398', 'n_tokens_mistral': 730, 'n_tokens_neox': 648, 'n_words': 199}