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

import {Feature} from 'ol';
import {Geometry} from 'ol/geom';
import {HsConfirmDialogComponent} from '../../common/confirm/confirm-dialog.component';
import {HsDialogContainerService} from '../layout/dialogs/dialog-container.service';
import {HsFeatureCommonService} from './feature-common.service';
import {HsLanguageService} from '../language/language.service';
import {HsLayerUtilsService} from '../utils/layer-utils.service';
import {HsLayoutService} from '../layout/layout.service';
import {HsQueryVectorService} from './query-vector.service';
import {exportFormats} from './feature-common.service';
import {getTitle} from '../../common/layer-extensions';

@Component({
  selector: 'hs-query-feature-list',
  templateUrl: './partials/feature-list.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HsQueryFeatureListComponent {
  @Input() features;

  exportMenuVisible;
  selectedFeaturesVisible;
  exportFormats: exportFormats[] = [
    {name: 'WKT', ext: 'wkt', mimeType: 'text/plain', downloadData: ''},
    {
      name: 'GeoJSON',
      ext: 'geojson',
      mimeType: 'application/json',
      downloadData: '',
    },
  ];
  editType = null;
  editMenuVisible = false;
  selectedLayer = null;
  getTitle = getTitle;

  trackById(index, item) {
    return item.feature.ol_uid;
  }

  constructor(
    public HsQueryVectorService: HsQueryVectorService,
    public hsLanguageService: HsLanguageService,
    public HsDialogContainerService: HsDialogContainerService,
    public HsLayoutService: HsLayoutService,
    public HsFeatureCommonService: HsFeatureCommonService,
    public HsLayerUtilsService: HsLayerUtilsService
  ) {
    this.selectedFeaturesVisible = this.HsLayoutService.mainpanel == 'info';
  }<commit_msg>refactor: Make query featurel list expanded by default<commit_after>import {ChangeDetectionStrategy, Component} from '@angular/core';
import {Input} from '@angular/core';

import {Feature} from 'ol';
import {Geometry} from 'ol/geom';
import {HsConfirmDialogComponent} from '../../common/confirm/confirm-dialog.component';
import {HsDialogContainerService} from '../layout/dialogs/dialog-container.service';
import {HsFeatureCommonService} from './feature-common.service';
import {HsLanguageService} from '../language/language.service';
import {HsLayerUtilsService} from '../utils/layer-utils.service';
import {HsLayoutService} from '../layout/layout.service';
import {HsQueryVectorService} from './query-vector.service';
import {exportFormats} from './feature-common.service';
import {getTitle} from '../../common/layer-extensions';

@Component({
  selector: 'hs-query-feature-list',
  templateUrl: './partials/feature-list.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HsQueryFeatureListComponent {
  @Input() features;

  exportMenuVisible;
  selectedFeaturesVisible = true;
  exportFormats: exportFormats[] = [
    {name: 'WKT', ext: 'wkt', mimeType: 'text/plain', downloadData: ''},
    {
      name: 'GeoJSON',
      ext: 'geojson',
      mimeType: 'application/json',
      downloadData: '',
    },
  ];
  editType = null;
  editMenuVisible = false;
  selectedLayer = null;
  getTitle = getTitle;

  trackById(index, item) {
    return item.feature.ol_uid;
  }

  constructor(
    public HsQueryVectorService: HsQueryVectorService,
    public hsLanguageService: HsLanguageService,
    public HsDialogContainerService: HsDialogContainerService,
    public HsLayoutService: HsLayoutService,
    public HsFeatureCommonService: HsFeatureCommonService,
    public HsLayerUtilsService: HsLayerUtilsService
  ) {}
{'fraction_non_alphanumeric': 0.12957974137931033, 'fraction_numerical': 0.0, 'mean_word_length': 4.9408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4669540', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1064, 'n_words': 239}