<commit_before># gifv-player

Javascript library for playing [gifv](http://imgur.com/blog/2014/10/09/introducing-gifv/) files with video browser support detection
and fallback for pure gif.


## Usage

Include the `dist/js/gifv-player.min.js` script in the page and initialize.

    <script src="gifv-player.min.js"></script>
    <script>new GifvPlayer();</script>

The script will search the page for `.gifv-player` wrappers containing a `video`
tag with the available video formats in `source` tags, a `poster` attribute for
the video thumbnail and the original gif URL in the `data-gifv-original`
attribute as a fallback.

    <div class="gifv-player">
        <video poster="sample-poster.png" data-gifv-original="sample-animated.gif" preload="none" loop="true">
            <source type="video/mp4" src="sample-animated.mp4" />
            <source type="video/webm" src="sample-animated.webm" />
        </video>
    </div><commit_msg>Added html highlighting on usage<commit_after># gifv-player

Javascript library for playing [gifv](http://imgur.com/blog/2014/10/09/introducing-gifv/) files with video browser support detection
and fallback for pure gif.


## Usage

Include the `dist/js/gifv-player.min.js` script in the page and initialize.

```html
<script src="gifv-player.min.js"></script>
<script>new GifvPlayer();</script>
```

The script will search the page for `.gifv-player` wrappers containing a `video`
tag with the available video formats in `source` tags, a `poster` attribute for
the video thumbnail and the original gif URL in the `data-gifv-original`
attribute as a fallback.

```html
<div class="gifv-player">
    <video poster="sample-poster.png" data-gifv-original="sample-animated.gif" preload="none" loop="true">
        <source type="video/mp4" src="sample-animated.mp4" />
        <source type="video/webm" src="sample-animated.webm" />
    </video>
</div>
```
{'fraction_non_alphanumeric': 0.13537810682178741, 'fraction_numerical': 0.010576414595452142, 'mean_word_length': 4.099730458221024, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, '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': '1905311', 'n_tokens_mistral': 621, 'n_tokens_neox': 595, 'n_words': 179}