<commit_before>.row
  .small-8.columns(style="padding:0")
    %input(type="text" ng-model="tier.name" placeholder="Level Name" required ng-blur="tier.modify(tierForm)" ng-change="tier.change()")
  .small-4.columns(style="padding:0")
    %input(type="number" ng-model="tier.points" placeholder="Points" min=0 ng-blur="tier.modify(tierForm)" ng-change="tier.change()" required)

.row
  %input(type="text" ng-model="tier.description" placeholder="Description" value="{{tier.description}}" ng-blur="tier.modify(tierForm)" ng-change="tier.change()")

- if @course_badge_count > 0
  .row.badge-row(ng-click="tier.editBadges()" ng-show="tier.isSaved()")
    .badge-messages Badges
    .tier-badge-image(ng-repeat="(tierBadgeId, tierBadge) in tier.badges")
      = image_tag "badge.png", width: "50px", height: "50px"

.modal-window(ng-show="tier.editingBadges")
  .row
    %select(ng-disabled="! tier.isSaved()" ng-change="tier.selectBadge()" ng-model="tier.selectedBadge" ng-options="availableBadge as availableBadge.name for (availableBadgeId, availableBadge) in tier.availableBadges")
      %option.default(value="" selected disabled ng-show="tier.availableBadges.length > 0") select a badge to add...
      %option.default(value="" selected disabled ng-show="tier.availableBadges.length == 0") all available badges selected

  .row
    .tier-badge(ng-repeat="(tierBadgeId, tierBadge) in tier.badges")
      = image_tag "badge.png", width: "20px", height: "20px"
      {{tierBadge.name}}
      {{tierBadge.id}}
      %button.delete(type="button" ng-click="tier.deleteTierBadge(tierBadge)") X

  .update-badges
    %button.close-modal(ng-click="tier.closeBadges()") Update Badges

.row
%button.delete(type="button" ng-click="tier.delete($index)" ng-hide="tier.durable") X
.messages(ng-show="tier.fullCredit") Full Credit Level
.messages(ng-show="tier.noCredit") No Credit Level
.messages(ng-hide="tier.durable") Level<commit_msg>use proper badge icons for design rubric, needs testing<commit_after>.row
  .small-8.columns(style="padding:0")
    %input(type="text" ng-model="tier.name" placeholder="Level Name" required ng-blur="tier.modify(tierForm)" ng-change="tier.change()")
  .small-4.columns(style="padding:0")
    %input(type="number" ng-model="tier.points" placeholder="Points" min=0 ng-blur="tier.modify(tierForm)" ng-change="tier.change()" required)

.row
  %input(type="text" ng-model="tier.description" placeholder="Description" value="{{tier.description}}" ng-blur="tier.modify(tierForm)" ng-change="tier.change()")

- if @course_badge_count > 0
  .row.badge-row(ng-click="tier.editBadges()" ng-show="tier.isSaved()")
    .badge-messages Badges
    .tier-badge-image(ng-repeat="(tierBadgeId, tierBadge) in tier.badges")
      %img(src="{{tierBadge.badge.icon}}" width="35px" height="35px")

.modal-window(ng-show="tier.editingBadges")
  .row
    %select(ng-disabled="! tier.isSaved()" ng-change="tier.selectBadge()" ng-model="tier.selectedBadge" ng-options="availableBadge as availableBadge.name for (availableBadgeId, availableBadge) in tier.availableBadges")
      %option.default(value="" selected disabled ng-show="tier.availableBadges.length > 0") select a badge to add...
      %option.default(value="" selected disabled ng-show="tier.availableBadges.length == 0") all available badges selected

  .row
    .tier-badge(ng-repeat="(tierBadgeId, tierBadge) in tier.badges")
      %img(src="{{tierBadge.badge.icon}}" width="20px" height="20px")
      {{tierBadge.name}}
      {{tierBadge.id}}
      %button.delete(type="button" ng-click="tier.deleteTierBadge(tierBadge)") X

  .update-badges
    %button.close-modal(ng-click="tier.closeBadges()") Update Badges

.row
%button.delete(type="button" ng-click="tier.delete($index)" ng-hide="tier.durable") X
.messages(ng-show="tier.fullCredit") Full Credit Level
.messages(ng-show="tier.noCredit") No Credit Level
.messages(ng-hide="tier.durable") Level
{'fraction_non_alphanumeric': 0.1809109518935517, 'fraction_numerical': 0.008188331627430911, 'mean_word_length': 5.397708674304419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6629988', 'n_tokens_mistral': 1431, 'n_tokens_neox': 1320, 'n_words': 219}