<commit_before># Yar RPC Client for Java

[![Build Status](https://travis-ci.org/starlight36/yar-client-java.png?branch=master)](https://travis-ci.org/starlight36/yar-client-java)
[![Coverage Status](https://coveralls.io/repos/starlight36/yar-client-java/badge.svg)](https://coveralls.io/r/starlight36/yar-client-java)
[![JitPack](https://img.shields.io/github/tag/starlight36/yar-client-java.svg?label=JitPack)](https://jitpack.io/#starlight36/yar-client-java/v0.1.4)

A simple Java client for [Yar RPC framework](https://github.com/laruence/yar).

## Introduction

Yar is a light RPC framework for PHP written by Laruence. 
If you are looking for a Java client for Yar, this project may
solve your problems.

## Usage

Use this client is very simple, just few codes:

```java
YarClient client = new YarClient("http://localhost/yar.php");
Integer timestamp = client.call("doSomething", Integer.class, "Hello");
System.out.println(timestamp);
client.close();
```

## Downloads

### Jar

Coming soon..

### Maven

Add the JitPack repository to your build file.

```xml
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
```

Add the dependency in the form.

```xml
<dependency>
    <groupId>com.github.starlight36</groupId>
    <artifactId>yar-client-java</artifactId>
    <version>v0.1.4</version>
</dependency>
```

### Build

To build this project, just use maven.

```shell
mvn clean package -Dmaven.test.skip=true
```

### Test

To test this project, you need to provide a php http server 
listening on localhost:8025. `src/test/resources/yar.php` is the
server script.

Use php build-in server is a good idea.

```shell
php -ddate.timezone=PRC -dextension=yar.so -S 127.0.0.1:8095 -t src/test/resources
```

## Limitation

* Native PHP packager is not support correctly.
* Concurrent or asynchronous call is not support temporarily.
* Only support HTTP transport, socket transport is planed.

## Feedback

If you any questions, use [Issues](https://github.com/starlight36/yar-client-java/issues).
<commit_msg>Fix a typo<commit_after># Yar RPC Client for Java

[![Build Status](https://travis-ci.org/starlight36/yar-client-java.png?branch=master)](https://travis-ci.org/starlight36/yar-client-java)
[![Coverage Status](https://coveralls.io/repos/starlight36/yar-client-java/badge.svg)](https://coveralls.io/r/starlight36/yar-client-java)
[![JitPack](https://img.shields.io/github/tag/starlight36/yar-client-java.svg?label=JitPack)](https://jitpack.io/#starlight36/yar-client-java/v0.1.4)

A simple Java client for [Yar RPC framework](https://github.com/laruence/yar).

## Introduction

Yar is a light RPC framework for PHP written by Laruence. 
If you are looking for a Java client for Yar, this project may
solve your problems.

## Usage

Use this client is very simple, just few codes:

```java
YarClient client = new YarClient("http://localhost/yar.php");
Integer timestamp = client.call("doSomething", Integer.class, "Hello");
System.out.println(timestamp);
client.close();
```

## Downloads

### Jar

Coming soon..

### Maven

Add the JitPack repository to your build file.

```xml
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
```

Add the dependency in the form.

```xml
<dependency>
    <groupId>com.github.starlight36</groupId>
    <artifactId>yar-client-java</artifactId>
    <version>v0.1.4</version>
</dependency>
```

### Build

To build this project, just use maven.

```shell
mvn clean package -Dmaven.test.skip=true
```

### Test

To test this project, you need to provide a php http server 
listening on localhost:8095. `src/test/resources/yar.php` is the
server script.

Use php build-in server is a good idea.

```shell
php -ddate.timezone=PRC -dextension=yar.so -S 127.0.0.1:8095 -t src/test/resources
```

## Limitation

* Native PHP packager is not support correctly.
* Concurrent or asynchronous call is not support temporarily.
* Only support HTTP transport, socket transport is planed.

## Feedback

If you any questions, use [Issues](https://github.com/starlight36/yar-client-java/issues).

{'fraction_non_alphanumeric': 0.1475690202785243, 'fraction_numerical': 0.01759100903982409, 'mean_word_length': 4.422516556291391, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3534056', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1393, 'n_words': 362}