<commit_before><div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <h4 class="modal-title" id="myModalLabel">
        @if($what == 'add')
            Add money to "{{{$piggybank->name}}}"
        @else
            Remove money from "{{{$piggybank->name}}}"
        @endif
        </h4>
</div>
<form style="display: inline;" action="{{route('piggybanks.modMoney',$piggybank->id)}}" method="POST">
    <input type="hidden" name="what" value="{{$what}}" />
    {{Form::token()}}
    <div class="modal-body">
        <p class="text-info">
            @if($what == 'add')
            Usually you would add money to this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            by transferring it from one of your accounts to "{{{$piggybank->account->name}}}". However,
            since there is still {{mf($maxAdd)}} on that account not locked in any piggy bank or repeated expense,
            you can also add it manually.

            @else

            If you need the money in this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            for something else, you can opt to remove it using this form. Since there is {{mf($maxRemove)}} in this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            that is the maximum amount of money you can remove using this form.
            @endif
        </p>
        <div class="form-group">
            <label for="amount">Amount to {{$what}}</label>
            <div class="input-group">
                <div class="input-group-addon">&euro;</div>
            @if($what == 'add')
                <input type="number" step="any" max="{{min($maxAdd,$piggybank->targetamount)}}" min="0.01" class="form-control" id="amount" name="amount">
            @else
                <input type="number" step="any" max="{{$maxRemove}}" min="0.01" class="form-control" id="amount" name="amount">
            @endif
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <input type="submit" class="btn btn-primary" value="Submit" name="submit" />
    </div>
</form>
<commit_msg>Added some rounding. [skip ci]<commit_after><div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <h4 class="modal-title" id="myModalLabel">
        @if($what == 'add')
            Add money to "{{{$piggybank->name}}}"
        @else
            Remove money from "{{{$piggybank->name}}}"
        @endif
        </h4>
</div>
<form style="display: inline;" action="{{route('piggybanks.modMoney',$piggybank->id)}}" method="POST">
    <input type="hidden" name="what" value="{{$what}}" />
    {{Form::token()}}
    <div class="modal-body">
        <p class="text-info">
            @if($what == 'add')
            Usually you would add money to this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            by transferring it from one of your accounts to "{{{$piggybank->account->name}}}". However,
            since there is still {{mf($maxAdd)}} on that account not locked in any piggy bank or repeated expense,
            you can also add it manually.

            @else

            If you need the money in this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            for something else, you can opt to remove it using this form. Since there is {{mf($maxRemove)}} in this
            @if($piggybank->repeated == 1)
                repeated expense
            @else
                piggy bank
            @endif
            that is the maximum amount of money you can remove using this form.
            @endif
        </p>
        <div class="form-group">
            <label for="amount">Amount to {{$what}}</label>
            <div class="input-group">
                <div class="input-group-addon">&euro;</div>
            @if($what == 'add')
                <input type="number" step="any" max="{{round(min($maxAdd,$piggybank->targetamount),2)}}" min="0.01" class="form-control" id="amount" name="amount">
            @else
                <input type="number" step="any" max="{{round($maxRemove,2)}}" min="0.01" class="form-control" id="amount" name="amount">
            @endif
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <input type="submit" class="btn btn-primary" value="Submit" name="submit" />
    </div>
</form>

{'fraction_non_alphanumeric': 0.1572967678746327, 'fraction_numerical': 0.004701273261508325, 'mean_word_length': 2.0465393794749405, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 85, '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': '7476291', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1423, 'n_words': 394}