<commit_before>package com.tesco.bootcamp.orderreview.service;

import com.tesco.bootcamp.orderreview.representations.Customer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Component
@Configuration
public class OrderReviewService {

    @Value("${customerAPi.url}")
    private String customerAPiURi;


    public String getCustomerName(String customerID) {
        RestTemplate restTemplate = new RestTemplate();
        //String url = "http://customers.dev-environment.tesco.codurance.io:8080/customer?login=";
        try {
            ResponseEntity<Customer> collectRequestResult = restTemplate.exchange(
                    customerAPiURi+"/customer?login=" + customerID+"&password=<PASSWORD>",
                    HttpMethod.GET,
                    null,
                    new ParameterizedTypeReference<Customer>() {
                    });
            return collectRequestResult.getBody().getCustomerName().toString();
            //logger.info("Collecting parcels from the shop code: " + collectRequestResult.getStatusCode());


        } catch (Exception e) {
            //logger.error("Parcels cannot be collected from the shop", e);
            throw new RuntimeException("Parcels cannot be collected from the shop", e);
        }
    }

}<commit_msg>keep up OrderReviewService to remove Vans Parcel references<commit_after>package com.tesco.bootcamp.orderreview.service;

import com.tesco.bootcamp.orderreview.representations.Customer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Component
@Configuration
public class OrderReviewService {

    @Value("${customerAPi.url}")
    private String customerAPiURi;


    public String getCustomerName(String customerID) {
        RestTemplate restTemplate = new RestTemplate();
        try {
            ResponseEntity<Customer> collectRequestResult = restTemplate.exchange(
                    customerAPiURi+"/customer?login=" + customerID+"&password=<PASSWORD>",
                    HttpMethod.GET,
                    null,
                    new ParameterizedTypeReference<Customer>() {
                    });
            return collectRequestResult.getBody().getCustomerName().toString();

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
{'fraction_non_alphanumeric': 0.09577754891864057, 'fraction_numerical': 0.0013731548232063166, 'mean_word_length': 3.29160530191458, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '378479', 'n_tokens_mistral': 720, 'n_tokens_neox': 695, 'n_words': 140}