<commit_before>import {
  GET_HEADER,
} from 'Constants/actionTypes';
import { createAction } from 'redux-actions';
import ContentfulClient from 'Helpers/ContentfulClient';

const cc = new ContentfulClient();
const getHeader = createAction(GET_HEADER, async () => cc.getEntry(cc.entries.header));

export default getHeader;<commit_msg>feat(src/actions/getHeader.js): modify action to use getEntries with query, instead of getEntry<commit_after>import {
  GET_HEADER,
} from 'Constants/actionTypes';
import { createAction } from 'redux-actions';
import ContentfulClient from 'Helpers/ContentfulClient';

const cc = new ContentfulClient();
const getHeader = createAction(GET_HEADER, async () => cc.getEntries({
  'sys.id': cc.entries.header,
}));

export default getHeader;
{'fraction_non_alphanumeric': 0.11932555123216602, 'fraction_numerical': 0.0, 'mean_word_length': 6.568627450980392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '4705748', 'n_tokens_mistral': 222, 'n_tokens_neox': 222, 'n_words': 59}