<commit_before><?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-1-13
 * Time: 上午11:32
 */

require_once '../models/Goutte_Crawl.php';
require_once '../models/DBTableFactory.php';

class Crawl_Base
{
    /**
     * @var Goutte_Crawl
     */
    public $adapter_goutte;
    /**
     * @var DBTableFactory
     */
    public $adapter_db;
    public $crawl_urls;
    public $table_names;

    public function __construct()
    {
        set_time_limit(0);
        $this->adapter_goutte = new Goutte_Crawl();
        $this->adapter_db = new DBTableFactory();
        $this->crawl_urls = [];
        $this->table_names = [];
    }

    /*
     * run method should override
     * */
    public function run()
    {

    }
} <commit_msg>+ url prefix parametr in crawl base class<commit_after><?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-1-13
 * Time: 上午11:32
 */

require_once '../models/Goutte_Crawl.php';
require_once '../models/DBTableFactory.php';

class Crawl_Base
{
    /**
     * @var Goutte_Crawl
     */
    public $adapter_goutte;
    /**
     * @var DBTableFactory
     */
    public $adapter_db;
    public $crawl_urls;
    public $table_names;
    public $url_prefix;

    public function __construct()
    {
        set_time_limit(0);
        $this->adapter_goutte = new Goutte_Crawl();
        $this->adapter_db = new DBTableFactory();
        $this->crawl_urls = [];
        $this->table_names = [];
        $this->url_prefix = '';
    }

    /*
     * run method should override
     * */
    public function run()
    {

    }
} 
{'fraction_non_alphanumeric': 0.14015151515151514, 'fraction_numerical': 0.012626262626262626, 'mean_word_length': 2.2346938775510203, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '1750158', 'n_tokens_mistral': 569, 'n_tokens_neox': 547, 'n_words': 104}