<commit_before># Prereqs: Make sure OCCAM envirnment is setup and WLLVM is installed
# env vars should be setup

# set CC to clang. Dragonegg works too
export LLVM_COMPILER=clang
export WLLVM_OUTPUT=WARNING

# download and fetch source
mkdir tmp
wget http://lighttpd.net/download/lighttpd-1.4.13.tar.gz
tar -zxvf lighttpd-1.4.13.tar.gz
cd lighttpd-1.4.13

# configure without shared libs...will save headaches
CC=wllvm .configure --without-openssl --without-pcre --without-zlib --without-bzip2 

CC=wllvm make

# extract bitcode
cd src
extract-bc lighttpd

## now to specialize
mkdir spec && cd spec
cd ..
cp lighttpd.bc spec

# set up manifests
 cat > lhttpd.manifest <<EOF
{ "modules" : ["lighttpd.bc"]
, "binary"  : "lighttpd"
, "libs"    : []
, "native_libs" : []
,"search": []<commit_msg>Updated manifest to new form.<commit_after># Prereqs: Make sure OCCAM envirnment is setup and WLLVM is installed
# env vars should be setup

# set CC to clang. Dragonegg works too
export LLVM_COMPILER=clang
export WLLVM_OUTPUT=WARNING

# download and fetch source
mkdir tmp
wget http://lighttpd.net/download/lighttpd-1.4.13.tar.gz
tar -zxvf lighttpd-1.4.13.tar.gz
cd lighttpd-1.4.13

# configure without shared libs...will save headaches
CC=wllvm .configure --without-openssl --without-pcre --without-zlib --without-bzip2 

CC=wllvm make

# extract bitcode
cd src
extract-bc lighttpd

## now to specialize
mkdir spec && cd spec
cd ..
cp lighttpd.bc spec

# set up manifests
 cat > lhttpd.manifest <<EOF
{ "main" : "lighttpd.bc"
, "binary"  : "lighthttpd"
{'fraction_non_alphanumeric': 0.11312217194570136, 'fraction_numerical': 0.01680672268907563, 'mean_word_length': 3.9456869009584663, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3730980', 'n_tokens_mistral': 578, 'n_tokens_neox': 554, 'n_words': 171}