<commit_before>#!/bin/bash

case $1 in
  prod)
    DEPLOY_GIT_REMOTE=quill-lms-prod
    ;;
  staging)
    DEPLOY_GIT_REMOTE=quill-lms-staging
    ;;
  sprint)
    DEPLOY_GIT_REMOTE=quill-lms-sprint
    ;;
  *)
    echo "You must provide an environment argument of 'sprint', 'staging', or 'prod'."
    exit 1
esac

STARTING_BRANCH=`git rev-parse --abbrev-ref HEAD`
TEMP_DEPLOY_BRANCH=temp-for-deploy

(git checkout -b ${TEMP_DEPLOY_BRANCH} &&
 cd ../.. &&
 git filter-branch --subdirectory-filter services/QuillLMS --force HEAD^..HEAD
 && git push -f ${DEPLOY_GIT_REMOTE} ${TEMP_DEPLOY_BRANCH}:master)
git checkout ${STARTING_BRANCH}
git branch -D ${TEMP_DEPLOY_BRANCH}
<commit_msg>Fix a syntax error in my bash command<commit_after>#!/bin/bash

case $1 in
  prod)
    DEPLOY_GIT_REMOTE=quill-lms-prod
    ;;
  staging)
    DEPLOY_GIT_REMOTE=quill-lms-staging
    ;;
  sprint)
    DEPLOY_GIT_REMOTE=quill-lms-sprint
    ;;
  *)
    echo "You must provide an environment argument of 'sprint', 'staging', or 'prod'."
    exit 1
esac

STARTING_BRANCH=`git rev-parse --abbrev-ref HEAD`
TEMP_DEPLOY_BRANCH=temp-for-deploy

(git checkout -b ${TEMP_DEPLOY_BRANCH} &&
 cd ../.. &&
 git filter-branch --subdirectory-filter services/QuillLMS --force HEAD^..HEAD &&
 git push -f ${DEPLOY_GIT_REMOTE} ${TEMP_DEPLOY_BRANCH}:master)
git checkout ${STARTING_BRANCH}
git branch -D ${TEMP_DEPLOY_BRANCH}

{'fraction_non_alphanumeric': 0.13131313131313133, 'fraction_numerical': 0.002886002886002886, 'mean_word_length': 3.8496503496503496, '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': '1524922', 'n_tokens_mistral': 617, 'n_tokens_neox': 563, 'n_words': 113}