<commit_before><?php
/**
  * @package People
  */

/**
  * @package People
  */
class KurogoPeopleRetriever extends URLDataRetriever implements PeopleRetriever {
    protected $DEFAULT_PARSER_CLASS = "KurogoPeopleParser";
    protected $fieldMap=array();
    protected $personClass = 'KurogoPerson';
    protected $attributes = array();
    protected $peopleAPI = '';
    protected $feed;
    
    public function debugInfo() {
        return sprintf("Using Kurogo People API");
    }
    
    public function search($searchString, &$response=null) {
        $this->setBaseURL($this->peopleAPI . '/search');
        
        $this->setOption('action', 'search');
        
        $this->addFilter('q', $searchString);
        $this->addFilter('output', 'fields');
        if($this->feed){
            $this->addFilter('feed', $this->feed);    
        }

        return $this->getData($response);
    }
    
    protected function getField($_field) {<commit_msg>getCacheKey returns false to disable caching<commit_after><?php
/**
  * @package People
  */

/**
  * @package People
  */
class KurogoPeopleRetriever extends URLDataRetriever implements PeopleRetriever {
    protected $DEFAULT_PARSER_CLASS = "KurogoPeopleParser";
    protected $fieldMap=array();
    protected $personClass = 'KurogoPerson';
    protected $attributes = array();
    protected $peopleAPI = '';
    protected $feed;

    public function getCacheKey() {
        return false;
    }
    
    public function debugInfo() {
        return sprintf("Using Kurogo People API");
    }
    
    public function search($searchString, &$response=null) {
        $this->setBaseURL($this->peopleAPI . '/search');
        
        $this->setOption('action', 'search');
        
        $this->addFilter('q', $searchString);
        $this->addFilter('output', 'fields');
        if($this->feed){
            $this->addFilter('feed', $this->feed);    
        }

        return $this->getData($response);
    }
    
    protected function getField($_field) {
{'fraction_non_alphanumeric': 0.14108910891089108, 'fraction_numerical': 0.0, 'mean_word_length': 2.7565055762081783, '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': '2631506', 'n_tokens_mistral': 571, 'n_tokens_neox': 572, 'n_words': 118}