<commit_before>#!/bin/sh

if [ -z $1 ]
then
        exit
fi

ADDR=$(grep -A 1 'Page fault:' $1  | tail -n 1 | cut -d " " -f 4)
LINE=$(i686-elf-addr2line -e kernel.elf $ADDR)

grep -A 1 'Page fault:' $1
echo
echo "Code line is:"
echo $LINE
<commit_msg>extract only the first pf<commit_after>#!/bin/sh

if [ -z $1 ]
then
        exit
fi

ADDR=$(grep -m 1 -A 1 'Page fault:' $1  | tail -n 1 | cut -d " " -f 4)
LINE=$(i686-elf-addr2line -e kernel.elf $ADDR)

grep -m 1 -A 1 'Page fault:' $1
echo
echo "Code line is:"
echo $LINE

{'fraction_non_alphanumeric': 0.17557251908396945, 'fraction_numerical': 0.04580152671755725, 'mean_word_length': 2.6206896551724137, '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': '492768', 'n_tokens_mistral': 240, 'n_tokens_neox': 223, 'n_words': 82}