<commit_before>package me.abeyta.deckmanager.config;

import static springfox.documentation.builders.PathSelectors.regex;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.google.common.base.Predicate;

import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Bean
    public Docket deckApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .groupName("full-deck-api")
                .apiInfo(apiInfo())
                .select()
                .paths(deckpaths())
                .build();
    }
    
    private Predicate<String> deckpaths() {
        return regex("/decks.*");
    }
    
    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("Deck Manager API")
                .description("This is a RESTful web service that enables one to manage a deck of cards. The service enables you to perform the following actions on a given deck: retrieve, create, delete, and shuffle. There is also an operation to retrieve a list of all the decks the manager is managing.\n" + 
                		"\n" + 
                		"There are two options for shuffling techniques. By default, simple is used. This is toggled by the shuffle.technique property set when starting the application. The two valid values are 'hand' or 'simple'. Not setting the value will default to simple.")
                .license("The MIT License (MIT)")
                .licenseUrl("https://github.com/rabeyta/deck-manager/blob/master/LICENSE")
                .contact("<EMAIL>")
                .build();
    }
}<commit_msg>updated description in swagger config to include link to readme in github<commit_after>package me.abeyta.deckmanager.config;

import static springfox.documentation.builders.PathSelectors.regex;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.google.common.base.Predicate;

import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Bean
    public Docket deckApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .groupName("full-deck-api")
                .apiInfo(apiInfo())
                .select()
                .paths(deckpaths())
                .build();
    }
    
    private Predicate<String> deckpaths() {
        return regex("/decks.*");
    }
    
    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("Deck Manager API")
                .description("This is a RESTful web service that enables one to manage a deck of cards. The service enables you to perform the following actions on a given deck: retrieve, create, delete, and shuffle. There is also an operation to retrieve a list of all the decks the manager is managing.\n" + 
                		"\n" + 
                		"There are two options for shuffling techniques. By default, simple is used. This is toggled by the shuffle.technique property set when starting the application. The two valid values are 'hand' or 'simple'. Not setting the value will default to simple." + 
                		"\n\n For a more thorough description and details check out: <a href='https://github.com/rabeyta/deck-manager/blob/master/README.md'>https://github.com/rabeyta/deck-manager/blob/master/README.md</a>")
                .license("The MIT License (MIT)")
                .licenseUrl("https://github.com/rabeyta/deck-manager/blob/master/LICENSE")
                .contact("<EMAIL>")
                .build();
    }
}
{'fraction_non_alphanumeric': 0.09316920106203234, 'fraction_numerical': 0.0019309678976587015, 'mean_word_length': 2.784474885844749, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '3631772', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1054, 'n_words': 323}