<commit_before><div ng-cloak="" class="dividerdemoBasicUsage" ng-app="stementor">

  <!-- TODO: Add user type data to divs -->
  <!-- This code is for student inboxes -->
  <div>
    <md-toolbar class="md-theme-light">
      <h2 class="md-toolbar-tools">
      <span flex-offset="0">(Mentor's Name) Inbox</span>
    </h2>
    </md-toolbar>

    <md-content flex-offset="0" class="md-padding" layout-xs="column" layout="row">
      <div flex="" layout="column">
        <md-list>
          <md-list-item ng-click="inbox.markRead(this); inbox.createMessage($event, this)" class="md-3-line" ng-repeat="item in inbox.messages | orderBy: 'date_sent'">

            <div class="md-list-item-text">

              <h4 ng-if="item.student_name">{{ item.student_name }}</h4>
              <h4 ng-if="!item.student_name">(Anonymous Student)</h4>
              <p>Subject: {{item.subject}}</p>
              <p>Date Sent: {{item.date_sent | date: shortDate}} </p>

            </div>
            <md-button class="md-secondary" ng-click="inbox.createMessage($event, this)">
              Respond
            </md-button>

            <md-divider ng-if="!$last"></md-divider>
          </md-list-item>
        </md-list>
      </div>
    </md-content>

  </div>

  <!-- This code is for mentor inboxes -->
  <!-- <div>
  <md-toolbar class="md-theme-light">
    <h2 class="md-toolbar-tools">
      <span flex-offset='0'>(Mentor's Name) Inbox</span>
    </h2>
  </md-toolbar>

  <md-content flex-offset="0" class="md-padding" layout-xs="column" layout="row">
    <div  flex=""  layout="column">
    <md-list>
      <md-list-item class="md-3-line" ng-repeat="item in inbox.messages">
        <div class="md-list-item-text">

          <h4 ng-if="item.student_name">{{ item.student_name }}</h4>
          <h4 ng-if="!item.student_name">(Anonymous)</h4>
          <p>{{item.subject}}</p>
          <p>Date Sent: {{item.date_sent | date: shortDate}} </p>

        </div>
        <md-button class="md-secondary" ng-click="inbox.createMessage($event)">Respond</md-button>
        <md-divider ng-if="!$last"></md-divider>
      </md-list-item>
    </md-list>
  </md-content>
</div> -->
</div>

<!-- <md-toolbar class="md-theme-light">
    <h2 class="md-toolbar-tools">
      <span>Inset</span>
    </h2>
  </md-toolbar>

  <md-content>
    <md-list>
      <md-list-item class="md-3-line" ng-repeat="item in messages"><commit_msg>Created separate views for student and mentor inboxes in inbox.html<commit_after><div ng-cloak="" class="dividerdemoBasicUsage" ng-app="stementor">

  <!-- This code is for student inboxes -->
  <div ng-if="inbox.userStatus.userType === 'student'">
    <md-toolbar class="md-theme-light">
      <h2 class="md-toolbar-tools">
      <span flex-offset="0">(Student's Name) Inbox</span>
    </h2>
    </md-toolbar>

    <md-content flex-offset="0" class="md-padding" layout-xs="column" layout="row">
      <div flex="" layout="column">
        <md-list>
          <md-list-item ng-click="inbox.markRead(this); inbox.createMessage($event, this)" class="md-3-line" ng-repeat="item in inbox.messages | orderBy: 'date_sent'">

            <div class="md-list-item-text">

              <h4 ng-if="item.student_name">{{ item.student_name }}</h4>
              <h4 ng-if="!item.student_name">(Anonymous Student)</h4>
              <p>Subject: {{item.subject}}</p>
              <p>Date Sent: {{item.date_sent | date: shortDate}} </p>

            </div>
            <!-- <md-button class="md-secondary" ng-click="inbox.createMessage($event, this)">
              Respond
            </md-button> -->

            <md-divider ng-if="!$last"></md-divider>
          </md-list-item>
        </md-list>
      </div>
    </md-content>

  </div>

  <!-- This code is for mentor inboxes -->
  <div ng-if="inbox.userStatus.userType === 'mentor'">
  <md-toolbar class="md-theme-light">
    <h2 class="md-toolbar-tools">
      <span flex-offset='0'>(Mentor's Name) Inbox</span>
    </h2>
  </md-toolbar>

  <md-content flex-offset="0" class="md-padding" layout-xs="column" layout="row">
    <div  flex=""  layout="column">
    <md-list>
      <md-list-item class="md-3-line" ng-repeat="item in inbox.messages">
        <div class="md-list-item-text">

          <h4 ng-if="item.student_name">{{ item.student_name }}</h4>
          <h4 ng-if="!item.student_name">(Anonymous)</h4>
          <p>{{item.subject}}</p>
          <p>Date Sent: {{item.date_sent | date: shortDate}} </p>

        </div>
        <md-button class="md-secondary" ng-click="inbox.createMessage($event, this)">Respond</md-button>
        <md-divider ng-if="!$last"></md-divider>
      </md-list-item>
    </md-list>
  </md-content>
</div>
</div>

<!-- <md-toolbar class="md-theme-light">
    <h2 class="md-toolbar-tools">
      <span>Inset</span>
    </h2>
  </md-toolbar>

  <md-content>
    <md-list>
      <md-list-item class="md-3-line" ng-repeat="item in messages">
{'fraction_non_alphanumeric': 0.20535714285714285, 'fraction_numerical': 0.008522727272727272, 'mean_word_length': 2.53840631730079, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 150, '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': '5192166', 'n_tokens_mistral': 1774, 'n_tokens_neox': 1707, 'n_words': 304}