<commit_before>// application's entry

import React, { Component } from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Router, Route, IndexRoute, browserHistory, Link } from 'react-router';
import reducers from 'reducers/index';
import '../css/common.scss';

// pages
import Page1 from './page1/index';
import Page2 from './page2/index';

class Application extends Component {
  render() {
    return (
      <div> 
        <div className="header">
          <Link to="page1">page1</Link>
          <Link to="page2">page2</Link>
        </div>  
        { this.props.children }
      </div>
    );
  }
}

const store = createStore(reducers, {}, applyMiddleware(thunk));

render((
  <Provider store={ store }>
    <Router history={ browserHistory }>
      <Route path="/" component={ Application }>
        <IndexRoute component={ Page1 }/>
        <Route path="page1" component={ Page1 }></Route>
        <Route path="page2" component={ Page2 }></Route>
      </Route>
    </Router>
  </Provider>
), document.getElementById('app'));<commit_msg>Do not pad JSX curly braces with spaces<commit_after>// application's entry

import React, { Component } from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Router, Route, IndexRoute, browserHistory, Link } from 'react-router';
import reducers from 'reducers/index';
import '../css/common.scss';

// pages
import Page1 from './page1/index';
import Page2 from './page2/index';

class Application extends Component {
  render() {
    return (
      <div> 
        <div className="header">
          <Link to="page1">page1</Link>
          <Link to="page2">page2</Link>
        </div>  
        {this.props.children}
      </div>
    );
  }
}

const store = createStore(reducers, {}, applyMiddleware(thunk));

render((
  <Provider store={store}>
    <Router history={browserHistory}>
      <Route path="/" component={Application}>
        <IndexRoute component={Page1}/>
        <Route path="page1" component={Page1}></Route>
        <Route path="page2" component={Page2}></Route>
      </Route>
    </Router>
  </Provider>
), document.getElementById('app'));
{'fraction_non_alphanumeric': 0.15962837837837837, 'fraction_numerical': 0.01097972972972973, 'mean_word_length': 3.2916666666666665, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1628917', 'n_tokens_mistral': 714, 'n_tokens_neox': 706, 'n_words': 190}