<commit_before>import React from 'react';
import packageJSON from '../../package.json';
import Header from './common/Header';
import Footer from './common/Footer';
import ErrorPage from './common/Error'
import LeftMenu from './common/LeftMenu'
import { connect } from 'react-redux';

const App = React.createClass({

  getInitialState() {
    return {
      minimize: false
    };
  },
  handleResize(e) {
    this.setState({windowWidth: window.innerWidth, minimize: window.innerWidth < 600});
  },

  componentDidMount() {
   window.addEventListener('resize', this.handleResize);
 },

 componentWillUnmount() {
   window.removeEventListener('resize', this.handleResize);
 },

  render() {
    const version = packageJSON.version;
    const marginLeft = this.state.minimize?'52px':'177px';
    return !this.props.error ? (
      <div style={{height: '100%'}}>
        <div style={{height: '100%'}}>
          <LeftMenu version={version} minimize={this.state.minimize}/>
          <ErrorPage/>
          <div className="appMainBody" style={{width: document.body.clientWidth-180, marginLeft: marginLeft, marginTop: '10px', paddingRight:'20px'}}>
              {this.props.children}
          </div>
        </div>
        <Footer/>
      </div>
    ) : this.props.children;
  }

});


export default connect(state => state.global)(App);<commit_msg>linting corrections - App.js<commit_after>import React from 'react';
import { connect } from 'react-redux';
import Footer from './common/Footer';
import ErrorPage from './common/Error';
import LeftMenu from './common/LeftMenu';
import packageJSON from '../../package.json';

const App = React.createClass({
  getInitialState() {
    return {
      minimize: false
    };
  },
  handleResize(e) {
    this.setState({ windowWidth: window.innerWidth, minimize: window.innerWidth < 600 });
  },

  componentDidMount() {
    window.addEventListener('resize', this.handleResize);
  },

  componentWillUnmount() {
    window.removeEventListener('resize', this.handleResize);
  },

  render() {
    const version = packageJSON.version;
    const marginLeft = this.state.minimize ? '52px' : '177px';
    return !this.props.error ? (
      <div style={{ height: '100%' }}>
        <div style={{ height: '100%' }}>
          <LeftMenu version={version} minimize={this.state.minimize} />
          <ErrorPage />
          <div
            className="appMainBody"
            style={{
              width: document.body.clientWidth - 180,
              marginLeft: marginLeft,
              marginTop: '10px',
              paddingRight: '20px'
            }}
          >
            {this.props.children}
          </div>
        </div>
        <Footer />
      </div>
    ) : (
      this.props.children
    );
  }
});

export default connect(state => state.global)(App);
{'fraction_non_alphanumeric': 0.1525302922309337, 'fraction_numerical': 0.01496792587312901, 'mean_word_length': 2.712962962962963, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1275371', 'n_tokens_mistral': 847, 'n_tokens_neox': 822, 'n_words': 175}