<commit_before>import { Component, OnInit } from '@angular/core';
import { UserService } from '../../../../services/user.service';

@Component({
  selector: 'app-admin',
  templateUrl: './admin.component.html',
  styleUrls: ['./admin.component.scss']
})
export class AdminComponent implements OnInit {
  users: any;

  constructor(private userService: UserService) { }

  ngOnInit() {
    this.userService.getAllUsers().subscribe(
      data => {
        localStorage.setItem('users', JSON.stringify(data));
      });

      this.users = JSON.parse(localStorage.getItem('users'));
  }

}<commit_msg>Fix offline admin panel access issue<commit_after>import { Component, OnInit } from '@angular/core';
import { UserService } from '../../../../services/user.service';

@Component({
  selector: 'app-admin',
  templateUrl: './admin.component.html',
  styleUrls: ['./admin.component.scss']
})
export class AdminComponent implements OnInit {
  users: any;

  constructor(private userService: UserService) { }

  ngOnInit() {
    this.userService.getAllUsers().subscribe(
      data => {
        localStorage.setItem('users', JSON.stringify(data));
        this.users = JSON.parse(localStorage.getItem('users'));
      });

      this.users = JSON.parse(localStorage.getItem('users'));
  }

}
{'fraction_non_alphanumeric': 0.1688715953307393, 'fraction_numerical': 0.0, 'mean_word_length': 3.6594202898550723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5566527', 'n_tokens_mistral': 378, 'n_tokens_neox': 376, 'n_words': 73}