<commit_before>package com.ofg.infrastructure.web.resttemplate.fluent

import com.ofg.infrastructure.web.resttemplate.fluent.delete.DeleteMethod
import com.ofg.infrastructure.web.resttemplate.fluent.delete.DeleteMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.get.GetMethod
import com.ofg.infrastructure.web.resttemplate.fluent.get.GetMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.head.HeadMethod
import com.ofg.infrastructure.web.resttemplate.fluent.head.HeadMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.options.OptionsMethod
import com.ofg.infrastructure.web.resttemplate.fluent.options.OptionsMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.post.PostMethod
import com.ofg.infrastructure.web.resttemplate.fluent.post.PostMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.put.PutMethod
import com.ofg.infrastructure.web.resttemplate.fluent.put.PutMethodBuilder
import groovy.transform.CompileStatic
import org.springframework.web.client.RestOperations

/**
 * Point of entry of the fluent API over {@link RestOperations}.
 * This class gives methods for each of the HttpMethods and delegates to the root of
 * the fluent API of that method.
 * 
 * @see DeleteMethod
 * @see GetMethod
 * @see HeadMethod
 * @see OptionsMethod
 * @see PostMethod
 * @see PutMethod
 */
@CompileStatic
class HttpMethodBuilder {

    private final RestOperations restOperations

    /**
     * URL of an external URL or a service retrieved via service discovery 
     */
    private final String serviceUrl

    HttpMethodBuilder(RestOperations restOperations) {
        this('', restOperations)
    }

    HttpMethodBuilder(String serviceUrl, RestOperations restOperations) {
        this.restOperations = restOperations
        this.serviceUrl = serviceUrl
    }

    public DeleteMethod delete() {
        return new DeleteMethodBuilder(serviceUrl, restOperations)
    }

    public GetMethod get() {
        return new GetMethodBuilder(serviceUrl, restOperations)
    }

    public HeadMethod head() {
        return new HeadMethodBuilder(serviceUrl, restOperations)
    }

    public OptionsMethod options() {
        return new OptionsMethodBuilder(serviceUrl, restOperations)
    }

    public PostMethod post() {
        return new PostMethodBuilder(serviceUrl, restOperations)
    }

    public PutMethod put() {
        return new PutMethodBuilder(serviceUrl, restOperations)
    }

}<commit_msg>Removed unnecessary public keywords<commit_after>package com.ofg.infrastructure.web.resttemplate.fluent

import com.ofg.infrastructure.web.resttemplate.fluent.delete.DeleteMethod
import com.ofg.infrastructure.web.resttemplate.fluent.delete.DeleteMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.get.GetMethod
import com.ofg.infrastructure.web.resttemplate.fluent.get.GetMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.head.HeadMethod
import com.ofg.infrastructure.web.resttemplate.fluent.head.HeadMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.options.OptionsMethod
import com.ofg.infrastructure.web.resttemplate.fluent.options.OptionsMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.post.PostMethod
import com.ofg.infrastructure.web.resttemplate.fluent.post.PostMethodBuilder
import com.ofg.infrastructure.web.resttemplate.fluent.put.PutMethod
import com.ofg.infrastructure.web.resttemplate.fluent.put.PutMethodBuilder
import groovy.transform.CompileStatic
import org.springframework.web.client.RestOperations

/**
 * Point of entry of the fluent API over {@link RestOperations}.
 * This class gives methods for each of the HttpMethods and delegates to the root of
 * the fluent API of that method.
 * 
 * @see DeleteMethod
 * @see GetMethod
 * @see HeadMethod
 * @see OptionsMethod
 * @see PostMethod
 * @see PutMethod
 */
@CompileStatic
class HttpMethodBuilder {

    private final RestOperations restOperations

    /**
     * URL of an external URL or a service retrieved via service discovery 
     */
    private final String serviceUrl

    HttpMethodBuilder(RestOperations restOperations) {
        this('', restOperations)
    }

    HttpMethodBuilder(String serviceUrl, RestOperations restOperations) {
        this.restOperations = restOperations
        this.serviceUrl = serviceUrl
    }

    DeleteMethod delete() {
        return new DeleteMethodBuilder(serviceUrl, restOperations)
    }

    GetMethod get() {
        return new GetMethodBuilder(serviceUrl, restOperations)
    }

    HeadMethod head() {
        return new HeadMethodBuilder(serviceUrl, restOperations)
    }

    OptionsMethod options() {
        return new OptionsMethodBuilder(serviceUrl, restOperations)
    }

    PostMethod post() {
        return new PostMethodBuilder(serviceUrl, restOperations)
    }

    PutMethod put() {
        return new PutMethodBuilder(serviceUrl, restOperations)
    }

}
{'fraction_non_alphanumeric': 0.07788539144471347, 'fraction_numerical': 0.0, 'mean_word_length': 4.273404255319149, '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': '1223956', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1353, 'n_words': 297}