<commit_before>$(document).ready(function() {
  $('#Plans').prop('disabled', true);
  $('#Carriers').change(function(e) {
    $('#Plans').prop('disabled', false);
    $( "option[value|='']" ).remove()
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
    var id = $(e.target).val()
    $.getJSON('/carriers/'+id+'/show_plans', function(data) {
      $('#Plans').empty();
      $.each(data, function(key, value) {
        $('#Plans').append($('<option/>').attr("value", value._id).text(value.name).append(" : "+value.hios_plan_id));
      });
      if($('#Plans').is(':empty')) {
        $('#Plans').prop('disabled', true);
      }
      $("select").select2()
    });
  });

  $('#Plans').change(function() {
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
  });

  $('.date_picker').change(function() {
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
  });

  $('.btn[value="Calculate"]').click(function() {
    $(this).attr('class','btn btn-success');
  });
});<commit_msg>UI change for button in premium calc Tool<commit_after>$(document).ready(function() {
  $('#Plans').prop('disabled', true);
  $('#Carriers').change(function(e) {
    $('#Plans').prop('disabled', false);
    $( "option[value|='']" ).remove();
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
    var id = $(e.target).val();
    $.getJSON('/carriers/'+id+'/show_plans', function(data) {
      $('#Plans').empty();
      $.each(data, function(key, value) {
        $('#Plans').append($('<option/>').attr("value", value._id).text(value.name).append(" : "+value.hios_plan_id));
      });
      if($('#Plans').is(':empty')) {
        $('#Plans').prop('disabled', true);
      }
      $("#Plans").select2();
    });
  });

  $('#Plans').change(function() {
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
  });

  $('.date_picker').change(function() {
    $(".btn[value='Calculate']").attr('class','btn btn-primary');
  });

  $('.btn[value="Calculate"]').click(function() {
    $(this).attr('class','btn btn-default');
  });
});
{'fraction_non_alphanumeric': 0.30244839174267885, 'fraction_numerical': 0.0009601536245799327, 'mean_word_length': 4.058252427184466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '221363', 'n_tokens_mistral': 692, 'n_tokens_neox': 692, 'n_words': 77}