<commit_before>package com.ofg.warsjawa.controller

import com.ofg.infrastructure.web.resttemplate.fluent.ServiceRestClient
import com.ofg.twitter.controller.place.extractor.CityFinder
import com.wordnik.swagger.annotations.Api
import com.wordnik.swagger.annotations.ApiOperation
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

import javax.validation.constraints.NotNull

import static org.springframework.web.bind.annotation.RequestMethod.POST

@Slf4j
@RestController
@RequestMapping('/client')
@Api(value = "client", description = "Operations on clients")
class ClientController {

    @Autowired
    def  ServiceRestClient serviceRestClient

    @RequestMapping(
            value = '/{name}/{surname}/{age}/{jobPosition}/{loanAmount}',
            method = POST)
    @ApiOperation(value = "proccess loan ",
            notes = "a mega api call")
    String applyForLoan(  @RequestBody @NotNull Client client) {
        log.info("name: ${client.name}, surname: ${client.surname} age: ${client.age}, job:${client.jobPosition}, loanAmount: ${client.loanAmount}")
        serviceRestClient.forService("")
        return "{}"
    }
}
<commit_msg>controller stub3<commit_after>package com.ofg.warsjawa.controller

import com.ofg.infrastructure.web.resttemplate.fluent.ServiceRestClient
import com.ofg.twitter.controller.place.extractor.CityFinder
import com.wordnik.swagger.annotations.Api
import com.wordnik.swagger.annotations.ApiOperation
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

import javax.validation.constraints.NotNull

import static org.springframework.web.bind.annotation.RequestMethod.POST

@Slf4j
@RestController
@RequestMapping('/client')
@Api(value = "client", description = "Operations on clients")
class ClientController {

    @Autowired
    ServiceRestClient serviceRestClient

    @RequestMapping(
            value = '/loan',
            method = POST)
    @ApiOperation(value = "proccess loan ",
            notes = "a mega api call")
    String applyForLoan(  @RequestBody @NotNull Client client) {
        log.info("name: ${client.name}, surname: ${client.surname} age: ${client.age}, job:${client.jobPosition}, loanAmount: ${client.loanAmount}")
        serviceRestClient.forService("")
        return "{}"
    }
}

{'fraction_non_alphanumeric': 0.11177927131234525, 'fraction_numerical': 0.0017686593562079944, 'mean_word_length': 4.724696356275303, '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': '7488072', 'n_tokens_mistral': 792, 'n_tokens_neox': 785, 'n_words': 144}