<commit_before>package cyberwaste.kuzoff.io.command;

import java.util.Map;
import java.util.List;
import java.util.Map;

import cyberwaste.kuzoff.core.DatabaseManager;
import cyberwaste.kuzoff.core.domain.Row;
import cyberwaste.kuzoff.io.IOManager;

public class CommandRemoveRow implements Command {

    private Map<String,String> parameters;
    private DatabaseManager databaseManager;
    
    public void setState(Map<String,String> parameters, DatabaseManager databaseManager){
        this.databaseManager = databaseManager;
        this.parameters = parameters;
    }
    
    @Override
    public void execute(IOManager ioManager) throws Exception {
        final String tableName = CommandBuilder.getStringParameter(parameters, "name");
        int numColumns = databaseManager.loadTable(tableName).columnTypes().size();
        final Map<Integer,String> columnData = CommandBuilder.getMapParameter(parameters, "column", numColumns);
        List<Row> rowList = databaseManager.removeRow(tableName,columnData);
        ioManager.outputRowDeleted(rowList);
    }

}<commit_msg>small fix<commit_after>package cyberwaste.kuzoff.io.command;

import java.util.Map;
import java.util.List;

import cyberwaste.kuzoff.core.DatabaseManager;
import cyberwaste.kuzoff.core.domain.Row;
import cyberwaste.kuzoff.io.IOManager;

public class CommandRemoveRow implements Command {

    private Map<String,String> parameters;
    private DatabaseManager databaseManager;
    
    public void setState(Map<String,String> parameters, DatabaseManager databaseManager){
        this.databaseManager = databaseManager;
        this.parameters = parameters;
    }
    
    @Override
    public void execute(IOManager ioManager) throws Exception {
        final String tableName = CommandBuilder.getStringParameter(parameters, "name");
        int numColumns = databaseManager.loadTable(tableName).columnTypes().size();
        final Map<Integer,String> columnData = CommandBuilder.getMapParameter(parameters, "column", numColumns);
        List<Row> rowList = databaseManager.removeRow(tableName,columnData);
        ioManager.outputRowDeleted(rowList);
    }

}
{'fraction_non_alphanumeric': 0.08976744186046512, 'fraction_numerical': 0.0, 'mean_word_length': 4.487244897959184, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5760001', 'n_tokens_mistral': 574, 'n_tokens_neox': 580, 'n_words': 119}