<commit_before>$(function() {

    $('#sidebar li').click(function(e) {

    	// Highlight selected tab
    	$clickedElement = $(this);
    	$clickedElement.parent().find('li').removeClass('active');
    	$clickedElement.addClass('active');

    	// Switch to tab pane
    	var href = $clickedElement.children().attr('href');
    	$(href).parent().find('div').removeClass('active');
    	$(href).addClass('active');

    });

});

// $(document).ready(function() {
//     var socket = io.connect('http://localhost:5000');
//     console.log("Socket connected.");

//     socket.on('scan', function(msg) {
//         console.log("hi from arduino: " + msg.data);
//     });

// });<commit_msg>clean up<commit_after>$(function() {

    $('#sidebar li').click(function(e) {

    	// Highlight selected tab
    	$clickedElement = $(this);
    	$clickedElement.parent().find('li').removeClass('active');
    	$clickedElement.addClass('active');

    	// Switch to tab pane
    	var href = $clickedElement.children().attr('href');
    	$(href).parent().find('div').removeClass('active');
    	$(href).addClass('active');

    });

});
{'fraction_non_alphanumeric': 0.22271517302573204, 'fraction_numerical': 0.00354924578527063, 'mean_word_length': 3.2406015037593985, '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': '892485', 'n_tokens_mistral': 356, 'n_tokens_neox': 347, 'n_words': 51}