<commit_before>import React from 'react';
import _ from 'underscore';
import OverviewMini from './overview_mini';
import PremiumMini from './premium_mini';
import TeacherGuide from '../teacher_guide/teacher_guide';
import BetaMini from './beta_mini.jsx';
import NewTools from './new_tools_mini.jsx';
import QuillLessonsAnnouncement from './quill_lessons_announcement_mini.jsx';
import PremiumPromo from './premium_promo.jsx';
import LessonsList from './lessons_list.jsx';
import DiagnosticMini from './diagnostic_mini.jsx'

export default React.createClass({
  propTypes: {
    data: React.PropTypes.any,
  },

  getInitialState() {
    return { displayTeacherGuide: true, };
  },

  hideTeacherGuide() {
    this.setState({ displayTeacherGuide: false, });
  },

  showTeacherGuide() {
    this.setState({ displayTeacherGuide: true, });
  },

  overviewMinis() {
    return _.map(this.props.data, overviewObj => <OverviewMini overviewObj={overviewObj} key={overviewObj.header} />);
  },

  betaMini() {
    if (this.props.flag === 'beta') {
      return <BetaMini key="beta-mini" />;
    }
  },

  teacherGuide() {
    if (this.state.displayTeacherGuide) {
      return <TeacherGuide dashboardMini key="teacher-guide-displayed" hideTeacherGuide={this.hideTeacherGuide} isDisplayed={false} />;
    }
  },

  hasPremium() {
    if (this.props.premium === 'locked') {
      return <PremiumPromo key="promo" />;
    } else if ((this.props.premium === 'none') || (this.props.premium === null)) {
      return <PremiumMini />;
    }
  },

  announcementMini() {
    const announcements = [];
    announcements.push(<QuillLessonsAnnouncement key="lessons-announcement" />);
    return announcements;
  },

  lessonsList() {
    return <LessonsList />;
  },

  diagnosticMini() {
    return <DiagnosticMini /><commit_msg>remove beta mini from dashboard overview<commit_after>import React from 'react';
import _ from 'underscore';
import OverviewMini from './overview_mini';
import PremiumMini from './premium_mini';
import TeacherGuide from '../teacher_guide/teacher_guide';
import BetaMini from './beta_mini.jsx';
import NewTools from './new_tools_mini.jsx';
import QuillLessonsAnnouncement from './quill_lessons_announcement_mini.jsx';
import PremiumPromo from './premium_promo.jsx';
import LessonsList from './lessons_list.jsx';
import DiagnosticMini from './diagnostic_mini.jsx'

export default React.createClass({
  propTypes: {
    data: React.PropTypes.any,
  },

  getInitialState() {
    return { displayTeacherGuide: true, };
  },

  hideTeacherGuide() {
    this.setState({ displayTeacherGuide: false, });
  },

  showTeacherGuide() {
    this.setState({ displayTeacherGuide: true, });
  },

  overviewMinis() {
    return _.map(this.props.data, overviewObj => <OverviewMini overviewObj={overviewObj} key={overviewObj.header} />);
  },

  betaMini() {
    if (this.props.flag === 'beta') {
      // return <BetaMini key="beta-mini" />;
    }
  },

  teacherGuide() {
    if (this.state.displayTeacherGuide) {
      return <TeacherGuide dashboardMini key="teacher-guide-displayed" hideTeacherGuide={this.hideTeacherGuide} isDisplayed={false} />;
    }
  },

  hasPremium() {
    if (this.props.premium === 'locked') {
      return <PremiumPromo key="promo" />;
    } else if ((this.props.premium === 'none') || (this.props.premium === null)) {
      return <PremiumMini />;
    }
  },

  announcementMini() {
    const announcements = [];
    announcements.push(<QuillLessonsAnnouncement key="lessons-announcement" />);
    return announcements;
  },

  lessonsList() {
    return <LessonsList />;
  },

  diagnosticMini() {
    return <DiagnosticMini />
{'fraction_non_alphanumeric': 0.14715536105032823, 'fraction_numerical': 0.0, 'mean_word_length': 3.948579161028417, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '2144284', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1175, 'n_words': 229}