<commit_before>import React from 'react';
import {Switch, Route} from 'react-router-dom';

import DashboardOverview from './dashboard_overview.jsx';
import SchoolwideAbsences from './absences_dashboard/schoolwide_absences.jsx';
import SchoolwideTardies from './tardies_dashboard/schoolwide_tardies.jsx';

export default React.createClass({
  displayName: 'SchoolAdministratorDashboards',

  propTypes: {
    serializedData: React.PropTypes.object.isRequired
  },

  render: function() {
    return(
      <Switch>
        <Route exact path="/" render={ () => <DashboardOverview />} />
        <Route path="/absences_dashboard" render={ () => <SchoolwideAbsences dashboardStudents={this.props.serializedData.students}/>} />
        <Route path="/tardies_dashboard" render={ () => <SchoolwideTardies dashboardStudents={this.props.serializedData.students}/>} />
      </Switch>);
  }
});<commit_msg>convert SchoolAdministratorDashboards.jsx to es6 stateless function<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import {Switch, Route} from 'react-router-dom';

import DashboardOverview from './dashboard_overview.jsx';
import SchoolwideAbsences from './absences_dashboard/schoolwide_absences.jsx';
import SchoolwideTardies from './tardies_dashboard/schoolwide_tardies.jsx';

export default function SchoolAdministratorDashboards ( {serializedData} ) {
  const {students} = serializedData;
  return(
  <Switch>
    <Route exact path="/" render={ () => <DashboardOverview />} />
    <Route path="/absences_dashboard" render={ () => <SchoolwideAbsences dashboardStudents={students}/>} />
    <Route path="/tardies_dashboard" render={ () => <SchoolwideTardies dashboardStudents={students}/>} />
  </Switch>);
}

SchoolAdministratorDashboards.propTypes = {
  serializedData: PropTypes.object.isRequired
};
{'fraction_non_alphanumeric': 0.13676148796498905, 'fraction_numerical': 0.0005470459518599562, 'mean_word_length': 5.440140845070423, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, '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': '1470312', 'n_tokens_mistral': 552, 'n_tokens_neox': 541, 'n_words': 108}