<commit_before><div id="mainPanelBody" class="panel-collapse collapse in">
  <div class="panel-body">
    <div class="panel panel-default mainPanelPanel">
      
      <scorecard-two-results><</scorecard-two-results>

      <!--START CATEGORY PANELS -->
      <div ng-repeat="currentCategory in categories"
        id="catAccordion{{$index}}" class="panel-group category">
        <!-- ng-show="currentCategory.categoryRubrics.length > 0" -->
        <div id="{{currentCategory.categoryName}}"
          class="panel panel-primary removeBorder">

            <div ng-class="getGradeClassForCategory('panel-heading categoryPanelHeading', 
            currentCategory.categoryGrade, currentCategory.failingConformance)" 
                 class="panel-heading categoryPanelHeading" style="border-radius: 0px">
            <h2 class="panel-title">
              <a data-toggle="collapse" data-parent="#catAccordion{{$index}}" 
                href="#scorecardCategoryData{{$index}}">{{currentCategory.categoryName}}</a>
              <span class="pull-right numberOfIssuesHeader">{{ currentCategory.numberOfIssues > 0 ? 'Number of Issues' : ''}}</span>                
              <!--<span ng-class="scoringContextSubRoutine('categoryGrade pull-right label label-', currentCategory.categoryGrade, 'A')" 
                class="categoryGrade pull-right label">{{currentCategory.categoryGrade}}</span>-->
            </h2>            
          </div>

          <!--START REQUIREMENT PANELS -->
          <div id="scorecardCategoryData{{$index}}"
            class="panel-collapse collapse in">
            <div class="panel-body">

              <!-- 'rubric' is the unamed 'issue' object for each category -->
              <div ng-repeat="rubric in currentCategory.categoryRubrics" ng-show="rubric.numberOfIssues > 0" class="panel basicBorder">
                <div class="panel-heading requirementWrapper">
                  <h3 class="panel-title">
                    <a data-toggle="collapse"
                      href="#rubricBody{{$parent.$index}}-{{$index}}">Rule: {{rubric.rule}}</a>
                      <span class="pull-right" style="vertical-align: 0.17em">{{rubric.numberOfIssues}}</span>
                  </h3>
                </div>


                <!--START RUBRICS -->
<!--
                <div id="rubricBody{{$parent.$index}}-{{$index}}"
                  ng-class="rubric.actualPoints < rubric.maxPoints ? 'panel-collapse collapse in' : 'panel-collapse collapse out'">
-->
                <div id="rubricBody{{$parent.$index}}-{{$index}}" class="panel-collapse collapse out">
                  <div class="panel-body rubricColor">

                    <div class="row">
                        <div class="col-md-12">
                            <h3>Description</h3>
                            <span>{{rubric.description}}</span>
                        </div>
                    </div>

                    <!--START DETAILS-->
                      <div ng-show="rubric.numberOfIssues > 0">
                          <div class="row">
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='XML' ? detailsToShow='XML' : detailsToShow='NULL'">
                                    <!--<h3>{{calculatedValidationData.passedCertification ? "Improvements" : "Issues"}}</h3>-->
                                    <h3>{{false ? "Improvements" : "Issues"}}</h3>
                                  </a>
                              </div>
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='HL7' ? detailsToShow='HL7' : detailsToShow='NULL'"><h3>Best Practice</h3></a>
                              </div>
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='IG' ? detailsToShow='IG' : detailsToShow='NULL'"><h3>Standard</h3></a>
                              </div>                        
                          </div>
                          <div class="row">
                              <div class="col-md-12">

                                  <div ng-show="detailsToShow === 'XML'">
                                      <ol>
                                          <li ng-repeat="occurrence in rubric.issuesList">
                                              <table class="table table-striped table-condensed">
                                                  <thead>
                                                      <tr>
                                                          <th>
                                                              <a href ng-click="showSnippet = !showSnippet">XML at line number {{occurrence.lineNumber}}</a>
                                                          </th>
                                                      </tr>
                                                  </thead>
                                                  <tbody ng-show="showSnippet">
                                                      <tr>
                                                          <td>{{occurrence.xmlString}}</td><commit_msg>Ensure 'Issues' selection in each rubric is selected/expanded by default<commit_after><div id="mainPanelBody" class="panel-collapse collapse in">
  <div class="panel-body">
    <div class="panel panel-default mainPanelPanel">
      
      <scorecard-two-results><</scorecard-two-results>

      <!--START CATEGORY PANELS -->
      <div ng-repeat="currentCategory in categories"
        id="catAccordion{{$index}}" class="panel-group category">
        <!-- ng-show="currentCategory.categoryRubrics.length > 0" -->
        <div id="{{currentCategory.categoryName}}"
          class="panel panel-primary removeBorder">

            <div ng-class="getGradeClassForCategory('panel-heading categoryPanelHeading', 
            currentCategory.categoryGrade, currentCategory.failingConformance)" 
                 class="panel-heading categoryPanelHeading" style="border-radius: 0px">
            <h2 class="panel-title">
              <a data-toggle="collapse" data-parent="#catAccordion{{$index}}" 
                href="#scorecardCategoryData{{$index}}">{{currentCategory.categoryName}}</a>
              <span class="pull-right numberOfIssuesHeader">{{ currentCategory.numberOfIssues > 0 ? 'Number of Issues' : ''}}</span>                
              <!--<span ng-class="scoringContextSubRoutine('categoryGrade pull-right label label-', currentCategory.categoryGrade, 'A')" 
                class="categoryGrade pull-right label">{{currentCategory.categoryGrade}}</span>-->
            </h2>            
          </div>

          <!--START REQUIREMENT PANELS -->
          <div id="scorecardCategoryData{{$index}}"
            class="panel-collapse collapse in">
            <div class="panel-body">

              <!-- 'rubric' is the unamed 'issue' object for each category -->
              <div ng-repeat="rubric in currentCategory.categoryRubrics" ng-show="rubric.numberOfIssues > 0" class="panel basicBorder">
                <div class="panel-heading requirementWrapper">
                  <h3 class="panel-title">
                    <a data-toggle="collapse"
                      href="#rubricBody{{$parent.$index}}-{{$index}}">Rule: {{rubric.rule}}</a>
                      <span class="pull-right" style="vertical-align: 0.17em">{{rubric.numberOfIssues}}</span>
                  </h3>
                </div>


                <!--START RUBRICS -->
<!--
                <div id="rubricBody{{$parent.$index}}-{{$index}}"
                  ng-class="rubric.actualPoints < rubric.maxPoints ? 'panel-collapse collapse in' : 'panel-collapse collapse out'">
-->
                <div id="rubricBody{{$parent.$index}}-{{$index}}" class="panel-collapse collapse out">
                  <div class="panel-body rubricColor">

                    <div class="row">
                        <div class="col-md-12">
                            <h3>Description</h3>
                            <span>{{rubric.description}}</span>
                        </div>
                    </div>

                    <!--START DETAILS-->
                      <div ng-show="rubric.numberOfIssues > 0" ng-init="detailsToShow='XML'">
                          <div class="row">
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='XML' ? detailsToShow='XML' : detailsToShow='NULL'"><h3>Issues</h3></a>
                              </div>
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='HL7' ? detailsToShow='HL7' : detailsToShow='NULL'"><h3>Best Practice</h3></a>
                              </div>
                              <div class="col-md-4">
                                  <a href ng-click="detailsToShow!=='IG' ? detailsToShow='IG' : detailsToShow='NULL'"><h3>Standard</h3></a>
                              </div>                        
                          </div>
                          <div class="row">
                              <div class="col-md-12">

                                  <div ng-show="detailsToShow === 'XML'">
                                      <ol>
                                          <li ng-repeat="occurrence in rubric.issuesList">
                                              <table class="table table-striped table-condensed">
                                                  <thead>
                                                      <tr>
                                                          <th>
                                                              <a href ng-click="showSnippet = !showSnippet">XML at line number {{occurrence.lineNumber}}</a>
                                                          </th>
                                                      </tr>
                                                  </thead>
                                                  <tbody ng-show="showSnippet">
                                                      <tr>
                                                          <td>{{occurrence.xmlString}}</td>
{'fraction_non_alphanumeric': 0.13378023899737687, 'fraction_numerical': 0.005829204313611192, 'mean_word_length': 1.2466171977302487, 'pattern_counts': {'":': 0, '<': 182, '<?xml version=': 0, '>': 186, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 67, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4115022', 'n_tokens_mistral': 2517, 'n_tokens_neox': 2334, 'n_words': 420}