<commit_before>import { Component } from '@angular/core';
import { Router } from '@angular/router';

import { AppUtilService } from './app-util.service';

@Component({
  selector: 'itemlists',
  templateUrl: './itemlists.component.html',
  styleUrls: ['./itemlists.component.css'],
})

export class ItemListsComponent {
  constructor(
    public router: Router,
    public appService: AppUtilService) { }

  pullData(): void {
    this.appService.alveo.pullIndex();
  }

  reset(): void {
    this.appService.alveo.reset();
    this.resetStore();
  }

  resetStore(): void {
    this.appService.alveo.resetStore();
  }

  storeData(): void {
    this.appService.alveo.storeData();
  }

  listSize(): number {
    if (this.appService.alveo.getLists() != undefined) {
      return this.appService.alveo.getLists().length;
    }
    return 0;
  }

  getLists(): any {
    return this.appService.alveo.getLists();
  }

  onSelect(list): void {
    this.appService.alveo.selectedList = list;
    this.router.navigate(['./dataview']);
  }

  isLoggedIn(): boolean {
    return this.appService.auth.isLoggedIn();<commit_msg>Bug fix for reset functionality<commit_after>import { Component } from '@angular/core';
import { Router } from '@angular/router';

import { AppUtilService } from './app-util.service';

@Component({
  selector: 'itemlists',
  templateUrl: './itemlists.component.html',
  styleUrls: ['./itemlists.component.css'],
})

export class ItemListsComponent {
  constructor(
    public router: Router,
    public appService: AppUtilService) { }

  pullData(): void {
    this.appService.alveo.pullIndex();
  }

  reset(): void {
    this.appService.alveo.reset();
  }

  resetStore(): void {
    this.reset();
    this.appService.alveo.resetStore();
  }

  storeData(): void {
    this.appService.alveo.storeData();
  }

  listSize(): number {
    if (this.appService.alveo.getLists() != undefined) {
      return this.appService.alveo.getLists().length;
    }
    return 0;
  }

  getLists(): any {
    return this.appService.alveo.getLists();
  }

  onSelect(list): void {
    this.appService.alveo.selectedList = list;
    this.router.navigate(['./dataview']);
  }

  isLoggedIn(): boolean {
    return this.appService.auth.isLoggedIn();
{'fraction_non_alphanumeric': 0.1557632398753894, 'fraction_numerical': 0.0008900756564307966, 'mean_word_length': 3.4514851485148514, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4529474', 'n_tokens_mistral': 769, 'n_tokens_neox': 741, 'n_words': 131}