<commit_before>import { ChangeDetectionStrategy, Component, ElementRef, Input } from '@angular/core';
import { ewIcons } from '../environments/ew-icons';

@Component({
  selector: 'ew-icon',
  template: `
    <ng-content></ng-content>
  `,
  styles: [':host::ng-deep svg{width: 100%; height: inherit; }'],
  changeDetection: ChangeDetectionStrategy.OnPush
})

export class EwIcon {
  @Input()
  
  set name(iconName:string) {
    this.element.nativeElement.innerHTML = ewIcons[iconName] || ewIcons['default'];
  }
  
  constructor(private element: ElementRef) {
    
  }
  
  static getDivineBonus(id:number) {
    switch(id) {
      case 1: return 'iron';
      case 2: return 'wood';
      case 3: return 'grapes';
      case 4: return 'stone';
      case 5: return 'marble';
      case 6: return 'wine';
      case 7: return 'gold';
      case 9: return 'spartan';
      case 10: return 'menu-temple';
      case 11: return 'treasure';
      case 12: return 'menu-agora';
      case 13: return 'smenu-attacks';
      case 14: return 'drachma';
    }
    return 'default'
  }
}
<commit_msg>Missing favor icon<commit_after>import { ChangeDetectionStrategy, Component, ElementRef, Input } from '@angular/core';
import { ewIcons } from '../environments/ew-icons';

@Component({
  selector: 'ew-icon',
  template: `
    <ng-content></ng-content>
  `,
  styles: [':host::ng-deep svg{width: 100%; height: inherit; }'],
  changeDetection: ChangeDetectionStrategy.OnPush
})

export class EwIcon {
  @Input()
  
  set name(iconName:string) {
    this.element.nativeElement.innerHTML = ewIcons[iconName] || ewIcons['default'];
  }
  
  constructor(private element: ElementRef) {
    
  }
  
  static getDivineBonus(id:number) {
    switch(id) {
      case 1: return 'iron';
      case 2: return 'wood';
      case 3: return 'grapes';
      case 4: return 'stone';
      case 5: return 'marble';
      case 6: return 'wine';
      case 7: return 'gold';
      case 8: return 'favor';
      case 9: return 'spartan';
      case 10: return 'menu-temple';
      case 11: return 'treasure';
      case 12: return 'menu-agora';
      case 13: return 'smenu-attacks';
      case 14: return 'drachma';
    }
    return 'default'
  }
}

{'fraction_non_alphanumeric': 0.14330779630464174, 'fraction_numerical': 0.019378098242451555, 'mean_word_length': 3.029038112522686, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6178541', 'n_tokens_mistral': 786, 'n_tokens_neox': 738, 'n_words': 192}