<commit_before>package com.temenos.interaction.commands.odata;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.ws.rs.HttpMethod;
import javax.ws.rs.core.Response;

import org.odata4j.core.OEntities;
import org.odata4j.core.OEntity;
import org.odata4j.core.OEntityKey;
import org.odata4j.core.OFunctionParameter;
import org.odata4j.core.OFunctionParameters;
import org.odata4j.core.OLink;
import org.odata4j.core.OLinks;
import org.odata4j.core.OProperty;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.edm.EdmEntitySet;
import org.odata4j.edm.EdmFunctionImport;
import org.odata4j.edm.EdmSimpleType;
import org.odata4j.producer.BaseResponse;
import org.odata4j.producer.ODataProducer;
import org.odata4j.producer.PropertyResponse;

import com.temenos.interaction.core.resource.EntityResource;
import com.temenos.interaction.core.RESTResponse;
import com.temenos.interaction.core.command.ResourcePostCommand;
import com.temenos.interaction.core.state.ResourceInteractionModel;

/**
 * A POST command that will create a new ID for the supplied domain object.  It is implemented
 * by calling the 'NEW' function on the {@link ODataProducer).
 * @author aphethean
 */
public class POSTNewCommand implements ResourcePostCommand {

	/* Command configuration */
	private String entitySetName;
	private String domainObjectName;
	// the resource that we will generate a new id link to, must contain template {id}
	private String targetResource;
	
	private ODataProducer producer;
	private EdmDataServices edmDataServices;<commit_msg>Fixed a warning by removing an unused import.<commit_after>package com.temenos.interaction.commands.odata;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.ws.rs.HttpMethod;
import javax.ws.rs.core.Response;

import org.odata4j.core.OEntities;
import org.odata4j.core.OEntity;
import org.odata4j.core.OEntityKey;
import org.odata4j.core.OFunctionParameter;
import org.odata4j.core.OFunctionParameters;
import org.odata4j.core.OLink;
import org.odata4j.core.OLinks;
import org.odata4j.core.OProperty;
import org.odata4j.edm.EdmDataServices;
import org.odata4j.edm.EdmEntitySet;
import org.odata4j.edm.EdmFunctionImport;
import org.odata4j.edm.EdmSimpleType;
import org.odata4j.producer.BaseResponse;
import org.odata4j.producer.ODataProducer;
import org.odata4j.producer.PropertyResponse;

import com.temenos.interaction.core.resource.EntityResource;
import com.temenos.interaction.core.RESTResponse;
import com.temenos.interaction.core.command.ResourcePostCommand;

/**
 * A POST command that will create a new ID for the supplied domain object.  It is implemented
 * by calling the 'NEW' function on the {@link ODataProducer).
 * @author aphethean
 */
public class POSTNewCommand implements ResourcePostCommand {

	/* Command configuration */
	private String entitySetName;
	private String domainObjectName;
	// the resource that we will generate a new id link to, must contain template {id}
	private String targetResource;
	
	private ODataProducer producer;
	private EdmDataServices edmDataServices;
{'fraction_non_alphanumeric': 0.08869949494949494, 'fraction_numerical': 0.00946969696969697, 'mean_word_length': 5.685654008438819, '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': '6445442', 'n_tokens_mistral': 1038, 'n_tokens_neox': 1019, 'n_words': 238}