<commit_before>@extends('flare::admin.sections.wrapper')

@section('page_title', $modelAdmin->pluralTitle())

@section('content')

<div class="">
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        All {{ $modelAdmin->pluralTitle() }}
                    </h3>
                    <div class="box-tools">
                        <div style="width: 350px;" class="input-group">
                            <div class="input-group-btn">
                                <button type="button" class="btn btn-sm btn-default btn-flat dropdown-toggle" data-toggle="dropdown">
                                    10 Per Page <span class="fa fa-caret-down"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li><a href="#">25 Per Page</a></li>
                                    <li><a href="#">50 Per Page</a></li>
                                    <li><a href="#">100 Per Page</a></li>
                                </ul>
                            </div>

                            <input type="text" placeholder="Search" class="form-control input-sm pull-right">

                            <div class="input-group-btn">
                                <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-body no-padding">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                @foreach ($modelAdmin->getColumns() as $key => $field)
                                <th {{ ($key == 'id' ? 'style="tight"' : '') }} style="tight">
                                    @if (strpos($key, '.') == 0 && !$modelAdmin->model()->hasGetMutator($key))
                                    <a href="{{ $modelAdmin::currentUrl('') }}?order={{ $key }}&sort={{ ($modelAdmin->sortBy() == 'asc' ? 'desc' : 'asc') }}">
                                        {{ $field }}
                                        @if (Request::input('order', 'id') == $key)
                                        <i class="fa fa-caret-{{ ($modelAdmin->sortBy() == 'asc' ? 'up' : 'down') }}"></i>
                                        @endif
                                    </a>
                                    @else 
                                    {{ $field }}
                                    @endif
                                </th>
                                @endforeach
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                        @if ($modelAdmin->items()->count() > 0)    
                            @foreach($modelAdmin->items() as $modelItem)    
                                <tr>
                                    @foreach ($modelAdmin->getColumns() as $key => $field)
                                    <td>
                                        {!! $modelAdmin->getAttribute($key, $modelItem) !!}
                                    </td>
                                    @endforeach
                                    <td style="width: 1%; white-space:nowrap">
                                        <a class="btn btn-success btn-xs" href="{{ $modelAdmin::currentUrl('view/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-eye"></i>
                                            View
                                        </a>
                                        <a class="btn btn-primary btn-xs" href="{{ $modelAdmin::currentUrl('edit/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-edit"></i>
                                            Edit
                                        </a>
                                        <a class="btn btn-warning btn-xs" href="{{ $modelAdmin::currentUrl('clone/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-copy"></i>
                                            Clone
                                        </a>
                                        <a class="btn btn-danger btn-xs" href="{{ $modelAdmin::currentUrl('delete/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-trash"></i>
                                            Delete
                                        </a>
                                    </td>
                                </tr>
                            @endforeach
                        @else 
                            <tr>
                                <td colspan="{{ count($modelAdmin->getColumns())+2 }}">
                                    No {{ $modelAdmin->pluralTitle() }} Found
                                </td>
                            </tr>
                        @endif
                        </tbody>
                    </table>
                </div>
                <div class="box-footer clearfix">
                    <div class="pull-left">
                        <a href="{{ $modelAdmin::currentUrl('create') }}" class="btn btn-success">
                            <i class="fa fa-{{ $modelAdmin::getIcon() }}"></i>
                            Add {{ $modelAdmin->title() }}
                        </a>
                    </div>

                    @if ($modelAdmin->getPerPage())
                    <div class="pull-right" style="margin-top: -20px; margin-bottom: -20px;">
                        {!! $modelAdmin->items()->appends([
                                                                            'sort' => $modelAdmin->sortBy() == 'asc' ? 'asc' : null,
                                                                            'order' => $modelAdmin->orderBy(),
                                                                        ])->render() !!}
                    </div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>

@stop
<commit_msg>Change fa-copy to fa-clone for clone buttons<commit_after>@extends('flare::admin.sections.wrapper')

@section('page_title', $modelAdmin->pluralTitle())

@section('content')

<div class="">
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">
                        All {{ $modelAdmin->pluralTitle() }}
                    </h3>
                    <div class="box-tools">
                        <div style="width: 350px;" class="input-group">
                            <div class="input-group-btn">
                                <button type="button" class="btn btn-sm btn-default btn-flat dropdown-toggle" data-toggle="dropdown">
                                    10 Per Page <span class="fa fa-caret-down"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li><a href="#">25 Per Page</a></li>
                                    <li><a href="#">50 Per Page</a></li>
                                    <li><a href="#">100 Per Page</a></li>
                                </ul>
                            </div>

                            <input type="text" placeholder="Search" class="form-control input-sm pull-right">

                            <div class="input-group-btn">
                                <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-body no-padding">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                @foreach ($modelAdmin->getColumns() as $key => $field)
                                <th {{ ($key == 'id' ? 'style="tight"' : '') }} style="tight">
                                    @if (strpos($key, '.') == 0 && !$modelAdmin->model()->hasGetMutator($key))
                                    <a href="{{ $modelAdmin::currentUrl('') }}?order={{ $key }}&sort={{ ($modelAdmin->sortBy() == 'asc' ? 'desc' : 'asc') }}">
                                        {{ $field }}
                                        @if (Request::input('order', 'id') == $key)
                                        <i class="fa fa-caret-{{ ($modelAdmin->sortBy() == 'asc' ? 'up' : 'down') }}"></i>
                                        @endif
                                    </a>
                                    @else 
                                    {{ $field }}
                                    @endif
                                </th>
                                @endforeach
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                        @if ($modelAdmin->items()->count() > 0)    
                            @foreach($modelAdmin->items() as $modelItem)    
                                <tr>
                                    @foreach ($modelAdmin->getColumns() as $key => $field)
                                    <td>
                                        {!! $modelAdmin->getAttribute($key, $modelItem) !!}
                                    </td>
                                    @endforeach
                                    <td style="width: 1%; white-space:nowrap">
                                        <a class="btn btn-success btn-xs" href="{{ $modelAdmin::currentUrl('view/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-eye"></i>
                                            View
                                        </a>
                                        <a class="btn btn-primary btn-xs" href="{{ $modelAdmin::currentUrl('edit/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-edit"></i>
                                            Edit
                                        </a>
                                        <a class="btn btn-warning btn-xs" href="{{ $modelAdmin::currentUrl('clone/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-clone"></i>
                                            Clone
                                        </a>
                                        <a class="btn btn-danger btn-xs" href="{{ $modelAdmin::currentUrl('delete/'.$modelItem->getKey()) }}">
                                            <i class="fa fa-trash"></i>
                                            Delete
                                        </a>
                                    </td>
                                </tr>
                            @endforeach
                        @else 
                            <tr>
                                <td colspan="{{ count($modelAdmin->getColumns())+2 }}">
                                    No {{ $modelAdmin->pluralTitle() }} Found
                                </td>
                            </tr>
                        @endif
                        </tbody>
                    </table>
                </div>
                <div class="box-footer clearfix">
                    <div class="pull-left">
                        <a href="{{ $modelAdmin::currentUrl('create') }}" class="btn btn-success">
                            <i class="fa fa-{{ $modelAdmin::getIcon() }}"></i>
                            Add {{ $modelAdmin->title() }}
                        </a>
                    </div>

                    @if ($modelAdmin->getPerPage())
                    <div class="pull-right" style="margin-top: -20px; margin-bottom: -20px;">
                        {!! $modelAdmin->items()->appends([
                                                                            'sort' => $modelAdmin->sortBy() == 'asc' ? 'asc' : null,
                                                                            'order' => $modelAdmin->orderBy(),
                                                                        ])->render() !!}
                    </div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>

@stop

{'fraction_non_alphanumeric': 0.13767090994813766, 'fraction_numerical': 0.003771805752003772, 'mean_word_length': 0.7303874915023794, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 257, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 132, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5039583', 'n_tokens_mistral': 2767, 'n_tokens_neox': 2600, 'n_words': 524}