<commit_before>package org.bdgp.OpenHiCAMM.DB;

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

import org.bdgp.OpenHiCAMM.Util;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Class for storing configuration metadata. This is used for both
 * module and task metadata. Configuration is stored as key-value 
 * pairs.
 */
@DatabaseTable
public class Config {
    public Config() {}
    public Config(String id, String key, String value) {
        this.id = id;
        this.key = key;
        this.value = value;
    }
    public Config(String id, String key, String value, Object object) {
        this.id = id;
        this.key = key;
        this.value = value;
        this.object = object;
    }
    @DatabaseField(canBeNull=false,uniqueCombo=true,dataType=DataType.LONG_STRING, index=true)
    private String id;
    
    @DatabaseField(canBeNull=false,uniqueCombo=true,dataType=DataType.LONG_STRING, index=true)
    private String key;
    
    @DatabaseField(canBeNull=true,dataType=DataType.LONG_STRING)
    private String value;
    
    // The object field can store any object as part of the configuration, but 
    // won't be serialized to the DB. This is useful for passing Java objects from
    // parent tasks to child tasks.
    private Object object;
    
    public String getId() {
        return id;
    }
    public String getKey() {
        return key;
    }
    public String getValue() {
        return value;
    }
    public Object getObject() {
    	return object;
    }<commit_msg>index the config.value as well<commit_after>package org.bdgp.OpenHiCAMM.DB;

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

import org.bdgp.OpenHiCAMM.Util;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Class for storing configuration metadata. This is used for both
 * module and task metadata. Configuration is stored as key-value 
 * pairs.
 */
@DatabaseTable
public class Config {
    public Config() {}
    public Config(String id, String key, String value) {
        this.id = id;
        this.key = key;
        this.value = value;
    }
    public Config(String id, String key, String value, Object object) {
        this.id = id;
        this.key = key;
        this.value = value;
        this.object = object;
    }
    @DatabaseField(canBeNull=false,uniqueCombo=true,dataType=DataType.LONG_STRING, index=true)
    private String id;
    
    @DatabaseField(canBeNull=false,uniqueCombo=true,dataType=DataType.LONG_STRING, index=true)
    private String key;
    
    @DatabaseField(canBeNull=true,dataType=DataType.LONG_STRING, index=true)
    private String value;
    
    // The object field can store any object as part of the configuration, but 
    // won't be serialized to the DB. This is useful for passing Java objects from
    // parent tasks to child tasks.
    private Object object;
    
    public String getId() {
        return id;
    }
    public String getKey() {
        return key;
    }
    public String getValue() {
        return value;
    }
    public Object getObject() {
    	return object;
    }
{'fraction_non_alphanumeric': 0.09234989332520573, 'fraction_numerical': 0.005486132276744895, 'mean_word_length': 2.83859649122807, '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': '6424362', 'n_tokens_mistral': 987, 'n_tokens_neox': 973, 'n_words': 287}