<commit_before>import {
  AfterContentInit,
  ChangeDetectionStrategy,
  Component,
  ElementRef,
  OnDestroy,
  OnInit,
  ViewChild
} from '@angular/core';

import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import 'rxjs/add/operator/take';

import {
  ListItemModel
} from '@skyux/list-builder-common';

import {
  SkyListFilterInlineModel
} from '@skyux/list-builder/modules/list-filters/list-filter-inline.model';

import {
  SkyListViewChecklistComponent
} from '@skyux/list-builder-view-checklist';

import {
  SkyModalInstance
} from '@skyux/modals';

import {
  SkyWindowRefService
} from '@skyux/core';

import {
  SkySelectField,
  SkySelectFieldSelectMode
} from './types';

import { SkySelectFieldPickerContext } from './select-field-picker-context';

@Component({
  selector: 'sky-select-field-picker',
  templateUrl: './select-field-picker.component.html',
  styleUrls: ['./select-field-picker.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class SkySelectFieldPickerComponent implements OnInit, AfterContentInit, OnDestroy {
  public categories: string[];
  public data: Observable<any>;
  public selectMode: SkySelectFieldSelectMode;
  public headingText: string;

  public readonly defaultCategory = 'any';
  public selectedCategory = this.defaultCategory;
  public selectedIds: any[] = [];

  public addNewRecordButtonClick = new Subject<void>();
  public showAddNewRecordButton: boolean = false;

  @ViewChild(SkyListViewChecklistComponent)
  private listViewChecklist: SkyListViewChecklistComponent;

  constructor(<commit_msg>Updated default category field to use getter (#34)<commit_after>import {
  AfterContentInit,
  ChangeDetectionStrategy,
  Component,
  ElementRef,
  OnDestroy,
  OnInit,
  ViewChild
} from '@angular/core';

import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import 'rxjs/add/operator/take';

import {
  ListItemModel
} from '@skyux/list-builder-common';

import {
  SkyListFilterInlineModel
} from '@skyux/list-builder/modules/list-filters/list-filter-inline.model';

import {
  SkyListViewChecklistComponent
} from '@skyux/list-builder-view-checklist';

import {
  SkyModalInstance
} from '@skyux/modals';

import {
  SkyWindowRefService
} from '@skyux/core';

import {
  SkySelectField,
  SkySelectFieldSelectMode
} from './types';

import { SkySelectFieldPickerContext } from './select-field-picker-context';

@Component({
  selector: 'sky-select-field-picker',
  templateUrl: './select-field-picker.component.html',
  styleUrls: ['./select-field-picker.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class SkySelectFieldPickerComponent implements OnInit, AfterContentInit, OnDestroy {
  public categories: string[];
  public data: Observable<any>;
  public selectMode: SkySelectFieldSelectMode;
  public headingText: string;

  public selectedCategory = this.defaultCategory;
  public selectedIds: any[] = [];

  public addNewRecordButtonClick = new Subject<void>();
  public showAddNewRecordButton: boolean = false;

  public get defaultCategory(): string {
    return 'any';
  }

  @ViewChild(SkyListViewChecklistComponent)
  private listViewChecklist: SkyListViewChecklistComponent;

  constructor(
{'fraction_non_alphanumeric': 0.11175395858708892, 'fraction_numerical': 0.0006090133982947625, 'mean_word_length': 5.391050583657588, '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': '1700098', 'n_tokens_mistral': 976, 'n_tokens_neox': 960, 'n_words': 208}