<commit_before>#!/bin/bash
#

if [ "$1" = "-h" ]; then
     echo "Script to update the local and live version of the FreeCodeCamp wiki"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 0
elif [ "$1" = "-help" ]; then
     echo "Script to update the local and live version of the FreeCodeCamp wiki"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 0
elif [ "$1" = "" ]; then
     echo "Undefined parameters"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 1
fi
configPath=$1

source $configPath

function exit {
  exit
}

function p {
  echo $1
}

function update {
  git pull
}

function status {
  git status
}

function commit {
  cd $1
  git add .
  #git rm .
  git commit -m $2
  p Done!
}

function updateLive {
  cd $1
  git fetch $2
  git pull $2 $3
  git push
  p Done!
}

function push {
  git push
}

p
p "$message"
p
p
commit $workspace/FCC-Wiki-Scripts $message
p "Done commititng, time to push!"<commit_msg>More progress has been made, this could be changed to say whatever commit message you need. (Automated Message)<commit_after>#!/bin/bash
#

if [ "$1" = "-h" ]; then
     echo "Script to update the local and live version of the FreeCodeCamp wiki"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 0
elif [ "$1" = "-help" ]; then
     echo "Script to update the local and live version of the FreeCodeCamp wiki"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 0
elif [ "$1" = "" ]; then
     echo "Undefined parameters"
     echo "Usage: Update-Wiki.sh full_path_to_config.sh "
     echo "Example ~/Desktop/config.sh"
     sleep 3
	 exit 1
fi
configPath=$1

source $configPath

function exit {
  exit
}

function p {
  echo $1
}

function update {
  git pull
}

function status {
  git status
}

function commit {
  cd $1
  git add .
  #git rm .
  git commit -m "$2"
  p Done!
}

function updateLive {
  cd $1
  git fetch $2
  git pull $2 $3
  git push
  p Done!
}

function push {
  git push
}

p
p "$message"
p
p
commit $workspace/FCC-Wiki-Scripts "$message"
p "Done commititng, time to push!"
{'fraction_non_alphanumeric': 0.10602205258693809, 'fraction_numerical': 0.01441899915182358, 'mean_word_length': 2.7744, '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': '7169493', 'n_tokens_mistral': 865, 'n_tokens_neox': 827, 'n_words': 296}