<commit_before>import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import StudentsList from 'components/Resource/StudentsList';
import {fetchStudents} from '../actions';
import _get from 'lodash/object/get';

export class Resource extends React.Component {
  render () {
    console.log(_get(this.props.resource.students, 'payload'));

    return (
      <StudentsList {...this.props} loading={_get(this.props.resource.students, 'meta.isLoading')} dataSource={_get(this.props.resource.students, 'payload.data.attributes.data')}/>
    )
  }
}

const mapStateToProps = (state) => {
  return {
    resource: state.resource
  }
}
const mapDispatchToProps = {
  fetchStudents
}

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Resource)<commit_msg>remove usless code<commit_after>import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import StudentsList from 'components/Resource/StudentsList';
import {fetchStudents} from '../actions';
import _get from 'lodash/object/get';

export class Resource extends React.Component {
  render () {
    return (
      <StudentsList {...this.props} loading={_get(this.props.resource.students, 'meta.isLoading')} dataSource={_get(this.props.resource.students, 'payload.data.attributes.data')}/>
    )
  }
}

const mapStateToProps = (state) => {
  return {
    resource: state.resource
  }
}
const mapDispatchToProps = {
  fetchStudents
}

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Resource)
{'fraction_non_alphanumeric': 0.12849872773536897, 'fraction_numerical': 0.0, 'mean_word_length': 4.699275362318841, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2001558', 'n_tokens_mistral': 487, 'n_tokens_neox': 474, 'n_words': 107}