<commit_before>import { get }          from 'axios';
import { camelizeKeys } from 'humps';

/**
 * @constant API_KEY
 * @type {String}
 */
const API_KEY = '<KEY>';

/**
 * @constant FETCH
 * @type {Symbol}
 */
export const FETCH = Symbol('fetch');

/**
 * @method fetchData
 * @param {String} country
 * @return {Object}
 */
export function fetchData(country) {

    return async dispatch => {

        const url = `http://api.openweathermap.org/data/2.5/weather?q=${country}&appid=${API_KEY}&units=metric`;
        const { data } = await get(url);

        dispatch({ type: FETCH, name: country, result: camelizeKeys(data) });

    };

}<commit_msg>Using https for API call<commit_after>import { get }          from 'axios';
import { camelizeKeys } from 'humps';

/**
 * @constant API_KEY
 * @type {String}
 */
const API_KEY = '<KEY>';

/**
 * @constant FETCH
 * @type {Symbol}
 */
export const FETCH = Symbol('fetch');

/**
 * @method fetchData
 * @param {String} country
 * @return {Object}
 */
export function fetchData(country) {

    return async dispatch => {

        const url = `https://api.openweathermap.org/data/2.5/weather?q=${country}&appid=${API_KEY}&units=metric`;
        const { data } = await get(url);

        dispatch({ type: FETCH, name: country, result: camelizeKeys(data) });

    };

}
{'fraction_non_alphanumeric': 0.17378048780487804, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 3.2768729641693812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2319087', 'n_tokens_mistral': 445, 'n_tokens_neox': 425, 'n_words': 104}