<commit_before>import React, {PropTypes} from 'react';
import {Modal, Button} from 'react-bootstrap';
import {connect} from 'react-redux';
import ReactDOM from 'react-dom';
import {listCandidate} from '../../actions/candidateManagerActions';

class ListCandidateModal extends React.Component {
  constructor(props) {
    super(props);
    this.onListCandidateClick = this.onListCandidateClick.bind(this);
  }

  onListCandidateClick() {
    let candidateList = new FormData();
    candidateList.append('logo', ReactDOM.findDOMNode(this.refs.logo).files[0]);
    this.props.listCandidate(candidateList);
    this.props.onHideListCandidateModal();
  }

  render() {
    return (<commit_msg>Handle edit candidate part and add candidate part bug<commit_after>import React, {PropTypes} from 'react';
import {Modal, Button} from 'react-bootstrap';
import {connect} from 'react-redux';
import ReactDOM from 'react-dom';
import {listCandidate} from '../../actions/candidateManagerActions';

class ListCandidateModal extends React.Component {
  constructor(props) {
    super(props);
    this.onListCandidateClick = this.onListCandidateClick.bind(this);
  }

  onListCandidateClick() {
    let candidateList = new FormData();
    candidateList.append('file', ReactDOM.findDOMNode(this.refs.logo).files[0]);
    this.props.listCandidate(candidateList);
    this.props.onHideListCandidateModal();
  }

  render() {
    return (
{'fraction_non_alphanumeric': 0.1285310734463277, 'fraction_numerical': 0.0014124293785310734, 'mean_word_length': 5.029787234042553, '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': '4550750', 'n_tokens_mistral': 423, 'n_tokens_neox': 419, 'n_words': 90}