<commit_before>import React, { Component, PropTypes } from 'react';

class AddTagForm extends Component {

  constructor(props) {
    super(props);

    this.addTag = this.addTag.bind(this);
  }

  cancelEdit() {
    this.addTagForm.reset();
    this.props.cancelEdit();
  }

  addTag(e) {
    e.preventDefault();
    this.props.addTag(this.tag.value);
  }
<commit_msg>Bind cancel button click<commit_after>import React, { Component, PropTypes } from 'react';

class AddTagForm extends Component {

  constructor(props) {
    super(props);

    this.addTag = this.addTag.bind(this);
    this.cancelEdit = this.cancelEdit.bind(this);
  }

  cancelEdit() {
    this.addTagForm.reset();
    this.props.cancelEdit();
  }

  addTag(e) {
    e.preventDefault();
    this.props.addTag(this.tag.value);
  }

{'fraction_non_alphanumeric': 0.1439299123904881, 'fraction_numerical': 0.0, 'mean_word_length': 3.4444444444444446, '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': '1436518', 'n_tokens_mistral': 272, 'n_tokens_neox': 267, 'n_words': 45}