<commit_before><?php

if (!defined('ENMDIR')) define('ENMDIR', EXTENSIONS . "/email_newsletter_manager");
if (!defined('ENVIEWS')) define('ENVIEWS', ENMDIR . "/content/templates");

class contentExtensionemail_newsletter_managerpublishfield extends AjaxPage
{
    public function view()
    {
        $this->addHeaderToPage('Content-Type', 'text/html');
        $field_id = $this->_context[0];
        $entry_id = $this->_context[1];
        $this->_context['entry_id'] = $entry_id;
        try {

            $entry = EntryManager::fetch($entry_id);
            $entry = $entry[0];
            if (!is_a($entry, 'Entry')) {<commit_msg>Replace deprecated class (since Symphony 2.6)<commit_after><?php

if (!defined('ENMDIR')) define('ENMDIR', EXTENSIONS . "/email_newsletter_manager");
if (!defined('ENVIEWS')) define('ENVIEWS', ENMDIR . "/content/templates");

class contentExtensionemail_newsletter_managerpublishfield extends XMLPage
{
    public function view()
    {
        $this->addHeaderToPage('Content-Type', 'text/html');
        $field_id = $this->_context[0];
        $entry_id = $this->_context[1];
        $this->_context['entry_id'] = $entry_id;
        try {

            $entry = EntryManager::fetch($entry_id);
            $entry = $entry[0];
            if (!is_a($entry, 'Entry')) {
{'fraction_non_alphanumeric': 0.16807367613200308, 'fraction_numerical': 0.0061396776669224865, 'mean_word_length': 3.4810996563573884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6416217', 'n_tokens_mistral': 408, 'n_tokens_neox': 400, 'n_words': 73}