<commit_before>
<section class="layout_section theme_light">

  <h1 class="type_heading" ng-show="!isPipeRunning() && !runningAnchor"><mark class="type_mark">Activity</mark></h1>
  <h1 class="type_heading" ng-show="isPipeRunning() || runningAnchor"><mark class="type_mark">Pipe Progress</mark></h1>

</section>

<section class="layout_section" ng-show="!isPipeRunning() && !runningAnchor">

	<p class="type_copy">
		Status information and details about your pipe runs.
	</p>
    
    <div class="button_group">
        <button type="button" class="button_primary"
            ng-click="disableRunNow=true;runNow()"
            ng-class="{'disabled': disableRunNow}"
            ng-disabled="disableRunNow"> Run now </button>
    </div>
    
    <div class="form_container">
    	<div class="type_subhead">
    		<mark class="type_mark"><span class="ellipsize">{{ allPipesSelected ? 'All Pipes' : selectedPipe.name }}</span> Activity</mark>
    	</div>
        
        <select class="input_select input_narrow" id="pipe-type" name="type" ng-init="theselectedpipes = 'current'"
            ng-show="pipeslist && pipeslist.length > 1" ng-model="theselectedpipes"
            ng-change="allPipesSelected = theselectedpipes === 'all';runningAnchor=false;fetchRuns(allPipesSelected);activateRun()">
            <option value="current">Current Pipe</option>
            <option value="all">All Pipes</option>
        </select>
    </div>
    
    <p class="alert-container warning" ng-hide="runs && runs.length > 0">
        No pipes have been run yet. Run one now, or schedule one.
    </p>

    <div class="table_container">
    	<table class="table_basic" ng-show="runs && runs.length > 0">
    		<thead>
    			<tr>
    				<th>Date/Time</th>
    				<th ng-if="allPipesSelected">Pipe</th>
    				<th><span class="piperecord">Records Processed</span></th>
    				<th>Run Time</th>
    				<th>Message</th>
    				<th>Detail</th>
                    <th>Log</th>
    			</tr>
    		</thead>
    		<tbody>
    			<tr ng-repeat="run in runs | sortBy:'startTimeUTC':true" ng-class="{'ERROR':'danger', 'RUNNING':'info', 'FINISHED':'success'}[run.status]"
    				class="{{run.startTime == activeRun.startTime && run.pipeId == activeRun.pipeId && 'selectedRunDetail'+run.status || ''}}">
    				<td>{{run.startTime}}</td>
    				<td ng-if="name=getPipeName(run);allPipesSelected" class="pipename">
    					<span ng-if="name" class="ellipsize">{{name}}</span>
    					<span ng-if="!name" class="pipenotfound">Pipe no longer exists</span>
    				</td>
    				<td><span class="piperecord">{{run.numRecords | number}}</span></td>
    				<td>{{run.elapsedTime}}</td>
    				<td>{{run.message}}</td>
    				<td>
    					<a class="type_link" ng-click="activateRun(run)">
    						Details
    					</a>
    				</td>
                    <td>
                        <a class="type_link" href="{{run.logUrl}}" ng-if="run.logUrl" target="_blank">
                            View log
                        </a>
                    </td>                      
    			</tr>
    		</tbody>
    	</table>
    </div>

	<div ng-show="activeRun" ng-class="{'ERROR':'panel-danger', 'RUNNING':'panel-info', 'FINISHED':'panel-success'}[activeRun.status]">
      <hr>
      
      <h1 class="type_subhead"><mark class="type_mark">Pipe Run Details</mark></h1>
      
      <div class="table_container">
        <table class="table_basic">
    		<thead>
    			<th>Data Set</th>
    			<th><span class="piperecord">Records</span></th>
    			<th>Status</th>
    		</thead>
    		<tbody>
    			<tr ng-repeat="stat in activeRun.tableStats | sortBy:'tableName'">
                    <td>
                        <a class="type_link" ng-show="activeRun.dbUrl" href="{{activeRun.dbUrl.replace('{dbname}', stat.dbName)}}" target="_blank">{{stat.tableName}}</a>
                        <span ng-show="!activeRun.dbUrl">{{stat.tableName}}</span>
                    </td>
                    <td><span class="piperecord">{{stat.numRecords | number}}</span></td>
                    <td>{{stat.errors[0].message}}</td>
                  </tr>
    		</tbody>
	   </table><commit_msg>display optional data set processing status message<commit_after>
<section class="layout_section theme_light">

  <h1 class="type_heading" ng-show="!isPipeRunning() && !runningAnchor"><mark class="type_mark">Activity</mark></h1>
  <h1 class="type_heading" ng-show="isPipeRunning() || runningAnchor"><mark class="type_mark">Pipe Progress</mark></h1>

</section>

<section class="layout_section" ng-show="!isPipeRunning() && !runningAnchor">

	<p class="type_copy">
		Status information and details about your pipe runs.
	</p>
    
    <div class="button_group">
        <button type="button" class="button_primary"
            ng-click="disableRunNow=true;runNow()"
            ng-class="{'disabled': disableRunNow}"
            ng-disabled="disableRunNow"> Run now </button>
    </div>
    
    <div class="form_container">
    	<div class="type_subhead">
    		<mark class="type_mark"><span class="ellipsize">{{ allPipesSelected ? 'All Pipes' : selectedPipe.name }}</span> Activity</mark>
    	</div>
        
        <select class="input_select input_narrow" id="pipe-type" name="type" ng-init="theselectedpipes = 'current'"
            ng-show="pipeslist && pipeslist.length > 1" ng-model="theselectedpipes"
            ng-change="allPipesSelected = theselectedpipes === 'all';runningAnchor=false;fetchRuns(allPipesSelected);activateRun()">
            <option value="current">Current Pipe</option>
            <option value="all">All Pipes</option>
        </select>
    </div>
    
    <p class="alert-container warning" ng-hide="runs && runs.length > 0">
        No pipes have been run yet. Run one now, or schedule one.
    </p>

    <div class="table_container">
    	<table class="table_basic" ng-show="runs && runs.length > 0">
    		<thead>
    			<tr>
    				<th>Date/Time</th>
    				<th ng-if="allPipesSelected">Pipe</th>
    				<th><span class="piperecord">Records Processed</span></th>
    				<th>Run Time</th>
    				<th>Message</th>
    				<th>Detail</th>
                    <th>Log</th>
    			</tr>
    		</thead>
    		<tbody>
    			<tr ng-repeat="run in runs | sortBy:'startTimeUTC':true" ng-class="{'ERROR':'danger', 'RUNNING':'info', 'FINISHED':'success'}[run.status]"
    				class="{{run.startTime == activeRun.startTime && run.pipeId == activeRun.pipeId && 'selectedRunDetail'+run.status || ''}}">
    				<td>{{run.startTime}}</td>
    				<td ng-if="name=getPipeName(run);allPipesSelected" class="pipename">
    					<span ng-if="name" class="ellipsize">{{name}}</span>
    					<span ng-if="!name" class="pipenotfound">Pipe no longer exists</span>
    				</td>
    				<td><span class="piperecord">{{run.numRecords | number}}</span></td>
    				<td>{{run.elapsedTime}}</td>
    				<td>{{run.message}}</td>
    				<td>
    					<a class="type_link" ng-click="activateRun(run)">
    						Details
    					</a>
    				</td>
                    <td>
                        <a class="type_link" href="{{run.logUrl}}" ng-if="run.logUrl" target="_blank">
                            View log
                        </a>
                    </td>                      
    			</tr>
    		</tbody>
    	</table>
    </div>

	<div ng-show="activeRun" ng-class="{'ERROR':'panel-danger', 'RUNNING':'panel-info', 'FINISHED':'panel-success'}[activeRun.status]">
      <hr>
      
      <h1 class="type_subhead"><mark class="type_mark">Pipe Run Details</mark></h1>
      
      <div class="table_container">
        <table class="table_basic">
    		<thead>
    			<th>Data Set</th>
    			<th><span class="piperecord">Records</span></th>
    			<th>Status</th>
    		</thead>
    		<tbody>
    			<tr ng-repeat="stat in activeRun.tableStats | sortBy:'tableName'">
                    <td>
                        <a class="type_link" ng-show="activeRun.dbUrl" href="{{activeRun.dbUrl.replace('{dbname}', stat.dbName)}}" target="_blank">{{stat.tableName}}</a>
                        <span ng-show="!activeRun.dbUrl">{{stat.tableName}}</span>
                    </td>
                    <td><span class="piperecord">{{stat.numRecords | number}}</span></td>
                    <td>{{stat.statusMessage}}</td>
                  </tr>
    		</tbody>
	   </table>
{'fraction_non_alphanumeric': 0.1801963601532567, 'fraction_numerical': 0.002274904214559387, 'mean_word_length': 2.489139515455305, 'pattern_counts': {'":': 0, '<': 243, '<?xml version=': 0, '>': 249, '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': '2388548', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2714, 'n_words': 445}