<commit_before>import { AfterContentChecked, Component, EventEmitter, Input, Output } from "@angular/core";

import { InfoWindowViewService } from "../info-window-view.service";
import { Location } from "../model/location";

@Component({
    selector: "app-info-box",
    templateUrl: "info-box.component.html",
    styleUrls: [ "info-box.component.scss" ]
})
export class InfoBoxComponent implements AfterContentChecked {

    constructor(private readonly infoWindowViewService: InfoWindowViewService) { }

    @Input() location: Location;
    @Input() coordinates: Coordinates | null;

    @Output() close = new EventEmitter<void>();

    innerhtml: string;

    ngAfterContentChecked() {
        this.innerhtml = this.infoWindowViewService.getContent(this.location, this.coordinates, "full");
    }
}<commit_msg>Refactoring (might even fix a bug)<commit_after>import { Component, EventEmitter, Input, OnChanges, Output } from "@angular/core";

import { InfoWindowViewService } from "../info-window-view.service";
import { Location } from "../model/location";

@Component({
    selector: "app-info-box",
    templateUrl: "info-box.component.html",
    styleUrls: [ "info-box.component.scss" ]
})
export class InfoBoxComponent implements OnChanges {

    constructor(private readonly infoWindowViewService: InfoWindowViewService) { }

    @Input() location: Location;
    @Input() coordinates: Coordinates | null;

    @Output() close = new EventEmitter<void>();

    innerhtml: string;

    ngOnChanges() {
        this.innerhtml = this.infoWindowViewService.getContent(this.location, this.coordinates, "full");
    }
}
{'fraction_non_alphanumeric': 0.13201727328809376, 'fraction_numerical': 0.0, 'mean_word_length': 4.442953020134228, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3622714', 'n_tokens_mistral': 460, 'n_tokens_neox': 450, 'n_words': 105}