<commit_before><?php

namespace App\Backend\Submodules\Database\Models\Plugin;

class Collection extends \App\Common\Models\Database\Plugin\Collection
{
    use \App\Backend\Models\Base;
}<commit_msg>idb管理<commit_after><?php

namespace App\Backend\Submodules\Database\Models\Plugin;

class Collection extends \App\Common\Models\Database\Plugin\Collection
{
    use \App\Backend\Models\Base;
    
    /**
     * 获取所有数据库表列表
     *
     * @return array
     */
    public function getAll()
    {
        $query = $this->getQuery();
        $sort = $this->getDefaultSort();
        $ret = $this->findAll($query, $sort);
        $list = array();
        foreach ($ret as $item) {
            $list[$item['_id']] = $item['name'];
        }
        return $list;
    }
}
{'fraction_non_alphanumeric': 0.15203145478374835, 'fraction_numerical': 0.0, 'mean_word_length': 2.5700934579439254, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '4043800', 'n_tokens_mistral': 243, 'n_tokens_neox': 251, 'n_words': 41}