<commit_before>#!/bin/bash

if [[ -z "$1" ]]; then
    echo "$0 DEBUGEE ARGS"
    exit 1
fi

output=$(pwd)/malloctrace.$1

cb
LD_PRELOAD=./libmalloctrace.so DUMP_MALLOC_TRACE_OUTPUT="$output" $@ &
pid=$!
wait $pid
# bzip2 "$output.$pid"<commit_msg>Make it possible to run the malloc tracer in GDB easily.<commit_after>#!/bin/bash

debug=
if [[ "$1" == "--debug" ]]; then
  debug=1
  shift 1;
fi

if [[ -z "$1" ]]; then
    echo "$0 DEBUGEE ARGS"
    exit 1
fi

output=$(pwd)/malloctrace.$1

cb
if [ -z "$debug" ]; then
  LD_PRELOAD=./libmalloctrace.so DUMP_MALLOC_TRACE_OUTPUT="$output" $@ &
  pid=$!
  wait $pid
  #bzip2 "$output.$pid"
else
  gdb --eval-command="set environment LD_PRELOAD=./libmalloctrace.so" --eval-command="run" --args $@
fi
{'fraction_non_alphanumeric': 0.1865771812080537, 'fraction_numerical': 0.0174496644295302, 'mean_word_length': 3.751592356687898, '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': '7496089', 'n_tokens_mistral': 320, 'n_tokens_neox': 299, 'n_words': 72}