<commit_before>#!/usr/bin/env bash

LAST_ARG=${@:$#}

clang-tidy $@ -header-filter=$(realpath .) -system-headers=0 -p ./ \
           -- \
           -std=c++14 \
           -I./ \
           -x c++ \
           -I bazel-genfiles \
	   `pkg-config ibex --cflags` \
           -isystem bazel-dreal4/external/spdlog/include \
           -isystem bazel-dreal4/external/fmt \
           -isystem bazel-dreal4/external/drake_symbolic \
           -isystem bazel-dreal4/external/ezoptionparser \
           -isystem bazel-dreal4/external/gtest/googletest/include \
           -isystem bazel-dreal4/external/picosat \
           -isystem /usr/local/opt/llvm/include/c++/v1 \
           -isystem /usr/local/include \
           -isystem /usr/local/opt/flex/include \

if [ ${LAST_ARG} == "--fix" ];
then
    git-clang-format -f
fi<commit_msg>scripts: Update run-clang-tidy<commit_after>#!/usr/bin/env bash

LAST_ARG=${@:$#}
EXEC_ROOT=`bazel info execution_root`
BAZEL_EXTERNAL=${EXEC_ROOT}/external

clang-tidy $@ -header-filter=$(realpath .) -system-headers=0 -p ./ \
           -- \
           -std=c++14 \
           -I./ \
           -x c++ \
           -I bazel-genfiles \
	   `pkg-config ibex --cflags` \
           -isystem ${BAZEL_EXTERNAL}/spdlog/include \
           -isystem ${BAZEL_EXTERNAL}/fmt \
           -isystem ${BAZEL_EXTERNAL}/drake_symbolic \
           -isystem ${BAZEL_EXTERNAL}/ezoptionparser \
           -isystem ${BAZEL_EXTERNAL}/gtest/googletest/include \
           -isystem ${BAZEL_EXTERNAL}/picosat \
           -isystem /usr/local/opt/llvm/include/c++/v1 \
           -isystem /usr/local/include \
           -isystem /usr/local/opt/flex/include \

if [ ${LAST_ARG} == "--fix" ];
then
    git-clang-format -f
fi
{'fraction_non_alphanumeric': 0.15841013824884792, 'fraction_numerical': 0.008064516129032258, 'mean_word_length': 1.7397476340694007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3363533', 'n_tokens_mistral': 643, 'n_tokens_neox': 635, 'n_words': 87}