<commit_before># minBlock.js
A pure javascript implementation of Matrix Grid (used to generate Github-like random avatars)


## Demo
http://flouthoc.github.io/minBlock.js/

## Usage
#### Getting Started:
```html
<script type="text/javascript" src="https://raw.githubusercontent.com/flouthoc/minBlock.js/master/index.js"></script>
```

#### Random Color:
<pre><code>
  demo = new minBlock({
        divId          : canvasID,
        time           : timefortransition,
        numBlocks      : number of blocks per edge,
        randomColor    : true,
        colorPrimary   : PrimaryColor,
        colorSecondary : SecondaryColor
  });
  // "time" defines the Delay between two transitions
</code></pre>

#### Fixed Color:
<pre><code>
  demo = new minBlock({
        divId          : canvasID,
        time           : timefortransition,
        numBlocks      : number of blocks per edge,
        randomColor    : false,
        colorPrimary   : PrimaryColor,
        colorSecondary : SecondaryColor
  });
</code></pre>

#### Pause:
<pre><code>
  demo = new minBlock({
        divId          : CanvasId,
        time           : 300,
        numBlocks      : number of blocks per edge,
        randomColor    : true,
        colorPrimary   : primaryColor,
        colorSecondary : secondaryColor,
        pause: true
  });
</code></pre>

## Todos
1. ~~Making it Sensitive for nxn MatrixFF~~ [by @GreenLantern101](https://github.com/GreenLantern101)
2. ~~Simplifying Arguments To JSON format~~ [by @alvaropinot](https://github.com/alvaropinot)<commit_msg>removing redundant line at the beginning of each code fragment by writing code in markdown code blocks<commit_after># minBlock.js
A pure javascript implementation of Matrix Grid (used to generate Github-like random avatars)


## Demo
http://flouthoc.github.io/minBlock.js/

## Usage
#### Getting Started:
```html
<script type="text/javascript" src="https://raw.githubusercontent.com/flouthoc/minBlock.js/master/index.js"></script>
```

#### Random Color:
```
  demo = new minBlock({
        divId          : canvasID,
        time           : timefortransition,
        numBlocks      : number of blocks per edge,
        randomColor    : true,
        colorPrimary   : PrimaryColor,
        colorSecondary : SecondaryColor
  });
  // "time" defines the Delay between two transitions
```

#### Fixed Color:
```
  demo = new minBlock({
        divId          : canvasID,
        time           : timefortransition,
        numBlocks      : number of blocks per edge,
        randomColor    : false,
        colorPrimary   : PrimaryColor,
        colorSecondary : SecondaryColor
  });
```

#### Pause:
```
  demo = new minBlock({
        divId          : CanvasId,
        time           : 300,
        numBlocks      : number of blocks per edge,
        randomColor    : true,
        colorPrimary   : primaryColor,
        colorSecondary : secondaryColor,
        pause: true
  });
```

## Todos
1. ~~Making it Sensitive for nxn MatrixFF~~ [by @GreenLantern101](https://github.com/GreenLantern101)
2. ~~Simplifying Arguments To JSON format~~ [by @alvaropinot](https://github.com/alvaropinot)
{'fraction_non_alphanumeric': 0.11566571337782014, 'fraction_numerical': 0.0069907848744836356, 'mean_word_length': 2.455543358946213, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 6, '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': '1233601', 'n_tokens_mistral': 951, 'n_tokens_neox': 897, 'n_words': 247}