<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

import { connectSpinner } from '../../../../packages/spinner';
import { loginActions } from '../../../../common/services/user';
import { apiCallIds } from '../../api';

import Login from './view';

const mapDispatchToProps = {
  login: loginActions.request,
};

const LoginContainer = ({ isLoading, login }) => <Login isLoading={isLoading} onSubmit={login} />;

LoginContainer.propTypes = {
  isLoading: PropTypes.bool.isRequired,
  login: PropTypes.func.isRequired,
};

export default connect(
  undefined,
  mapDispatchToProps
)(
  connectSpinner({
    isLoading: apiCallIds.LOGIN,
  })(LoginContainer)
);
<commit_msg>Fix login api call id (#73)<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

import { connectSpinner } from '../../../../packages/spinner';
import { loginActions } from '../../../../common/services/user';
import { apiCallIds } from '../../../../common/services/user/api';

import Login from './view';

const mapDispatchToProps = {
  login: loginActions.request,
};

const LoginContainer = ({ isLoading, login }) => <Login isLoading={isLoading} onSubmit={login} />;

LoginContainer.propTypes = {
  isLoading: PropTypes.bool.isRequired,
  login: PropTypes.func.isRequired,
};

export default connect(
  undefined,
  mapDispatchToProps
)(
  connectSpinner({
    isLoading: apiCallIds.LOGIN,
  })(LoginContainer)
);

{'fraction_non_alphanumeric': 0.16875411997363216, 'fraction_numerical': 0.0013183915622940012, 'mean_word_length': 4.043189368770764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5704036', 'n_tokens_mistral': 443, 'n_tokens_neox': 449, 'n_words': 111}