<commit_before>var index = 0,
$ul,
$ol,
timer,
bannerWidth,
liNum,
//速度
speed = 300,
time = 3000;
window.onload = function(){
	var $bannerList = $('#bannerList');
	$ol = $bannerList.children('ol');
	$ul = $bannerList.children('ul');
	var margin = parseInt($bannerList.css('marginTop'));
	var wWidth = $(window).width();
	liNum = $('#bannerList ol li').length;
	bannerWidth = wWidth-2*margin;
	$bannerList.width(bannerWidth);
	var bannerHeight = $('#bannerList ol li img:eq(0)').height();
	$bannerList.height(bannerHeight);
	$ol.width(2*liNum*bannerWidth);
	$('#bannerList ol li').width(bannerWidth);
	for(var i = 1;i<liNum;i++){
		$('#bannerList ul').append($('<li></li>'));
	}
	$ol.append($ol.html());
	
	timer = setInterval(function(){
		var oldml = parseInt($ol.css('marginLeft'));
		$ol.stop().animate({marginLeft:oldml-bannerWidth},speed,function(){
			index++;
			if(index == liNum){
				$ol.css({marginLeft:0});
				index = 0;
			}
			cur();
		});
	},time);
	
	slideEvent('bannerList','id',timer);
};

function cur(){
	$ul.children('li').removeClass('cur');
	$ul.children('li').eq(index).addClass('cur');
}<commit_msg>首页图片高度显示问题<commit_after>var index = 0,
$ul,
$ol,
timer,
bannerWidth,
liNum,
//速度
speed = 300,
time = 3000;
window.onload = function(){
	var $bannerList = $('#bannerList');
	$ol = $bannerList.children('ol');
	$ul = $bannerList.children('ul');
	var margin = parseInt($bannerList.css('marginTop'));
	var wWidth = $(window).width();
	liNum = $('#bannerList ol li').length;
	bannerWidth = wWidth-2*margin;
	$bannerList.width(bannerWidth);
	$('#bannerList ol li img').width(bannerWidth);
	var bannerHeight = $('#bannerList ol li img:eq(0)').height();
	$bannerList.height(bannerHeight);
	$ol.width(2*liNum*bannerWidth);
	$('#bannerList ol li').width(bannerWidth);
	for(var i = 1;i<liNum;i++){
		$('#bannerList ul').append($('<li></li>'));
	}
	$ol.append($ol.html());
	
	timer = setInterval(function(){
		var oldml = parseInt($ol.css('marginLeft'));
		$ol.stop().animate({marginLeft:oldml-bannerWidth},speed,function(){
			index++;
			if(index == liNum){
				$ol.css({marginLeft:0});
				index = 0;
			}
			cur();
		});
	},time);
	
	slideEvent('bannerList','id',timer);
};

function cur(){
	$ul.children('li').removeClass('cur');
	$ul.children('li').eq(index).addClass('cur');
}
{'fraction_non_alphanumeric': 0.22380553227158423, 'fraction_numerical': 0.01173512154233026, 'mean_word_length': 4.376126126126126, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2331296', 'n_tokens_mistral': 956, 'n_tokens_neox': 906, 'n_words': 146}