<commit_before><?php
class Kwc_Newsletter_Detail_PreviewController extends Kwc_Mail_PreviewController
{
    protected function _getRecipient()
    {
        $rs = $this->_getMailComponent()->getRecipientSources();
        $recipientId = $this->_getParam('recipientId');
        if (!$recipientId) {
            $component = Kwf_Component_Data_Root::getInstance()->getComponentById(
                $this->_getParam('componentId'),
                array('ignoreVisible' => true)
            );
            $source = reset($rs);
            $model = Kwf_Model_Abstract::getInstance($source['model']);
            $select = $model->select();
            if ($model->hasColumn('newsletter_component_id')) {<commit_msg>Search newsletter in PreviewController by DbId<commit_after><?php
class Kwc_Newsletter_Detail_PreviewController extends Kwc_Mail_PreviewController
{
    protected function _getRecipient()
    {
        $rs = $this->_getMailComponent()->getRecipientSources();
        $recipientId = $this->_getParam('recipientId');
        if (!$recipientId) {
            $component = Kwf_Component_Data_Root::getInstance()->getComponentByDbId(
                $this->_getParam('componentId'),
                array('ignoreVisible' => true)
            );
            $source = reset($rs);
            $model = Kwf_Model_Abstract::getInstance($source['model']);
            $select = $model->select();
            if ($model->hasColumn('newsletter_component_id')) {
{'fraction_non_alphanumeric': 0.13260423786739575, 'fraction_numerical': 0.0, 'mean_word_length': 2.9782608695652173, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6804666', 'n_tokens_mistral': 399, 'n_tokens_neox': 382, 'n_words': 59}