<commit_before>import { connect, Dispatch } from 'react-redux';
import { RootState } from '../types';
import { QueueAction } from '../actions/queue';
import QueueTable, { Props, Handlers } from '../components/Queue/QueueTable';
import { fetchQueue } from '../dispatch/fetchQueue';
import { returnHit } from '../dispatch/returnHit';

const mapState = (state: RootState): Props => ({
  queue: state.queue
});

const mapDispatch = (dispatch: Dispatch<QueueAction>): Handlers => ({
  onRefresh: fetchQueue(dispatch),
  onReturn: returnHit(dispatch)
});

export default connect(mapState, mapDispatch)(QueueTable);<commit_msg>QueueTable now only dispatches requests for fetching queue.<commit_after>import { connect, Dispatch } from 'react-redux';
import { RootState } from '../types';
import { QueueAction, fetchQueueRequest } from '../actions/queue';
import QueueTable, { Props, Handlers } from '../components/Queue/QueueTable';
// import { fetchQueue } from '../dispatch/fetchQueue';
import { returnHit } from '../dispatch/returnHit';

const mapState = (state: RootState): Props => ({
  queue: state.queue
});

const mapDispatch = (dispatch: Dispatch<QueueAction>): Handlers => ({
  onRefresh: () => dispatch(fetchQueueRequest()),
  onReturn: returnHit(dispatch)
});

export default connect(mapState, mapDispatch)(QueueTable);
{'fraction_non_alphanumeric': 0.15570672713529857, 'fraction_numerical': 0.0, 'mean_word_length': 5.3349282296650715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '5368509', 'n_tokens_mistral': 370, 'n_tokens_neox': 368, 'n_words': 101}