<commit_before>$(document).ready(function(){
    // Register on change event
    $("select#country").change(function(){
      // Clear options as soon as country change
      $("select#subdivision").empty();
      var reqUrl = "/countries/" + $("select#country").val() +"/subdivisions";
      $.getJSON(reqUrl, function(data){
        $.each(data.result, function(_, subdivision) {
          $("select#subdivision")
            .append($("<option></option>")
              .attr("value", subdivision.id)
              .attr("code", subdivision.code)
              .text(subdivision.name));
        });
        $("select#subdivision").triggerHandler("change");
      });
    });
    // Onload trigger the change as country comes packed with form
    $("select#country").triggerHandler("change");
    $("form.client-validate").validate({
      errorElement: "span",
      //wrapper: "li",
      errorPlacement: function(error, element) {
        error.addClass("help-block");
        error.insertAfter(element);
      },
      highlight: function(element) {
        $(element).parents("div.form-group").addClass("has-error");
      },
      unhighlight: function(element) {
        $(element).parents("div.form-group").removeClass("has-error");
      },
      submitHandler: function(form) {
        $("form.client-validate button").button("loading");
        form.submit();
      }
    });
});<commit_msg>Remove jquery validtion from address-forms<commit_after>$(document).ready(function(){
    // Register on change event
    $("select#country").change(function(){
      // Clear options as soon as country change
      $("select#subdivision").empty();
      var reqUrl = "/countries/" + $("select#country").val() +"/subdivisions";
      $.getJSON(reqUrl, function(data){
        $.each(data.result, function(_, subdivision) {
          $("select#subdivision")
            .append($("<option></option>")
              .attr("value", subdivision.id)
              .attr("code", subdivision.code)
              .text(subdivision.name));
        });
        $("select#subdivision").triggerHandler("change");
      });
    });
    // Onload trigger the change as country comes packed with form
    $("select#country").triggerHandler("change");
});
{'fraction_non_alphanumeric': 0.18100757913508694, 'fraction_numerical': 0.0, 'mean_word_length': 2.702970297029703, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3842960', 'n_tokens_mistral': 618, 'n_tokens_neox': 595, 'n_words': 111}