<commit_before><?php
/**
*
* ȨУǡά<<EMAIL>>
*     ߣ<<EMAIL>>
*     ڣ2015-09-17
*     1.0.0
* ˵̨ļ
*
**/

/**
*
* ־¼
* @param  string $log   ־ݡ
* @param  string $name ѡû
*
**/
function addlog($log,$name=false){
	$Model = M('log');
	if(!$name){
		$user = cookie('user');
		$auth = cookie('auth');
		list($identifier, $token) = explode(',', $auth);
		if (ctype_alnum($identifier) && ctype_alnum($token)) {
			$user = M('member')->field('user')->where(array('identifier'=>$identifier))->find();
			$data['name'] = $user['user'];
		}else{
			$data['name'] = '';<commit_msg>更改cookie认证方式<commit_after><?php
/**
*
* ȨУǡά<qwadmin.qiawei.com>
*     ߣ<<EMAIL>>
*     ڣ2015-09-17
*     1.0.0
* ˵̨ļ
*
**/

/**
*
* ־¼
* @param  string $log   ־ݡ
* @param  string $name ѡû
*
**/
function addlog($log,$name=false){
	$Model = M('log');
	if(!$name){
		$auth = cookie('auth');
		list($identifier, $token) = explode(',', $auth);
		if (ctype_alnum($identifier) && ctype_alnum($token)) {
			$user = M('member')->field('user')->where(array('identifier'=>$identifier))->find();
			$data['name'] = $user['user'];
		}else{
			$data['name'] = '';
{'fraction_non_alphanumeric': 0.2768817204301075, 'fraction_numerical': 0.01971326164874552, 'mean_word_length': 4.077272727272727, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 18, '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': '1858225', 'n_tokens_mistral': 514, 'n_tokens_neox': 492, 'n_words': 72}