<commit_before>#!/bin/bash
set -e

if [[ $# -eq 0 ]]; then
  echo "Usage:"
  echo "  checkout_clang TARGET_DIR [TAG]"
  echo ""
  echo "where TAG has to match a valid SVN tag of the main LLVM repository:"
  echo "http://llvm.org/svn/llvm-project/llvm/"
  echo "If TAG is not specified, 'trunk' will be used."
  echo ""
  echo "Examples:"
  echo "  checkout_clang ~/clang500 tags/RELEASE_500/final"
  echo "  checkout_clang ~/clang_trunk"
  exit 1
fi

TARGET_DIR=$(pwd)
if [[ ! -z "$1" ]]; then
  TARGET_DIR=$1
fi

TAG=trunk
if [[ ! -z "$2" ]]; then
  TAG=$2
fi

CURRENT_DIR=$(pwd)
mkdir -p ${TARGET_DIR}
cd ${TARGET_DIR}

svn co http://llvm.org/svn/llvm-project/llvm/$TAG llvm

cd ${TARGET_DIR}/llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/$TAG clang
svn co http://llvm.org/svn/llvm-project/lld/$TAG lld
svn co http://llvm.org/svn/llvm-project/polly/$TAG polly
# optionally dis-/enable to build lldb
svn co http://llvm.org/svn/llvm-project/lldb/$TAG lldb

cd ${TARGET_DIR}/llvm/tools/clang/tools
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/$TAG extra

cd ${TARGET_DIR}/llvm/projects
svn co http://llvm.org/svn/llvm-project/openmp/$TAG openmp
svn co http://llvm.org/svn/llvm-project/compiler-rt/$TAG compiler-rt
svn co http://llvm.org/svn/llvm-project/libcxx/$TAG libcxx
svn co http://llvm.org/svn/llvm-project/libcxxabi/$TAG libcxxabi
cd ${TARGET_DIR}

# Check libcxx(abi) out again; these will be build with Clang
if [ "$(uname -s)" == "Linux" ]; then
  svn co http://llvm.org/svn/llvm-project/libcxxabi/$TAG libcxxabi
  svn co http://llvm.org/svn/llvm-project/libcxx/$TAG libcxx
fi

cd ${CURRENT_DIR}<commit_msg>Fixed typo.<commit_after>#!/bin/bash
set -e

if [[ $# -eq 0 ]]; then
  echo "Usage:"
  echo "  checkout_clang TARGET_DIR [TAG]"
  echo ""
  echo "where TAG has to match a valid SVN tag of the main LLVM repository:"
  echo "http://llvm.org/svn/llvm-project/llvm/"
  echo "If TAG is not specified, 'trunk' will be used."
  echo ""
  echo "Examples:"
  echo "  checkout_clang ~/clang500 tags/RELEASE_500/final"
  echo "  checkout_clang ~/clang_trunk"
  exit 1
fi

TARGET_DIR=$(pwd)
if [[ ! -z "$1" ]]; then
  TARGET_DIR=$1
fi

TAG=trunk
if [[ ! -z "$2" ]]; then
  TAG=$2
fi

CURRENT_DIR=$(pwd)
mkdir -p ${TARGET_DIR}
cd ${TARGET_DIR}

svn co http://llvm.org/svn/llvm-project/llvm/$TAG llvm

cd ${TARGET_DIR}/llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/$TAG clang
svn co http://llvm.org/svn/llvm-project/lld/$TAG lld
svn co http://llvm.org/svn/llvm-project/polly/$TAG polly
# optionally dis-/enable to build lldb
svn co http://llvm.org/svn/llvm-project/lldb/$TAG lldb

cd ${TARGET_DIR}/llvm/tools/clang/tools
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/$TAG extra

cd ${TARGET_DIR}/llvm/projects
svn co http://llvm.org/svn/llvm-project/openmp/$TAG openmp
svn co http://llvm.org/svn/llvm-project/compiler-rt/$TAG compiler-rt
svn co http://llvm.org/svn/llvm-project/libcxx/$TAG libcxx
svn co http://llvm.org/svn/llvm-project/libcxxabi/$TAG libcxxabi
cd ${TARGET_DIR}

# Check libcxx(abi) out again; these will be built with Clang
if [ "$(uname -s)" == "Linux" ]; then
  svn co http://llvm.org/svn/llvm-project/libcxxabi/$TAG libcxxabi
  svn co http://llvm.org/svn/llvm-project/libcxx/$TAG libcxx
fi

cd ${CURRENT_DIR}
{'fraction_non_alphanumeric': 0.1634086744043983, 'fraction_numerical': 0.007330482590103849, 'mean_word_length': 3.7258297258297257, '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': '7355295', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1283, 'n_words': 306}