<commit_before>import { Component, HostListener, Input } from '@angular/core';

@Component({
  selector: 'sprk-masthead',
  template: `
    <header [ngClass]="getClasses()" role="banner">
      <div class="sprk-c-Masthead__content">
        <div class="sprk-c-Masthead__top-row">
          <div class="sprk-c-Masthead__hamburger">
            <button class="sprk-c-Hamburger" type="button" [attr.aria-expanded]="isNarrowNavOpen ? true : false"
            (click)="toggleNarrowNav()"
            >
              <span class="sprk-u-ScreenReaderText">Toggle Navigation</span>
              <svg
                [ngClass]="
                  { 'sprk-c-Icon': true,
                    'sprk-c-Icon--l': true,
                    'sprk-c-Hamburger__icon': true,
                    'sprk-c-Hamburger__icon--open': isNarrowNavOpen
                  }"
                  aria-hidden="true"
                  version="1.1"
                  xmlns="http://www.w3.org/2000/svg"
                  xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100">
                <g>
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--one" d="M5 13h90v14H5z" />
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--two" d="M5 43h90v14H5z" />
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--three" d="M5 73h90v14H5z" />
                </g>
              </svg>
            </button>
          </div>
          <div class="sprk-c-Masthead__logo">
            <a [routerLink]="logoHref">
              <ng-content select="[logo-slot]"></ng-content>
              <span class="sprk-u-ScreenReaderText">{{ logoLinkScreenReaderText }}</span>
            </a>
          </div>
          <div class="sprk-c-Masthead__secondary-nav">
            <sprk-secondary-navigation>
             <sprk-secondary-navigation-item
                *ngFor="let link of secondaryNavLinks"
                [href]="link.href"
                [spacing]="secondaryNavSpacing"
                [text]="link.text">
              </sprk-secondary-navigation-item>
            </sprk-secondary-navigation>
          </div>
          <div class="sprk-c-Masthead__search">
            <ng-content select="[upper-slot]"></ng-content>
          </div><commit_msg>angular masthead<commit_after>import { Component, HostListener, Input } from '@angular/core';

@Component({
  selector: 'sprk-masthead',
  template: `
    <header [ngClass]="getClasses()" role="banner">
      <div class="sprk-c-Masthead__content">
        <div class="sprk-c-Masthead__top-row">
          <div class="sprk-c-Masthead__hamburger">
            <button class="sprk-c-Hamburger" type="button" [attr.aria-expanded]="isNarrowNavOpen ? true : false"
            (click)="toggleNarrowNav()"
            >
              <span class="sprk-u-ScreenReaderText">Toggle Navigation</span>
              <svg
                [ngClass]="
                    { 'sprk-c-Icon': true,
                      'sprk-c-Icon--l': true,
                      'sprk-c-Hamburger__icon': true,
                      'sprk-c-Hamburger__icon--open': isNarrowNavOpen
                    }"
                    aria-hidden="true" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
                <g>
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--two" d="m8 32h48"/>
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--one" d="m8 18.68h48"/>
                  <path class="sprk-c-Hamburger__line sprk-c-Hamburger__line--three" d="m8 45.32h48"/>
                </g>
              </svg>
            </button>
          </div>
          <div class="sprk-c-Masthead__logo">
            <a [routerLink]="logoHref">
              <ng-content select="[logo-slot]"></ng-content>
              <span class="sprk-u-ScreenReaderText">{{ logoLinkScreenReaderText }}</span>
            </a>
          </div>
          <div class="sprk-c-Masthead__secondary-nav">
            <sprk-secondary-navigation>
             <sprk-secondary-navigation-item
                *ngFor="let link of secondaryNavLinks"
                [href]="link.href"
                [spacing]="secondaryNavSpacing"
                [text]="link.text">
              </sprk-secondary-navigation-item>
            </sprk-secondary-navigation>
          </div>
          <div class="sprk-c-Masthead__search">
            <ng-content select="[upper-slot]"></ng-content>
          </div>
{'fraction_non_alphanumeric': 0.14996667407242836, 'fraction_numerical': 0.016885136636303043, 'mean_word_length': 1.715319662243667, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 3}, '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': '5457070', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1402, 'n_words': 196}