<commit_before>package com.uaihebert.uaimockserver.dto.factory;

import com.uaihebert.uaimockserver.dto.model.UaiHeaderDTO;
import com.uaihebert.uaimockserver.dto.model.UaiQueryParamDTO;
import com.uaihebert.uaimockserver.dto.model.UaiRequestDTO;
import com.uaihebert.uaimockserver.model.UaiRequest;

import java.util.List;

public final class UaiRequestDTOFactory {
    private UaiRequestDTOFactory() {
    }

    public static UaiRequestDTO create(final UaiRequest uaiRequest) {
        final UaiRequestDTO uaiRequestDTO = new UaiRequestDTO();
        uaiRequestDTO.setBodyRequired(uaiRequest.isBodyRequired);
        setHoldRequestInMilli(uaiRequest, uaiRequestDTO);
        uaiRequestDTO.setMethod(uaiRequest.method);
        uaiRequestDTO.setPath(uaiRequest.path);
        uaiRequestDTO.setRequiredContentType(uaiRequest.requiredContentType);

        final List<UaiHeaderDTO> uaiHeaderDTOList = UaiHeaderDTOFactory.create(uaiRequest.requiredHeaderList);
        uaiRequestDTO.setRequiredHeaderList(uaiHeaderDTOList);

        final List<UaiQueryParamDTO> uaiQueryParamDTOList = UaiQueryParamDTOFactory.create(uaiRequest.requiredQueryParamList);
        uaiRequestDTO.setRequiredQueryParamList(uaiQueryParamDTOList);

        return uaiRequestDTO;
    }

    private static void setHoldRequestInMilli(final UaiRequest uaiRequest, final UaiRequestDTO uaiRequestDTO) {
        if (uaiRequest.holdRequestInMilli != 0) {
            uaiRequestDTO.setHoldRequestInMilli(uaiRequest.holdRequestInMilli);
            return;
        }

        uaiRequestDTO.setHoldRequestInMilli(null);
    }
}<commit_msg>Fixing Typo<commit_after>package com.uaihebert.uaimockserver.dto.factory;

import com.uaihebert.uaimockserver.dto.model.UaiHeaderDTO;
import com.uaihebert.uaimockserver.dto.model.UaiQueryParamDTO;
import com.uaihebert.uaimockserver.dto.model.UaiRequestDTO;
import com.uaihebert.uaimockserver.model.UaiRequest;

import java.util.List;

public final class UaiRequestDTOFactory {
    private UaiRequestDTOFactory() {
    }

    public static UaiRequestDTO create(final UaiRequest uaiRequest) {
        final UaiRequestDTO uaiRequestDTO = new UaiRequestDTO();
        uaiRequestDTO.setBodyRequired(uaiRequest.isBodyRequired);
        setHoldRequestInMilli(uaiRequest, uaiRequestDTO);
        uaiRequestDTO.setMethod(uaiRequest.method);
        uaiRequestDTO.setPath(uaiRequest.path);
        uaiRequestDTO.setRequiredContentType(uaiRequest.requiredContentType);

        final List<UaiHeaderDTO> uaiHeaderDTOList = UaiHeaderDTOFactory.create(uaiRequest.requiredHeaderList);
        uaiRequestDTO.setRequiredHeaderList(uaiHeaderDTOList);

        final List<UaiQueryParamDTO> uaiQueryParamDTOList = UaiQueryParamDTOFactory.create(uaiRequest.requiredQueryParamList);
        uaiRequestDTO.setRequiredQueryParamList(uaiQueryParamDTOList);

        return uaiRequestDTO;
    }

    //test

    private static void setHoldRequestInMilli(final UaiRequest uaiRequest, final UaiRequestDTO uaiRequestDTO) {
        if (uaiRequest.holdRequestInMilli != 0) {
            uaiRequestDTO.setHoldRequestInMilli(uaiRequest.holdRequestInMilli);
            return;
        }

        uaiRequestDTO.setHoldRequestInMilli(null);
    }
}
{'fraction_non_alphanumeric': 0.07462686567164178, 'fraction_numerical': 0.0006218905472636816, 'mean_word_length': 4.508561643835616, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7324102', 'n_tokens_mistral': 1023, 'n_tokens_neox': 1056, 'n_words': 126}