<commit_before># clr

A command line tool for executing custom python scripts.

## Getting Started

* Install clr
```
$ pip install git+https://github.com/ColorGenomics/clr.git@v0.1.2
```

* Create a custom command
```
# clr_commands/say.py
class Commands(object):
    descr = "say commands"
    
    def cmd_hello_world(self):
        print "hello world!"

COMMANDS = Commands()
```

* Create clrfile.py in your root directory
```
# clrfile.py
commands = {
  'say': 'clr_commands.say',
}
```

* Run your command
```
$ clr say:hello_world
> hello world!
```

## Useful commands
* Get available namespaces
```
$ clr help
```

* Get available commands in a namespace
```
$ clr help namespace
```<commit_msg>Make pathnames in comments more explicit<commit_after># clr

A command line tool for executing custom python scripts.

## Getting Started

* Install clr
```
$ pip install git+https://github.com/ColorGenomics/clr.git@v0.1.2
```

* Create a custom command
```
# color/src/clr_commands/say.py
class Commands(object):
    descr = "say commands"
    
    def cmd_hello_world(self):
        print "hello world!"

COMMANDS = Commands()
```

* Create clrfile.py in your root directory
```
# color/clrfile.py
commands = {
  'say': 'clr_commands.say',
}
```

* Run your command
```
$ clr say:hello_world
> hello world!
```

## Useful commands
* Get available namespaces
```
$ clr help
```

* Get available commands in a namespace
```
$ clr help namespace
```
{'fraction_non_alphanumeric': 0.1397109428768066, 'fraction_numerical': 0.0041293874741913286, 'mean_word_length': 3.862876254180602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1904764', 'n_tokens_mistral': 519, 'n_tokens_neox': 490, 'n_words': 141}