<commit_before>
#= require ./owl-carousel/owl.carousel.js

syncPosition = ($that, currentItem) ->
	current = currentItem
	$that.find('.owl-item').removeClass('synced').eq(current).addClass 'synced'
	if $that.data('owlCarousel') != undefined
		center $that, current
	return

apply_center = ( owl ) ->
	return if owl == undefined
	#console.log('centering...', owl)
	#console.log(owl.visibleItems)
	if owl.visibleItems.length > 0
		center_i = Math.ceil( owl.visibleItems.length / 2 ) - 1
		#console.log(center_i, owl.visibleItems[center_i])
		owl.$owlItems.removeClass('owl-swell-center')
		$(owl.$owlItems[owl.visibleItems[center_i]]).addClass( 'owl-swell-center' )
		#console.log(center_i, owl.visibleItems[center_i])

center = ($that, number) ->
	that_visible = $that.data('owlCarousel').owl.visibleItems<commit_msg>bug fix<commit_after>
#= require ./owl-carousel/owl.carousel.js

syncPosition = ($that, currentItem) ->
	current = currentItem
	$that.find('.owl-item').removeClass('synced').eq(current).addClass 'synced'
	if $that.data('owlCarousel') != undefined
		center $that, current
	return

apply_center = ( owl ) ->
	return if owl == undefined || owl.visibleItems == undefined
	#console.log('centering...', owl)
	#console.log(owl.visibleItems)
	if owl.visibleItems.length > 0
		center_i = Math.ceil( owl.visibleItems.length / 2 ) - 1
		#console.log(center_i, owl.visibleItems[center_i])
		owl.$owlItems.removeClass('owl-swell-center')
		$(owl.$owlItems[owl.visibleItems[center_i]]).addClass( 'owl-swell-center' )
		#console.log(center_i, owl.visibleItems[center_i])

center = ($that, number) ->
	that_visible = $that.data('owlCarousel').owl.visibleItems
{'fraction_non_alphanumeric': 0.17058468957203135, 'fraction_numerical': 0.003616636528028933, 'mean_word_length': 5.08058608058608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3873901', 'n_tokens_mistral': 626, 'n_tokens_neox': 585, 'n_words': 94}