<commit_before>@layout('template.main')
@section('content')

<div class='container-fluid'>
    <div class='row'>
        <div style="float: left;">
            <h1>Courses</h1>
        </div>
        <div style='float: right;'>
            {{ HTML::link_to_route('newcourse','Add a new course') }}
        </div>
    </div>
    @foreach($courses as $acourse)
        <div style="container-fluid">
            <h3>{{ $acourse->code }}: {{ $acourse->name }}</h3>
            <p>{{ HTML::link(URL::to_route('listsubjects', array($acourse->code)), 'See subjects for ' . $acourse->name) }}</p>
            <p>{{ HTML::link(URL::to_route('editcourse', array($acourse->code)), 'Update this course: ' . $acourse->name) }}</p>
        </div>
    @endforeach
</div>

@endsection<commit_msg>fixed rules for courses<commit_after>@layout('template.main')
@section('content')

<div class='container-fluid'>
    <div class='row'>
        <div style="float: left;">
            <h1>Courses</h1>
        </div>
        @if (Auth::user()->role == 'admin')
            <div style='float: right;'>
                {{ HTML::link_to_route('newcourse','Add a new course') }}
            </div>
        @endif
    </div>
    @foreach($courses as $acourse)
        <div style="container-fluid">
            <h3>{{ $acourse->code }}: {{ $acourse->name }}</h3>
            <p>{{ HTML::link(URL::to_route('listsubjects', array($acourse->code)), 'See subjects for ' . $acourse->name) }}</p>
            @if (Auth::user()->role == 'admin')
                <p>{{ HTML::link(URL::to_route('editcourse', array($acourse->code)), 'Update this course: ' . $acourse->name) }}</p>
            @endif
        </div>
    @endforeach
</div>

@endsection
{'fraction_non_alphanumeric': 0.21495327102803738, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 2.5987394957983194, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 53, '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': '5886967', 'n_tokens_mistral': 566, 'n_tokens_neox': 553, 'n_words': 108}