<commit_before>const { generateRandom } = require('./drone');

const getVehicles = ({coords}) => {
  // Number of vehicles to generate
  const vehicleCount = 4;
  // Max distance from given coordinates in meters to generate vehicles in
  const distance = 1000;
  // Coordinates to generate vehicles around
  coords = coords || {lat: 47.166167, long: 8.515495};

  let vehicles = {};
  for (let i = 0; i < vehicleCount; i++) {
    let vehicle = generateRandom({coords, distance});
    vehicles[vehicle.id] = vehicle;<commit_msg>Status api now returns vehicles in an array instead of object<commit_after>const { generateRandom } = require('./drone');

const getVehicles = ({coords}) => {
  // Number of vehicles to generate
  const vehicleCount = 4;
  // Max distance from given coordinates in meters to generate vehicles in
  const distance = 1000;
  // Coordinates to generate vehicles around
  coords = coords || {lat: 47.166167, long: 8.515495};

  let vehicles = [];
  for (let i = 0; i < vehicleCount; i++) {
    vehicles.push(generateRandom({coords, distance}));
{'fraction_non_alphanumeric': 0.12277413308341144, 'fraction_numerical': 0.03936269915651359, 'mean_word_length': 3.832579185520362, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6693167', 'n_tokens_mistral': 337, 'n_tokens_neox': 302, 'n_words': 113}