<commit_before>package com.pkrete.xrd.exampleadapter;

import com.pkrete.xrd4j.common.exception.XRd4JException;
import com.pkrete.xrd4j.common.message.ErrorMessage;
import com.pkrete.xrd4j.common.message.ServiceRequest;
import com.pkrete.xrd4j.common.message.ServiceResponse;
import com.pkrete.xrd4j.common.util.PropertiesUtil;
import com.pkrete.xrd4j.server.AbstractAdapterServlet;
import com.pkrete.xrd4j.server.deserializer.AbstractCustomRequestDeserializer;
import com.pkrete.xrd4j.server.deserializer.CustomRequestDeserializer;
import com.pkrete.xrd4j.server.serializer.AbstractServiceResponseSerializer;
import com.pkrete.xrd4j.server.serializer.ServiceResponseSerializer;
import java.util.Properties;
import java.util.Random;
import javax.xml.soap.Node;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * This class implements two simple X-Road v6 compatible services: "getRandom"
 * and "helloService". Service descriptions are defined in "example.wsdl" file
 * that's located in WEB-INF/classes folder. The name of the WSDL file and the
 * namespace is configured in WEB-INF/classes/xrd-servlet.properties file.
 *
 * @author <NAME>
 */
public class ExampleAdapter extends AbstractAdapterServlet {

    private Properties props;
    private final static Logger logger = LoggerFactory.getLogger(ExampleAdapter.class);
    private String namespaceSerialize;
    private String namespaceDeserialize;
    private String prefix;

    @Override
    public void init() {
        super.init();
        logger.debug("Starting to initialize Enpoint.");
        this.props = PropertiesUtil.getInstance().load("/xrd-servlet.properties");<commit_msg>Fixed SonarQube findings.<commit_after>package com.pkrete.xrd.exampleadapter;

import com.pkrete.xrd4j.common.exception.XRd4JException;
import com.pkrete.xrd4j.common.message.ErrorMessage;
import com.pkrete.xrd4j.common.message.ServiceRequest;
import com.pkrete.xrd4j.common.message.ServiceResponse;
import com.pkrete.xrd4j.common.util.PropertiesUtil;
import com.pkrete.xrd4j.server.AbstractAdapterServlet;
import com.pkrete.xrd4j.server.deserializer.AbstractCustomRequestDeserializer;
import com.pkrete.xrd4j.server.deserializer.CustomRequestDeserializer;
import com.pkrete.xrd4j.server.serializer.AbstractServiceResponseSerializer;
import com.pkrete.xrd4j.server.serializer.ServiceResponseSerializer;
import java.util.Properties;
import java.util.Random;
import javax.xml.soap.Node;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * This class implements two simple X-Road v6 compatible services: "getRandom"
 * and "helloService". Service descriptions are defined in "example.wsdl" file
 * that's located in WEB-INF/classes folder. The name of the WSDL file and the
 * namespace is configured in WEB-INF/classes/xrd-servlet.properties file.
 *
 * @author <NAME>
 */
public class ExampleAdapter extends AbstractAdapterServlet {

    private Properties props;
    private static final Logger logger = LoggerFactory.getLogger(ExampleAdapter.class);
    private String namespaceSerialize;
    private String namespaceDeserialize;
    private String prefix;

    @Override
    public void init() {
        super.init();
        logger.debug("Starting to initialize Enpoint.");
        this.props = PropertiesUtil.getInstance().load("/xrd-servlet.properties");
{'fraction_non_alphanumeric': 0.09535655058043117, 'fraction_numerical': 0.007739082365948038, 'mean_word_length': 5.239655172413793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '829578', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1085, 'n_words': 229}