<commit_before>import {Component} from "@angular/core";

@Component({
	selector: "report-submit",
	templateUrl: "./templates/report-submit.html",
})

export class ReportSubmitComponent {}<commit_msg>updated 'report-submit.component.ts'<commit_after>import {Component} from "@angular/core";
import {ReportService} from "../services/report.service";
import {Status} from "../classes/status";
import {Report} from "../classes/report";

@Component({
	selector: "report-submit",
	templateUrl: "./templates/report-submit.html",
})

export class ReportSubmitComponent {

	//declare needed state variables for later use.
	status: Status = null;

	report: Report = new Report(null, null, null, null, null, null, null, null, null,);

	constructor(private reportService : ReportService) {}

	createReport(): void {
		this.reportService.createReport(this.report)
			.subscribe(status => this.status = this.status);
	}
}
{'fraction_non_alphanumeric': 0.15325248070562295, 'fraction_numerical': 0.0, 'mean_word_length': 5.394366197183099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1206549', 'n_tokens_mistral': 266, 'n_tokens_neox': 257, 'n_words': 68}