<commit_before># Minor Planet Center Reader #

[![Build Status](https://travis-ci.org/wselwood/MinorPlanetCenterReader.svg?branch=master)](https://travis-ci.org/wselwood/MinorPlanetCenterReader)
[![Maven Central](https://img.shields.io/badge/maven--central-0.1.1-brightgreen.svg)](http://search.maven.org/#artifactdetails|com.github.wselwood|mpc-reader|0.1.1|jar)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/wselwood/MinorPlanetCenterReader/blob/master/LICENSE.md)

## Overview ##
This java library provides a way to read the Minor Planet Catalogues provided by the Minor Planets Center.

This can handle reading either the MPCORB.DAT file, compressed or otherwise and the mpX.txt type files.

## Dependencies ##

We have artifacts hosted on Maven Central. http://search.maven.org/#search|ga|1|mpc-reader 

Gradle:
```compile 'com.github.wselwood:mpc-reader:0.1.1'```

SBT:
```libraryDependencies += "com.github.wselwood" % "mpcreader" % "0.1.1"```

Maven: 
```
<dependency>
    <groupId>com.github.wselwood</groupId>
    <artifactId>mpc-reader</artifactId>
    <version>0.1.0</version>
</dependency>
```

## Example ##

Also see src/com/wselwood/mpcreader/Example.java


```java
import com.wselwood.mpcreader.MinorPlanetReader;
import com.wselwood.mpcreader.MinorPlanetReaderBuilder;
import com.wselwood.mpcreader.MinorPlanet;
import com.wselwood.mpcreader.InvalidDataException;

public class example {
    public static void main(string[] args) {

        MinorPlanetReader reader = null;
        try {
            MinorPlanetReaderBuilder builder = new MinorPlanetReaderBuilder();
            builder.open(new File("./mpn.txt"));

            reader = builder.build();
            while(reader.hasNext()) {
                MinorPlanet mp = reader.next();
                System.out.println(mp.getNumber() + " : " + mp.getReadableDesignation());<commit_msg>Fix maven version<commit_after># Minor Planet Center Reader #

[![Build Status](https://travis-ci.org/wselwood/MinorPlanetCenterReader.svg?branch=master)](https://travis-ci.org/wselwood/MinorPlanetCenterReader)
[![Maven Central](https://img.shields.io/badge/maven--central-0.1.1-brightgreen.svg)](http://search.maven.org/#artifactdetails|com.github.wselwood|mpc-reader|0.1.1|jar)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/wselwood/MinorPlanetCenterReader/blob/master/LICENSE.md)

## Overview ##
This java library provides a way to read the Minor Planet Catalogues provided by the Minor Planets Center.

This can handle reading either the MPCORB.DAT file, compressed or otherwise and the mpX.txt type files.

## Dependencies ##

We have artifacts hosted on Maven Central. http://search.maven.org/#search|ga|1|mpc-reader 

Gradle:
```compile 'com.github.wselwood:mpc-reader:0.1.1'```

SBT:
```libraryDependencies += "com.github.wselwood" % "mpcreader" % "0.1.1"```

Maven: 
```
<dependency>
    <groupId>com.github.wselwood</groupId>
    <artifactId>mpc-reader</artifactId>
    <version>0.1.1</version>
</dependency>
```

## Example ##

Also see src/com/wselwood/mpcreader/Example.java


```java
import com.wselwood.mpcreader.MinorPlanetReader;
import com.wselwood.mpcreader.MinorPlanetReaderBuilder;
import com.wselwood.mpcreader.MinorPlanet;
import com.wselwood.mpcreader.InvalidDataException;

public class example {
    public static void main(string[] args) {

        MinorPlanetReader reader = null;
        try {
            MinorPlanetReaderBuilder builder = new MinorPlanetReaderBuilder();
            builder.open(new File("./mpn.txt"));

            reader = builder.build();
            while(reader.hasNext()) {
                MinorPlanet mp = reader.next();
                System.out.println(mp.getNumber() + " : " + mp.getReadableDesignation());
{'fraction_non_alphanumeric': 0.14578947368421052, 'fraction_numerical': 0.008421052631578947, 'mean_word_length': 4.102013422818792, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 10, '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': '2509702', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1233, 'n_words': 215}