<commit_before>var Timeline = function ( signals ) {

	var container = new UI.Panel( 'absolute' );
	container.setClass( 'timeline' );
	container.dom.style.overflow = 'auto'; // TODO: UIify.

	//

	var scale = 32;

	var marks = document.createElement( 'div' );
	marks.style.width = '2048px';
	marks.style.height = '16px';
	marks.style.background = 'url(' + ( function () {
	
		var canvas = document.createElement( 'canvas' );
		canvas.width = scale;
		canvas.height = 16;
	
		var context = canvas.getContext( '2d' );
		context.fillStyle = '#aaa';
		context.fillRect( 0, 0, 1, 12 );
		context.fillRect( Math.floor( scale / 2 ), 0, 1, 8 );
		context.fillStyle = '#888';
		context.fillRect( Math.floor( ( scale / 4 ) * 1 ), 0, 1, 8 );
		context.fillRect( Math.floor( ( scale / 4 ) * 3 ), 0, 1, 8 );
		return canvas.toDataURL();

	}() ) + ')';
	container.dom.appendChild( marks );

	var grid = document.createElement( 'div' );
	grid.style.position = 'absolute';
	grid.style.top = '16px';
	grid.style.width = '2048px';
	grid.style.height = '-webkit-calc(100% - 16px)';
	grid.style.background = 'url(' + ( function () {
	
		var canvas = document.createElement( 'canvas' );
		canvas.width = 1;
		canvas.height = 32;
	
		var context = canvas.getContext( '2d' );
		context.fillStyle = '#555';
		context.fillRect( 0, 0, 1, 1 );
		return canvas.toDataURL();

	}() ) + ')';
	container.dom.appendChild( grid );

	//

	var time = document.createElement( 'div' );
	time.style.position = 'absolute';
	time.style.top = '0px';<commit_msg>Clickable marks bar<commit_after>var Timeline = function ( signals ) {

	var container = new UI.Panel( 'absolute' );
	container.setClass( 'timeline' );
	container.dom.style.overflow = 'auto'; // TODO: UIify.

	//

	var scale = 32;

	var marks = document.createElement( 'div' );
	marks.style.width = '2512px';
	marks.style.height = '16px';
	marks.style.background = 'url(' + ( function () {
	
		var canvas = document.createElement( 'canvas' );
		canvas.width = scale;
		canvas.height = 16;
	
		var context = canvas.getContext( '2d' );
		context.fillStyle = '#aaa';
		context.fillRect( 0, 0, 1, 12 );
		context.fillRect( Math.floor( scale / 2 ), 0, 1, 8 );
		context.fillStyle = '#888';
		context.fillRect( Math.floor( ( scale / 4 ) * 1 ), 0, 1, 8 );
		context.fillRect( Math.floor( ( scale / 4 ) * 3 ), 0, 1, 8 );
		return canvas.toDataURL();

	}() ) + ')';
	marks.addEventListener( 'mousedown', function ( event ) {
		
		signals.setTime.dispatch( event.offsetX / scale );
		
	}, false );
	container.dom.appendChild( marks );

	var grid = document.createElement( 'div' );
	grid.style.position = 'absolute';
	grid.style.top = '16px';
	grid.style.width = '2512px';
	grid.style.height = '-webkit-calc(100% - 16px)';
	grid.style.background = 'url(' + ( function () {
	
		var canvas = document.createElement( 'canvas' );
		canvas.width = 1;
		canvas.height = 32;
	
		var context = canvas.getContext( '2d' );
		context.fillStyle = '#555';
		context.fillRect( 0, 0, 1, 1 );
		return canvas.toDataURL();

	}() ) + ')';
	container.dom.appendChild( grid );

	//

	var time = document.createElement( 'div' );
	time.style.position = 'absolute';
	time.style.top = '0px';
{'fraction_non_alphanumeric': 0.18299212598425196, 'fraction_numerical': 0.0352755905511811, 'mean_word_length': 3.4049930651872398, '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': '322610', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1096, 'n_words': 257}