<commit_before>'use strict';

// @flow

import React from 'react';

import type {FlowCoverageReportProps} from './html-report-page'; // eslint-disable-line import/no-unresolved

export default function FlowCoverageSummaryTable(props: FlowCoverageReportProps) {
  if (!props.coverageSummaryData) {
    throw new Error('Missing coverageSummaryData in props');
  }
  var summary = props.coverageSummaryData;
  var percent = summary.percent || NaN;
  var threshold = props.threshold || 80;
  var className = percent >= threshold ? 'positive' : 'negative';

  return (
    <table className="ui small celled table">
      <thead><commit_msg>fix: Fixed bug related to ignored custom threshold in the rendered HTML report<commit_after>'use strict';

// @flow

import React from 'react';

import type {FlowCoverageReportProps} from './html-report-page'; // eslint-disable-line import/no-unresolved

export default function FlowCoverageSummaryTable(props: FlowCoverageReportProps) {
  if (!props.coverageSummaryData) {
    throw new Error('Missing coverageSummaryData in props');
  }
  var summary = props.coverageSummaryData;
  var percent = summary.percent || NaN;
  var threshold = summary.threshold || 80;
  var className = percent >= threshold ? 'positive' : 'negative';

  return (
    <table className="ui small celled table">
      <thead>
{'fraction_non_alphanumeric': 0.1099476439790576, 'fraction_numerical': 0.0029917726252804786, 'mean_word_length': 4.551867219917012, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4883289', 'n_tokens_mistral': 382, 'n_tokens_neox': 362, 'n_words': 113}