<commit_before>import React from 'react';

function Card({ gameTime, homeTeamAbbreviation, awayTeamAbbreviation, homeScore, awayScore, innings }) {
  return (
    <div className="scorecard">
      <div className="card text-center boardcard">
        <div className="card-header boardheader">
          <i className="fa fa-star" aria-hidden="true"></i>
            { gameTime }
          </div>
          <div className="card-block">
          <h3 className="card-title">{ awayTeamAbbreviation } @ { homeTeamAbbreviation }</h3>
          <h2 className="card-title">{ awayScore } - { homeScore }</h2>
          { innings.map(inning => {
            return <p> {inning['@number']}: {inning.awayScore}-{inning.homeScore}</p>
            })
          }
          <div className="card-footer boardfooter">
              <i className="fa fa-commenting-o" aria-hidden="true"></i>
          </div>
        </div>
      </div>
    </div>
  )
}

export default Card;<commit_msg>use switch function whether innings null or not<commit_after>import React from 'react';

function Card({ gameTime, homeTeamAbbreviation, awayTeamAbbreviation, homeScore, awayScore, innings, isInProgress }) {

  return (
    <div className="scorecard">
      <div className="card text-center boardcard">
        <div className="card-header boardheader">
          <i className="fa fa-star" aria-hidden="true"></i>
            { gameTime }
          </div>
          <div className="card-block">
          <h3 className="card-title">{ awayTeamAbbreviation } @ { homeTeamAbbreviation }</h3>
          <h2 className="card-title">{ awayScore } - { homeScore }</h2>
          
          {(() => {
            switch (innings) {
              case null: return ;
              default:  return innings.map((inning, index) => {
                  return <p key={index}> {inning['@number']}: {inning.awayScore}-{inning.homeScore}</p>
                });
            }
          })()}
          <div className="card-footer boardfooter">
              <i className="fa fa-commenting-o" aria-hidden="true"></i>
          </div>
        </div>
      </div>
    </div>
  )
}

export default Card;
{'fraction_non_alphanumeric': 0.15130353817504655, 'fraction_numerical': 0.0037243947858473, 'mean_word_length': 2.2267267267267266, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 46, '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': '4518401', 'n_tokens_mistral': 645, 'n_tokens_neox': 620, 'n_words': 134}