<commit_before>import { Pipe, PipeTransform } from '@angular/core';
import { WorkItem } from './../../../models/work-item';

// tslint:disable-next-line:use-pipe-transform-interface
@Pipe({ name: 'workItemLinkFilterByTypeName', pure: true })
export class WorkItemLinkFilterByTypeName implements PipeTransform {
  transform(selectedLinkType: string, arr: any[]): any[] {
    if (selectedLinkType !== null) {
      let outputArr: any[] = arr.filter(item => item.linkName === selectedLinkType);
      return outputArr;
    }
    return arr;
  }
}

// tslint:disable-next-line:use-pipe-transform-interface
@Pipe({ name: 'workItemLinkTypeFilterByTypeName', pure: true })
export class WorkItemLinkTypeFilterByTypeName implements PipeTransform {
  transform(selectedLinkType: string, arr: any[]): any[] {
    if (selectedLinkType !== null) {
      let outputArr: any[] = arr.filter(item => item.name === selectedLinkType);
      return outputArr;
    }
    return arr;
  }<commit_msg>fix css for type relationship list<commit_after>import { Pipe, PipeTransform } from '@angular/core';
import { WorkItem } from './../../../models/work-item';

// tslint:disable-next-line:use-pipe-transform-interface
@Pipe({ name: 'workItemLinkFilterByTypeName', pure: true })
export class WorkItemLinkFilterByTypeName implements PipeTransform {
  transform(selectedLinkType: string, arr: any[]): any[] {
    if (selectedLinkType !== null) {
      let outputArr: any[] = arr.filter(item => item.linkName === selectedLinkType);
      return outputArr;
    }
    return arr;
  }
}

// tslint:disable-next-line:use-pipe-transform-interface
@Pipe({ name: 'workItemLinkTypeFilterByTypeName', pure: true })
export class WorkItemLinkTypeFilterByTypeName implements PipeTransform {
  transform(selectedLinkType: string, arr: any[]): any[] {
    if (selectedLinkType !== 'all') {
      let outputArr: any[] = arr.filter(item => item.name === selectedLinkType);
      return outputArr;
    }
    return arr;
  }
{'fraction_non_alphanumeric': 0.14271255060728744, 'fraction_numerical': 0.0, 'mean_word_length': 4.314516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5400376', 'n_tokens_mistral': 591, 'n_tokens_neox': 589, 'n_words': 139}