<commit_before>package com.noofinc.inventory;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.hazelcast.config.Config;
import com.hazelcast.config.ManagementCenterConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.spring.cache.HazelcastCacheManager;

@Configuration
public class HazelcastConfiguration {
	
//	@Value("#{systemProperties['pop3.port'] ?: 25}")


	@Bean
	public HazelcastInstance hazelcastInstance() {
		Config config = new Config();
		
		ManagementCenterConfig managementCenterConfig = new ManagementCenterConfig();
		managementCenterConfig.setEnabled(true);
		managementCenterConfig.setUrl("http://localhost:8080/mancenter-3.3.2");
		config.setManagementCenterConfig(managementCenterConfig );
		HazelcastInstance h = Hazelcast.newHazelcastInstance(config);
		return h;
	}
	
	@Bean 
	public HazelcastCacheManager cacheManager(HazelcastInstance hazelcastInstance){
		HazelcastCacheManager cacheManager = new HazelcastCacheManager();
		cacheManager.setHazelcastInstance(hazelcastInstance);
		return cacheManager;
		
	}

	//http://localhost:8080/mancenter-3.3.2
}<commit_msg>added abilty to specify the H* mancenter<commit_after>package com.noofinc.inventory;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.hazelcast.config.Config;
import com.hazelcast.config.ManagementCenterConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.spring.cache.HazelcastCacheManager;

@Configuration
public class HazelcastConfiguration {
	
//	@Value("#{systemProperties['pop3.port'] ?: 25}")
	
	@Value("#{systemProperties['h.url'] ?: 'http://localhost:8080/mancenter-3.3.2'}")
	private String hazelCastManagementUrl;


	@Bean
	public HazelcastInstance hazelcastInstance() {
		Config config = new Config();
		
		ManagementCenterConfig managementCenterConfig = new ManagementCenterConfig();
		managementCenterConfig.setEnabled(true);
		managementCenterConfig.setUrl(hazelCastManagementUrl);
		config.setManagementCenterConfig(managementCenterConfig );
		HazelcastInstance h = Hazelcast.newHazelcastInstance(config);
		return h;
	}
	
	@Bean 
	public HazelcastCacheManager cacheManager(HazelcastInstance hazelcastInstance){
		HazelcastCacheManager cacheManager = new HazelcastCacheManager();
		cacheManager.setHazelcastInstance(hazelcastInstance);
		return cacheManager;
		
	}

	//http://localhost:8080/mancenter-3.3.2
}
{'fraction_non_alphanumeric': 0.10105980317940953, 'fraction_numerical': 0.012869038607115822, 'mean_word_length': 6.750733137829912, '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': '6201824', 'n_tokens_mistral': 852, 'n_tokens_neox': 786, 'n_words': 123}