<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import _ from 'lodash';
import * as InsightsPropTypes from '../helpers/InsightsPropTypes';
import {toMomentFromTimestamp} from '../helpers/toMoment';
import PerDistrictContainer from '../components/PerDistrictContainer';
import LightProfileHeader from './LightProfileHeader';
import LightProfileTab, {LightShoutNumber} from './LightProfileTab';
import AttendanceDetails from './AttendanceDetails';
import ElaDetails from './ElaDetails';
import MathDetails from './MathDetails';
import LightNotesDetails from './LightNotesDetails';
import LightServiceDetails from './LightServiceDetails';
import LightNotesHelpContext from './LightNotesHelpContext';
import StudentSectionsRoster from './StudentSectionsRoster';
import {tags} from './lightTagger';


// Prototype of profile v3
export default class LightProfilePage extends React.Component {
  countEventsBetween(events, daysBack) {
    const {nowMomentFn} = this.props;
    const startMoment = nowMomentFn().startOf('day');
    const endMoment = startMoment.clone().subtract(daysBack, 'days');
    return countEventsBetween(events, startMoment, endMoment);
  }

  onColumnClicked(columnKey) {
    this.props.actions.onColumnClicked(columnKey);
  }

  render() {
    const {student, districtKey} = this.props;<commit_msg>Remove horizontal scrollbars from profile v3<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import _ from 'lodash';
import {updateGlobalStylesToRemoveHorizontalScrollbars} from '../helpers/globalStylingWorkarounds';
import * as InsightsPropTypes from '../helpers/InsightsPropTypes';
import {toMomentFromTimestamp} from '../helpers/toMoment';
import PerDistrictContainer from '../components/PerDistrictContainer';
import LightProfileHeader from './LightProfileHeader';
import LightProfileTab, {LightShoutNumber} from './LightProfileTab';
import AttendanceDetails from './AttendanceDetails';
import ElaDetails from './ElaDetails';
import MathDetails from './MathDetails';
import LightNotesDetails from './LightNotesDetails';
import LightServiceDetails from './LightServiceDetails';
import LightNotesHelpContext from './LightNotesHelpContext';
import StudentSectionsRoster from './StudentSectionsRoster';
import {tags} from './lightTagger';


// Prototype of profile v3
export default class LightProfilePage extends React.Component {
  componentDidMount() {
    updateGlobalStylesToRemoveHorizontalScrollbars();
  }

  countEventsBetween(events, daysBack) {
    const {nowMomentFn} = this.props;
    const startMoment = nowMomentFn().startOf('day');
    const endMoment = startMoment.clone().subtract(daysBack, 'days');
    return countEventsBetween(events, startMoment, endMoment);
  }

  onColumnClicked(columnKey) {
    this.props.actions.onColumnClicked(columnKey);
  }

  render() {
    const {student, districtKey} = this.props;
{'fraction_non_alphanumeric': 0.10863697705802969, 'fraction_numerical': 0.0010121457489878543, 'mean_word_length': 6.076372315035799, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2766017', 'n_tokens_mistral': 798, 'n_tokens_neox': 785, 'n_words': 214}