<commit_before>@extends('layouts.app')

@section('sidemenu')
    @include('layouts.menu')
@endsection

@section('content')

    <a href="{{ '/section/'.$image->parent_id }}">&lt; Back</a>

    <div class="panel panel-default">
        <div class="panel-heading">
            @foreach($texts as $text)
                <h1>{{ $text->language }}:{{ $text->text }}</h1>
                <deletetextbutton
                    button="Delete text"
                    action="{{ route('texts.destroy', $text->id) }}"
                    csrf_token="{{ csrf_token() }}" 
                    method="DELETE">
                </deletetextbutton>
            @endforeach
            @if (sizeof($image->texts)==0)
            <h1>
                (untitled)
            </h1>
            @endif
            <addtextbutton
                button="Add text"
                type="body"
                text=""
                language=""
                parent_id="{{ $image->id }}"
                parent_type="image"
                action="{{ route('texts.store') }}"
                csrf_token="{{ csrf_token() }}" 
                method="POST"></addtextbutton>

        	<deletebutton
                button="Delete image"
        		action="{{ route('images.destroy', $image->id) }}"
        		csrf_token="{{ csrf_token() }}" >
    		</deletebutton>
        </div>
        <img src="{{ '../imageFile/'.$image->id }}">
    </div>
@endsection<commit_msg>Dont show image full size and better layout of image descriptions<commit_after>@extends('layouts.app')

@section('sidemenu')
    @include('layouts.menu')
@endsection

@section('content')

    <a href="{{ '/section/'.$image->parent_id }}">&lt; Back</a>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="row">
                <div class="col-md-10">
                    <a href="{{ '../imageFile/'.$image->id }}" class="thumbnail">
                        <img src="{{ '../imageFile/'.$image->id }}" >
                    </a>
                </div>
            </div>
            @foreach($texts as $text)
                <p>{{ $text->language }}:{{ $text->text }}</p>
                <deletetextbutton
                    button="Delete text"
                    action="{{ route('texts.destroy', $text->id) }}"
                    csrf_token="{{ csrf_token() }}" 
                    method="DELETE">
                </deletetextbutton>
            @endforeach
            @if (sizeof($image->texts)==0)
            <p>
                (no description)
            </p>
            @endif
            <addtextbutton
                button="Add description"
                type="body"
                text=""
                language=""
                parent_id="{{ $image->id }}"
                parent_type="image"
                action="{{ route('texts.store') }}"
                csrf_token="{{ csrf_token() }}" 
                method="POST"></addtextbutton>

            <deletebutton
                button="Delete image"
                action="{{ route('images.destroy', $image->id) }}"
                csrf_token="{{ csrf_token() }}" >
            </deletebutton>
        </div>
    </div>
@endsection
{'fraction_non_alphanumeric': 0.1711346633416459, 'fraction_numerical': 0.0024937655860349127, 'mean_word_length': 1.4218867924528302, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 60, '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': '3928602', 'n_tokens_mistral': 910, 'n_tokens_neox': 866, 'n_words': 157}