<commit_before>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { addNode } from '../../actions';
import { getNodes } from '../../selectors';
import EditStatesList from '../EditStatesList';
import Modal from '../Modal';
import Button from '../Button';
import styles from './styles.css';

const initialState = {
  name: '',
  states: ['T', 'F'],
};

class AddNodeModal extends Component {
  state = initialState;

  componentWillReceiveProps(nextProps) {
    if (this.props.position == null && nextProps.position != null) {
      this.setState(initialState);
      setTimeout(() => this.inputName.focus(), 0);
    }
  }

  handleNameBlur = e => {
    this.setState({ name: e.target.value });
  };<commit_msg>Change default states from [T,S] to [Sim,Não]<commit_after>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { addNode } from '../../actions';
import { getNodes } from '../../selectors';
import EditStatesList from '../EditStatesList';
import Modal from '../Modal';
import Button from '../Button';
import styles from './styles.css';

const initialState = {
  name: '',
  states: ['Sim', 'Não'],
};

class AddNodeModal extends Component {
  state = initialState;

  componentWillReceiveProps(nextProps) {
    if (this.props.position == null && nextProps.position != null) {
      this.setState(initialState);
      setTimeout(() => this.inputName.focus(), 0);
    }
  }

  handleNameBlur = e => {
    this.setState({ name: e.target.value });
  };
{'fraction_non_alphanumeric': 0.17161290322580644, 'fraction_numerical': 0.0012903225806451613, 'mean_word_length': 3.6576576576576576, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5920137', 'n_tokens_mistral': 454, 'n_tokens_neox': 457, 'n_words': 128}