<commit_before><?php

class SV_AttachmentImprovements_XenForo_ControllerPublic_Editor extends XFCP_SV_AttachmentImprovements_XenForo_ControllerPublic_Editor
{
    public function actionDialog()
    {
        $response = parent::actionDialog();

        $dialog = $this->_input->filterSingle('dialog', XenForo_Input::STRING);

        if ($dialog == "image")
        {
            $input = $this->_input->filter(array(
                'hash' => XenForo_Input::STRING,
                'content_type' => XenForo_Input::STRING,
                'content_data' => array(XenForo_Input::UINT, 'array' => true),
                'key' => XenForo_Input::STRING
            ));

            if (isset($content_type))
            {
                if (!$input['hash'])
                {<commit_msg>Minor fix for constraints not being set<commit_after><?php

class SV_AttachmentImprovements_XenForo_ControllerPublic_Editor extends XFCP_SV_AttachmentImprovements_XenForo_ControllerPublic_Editor
{
    public function actionDialog()
    {
        $response = parent::actionDialog();

        $dialog = $this->_input->filterSingle('dialog', XenForo_Input::STRING);

        if ($dialog == "image")
        {
            $input = $this->_input->filter(array(
                'hash' => XenForo_Input::STRING,
                'content_type' => XenForo_Input::STRING,
                'content_data' => array(XenForo_Input::UINT, 'array' => true),
                'key' => XenForo_Input::STRING
            ));

            if (isset($input['content_type']))
            {
                if (!$input['hash'])
                {
{'fraction_non_alphanumeric': 0.12710280373831775, 'fraction_numerical': 0.0, 'mean_word_length': 2.3250517598343685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3023263', 'n_tokens_mistral': 470, 'n_tokens_neox': 447, 'n_words': 70}