<commit_before><div class="row fastProperty-wrapper">

  <div class="col-md-12" ng-if="!fp.properties" style="position: relative; height: 300px">
    <h1 us-spinner="{radius:30, width:8, length: 16}"></h1>
  </div>

  <div class="col-md-12 fastProperty" ng-if="fp.properties">
    <div class="row fp-header">
      <div class="col-md-3">
        <h3>Fast Properties</h3>
      </div>



      <div class="col-md-6">
        <form class="form form-inline">
          <div class="form-group">
            <!--<div class="col-md-12">-->
            <label >Filter </label>
            <input type="search"
                   placeholder="Search properties"
                   class="form-control input-md search"
                   focus
                   ng-model="fp.filterString"
                   ng-change="fp.setFilteredProperties()"/>
          </div>
        </form>
      </div>

      <div class="col-md-3 ">
        <button type="button" class="btn btn-primary pull-right" ng-click="fp.newFastPropertyModal()">Create New Property</button>
      </div>

    </div>


     <div class="row content">
       <div class="rollout">
         <div class="clickable" ng-click="fp.togglePromotionPane()">
           <span class="pull-left glyphicon glyphicon-chevron-{{fp.promotionPaneOpen ? 'down' : 'up'}}"></span>

           <h3>
             Rollouts
           <span class="badge" ng-if="( fp.promotions | filter:{state:'Running'}).length > 0">
            {{ (fp.promotions | filter:{state:'Running'}).length }}</span>
           </h3>
         </div>
         <div class="row" ng-show="fp.promotionPaneOpen && fp.promotions.length > 0">
           <div class="col-md-5 col-md-offset-4">
             <div class="btn-group">
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('')" btn-radio="''">
                 <a href>All</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Pending')" btn-radio="'Pending'">
                 <a href><status-glyph item="{hasNotStarted: true}"></status-glyph> Pending</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Running')" btn-radio="'Running'">
                 <a href><status-glyph item="{isRunning: true}"></status-glyph> Running</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Completd')" btn-radio="'Successful'">
                 <a href><status-glyph item="{isCompleted: true}"></status-glyph> Completed</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Failed')" btn-radio="'Failed'">
                 <a href><status-glyph item="{isFailed: true}"></status-glyph> Failed</a>
               </label>
             </div>
           </div>
         </div>
         <div class="row" ng-show="fp.promotionPaneOpen">
           <div class="col-md-12">

             <table ng-if="fp.promotions" class="table table-hover">
               <thead>
               <tr>
                 <th width="2%"><!-- arrow --></th>
                 <th width="20%" key="property" label="Created" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Property</th>
                 <th width="20%" key="rolloutStarted" label="Updated" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Rollout Started</th>
                 <th width="50%" key="status" label="Updated" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Status</th>
               </tr>
               </thead>
               <tbody>
               <tr class="clickable"
                   ng-click="fp.toggleRolloutDetails(promotion)"
                   ng-repeat-start="promotion in fp.filteredPromotions">
                 <td>
                   <span class="pull-left glyphicon glyphicon-chevron-{{fp.isRolloutDetailsOpen(promotion.id) ? 'down' : 'up'}}"></span>
                 </td>
                 <td>
                   {{ promotion.key }}
                 </td>
                 <td>
                   {{ promotion.history[0].when | fastPropertyTime}}
                 </td>
                 <td>
                   <div class="row">
                     <div class="col-md-2">
                       <div class="rollout-status pull-left">{{promotion.state}}</div>
                     </div>
                     <div class="col-md-7">
                       <fast-property-progress-bar task="promotion"></fast-property-progress-bar>
                       <div>{{fp.getLastMessage(promotion)}}</div>
                     </div>
                     <div class="col-md-3">
                       <span class="icon" ng-if="promotion.isPromoting"><span class="glyphicon icon-spinner glyphicon-spinning"></span></span>
                       <!--<div ng-if="!promotion.isPromoting && promotion.state == 'Running'">-->
                         <!--<div>Continue?</div>-->
                       <!--<span>-->
                         <button class="btn btn-primary btn-xs" ng-if="promotion.state == 'Running'" ng-click="fp.continue($event, promotion)">continue</button>
                         <button class="btn btn-danger btn-xs" ng-if="promotion.state == 'Running'" ng-click="fp.stop($event, promotion)">rollback</button>
                       </span>
                     </div><commit_msg>disabling the promote buttons when a promotion in progress<commit_after><div class="row fastProperty-wrapper">

  <div class="col-md-12" ng-if="!fp.properties" style="position: relative; height: 300px">
    <h1 us-spinner="{radius:30, width:8, length: 16}"></h1>
  </div>

  <div class="col-md-12 fastProperty" ng-if="fp.properties">
    <div class="row fp-header">
      <div class="col-md-3">
        <h3>Fast Properties</h3>
      </div>



      <div class="col-md-6">
        <form class="form form-inline">
          <div class="form-group">
            <!--<div class="col-md-12">-->
            <label >Filter </label>
            <input type="search"
                   placeholder="Search properties"
                   class="form-control input-md search"
                   focus
                   ng-model="fp.filterString"
                   ng-change="fp.setFilteredProperties()"/>
          </div>
        </form>
      </div>

      <div class="col-md-3 ">
        <button type="button" class="btn btn-primary pull-right" ng-click="fp.newFastPropertyModal()">Create New Property</button>
      </div>

    </div>


     <div class="row content">
       <div class="rollout">
         <div class="clickable" ng-click="fp.togglePromotionPane()">
           <span class="pull-left glyphicon glyphicon-chevron-{{fp.promotionPaneOpen ? 'down' : 'up'}}"></span>

           <h3>
             Rollouts
           <span class="badge" ng-if="( fp.promotions | filter:{state:'Running'}).length > 0">
            {{ (fp.promotions | filter:{state:'Running'}).length }}</span>
           </h3>
         </div>
         <div class="row" ng-show="fp.promotionPaneOpen && fp.promotions.length > 0">
           <div class="col-md-5 col-md-offset-4">
             <div class="btn-group">
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('')" btn-radio="''">
                 <a href>All</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Pending')" btn-radio="'Pending'">
                 <a href><status-glyph item="{hasNotStarted: true}"></status-glyph> Pending</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Running')" btn-radio="'Running'">
                 <a href><status-glyph item="{isRunning: true}"></status-glyph> Running</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Successful')" btn-radio="'Successful'">
                 <a href><status-glyph item="{isCompleted: true}"></status-glyph> Successful</a>
               </label>
               <label class="btn btn-sm btn-default" ng-model="fp.promotionStateFilter" ng-click="fp.updateStateFilter('Failed')" btn-radio="'Failed'">
                 <a href><status-glyph item="{isFailed: true}"></status-glyph> Failed</a>
               </label>
             </div>
           </div>
         </div>
         <div class="row" ng-show="fp.promotionPaneOpen">
           <div class="col-md-12">

             <table ng-if="fp.promotions" class="table table-hover">
               <thead>
               <tr>
                 <th width="2%"><!-- arrow --></th>
                 <th width="20%" key="property" label="Created" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Property</th>
                 <th width="20%" key="rolloutStarted" label="Updated" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Rollout Started</th>
                 <th width="50%" key="status" label="Updated" sort-model="fp.sortModel" on-change="ctrl.filterApplications()">Status</th>
               </tr>
               </thead>
               <tbody>
               <tr class="clickable"
                   ng-click="fp.toggleRolloutDetails(promotion)"
                   ng-repeat-start="promotion in fp.filteredPromotions">
                 <td>
                   <span class="pull-left glyphicon glyphicon-chevron-{{fp.isRolloutDetailsOpen(promotion.id) ? 'down' : 'up'}}"></span>
                 </td>
                 <td>
                   {{ promotion.key }}
                 </td>
                 <td>
                   {{ promotion.history[0].when | fastPropertyTime}}
                 </td>
                 <td>
                   <div class="row">
                     <div class="col-md-2">
                       <div class="rollout-status pull-left">{{promotion.state}}</div>
                     </div>
                     <div class="col-md-7">
                       <fast-property-progress-bar task="promotion"></fast-property-progress-bar>
                       <div>{{fp.getLastMessage(promotion)}}</div>
                     </div>
                     <div class="col-md-3">
                       <span class="icon" ng-if="promotion.isPromoting"><span class="glyphicon icon-spinner glyphicon-spinning"></span></span>
                       <!--<div ng-if="!promotion.isPromoting && promotion.state == 'Running'">-->
                         <!--<div>Continue?</div>-->
                       <!--<span>-->
                         <button class="btn btn-primary btn-xs" ng-if="promotion.state == 'Running'" ng-click="fp.continue($event, promotion)" ng-disabled="promotion.isPromoting">continue</button>
                         <button class="btn btn-danger btn-xs" ng-if="promotion.state == 'Running'" ng-click="fp.stop($event, promotion)" ng-disabled="promotion.isPromoting">rollback</button>
                       </span>
                     </div>
{'fraction_non_alphanumeric': 0.16981465136804944, 'fraction_numerical': 0.00706090026478376, 'mean_word_length': 1.8780797561595124, 'pattern_counts': {'":': 0, '<': 257, '<?xml version=': 0, '>': 261, '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': '415851', 'n_tokens_mistral': 3348, 'n_tokens_neox': 3133, 'n_words': 553}