<commit_before>var CHALLENGEHUNT = {}

CHALLENGEHUNT.contests = {
	HACKATHONS: 'Hackathons',
	CONTESTS: 'Contests',
	HIRING: 'Hiring',
	DATASCIENCE: 'DS',
}

var cards = function (data, type) {

	// console.log(data);
	console.log(type);
	challengeData = data['upcoming'];
	// console.log(challengeData);
	for (var i = 0; i < challengeData.length; i++) {
		$('#accordion' + type).append(
		  $('<div/>',{
			class: 'panel panel-default',
		  }).append(
				$('<div/>', {
					class: 'panel-heading',
					role: 'tab',
					id: 'heading' + type + i, 
					style: 'background-color:white;',
			  }).append(
			  	$('<h4/>', {
			  		class: 'panel-title',
			  	}).append(
			  		$('<a/>', {
			  			'data-toggle': 'collapse',
			  			'data-parent': '#accordion' + type,
			  			'href': '#collapse' + type + i,
			  			'aria-expanded': 'true',
			  			'aria-controls': 'collapse' + type + i,
			  			'text': challengeData[i]['contest_name']
			  		})
			  	)
			  )
			).append(
				$('<div/>', {
					'class': 'panel-collapse collapse',
					'role': 'tabpanel',
					'id': 'collapse' + type + i, 
					'aria-labelledby': 'heading' + type + i,
			  }).append(
			  	$('<ul/>', {
			  		class: 'list-group list-group-flush',
			  	}).append(
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Ends: saturday, bla blah time'
			  		}),
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Duration: 4h'
			  		}),
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Add to calendar'
			  		})
			  	)
			  )
			).append(
				$('<p/>', {
					'class': 'card-text',
				}).append(<commit_msg>added duration and start time<commit_after>var CHALLENGEHUNT = {}

CHALLENGEHUNT.contests = {
	HACKATHONS: 'Hackathons',
	CONTESTS: 'Contests',
	HIRING: 'Hiring',
	DATASCIENCE: 'DS',
}

var cards = function (data, type) {

	// console.log(data);
	console.log(type);
	challengeData = data['upcoming'];
	// console.log(challengeData);
	for (var i = 0; i < challengeData.length; i++) {
		$('#accordion' + type).append(
		  $('<div/>',{
			class: 'panel panel-default',
		  }).append(
				$('<div/>', {
					class: 'panel-heading',
					role: 'tab',
					id: 'heading' + type + i, 
					style: 'background-color:white;',
			  }).append(
			  	$('<h4/>', {
			  		class: 'panel-title',
			  	}).append(
			  		$('<a/>', {
			  			'data-toggle': 'collapse',
			  			'data-parent': '#accordion' + type,
			  			'href': '#collapse' + type + i,
			  			'aria-expanded': 'true',
			  			'aria-controls': 'collapse' + type + i,
			  			'text': challengeData[i]['contest_name']
			  		})
			  	)
			  )
			).append(
				$('<div/>', {
					'class': 'panel-collapse collapse',
					'role': 'tabpanel',
					'id': 'collapse' + type + i, 
					'aria-labelledby': 'heading' + type + i,
			  }).append(
			  	$('<ul/>', {
			  		class: 'list-group list-group-flush',
			  	}).append(
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Starts: ' + challengeData[i]['start']
			  		}),
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Duration:' + challengeData[i]['duration']
			  		}),
			  		$('<li/>', {
			  			'class': 'list-group-item',
			  			'text': 'Add to calendar'
			  		})
			  	)
			  )
			).append(
				$('<p/>', {
					'class': 'card-text',
				}).append(
{'fraction_non_alphanumeric': 0.2273677920525844, 'fraction_numerical': 0.0014938751120406335, 'mean_word_length': 2.19161105815062, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '2788906', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1285, 'n_words': 234}