<commit_before>package org.objectweb.proactive.core.config;

import org.objectweb.proactive.core.config.xml.MasterFileHandler;

import java.util.HashMap;
import java.util.Iterator;


public class ProActiveConfiguration {
    protected HashMap loadedProperties;
    protected HashMap addedProperties;
    protected static ProActiveConfiguration singleton;

    private ProActiveConfiguration() {
        this.loadedProperties = new HashMap();
        this.addedProperties = new HashMap();
    }

    protected static synchronized void createConfiguration() {
        if (ProActiveConfiguration.singleton == null) {
            ProActiveConfiguration.singleton = new ProActiveConfiguration();
        }
    }

    /**
     * Load the default configuration
     * The default file is located in the same directory as the ProActiceConfiguration
     * class with the name proacticeConfiguration
     * It is obtained using Class.geressource
     * If the property proactive.configuration is set then its value is used
     * as the configuration file
     */
    public static void load() {
        String filename = null;
        if (System.getProperty("proactive.configuration") != null) {
            filename = System.getProperty("proactive.configuration");
        } else {
            System.out.println("******** No proactive.configuration");
            filename = ProActiveConfiguration.class.getResource(
                    "proactiveConfiguration.xml").toString();
        }
        System.out.println("****** Reading configuration from " + filename);
        ProActiveConfiguration.load(filename);
    }

    /**
     * Load the configuration given in filename
     * @param filename an XML file name
     */
    public static void load(String filename) {
        MasterFileHandler.createMasterFileHandler(filename,
            ProActiveConfiguration.getConfiguration());
        ProActiveConfiguration.getConfiguration().addProperties();
    }<commit_msg>*** empty log message ***<commit_after>package org.objectweb.proactive.core.config;

import org.objectweb.proactive.core.config.xml.MasterFileHandler;

import java.util.HashMap;
import java.util.Iterator;


public class ProActiveConfiguration {
    protected HashMap loadedProperties;
    protected HashMap addedProperties;
    protected static ProActiveConfiguration singleton;

    private ProActiveConfiguration() {
        this.loadedProperties = new HashMap();
        this.addedProperties = new HashMap();
    }

    protected static synchronized void createConfiguration() {
        if (ProActiveConfiguration.singleton == null) {
            ProActiveConfiguration.singleton = new ProActiveConfiguration();
        }
    }

    /**
     * Load the default configuration
     * The default file is located in the same directory as the ProActiceConfiguration
     * class with the name proacticeConfiguration
     * It is obtained using Class.geressource
     * If the property proactive.configuration is set then its value is used
     * as the configuration file
     */
    public static void load() {
        String filename = null;
        if (System.getProperty("proactive.configuration") != null) {
            filename = System.getProperty("proactive.configuration");
        } else {
            System.out.println("******** No proactive.configuration");
            filename = ProActiveConfiguration.class.getResource(
                    "ProActiveConfiguration.xml").toString();
        }
        System.out.println("****** Reading configuration from " + filename);
        ProActiveConfiguration.load(filename);
    }

    /**
     * Load the configuration given in filename
     * @param filename an XML file name
     */
    public static void load(String filename) {
        MasterFileHandler.createMasterFileHandler(filename,
            ProActiveConfiguration.getConfiguration());
        ProActiveConfiguration.getConfiguration().addProperties();
    }
{'fraction_non_alphanumeric': 0.08726534753932014, 'fraction_numerical': 0.0, 'mean_word_length': 3.003045685279188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5712294', 'n_tokens_mistral': 893, 'n_tokens_neox': 879, 'n_words': 256}