<commit_before># AngularJS Masonry Directive [![Build Status](https://travis-ci.org/passy/angular-masonry.png)](https://travis-ci.org/passy/angular-masonry) [![Dependency Status](https://gemnasium.com/passy/angular-masonry.png)](https://gemnasium.com/passy/angular-masonry) [![Code Climate](https://codeclimate.com/github/passy/angular-masonry.png)](https://codeclimate.com/github/passy/angular-masonry)

[Homepage](http://passy.github.io/angular-masonry)

An [AngularJS](http://angularjs.org/) directive to work with <NAME>'s [Masonry](http://masonry.desandro.com/).

## Usage

1. Install via either [bower](http://bower.io/) or [npm](https://www.npmjs.com/):
1a. `bower install --save angular-masonry`
1b. `npm install --save angular-masonry`
2. Add `wu.masonry` to your application's module dependencies.
2. Include dependencies in your HTML.
3. Use the `masonry` directive.

## Example

See the [homepage](http://passy.github.io/angular-masonry) for a live example.

```html
<div masonry>
    <div class="masonry-brick" ng-repeat="brick in bricks">
        <img ng-src="{{ brick.src }}" alt="A masonry brick">
    </div>
</div>
```
<commit_msg>Add detail to Usage<commit_after># AngularJS Masonry Directive [![Build Status](https://travis-ci.org/passy/angular-masonry.png)](https://travis-ci.org/passy/angular-masonry) [![Dependency Status](https://gemnasium.com/passy/angular-masonry.png)](https://gemnasium.com/passy/angular-masonry) [![Code Climate](https://codeclimate.com/github/passy/angular-masonry.png)](https://codeclimate.com/github/passy/angular-masonry)

[Homepage](http://passy.github.io/angular-masonry)

An [AngularJS](http://angularjs.org/) directive to work with <NAME>'s [Masonry](http://masonry.desandro.com/).

## Usage

1. Install via either [bower](http://bower.io/) or [npm](https://www.npmjs.com/):
    1. `bower install --save angular-masonry`
    2. `npm install --save angular-masonry`
2. Add `wu.masonry` to your application's module dependencies.
3. Include dependencies in your HTML.
    1. When using bower:
        
        ```html
        <script src="bower_components/jquery/dist/jquery.js"></script>
	    <script src="bower_components/jquery-bridget/jquery.bridget.js"></script>
	    <script src="bower_components/get-style-property/get-style-property.js"></script>
	    <script src="bower_components/get-size/get-size.js"></script>
	    <script src="bower_components/eventEmitter/EventEmitter.js"></script>
	    <script src="bower_components/eventie/eventie.js"></script>
	    <script src="bower_components/doc-ready/doc-ready.js"></script>
	    <script src="bower_components/matches-selector/matches-selector.js"></script>
	    <script src="bower_components/fizzy-ui-utils/utils.js"></script>
	    <script src="bower_components/outlayer/item.js"></script>
	    <script src="bower_components/outlayer/outlayer.js"></script>
	    <script src="bower_components/masonry/masonry.js"></script>
	    <script src="bower_components/imagesloaded/imagesloaded.js"></script>
	    <script src="bower_components/angular/angular.js"></script>
	    <script src="bower_components/angular-masonry/angular-masonry.js"></script>
        ```
    
    2. When using npm:
        
        ```html
        <script src="node_modules/jquery/dist/jquery.js"></script>
        <script src="node_modules/jquery-bridget/jquery.bridget.js"></script>
        <script src="node_modules/desandro-get-style-property/get-style-property.js"></script>
        <script src="node_modules/get-size/get-size.js"></script>
        <script src="node_modules/wolfy87-eventemitter/EventEmitter.js"></script>
        <script src="node_modules/eventie/eventie.js"></script>
        <script src="node_modules/doc-ready/doc-ready.js"></script>
        <script src="node_modules/desandro-matches-selector/matches-selector.js"></script>
        <script src="node_modules/fizzy-ui-utils/utils.js"></script>
        <script src="node_modules/outlayer/item.js"></script>
        <script src="node_modules/outlayer/outlayer.js"></script>
        <script src="node_modules/masonry-layout/masonry.js"></script>
        <script src="node_modules/imagesloaded/imagesloaded.js"></script>
        <script src="node_modules/angular/angular.js"></script>
        <script src="node_modules/angular-masonry/angular-masonry.js"></script>
        ```
    
4. Use the `masonry` directive.

## Example

See the [homepage](http://passy.github.io/angular-masonry) for a live example.

```html
<div masonry>
    <div class="masonry-brick" ng-repeat="brick in bricks">
        <img ng-src="{{ brick.src }}" alt="A masonry brick">
    </div>
</div>
```

{'fraction_non_alphanumeric': 0.17536263260445983, 'fraction_numerical': 0.0034639532366313053, 'mean_word_length': 4.032679738562091, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, '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': '4680940', 'n_tokens_mistral': 1591, 'n_tokens_neox': 1546, 'n_words': 233}