<commit_before><div class="container-fluid">

    <div id="scHeaderContainer">
      
        <div class="row scHeadingSummary">
            <div class="col-md-12">
                <h1 id="resultModalLabel">{{jsonData.results.finalGrade ? 'C-CDA ' + jsonData.results.docType : ''}} Scorecard For:</h1>
                <h2>{{ccdaUploadData.fileName}}</h2>
            </div>
        </div>
		
        <div id="topLevelResultsTable">
		
    		<div class="row">
    			<div class="col-md-4 scHeading">
    			   <h2>Scorecard Grade:</h2>
				   <h2 class="scHeaderDescriptionText">Scorecard Score:</h2>
				   <h2 class="scHeaderDescriptionText">Scorecard Issues:</h2>
				   <h2 class="scHeaderDescriptionText">{{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}:</h2>
    		       <h2 class="scHeaderDescriptionText">{{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}:</h2>				   
    			</div>
    			<div class="col-md-2 scHeading">
    			   <h2>{{jsonData.results.finalGrade ? jsonData.results.finalGrade : "Scoring..."}}</h2>
				   <h2 class="scHeaderDescriptionText">{{jsonData.results.finalGrade ? jsonData.results.finalNumericalGrade + " / 100" : "Scoring..."}}</h2>
				   <h2 class="scHeaderDescriptionText">{{jsonData.results.finalGrade ? jsonData.results.numberOfIssues : "Scoring..."}}</h2>
    			   <h2 class="scHeaderDescriptionText">
                      <a ng-if="igResults.totalErrorCount" href="javascript:void(0)"  
                      ng-click="jumpToReferenceInstanceTypeViaId(ReferenceInstanceTypeEnum.IG_CONFORMANCE)" 
                      title="Navigate to {{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}" 
                      aria-label="Navigate to {{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}">
                      {{jsonData.results.finalGrade ? igResults.totalErrorCount : ''}}
                      </a>
                      <span ng-show="!igResults.totalErrorCount">
                        {{jsonData.results.finalGrade ? "0" : "Processing..."}}
                      </span>                      
                   </h2>
    			   <h2 class="scHeaderDescriptionText">
                      <a ng-if="certResults.totalErrorCount" href="javascript:void(0)"  
                      ng-click="jumpToReferenceInstanceTypeViaId(ReferenceInstanceTypeEnum.CERTIFICATION_2015)"              
                      title="Navigate to {{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}" 
                      aria-label="Navigate to {{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}">
                      {{jsonData.results.finalGrade ? certResults.totalErrorCount : ''}}
                      </a>
                      <span ng-show="!certResults.totalErrorCount">
                        {{jsonData.results.finalGrade ? "0" : "Processing..."}}
                      </span>               
                   </h2>				   
    			</div>
    			<div class="col-md-6 scHeading" style="padding-top: 6px">
    			   <h3>
                     Your {{jsonData.ccdaDocumentType ? jsonData.ccdaDocumentType : "document"}} scored {{jsonData.results.finalGrade && jsonData.results.finalGrade === 'A' ? 'an' : 'a'}}
                     <b>{{jsonData.results.finalGrade ? jsonData.results.finalGrade : "?"}}</b> compared to an industry average of
                     <b>{{jsonData.results.finalGrade ? jsonData.results.industryAverageGrade : "?"}}</b>.
                   </h3>
                   <h4>
                     Industry average is the average of all grades for C-CDAs that have been scored by the ONC Scorecard. It is computed
                     on an on-going basis, since June 2016, when the Scorecard tool was first made available to users. Since
                     then, <b>{{jsonData.results.finalGrade ? jsonData.results.numberOfDocumentsScored : '?'}}</b> documents
                     have been graded by the ONC Scorecard.
                   </h4>                   
    			</div>
    		</div>
			
        </div> <!-- END topLevelResultsTable -->		                		
	
    </div> <!-- END scHeaderContainer -->    

    <summary></summary>

    <!-- Access to Detailed Results -->
    <div id="detailedResults" class="row" ng-show="!uploadDisplay.isLoading && !errorData.getJsonDataError">
        <div class="col-md-12"><commit_msg>Replace topLevelResults loading with animation only to avoid redundancy<commit_after><div class="container-fluid">

    <div id="scHeaderContainer">
      
        <div class="row scHeadingSummary">
            <div class="col-md-12">
                <h1 id="resultModalLabel">{{jsonData.results.finalGrade ? 'C-CDA ' + jsonData.results.docType : ''}} Scorecard For:</h1>
                <h2>{{ccdaUploadData.fileName}}</h2>
            </div>
        </div>
		
        <div id="topLevelResultsTable">
		
    		<div class="row">
    			<div class="col-md-4 scHeading">
    			   <h2>Scorecard Grade:</h2>
				   <h2 class="scHeaderDescriptionText">Scorecard Score:</h2>
				   <h2 class="scHeaderDescriptionText">Scorecard Issues:</h2>
				   <h2 class="scHeaderDescriptionText">{{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}:</h2>
    		       <h2 class="scHeaderDescriptionText">{{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}:</h2>				   
    			</div>
    			<div class="col-md-2 scHeading">
    			   <!--<h2>{{jsonData.results.finalGrade ? jsonData.results.finalGrade : "Scoring..."}}</h2>-->
                   <h2>
                    <img ng-if="!jsonData.results.finalGrade" 
                      src="images/validationSpinner.gif" alt="scorecard loading indicator" style="width: 30px; margin-top: -5px">
                    <span ng-if="jsonData.results.finalGrade">{{jsonData.results.finalGrade}}</span>
                   </h2>             
				   <!--<h2 class="scHeaderDescriptionText">{{jsonData.results.finalGrade ? jsonData.results.finalNumericalGrade + " / 100" : "Scoring..."}}</h2>-->
                   <h2 class="scHeaderDescriptionText">
                    <img ng-if="!jsonData.results.finalGrade" 
                      src="images/validationSpinner.gif" alt="scorecard loading indicator" style="width: 30px; margin-top: -5px">
                    <span ng-if="jsonData.results.finalGrade">{{jsonData.results.finalNumericalGrade + " / 100"}}</span>
                   </h2>        
				   <!--<h2 class="scHeaderDescriptionText">{{jsonData.results.finalGrade ? jsonData.results.numberOfIssues : "Scoring..."}}</h2>-->
                   <h2 class="scHeaderDescriptionText">
                    <img ng-if="!jsonData.results.finalGrade" 
                      src="images/validationSpinner.gif" alt="scorecard loading indicator" style="width: 30px; margin-top: -5px">
                    <span ng-if="jsonData.results.finalGrade">{{jsonData.results.numberOfIssues}}</span>
                   </h2>
    			   <h2 class="scHeaderDescriptionText">
                      <a ng-if="igResults.totalErrorCount" href="javascript:void(0)"  
                      ng-click="jumpToReferenceInstanceTypeViaId(ReferenceInstanceTypeEnum.IG_CONFORMANCE)" 
                      title="Navigate to {{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}" 
                      aria-label="Navigate to {{ReferenceInstanceTypeEnum.IG_CONFORMANCE}}">
                      {{jsonData.results.finalGrade ? igResults.totalErrorCount : ''}}
                      </a>
                      <!--<span ng-show="!igResults.totalErrorCount">
                        {{jsonData.results.finalGrade ? "0" : "Processing..."}}
                      </span>-->
                      <span ng-if="!igResults.totalErrorCount">
                        <img ng-if="!jsonData.results.finalGrade" 
                          src="images/validationSpinner.gif" alt="scorecard loading indicator" style="width: 30px; margin-top: -5px">
                        <span ng-if="jsonData.results.finalGrade">0</span>                
                      </span>
                   </h2>
    			   <h2 class="scHeaderDescriptionText">
                      <a ng-if="certResults.totalErrorCount" href="javascript:void(0)"  
                      ng-click="jumpToReferenceInstanceTypeViaId(ReferenceInstanceTypeEnum.CERTIFICATION_2015)"              
                      title="Navigate to {{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}" 
                      aria-label="Navigate to {{ReferenceInstanceTypeEnum.CERTIFICATION_2015}}">
                      {{jsonData.results.finalGrade ? certResults.totalErrorCount : ''}}
                      </a>
                      <!--<span ng-show="!certResults.totalErrorCount">
                        {{jsonData.results.finalGrade ? "0" : "Processing..."}}
                      </span>-->                      
                      <span ng-if="!certResults.totalErrorCount">
                        <img ng-if="!jsonData.results.finalGrade" 
                          src="images/validationSpinner.gif" alt="scorecard loading indicator" style="width: 30px; margin-top: -5px">
                        <span ng-if="jsonData.results.finalGrade">0</span>             
                      </span>
                   </h2>				   
    			</div>
    			<div class="col-md-6 scHeading" style="padding-top: 6px">
    			   <h3>
                     Your {{jsonData.ccdaDocumentType ? jsonData.ccdaDocumentType : "document"}} scored {{jsonData.results.finalGrade && jsonData.results.finalGrade === 'A' ? 'an' : 'a'}}
                     <b>{{jsonData.results.finalGrade ? jsonData.results.finalGrade : "?"}}</b> compared to an industry average of
                     <b>{{jsonData.results.finalGrade ? jsonData.results.industryAverageGrade : "?"}}</b>.
                   </h3>
                   <h4>
                     Industry average is the average of all grades for C-CDAs that have been scored by the ONC Scorecard. It is computed
                     on an on-going basis, since June 2016, when the Scorecard tool was first made available to users. Since
                     then, <b>{{jsonData.results.finalGrade ? jsonData.results.numberOfDocumentsScored : '?'}}</b> documents
                     have been graded by the ONC Scorecard.
                   </h4>                   
    			</div>
    		</div>
			
        </div> <!-- END topLevelResultsTable -->		                		
	
    </div> <!-- END scHeaderContainer -->    

    <summary></summary>

    <!-- Access to Detailed Results -->
    <div id="detailedResults" class="row" ng-show="!uploadDisplay.isLoading && !errorData.getJsonDataError">
        <div class="col-md-12">
{'fraction_non_alphanumeric': 0.1344091124822022, 'fraction_numerical': 0.014428096820123398, 'mean_word_length': 1.9088901159580343, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, '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': '804959', 'n_tokens_mistral': 3180, 'n_tokens_neox': 2815, 'n_words': 482}