<commit_before>'use strict';
define(['common/fusion/fusion'], function (fusion) {
	//百度统计代码
	if (location.host === 'your_production_host') {
		self._hmt = [
			['_setAutoPageview', false]
		];
		require(['//hm.baidu.com/hm.js?[your_hmid]'], function () {
			//由于百度统计在head中插入的input标签在ie7中会导致jquery选择器遍历时出错，这里尝试将其移除
			let head = document.head || document.getElementsByTagName('head'),
				ipt = head.getElementsByTagName('input')[0];
			if (ipt) {
				head.removeChild(ipt);
			}
		});
		fusion.listeners.add(fusion.pageEvents, 'route', function () {
			_hmt.push(['_trackPageview', location.pathname + fusion.buildHash(fusion.location)]);
		});
	}
	fusion.listeners.add(fusion.pageEvents, 'routeend', function (evt) {
		//如果上次访问的页面id和当前页id不同，并且不是在history中导航时，则滚动到页面顶部
		if (fusion.lastLocation && fusion.lastLocation.id !== fusion.location.id && !evt.history && Math.max(document.body.scrollTop, document.documentElement.scrollTop)) {
			window.scrollTo({
				top: 0,
				behavior: 'smooth'
			});
		}
	});
	fusion.init('doc');
});<commit_msg>no message<commit_after>'use strict';
define(['common/fusion/fusion'], function (fusion) {
	//百度统计代码
	if (location.host === 'your_production_host') {
		self._hmt = [
			['_setAutoPageview', false]
		];
		require(['//hm.baidu.com/hm.js?[your_hmid]'], function () {
			//由于百度统计在head中插入的input标签在ie7中会导致jquery选择器遍历时出错，这里尝试将其移除
			let head = document.head || document.getElementsByTagName('head'),
				ipt = head.getElementsByTagName('input')[0];
			if (ipt) {
				head.removeChild(ipt);
			}
		});
		fusion.listeners.on(fusion.pageEvents, 'route', function () {
			_hmt.push(['_trackPageview', location.pathname + fusion.buildHash(fusion.location)]);
		});
	}
	fusion.listeners.on(fusion.pageEvents, 'routeend', function (evt) {
		//如果上次访问的页面id和当前页id不同，并且不是在history中导航时，则滚动到页面顶部
		if (fusion.lastLocation && fusion.lastLocation.id !== fusion.location.id && !evt.history && Math.max(document.body.scrollTop, document.documentElement.scrollTop)) {
			window.scrollTo({
				top: 0,
				behavior: 'smooth'
			});
		}
	});
	fusion.init('doc');
});
{'fraction_non_alphanumeric': 0.17779913503123498, 'fraction_numerical': 0.0028832292167227293, 'mean_word_length': 4.657608695652174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7113782', 'n_tokens_mistral': 908, 'n_tokens_neox': 865, 'n_words': 97}