<commit_before><?php

namespace monolyth\render;
use monolyth\Controller;
use monolyth\Config;
use monolyth\adapter\sql\NoResults_Exception;
use ErrorException;
use Adapter_Access;

class Edit_Media_Controller extends Controller
{
    use Adapter_Access;

    public function __construct()
    {
        parent::__construct();
        $this->config = Config::get('monolyth');
    }

    protected function get(array $args)
    {
        extract($args);
        $this->template = $this->view('monolyth\template/page');
        $imagefile = null;
        if (isset($args['imagefile'])) {
            $imagefile = $args['imagefile'];
        } elseif ($id) {
            try {
                $imagefile = self::adapter()->field(
                    'monolyth_media',
                    'filename',
                    compact('id')
                );<commit_msg>Squashed commit of the following:<commit_after><?php

namespace monolyth\render;
use monolyth\Controller;
use monolyth\Config;
use monolyth\adapter\sql\NoResults_Exception;
use ErrorException;
use Adapter_Access;

class Edit_Media_Controller extends Controller
{
    use Adapter_Access;

    public function __construct()
    {
        parent::__construct();
        $this->config = Config::get('monolyth');
        $this->form = new Edit_Media_Form;
    }

    protected function get(array $args)
    {
        extract($args);
        $this->template = $this->view('monolyth\template/page');
        $imagefile = null;
        if (isset($args['imagefile'])) {
            $imagefile = $args['imagefile'];
        } elseif ($id) {
            try {
                $imagefile = self::adapter()->field(
                    'monolyth_media',
                    'filename',
                    compact('id')
                );
{'fraction_non_alphanumeric': 0.12549019607843137, 'fraction_numerical': 0.0, 'mean_word_length': 2.1892857142857145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '4206366', 'n_tokens_mistral': 504, 'n_tokens_neox': 492, 'n_words': 99}