<commit_before>import * as types from '../constants/ActionTypes';

export function loginRequest(id, credentials) {
    return { type: types.LOGIN_REQUEST, id, credentials};
}

export function loginFailure(id, message) {
    return { type: types.LOGIN_FAIL, id, message };
}

export function loginSuccess(id, message) {
    return { type: types.LOGIN_SUCCESS, id, message };
}

export function fetchFilesRequest(id, dirpath) {
    return { type: types.FETCH_FILES_REQUEST, id, dirpath};
}

export function fetchFilesFailure(id, message) {
    return { type: types.FETCH_FILES_FAIL, id, message };
}

export function fetchFilesSuccess(id, files, error) {
    return { type: types.FETCH_FILES_SUCCESS, id, error };
}<commit_msg>Improved names in the action functions<commit_after>import * as types from '../constants/ActionTypes';

export function loginRequest(id, credentials) {
    return { type: types.LOGIN_REQUEST, id, credentials};
}

export function loginSuccess(id, message) {
    return { type: types.LOGIN_SUCCESS, id, message };
}

export function loginFailure(id, message) {
    return { type: types.LOGIN_FAIL, id, message };
}

export function fetchFilesRequest(id, dirpath) {
    return { type: types.FETCH_FILES_REQUEST, id, dirpath};
}

export function fetchFilesSuccess(id, files) {
    return { type: types.FETCH_FILES_SUCCESS, id, files };
}

export function fetchFilesFailure(id, message) {
    return { type: types.FETCH_FILES_FAIL, id, message };
}
{'fraction_non_alphanumeric': 0.11376021798365123, 'fraction_numerical': 0.0, 'mean_word_length': 4.899598393574297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4094822', 'n_tokens_mistral': 454, 'n_tokens_neox': 441, 'n_words': 124}