<commit_before># Moniker
A simple batch file rename tool.

[![Build Status](https://travis-ci.org/jjangsangy/Moniker.svg?branch=master)](https://travis-ci.org/jjangsangy/Moniker) [![PyPI version](https://badge.fury.io/py/moniker.svg)](http://badge.fury.io/py/moniker) [![Documentation Status](https://readthedocs.org/projects/moniker/badge/?version=latest)](https://readthedocs.org/projects/moniker/?badge=latest) [![Coverage Status](https://img.shields.io/coveralls/jjangsangy/Moniker.svg)](https://coveralls.io/r/jjangsangy/Moniker)

![Moniker](https://raw.githubusercontent.com/jjangsangy/Moniker/master/img/moniker.png)

# Installation

Moniker is a simple Python utility for renaming and manipulating the filesystem based
off similar project and work from [Irving Ruan](https://github.com/irvingruan/Moniker.git).

## Install from PyPi

```sh
$ pip install -r requirements.txt && pip install moniker
```

## From Source

To get the latest version to try out, clone the github repo.
```sh
$ git clone https://github.com/jjangsangy/moniker.git
```

Setup dependencies with `requirements.txt` (Optional: Adds Color Output)
```sh
$ pip install -r requirements.txt
```

Use `setup.py` to install
```sh
# For Python 2.x Install
$ python setup.py install

# For Python 3.x
$ python3 setup.py install
```
Thats it!

# Usage

```sh
$ moniker -h

usage: moniker [-h] [-v] [--depth depth] [--replace pat rep]
               [directory]

Simple batch file renaming tool.

positional arguments:
  directory             target directory root

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

  --depth depth         Recursion depth, default is max
  --replace (pat, rep)  File extension patterns
```

### Specify Depth and Replacement Search/Replace

```sh
$ moniker --depth 2 --replace .py .pyo .
```

```javascript
{
    ".": [
        {
            "depth": 0, 
            "moniker": "setup.pyo", 
            "name": "setup.py", 
            "size": 1609
        }
    ], 
    "docs": [
        {<commit_msg>bad single quote<commit_after># Moniker
A simple batch file rename tool.

[![Build Status](https://travis-ci.org/jjangsangy/Moniker.svg?branch=master)](https://travis-ci.org/jjangsangy/Moniker) [![PyPI version](https://badge.fury.io/py/moniker.svg)](http://badge.fury.io/py/moniker) [![Documentation Status](https://readthedocs.org/projects/moniker/badge/?version=latest)](https://readthedocs.org/projects/moniker/?badge=latest) [![Coverage Status](https://img.shields.io/coveralls/jjangsangy/Moniker.svg)](https://coveralls.io/r/jjangsangy/Moniker)

![Moniker](https://raw.githubusercontent.com/jjangsangy/Moniker/master/img/moniker.png)

# Installation

Moniker is a simple Python utility for renaming and manipulating the filesystem based
off similar project and work from [<NAME>](https://github.com/irvingruan/Moniker.git).

## Install from PyPi

```sh
$ pip install -r requirements.txt && pip install moniker
```

## From Source

To get the latest version to try out, clone the github repo.
```sh
$ git clone https://github.com/jjangsangy/moniker.git
```

Setup dependencies with `requirements.txt` (Optional: Adds Color Output)
```sh
$ pip install -r requirements.txt
```

Use `setup.py` to install
```sh
# For Python 2.x Install
$ python setup.py install

# For Python 3.x
$ python3 setup.py install
```
Thats it!

# Usage

```sh
$ moniker -h

usage: moniker [-h] [-v] [--depth depth] [--replace pat rep]
               [directory]

Simple batch file renaming tool.

positional arguments:
  directory             target directory root

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show programs version number and exit

  --depth depth         Recursion depth, default is max
  --replace (pat, rep)  File extension patterns
```

### Specify Depth and Replacement Search/Replace

```sh
$ moniker --depth 2 --replace .py .pyo .
```

```javascript
{
    ".": [
        {
            "depth": 0, 
            "moniker": "setup.pyo", 
            "name": "setup.py", 
            "size": 1609
        }
    ], 
    "docs": [
        {
{'fraction_non_alphanumeric': 0.14545020300931455, 'fraction_numerical': 0.0042990207786004295, 'mean_word_length': 3.188, 'pattern_counts': {'":': 12, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 20, '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': '5841377', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1325, 'n_words': 359}