<commit_before>@extends('admin.core')

@section('content')
    <div id="list">
        @if(sizeof($list) > 0)
            <table class="table table-hover">
                <h3>{{ trans('app.language_codes_list') }}</h3>
                <tr>
                    @foreach($list[0] as $key => $value)
                        <th>{{$key}}</th>
                    @endforeach
                </tr>



                    @foreach($list as $record)
                    <tr id="{{ $record['id'] }}">
                        @foreach($record as $key => $one)
                            @if($key == 'is_active')
                                <td>@if($one == 1)
                                        <button onclick="toggleActive( '{{ route($callAction, $record['id']) }}',0 )"
                                                type="button" class="btn btn-danger">{{ trans('app.disable') }}</button>
                                        <button onclick="toggleActive( '{{ route($callAction, $record['id']) }}',1 )"
                                                type="button" style="display:none"<commit_msg>checking is there is a create route, it will give back a button<commit_after>@extends('admin.core')

@section('content')


    <div id="list">
        <div><h3>{{ $title }} </h3></div>
        <div> @if(isset($create))
                <a class="btn btn-success" href="{{route($create)}}"> New one </a>
            @endif
        </div>
        @if(sizeof($list) > 0)
            <table class="table table-hover">
                <h3>{{ trans('app.language_codes_list') }}</h3>
                <tr>
                    @foreach($list[0] as $key => $value)
                        <th>{{$key}}</th>
                    @endforeach
                </tr>



                    @foreach($list as $record)
                    <tr id="{{ $record['id'] }}">
                        @foreach($record as $key => $one)
                            @if($key == 'is_active')
                                <td>@if($one == 1)
                                        <button onclick="toggleActive( '{{ route($callAction, $record['id']) }}',0 )"
                                                type="button" class="btn btn-danger">{{ trans('app.disable') }}</button>
                                        <button onclick="toggleActive( '{{ route($callAction, $record['id']) }}',1 )"
                                                type="button" style="display:none"
{'fraction_non_alphanumeric': 0.170394469296462, 'fraction_numerical': 0.0065067100447336315, 'mean_word_length': 1.2262443438914028, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1769642', 'n_tokens_mistral': 638, 'n_tokens_neox': 594, 'n_words': 127}