<commit_before>import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'react-redux';
import Main from '../components/Main';
import * as BlogActions from '../actions/BlogActions';


export default class BlogApp extends Component {
  render() {
    return (
      <Connector select={state => ({
          blogposts: state.blogposts
        })}>
        {this.renderChild}
      </Connector>
    );
  }

  renderChild({ blogposts, dispatch }) {
    const actions = bindActionCreators(BlogActions, dispatch);
    return (
      <div>
        <Main blogposts={blogposts} actions={actions} />
      </div>
    );
  }
}<commit_msg>Extrated select method as a separate function from Connector<commit_after>import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'react-redux';
import Main from '../components/Main';
import * as BlogActions from '../actions/BlogActions';

function select(state) {
  return { blogposts: state.blogposts}
}

export default class BlogApp extends Component {
  render() {
    return (
      <Connector select={select}>
        {this.renderChild}
      </Connector>
    );
  }

  renderChild({ blogposts, dispatch }) {
    const actions = bindActionCreators(BlogActions, dispatch);
    return (
      <div>
        <Main blogposts={blogposts} actions={actions} />
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.12939521800281295, 'fraction_numerical': 0.0, 'mean_word_length': 3.136627906976744, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '7280779', 'n_tokens_mistral': 406, 'n_tokens_neox': 399, 'n_words': 109}