<commit_before>import React from 'react'
import SkillVideo from './SkillVideo'


export default React.createClass({
  props: {
    videos: React.PropTypes.array.isRequired,
    onUpvote: React.PropTypes.func.isRequired,
    onDownvote: React.PropTypes.func.isRequired
  },
  getInitialState () {
    return {
      currentTab: "tutorial"
    }
  },
  render () {
    const videos = (this.props.videos || [])
      .filter(elem => {
        return elem.type === this.state.currentTab
      })
      .sort((a, b) => a.votes < b.votes)
      .map(elem => {
        return <SkillVideo key={elem.id}
                    id={elem.id}
                    url={elem.url}
                    votes={elem.votes}
                    onUpvote={this.props.onUpvote}
                    onDownvote={this.props.onDownvote} />
    })

    return (
      <div className="tab">
      <button onClick={() => this.setState({currentTab:"tutorial"})}>
        Tutorials
      </button>
        {videos}
      </div>
    )
  }
})<commit_msg>Remove showcase references in Tab<commit_after>import React from 'react'
import SkillVideo from './SkillVideo'


export default React.createClass({
  props: {
    videos: React.PropTypes.array.isRequired,
    onUpvote: React.PropTypes.func.isRequired,
    onDownvote: React.PropTypes.func.isRequired
  },
  render () {
    const videos = (this.props.videos || [])
      .sort((a, b) => a.votes < b.votes)
      .map(elem => {
        return <SkillVideo key={elem.id}
                    id={elem.id}
                    url={elem.url}
                    votes={elem.votes}
                    onUpvote={this.props.onUpvote}
                    onDownvote={this.props.onDownvote} />
    })

    return (
      <div className="tab">
        {videos}
      </div>
    )
  }
})
{'fraction_non_alphanumeric': 0.14006696428571427, 'fraction_numerical': 0.0, 'mean_word_length': 1.901294498381877, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '6850472', 'n_tokens_mistral': 577, 'n_tokens_neox': 561, 'n_words': 97}