<commit_before>import axios from 'axios';
const API_KEY = '<KEY>';
const ROOT_URL = `http://api.openweathermap.org/data/2.5/forecast?appid=${API_KEY}`;

export const FETCH_WEATHER = 'FETCH_WEATHER';

export function fetchWeather(city) {

    const url = `${ROOT_URL}&q=${city},us`;
    console.log('URL:', url);
    const request = axios.get(url);

    // console.log('REQUEST:', request);   

    return {
        type: FETCH_WEATHER,
        payload: request
    };
}
    
// 10:42 axios<commit_msg>Heroku Deploy13 google API url changed to https<commit_after>import axios from 'axios';
const API_KEY = '<KEY>';
const ROOT_URL = `https://api.openweathermap.org/data/2.5/forecast?appid=${API_KEY}`;

export const FETCH_WEATHER = 'FETCH_WEATHER';

export function fetchWeather(city) {

    const url = `${ROOT_URL}&q=${city},us`;
    console.log('URL:', url);
    const request = axios.get(url);

    // console.log('REQUEST:', request);   

    return {
        type: FETCH_WEATHER,
        payload: request
    };
}
    
// 10:42 axios
{'fraction_non_alphanumeric': 0.1600771456123433, 'fraction_numerical': 0.013500482160077145, 'mean_word_length': 3.4741379310344827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7279795', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 74}