<commit_before># Installation in 5 simple steps

## 1. Download Gallery Bundle and Admin Gallery Bundle

Add to composer.json

```
"require": {
    "fsi/gallery-bundle": "1.0.*@dev",
    "fsi/admin-gallery-bundle": "1.0.*@dev"
    "doctrine/doctrine-bundle": "~1.2@dev",
}
```

## 2. Register bundles

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // Bundles required by FSiGalleryBundle
        new Liip\ImagineBundle\LiipImagineBundle(),
        new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
        new FSi\Bundle\DoctrineExtensionsBundle\FSiDoctrineExtensionsBundle(),
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),

        // FSiGalleryBundle
        new FSi\Bundle\GalleryBundle\FSiGalleryBundle(),
        new FSi\Bundle\AdminGalleryBundle\FSiAdminGalleryBundle(),
    );
}
```

## 3. Install FSiGalleryBundle

[FSiGallerBundle - Installation](https://github.com/fsi-open/gallery-bundle/blob/master/Resources/doc/installation.md)<commit_msg>Updated installation instructions<commit_after># Installation in 5 simple steps

## 1. Download Gallery Bundle and Admin Gallery Bundle

Add to composer.json

```
"require": {
    "fsi/gallery-bundle": "1.0.*@dev",
    "fsi/admin-gallery-bundle": "1.0.*@dev",
    "liip/imagine-bundle": "0.20.*",
    "doctrine/doctrine-bundle": "dev-master",
    "doctrine/doctrine-cache-bundle": "dev-master"
}
```

## 2. Register bundles

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // Bundles required by FSiGalleryBundle
        new Liip\ImagineBundle\LiipImagineBundle(),
        new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
        new FSi\Bundle\DoctrineExtensionsBundle\FSiDoctrineExtensionsBundle(),
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),

        // FSiGalleryBundle
        new FSi\Bundle\GalleryBundle\FSiGalleryBundle(),
        new FSi\Bundle\AdminGalleryBundle\FSiAdminGalleryBundle(),
    );
}
```

## 3. Install FSiGalleryBundle

[FSiGallerBundle - Installation](https://github.com/fsi-open/gallery-bundle/blob/master/Resources/doc/installation.md)
{'fraction_non_alphanumeric': 0.13488797439414724, 'fraction_numerical': 0.009602194787379973, 'mean_word_length': 3.7462039045553146, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7194147', 'n_tokens_mistral': 746, 'n_tokens_neox': 700, 'n_words': 119}