<commit_before>import React from 'react';
import { connect } from 'react-redux';

import backendServices from 'platform/user/profile/constants/backendServices';
import DowntimeNotification, {
  externalServices,
} from 'platform/monitoring/DowntimeNotification';
import { fetchRatedDisabilities, fetchTotalDisabilityRating } from '../actions';
import RequiredLoginView from 'platform/user/authorization/components/RequiredLoginView';
import RatedDisabilityView from '../components/RatedDisabilityView';

class RatedDisabilitiesApp extends React.Component {
  render() {
    const { ratedDisabilities } = this.props.ratedDisabilities;
    return (
      <>
        <RequiredLoginView
          authRequired={1}
          serviceRequired={backendServices.USER_PROFILE}
          user={this.props.user}
          loginUrl={this.props.loginUrl}
          verifyUrl={this.props.verifyUrl}
        >
          <DowntimeNotification
            appTitle="Rated Disabilities"
            dependencies={[externalServices.evss]}
          >
            <RatedDisabilityView
              fetchRatedDisabilities={this.props.fetchRatedDisabilities}
              ratedDisabilities={ratedDisabilities}
              user={this.props.user}
              totalDisabilityRating={this.props.totalDisabilityRating}
              loading={this.props.loading}
              error={this.props.error}
            />
          </DowntimeNotification>
        </RequiredLoginView><commit_msg>Added fetchTotalDisabilityRating to props (#11145)<commit_after>import React from 'react';
import { connect } from 'react-redux';

import backendServices from 'platform/user/profile/constants/backendServices';
import DowntimeNotification, {
  externalServices,
} from 'platform/monitoring/DowntimeNotification';
import { fetchRatedDisabilities, fetchTotalDisabilityRating } from '../actions';
import RequiredLoginView from 'platform/user/authorization/components/RequiredLoginView';
import RatedDisabilityView from '../components/RatedDisabilityView';

class RatedDisabilitiesApp extends React.Component {
  render() {
    const { ratedDisabilities } = this.props.ratedDisabilities;
    return (
      <>
        <RequiredLoginView
          authRequired={1}
          serviceRequired={backendServices.USER_PROFILE}
          user={this.props.user}
          loginUrl={this.props.loginUrl}
          verifyUrl={this.props.verifyUrl}
        >
          <DowntimeNotification
            appTitle="Rated Disabilities"
            dependencies={[externalServices.evss]}
          >
            <RatedDisabilityView
              fetchRatedDisabilities={this.props.fetchRatedDisabilities}
              ratedDisabilities={ratedDisabilities}
              user={this.props.user}
              fetchTotalDisabilityRating={this.props.fetchTotalDisabilityRating}
              totalDisabilityRating={this.props.totalDisabilityRating}
              loading={this.props.loading}
              error={this.props.error}
            />
          </DowntimeNotification>
        </RequiredLoginView>
{'fraction_non_alphanumeric': 0.09233791748526522, 'fraction_numerical': 0.0022920759659463, 'mean_word_length': 2.99869109947644, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5835929', 'n_tokens_mistral': 776, 'n_tokens_neox': 747, 'n_words': 120}