<commit_before>PH Toolkit [![Build Status](http://ci.caseif.net/job/PH%20Toolkit/badge/icon)](http://ci.caseif.net/job/PH%20Toolkit/)
========

PH Toolkit is a lightweight Java toolkit for submitting arbitrary information to a web server (i.e. "phoning home").

Contributing
------------

Pull requests are always welcome. Contributions should first and foremost compile, and should follow
[Google Java Style](https://google.github.io/styleguide/javaguide.html).

Building
--------

PH Toolkit uses Gradle to handle compilation and dependencies.

1. Clone the repo: `git clone https://github.com/caseif/PH-Toolkit.git`
2. Build the project: `./gradlew` (`gradlew` on Windows)

License
-------

PH-Toolkit is made available under the BSD 3-Clause license. Its source and binaries may be used and distributed within
the license's bounds.
<commit_msg>Update README to reflect new name and add example code<commit_after>PH Toolkit [![Build Status](http://ci.caseif.net/job/jTelemetry/badge/icon)](http://ci.caseif.net/job/jTelemetry/)
========

PH Toolkit is a lightweight Java toolkit for submitting arbitrary information to a web server (i.e. "phoning home").

Usage
-----

To use jTelemetry, first create an instance of the main class:

```
JTelemetry jt = new JTelemetry("http://example.com/post_page.php");
```

Then, create a `Payload` object and add data to it:

```
JTelemetry.Payload payload = jt.createPayload();
payload.addData("someString", "example");
payload.addData("someInt", 5);
payload.addData("someStringArray", new String[]{"something, something else"});
```

Finally, submit the data to the server:

```
payload.submit();
```

Contributing
------------

Pull requests are always welcome. Contributions should first and foremost compile, and should follow
[Google Java Style](https://google.github.io/styleguide/javaguide.html).

Building
--------

jTelemetry uses Gradle to handle compilation and dependencies.

1. Clone the repo: `git clone https://github.com/caseif/jTelemetry.git`
2. Build the project: `./gradlew` (`gradlew` on Windows)

License
-------

jTelemetry is made available under the BSD 3-Clause license. Its source and binaries may be used and distributed within
the license's bounds.

{'fraction_non_alphanumeric': 0.14021641118124437, 'fraction_numerical': 0.004959422903516681, 'mean_word_length': 4.221176470588235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6998582', 'n_tokens_mistral': 671, 'n_tokens_neox': 637, 'n_words': 230}