<commit_before>package main.java.de.c4.view.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import main.java.de.c4.model.messages.file.FileTransferState;
import main.java.de.c4.view.resources.EIcons;
import main.java.de.c4.view.resources.IconProvider;

public class FileTransferTableModel extends DefaultTableModel {
	
	private static final String[] COLS = new String[]{" ", "Status", "Dateiname", "Kontakt", " "};
	private static final List<FileTransferState> TRANSFERS = new ArrayList<FileTransferState>();
	private JTable table;
	
	public FileTransferTableModel(JTable table) {
		this.table = table;
		table.setModel(this);
	}

	@Override
	public int getColumnCount() {
		return COLS.length;
	}
	
	@Override
	public String getColumnName(int column) {
		return COLS[column];
	}
	
	@Override
	public int getRowCount() {
		return TRANSFERS.size();
	}
	
	@Override
	public Object getValueAt(int row, int column) {
		FileTransferState state = TRANSFERS.get(row);
		if (column == 0) {<commit_msg>code-cleanup<commit_after>package main.java.de.c4.view.model;

import java.util.ArrayList;
import java.util.List;

import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import main.java.de.c4.model.messages.file.FileTransferState;

public class FileTransferTableModel extends DefaultTableModel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private static final String[] COLS = new String[]{" ", "Status", "Dateiname", "Kontakt", " "};
	private static final List<FileTransferState> TRANSFERS = new ArrayList<FileTransferState>();
	
	public FileTransferTableModel(JTable table) {
		table.setModel(this);
	}

	@Override
	public int getColumnCount() {
		return COLS.length;
	}
	
	@Override
	public String getColumnName(int column) {
		return COLS[column];
	}
	
	@Override
	public int getRowCount() {
		return TRANSFERS.size();
	}
	
	@Override
	public Object getValueAt(int row, int column) {
		FileTransferState state = TRANSFERS.get(row);
		if (column == 0) {
{'fraction_non_alphanumeric': 0.1171003717472119, 'fraction_numerical': 0.004182156133828996, 'mean_word_length': 4.8346883468834685, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2766303', 'n_tokens_mistral': 735, 'n_tokens_neox': 686, 'n_words': 161}