<commit_before>import fs from 'fs';

let weatherKey;
fs.readFile(__dirname + '/weather-key', (err, data) => {
  if (err){
    const error = "No weather-key provided. Please have weather-key in the keys folder";
    throw error;
  }
  weatherKey = data.toString().trim();
});

export function getWeatherUrl(lat, lng){
  return `http://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${weatherKey}`;
}

export function getStockUrl(nse) {
  return `http://www.google.com/finance/info?q=${nse}`;
}<commit_msg>Update api endpoint<commit_after>import fs from 'fs';

let weatherKey;
fs.readFile(__dirname + '/weather-key', (err, data) => {
  if (err){
    const error = "No weather-key provided. Please have weather-key in the keys folder";
    throw error;
  }
  weatherKey = data.toString().trim();
});

export function getWeatherUrl(lat, lng){
  return `http://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${weatherKey}`;
}

export function getStockUrl(nse) {
  return `http://dev.markitondemand.com/MODApis/Api/v2/Quote/jsonp?symbol=${nse}`;
}
{'fraction_non_alphanumeric': 0.17820867959372114, 'fraction_numerical': 0.0046168051708217915, 'mean_word_length': 4.76595744680851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '67979', 'n_tokens_mistral': 389, 'n_tokens_neox': 378, 'n_words': 80}