<commit_before>#!/bin/sh
#
# Run clang-tidy in fix mode and verify fixes, messages or both.
# Usage:
#   check_clang_tidy.sh <source-file> <check-name> <temp-file> \
#     [optional clang-tidy arguments]
#
# Example:
#   // RUN: $(dirname %s)/check_clang_tidy.sh %s llvm-include-order %t -- -isystem $(dirname %s)/Inputs/Headers
#   // REQUIRES: shell

INPUT_FILE=$1
CHECK_TO_RUN=$2
TEMPORARY_FILE=$3.cpp
# Feed the rest arguments to clang-tidy.
shift 3
if [ "$#" -eq 0 ] ; then
  # Default to -- --std=c++11
  set - -- --std=c++11<commit_msg>Appease test/clang-tidy/misc-unused-parameters.cpp for targeting *-win32, to add -fno-delayed-template-parsing.<commit_after>#!/bin/sh
#
# Run clang-tidy in fix mode and verify fixes, messages or both.
# Usage:
#   check_clang_tidy.sh <source-file> <check-name> <temp-file> \
#     [optional clang-tidy arguments]
#
# Example:
#   // RUN: $(dirname %s)/check_clang_tidy.sh %s llvm-include-order %t -- -isystem $(dirname %s)/Inputs/Headers
#   // REQUIRES: shell

INPUT_FILE=$1
CHECK_TO_RUN=$2
TEMPORARY_FILE=$3.cpp
# Feed the rest arguments to clang-tidy.
shift 3
if [ "$#" -eq 0 ] ; then
  # Default to -- --std=c++11
  set - -- --std=c++11
  # Suppress -target=*-win32.
  set - -- -fno-delayed-template-parsing
{'fraction_non_alphanumeric': 0.17131474103585656, 'fraction_numerical': 0.01752988047808765, 'mean_word_length': 3.3460207612456747, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5432310', 'n_tokens_mistral': 509, 'n_tokens_neox': 491, 'n_words': 114}