<commit_before>var request = require("request");

function randomInt (low, high) {
  return Math.floor(Math.random() * (high - low) + low);
}

var dataArray = [];
var qrArray = [];

module.exports = {
  post:function(){
    request("http://www.vam.ac.uk/api/json/museumobject/", function(error, response, body) {
      body = JSON.parse(body)
      for (i=0; i <= 11; i++){
        body1 = body.records
        var object = {
          "Name": body1[i].fields.object,
          "Date": body1[x].fields.year_start,
          "Location": body1[i].fields.location,
          "Latitude": body1[i].fields.latitude,
          "Longitude": body1[i].fields.longitude,
          "Place": body1[i].fields.Place,
          "pk": body1[i].pk,
          "image_id": body1[i].fields.primary_image_id
        }
        dataArray.push(object)
      }
    });
    return dataArray
  }, 

  qr:function(){
    request("http://www.vam.ac.uk/api/json/museumobject/", function(error, response, body) {
      body = JSON.parse(body)
      for(i = 0; i <= 14; i++){
      body1 = body.records;
        var object = {
          "QR_URL": "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=" + body1[i].pk,
          "Name": body1[i].fields.object
        }
        qrArray.push(object);
      }
    });
    return qrArray
  }
}<commit_msg>Silly James did not test the app before pushing<commit_after>var request = require("request");

function randomInt (low, high) {
  return Math.floor(Math.random() * (high - low) + low);
}

var dataArray = [];
var qrArray = [];

module.exports = {
  post:function(){
    request("http://www.vam.ac.uk/api/json/museumobject/", function(error, response, body) {
      body = JSON.parse(body)
      for (i=0; i <= 10; i++){
        body1 = body.records
        var object = {
          "Name": body1[i].fields.object,
          "Date": body1[i].fields.year_start,
          "Location": body1[i].fields.location,
          "Latitude": body1[i].fields.latitude,
          "Longitude": body1[i].fields.longitude,
          "Place": body1[i].fields.Place,
          "pk": body1[i].pk,
          "image_id": body1[i].fields.primary_image_id
        }
        dataArray.push(object)
      }
    });
    return dataArray
  }, 

  qr:function(){
    request("http://www.vam.ac.uk/api/json/museumobject/", function(error, response, body) {
      body = JSON.parse(body)
      for(i = 0; i <= 14; i++){
      body1 = body.records;
        var object = {
          "QR_URL": "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=" + body1[i].pk,
          "Name": body1[i].fields.object
        }
        qrArray.push(object);
      }
    });
    return qrArray
  }
}
{'fraction_non_alphanumeric': 0.17410714285714285, 'fraction_numerical': 0.018601190476190476, 'mean_word_length': 2.30750307503075, 'pattern_counts': {'":': 20, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '7175770', 'n_tokens_mistral': 954, 'n_tokens_neox': 918, 'n_words': 160}