<commit_before><?php use_helper('Javascript', 'Form');

if (!empty($message) || $sf_user->hasCredential('moderator')):
    $output_message = empty($message) ? __('No message defined. Click to edit')
                                      : $sf_data->getRaw('message'); // unescaped data : we trust moderators ! 
    ?>
    <div id="edit_me" class="front_message"><?php echo $output_message; ?></div>
    <?php 
    if ($sf_user->hasCredential('moderator'))
    {
        echo javascript_tag("Object.extend(Ajax.InPlaceEditor.prototype, {
    onLoadedExternalText: function(transport) {
        Element.removeClassName(this.form, this.options.loadingClassName);
        this.editField.disabled = false;
        this.editField.value = transport.responseText;
        Field.scrollFreeActivate(this.editField);
    }
});

Object.extend(Ajax.InPlaceEditor.prototype, {
    getText: function() {
        return (this.element.innerHTML).replace(/<br>/, '<br />');
    }
});
");
        echo input_in_place_editor_tag('edit_me', 'common/edit?lang=' . $sf_user->getCulture(), array(
                'cols'              => 40,
                'rows'              => 2,
                'highlightendcolor' => '#ffffcc',
                'cancel_text'       => __('Cancel'),
                'save_text'         => __('Update')
        ));
    }
endif;
?>
<commit_msg>EditInPlace / Home : correctly display <br /> even if more than one<commit_after><?php use_helper('Javascript', 'Form');

if (!empty($message) || $sf_user->hasCredential('moderator')):
    $output_message = empty($message) ? __('No message defined. Click to edit')
                                      : $sf_data->getRaw('message'); // unescaped data : we trust moderators ! 
    ?>
    <div id="edit_me" class="front_message"><?php echo $output_message; ?></div>
    <?php 
    if ($sf_user->hasCredential('moderator'))
    {
        echo javascript_tag("Object.extend(Ajax.InPlaceEditor.prototype, {
    onLoadedExternalText: function(transport) {
        Element.removeClassName(this.form, this.options.loadingClassName);
        this.editField.disabled = false;
        this.editField.value = transport.responseText;
        Field.scrollFreeActivate(this.editField);
    }
});

Object.extend(Ajax.InPlaceEditor.prototype, {
    getText: function() {
        return (this.element.innerHTML).replace(/<br>/g, '<br />');
    }
});
");
        echo input_in_place_editor_tag('edit_me', 'common/edit?lang=' . $sf_user->getCulture(), array(
                'cols'              => 40,
                'rows'              => 2,
                'highlightendcolor' => '#ffffcc',
                'cancel_text'       => __('Cancel'),
                'save_text'         => __('Update')
        ));
    }
endif;
?>

{'fraction_non_alphanumeric': 0.15827598696124592, 'fraction_numerical': 0.0021731256791017745, 'mean_word_length': 2.431055900621118, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2888747', 'n_tokens_mistral': 829, 'n_tokens_neox': 800, 'n_words': 133}