<commit_before><div class="back-nav">
  <div class="container">
    <div class="row">
      <div class="col">
        <a href="/opportunities"><i class="fas fa-chevron-left"></i>&nbsp;&nbsp;All Opportunities</a>
      </div>
    </div>
  </div>
</div>

<section>

  <!-- // If user is not signed in // -->
  <div class="container" ng-if="!vm.loggedIn && vm.closing != 'CLOSED' && !vm.preapprovalParam && !vm.approvalParam">
    <div class="alert alert-warning">
      <i class="fas fa-lg fa-exclamation-triangle"></i> &nbsp;To apply on this opportunity you need to
      <a ui-sref="authentication.signin">
        Sign In
      </a>
    </div>
  </div>

  <!-- // If user doesn't have an email address in their profile // -->
  <div class="container" ng-if="vm.notifyMe && !vm.hasEmail">
    <div class="alert alert-warning">
      <p>Want <span class="hidden-sm hidden-xs">to get </span>updates about this opportunity? <a href id="settings.profile"
          ui-sref="settings.profile"> Add your email address.</a></p>
    </div>
  </div>

  <!-- View for approving/rejecting an opportunity -->
  <div class="container">
    <div class="row text-center alert" ng-if="vm.showPreApproval || vm.showFinalApproval" ng-class="{'alert-success': vm.approvalAction === 'Approve', 'alert-danger': vm.approvalAction === 'Reject'}">
      <div class="col">
        To {{ vm.approvalAction }} this opportunity, enter the 6 digit code you have been sent separately (<a href=""
          ng-click="vm.requestApprovalCode()">Resend</a>)<br>
        <input class="form-control w-25 mx-auto text-center my-2" type="number" input-max-length="6" ng-model="vm.toFAcode"
          ng-change="vm.validateApprovalCode()">
        <button class="btn text-white my-2" ng-class="{'btn-success': vm.approvalAction === 'Approve', 'btn-danger': vm.approvalAction === 'Reject'}"
          type="button" ng-click="vm.submitApprovalCode()" ng-disabled="vm.validApprovalCode">{{ vm.approvalAction }}</button>
      </div>
    </div>
  </div>


  <!-- // Admin View for Proposal Evaluation // -->
  <div class="container" ng-if="vm.opportunity.isPublished && vm.canEdit">

    <div class="row">
      <div class="col border p-4">
        <proposal-list ng-if="vm.opportunity.status === 'Pending' && vm.canEdit && vm.opportunity.isPublished" isclosed="vm.closing === 'CLOSED'"
          context="opportunity" opportunity="vm.opportunity"></proposal-list>
      </div>
    </div>


    <div class="row" ng-if="vm.opportunity.status !== 'Pending' && vm.opportunity.proposal">
      <div class="col text-center">
        <span class="text-black-50">Opportunity assigned to:</span>
        &nbsp;
        <img class="img-avatar-flat img-avatar-sm" src="{{((vm.opportunity.proposal.user.profileImageURL.substr(0,1) == '/' || vm.opportunity.proposal.user.profileImageURL.substr(0,4) == 'http') ? '' : '/') + vm.opportunity.proposal.user.profileImageURL}}">
        &nbsp;
        {{vm.opportunity.proposal.user.displayName}}<commit_msg>(styling) fix width of input for 2FA code on xs displays<commit_after><div class="back-nav">
  <div class="container">
    <div class="row">
      <div class="col">
        <a href="/opportunities"><i class="fas fa-chevron-left"></i>&nbsp;&nbsp;All Opportunities</a>
      </div>
    </div>
  </div>
</div>

<section>

  <!-- // If user is not signed in // -->
  <div class="container" ng-if="!vm.loggedIn && vm.closing != 'CLOSED' && !vm.preapprovalParam && !vm.approvalParam">
    <div class="alert alert-warning">
      <i class="fas fa-lg fa-exclamation-triangle"></i> &nbsp;To apply on this opportunity you need to
      <a ui-sref="authentication.signin">
        Sign In
      </a>
    </div>
  </div>

  <!-- // If user doesn't have an email address in their profile // -->
  <div class="container" ng-if="vm.notifyMe && !vm.hasEmail">
    <div class="alert alert-warning">
      <p>Want <span class="hidden-sm hidden-xs">to get </span>updates about this opportunity? <a href id="settings.profile"
          ui-sref="settings.profile"> Add your email address.</a></p>
    </div>
  </div>

  <!-- View for approving/rejecting an opportunity -->
  <div class="container">
    <div class="row alert justify-content-center" ng-if="vm.showPreApproval || vm.showFinalApproval" ng-class="{'alert-success': vm.approvalAction === 'Approve', 'alert-danger': vm.approvalAction === 'Reject'}">
      <div class="col-md-6 text-center margin-auto">
        To {{ vm.approvalAction }} this opportunity, enter the 6 digit code you have been sent separately (<a href=""
          ng-click="vm.requestApprovalCode()">Resend</a>)<br>
        <input class="form-control mx-auto text-center my-2" type="number" input-max-length="6" ng-model="vm.toFAcode"
          ng-change="vm.validateApprovalCode()">
        <button class="btn text-white my-2" ng-class="{'btn-success': vm.approvalAction === 'Approve', 'btn-danger': vm.approvalAction === 'Reject'}"
          type="button" ng-click="vm.submitApprovalCode()" ng-disabled="vm.validApprovalCode">{{ vm.approvalAction }}</button>
      </div>
    </div>
  </div>


  <!-- // Admin View for Proposal Evaluation // -->
  <div class="container" ng-if="vm.opportunity.isPublished && vm.canEdit">

    <div class="row">
      <div class="col border p-4">
        <proposal-list ng-if="vm.opportunity.status === 'Pending' && vm.canEdit && vm.opportunity.isPublished" isclosed="vm.closing === 'CLOSED'"
          context="opportunity" opportunity="vm.opportunity"></proposal-list>
      </div>
    </div>


    <div class="row" ng-if="vm.opportunity.status !== 'Pending' && vm.opportunity.proposal">
      <div class="col text-center">
        <span class="text-black-50">Opportunity assigned to:</span>
        &nbsp;
        <img class="img-avatar-flat img-avatar-sm" src="{{((vm.opportunity.proposal.user.profileImageURL.substr(0,1) == '/' || vm.opportunity.proposal.user.profileImageURL.substr(0,4) == 'http') ? '' : '/') + vm.opportunity.proposal.user.profileImageURL}}">
        &nbsp;
        {{vm.opportunity.proposal.user.displayName}}
{'fraction_non_alphanumeric': 0.18972332015810275, 'fraction_numerical': 0.004281949934123847, 'mean_word_length': 3.369064748201439, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '7658339', 'n_tokens_mistral': 2014, 'n_tokens_neox': 1947, 'n_words': 416}