<commit_before><template>
  <div class="notification-banner">
    <b-alert v-for="(notification, index) in notifications" :key="index" varient="info" show>
      <h4>
        <font-awesome-icon icon="info" />
        {{notification.title}}
      </h4>
      <span v-html="notification.body" />
    </b-alert>
  </div>
</template>

<script>
import { library } from '@fortawesome/fontawesome-svg-core'
import faInfo from '@fortawesome/free-solid-svg-icons/faInfo'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import bAlert from "bootstrap-vue/es/components/alert/alert";
import oidc from "@uportal/open-id-connect";
import { get } from "axios";

library.add(faInfo);

export default {
  name: 'NotificationBanner',

  props: {
    debug: {
      type: Boolean,
      default: false
    },
    userInfoApiUrl: {
      type: String,
      default: "/uPortal/api/v5-1/userinfo"
    },
    notificationApiUrl: {
      type: String,
      default: "/NotificationPortlet/api/v2/notifications"
    },
    filter: {<commit_msg>fix: import for font awesome info icon<commit_after><template>
  <div class="notification-banner">
    <b-alert v-for="(notification, index) in notifications" :key="index" varient="info" show>
      <h4>
        <font-awesome-icon icon="info" />
        {{notification.title}}
      </h4>
      <span v-html="notification.body" />
    </b-alert>
  </div>
</template>

<script>
import { library } from '@fortawesome/fontawesome-svg-core'
import { faInfo } from '@fortawesome/free-solid-svg-icons/faInfo'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import bAlert from "bootstrap-vue/es/components/alert/alert";
import oidc from "@uportal/open-id-connect";
import { get } from "axios";

library.add(faInfo);

export default {
  name: 'NotificationBanner',

  props: {
    debug: {
      type: Boolean,
      default: false
    },
    userInfoApiUrl: {
      type: String,
      default: "/uPortal/api/v5-1/userinfo"
    },
    notificationApiUrl: {
      type: String,
      default: "/NotificationPortlet/api/v2/notifications"
    },
    filter: {
{'fraction_non_alphanumeric': 0.1500714626012387, 'fraction_numerical': 0.004764173415912339, 'mean_word_length': 3.208416833667335, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '381354', 'n_tokens_mistral': 702, 'n_tokens_neox': 695, 'n_words': 142}