<commit_before>$(document).ready(function () {

  $('button').click(function() {

    $.ajax ({
      url: 'http://api.target.com/items/v3/055-02-3741?id_type=dpci&store_id=530&fields=ids,descriptions,locations,pricing,images&mode=online&key=<KEY>',
      jsonpCallback: 'jsonCallback',
      consentType: "application/json",
      dataType: 'jsonp',

      success: function(data) {
        console.log(data);
        img = data.product_composite_response.items[0].image.internal_primary_image_url
        $("#output-1").html(data.product_composite_response.items[0].general_description)
        $("#output-2").html(data.product_composite_response.items[0].class_id);
        $("#output-3").html(data.product_composite_response.items[0].online_price.current_price);
        $("#output-4").html(
          '<img id="default" src="">'
          document.getElementById("default").setAttribute("id",img).setAttribute("src",img);

          ); // end img output
        }, //end success function

       error: function(e) {
        console.log(e.message);
        } //end error function

    }); // end AJAX

  }); // end button.click

}); // end ready<commit_msg>adjust<commit_after>$(document).ready(function () {

  $('button').click(function() {

    $.ajax ({
      url: 'http://api.target.com/items/v3/055-02-3741?id_type=dpci&store_id=530&fields=ids,descriptions,locations,pricing,images&mode=online&key=<KEY>',
      jsonpCallback: 'jsonCallback',
      consentType: "application/json",
      dataType: 'jsonp',

      success: function(data) {
        console.log(data);
        img = data.product_composite_response.items[0].image.internal_primary_image_url
        $("#output-1").html(data.product_composite_response.items[0].general_description)
        $("#output-2").html(data.product_composite_response.items[0].class_id);
        $("#output-3").html(data.product_composite_response.items[0].online_price.current_price);
        $("#output-4").html(
          '<img id="default" src="">'
             ); // end img output
          document.getElementById("default").setAttribute("id",img).setAttribute("src",img);


        }, //end success function

       error: function(e) {
        console.log(e.message);
        } //end error function

    }); // end AJAX

  }); // end button.click

}); // end ready
{'fraction_non_alphanumeric': 0.17578629900904783, 'fraction_numerical': 0.01809564842740198, 'mean_word_length': 3.2449725776965264, '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': '4000656', 'n_tokens_mistral': 732, 'n_tokens_neox': 714, 'n_words': 83}