<commit_before>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { BEACONS } from '../../constants/action_types'
import { loadNoise } from '../../actions/stream'
import StreamComponent from '../../components/streams/StreamComponent'
import { ZeroStream } from '../../components/zeros/Zeros'

const BEACON_VERSION = '1'

class Starred extends Component {

  static propTypes = {
    dispatch: PropTypes.func.isRequired,
    lastStarredBeaconVersion: PropTypes.string,
  }

  static preRender = (store) =>
    store.dispatch(loadNoise())

  componentWillMount() {
    const { lastStarredBeaconVersion } = this.props
    this.state = {
      isBeaconActive: lastStarredBeaconVersion !== BEACON_VERSION,
    }
  }

  onDismissZeroStream = () => {
    const { dispatch } = this.props
    this.setState({ isBeaconActive: false })
    dispatch({ type: BEACONS.LAST_STARRED_VERSION, payload: { version: BEACON_VERSION } })
  }

  renderZeroStream() {
    return (
      <ZeroStream emoji="star" onDismiss={ this.onDismissZeroStream }>
        When you Star someone their posts appear here. Star people to create a second stream.
      </ZeroStream>
    )
  }<commit_msg>Update Starred.js<commit_after>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { BEACONS } from '../../constants/action_types'
import { loadNoise } from '../../actions/stream'
import StreamComponent from '../../components/streams/StreamComponent'
import { ZeroStream } from '../../components/zeros/Zeros'

const BEACON_VERSION = '1'

class Starred extends Component {

  static propTypes = {
    dispatch: PropTypes.func.isRequired,
    lastStarredBeaconVersion: PropTypes.string,
  }

  static preRender = (store) =>
    store.dispatch(loadNoise())

  componentWillMount() {
    const { lastStarredBeaconVersion } = this.props
    this.state = {
      isBeaconActive: lastStarredBeaconVersion !== BEACON_VERSION,
    }
  }

  onDismissZeroStream = () => {
    const { dispatch } = this.props
    this.setState({ isBeaconActive: false })
    dispatch({ type: BEACONS.LAST_STARRED_VERSION, payload: { version: BEACON_VERSION } })
  }

  renderZeroStream() {
    return (
      <ZeroStream emoji="star" onDismiss={ this.onDismissZeroStream }>
       Star creators and communities to curate your second stream.
      </ZeroStream>
    )
  }
{'fraction_non_alphanumeric': 0.12275574112734865, 'fraction_numerical': 0.0008350730688935282, 'mean_word_length': 3.5293005671077506, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '4803232', 'n_tokens_mistral': 716, 'n_tokens_neox': 719, 'n_words': 167}