<commit_before><?php
    $traverse = function($comments) use (&$traverse) {
        foreach($comments as $comment):

?>
    <div class="card-block comment" data-comment="{{ $comment->id }}">
        <h4>
            {{ $comment->user->handle ?? "[DELETED]" }}
            @if($comment->parent_id ?? false)
                <small>in reply to {{ $comment->parent->user->handle }}</small>
            @endif
        </h4>
        <p class="card-text">{{ $comment->body ?? "Comment Not Found" }}</p>
        <a class="card-link small" href="#{{ $comment->getId() }}">Permalink</a>
        @can('Can comment')
            <a class="card-link small reply-to-comment" role="button">Reply</a>
        @endcan
        @if($comment->children ?? false)
            <?php $traverse($comment->children) ?>
        @endif<commit_msg>Link to comments and profiles.<commit_after><?php
    $traverse = function($comments) use (&$traverse) {
        foreach($comments as $comment):

?>
    <div class="card-block comment" id="comment{{ $comment->getId() }}" data-comment="{{ $comment->id }}">
        <h4>
            <a href="{{ $comment->user->getProfileLink() }}" class="lead-unstyled">{{ $comment->user->handle ?? "[DELETED]" }}</a>
            @if($comment->parent_id ?? false)
                <small>in reply to <a href="{{ $comment->parent->user->getProfileLink() }}">{{ $comment->parent->user->handle }}</a></small>
            @endif
        </h4>
        <p class="card-text">{{ $comment->body ?? "Comment Not Found" }}</p>
        <a class="card-link small" href="#comment{{ $comment->getId() }}">Permalink</a>
        @can('Can comment')
            <a class="card-link small reply-to-comment" role="button">Reply</a>
        @endcan
        @auth
            <a class="card-link small" role="button" id="report-{{ $comment->getId() }}">Report</a>
        @endauth
        @if($comment->children ?? false)
            <?php $traverse($comment->children) ?>
        @endif
{'fraction_non_alphanumeric': 0.21068702290076335, 'fraction_numerical': 0.002035623409669211, 'mean_word_length': 2.5745454545454547, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 64, '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': '3133342', 'n_tokens_mistral': 591, 'n_tokens_neox': 591, 'n_words': 124}