<commit_before><?php
include_once('function.php');

$html = geturlc("http://movie.douban.com/subject/10807909/?from=showing");

$pattern = '/^v:itemreviewed">(.*)</';

preg_match($pattern,$html,$match);
var_dump($match);

$pattern = '<div id="info">\s*<span ><span class=\'pl\'>导演</span>: <span class=\'attrs\'><a href=".*" rel="v:directedBy">(.*)</a></span></span><br/>\s*<span ><span class=\'pl\'>编剧</span>: <span class=\'attrs\'>(.*)</span></span><br/>\s*<span class="actor"><span class=\'pl\'>主演</span>: <span class=\'attrs\'>(.*)</span></span><br/>\s*<span class="pl">类型:</span> (.*) / <span property="v:genre">(.*)</span><br/>\s*<span class="pl">制片国家/地区:</span> (.*)<br/>\s*<span class="pl">语言:</span> (.*)<br/>\s*<span class="pl">上映日期:</span> <span property="v:initialReleaseDate" content=".*">.*</span><br/>\s*<span class="pl">片长:</span> <span property="v:runtime" content=".*">(.*)</span><br/>\s*<span class="pl">又名:</span> (.*)<br/>\s*<span class="pl">IMDb链接:</span> <a href="(.*)" target="_blank" rel="nofollow">(.*)</a><br>';

preg_match($pattern,$html,$matches);
var_dump($matches);



?><commit_msg>zh_test<commit_after><?php
include_once('function.php');

$html = geturlc("http://movie.douban.com/subject/10807909/?from=showing");

$pattern0= '/v:itemreviewed">(.*)</';
$pattern1= '/v:directedBy">(.*)</';
$pattern2= "/编剧<.*>: <s.an class='attrs'>(.*)</";
$pattern3= '/主演<.*>: <span class=.attrs.>(.*)</';
$pattern4= '/<span property="v:genre">(.*)<.*span>/';
$pattern5= '/制片国家.*:<.*> (.*)<br/';
$pattern6= '/语言:<.*> (.*)<br/';
$pattern7= '/v:initialReleaseDate" content="(.*)"/';
$pattern8= '/v:runtime" content="(.*)"/';
$pattern9= '/又名:<.*> (.*)<br/';
$pattern10 = '/IMDb链接:<.*> <a href="(.*)" target="_blank" rel="nofollow">(.*)</';
$pattern11 = '/v:average">(.*)</';
$pattern12 = '/v:summary".*>\s*(.*)\s*</';


preg_match($pattern0,$html,$match1);
preg_match($pattern1,$html,$match2);
preg_match($pattern2,$html,$match3);
preg_match($pattern3,$html,$match4);
preg_match($pattern4,$html,$match5);
preg_match($pattern5,$html,$match6);
preg_match($pattern6,$html,$match7);
preg_match($pattern7,$html,$match8);
preg_match($pattern8,$html,$match9);
preg_match($pattern9,$html,$match10);
preg_match($pattern10,$html,$match11);
preg_match($pattern11,$html,$match12);
preg_match($pattern12,$html,$match13);

//
//preg_match($pattern8,$html,$match9);
//
//
//preg_match($pattern11,$html,$match12);

$data['title']  = $match1[1];
$data['daoyan'] = $match2[1];
$data['bianju'] = strip_tags($match3[1]);
$data['zhuyan'] = strip_tags($match4[1]);
$data['leixin'] = $match5[1];
$data['diqu']   = $match6[1];
$data['yuyan']  = $match7[1];
$data['shangyin']  = $match8[1];
$data['pianchang']  = $match9[1];
$data['youming']  = $match10[1];
$data['imdburl']  = $match11[1];
$data['imdbname']  = $match11[2];
$data['pinfen']  = $match11[1];
$data['jianjie'] = $match13[1];



var_dump($data);



?>
{'fraction_non_alphanumeric': 0.3250603240261979, 'fraction_numerical': 0.035849706997587036, 'mean_word_length': 7.38728323699422, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 74, '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': '3256407', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1232, 'n_words': 137}