<commit_before>#!/bin/bash

# Copyright (c) 2014, <NAME>
# All rights reserved.

set -x

for x in "$@";
do
  if [ "${x}" == "-c" ];
  then
    temp="`mktemp`"

    # analyze
    clang++ --analyze "$@" 2> "${temp}"

    RESULT=0
    [ "$?" == 0 ] || RESULT=1
    [ -s "${temp}" ] && RESULT=1

    cat "${temp}";
    rm -f "${temp}"

    if [ "${RESULT}" == "1" ];
    then
      exit 1;
    fi
  fi
done

# compile real code
clang++ "$@"<commit_msg>analyze: fix mac os<commit_after>#!/bin/bash

# Copyright (c) 2014, <NAME>
# All rights reserved.

set -x

for x in "$@";
do
  if [ "${x}" == "-c" ];
  then
    temp_out="`mktemp /tmp/polly-clang-analyze.out.XXXXX`"
    temp_bin="`mktemp /tmp/polly-clang-analyze.bin.XXXXX`"

    # analyze
    clang++ --analyze "$@" -o "${temp_bin}" 2> "${temp_out}"

    RESULT=0
    [ "$?" == 0 ] || RESULT=1
    [ -s "${temp_out}" ] && RESULT=1

    cat "${temp_out}";
    rm -f "${temp_out}"
    rm -f "${temp_bin}"

    if [ "${RESULT}" == "1" ];
    then
      exit 1;
    fi
  fi
done

# compile real code
clang++ "$@"
{'fraction_non_alphanumeric': 0.2346263008514664, 'fraction_numerical': 0.020813623462630087, 'mean_word_length': 2.348101265822785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5685755', 'n_tokens_mistral': 463, 'n_tokens_neox': 427, 'n_words': 107}