<commit_before>gerrit-rest-java-client
======================

[![Build Status](https://travis-ci.org/uwolfer/gerrit-rest-java-client.svg?branch=master)](https://travis-ci.org/uwolfer/gerrit-rest-java-client)
[![Coverage Status](https://img.shields.io/coveralls/uwolfer/gerrit-rest-java-client.svg)](https://coveralls.io/r/uwolfer/gerrit-rest-java-client)
[![Dependency Status](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client/badge)](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)

Introduction
-----------

Java implementation of the [Gerrit Code Review Tool] REST API.

Only Gerrit 2.6 or newer is supported (missing / incomplete REST API in older versions).

This implementation is used for example as base for the [Gerrit IntelliJ Plugin].

Many different authentication-methods are supported (HTTP basic, HTTP digest, LDAP with form,
HTTP password from Gerrit setting, ...).

[Gerrit Code Review Tool]: http://code.google.com/p/gerrit/
[Gerrit IntelliJ Plugin]: https://github.com/uwolfer/gerrit-intellij-plugin


Usage
-------
This library implements <code>[com.google.gerrit.extensions.api.GerritApi]</code>.

You just need a few lines to get it working:
```java
GerritRestApiFactory gerritRestApiFactory = new GerritRestApiFactory();
GerritAuthData.Basic authData = new GerritAuthData.Basic("http://localhost:8080");
// or: authData = new GerritAuthData.Basic("https://example.com/gerrit", "user", "password"");
GerritApi gerritApi = gerritRestApiFactory.create(authData);
List<ChangeInfo> changes = gerritApi.changes().query("status:merged").withLimit(10).get();
```<commit_msg>README: Add a build status badge for AppVeyor<commit_after>gerrit-rest-java-client
======================

[![Linux Build](https://travis-ci.org/uwolfer/gerrit-rest-java-client.svg?branch=master)](https://travis-ci.org/uwolfer/gerrit-rest-java-client)
[![Windows Build](https://ci.appveyor.com/api/projects/status/7c020g5h5dmuxt77/branch/master?svg=true)](https://ci.appveyor.com/project/sschuberth/gerrit-rest-java-client/branch/master)
[![Coverage Status](https://img.shields.io/coveralls/uwolfer/gerrit-rest-java-client.svg)](https://coveralls.io/r/uwolfer/gerrit-rest-java-client)
[![Dependency Status](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client/badge)](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)

Introduction
-----------

Java implementation of the [Gerrit Code Review Tool] REST API.

Only Gerrit 2.6 or newer is supported (missing / incomplete REST API in older versions).

This implementation is used for example as base for the [Gerrit IntelliJ Plugin].

Many different authentication-methods are supported (HTTP basic, HTTP digest, LDAP with form,
HTTP password from Gerrit setting, ...).

[Gerrit Code Review Tool]: http://code.google.com/p/gerrit/
[Gerrit IntelliJ Plugin]: https://github.com/uwolfer/gerrit-intellij-plugin


Usage
-------
This library implements <code>[com.google.gerrit.extensions.api.GerritApi]</code>.

You just need a few lines to get it working:
```java
GerritRestApiFactory gerritRestApiFactory = new GerritRestApiFactory();
GerritAuthData.Basic authData = new GerritAuthData.Basic("http://localhost:8080");
// or: authData = new GerritAuthData.Basic("https://example.com/gerrit", "user", "password"");
GerritApi gerritApi = gerritRestApiFactory.create(authData);
List<ChangeInfo> changes = gerritApi.changes().query("status:merged").withLimit(10).get();
```
{'fraction_non_alphanumeric': 0.16465299241359932, 'fraction_numerical': 0.006743467266085979, 'mean_word_length': 5.402877697841727, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, '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': '35548', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1126, 'n_words': 223}