<commit_before>//处理请求结果并展示到卡片中
function wrapContent(content){
	var trans = document.getElementById('trans')
	if (!trans) return false
		//语言query映射
	var queryMap={
		"de":".sound_ico",
		"jp":"span[title=日语发音]",
		"en":".sound_ico",
		"fr":".sound_ico",
		"kr":".sound_ico",
		"es":".sound_ico"
	}
	//处理图片,有些图片的src是以“//”开头，得加上http协议名
	content = content.replace(new RegExp("'//dict\\.hjenglish\\.com/images/icon_star\\.gif'","g"),"'http://dict.hjenglish.com/images/icon_star.gif'")
	trans.innerHTML = content
	var audioSpans=document.querySelectorAll(queryMap[language])
	 //处理音频链接
 	for(var i=0;i<audioSpans.length;i++){
 		//日语的音频链接需要特殊处理
 		var audioSrc=language=='jp'?audioSpans[i].lastChild.innerText:audioSpans[i].innerText
 		audioSpans[i].innerHTML="&nbsp;<img class='playbutton' onclick='playAudio(\""+audioSrc+"\")' src='http://anki-theme-hjbasic.nocode.site/img/sound.gif'>"
 		//英语和日语可能需要加载多个音频
 		if(i>0){
 			switch(language){
 				case 'en':
 					break
 				case 'jp':
 					break
 				default:
 					audioSpans[i].innerHTML=""
 			}
 		}
	}
}<commit_msg>日语更换为百度音源<commit_after>//处理请求结果并展示到卡片中
function wrapContent(content){
	var trans = document.getElementById('trans')
	if (!trans) return false
		//语言query映射
	var queryMap={
		"de":".sound_ico",
		"jp":"span[title=日语发音]",
		"en":".sound_ico",
		"fr":".sound_ico",
		"kr":".sound_ico",
		"es":".sound_ico"
	}
	//处理图片,有些图片的src是以“//”开头，得加上http协议名
	content = content.replace(new RegExp("'//dict\\.hjenglish\\.com/images/icon_star\\.gif'","g"),"'http://dict.hjenglish.com/images/icon_star.gif'")
	trans.innerHTML = content
	var audioSpans=document.querySelectorAll(queryMap[language])
	 //处理音频链接
 	for(var i=0;i<audioSpans.length;i++){
 		//日语的音频链接需要特殊处理
 		//var audioSrc=language=='jp'?audioSpans[i].lastChild.innerText:audioSpans[i].innerText
 		//日语更换为百度音源
 		var audioSrc=language=='jp'?"http://fanyi.baidu.com/gettts?lan=jp&text="+encodeURI(content.match(new RegExp('class="hjd_Green".*?\\[(.*?)\\]'))[1])+"&source=web":audioSpans[i].innerText
 		audioSpans[i].innerHTML="&nbsp;<img class='playbutton' onclick='playAudio(\""+audioSrc+"\")' src='http://anki-theme-hjbasic.nocode.site/img/sound.gif'>"
 		//英语和日语可能需要加载多个音频
 		if(i>0){
 			switch(language){
 				case 'en':
 					break
 				case 'jp':
 					break
 				default:
 					audioSpans[i].innerHTML=""
 			}
 		}
	}
}
{'fraction_non_alphanumeric': 0.2075149444918873, 'fraction_numerical': 0.002134927412467976, 'mean_word_length': 4.448837209302326, 'pattern_counts': {'":': 13, '<': 7, '<?xml version=': 0, '>': 7, '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': '6566183', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1092, 'n_words': 100}