<commit_before>Seed({
		name : "Mold.DNA.SessionRouter",
		dna : "dna",
		author : "<NAME>",
		include : [
			"Mold.Lib.Observer",
			"Mold.Lib.UrlRouter"
		]
	},
	{
		name : "sessionrouter",
		create : function(seed){

			var target = Mold.createChain(Mold.getSeedChainName(seed));
	
			target[Mold.getTargetName(seed)] = function (session){
				var router = new Mold.Lib.UrlRouter(seed);
				router.initRoutes();
				router.setEventObject(session.data.get("userevents"));
				session.data.get("userevents").on("location.update", function(data){
					router.setLocation(data.data.location );
					router.setServerParameter(data.data.request, data.data.response, data.data.session);<commit_msg>return function instead of setting seed in router<commit_after>Seed({
		name : "Mold.DNA.SessionRouter",
		dna : "dna",
		author : "<NAME>",
		include : [
			"Mold.Lib.Observer",
			"Mold.Lib.UrlRouter"
		]
	},
	{
		name : "sessionrouter",
		create : function(seed){

			//var target = Mold.createChain(Mold.getSeedChainName(seed));
	
			return function (session){
				var router = new Mold.Lib.UrlRouter(seed.func);
				router.initRoutes();
				router.setEventObject(session.data.get("userevents"));

				session.data.get("userevents").on("location.update", function(data){
					router.setLocation(data.data.location);
					console.log("LOCATION UPDATE")
					router.setServerParameter(data.data.request, data.data.response, data.data.session);
{'fraction_non_alphanumeric': 0.15983321751216123, 'fraction_numerical': 0.0, 'mean_word_length': 4.161290322580645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7427950', 'n_tokens_mistral': 567, 'n_tokens_neox': 475, 'n_words': 72}