<commit_before>import axios from 'axios';

export default itemIdentifier => axios.get(`items`, {
  baseURL: `http://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);<commit_msg>:lock: Use HTTPS for fetching  #17<commit_after>const axios = require(`axios`);

export default itemIdentifier => axios.get(`items`, {
  baseURL: `https://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);
{'fraction_non_alphanumeric': 0.19963031423290203, 'fraction_numerical': 0.0073937153419593345, 'mean_word_length': 4.956043956043956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6404483', 'n_tokens_mistral': 193, 'n_tokens_neox': 192, 'n_words': 39}