<commit_before>[![Build Status](https://travis-ci.org/Codearte/accurest-maven-plugin.svg?branch=master)](https://travis-ci.org/Codearte/accurest-maven-plugin) [![Coverage Status](https://coveralls.io/repos/github/Codearte/accurest-maven-plugin/badge.svg?branch=master)](https://coveralls.io/github/Codearte/accurest-maven-plugin?branch=master)

Accurate REST Maven Plugin
====

Sample usage
----

```xml
<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
                <goal>generateSpecs</goal>
            </goals>
        </execution>
    </executions>
</plugin>
```


Project default directories
---

_contractsDir_ - contract definitions:

    /src/test/resources/contracts

_generatedTestSourcesDir_ - Generated accurest specifications:

    /target/generated-test-sources/accurest
   
Publishing wiremock stubs jar
---

Project configuration

```xml
<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <version>${accurest.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
            </goals>
        </execution>
    </executions>
</plugin>
<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.6</version>
    <dependencies>
        <dependency>
            <groupId>io.codearte.accurest</groupId>
            <artifactId>stubs-assembly-descriptor</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <descriptorRefs>
            <descriptorRef>stubs</descriptorRef>
        </descriptorRefs>
    </configuration>
</plugin>
```

Deploy to artifact repository using `mvn deploy`<commit_msg>update documentation<commit_after>[![Build Status](https://travis-ci.org/Codearte/accurest-maven-plugin.svg?branch=master)](https://travis-ci.org/Codearte/accurest-maven-plugin) [![Coverage Status](https://coveralls.io/repos/github/Codearte/accurest-maven-plugin/badge.svg?branch=master)](https://coveralls.io/github/Codearte/accurest-maven-plugin?branch=master)

Accurate REST Maven Plugin
====

Sample usage
----

```xml
<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
                <goal>generateSpecs</goal>
            </goals>
        </execution>
    </executions>
</plugin>
```


Project default directories
---

_contractsDir_ - contract definitions:

    /src/test/resources/contracts

_generatedTestSourcesDir_ - Generated accurest specifications:

    /target/generated-test-sources/accurest
   
Publishing wiremock stubs jar
---

Project configuration

```xml
<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <version>${accurest.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
            </goals>
        </execution>
    </executions>
</plugin>
<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.6</version>
    <dependencies>
        <dependency>
            <groupId>io.codearte.accurest</groupId>
            <artifactId>stubs-assembly-descriptor</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <descriptorRefs>
            <descriptorRef>stubs</descriptorRef>
        </descriptorRefs>
    </configuration>
</plugin>
```

Deploy to artifact repository using `mvn deploy`
{'fraction_non_alphanumeric': 0.1401118949160788, 'fraction_numerical': 0.0019459985405010946, 'mean_word_length': 2.6261022927689592, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2511500', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1221, 'n_words': 170}