<commit_before># mvn-search-cli
CLI script for searching artifacts at maven central

## Requirements
- Make sure you have python 2.7+ (<3) installed and the mvn-search script executable
- update your PATH variable to include the executable.

## Usage
```mvn-search <query>```

The I/O to perform a search for vertx would be something like this:
```
→ mvn-search vertx
┌────────────────────────────────────────────────────────────┐
│        group id       │       artifact id        │ version │
├────────────────────────────────────────────────────────────┤
│              io.vertx │       vertx-dependencies │   3.1.0 │
│ com.englishtown.vertx │ vertx-httpservlet-parent │   2.1.0 │
│ com.englishtown.vertx │   vertx-cassandra-parent │   3.1.0 │
│ com.englishtown.vertx │   vertx-zookeeper-parent │   2.1.0 │
│ com.englishtown.vertx │      vertx-jersey-parent │   4.2.0 │
│ com.englishtown.vertx │        vertx-when-parent │   4.1.0 │
│ com.englishtown.vertx │       vertx-guice-parent │   2.1.0 │
│ com.englishtown.vertx │         vertx-hk2-parent │   2.1.0 │
│ com.englishtown.vertx │         oss-parent-vertx │   2.1.0 │
│              io.vertx │              vertx-stack │   3.1.0 │
└────────────────────────────────────────────────────────────┘
```<commit_msg>updated README file to provide 2 simple usage examples<commit_after># mvn-search-cli
CLI script for searching artifacts at maven central

## Requirements
- Make sure you have python 2.7+ (<3) installed and the mvn-search script executable
- update your PATH variable to include the executable.

## Usage
```
mvn-search [-h] [-r max_results] [-f format] [-v] query
```
The supported formats are: 'table', 'mvn', 'buildr', 'ivy', 'grape', 'gradle', 'sbt', 'leiningen'. 'table' is the default output.

## Examples
Search for vertx artifacts:
```
→ mvn-search vertx
┌────────────────────────────────────────────────────────────┐
│        group id       │       artifact id        │ version │
├────────────────────────────────────────────────────────────┤
│              io.vertx │       vertx-dependencies │   3.1.0 │
│ com.englishtown.vertx │ vertx-httpservlet-parent │   2.1.0 │
│ com.englishtown.vertx │   vertx-cassandra-parent │   3.1.0 │
│ com.englishtown.vertx │   vertx-zookeeper-parent │   2.1.0 │
│ com.englishtown.vertx │      vertx-jersey-parent │   4.2.0 │
│ com.englishtown.vertx │        vertx-when-parent │   4.1.0 │
│ com.englishtown.vertx │       vertx-guice-parent │   2.1.0 │
│ com.englishtown.vertx │         vertx-hk2-parent │   2.1.0 │
│ com.englishtown.vertx │         oss-parent-vertx │   2.1.0 │
│              io.vertx │              vertx-stack │   3.1.0 │
└────────────────────────────────────────────────────────────┘
```
Search for the first three results for vertx artifacts with mvn specific output:
```
→ mvn-search vertx -r 3 -f mvn
<dependency>
  <groupId>io.vertx</groupId>
  <artifactId>vertx-dependencies/artifactId>
  <version>3.1.0</version>
</dependency>
<dependency>
  <groupId>com.englishtown.vertx</groupId>
  <artifactId>vertx-httpservlet-parent/artifactId>
  <version>2.1.0</version>
</dependency>
<dependency>
  <groupId>com.englishtown.vertx</groupId>
  <artifactId>vertx-cassandra-parent/artifactId>
  <version>3.1.0</version>
</dependency>
```
{'fraction_non_alphanumeric': 0.2368663594470046, 'fraction_numerical': 0.024270353302611368, 'mean_word_length': 3.1215189873417724, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 28, 'https://': 0, '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': '1579728', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1135, 'n_words': 324}