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

build_folder=$2/build/$1
curr_dirname=$(dirname "$0")

mkdir -p $build_folder
mkdir -p $2/source

$curr_dirname/download-and-unpack.sh https://github.com/madler/zlib/archive/v$1.tar.gz $2

mv $2/zlib-$1 $2/source/$1
cd $2/source/$1

# if rebuilding
# make distclean

# Debug
# CFLAGS="-fPIC" ./configure --prefix=$ZLIB_BUILD_FOLDER --static --debug

# Release - Static
CFLAGS="-fPIC" ./configure --prefix=$ZLIB_BUILD_FOLDER --static

# Release - Both
# CFLAGS="-fPIC" ./configure --prefix=$build_folder

make && make install
<commit_msg>build: fiz zlib build script using undefined variable names [skip appveyor]<commit_after>#!/bin/bash
# <release> <dest_folder>
set -e

build_folder=$2/build/$1
curr_dirname=$(dirname "$0")

mkdir -p $build_folder
mkdir -p $2/source

$curr_dirname/download-and-unpack.sh https://github.com/madler/zlib/archive/v$1.tar.gz $2

mv $2/zlib-$1 $2/source/$1
cd $2/source/$1

# if rebuilding
# make distclean

# Debug
# CFLAGS="-fPIC" ./configure --prefix=$build_folder --static --debug

# Release - Static
CFLAGS="-fPIC" ./configure --prefix=$build_folder --static

# Release - Both
# CFLAGS="-fPIC" ./configure --prefix=$build_folder

make && make install

{'fraction_non_alphanumeric': 0.17227564102564102, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 4.139917695473251, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6579031', 'n_tokens_mistral': 469, 'n_tokens_neox': 456, 'n_words': 102}