<commit_before>// (c) 2012 <NAME> -- Distributed under the Eclipse Public License
package bpsm.edn.parser;

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

import bpsm.edn.model.Symbol;
import bpsm.edn.model.Tag;
import bpsm.edn.parser.handlers.InstantToDate;
import bpsm.edn.parser.handlers.UuidHandler;

public class ParserConfiguration {

    BuilderFactory listFactory;
    BuilderFactory vectorFactory;
    BuilderFactory setFactory;
    BuilderFactory mapFactory;
    Map<Tag,TagHandler> tagHandlers;

    private ParserConfiguration() {
        listFactory = DEFAULT_LIST_FACTORY;
        vectorFactory = DEFAULT_VECTOR_FACTORY;
        setFactory = DEFAULT_SET_FACTORY;
        mapFactory = DEFAULT_MAP_FACTORY;

        Map<Tag,TagHandler> m = new HashMap<Tag,TagHandler>();
        m.put(EDN_UUID, new UuidHandler());
        m.put(EDN_INSTANT, new InstantToDate());
        this.tagHandlers = m;
    }

    public static ParserConfiguration defaultConfiguration() {
        return builder().build();
    }

    public static ParserConfigurationBuilder builder() {
        return new ParserConfigurationBuilder(new ParserConfiguration());
    }

    public BuilderFactory getListFactory() {
        return listFactory;
    }

    public BuilderFactory getVectorFactory() {
        return vectorFactory;
    }

    public BuilderFactory getSetFactory() {
        return setFactory;
    }

    public BuilderFactory getMapFactory() {
        return mapFactory;
    }

    public Map<Tag, TagHandler> getTagHandlers() {
        return tagHandlers;
    }

    private static final Tag EDN_UUID = new Tag(new Symbol(null, "uuid"));
    private static final Tag EDN_INSTANT = new Tag(new Symbol(null, "inst"));

    static final BuilderFactory DEFAULT_LIST_FACTORY = new DefaultListFactory();

    static final BuilderFactory DEFAULT_VECTOR_FACTORY = new DefaultVectorFactory();

    static final BuilderFactory DEFAULT_SET_FACTORY = new DefaultSetFactory();

    static final BuilderFactory DEFAULT_MAP_FACTORY = new DefaultMapFactory();

}<commit_msg>The Tags EDN_UUID & EDN_INSTANT in ParserConfiguration are now public<commit_after>// (c) 2012 <NAME> -- Distributed under the Eclipse Public License
package bpsm.edn.parser;

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

import bpsm.edn.model.Symbol;
import bpsm.edn.model.Tag;
import bpsm.edn.parser.handlers.InstantToDate;
import bpsm.edn.parser.handlers.UuidHandler;

public class ParserConfiguration {

    BuilderFactory listFactory;
    BuilderFactory vectorFactory;
    BuilderFactory setFactory;
    BuilderFactory mapFactory;
    Map<Tag,TagHandler> tagHandlers;

    private ParserConfiguration() {
        listFactory = DEFAULT_LIST_FACTORY;
        vectorFactory = DEFAULT_VECTOR_FACTORY;
        setFactory = DEFAULT_SET_FACTORY;
        mapFactory = DEFAULT_MAP_FACTORY;

        Map<Tag,TagHandler> m = new HashMap<Tag,TagHandler>();
        m.put(EDN_UUID, new UuidHandler());
        m.put(EDN_INSTANT, new InstantToDate());
        this.tagHandlers = m;
    }

    public static ParserConfiguration defaultConfiguration() {
        return builder().build();
    }

    public static ParserConfigurationBuilder builder() {
        return new ParserConfigurationBuilder(new ParserConfiguration());
    }

    public BuilderFactory getListFactory() {
        return listFactory;
    }

    public BuilderFactory getVectorFactory() {
        return vectorFactory;
    }

    public BuilderFactory getSetFactory() {
        return setFactory;
    }

    public BuilderFactory getMapFactory() {
        return mapFactory;
    }

    public Map<Tag, TagHandler> getTagHandlers() {
        return tagHandlers;
    }

    public static final Tag EDN_UUID = new Tag(new Symbol(null, "uuid"));
    public static final Tag EDN_INSTANT = new Tag(new Symbol(null, "inst"));

    static final BuilderFactory DEFAULT_LIST_FACTORY = new DefaultListFactory();

    static final BuilderFactory DEFAULT_VECTOR_FACTORY = new DefaultVectorFactory();

    static final BuilderFactory DEFAULT_SET_FACTORY = new DefaultSetFactory();

    static final BuilderFactory DEFAULT_MAP_FACTORY = new DefaultMapFactory();

}
{'fraction_non_alphanumeric': 0.08081534772182254, 'fraction_numerical': 0.0019184652278177458, 'mean_word_length': 3.6241685144124167, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2137976', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1161, 'n_words': 290}