<commit_before>from __future__ import print_function
import sys
from subprocess import call
import os

if len(sys.argv) == 1:
    print("invalid input");
    sys.exit(1)

if sys.argv[1] != 'install':
    print("invalid input");
    sys.exit(1)

if len(sys.argv) == 3 and sys.argv[2] != '--force':
    print("invalid input");
    sys.exit(1)

if len(sys.argv) > 3:
    print("invalid input");
    sys.exit(1)

os.environ['CC'] = os.popen("which %s" % "clang").read().strip()
os.environ['CXX'] = os.popen("which %s" % "clang++").read().strip()

call(["mkdir", "-p", "build"])
os.chdir("build");
call(["cmake", "../", "-DINSTALL_SITE=on", "-DBUILD_TESTING=off"])
call(["make", "install"])<commit_msg>rtd builds seem to work when incremental.<commit_after>from __future__ import print_function
import sys
from subprocess import call
import os

if len(sys.argv) != 3:
    print("invalid input");
    sys.exit(1)

if sys.argv[1] != 'install':
    print("invalid input");
    sys.exit(1)

if len(sys.argv) == 3 and sys.argv[2] != '--force':
    print("invalid input");
    sys.exit(1)

os.environ['CC'] = os.popen("which %s" % "clang").read().strip()
os.environ['CXX'] = os.popen("which %s" % "clang++").read().strip()

call(["mkdir", "-p", "build"])
os.chdir("build");
call(["cmake", "../", "-DINSTALL_SITE=on", "-DBUILD_TESTING=off"])
call(["make", "install"])
{'fraction_non_alphanumeric': 0.23173431734317343, 'fraction_numerical': 0.011808118081180811, 'mean_word_length': 4.467741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '387550', 'n_tokens_mistral': 511, 'n_tokens_neox': 502, 'n_words': 111}