<commit_before><?php

namespace Jaacoder\Yii2Activated\Controllers;

use ReflectionClass;
use Yii;

/**
 * @property array $defaultActions
 */
trait RouteTrait
{
    /**
     * Set default actions for each method if not present in url.
     */
    public function getDefaultActions()
    {
        return [
            'GET' => $this->defaultAction,
            'POST' => $this->defaultAction,
            'PUT' => $this->defaultAction,
            'PATCH' => $this->defaultAction,
            'DELETE' => $this->defaultAction,
        ];
    }
    
    /**<commit_msg>default actions modified<commit_after><?php

namespace Jaacoder\Yii2Activated\Controllers;

use ReflectionClass;
use Yii;

/**
 * @property array $defaultActions
 */
trait RouteTrait
{
    /**
     * Set default actions for each method if not present in url.
     */
    public function getDefaultActions()
    {
        return [
            'GET' => 'index',
            'POST' => 'store',
            'PUT' => 'update',
            'PATCH' => 'update',
            'DELETE' => 'delete',
        ];
    }
    
    /**
{'fraction_non_alphanumeric': 0.13523459061637536, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 2.005524861878453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '5807058', 'n_tokens_mistral': 318, 'n_tokens_neox': 323, 'n_words': 76}