<commit_before>import React from 'react';
import {connect} from 'react-redux';
import NewPaula from './new-paula';

class MainComponent extends React.Component {
	render() {
		return <div>
			<h1>React/Redux demo</h1>
			<p>This is where your content goes. Paula is {this.props.paula}.</p>
			<NewPaula />
		</div>;
	}
}

export default connect((state, props) => ({
	//Select your state -> props mappings here
	paula: state.paula,
}))(MainComponent);<commit_msg>Use a beautiful shorthand for mapping state to props<commit_after>import React from 'react';
import {connect} from 'react-redux';
import NewPaula from './new-paula';

class MainComponent extends React.Component {
	render() {
		return <div>
			<h1>React/Redux demo</h1>
			<p>This is where your content goes. Paula is {this.props.paula}.</p>
			<NewPaula />
		</div>;
	}
}

export default connect(
	//Select your state -> props mappings here
	({paula}) => ({paula})
)(MainComponent);
{'fraction_non_alphanumeric': 0.1504237288135593, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 4.135869565217392, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '6239971', 'n_tokens_mistral': 341, 'n_tokens_neox': 313, 'n_words': 96}