<commit_before>/** @jsx React.DOM */

//= require constants
//= require dispatcher
//= require stores/full_page_news_feed_store

(function() {
  var NF = CONSTANTS.FULL_PAGE_NEWS_FEED;

  window.FullPageNewsFeed = React.createClass({
    getInitialState: function() {
      return {
        stories: null
      };
    },

    componentWillMount: function() {
      FullPageNewsFeedStore.addChangeListener(this.getStories);
      this.fetchNewsFeed(this.props.url);
    },

    fetchNewsFeed: _.debounce(function(url) {
      Dispatcher.dispatch({
        action: NF.ACTIONS.FETCH_STORIES,
        event: NF.EVENTS.STORIES_FETCHED,
        data: url
      });
    }, 1000),

    getStories: function() {
      this.setState({
        stories: DropdownNewsFeedStore.getStories(),
        actors: DropdownNewsFeedUsersStore.getUsers()
      });
    },

    moreStories: function() {
      var lastStory = this.state.stories[this.state.stories.length - 1];

      Dispatcher.dispatch({
        action: NF.ACTIONS.FETCH_MORE_STORIES,
        event: NF.EVENTS.STORIES_FETCHED,
        data: this.props.url + '?top_id=' + lastStory.id
      });<commit_msg>Fix FullPageNewsFeed<commit_after>/** @jsx React.DOM */

//= require constants
//= require dispatcher
//= require stores/full_page_news_feed_store

(function() {
  var NF = CONSTANTS.FULL_PAGE_NEWS_FEED;

  window.FullPageNewsFeed = React.createClass({
    getInitialState: function() {
      return {
        stories: null
      };
    },

    componentWillMount: function() {
      FullPageNewsFeedStore.addChangeListener(this.getStories);
      this.fetchNewsFeed();
    },

    fetchNewsFeed: _.debounce(function() {
      Dispatcher.dispatch({
        action: NF.ACTIONS.FETCH_STORIES,
        event: NF.EVENTS.STORIES_FETCHED,
        data: this.props.url
      });
    }, 1000),

    getStories: function() {
      this.setState({
        stories: FullPageNewsFeedStore.getStories(),
        actors: FullPageNewsFeedUsersStore.getUsers()
      });
    },

    moreStories: function() {
      var lastStory = this.state.stories[this.state.stories.length - 1];

      Dispatcher.dispatch({
        action: NF.ACTIONS.FETCH_MORE_STORIES,
        event: NF.EVENTS.STORIES_FETCHED,
        data: this.props.url + '?top_id=' + lastStory.id
      });
{'fraction_non_alphanumeric': 0.12440191387559808, 'fraction_numerical': 0.004349717268377556, 'mean_word_length': 2.7337662337662336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4228234', 'n_tokens_mistral': 787, 'n_tokens_neox': 736, 'n_words': 113}