<commit_before>package voldemort.server.scheduler.slop;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Semaphore;

import javax.management.MBeanOperationInfo;

import org.apache.log4j.Logger;

import voldemort.annotations.jmx.JmxGetter;
import voldemort.annotations.jmx.JmxOperation;
import voldemort.cluster.Node;
import voldemort.routing.RoutingStrategy;
import voldemort.routing.RoutingStrategyFactory;
import voldemort.server.StoreRepository;
import voldemort.store.StorageEngine;
import voldemort.store.StoreDefinition;
import voldemort.store.metadata.MetadataStore;
import voldemort.store.slop.Slop;
import voldemort.utils.ByteArray;
import voldemort.utils.ClosableIterator;
import voldemort.utils.Pair;
import voldemort.utils.Utils;
import voldemort.versioning.Versioned;

import com.google.common.collect.Maps;

public class RepairJob implements Runnable {

    private int DELETE_BATCH = 1000;
    private final static Logger logger = Logger.getLogger(RepairJob.class.getName());

    public final static List<String> blackList = Arrays.asList("mysql", "krati", "read-only");

    private final Semaphore repairPermits;
    private final StoreRepository storeRepo;
    private final MetadataStore metadataStore;
    private final Map<String, Long> storeStats;
    private final boolean deleteOnly;

    public RepairJob(StoreRepository storeRepo,
                     MetadataStore metadataStore,
                     Semaphore repairPermits,
                     boolean deleteOnly,
                     int deleteBatchSize) {
        this.storeRepo = storeRepo;
        this.metadataStore = metadataStore;
        this.repairPermits = Utils.notNull(repairPermits);
        this.storeStats = Maps.newHashMap();
        this.deleteOnly = deleteOnly;
        this.DELETE_BATCH = deleteBatchSize;
    }

    public RepairJob(StoreRepository storeRepo, MetadataStore metadataStore, Semaphore repairPermits) {
        this(storeRepo, metadataStore, repairPermits, false, 1000);
    }

    public RepairJob(StoreRepository storeRepo,
                     MetadataStore metadataStore,
                     Semaphore repairPermits,
                     boolean deleteOnly) {
        this(storeRepo, metadataStore, repairPermits, deleteOnly, 1000);
    }

    @JmxOperation(description = "Start the Repair Job thread", impact = MBeanOperationInfo.ACTION)
    public void startRepairJob() {
        run();
    }<commit_msg>Made deleteOnly = true as default in RepairJob<commit_after>package voldemort.server.scheduler.slop;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Semaphore;

import javax.management.MBeanOperationInfo;

import org.apache.log4j.Logger;

import voldemort.annotations.jmx.JmxGetter;
import voldemort.annotations.jmx.JmxOperation;
import voldemort.cluster.Node;
import voldemort.routing.RoutingStrategy;
import voldemort.routing.RoutingStrategyFactory;
import voldemort.server.StoreRepository;
import voldemort.store.StorageEngine;
import voldemort.store.StoreDefinition;
import voldemort.store.metadata.MetadataStore;
import voldemort.store.slop.Slop;
import voldemort.utils.ByteArray;
import voldemort.utils.ClosableIterator;
import voldemort.utils.Pair;
import voldemort.utils.Utils;
import voldemort.versioning.Versioned;

import com.google.common.collect.Maps;

public class RepairJob implements Runnable {

    private int DELETE_BATCH = 1000;
    private final static Logger logger = Logger.getLogger(RepairJob.class.getName());

    public final static List<String> blackList = Arrays.asList("mysql", "krati", "read-only");

    private final Semaphore repairPermits;
    private final StoreRepository storeRepo;
    private final MetadataStore metadataStore;
    private final Map<String, Long> storeStats;
    private final boolean deleteOnly;

    public RepairJob(StoreRepository storeRepo,
                     MetadataStore metadataStore,
                     Semaphore repairPermits,
                     boolean deleteOnly,
                     int deleteBatchSize) {
        this.storeRepo = storeRepo;
        this.metadataStore = metadataStore;
        this.repairPermits = Utils.notNull(repairPermits);
        this.storeStats = Maps.newHashMap();
        this.deleteOnly = deleteOnly;
        this.DELETE_BATCH = deleteBatchSize;
    }

    public RepairJob(StoreRepository storeRepo, MetadataStore metadataStore, Semaphore repairPermits) {
        this(storeRepo, metadataStore, repairPermits, true, 1000);
    }

    public RepairJob(StoreRepository storeRepo,
                     MetadataStore metadataStore,
                     Semaphore repairPermits,
                     boolean deleteOnly) {
        this(storeRepo, metadataStore, repairPermits, deleteOnly, 1000);
    }

    @JmxOperation(description = "Start the Repair Job thread", impact = MBeanOperationInfo.ACTION)
    public void startRepairJob() {
        run();
    }
{'fraction_non_alphanumeric': 0.07776451869530629, 'fraction_numerical': 0.005171042163882259, 'mean_word_length': 3.596892138939671, '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': '133320', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1423, 'n_words': 312}