<commit_before>#!/bin/bash

root=`dirname "$0"`

cd $root

make clean
cmake .
make
(ls /usr/local/lib >/dev/null 2>/dev/null) || sudo mkdir /usr/local/lib
sudo cp libdxjson.a /usr/local/lib/
(ls /usr/local/include/dxjson >/dev/null 2>/dev/null) || sudo mkdir /usr/local/include/dxjson
sudo cp dxjson.h /usr/local/include/dxjson
sudo cp -R utf8 /usr/local/include/dxjson<commit_msg>Build dxjson library in a subdirectory.<commit_after>#!/bin/bash

root=`dirname "$0"`

cd $root

mkdir build
cd build
make clean
cmake ..
make
(ls /usr/local/lib >/dev/null 2>/dev/null) || sudo mkdir /usr/local/lib
sudo cp libdxjson.a /usr/local/lib/
(ls /usr/local/include/dxjson >/dev/null 2>/dev/null) || sudo mkdir /usr/local/include/dxjson
sudo cp dxjson.h /usr/local/include/dxjson
sudo cp -R utf8 /usr/local/include/dxjson
{'fraction_non_alphanumeric': 0.16049382716049382, 'fraction_numerical': 0.009876543209876543, 'mean_word_length': 3.660919540229885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4720986', 'n_tokens_mistral': 333, 'n_tokens_neox': 311, 'n_words': 80}