<commit_before>import axios from 'axios';

const OPEN_WEATHER_API_KEY = '9b1e26b7dac3c0f0fec461c2d3d01883';
const ROOT_URL = `https://api.openweathermap.org/data/2.5/forecast?appid=${OPEN_WEATHER_API_KEY}`;

export const FETCH_WEATHER = 'FETCH_WEATHER';

export function fetchWeather(city) {
  const url = `${ROOT_URL}&q=${city},es`;
  const request = axios.get(url);

  return {
    type: FETCH_WEATHER,
    payload: request<commit_msg>Revert "using HTTPS"<commit_after>import axios from 'axios';

const OPEN_WEATHER_API_KEY = '9b1e26b7dac3c0f0fec461c2d3d01883';
const ROOT_URL = `http://api.openweathermap.org/data/2.5/forecast?appid=${OPEN_WEATHER_API_KEY}`;

export const FETCH_WEATHER = 'FETCH_WEATHER';

export function fetchWeather(city) {
  const url = `${ROOT_URL}&q=${city},es`;
  const request = axios.get(url);

  return {
    type: FETCH_WEATHER,
    payload: request
{'fraction_non_alphanumeric': 0.1318181818181818, 'fraction_numerical': 0.045454545454545456, 'mean_word_length': 6.048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2841326', 'n_tokens_mistral': 384, 'n_tokens_neox': 365, 'n_words': 57}