<commit_before>import React from 'react';
import { Button } from 'react-bootstrap';
import { Link } from 'react-router';
import brace from 'brace';
import AceEditor from 'react-ace';

import 'brace/mode/javascript';
import 'brace/theme/ambiance';

class UserInput extends React.Component {
  constructor (){
    super()

    this.state = {
      term: '',
      projID: ''
    };
  }

  componentWillMount () {
    this.setState({
      term: this.props.session.setup,
      projID: this.props.session.projectId
    });
  }

  componentWillReceiveProps (nextProps) {
    if (nextProps.session.projectId !== this.state.projID) {
      this.setState({
        term: nextProps.session.setup,
        projID: nextProps.session.projectId
      });
    }
  }
  
  // onChange(newValue) {
  //   console.log('change',newValue);
  // }

  _onInputChange(term) {
    this.setState({term});
    console.log(this.state.term);
  }

  _submitHandler(){
<commit_msg>(refactor) Remove conosle logs<commit_after>import React from 'react';
import { Button } from 'react-bootstrap';
import { Link } from 'react-router';
import brace from 'brace';
import AceEditor from 'react-ace';

import 'brace/mode/javascript';
import 'brace/theme/ambiance';

class UserInput extends React.Component {
  constructor (){
    super()

    this.state = {
      term: '',
      projID: ''
    };
  }

  componentWillMount () {
    this.setState({
      term: this.props.session.setup,
      projID: this.props.session.projectId
    });
  }

  componentWillReceiveProps (nextProps) {
    if (nextProps.session.projectId !== this.state.projID) {
      this.setState({
        term: nextProps.session.setup,
        projID: nextProps.session.projectId
      });
    }
  }

  _onInputChange(term) {
    this.setState({term});
  }

  _submitHandler(){

{'fraction_non_alphanumeric': 0.14072847682119205, 'fraction_numerical': 0.0, 'mean_word_length': 2.9498910675381262, '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': '7638482', 'n_tokens_mistral': 584, 'n_tokens_neox': 568, 'n_words': 110}