<commit_before>$(document).ready( function () {
  'use strict';

  var displayVenues = function (data, status, xhr) {
    console.log('getting to display venues');
    var coolPlace = data.response.groups[0].items[0].venue;
    $('<p>', {
      text: coolPlace.name
    }).prependTo('body');
    // $('<img>', {
    //   src: data.response.groups[0].items[0].venue.groups[0].items[0]
    // });
  };

   var requestFromFourSquare = function(loc) {
    console.log('starting foursquare request');
    var data = {
      client_id: 'BBXQZQD1XYLBS1MI3UNLIQMKFMEGYSBTYAZVYEMPRKPAPCNO',
      client_secret: '<KEY>',
      ll: loc,
      query: 'restaurant',
      // section: 'food',
      // limit: 1,
      venuePhoto: 1,
      v: '20140612',
      format: 'json'
    };


   	var url = 'https://api.foursquare.com/v2/venues/explore';

    $.ajax(url, { data: data, dataType: 'jsonp' })
      .then(function(data, status, xhr) {
        displayVenues(data, status, xhr);
      }, function(xhr, status, error) {

      });
    };
  var getLocation = function () {
    console.log('getting location');
    var requestLocation = function() {
      console.log('requesting location');<commit_msg>Now displays a picture from the venue<commit_after>$(document).ready( function () {
  'use strict';



  var displayVenues = function (data, status, xhr) {
    console.log('getting to display venues');
    var coolPlace = data.response.groups[0].items[0].venue;
    $('<p>', {
      text: coolPlace.name
    }).prependTo('body');
    var photoTrace = coolPlace.photos.groups[0].items[0];
    var photoUrl = photoTrace.prefix + 'width960/' + photoTrace.suffix.slice(1);
    $('<img></img>', {
      src: photoUrl
    }).prependTo('body');
  };

  var requestFromFourSquare = function(loc) {
    console.log('starting foursquare request');
    var data = {
      client_id: 'BBXQZQD1XYLBS1MI3UNLIQMKFMEGYSBTYAZVYEMPRKPAPCNO',
      client_secret: '<KEY>',
      ll: loc,
      // query: 'restaurant',
      section: 'food',
      // limit: 1,
      venuePhotos: 1,
      v: '20140612',
      format: 'json'
    };


   	var url = 'https://api.foursquare.com/v2/venues/explore';

    $.ajax(url, { data: data, dataType: 'jsonp' })
      .then(function(data, status, xhr) {
        displayVenues(data, status, xhr);
      }, function(xhr, status, error) {

      });
  };

  var getLocation = function () {
    console.log('getting location');
    var requestLocation = function() {
      console.log('requesting location');
{'fraction_non_alphanumeric': 0.16693227091633467, 'fraction_numerical': 0.016733067729083666, 'mean_word_length': 2.857142857142857, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '3409950', 'n_tokens_mistral': 897, 'n_tokens_neox': 844, 'n_words': 168}