<commit_before>#GCC_OUTDIR=~/opt/riscv
DFU_UTIL_SRCDIR=../gd32-dfu-utils/src
STM_FLASH_SRC_DIR=../stm32flash-code
OPENOCD_SRC_DIR=../riscv-openocd/src
#GCC_ARCHIVE=toolchain-gd32v-darwin_x86_64-9.2.0-unofficial.tar.gz
GCC_ARCHIVE=riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin.tar.gz
OPENOCD_ARCHIVE=tool-openocd-riscv-darwin_x86_64-0.9.20191123-unofficial.tar.gz
FLASH_ARCHIVE=tool-gd32vflash-darwin_x86_64-0.1.0-unofficial.tar.gz
GCC_DOWNLOAD_DIR=../riscv-toolchain-download-sifive
GCC_EXTRACT_DIR=riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin

find . -name ".DS_Store" -exec rm {} \;
# find ${GCC_OUTDIR} -name ".DS_Store" -exec rm {} \;

if [ -e ${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE} ]
then
	echo "Found toolchain not downloading"
else
    curl https://static.dev.sifive.com/dev-tools/${GCC_ARCHIVE} --output "${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE}"
fi
tar -x --cd ${GCC_DOWNLOAD_DIR} -f "${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE}"
cp toolchain-riscv-mac/package.json ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR}
tar -czvf ${GCC_ARCHIVE} --cd ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR} .
#cleanup extracted files
rm -r ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR}

# tar -czvf ${GCC_ARCHIVE} --cd  ${GCC_OUTDIR} .<commit_msg>change dir of toolchain package file<commit_after>#GCC_OUTDIR=~/opt/riscv
DFU_UTIL_SRCDIR=../gd32-dfu-utils/src
STM_FLASH_SRC_DIR=../stm32flash-code
OPENOCD_SRC_DIR=../riscv-openocd/src
#GCC_ARCHIVE=toolchain-gd32v-darwin_x86_64-9.2.0-unofficial.tar.gz
GCC_ARCHIVE=riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin.tar.gz
OPENOCD_ARCHIVE=tool-openocd-riscv-darwin_x86_64-0.9.20191123-unofficial.tar.gz
FLASH_ARCHIVE=tool-gd32vflash-darwin_x86_64-0.1.0-unofficial.tar.gz
GCC_DOWNLOAD_DIR=../riscv-toolchain-download-sifive
GCC_EXTRACT_DIR=riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin

find . -name ".DS_Store" -exec rm {} \;
# find ${GCC_OUTDIR} -name ".DS_Store" -exec rm {} \;

if [ -e ${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE} ]
then
	echo "Found toolchain not downloading"
else
    curl https://static.dev.sifive.com/dev-tools/${GCC_ARCHIVE} --output "${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE}"
fi
tar -x --cd ${GCC_DOWNLOAD_DIR} -f "${GCC_DOWNLOAD_DIR}/${GCC_ARCHIVE}"
cp toolchain-gd32v-mac/package.json ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR}
tar -czvf ${GCC_ARCHIVE} --cd ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR} .
#cleanup extracted files
rm -r ${GCC_DOWNLOAD_DIR}/${GCC_EXTRACT_DIR}

# tar -czvf ${GCC_ARCHIVE} --cd  ${GCC_OUTDIR} .
{'fraction_non_alphanumeric': 0.1688888888888889, 'fraction_numerical': 0.055757575757575756, 'mean_word_length': 5.19, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5230253', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1096, 'n_words': 127}