<commit_before>import {
  LOAD_COMMENTS_REQUEST, LOAD_COMMENTS_SUCCESS, LOAD_COMMENTS_FAILURE,
} from '../constants/ActionTypes';
import { CALL_API, Schemas } from '../middleware/api';

const loadCommentsRequest = ({ link }) => ({
  [CALL_API]: {
    types: [ LOAD_COMMENTS_REQUEST, LOAD_COMMENTS_SUCCESS, LOAD_COMMENTS_FAILURE ],
    endpoint: `link/${link}/comments`,
    method: 'GET',
    schema: Schemas.COMMENT_ARRAY
  }
});

export const loadComments = (values) => (dispatch, getState) =>  {
  return dispatch(loadCommentsRequest(values));
};
<commit_msg>Send link id with action<commit_after>import {
  LOAD_COMMENTS_REQUEST, LOAD_COMMENTS_SUCCESS, LOAD_COMMENTS_FAILURE,
} from '../constants/ActionTypes';
import { CALL_API, Schemas } from '../middleware/api';

const loadCommentsRequest = ({ link }) => ({
  link,
  [CALL_API]: {
    types: [ LOAD_COMMENTS_REQUEST, LOAD_COMMENTS_SUCCESS, LOAD_COMMENTS_FAILURE ],
    endpoint: `link/${link}/comments`,
    method: 'GET',
    schema: Schemas.COMMENT_ARRAY
  }
});

export const loadComments = (values) => (dispatch, getState) =>  {
  return dispatch(loadCommentsRequest(values));
};

{'fraction_non_alphanumeric': 0.1426071741032371, 'fraction_numerical': 0.0, 'mean_word_length': 5.085106382978723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2230503', 'n_tokens_mistral': 387, 'n_tokens_neox': 376, 'n_words': 71}