<commit_before>package jp.ac.nii.prl.mape.autoscaling.model;

import jp.ac.nii.prl.mape.autoscaling.model.dto.InstanceDTO;

public class InstanceFactory {
	
	public static Instance createInstance(InstanceDTO dto, Deployment deployment) {
		
		Instance instance = new Instance();
		
		instance.setInstID(dto.getInstID());
		instance.setDeployment(deployment);
		
		return instance;
	}
	
	public static Instance createInstance(InstanceDTO dto, 
			Deployment deployment,<commit_msg>Set instance load in instance creation<commit_after>package jp.ac.nii.prl.mape.autoscaling.model;

import jp.ac.nii.prl.mape.autoscaling.model.dto.InstanceDTO;

public class InstanceFactory {
	
	public static Instance createInstance(InstanceDTO dto, Deployment deployment) {
		
		Instance instance = new Instance();
		
		instance.setInstID(dto.getInstID());
		instance.setDeployment(deployment);
		instance.setInstLoad(dto.getInstLoad());
		
		return instance;
	}
	
	public static Instance createInstance(InstanceDTO dto, 
			Deployment deployment,
{'fraction_non_alphanumeric': 0.09241245136186771, 'fraction_numerical': 0.0, 'mean_word_length': 5.088757396449704, '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': '1374690', 'n_tokens_mistral': 354, 'n_tokens_neox': 324, 'n_words': 63}