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

import CollapsiblePanel from '../../common/components/CollapsiblePanel';
import DownloadLetterLink from '../components/DownloadLetterLink';
import VeteranBenefitSummaryLetter from './VeteranBenefitSummaryLetter';

import { letterContent } from '../utils/helpers';
import { AVAILABILITY_STATUSES, LETTER_TYPES } from '../utils/constants';

export class LetterList extends React.Component {
  render() {
    const downloadStatus = this.props.letterDownloadStatus;
    const letterItems = (this.props.letters || []).map((letter, index) => {
      let content;
      let letterTitle;
      let bslHelpInstructions;
      if (letter.letterType === LETTER_TYPES.benefitSummary) {
        letterTitle = 'Service Verification and Benefit Summary Letter';
        content = (<VeteranBenefitSummaryLetter/>);
        bslHelpInstructions = (
          <p>
            If your service period or disability status information is incorrect, please send us
            a message through VA’s <a target="_blank" href="https://iris.custhelp.com/app/ask">
            Inquiry Routing & Information System (IRIS)</a>. VA will respond within 5 business days.
          </p>
        );
      } else if (letter.letterType === LETTER_TYPES.proofOfService) {
        letterTitle = 'Proof of Service Card';
      } else {
        letterTitle = letter.name;
        content = letterContent[letter.letterType] || '';
      }

      return (
        <CollapsiblePanel
          panelName={letterTitle}
          key={`collapsiblePanel-${index}`}>
          <div>{content}</div>
          <DownloadLetterLink
            letterType={letter.letterType}
            letterName={letter.name}
            downloadStatus={downloadStatus[letter.letterType]}
            key={`download-link-${index}`}/>
          <div>{bslHelpInstructions}</div>
        </CollapsiblePanel>
      );
    });
<commit_msg>Fix specifying content<commit_after>import React from 'react';
import { connect } from 'react-redux';

import CollapsiblePanel from '../../common/components/CollapsiblePanel';
import DownloadLetterLink from '../components/DownloadLetterLink';
import VeteranBenefitSummaryLetter from './VeteranBenefitSummaryLetter';

import { letterContent } from '../utils/helpers';
import { AVAILABILITY_STATUSES, LETTER_TYPES } from '../utils/constants';

export class LetterList extends React.Component {
  render() {
    const downloadStatus = this.props.letterDownloadStatus;
    const letterItems = (this.props.letters || []).map((letter, index) => {
      let content;
      let letterTitle;
      let bslHelpInstructions;
      if (letter.letterType === LETTER_TYPES.benefitSummary) {
        letterTitle = 'Service Verification and Benefit Summary Letter';
        content = (<VeteranBenefitSummaryLetter/>);
        bslHelpInstructions = (
          <p>
            If your service period or disability status information is incorrect, please send us
            a message through VA’s <a target="_blank" href="https://iris.custhelp.com/app/ask">
            Inquiry Routing & Information System (IRIS)</a>. VA will respond within 5 business days.
          </p>
        );
      } else if (letter.letterType === LETTER_TYPES.proofOfService) {
        letterTitle = 'Proof of Service Card';
        content = letterContent[letter.letterType] || '';
      } else {
        letterTitle = letter.name;
        content = letterContent[letter.letterType] || '';
      }

      return (
        <CollapsiblePanel
          panelName={letterTitle}
          key={`collapsiblePanel-${index}`}>
          <div>{content}</div>
          <DownloadLetterLink
            letterType={letter.letterType}
            letterName={letter.name}
            downloadStatus={downloadStatus[letter.letterType]}
            key={`download-link-${index}`}/>
          <div>{bslHelpInstructions}</div>
        </CollapsiblePanel>
      );
    });

{'fraction_non_alphanumeric': 0.11721704058482481, 'fraction_numerical': 0.0005041593143433325, 'mean_word_length': 2.819056785370549, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '355828', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1050, 'n_words': 248}