<commit_before>({
	init : function(component) {
		$A.util.addClass(component.find("afflTab"), "slds-active");

		$A.util.addClass(component.find("afflTabContent"), "slds-show");
		$A.util.addClass(component.find("relTabContent"), "slds-hide");
		$A.util.addClass(component.find("addrTabContent"), "slds-hide");
		$A.util.addClass(component.find("systemTabContent"), "slds-hide");
		
		//Retrieving hierarchy settings.
		this.getHierarchySettings(component);
	},
	
	getHierarchySettings : function(component) {
		var action = component.get("c.getSettings");
		var namespace_prefix = component.get("v.namespace_prefix");
	    action.setCallback(this, function(response) {
	    	if(response.getState() === "SUCCESS") {
	    		var settings = response.getReturnValue();
	    		var settings_w_prefix = {};
	    		for(var key in settings) {
	    			console.log('Setting ' + namespace_prefix + key + ' to ' + settings[key]);
	    			settings_w_prefix[namespace_prefix + key] = settings[key];
	    		}
	    		component.set("v.hierarchySettings", settings_w_prefix);
	    	} else if(response.getState() === "ERROR") {
				var errors = response.getError();
				if (errors) {
					if (errors[0] && errors[0].message) {
						$A.error("Error message: " + errors[0].message);
					}
				} else {<commit_msg>What we need to do is removing the namespace from custom fields.<commit_after>({
	init : function(component) {
		$A.util.addClass(component.find("afflTab"), "slds-active");

		$A.util.addClass(component.find("afflTabContent"), "slds-show");
		$A.util.addClass(component.find("relTabContent"), "slds-hide");
		$A.util.addClass(component.find("addrTabContent"), "slds-hide");
		$A.util.addClass(component.find("systemTabContent"), "slds-hide");
		
		//Retrieving hierarchy settings.
		this.getHierarchySettings(component);
	},
	
	getHierarchySettings : function(component) {
		var action = component.get("c.getSettings");
		var namespace_prefix = component.get("v.namespace_prefix");
	    action.setCallback(this, function(response) {
	    	if(response.getState() === "SUCCESS") {
	    		var settings = response.getReturnValue();
	    		var settings_no_prefix = {};
	    		for(var key in settings) {
	    			if(key.endsWith('__c')) {
	    				key_no_prefix = key.replace(namespace_prefix, '');
		    			settings_no_prefix[key_no_prefix] = settings[key];
	    			}
	    		}
	    		component.set("v.hierarchySettings", settings_no_prefix);
	    	} else if(response.getState() === "ERROR") {
				var errors = response.getError();
				if (errors) {
					if (errors[0] && errors[0].message) {
						$A.error("Error message: " + errors[0].message);
					}
				} else {
{'fraction_non_alphanumeric': 0.16471918582736525, 'fraction_numerical': 0.0022615906520919715, 'mean_word_length': 3.8697247706422018, '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': '5990726', 'n_tokens_mistral': 973, 'n_tokens_neox': 868, 'n_words': 134}