<commit_before># ComposerViz

[![Packagist](https://img.shields.io/packagist/v/sandfoxme/composer-viz.svg?maxAge=2592000)](https://packagist.org/packages/sandfoxme/composer-viz)
[![Packagist](https://img.shields.io/github/license/sandfoxme/composer-viz.svg?maxAge=2592000)](https://opensource.org/licenses/MIT)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/sandfoxme/composer-viz.svg?maxAge=2592000)](https://codeclimate.com/github/sandfoxme/composer-viz)
[![Dependency Status](https://img.shields.io/gemnasium/sandfoxme/composer-viz.svg?maxAge=2592000)](https://gemnasium.com/github.com/sandfoxme/composer-viz)

A Composer plugin to generate dependency graph by GraphViz inspired by `bundle viz`

## Installation

Install globally so you can use it on any project

```bash
composer global require sandfoxme/composer-viz:^2.0
```

## Example

Running composer-viz 2.0.0 for itself: `composer viz --output=composer-viz-2.0.0.svg`

![selfie](https://sandfoxme.github.io/composer-viz/composer-viz-2.0.0.svg)

## Usage

```
composer viz [-o|--output OUTPUT] [-f|--format FORMAT] 
             [--no-dev] [--no-php] [--no-ext] [--no-platform] 
             [--no-pkg-versions] [--no-dep-versions] [--no-versions]
```

`-o|--output OUTPUT`: Set output file. If not set, the result will be displayed from temporary file  
`-f|--format FORMAT`: Set output file format. Useful if it is not detected from `--output`  
`--no-dev`: Do not show development dependencies  
`--no-php`: Do not show PHP as a dependency (php and php64)  
`--no-ext`: Do not show extensions as dependencies  
`--no-platform`: `--no-php` + `--no-ext`  
`--no-pkg-versions`: Do not show package versions on graph vertices  
`--no-dep-versions`: Do not show package versions on graph edges  
`--no-versions`: `--no-pkg-versions` + `--no-dep-versions`

## GraphViz

You should install GraphViz on your system first.

Use this in Ubuntu:

````bash
sudo apt-get install graphviz
````

Sometimes you may need additional packages like in Fedora you should also install ``graphviz-gd`` to be able
to export images, like this:

````bash
# dot, svg and postscript work without graphviz-gd but png, jpeg and gif don't
sudo dnf install graphviz graphviz-gd
````
<commit_msg>Unavailable badge<commit_after># ComposerViz

[![Packagist](https://img.shields.io/packagist/v/sandfoxme/composer-viz.svg?maxAge=2592000)](https://packagist.org/packages/sandfoxme/composer-viz)
[![Packagist](https://img.shields.io/github/license/sandfoxme/composer-viz.svg?maxAge=2592000)](https://opensource.org/licenses/MIT)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/sandfoxme/composer-viz.svg?maxAge=2592000)](https://codeclimate.com/github/sandfoxme/composer-viz)

A Composer plugin to generate dependency graph by GraphViz inspired by `bundle viz`

## Installation

Install globally so you can use it on any project

```bash
composer global require sandfoxme/composer-viz:^2.0
```

## Example

Running composer-viz 2.0.0 for itself: `composer viz --output=composer-viz-2.0.0.svg`

![selfie](https://sandfoxme.github.io/composer-viz/composer-viz-2.0.0.svg)

## Usage

```
composer viz [-o|--output OUTPUT] [-f|--format FORMAT] 
             [--no-dev] [--no-php] [--no-ext] [--no-platform] 
             [--no-pkg-versions] [--no-dep-versions] [--no-versions]
```

`-o|--output OUTPUT`: Set output file. If not set, the result will be displayed from temporary file  
`-f|--format FORMAT`: Set output file format. Useful if it is not detected from `--output`  
`--no-dev`: Do not show development dependencies  
`--no-php`: Do not show PHP as a dependency (php and php64)  
`--no-ext`: Do not show extensions as dependencies  
`--no-platform`: `--no-php` + `--no-ext`  
`--no-pkg-versions`: Do not show package versions on graph vertices  
`--no-dep-versions`: Do not show package versions on graph edges  
`--no-versions`: `--no-pkg-versions` + `--no-dep-versions`

## GraphViz

You should install GraphViz on your system first.

Use this in Ubuntu:

````bash
sudo apt-get install graphviz
````

Sometimes you may need additional packages like in Fedora you should also install ``graphviz-gd`` to be able
to export images, like this:

````bash
# dot, svg and postscript work without graphviz-gd but png, jpeg and gif don't
sudo dnf install graphviz graphviz-gd
````

{'fraction_non_alphanumeric': 0.15561694290976058, 'fraction_numerical': 0.017265193370165747, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '1706301', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1484, 'n_words': 395}