<commit_before>import { Observable } from 'rxjs/Observable';
import {
  AfterViewChecked,
  Component,
  ElementRef,
  OnInit,
  OnDestroy,
  Renderer2,
  ViewEncapsulation,
  ViewChild
} from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { PlannerLayoutComponent } from './../../widgets/planner-layout/planner-layout.component';
import { Space } from 'ngx-fabric8-wit';
import { WorkItemTypeUI } from '../../models/work-item-type';
import {
  AuthenticationService,
  User,
  UserService
} from 'ngx-login-client';
import { IterationUI } from './../../models/iteration.model';
import { FilterService } from './../../services/filter.service';
import { CookieService } from './../../services/cookie.service';
import { cloneDeep, sortBy } from 'lodash';
import { EmptyStateConfig } from 'patternfly-ng';

// import for column
import { datatableColumn } from './../../components/planner-list/datatable-config';

// ngrx stuff
import { Store } from '@ngrx/store';
import { AppState } from './../../states/app.state';
// import * as actions from './../../actions/index.actions';
import * as IterationActions from './../../actions/iteration.actions';
import * as GroupTypeActions from './../../actions/group-type.actions';
import * as SpaceActions from './../../actions/space.actions';
import * as CollaboratorActions from './../../actions/collaborator.actions';
import * as AreaActions from './../../actions/area.actions';
import * as WorkItemTypeActions from './../../actions/work-item-type.actions';
import * as LabelActions from './../../actions/label.actions';
import { WorkItemUI } from '../../models/work-item';
import * as WorkItemActions from './../../actions/work-item.actions';

@Component({
  encapsulation: ViewEncapsulation.None,
  host: {
    'class': ''
  },
  selector: 'alm-work-item-list',
  templateUrl: './planner-list.component.html',
  styleUrls: ['./planner-list.component.less']
})

export class PlannerListComponent implements OnInit, OnDestroy, AfterViewChecked {
  private uiLockedAll: boolean = false;
  private sidePanelOpen: boolean = true;
  private groupTypeSource = this.store
    .select('listPage')
    .select('groupTypes')
    .filter(g => !!g.length);
  private workItemTypeSource = this.store
    .select('listPage')
    .select('workItemTypes')
    .filter(w => !!w.length);
  private spaceSource = this.store
    .select('listPage')
    .select('space')
    .filter(s => !!s);
  private areaSource = this.store
    .select('listPage')
    .select('areas')
    .filter(a => !!a);
  private iterationSource = this.store
    .select('listPage')
    .select('iterations')
    .filter(i => !!i.length);
  private labelSource = this.store
    .select('listPage')
    .select('labels')
    .filter(l => !!l.length);
  private collaboratorSource = this.store
    .select('listPage')
    .select('collaborators')
    .filter(c => !!c.length);
  private selectedIterationSource = this.store
    .select('listPage')
    .select('iterations')
    .filter(its => !!its.length)
    .map(its => its.find(it => it.selected));
  private workItemSource = this.store
    .select('listPage')
    .select('workItems');
  private routeSource = this.route.queryParams;
  private quickAddWorkItemTypes: WorkItemTypeUI[] = [];
  private allWorkItemTypes: WorkItemTypeUI[] = [];
  private selectedIteration: IterationUI = null;
  private loggedIn: boolean = true;
  private eventListeners: any[] = [];
  private columns: any[] = [];
  private isTableConfigOpen: boolean = false;
  private workItems: WorkItemUI[] = [];
  private contentItemHeight: number = 50;
  private selectedRows: any = [];
  private detailExpandedRows: any = [];
  private showTree: boolean = false;
  private showTreeUI: boolean = false;
  private emptyStateConfig: any = {};
  private uiLockedList: boolean = false;<commit_msg>fix(list): list url param bug fixed<commit_after>import { Observable } from 'rxjs/Observable';
import {
  AfterViewChecked,
  Component,
  ElementRef,
  OnInit,
  OnDestroy,
  Renderer2,
  ViewEncapsulation,
  ViewChild
} from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { PlannerLayoutComponent } from './../../widgets/planner-layout/planner-layout.component';
import { Space } from 'ngx-fabric8-wit';
import { WorkItemTypeUI } from '../../models/work-item-type';
import {
  AuthenticationService,
  User,
  UserService
} from 'ngx-login-client';
import { IterationUI } from './../../models/iteration.model';
import { FilterService } from './../../services/filter.service';
import { CookieService } from './../../services/cookie.service';
import { cloneDeep, sortBy } from 'lodash';
import { EmptyStateConfig } from 'patternfly-ng';

// import for column
import { datatableColumn } from './../../components/planner-list/datatable-config';

// ngrx stuff
import { Store } from '@ngrx/store';
import { AppState } from './../../states/app.state';
// import * as actions from './../../actions/index.actions';
import * as IterationActions from './../../actions/iteration.actions';
import * as GroupTypeActions from './../../actions/group-type.actions';
import * as SpaceActions from './../../actions/space.actions';
import * as CollaboratorActions from './../../actions/collaborator.actions';
import * as AreaActions from './../../actions/area.actions';
import * as WorkItemTypeActions from './../../actions/work-item-type.actions';
import * as LabelActions from './../../actions/label.actions';
import { WorkItemUI } from '../../models/work-item';
import * as WorkItemActions from './../../actions/work-item.actions';

@Component({
  encapsulation: ViewEncapsulation.None,
  host: {
    'class': ''
  },
  selector: 'alm-work-item-list',
  templateUrl: './planner-list.component.html',
  styleUrls: ['./planner-list.component.less']
})

export class PlannerListComponent implements OnInit, OnDestroy, AfterViewChecked {
  private uiLockedAll: boolean = false;
  private sidePanelOpen: boolean = true;
  private groupTypeSource = this.store
    .select('listPage')
    .select('groupTypes')
    .filter(g => !!g.length);
  private workItemTypeSource = this.store
    .select('listPage')
    .select('workItemTypes')
    .filter(w => !!w.length);
  private spaceSource = this.store
    .select('listPage')
    .select('space')
    .filter(s => !!s);
  private areaSource = this.store
    .select('listPage')
    .select('areas')
    .filter(a => !!a);
  private iterationSource = this.store
    .select('listPage')
    .select('iterations')
    .filter(i => !!i.length);
  private labelSource = this.store
    .select('listPage')
    .select('labels')
    .filter(l => !!l.length);
  private collaboratorSource = this.store
    .select('listPage')
    .select('collaborators')
    .filter(c => !!c.length);
  private selectedIterationSource = this.store
    .select('listPage')
    .select('iterations')
    .filter(its => !!its.length)
    .map(its => its.find(it => it.selected));
  private workItemSource = this.store
    .select('listPage')
    .select('workItems');
  private routeSource = this.route.queryParams
    .filter(p => p.hasOwnProperty('q'));
  private quickAddWorkItemTypes: WorkItemTypeUI[] = [];
  private allWorkItemTypes: WorkItemTypeUI[] = [];
  private selectedIteration: IterationUI = null;
  private loggedIn: boolean = true;
  private eventListeners: any[] = [];
  private columns: any[] = [];
  private isTableConfigOpen: boolean = false;
  private workItems: WorkItemUI[] = [];
  private contentItemHeight: number = 50;
  private selectedRows: any = [];
  private detailExpandedRows: any = [];
  private showTree: boolean = false;
  private showTreeUI: boolean = false;
  private emptyStateConfig: any = {};
  private uiLockedList: boolean = false;
{'fraction_non_alphanumeric': 0.16696750902527077, 'fraction_numerical': 0.0010314595152140279, 'mean_word_length': 3.698364627498486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '6742658', 'n_tokens_mistral': 2288, 'n_tokens_neox': 2279, 'n_words': 546}