<commit_before>const request = require('request');
const yargs = require('yargs');

// 68 Studencheskaya street Engels

const argv = yargs
  .options({
    a: {
      demand: true,
      alias: 'address',
      describe: 'Address to fetch weather for.',
      string: true
    }
  })
  .help()
  .alias('help', 'h')
  .argv;

var url = `https://maps.googleapis.com/maps/api/geocode/json?address=${encodeURIComponent(argv.address)}`;

request({
  url: url,
  json: true
}, (error, response, body) => {
  if (error) {
    console.log('Unable to connect to Google services.');
  } else if (body.status === 'ZERO_RESULTS') {
    console.log('Unable to find address');
  } else {
    console.log(body.results[0].formatted_address);
    console.log(`Latitude: ${body.results[0].geometry.location.lat}`);
    console.log(`Longitude: ${body.results[0].geometry.location.lng}`);
  }
});
<commit_msg>Update error handling<commit_after>const request = require('request');
const yargs = require('yargs');

// 68 Studencheskaya street Engels

const argv = yargs
  .options({
    a: {
      demand: true,
      alias: 'address',
      describe: 'Address to fetch weather for.',
      string: true
    }
  })
  .help()
  .alias('help', 'h')
  .argv;

var url = `https://maps.googleapis.com/maps/api/geocode/json?address=${encodeURIComponent(argv.address)}`;

request({
  url: url,
  json: true
}, (error, response, body) => {
  if (error) {
    console.log('Unable to connect to Google services.');
  } else if (body.status === 'ZERO_RESULTS') {
    console.log('Unable to find address');
  } else if (body.status === 'OK'){
    console.log(body.results[0].formatted_address);
    console.log(`Latitude: ${body.results[0].geometry.location.lat}`);
    console.log(`Longitude: ${body.results[0].geometry.location.lng}`);
  }
});

{'fraction_non_alphanumeric': 0.17870932156646444, 'fraction_numerical': 0.005515719801434087, 'mean_word_length': 3.5924050632911393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5857347', 'n_tokens_mistral': 606, 'n_tokens_neox': 607, 'n_words': 133}