<commit_before>import React from 'react';
import {
  get,
  isEmpty,
} from 'lodash';
import PropTypes from 'prop-types';
import {
  injectIntl,
  intlShape,
} from 'react-intl';

import { stripesShape } from '@folio/stripes/core';

import OpenLoans from '../../OpenLoans';
import Modals from '../Modals/Modals';
import OpenLoansSubHeader from '../OpenLoansSubHeader/OpenLoansSubHeader';
import getListDataFormatter from '../../helpers/getListDataFormatter';

class OpenLoansWithStaticData extends React.Component {
  static propTypes = {
    intl: intlShape.isRequired,
    stripes: stripesShape.isRequired,
    user: PropTypes.shape({
      id: PropTypes.string.isRequired,
    }).isRequired,
    activeLoan: PropTypes.string,
    loans: PropTypes.arrayOf(PropTypes.object).isRequired,
    patronBlocks: PropTypes.arrayOf(PropTypes.object).isRequired,
    requestRecords: PropTypes.arrayOf(PropTypes.object).isRequired,
    visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
    possibleColumns: PropTypes.arrayOf(PropTypes.string).isRequired,
    resources: PropTypes.object.isRequired,
    patronGroup: PropTypes.object.isRequired,
    checkedLoans: PropTypes.object.isRequired,
    requestCounts: PropTypes.object.isRequired,
    allChecked: PropTypes.bool.isRequired,
    patronBlockedModal: PropTypes.bool.isRequired,
    changeDueDateDialogOpen: PropTypes.bool.isRequired,
    toggleAll: PropTypes.func.isRequired,
    toggleItem: PropTypes.func.isRequired,
    buildRecords: PropTypes.func.isRequired,
    toggleColumn: PropTypes.func.isRequired,
    renewSelected: PropTypes.func.isRequired,
    isLoanChecked: PropTypes.func.isRequired,
    getLoanPolicy: PropTypes.func.isRequired,
    handleOptionsChange: PropTypes.func.isRequired,
    openPatronBlockedModal: PropTypes.func.isRequired,
    showChangeDueDateDialog: PropTypes.func.isRequired,
    hideChangeDueDateDialog: PropTypes.func.isRequired,
    onClosePatronBlockedModal: PropTypes.func.isRequired,
    feeFineCount: PropTypes.number,
    history: PropTypes.object,
    match: PropTypes.object,
  };

  setFormatters() {
    const {
      intl: { formatMessage },
      toggleItem,
      isLoanChecked,
      requestRecords,
      requestCounts,
      resources,
      getLoanPolicy,
      handleOptionsChange,
      stripes,
      feeFineCount,
    } = this.props;<commit_msg>feeFineCount is a function not a number<commit_after>import React from 'react';
import {
  get,
  isEmpty,
} from 'lodash';
import PropTypes from 'prop-types';
import {
  injectIntl,
  intlShape,
} from 'react-intl';

import { stripesShape } from '@folio/stripes/core';

import OpenLoans from '../../OpenLoans';
import Modals from '../Modals/Modals';
import OpenLoansSubHeader from '../OpenLoansSubHeader/OpenLoansSubHeader';
import getListDataFormatter from '../../helpers/getListDataFormatter';

class OpenLoansWithStaticData extends React.Component {
  static propTypes = {
    intl: intlShape.isRequired,
    stripes: stripesShape.isRequired,
    user: PropTypes.shape({
      id: PropTypes.string.isRequired,
    }).isRequired,
    activeLoan: PropTypes.string,
    loans: PropTypes.arrayOf(PropTypes.object).isRequired,
    patronBlocks: PropTypes.arrayOf(PropTypes.object).isRequired,
    requestRecords: PropTypes.arrayOf(PropTypes.object).isRequired,
    visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
    possibleColumns: PropTypes.arrayOf(PropTypes.string).isRequired,
    resources: PropTypes.object.isRequired,
    patronGroup: PropTypes.object.isRequired,
    checkedLoans: PropTypes.object.isRequired,
    requestCounts: PropTypes.object.isRequired,
    allChecked: PropTypes.bool.isRequired,
    patronBlockedModal: PropTypes.bool.isRequired,
    changeDueDateDialogOpen: PropTypes.bool.isRequired,
    toggleAll: PropTypes.func.isRequired,
    toggleItem: PropTypes.func.isRequired,
    buildRecords: PropTypes.func.isRequired,
    toggleColumn: PropTypes.func.isRequired,
    renewSelected: PropTypes.func.isRequired,
    isLoanChecked: PropTypes.func.isRequired,
    getLoanPolicy: PropTypes.func.isRequired,
    handleOptionsChange: PropTypes.func.isRequired,
    openPatronBlockedModal: PropTypes.func.isRequired,
    showChangeDueDateDialog: PropTypes.func.isRequired,
    hideChangeDueDateDialog: PropTypes.func.isRequired,
    onClosePatronBlockedModal: PropTypes.func.isRequired,
    feeFineCount: PropTypes.func.isRequired,
    history: PropTypes.object,
    match: PropTypes.object,
  };

  setFormatters() {
    const {
      intl: { formatMessage },
      toggleItem,
      isLoanChecked,
      requestRecords,
      requestCounts,
      resources,
      getLoanPolicy,
      handleOptionsChange,
      stripes,
      feeFineCount,
    } = this.props;
{'fraction_non_alphanumeric': 0.098550115570498, 'fraction_numerical': 0.0, 'mean_word_length': 4.265486725663717, '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': '1094341', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1428, 'n_words': 251}