<commit_before>$(document).ready(function() {
  //http://api.bandsintown.com/artists/Skrillex.json?api_version=2.0&app_id=YOUR_APP_ID
  var artists = [];
  $('.six.columns.main-content').hide();
  $('#city-submit').click(function(evt) {
    var cityname = $('#city-input').val();
    $('.six.columns.main-content').fadeIn(200);
    var map = new GMaps({
      div: '#map',
      lat: 0,
      lng: 0,
      zoom: 12
    });

var results;

    $.ajax({
      method: "GET",
      url: "//api.bandsintown.com/events/search?location=" + cityname + "&format=json&app_id=SongCity",
      dataType: "jsonp",
      success: function(data) {

        results = data;
        for (var i = 0; i < 40; i++) {

          artists[i] = data[i].artists[0].name;
          var lat = data[i].venue.latitude;
          var long = data[i].venue.longitude;

          map.setCenter(lat, long);
          map.addMarker({
            lat: lat,
            lng: long,
            click: function(e) {
              alert('You clicked in this marker');
            }
          });
          $.ajax({
            method: "GET",
            url: '//api.bandsintown.com/artists/' + artists[i] + '.json?api_version=2.0&app_id=SongCity',
            dataType: "jsonp",
            success: function(data) {
              results[i].artists[0].image = data.image_url;
              console.log(results);
              console.log(data);
              // console.log(data);
              $("ul").append("<li>" + results[i].artists[0].name + " | " + results[i].venue.name + "<img height='200px' width='200px' src='" + results[i].artists[0].image + "'></li>");
              // $("ul").append("<img height='200px' width='200px' src='" + data.image_url + "'>");

            }
          });
        };
      }


    });



  });

});<commit_msg>IT WORKS<commit_after>// $(document).ready(function() {
//   //http://api.bandsintown.com/artists/Skrillex.json?api_version=2.0&app_id=YOUR_APP_ID
//   var artistArray = [];
//   $('.six.columns.main-content').hide();
//   $('#city-submit').click(function(evt) {
//     var cityname = $('#city-input').val();
//     $('.six.columns.main-content').fadeIn(200);
//     var map = new GMaps({
//       div: '#map',
//       lat: 0,
//       lng: 0,
//       zoom: 12
//     });
//
//     var results;
//
//     $.ajax({
//       method: "GET",
//       url: "//api.bandsintown.com/events/search?location=" + cityname + "&format=json&app_id=SongCity",
//       dataType: "jsonp",
//       success: function(data) {
//
//         results = data;
//         for (var i = 0; i < 40; i++) {
//
//           artistArray[i] = data[i].artists[0].name;
//           var lat = data[i].venue.latitude;
//           var long = data[i].venue.longitude;
//
//           map.setCenter(lat, long);
//           map.addMarker({
//             lat: lat,
//             lng: long,
//             click: function(e) {
//               alert('You clicked in this marker');
//             }
//           });
//           $.ajax({
//             method: "GET",
//             url: '//api.bandsintown.com/artists/' + artistArray[i] + '.json?api_version=2.0&app_id=SongCity',
//             dataType: "jsonp",
//             success: function(data) {
//               console.log(i);
//               console.log(results[i]);
//               results[i].artists[0].image = data.image_url;
//               console.log(results[i]);
//
//               // console.log(data);
//               $("ul").append("<li>" + results[i].artists[0].name + " | " + results[i].venue.name + "<img height='200px' width='200px' src='" + results[i].artists[0].image + "'></li>");
//               // $("ul").append("<img height='200px' width='200px' src='" + data.image_url + "'>");
//
//             }
//           });
//         };
//       }
//
//
//     });
//
//
//
//   });
//
// });
$(document).ready(function() {
  //http://api.bandsintown.com/artists/Skrillex.json?api_version=2.0&app_id=YOUR_APP_ID
  var artistArray = [];
  $('.six.columns.main-content').hide();
  $('#city-submit').click(function(evt) {
    var cityname = $('#city-input').val();
    $('.six.columns.main-content').fadeIn(200);
    var map = new GMaps({
      div: '#map',
      lat: 0,
      lng: 0,
      zoom: 12
    });

    var results;

    $.ajax({
      method: "GET",
      url: "//api.bandsintown.com/events/search?location=" + cityname + "&format=json&app_id=SongCity",
      dataType: "jsonp",
      success: function(data) {

        results = data;
        for (var i = 0; i < 40; i++) {

          artistArray[i] = data[i].artists[0].name;
          var lat = data[i].venue.latitude;
          var long = data[i].venue.longitude;

          map.setCenter(lat, long);
          map.addMarker({
            lat: lat,
            lng: long,
            click: function(e) {
              alert('You clicked in this marker');
            }
          });

          LoadArtist(data[i]);

        };
      }


    });

    function LoadArtist(artist) {
      var workingArtist = artist;
      $.ajax({
        method: "GET",
        url: '//api.bandsintown.com/artists/' + workingArtist.artists[0].name + '.json?api_version=2.0&app_id=SongCity',
        dataType: "jsonp",
        success: function(data) {
          workingArtist.artists[0].image = data.image_url;
          $("ul").append("<li>" + workingArtist.artists[0].name + " | " + workingArtist.venue.name + "<img height='200px' width='200px' src='" + workingArtist.artists[0].image + "'></li>");
          // $("ul").append("<img height='200px' width='200px' src='" + data.image_url + "'>");

        }
      });
    }



  });

});
{'fraction_non_alphanumeric': 0.2096402622718412, 'fraction_numerical': 0.016126174020910863, 'mean_word_length': 1.8065638985579313, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 15, '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': '5492783', 'n_tokens_mistral': 1958, 'n_tokens_neox': 1875, 'n_words': 294}