<commit_before>package com.jdroid.android.context;

import java.util.Set;
import com.jdroid.java.utils.PropertiesUtils;

/**
 * 
 * @author <NAME>
 */
public class DefaultApplicationContext {
	
	private static final String PROPERTIES_RESOURCE_NAME = "settings.properties";
	private static final String LOCAL_PROPERTIES_RESOURCE_NAME = "settings.local.properties";
	
	private String environmentName;
	private String googleProjectId;
	private String facebookAppId;
	private Boolean devSettings;
	private Boolean isFreeApp;
	private Boolean adsEnabled;
	private String adUnitId;
	private Set<String> testDevicesIds;
	private Boolean cookieRepositoryEnabled = false;
	private Boolean analyticsEnabled;
	private String analyticsTrackingId;
	
	public DefaultApplicationContext() {
		PropertiesUtils.loadProperties(LOCAL_PROPERTIES_RESOURCE_NAME);
		PropertiesUtils.loadProperties(PROPERTIES_RESOURCE_NAME);
		
		googleProjectId = PropertiesUtils.getStringProperty("google.projectId");
		facebookAppId = PropertiesUtils.getStringProperty("facebook.app.id");
		devSettings = PropertiesUtils.getBooleanProperty("dev.settings");
		isFreeApp = PropertiesUtils.getBooleanProperty("free.app");
		adsEnabled = PropertiesUtils.getBooleanProperty("ads.enabled", false);
		adUnitId = PropertiesUtils.getStringProperty("ads.adUnitId");
		testDevicesIds = PropertiesUtils.getStringSetProperty("ads.tests.devices.ids");
		analyticsEnabled = PropertiesUtils.getBooleanProperty("analytics.enabled", false);
		analyticsTrackingId = PropertiesUtils.getStringProperty("analytics.trackingId");
	}
	
	/**
	 * @return The Google project ID acquired from the API console
	 */
	public String getGoogleProjectId() {
		return googleProjectId;
	}
	
	/**
	 * @return The registered Facebook app ID that is used to identify this application for Facebook.
	 */
	public String getFacebookAppId() {
		return facebookAppId;
	}<commit_msg>Added missing environment name property loading<commit_after>package com.jdroid.android.context;

import java.util.Set;
import com.jdroid.java.utils.PropertiesUtils;

/**
 * 
 * @author <NAME>
 */
public class DefaultApplicationContext {
	
	private static final String PROPERTIES_RESOURCE_NAME = "settings.properties";
	private static final String LOCAL_PROPERTIES_RESOURCE_NAME = "settings.local.properties";
	
	private String environmentName;
	private String googleProjectId;
	private String facebookAppId;
	private Boolean devSettings;
	private Boolean isFreeApp;
	private Boolean adsEnabled;
	private String adUnitId;
	private Set<String> testDevicesIds;
	private Boolean cookieRepositoryEnabled = false;
	private Boolean analyticsEnabled;
	private String analyticsTrackingId;
	
	public DefaultApplicationContext() {
		PropertiesUtils.loadProperties(LOCAL_PROPERTIES_RESOURCE_NAME);
		PropertiesUtils.loadProperties(PROPERTIES_RESOURCE_NAME);
		
		environmentName = PropertiesUtils.getStringProperty("environment.name");
		googleProjectId = PropertiesUtils.getStringProperty("google.projectId");
		facebookAppId = PropertiesUtils.getStringProperty("facebook.app.id");
		devSettings = PropertiesUtils.getBooleanProperty("dev.settings");
		isFreeApp = PropertiesUtils.getBooleanProperty("free.app");
		adsEnabled = PropertiesUtils.getBooleanProperty("ads.enabled", false);
		adUnitId = PropertiesUtils.getStringProperty("ads.adUnitId");
		testDevicesIds = PropertiesUtils.getStringSetProperty("ads.tests.devices.ids");
		analyticsEnabled = PropertiesUtils.getBooleanProperty("analytics.enabled", false);
		analyticsTrackingId = PropertiesUtils.getStringProperty("analytics.trackingId");
	}
	
	/**
	 * @return The Google project ID acquired from the API console
	 */
	public String getGoogleProjectId() {
		return googleProjectId;
	}
	
	/**
	 * @return The registered Facebook app ID that is used to identify this application for Facebook.
	 */
	public String getFacebookAppId() {
		return facebookAppId;
	}
{'fraction_non_alphanumeric': 0.08651138981315587, 'fraction_numerical': 0.0, 'mean_word_length': 6.3320825515947465, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1468303', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1005, 'n_words': 239}