<commit_before>
// Render the measure selector
$('#measures').html("<%= escape_javascript(render :partial => 'measure_selector') %>");

function tallyMeasureGroups() {
  var grandTotal = 0;
        $.each($('.measure_group'), function(index, item){
            var total = Math.max(0,$(this).find('input.measure_cb:checked').length);
            $('#' + $(item).attr('id') +'_group').prop('checked', $(this).find('input.measure_cb').length == total);
            grandTotal += total;
            $('#' + $(item).attr('id') +'_group_total').empty().html(total > 0 ? total : '');
        });
        $('#all_measures').prop('checked',$('#wizard-measures-screen input.measure_cb').length == grandTotal)
        $('form').valid();
}

// for handling the selection of measures from groups
$('#all_measures').click(function () {
  $('#wizard-measures-screen input:checkbox').prop('checked', $(this).prop('checked'));
  $('.measure_group').prop('checked', $(this).prop('checked'));
  tallyMeasureGroups();
});

$('.measure_group_all').click(function () {
  var groupName = $(this).attr('id');
  $(this).closest('div').find('input:checkbox').prop('checked', $(this).prop('checked'));
  tallyMeasureGroups();
});

$('.measure_cb').change(function() {
  tallyMeasureGroups();
});
$('#tabs').tabs().addClass('ui-tabs-vertical ui-helper-clearfix');
/* .css({
  "width":"90%",
  "margin-left":"5%"
}); */
$("#tabs li").removeClass('ui-corner-top').addClass('ui-corner-left');
$('#tabs').tabs("select",0)
<commit_msg>Made the real change to fix the deprecated method in jQuery UI<commit_after>
// Render the measure selector
$('#measures').html("<%= escape_javascript(render :partial => 'measure_selector') %>");

function tallyMeasureGroups() {
  var grandTotal = 0;
        $.each($('.measure_group'), function(index, item){
            var total = Math.max(0,$(this).find('input.measure_cb:checked').length);
            $('#' + $(item).attr('id') +'_group').prop('checked', $(this).find('input.measure_cb').length == total);
            grandTotal += total;
            $('#' + $(item).attr('id') +'_group_total').empty().html(total > 0 ? total : '');
        });
        $('#all_measures').prop('checked',$('#wizard-measures-screen input.measure_cb').length == grandTotal)
        $('form').valid();
}

// for handling the selection of measures from groups
$('#all_measures').click(function () {
  $('#wizard-measures-screen input:checkbox').prop('checked', $(this).prop('checked'));
  $('.measure_group').prop('checked', $(this).prop('checked'));
  tallyMeasureGroups();
});

$('.measure_group_all').click(function () {
  var groupName = $(this).attr('id');
  $(this).closest('div').find('input:checkbox').prop('checked', $(this).prop('checked'));
  tallyMeasureGroups();
});

$('.measure_cb').change(function() {
  tallyMeasureGroups();
});
$('#tabs').tabs().addClass('ui-tabs-vertical ui-helper-clearfix');
/* .css({
  "width":"90%",
  "margin-left":"5%"
}); */
$("#tabs li").removeClass('ui-corner-top').addClass('ui-corner-left');
$('#tabs').tabs("option", "active", 0)
{'fraction_non_alphanumeric': 0.25220228384991844, 'fraction_numerical': 0.004567699836867863, 'mean_word_length': 4.730841121495327, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 9, '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': '3724887', 'n_tokens_mistral': 935, 'n_tokens_neox': 927, 'n_words': 145}