<commit_before><!-- display for proposal -->
<div ng-hide="course.name" class="container-fluid">
    <div class="course-info-header">
        <div class="courseInfoProgressBar">
            <div class="panel-heading" style="margin-bottom: 0;"><strong>Approval Status</strong></div>
            <div class="progress" style="width: 65%; display: inline-block;">
                <div class="progress-bar" ng-class="getClass(course.stage, 1)" class="progress-bar-danger" role="progressbar" style="width:25%">
                    Division
                </div>
                <div class="progress-bar" ng-class="getClass(course.stage, 2)" role="progressbar" style="width:25%">
                    APC
                </div>
                <div class="progress-bar" ng-class="getClass(course.stage, 3)" role="progressbar" style="width:25%">
                    Full Faculty
                </div>
                <div class="progress-bar" ng-class="getClass(course.stage, 4)" role="progressbar" style="width:25%">
                    Registrar
                </div>
            </div>
            <h4 class="approveReject">
                <a ng-if="course.owner == user.name" ng-href="#/{{course.newCourse.name}}/edit"><div class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit</div></a>
            </h4>
            <button ng-if="canApprove(course)" class="btn btn-danger approveReject" ng-click="reject()"><span class="glyphicon glyphicon-remove"></span> Reject</button>
            <button ng-if="canApprove(course)" class="btn btn-success approveReject" ng-click="approve()"><span class="glyphicon glyphicon-ok"></span> Approve</button>
        </div>
    </div>
    <div class="courseInfoDiv">
        <div class="page-header" style="margin-top: 15px;">
            <div>
                <div class="divDept">
                    <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.division != course.newCourse.division || course.oldCourse.dept != course.newCourse.dept}">
                        <div class="panel-heading">{{course.newCourse.division}} > {{course.newCourse.dept}}</div>
                    </div>
                    <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && ( course.oldCourse.division != course.newCourse.division || course.oldCourse.dept != course.newCourse.dept )">
                        <div class="panel-heading">{{course.oldCourse.division}} > {{course.oldCourse.dept}}</div>
                    </div>
                </div>
                <div>
                    <div class="panel panel-info courseInfo inlineBlock">
                        <div class="panel-heading"><strong>{{course.newCourse.name}}</strong></div>
                    </div>
                    <div class="panel panel-danger courseInfo inlineBlock" ng-if="course.oldCourse && course.oldCourse.name != course.newCourse.name">
                        <div class="panel-heading"><strong>{{course.oldCourse.name}}</strong></div>
                    </div>
                </div>
            </div>
            <div>
                <div class="panel panel-info courseInfo inlineBlock">
                    <div class="panel-heading"><strong>{{course.newCourse.title}}</strong></div>
                </div>
                <div class="panel panel-danger courseInfo inlineBlock" ng-if="course.oldCourse && course.oldCourse.title != course.newCourse.title">
                    <div class="panel-heading">{{course.oldCourse.title}}</div>
                </div>
            </div>
        </div>
        <div>
            <div class="panel-heading"><strong>Description</strong></div>
            <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.desc != course.newCourse.desc}">
                <div class="panel-heading">{{course.newCourse.desc}}</div>
            </div>
            <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && course.oldCourse.desc != course.newCourse.desc">
                <div class="panel-heading">{{course.oldCourse.desc}}</div>
            </div>
        </div>
        <div>
            <div class="panel-heading"><strong>Pre-Requisites</strong></div>
            <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.pre_req != course.newCourse.pre_req}">
                <div ng-if="course.newCourse.pre_req && course.newCourse.pre_req != ''" class="panel-heading">{{course.newCourse.pre_req}}</div>
                <div ng-if="!course.newCourse.pre_req || course.newCourse.pre_req == ''" class="panel-heading">No pre-requisites for this course</div>
            </div>
            <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && course.oldCourse.pre_req && course.oldCourse.pre_req != course.newCourse.pre_req">
                <div class="panel-heading">{{course.oldCourse.pre_req}}</div>
            </div><commit_msg>Restructure header for course-info page<commit_after><!-- display for proposal -->
<div ng-hide="course.name" class="container-fluid">
    <div class="course-info-header">
        <div class="row">
            <div class="col-xs-4">
                <div class="panel panel-info courseInfo inlineBlock">
                    <div class="panel-heading"><strong>{{course.newCourse.name}}</strong></div>
                </div>
                <div class="panel panel-danger courseInfo inlineBlock" ng-if="course.oldCourse && course.oldCourse.name != course.newCourse.name">
                    <div class="panel-heading"><strong>{{course.oldCourse.name}}</strong></div>
                </div>
            </div>
            <div class="col-xs-4 text-center">
                <div class="panel-heading" style="margin-bottom: 0;"><strong>Approval Status</strong></div>
            </div>
            <div class="col-xs-4">
                <div style="margin-right:10px;">
                    <a class="approveReject" ng-if="course.owner == user.name" ng-href="#/{{course.newCourse.name}}/edit"><div class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit</div></a>
                    <button ng-if="canApprove(course)" class="btn btn-danger approveReject" ng-click="reject()"><span class="glyphicon glyphicon-remove"></span> Reject</button>
                    <button ng-if="canApprove(course)" class="btn btn-success approveReject" ng-click="approve()"><span class="glyphicon glyphicon-ok"></span> Approve</button>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-4">
                <div class="panel panel-info courseInfo inlineBlock">
                    <div class="panel-heading"><strong>{{course.newCourse.title}}</strong></div>
                </div>
                <div class="panel panel-danger courseInfo inlineBlock" ng-if="course.oldCourse && course.oldCourse.title != course.newCourse.title">
                    <div class="panel-heading">{{course.oldCourse.title}}</div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="progress">
                    <div class="progress-bar" ng-class="getClass(course.stage, 1)" class="progress-bar-danger" role="progressbar" style="width:25%">
                        Division
                    </div>
                    <div class="progress-bar" ng-class="getClass(course.stage, 2)" role="progressbar" style="width:25%">
                        APC
                    </div>
                    <div class="progress-bar" ng-class="getClass(course.stage, 3)" role="progressbar" style="width:25%">
                        Full Faculty
                    </div>
                    <div class="progress-bar" ng-class="getClass(course.stage, 4)" role="progressbar" style="width:25%">
                        Registrar
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="divDept">
                    <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.division != course.newCourse.division || course.oldCourse.dept != course.newCourse.dept}">
                        <div class="panel-heading">{{course.newCourse.division}} > {{course.newCourse.dept}}</div>
                    </div>
                    <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && ( course.oldCourse.division != course.newCourse.division || course.oldCourse.dept != course.newCourse.dept )">
                        <div class="panel-heading">{{course.oldCourse.division}} > {{course.oldCourse.dept}}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="courseInfoDiv">
        <div>
            <div class="panel-heading"><strong>Description</strong></div>
            <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.desc != course.newCourse.desc}">
                <div class="panel-heading">{{course.newCourse.desc}}</div>
            </div>
            <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && course.oldCourse.desc != course.newCourse.desc">
                <div class="panel-heading">{{course.oldCourse.desc}}</div>
            </div>
        </div>
        <div>
            <div class="panel-heading"><strong>Pre-Requisites</strong></div>
            <div class="panel panel-default courseInfo" ng-class="{'panel-success' : course.oldCourse && course.oldCourse.pre_req != course.newCourse.pre_req}">
                <div ng-if="course.newCourse.pre_req && course.newCourse.pre_req != ''" class="panel-heading">{{course.newCourse.pre_req}}</div>
                <div ng-if="!course.newCourse.pre_req || course.newCourse.pre_req == ''" class="panel-heading">No pre-requisites for this course</div>
            </div>
            <div class="panel panel-danger courseInfo" ng-if="course.oldCourse && course.oldCourse.pre_req && course.oldCourse.pre_req != course.newCourse.pre_req">
                <div class="panel-heading">{{course.oldCourse.pre_req}}</div>
            </div>
{'fraction_non_alphanumeric': 0.1637989695732478, 'fraction_numerical': 0.003888402838534072, 'mean_word_length': 2.199004975124378, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 225, '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': '785206', 'n_tokens_mistral': 3045, 'n_tokens_neox': 2772, 'n_words': 471}