<commit_before>import React, { PropTypes, Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as videoActions from '../actions/videoActions'

// Custom Components
import ListVideo from '../components/ListVideo.jsx'

@connect(state => state)
export default class ListVideoContainer extends Component{

  constructor(props, context) {
    super(props, context)
  }

  componentWillMount() {
    const { dispatch, viewStore } = this.props
    const actions = bindActionCreators(videoActions, dispatch)
    if(viewStore.view !== 'search')
      actions.fetchVideos(viewStore.view, 1)
  }<commit_msg>[ FIX ] limit fetch on scroll<commit_after>import React, { PropTypes, Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as videoActions from '../actions/videoActions'

// Custom Components
import ListVideo from '../components/ListVideo.jsx'

@connect(state => state)
export default class ListVideoContainer extends Component{

  constructor(props, context) {
    super(props, context)
  }

  componentWillMount() {
    const { dispatch, viewStore, videoStore } = this.props
    const actions = bindActionCreators(videoActions, dispatch)
    if(viewStore.view !== 'search' && !videoStore[ viewStore.view ])
      actions.fetchVideos(viewStore.view, 1)
  }
{'fraction_non_alphanumeric': 0.1140159767610748, 'fraction_numerical': 0.0014524328249818446, 'mean_word_length': 4.578947368421052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3206618', 'n_tokens_mistral': 393, 'n_tokens_neox': 384, 'n_words': 108}