<commit_before>import ActivitiesProgressReport from '../components/progress_reports/activities_progress_report.jsx'
import StandardsAllClassroomsProgressReport from '../components/progress_reports/standards_all_classrooms_progress_report.jsx'
import StandardsClassroomStudentsProgressReport from '../components/progress_reports/standards_classroom_students_progress_report.jsx'
import StandardsTopicsProgressReport from '../components/progress_reports/standards_topics_progress_report.jsx'
import StandardsClassroomTopicsProgressReport from '../components/progress_reports/standards_classroom_topics_progress_report.jsx'
import StandardsTopicStudentsProgressReport from '../components/progress_reports/standards_topic_students_progress_report.jsx'
import ConceptsStudentsProgressReport from '../components/progress_reports/concepts_students_progress_report.jsx'
import ConceptsConceptsProgressReport from '../components/progress_reports/concepts_concepts_progress_report.jsx'
import PremiumBannerBuilder from '../components/scorebook/premium_banners/premium_banner_builder'
import LandingPageContainer from './LandingPageContainer.jsx'
import ActivitiesScoresByClassroomProgressReport from '../components/progress_reports/activities_scores_by_classroom_progress_report.jsx'
import StudentOverview from '../components/progress_reports/student_overview.jsx'
import $ from 'jquery'
import _ from 'underscore'
import React from 'react'
import ReactDOM from 'react-dom'
require('../../../assets/styles/app-variables.scss')


var renderRightComponentHack = function() {
  var ele = $('.student-reports-subnav.tab-subnavigation-wrapper');
  let path = window.location.pathname;
  let shouldHaveBanner = !path.includes('/landing_page') && !path.includes('diagnostic_report');

  if (ele.length > 0 && shouldHaveBanner) {
    ReactDOM.render(React.createElement(PremiumBannerBuilder), $(ele[0]).next()[0]);
  }

  var progressReportMapping = {
    '.progress-reports-activities': ActivitiesProgressReport,
    '.progress-reports-standards-classrooms': StandardsAllClassroomsProgressReport,
    '.progress-reports-standards-classroom-students': StandardsClassroomStudentsProgressReport,
    '.progress-reports-standards-topics': StandardsTopicsProgressReport,
    '.progress-reports-standards-classroom-topics': StandardsClassroomTopicsProgressReport,
    '.progress-reports-standards-topic-students': StandardsTopicStudentsProgressReport,
    '.progress-reports-concepts-students': ConceptsStudentsProgressReport,
    '.progress-reports-concepts-concepts': ConceptsConceptsProgressReport,
    '.progress-reports-landing-page-container': LandingPageContainer,
    '.progress-reports-activities-scores-by-classroom': ActivitiesScoresByClassroomProgressReport,
    '.progress-reports-student-overview': StudentOverview,
  };

  _.each(progressReportMapping, function(component, rootNodeSelector) {
    var $el = $(rootNodeSelector);
    if ($el.length) {
      $.get('/teachers/classrooms/premium.json').done(function(data) {
        var props = {
          sourceUrl: $el.data('url'),
          premiumStatus: data.hasPremium
        };
        ReactDOM.render(React.createElement(component, props), $el[0]);
      });
    }
  });
};

export default React.createClass({

  componentDidMount: function(){
   renderRightComponentHack();
  },


  render: function() {
    return (
      <span/>
    );
   }
 });
<commit_msg>progress-reports-real-time class should map to the RealTimeProgressReport controller (doesn't exist yet); modifications in client/app/bundles/Teacher/containers/ProgressReportIndex.jsx<commit_after>import ActivitiesProgressReport from '../components/progress_reports/activities_progress_report.jsx'
import StandardsAllClassroomsProgressReport from '../components/progress_reports/standards_all_classrooms_progress_report.jsx'
import StandardsClassroomStudentsProgressReport from '../components/progress_reports/standards_classroom_students_progress_report.jsx'
import StandardsTopicsProgressReport from '../components/progress_reports/standards_topics_progress_report.jsx'
import StandardsClassroomTopicsProgressReport from '../components/progress_reports/standards_classroom_topics_progress_report.jsx'
import StandardsTopicStudentsProgressReport from '../components/progress_reports/standards_topic_students_progress_report.jsx'
import ConceptsStudentsProgressReport from '../components/progress_reports/concepts_students_progress_report.jsx'
import ConceptsConceptsProgressReport from '../components/progress_reports/concepts_concepts_progress_report.jsx'
import PremiumBannerBuilder from '../components/scorebook/premium_banners/premium_banner_builder'
import LandingPageContainer from './LandingPageContainer.jsx'
import ActivitiesScoresByClassroomProgressReport from '../components/progress_reports/activities_scores_by_classroom_progress_report.jsx'
import RealTimeProgressReport from '../components/progress_reports/real_time_progress_report.jsx'
import StudentOverview from '../components/progress_reports/student_overview.jsx'
import $ from 'jquery'
import _ from 'underscore'
import React from 'react'
import ReactDOM from 'react-dom'
require('../../../assets/styles/app-variables.scss')


var renderRightComponentHack = function() {
  var ele = $('.student-reports-subnav.tab-subnavigation-wrapper');
  let path = window.location.pathname;
  let shouldHaveBanner = !path.includes('/landing_page') && !path.includes('diagnostic_report');

  if (ele.length > 0 && shouldHaveBanner) {
    ReactDOM.render(React.createElement(PremiumBannerBuilder), $(ele[0]).next()[0]);
  }

  var progressReportMapping = {
    '.progress-reports-activities': ActivitiesProgressReport,
    '.progress-reports-standards-classrooms': StandardsAllClassroomsProgressReport,
    '.progress-reports-standards-classroom-students': StandardsClassroomStudentsProgressReport,
    '.progress-reports-standards-topics': StandardsTopicsProgressReport,
    '.progress-reports-standards-classroom-topics': StandardsClassroomTopicsProgressReport,
    '.progress-reports-standards-topic-students': StandardsTopicStudentsProgressReport,
    '.progress-reports-concepts-students': ConceptsStudentsProgressReport,
    '.progress-reports-concepts-concepts': ConceptsConceptsProgressReport,
    '.progress-reports-landing-page-container': LandingPageContainer,
    '.progress-reports-activities-scores-by-classroom': ActivitiesScoresByClassroomProgressReport,
    '.progress-reports-real-time': RealTimeProgressReport,
    '.progress-reports-student-overview': StudentOverview,
  };

  _.each(progressReportMapping, function(component, rootNodeSelector) {
    var $el = $(rootNodeSelector);
    if ($el.length) {
      $.get('/teachers/classrooms/premium.json').done(function(data) {
        var props = {
          sourceUrl: $el.data('url'),
          premiumStatus: data.hasPremium
        };
        ReactDOM.render(React.createElement(component, props), $el[0]);
      });
    }
  });
};

export default React.createClass({

  componentDidMount: function(){
   renderRightComponentHack();
  },


  render: function() {
    return (
      <span/>
    );
   }
 });

{'fraction_non_alphanumeric': 0.10982092893116956, 'fraction_numerical': 0.001119194180190263, 'mean_word_length': 5.893924783027965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '985667', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1918, 'n_words': 287}