<commit_before><?php

namespace ManaPHP\Rpc;

use ManaPHP\Helper\LocalFS;
use ReflectionClass;
use ReflectionMethod;

class Command extends \ManaPHP\Cli\Command
{
    /**
     * generate services stub for client
     *
     * @param string $output
     *
     * @throws \ManaPHP\Exception\RuntimeException
     */
    public function servicesAction($output = '@tmp/rpc_services')
    {
        foreach (LocalFS::glob('@app/Controllers/*Controller.php') as $file) {
            $className = 'App\\Controllers\\' . basename($file, '.php');

            $methods = [];
            foreach (get_class_methods($className) as $method) {
                if (preg_match('#^(.*)Action$#', $method, $match)) {
                    $methods[] = $method;<commit_msg>Modified   ManaPHP/Rpc/Command.php<commit_after><?php

namespace ManaPHP\Rpc;

use ManaPHP\Helper\LocalFS;
use ReflectionClass;
use ReflectionMethod;

class Command extends \ManaPHP\Cli\Command
{
    /**
     * generate services stub for client
     *
     * @param string $output
     *
     * @throws \ManaPHP\Exception\RuntimeException
     */
    public function servicesAction($output = '@tmp/rpc_services')
    {
        foreach (LocalFS::glob('@app/Controllers/?*Controller.php') as $file) {
            $className = 'App\\Controllers\\' . basename($file, '.php');

            $methods = [];
            foreach (get_class_methods($className) as $method) {
                if (preg_match('#^(.*)Action$#', $method, $match)) {
                    $methods[] = $method;
{'fraction_non_alphanumeric': 0.14659685863874344, 'fraction_numerical': 0.0, 'mean_word_length': 2.5641025641025643, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1514411', 'n_tokens_mistral': 462, 'n_tokens_neox': 455, 'n_words': 92}