<commit_before>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { CredentialsService } from './credentials.service';

@Component({
    selector: 'logout',
    template: ''
})
export class LogoutComponent implements OnInit {
    constructor(
        private router: Router,
        private credentialsService: CredentialsService
    ) {}

    ngOnInit() {
        this.credentialsService.deleteAll();
        this.router.navigate(['/login']);
    }
}<commit_msg>action logout provide full redirect which can clear some cache<commit_after>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { CredentialsService } from './credentials.service';
import { AgriHub } from '../../global/agrihub';

@Component({
    selector: 'logout',
    template: ''
})
export class LogoutComponent implements OnInit {
    constructor(
        private router: Router,
        private credentialsService: CredentialsService
    ) {}

    ngOnInit() {
        this.credentialsService.deleteAll();
        window.location.href = AgriHub.BASE_URL + 'login';
    }
}
{'fraction_non_alphanumeric': 0.12478031634446397, 'fraction_numerical': 0.0, 'mean_word_length': 3.5019762845849804, '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': '1677499', 'n_tokens_mistral': 313, 'n_tokens_neox': 306, 'n_words': 79}