<commit_before>@extends('templates.main')
@section('content')

    @if(Session::has('success_message'))
        <div data-alert class="alert-box success radius">
            {{Session::get('success_message')}} 
        </div>
    @endif
    
    @foreach ($posts as $post)
        <div class="span8">
            <h1><a href="{{ URL::to('posts/'.$post->id) }}">{{ $post->title }}</a></h1>
            <p>{{ str_limit($post->content, $limit = 255, $end = '...') }}</p>
            <span class="badge badge-success">
                <?php $author = User::find($post->author)->username ?>
                Posted by <a href="{{ URL::to('author/'.$author) }}">{{$author}}</a>
                    on {{ date("m/d/Y \a\\t h:i A",strtotime($post->updated_at)) }}
            </span>
            @if ( !Auth::guest() && Auth::user()->id==$post->author )
                {{ Form::open(array('url' => 'post/'.$post->id)) }}
                    <p>{{ Form::submit('Delete', array('class' => 'button tiny alert')) }}</p>
                {{ Form::close() }}
            @endif
            <hr />
        </div><!-/.span8->
    @endforeach
@endsection
<commit_msg>Added title for author filter<commit_after>@extends('templates.main')
@section('content')

    @if (Route::getCurrentRoute()->getPath()=='author/{username}')
        <h1>{{ User::find($posts->first()->author)->username }}'s Blog Posts</h1>
        <hr />
    @endif
    
    @if(Session::has('success_message'))
        <div data-alert class="alert-box success radius">
            {{Session::get('success_message')}} 
        </div>
    @endif
    
    @foreach ($posts as $post)
        <div class="span8">
            <h1><a href="{{ URL::to('posts/'.$post->id) }}">{{ $post->title }}</a></h1>
            <p>{{ str_limit($post->content, $limit = 255, $end = '...') }}</p>
            <span class="badge badge-success">
                <?php $author = User::find($post->author)->username ?>
                Posted by <a href="{{ URL::to('author/'.$author) }}">{{$author}}</a>
                    on {{ date("m/d/Y \a\\t h:i A",strtotime($post->updated_at)) }}
            </span>
            @if ( !Auth::guest() && Auth::user()->id==$post->author )
                {{ Form::open(array('url' => 'post/'.$post->id)) }}
                    <p>{{ Form::submit('Delete', array('class' => 'button tiny alert')) }}</p>
                {{ Form::close() }}
            @endif
            <hr />
        </div><!-/.span8->
    @endforeach
@endsection

{'fraction_non_alphanumeric': 0.23777064955894145, 'fraction_numerical': 0.006415396952686447, 'mean_word_length': 2.099378881987578, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 70, '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': '1647051', 'n_tokens_mistral': 794, 'n_tokens_neox': 769, 'n_words': 141}