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

// same page links
// done
// spread attributes
// tests
// docs
@Component({
  selector: 'sprk-link',
  template: `
    <a
      (click)="handleClick($event)"
      [ngClass]="getClasses()"
      [href]="href"
      [attr.data-analytics]="analyticsString"
      [attr.target]="target"
      [attr.data-id]="idString"
      [attr.disabled]="disabled"
      [attr.aria-controls]="ariaControls"
      [attr.aria-label]="ariaLabel"
      [attr.aria-haspopup]="ariaHasPopUp"
      [attr.role]="role"
      [attr.aria-current]="ariaCurrent"
      [attr.aria-expanded]="ariaExpanded"
    >
      <ng-content></ng-content>
    </a>
  `
})
export class SparkLinkComponent implements OnInit {
  constructor(public router: Router) {}

  @Input()
  linkType: string;
  @Input()
  href = '#';
  @Input()
  idString: string;
  @Input()
  role: string;
  @Input()
  ariaControls: string;
  @Input()
  ariaCurrent: string;
  @Input()
  ariaExpanded: string;
  @Input()
  ariaHasPopUp: string;
  @Input()
  ariaLabel: string;
  @Input()<commit_msg>add more aria attrs<commit_after>import { Component, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
// tests
// docs
@Component({
  selector: 'sprk-link',
  template: `
    <a
      (click)="handleClick($event)"
      [ngClass]="getClasses()"
      [href]="href"
      [attr.data-analytics]="analyticsString"
      [attr.target]="target"
      [attr.data-id]="idString"
      [attr.disabled]="disabled"
      [attr.aria-controls]="ariaControls"
      [attr.aria-label]="ariaLabel"
      [attr.aria-labelledby]="ariaLabelledby"
      [attr.aria-haspopup]="ariaHasPopUp"
      [attr.role]="role"
      [attr.aria-current]="ariaCurrent"
      [attr.aria-expanded]="ariaExpanded"
      [attr.aria-hidden]="ariaHidden"
    >
      <ng-content></ng-content>
    </a>
  `
})
export class SparkLinkComponent implements OnInit {
  constructor(public router: Router) {}

  @Input()
  linkType: string;
  @Input()
  href = '#';
  @Input()
  idString: string;
  @Input()
  role: string;
  @Input()
  ariaControls: string;
  @Input()
  ariaLabelledby: string;
  @Input()
  ariaHidden: string;
  @Input()
  ariaCurrent: string;
  @Input()
  ariaExpanded: string;
  @Input()
  ariaHasPopUp: string;
  @Input()
  ariaLabel: string;
  @Input()
{'fraction_non_alphanumeric': 0.17199833818030744, 'fraction_numerical': 0.0, 'mean_word_length': 3.3465703971119134, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7064231', 'n_tokens_mistral': 843, 'n_tokens_neox': 836, 'n_words': 150}