<commit_before><?php

use PHPCasts\Mvc\Controller\Api;

class IndexController extends Api
{
    public function testAction()
    {
        Yaf\Dispatcher::getInstance()->autoRender(false);
        $this->success();
    }
}<commit_msg>add demo<commit_after><?php

use PHPCasts\Mvc\Controller\Api;

class IndexController extends Api
{
    public function testAction()
    {
        Yaf\Dispatcher::getInstance()->autoRender(false);
        $data = ['uid'=>1, 'name' => 'test']; // 你的业务数据
        $this->success($data);
    }
}
{'fraction_non_alphanumeric': 0.15458015267175573, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 3.30327868852459, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2006', 'n_tokens_mistral': 164, 'n_tokens_neox': 167, 'n_words': 30}