<commit_before><div class="sonata-ba-form-actions well well-small form-actions fixed" style="line-height: 4rem;">
    {% block sonata_form_actions %}                    
           
            {% if admin.id(object) is not null %}

                {% if not object.isPending %}
                    <div>
                        <input type="checkbox" name="send_mail" id="send_mail" checked/>
                        <label for="send_mail">Prévenir l'acteur de la modification</label>
                    </div>
                {% endif %}

                {% if object.isPending %}
                    <button type="submit" class="btn btn-success" name="submit_accept" value="submit_accept"><i class="fa fa-thumbs-up" aria-hidden="true"></i>
                     Valider</button>

                    <button type="submit" class="btn btn-danger" name="submit_refuse" value="submit_refuse"><i class="fa fa-thumbs-down" aria-hidden="true"></i>
                     Refuser</button>
                {% elseif not object.isVisible %}

                    <button type="submit" class="btn btn-success" name="submit_restore" value="submit_restore"><i class="fa fa-save" aria-hidden="true"></i>
                     Restaurer</button><commit_msg>Adds message input when validate an action<commit_after><div class="sonata-ba-form-actions well well-small form-actions fixed" style="line-height: 4rem;">
    {% block sonata_form_actions %}                    
           
            {% if admin.id(object) is not null %}
                
                <div style="position:relative;margin-top: -10px;">
                    {% if not object.isPending %}
                        <span style="width:30%; margin-right: 15px;">
                            <input type="checkbox" name="send_mail" id="send_mail" checked/>
                            <label for="send_mail">Prévenir l'acteur de la modification</label>
                        </span>
                    {% endif %}
                    {% set placeholder = object.isPending() ? "Message particulier si refus" : 
                                         object.havePendingReports ? "Message à envoyer aux contributeurs qui ont emis le signalement" : 
                                         "Détail de la modification, raison de la suppression..." %}
                    <input type="text" name="custom_message" id="custom_message" class="form-control" 
                           style="display:inline-block;width:55%"
                           placeholder="{{placeholder}}"/>                       
                </div>                

                {% if object.isPending %}
                    <button type="submit" class="btn btn-success" name="submit_accept" value="submit_accept"><i class="fa fa-thumbs-up" aria-hidden="true"></i>
                     Valider</button>

                    <button type="submit" class="btn btn-danger" name="submit_refuse" value="submit_refuse"><i class="fa fa-thumbs-down" aria-hidden="true"></i>
                     Refuser</button>
                {% elseif not object.isVisible %}

                    <button type="submit" class="btn btn-success" name="submit_restore" value="submit_restore"><i class="fa fa-save" aria-hidden="true"></i>
                     Restaurer</button>
{'fraction_non_alphanumeric': 0.12697929354445797, 'fraction_numerical': 0.0030450669914738123, 'mean_word_length': 1.6794453507340945, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '683527', 'n_tokens_mistral': 871, 'n_tokens_neox': 791, 'n_words': 179}