<commit_before><?php defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Files_Look extends Controller_Admin_Base
{
    public $_temp_file = null;

    public function before()
    {
        parent::before();
        $this->auto_render = false;

        $access = array(
            'Statement',
            'Contract',
            'Ticket',
        );

        if ($this->request->is_ajax() && in_array($this->request->action(), $access))
        {
            $response = Request::factory('admin/files/download/create_'.$this->request->action())
                               ->execute();

            $this->ajax_data(
                array(
                     'file' => json_decode($response)->file,
                     'url' => URL::site('viewdoc'),
                )
            );
        }

    }

}<commit_msg>просмотр файлов в админке test 3<commit_after><?php defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Files_Look extends Controller_Admin_Base
{
    public $_temp_file = null;

    public function before()
    {
        parent::before();
        $this->auto_render = false;

        $access = array(
            'statement',
            'contract',
            'ticket',
        );

        if ($this->request->is_ajax() && in_array($this->request->action(), $access))
        {
            $response = Request::factory('admin/files/download/create_'.$this->request->action())
                               ->execute();

            $this->ajax_data(
                array(
                     'file' => json_decode($response)->file,
                     'url' => URL::site('viewdoc'),
                )
            );
        }

    }

}
{'fraction_non_alphanumeric': 0.14543339150668994, 'fraction_numerical': 0.0005817335660267597, 'mean_word_length': 1.6299694189602447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '5997070', 'n_tokens_mistral': 467, 'n_tokens_neox': 456, 'n_words': 81}