<commit_before>Collect.DataCleansing.DataErrorReportPanelController = function($panel) {
	Collect.AbstractItemPanel.apply(this, [$panel, "Data Error Report", 
			Collect.DataErrorReportDialogController,
			collect.dataErrorReportService, 
			Collect.DataCleansing.DATA_ERROR_REPORT_DELETED]);
};

Collect.DataCleansing.DataErrorReportPanelController.prototype = Object.create(Collect.AbstractItemPanel.prototype);

Collect.DataCleansing.DataErrorReportPanelController.prototype.getDataGridOptions = function() {
	var $this = this;
	return {
	    url: "datacleansing/dataerrorreports/list.json",
	    height: 400,
	    columns: [
          	{field: "selected", title: "", radio: true},
			{field: "id", title: "Id", visible: false},
			{field: "queryGroupTitle", title: "Query Group", sortable: true, width: 300},
			{field: "datasetSize", title: "Dataset Size", sortable: true, width: 100},
			{field: "lastRecordModifiedDate", title: "Last Record Modified", formatter: OF.Dates.formatToPrettyDateTime, sortable: true, width: 130},
			{field: "itemCount", title: "Errors found", sortable: true, width: 100},
			{field: "affectedRecordsCount", title: "Affected Records", sortable: false, width: 120},
			{field: "affectedRecordsPercent", title: "Affected Records %", sortable: true, width: 100},
			{field: "creationDate", title: "Creation Date", formatter: OF.Dates.formatToPrettyDateTime, sortable: true, width: 130},
			$this.createGridItemDeleteColumn()
		]
	};<commit_msg>Show affected records percent in data error report list<commit_after>Collect.DataCleansing.DataErrorReportPanelController = function($panel) {
	Collect.AbstractItemPanel.apply(this, [$panel, "Data Error Report", 
			Collect.DataErrorReportDialogController,
			collect.dataErrorReportService, 
			Collect.DataCleansing.DATA_ERROR_REPORT_DELETED]);
};

Collect.DataCleansing.DataErrorReportPanelController.prototype = Object.create(Collect.AbstractItemPanel.prototype);

Collect.DataCleansing.DataErrorReportPanelController.prototype.getDataGridOptions = function() {
	var $this = this;
	
	function percentFormatter(value, row) {
		return value.toFixed(1) + " %";
    }
	
	return {
	    url: "datacleansing/dataerrorreports/list.json",
	    height: 400,
	    columns: [
          	{field: "selected", title: "", radio: true},
			{field: "id", title: "Id", visible: false},
			{field: "queryGroupTitle", title: "Query Group", sortable: true, width: 300},
			{field: "datasetSize", title: "Dataset Size", align: "right", sortable: true, width: 100},
			{field: "lastRecordModifiedDate", title: "Last Record Modified", formatter: OF.Dates.formatToPrettyDateTime, align: "right", sortable: true, width: 130},
			{field: "itemCount", title: "Errors found", align: "right", sortable: true, width: 100},
			{field: "affectedRecordsCount", title: "Affected Records", align: "right", sortable: false, width: 120},
			{field: "affectedRecordsPercent", title: "Affected Records %", formatter: percentFormatter, align: "right", sortable: true, width: 100},
			{field: "creationDate", title: "Creation Date", formatter: OF.Dates.formatToPrettyDateTime, align: "right", sortable: true, width: 130},
			$this.createGridItemDeleteColumn()
		]
	};
{'fraction_non_alphanumeric': 0.13826466916354557, 'fraction_numerical': 0.01529338327091136, 'mean_word_length': 5.804670912951168, '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': '2658847', 'n_tokens_mistral': 1078, 'n_tokens_neox': 948, 'n_words': 233}