<commit_before>'use strict';

import React from 'react';
import Paper from 'material-ui/Paper';
import { Editor } from '../redux/actions';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';

const style = {
  paddingLeft: 10,
  paddingRight: 10
};

let template = React.createClass({
  render() {
    return (
      <Paper style={style}>
        <TextField {...this.props} underlineStyle={{display: 'none'}} />
      </Paper>
    );
  }
});

const mapStateToProps = (state, props) => props;
const mapDispatchToProps = { change: Editor.change };

export default connect(
  mapStateToProps,
  mapDispatchToProps,
  createSelector(
    props => props,
    (state, actions) => actions.change,
    (props, change) => ({
      id: props.id,
      key: props.id,
      hintText: props.hint,
      value: props.value,
      multiLine: true,
      fullWidth: true,
      rowsMax: 28,
      rows: 28,
      onChange: (event, value) => change(props.id, value)
    })<commit_msg>editor too large, since position is fixed, buttons are not visible<commit_after>'use strict';

import React from 'react';
import Paper from 'material-ui/Paper';
import { Editor } from '../redux/actions';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';

const style = {
  paddingLeft: 10,
  paddingRight: 10
};

let template = React.createClass({
  render() {
    return (
      <Paper style={style}>
        <TextField {...this.props} underlineStyle={{display: 'none'}} />
      </Paper>
    );
  }
});

const mapStateToProps = (state, props) => props;
const mapDispatchToProps = { change: Editor.change };

export default connect(
  mapStateToProps,
  mapDispatchToProps,
  createSelector(
    props => props,
    (state, actions) => actions.change,
    (props, change) => ({
      id: props.id,
      key: props.id,
      hintText: props.hint,
      value: props.value,
      multiLine: true,
      fullWidth: true,
      rowsMax: 24,
      rows: 24,
      onChange: (event, value) => change(props.id, value)
    })
{'fraction_non_alphanumeric': 0.14185720951936537, 'fraction_numerical': 0.007466168922071862, 'mean_word_length': 3.147001934235977, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '4904935', 'n_tokens_mistral': 679, 'n_tokens_neox': 660, 'n_words': 184}