<commit_before>#!/bin/sh
set -ex

setup() {
    git clone --depth=50 --branch=gh-pages \
        https://github.com/haskell/cabal-website.git ../cabal-website
    cd ../cabal-website
    openssl aes-256-cbc -K $encrypted_edaf6551664d_key \
            -iv $encrypted_edaf6551664d_iv \
            -in id_ed25519_cabal_website.aes256.enc -out id_ed25519 -d
    mv id_ed25519 ~/.ssh/id_ed25519
    mv id_ed25519_cabal_website.pub ~/.ssh/id_ed25519.pub
    chmod 400 ~/.ssh/id_ed25519
    cd -
}

deploy() {
    git config --global user.email "<EMAIL>"
    git config --global user.name "Travis CI User"
    mkdir -p ../cabal-website/doc/html
    mv Cabal/dist/doc/html/Cabal ../cabal-website/doc/html/Cabal
    cd ../cabal-website
    git add .
    git commit --amend --reset-author -m "Deploy to GitHub ($(date))."
    git push --force --quiet \
               <EMAIL>:haskell/haskell-website.git gh-pages
}

if [ "x$TRAVIS_PULL_REQUEST" = "xfalse" -a "x$TRAVIS_BRANCH" = "xmaster" \
                             -a "x$DEPLOY_DOCS" = "xYES" ]
then
    case "${1}" in
        "setup")
            setup
            ;;
        "deploy")
            deploy
            ;;
        *)
            echo Unknown command!
            ;;
    esac
fi<commit_msg>./travis-deploy.sh: Use a full clone instead of a shallow one.<commit_after>#!/bin/sh
set -ex

setup() {
    git https://github.com/haskell/cabal-website.git ../cabal-website
    cd ../cabal-website
    openssl aes-256-cbc -K $encrypted_edaf6551664d_key \
            -iv $encrypted_edaf6551664d_iv \
            -in id_ed25519_cabal_website.aes256.enc -out id_ed25519 -d
    mv id_ed25519 ~/.ssh/id_ed25519
    mv id_ed25519_cabal_website.pub ~/.ssh/id_ed25519.pub
    chmod 400 ~/.ssh/id_ed25519
    chmod 400 ~/.ssh/id_ed25519.pub
    git checkout --track -b gh-pages origin/gh-pages
    cd -
}

deploy() {
    git config --global user.email "<EMAIL>"
    git config --global user.name "Travis CI User"
    mkdir -p ../cabal-website/doc/html
    mv Cabal/dist/doc/html/Cabal ../cabal-website/doc/html/Cabal
    cd ../cabal-website
    git add .
    git commit --amend --reset-author -m "Deploy to GitHub ($(date))."
    git push --force --quiet \
               <EMAIL>:haskell/haskell-website.git gh-pages
}

if [ "x$TRAVIS_PULL_REQUEST" = "xfalse" -a "x$TRAVIS_BRANCH" = "xmaster" \
                             -a "x$DEPLOY_DOCS" = "xYES" ]
then
    case "${1}" in
        "setup")
            setup
            ;;
        "deploy")
            deploy
            ;;
        *)
            echo Unknown command!
            ;;
    esac
fi
{'fraction_non_alphanumeric': 0.13603082851637766, 'fraction_numerical': 0.04932562620423892, 'mean_word_length': 1.8095238095238095, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '759124', 'n_tokens_mistral': 1112, 'n_tokens_neox': 951, 'n_words': 200}