<commit_before>#!/bin/bash -e

export DOCS_BUCKET=$1
export DOCS_REGION=$2
export AWS_S3_LOCAL_PATH="site"

sync_docs() {
  pushd IN/docs_repo/gitRepo/

  if [ -d "$AWS_S3_LOCAL_PATH" ]; then
    cp -r sources "$AWS_S3_LOCAL_PATH"
    cp -r themes "$AWS_S3_LOCAL_PATH"
    # echo "Installing requirements with pip"
    # pip install -r requirements.txt

    # echo "Building docs"
    # mkdocs build
  else
    mkdir -p "$AWS_S3_LOCAL_PATH"
    echo "Directory created: $AWS_S3_LOCAL_PATH"
  fi

  echo "Syncing with S3"
  aws s3 sync $AWS_S3_LOCAL_PATH $DOCS_BUCKET --delete --acl public-read --region $DOCS_REGION
  popd
}

sync_docs
<commit_msg>remove directory checks<commit_after>#!/bin/bash -e

export DOCS_BUCKET=$1
export DOCS_REGION=$2
export AWS_S3_LOCAL_PATH="site"

sync_docs() {
  pushd IN/docs_repo/gitRepo/

  mkdir -p "$AWS_S3_LOCAL_PATH"
  cp -r sources "$AWS_S3_LOCAL_PATH"
  cp -r themes "$AWS_S3_LOCAL_PATH"
  #echo "Installing requirements with pip"
  # pip install -r requirements.txt

  # echo "Building docs"
  # mkdocs build


  echo "Syncing with S3"
  aws s3 sync $AWS_S3_LOCAL_PATH $DOCS_BUCKET --delete --acl public-read --region $DOCS_REGION
  popd
}

sync_docs

{'fraction_non_alphanumeric': 0.10318791946308725, 'fraction_numerical': 0.016778523489932886, 'mean_word_length': 3.810483870967742, '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': '3772471', 'n_tokens_mistral': 481, 'n_tokens_neox': 473, 'n_words': 116}