<commit_before><div ng-if"$ctrl.canReview == false">
  <form class="settings">
    <table>
      <tr ng-if="$ctrl.featureFlags.qualityEnabled">
        <td>
          <label for="itemQuality" translate-attr="{ title: 'Settings.EnableAdvancedStatsHelp'}" translate="Settings.EnableAdvancedStats"></label>
        </td>
        <td>
          <input type="checkbox" id="itemQuality" ng-model="$ctrl.settings.itemQuality"/>
        </td>
      </tr>
      <tr ng-if="$ctrl.featureFlags.reviewsEnabled">
        <td>
          <label for="showReviews" translate-attr="{ title: 'Settings.ShowReviewsHelp'}" translate="Settings.ShowReviews"></label>
        </td>
        <td>
          <input type="checkbox" id="showReviews" ng-model="$ctrl.settings.showReviews"/>
        </td>
      </tr>
      <tr ng-if="$ctrl.featureFlags.reviewsEnabled">
        <td>
          <label for="allowIdPostToDtr" translate-attr="{ title: 'Settings.AllowIdPostToDtrHelp'}" translate="Settings.AllowIdPostToDtr"></label>
        </td>
        <td>
          <input type="checkbox" id="allowIdPostToDtr" ng-model="$ctrl.settings.allowIdPostToDtr"/>
        </td>
      </tr>
    </table>
</div>

<div ng-if="$ctrl.canReview" class="user-review--header">
  <span translate="DtrReview.YourReview"></span>
  <star-rating rating="$ctrl.item.userRating" on-rating-change="$ctrl.setRating(rating)" ng-blur="$ctrl.reviewBlur()"></star-rating>

  <span ng-show="$ctrl.expandReview">
    <span class="dim-button" ng-click="$ctrl.submitReview()" translate="DtrReview.Submit"></span>
    <span class="dim-button" ng-click="$ctrl.toggleEdit()" translate="DtrReview.Cancel"></span>
  </span>
</div>

<div ng-if="$ctrl.canReview" class="community-review--details" ng-show="$ctrl.expandReview">
  <textarea translate-attr="{ placeholder: 'DtrReview.Help' }"
            ng-model="$ctrl.item.userReview"
            ng-blur="$ctrl.reviewBlur()"></textarea>
  <div ng-if="$ctrl.procon" class="community-review--procon">
    <textarea translate-attr="{ placeholder: 'DtrReview.HelpPros' }"
              ng-model="$ctrl.item.userReviewPros"
              ng-blur="$ctrl.reviewBlur()"></textarea>
    <textarea translate-attr="{ placeholder: 'DtrReview.HelpCons' }"
              ng-model="$ctrl.item.userReviewCons"
              ng-blur="$ctrl.reviewBlur()"></textarea>
  </div>
</div>

<div ng-if="$ctrl.canReview" class="community-review--reviews" ng-hide="$ctrl.expandReview">
  <div ng-if="$ctrl.submitted"
       class="community-review--message"
       translate="DtrReview.ThankYou"></div>
  <div ng-if="!$ctrl.item.writtenReviews.length && !$ctrl.submitted"
       class="community-review--message"
       translate="DtrReview.NoReviews"></div>
  <div ng-if="$ctrl.procon" class="community-review--procon">
    <div>
      <div translate="DtrReview.Pros"></div>
      <div ng-repeat="pro in $ctrl.aggregate.pros" ng-bind='pro'></div>
    </div>
    <div>
      <div translate="DtrReview.Cons"></div>
      <div ng-repeat="pro in $ctrl.aggregate.cons" ng-bind='pro'></div>
    </div>
  </div>
  <div class="community-review" ng-repeat="review in $ctrl.item.writtenReviews">
    <div class="community-review--who">
      <star-rating rating="review.rating" read-only></star-rating>
      <div ng-bind="review.reviewer.displayName" ng-class="{'community-review--who__special': review.isHighlighted}"></div>
      <div ng-bind="review.timestamp | date:'mediumDate'"></div>
    </div>
    <div ng-bind="review.review"></div>
  </div>
</div>
<commit_msg>Nested ng-if's display if the condition is true.<commit_after><div ng-show="$ctrl.canReview == false">
  <form class="settings">
    <table >
      <tr ng-show="$ctrl.featureFlags.qualityEnabled">
        <td>
          <label for="itemQuality" translate-attr="{ title: 'Settings.EnableAdvancedStatsHelp'}" translate="Settings.EnableAdvancedStats"></label>
        </td>
        <td>
          <input type="checkbox" id="itemQuality" ng-model="$ctrl.settings.itemQuality"/>
        </td>
      </tr>
      <tr ng-show="$ctrl.featureFlags.reviewsEnabled">
        <td>
          <label for="showReviews" translate-attr="{ title: 'Settings.ShowReviewsHelp'}" translate="Settings.ShowReviews"></label>
        </td>
        <td>
          <input type="checkbox" id="showReviews" ng-model="$ctrl.settings.showReviews"/>
        </td>
      </tr>
      <tr ng-show="$ctrl.featureFlags.reviewsEnabled">
        <td>
          <label for="allowIdPostToDtr" translate-attr="{ title: 'Settings.AllowIdPostToDtrHelp'}" translate="Settings.AllowIdPostToDtr"></label>
        </td>
        <td>
          <input type="checkbox" id="allowIdPostToDtr" ng-model="$ctrl.settings.allowIdPostToDtr"/>
        </td>
      </tr>
    </table>
  </form>
</div>

<div ng-if="$ctrl.canReview" class="user-review--header">
  <span translate="DtrReview.YourReview"></span>
  <star-rating rating="$ctrl.item.userRating" on-rating-change="$ctrl.setRating(rating)" ng-blur="$ctrl.reviewBlur()"></star-rating>

  <span ng-show="$ctrl.expandReview">
    <span class="dim-button" ng-click="$ctrl.submitReview()" translate="DtrReview.Submit"></span>
    <span class="dim-button" ng-click="$ctrl.toggleEdit()" translate="DtrReview.Cancel"></span>
  </span>
</div>

<div ng-if="$ctrl.canReview" class="community-review--details" ng-show="$ctrl.expandReview">
  <textarea translate-attr="{ placeholder: 'DtrReview.Help' }"
            ng-model="$ctrl.item.userReview"
            ng-blur="$ctrl.reviewBlur()"></textarea>
  <div ng-if="$ctrl.procon" class="community-review--procon">
    <textarea translate-attr="{ placeholder: 'DtrReview.HelpPros' }"
              ng-model="$ctrl.item.userReviewPros"
              ng-blur="$ctrl.reviewBlur()"></textarea>
    <textarea translate-attr="{ placeholder: 'DtrReview.HelpCons' }"
              ng-model="$ctrl.item.userReviewCons"
              ng-blur="$ctrl.reviewBlur()"></textarea>
  </div>
</div>

<div ng-if="$ctrl.canReview" class="community-review--reviews" ng-hide="$ctrl.expandReview">
  <div ng-if="$ctrl.submitted"
       class="community-review--message"
       translate="DtrReview.ThankYou"></div>
  <div ng-if="!$ctrl.item.writtenReviews.length && !$ctrl.submitted"
       class="community-review--message"
       translate="DtrReview.NoReviews"></div>
  <div ng-if="$ctrl.procon" class="community-review--procon">
    <div>
      <div translate="DtrReview.Pros"></div>
      <div ng-repeat="pro in $ctrl.aggregate.pros" ng-bind='pro'></div>
    </div>
    <div>
      <div translate="DtrReview.Cons"></div>
      <div ng-repeat="pro in $ctrl.aggregate.cons" ng-bind='pro'></div>
    </div>
  </div>
  <div class="community-review" ng-repeat="review in $ctrl.item.writtenReviews">
    <div class="community-review--who">
      <star-rating rating="review.rating" read-only></star-rating>
      <div ng-bind="review.reviewer.displayName" ng-class="{'community-review--who__special': review.isHighlighted}"></div>
      <div ng-bind="review.timestamp | date:'mediumDate'"></div>
    </div>
    <div ng-bind="review.review"></div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.1931705940454353, 'fraction_numerical': 0.0, 'mean_word_length': 3.460667086217747, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 176, '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': '6706903', 'n_tokens_mistral': 2339, 'n_tokens_neox': 2255, 'n_words': 336}