<commit_before>densifyjs
=========
----

A plain JavaScript library to change images and background images from standard to retina resolution.

You don't need **jQuery** or other libraries to use it.

----

In your HTML page

```html
<!DOCTYPE html>
<html>
<head>
    <title>densifyjs example</title>
    <script type="text/javascript" src="densify.js"></script>
    <script type="text/javascript">
        // OPTIONAL
        // if you want to set a different data attribute:
        // default name is "data-retina"
        DensifyJS.setAttribute("data-retina");
    </script>
</head>
<body>
    <div data-retina="image-retina-resolution.png" style="background-image:url(image-standard-resolution.png);"></div>
    <img data-retina="image-retina-resolution.png" src="image-standard-resolution.png">
</body>
</html>
```

----

API | Params | Required | Description
--- | --- | --- | ---
`setAttribute`  | `attributeName`*:String* | No        | Sets the name of the HTML5 data attribute name, default value is `data-retina`<commit_msg>Some grammar fix<commit_after>densifyjs
=========

A plain JavaScript library to change images and background images from standard to retina resolution.

You don't need **jQuery** or other libraries to use it.


#####In your HTML page

```html
<!DOCTYPE html>
<html>
<head>
    <title>densifyjs example</title>
    <script type="text/javascript" src="densify.js"></script>
    <script type="text/javascript">
        // OPTIONAL
        // if you want to set a different data attribute:
        // default name is "data-retina"
        DensifyJS.setAttribute("data-retina");
    </script>
</head>
<body>
    <div data-retina="image-retina-resolution.png" style="background-image:url(image-standard-resolution.png);"></div>
    <img data-retina="image-retina-resolution.png" src="image-standard-resolution.png">
</body>
</html>
```

#####Documentation

API | Params | Required | Description
--- | --- | --- | ---
`setAttribute`  | `attributeName`*:String* | No        | Sets the name of the HTML5 data attribute name, default value is `data-retina`
{'fraction_non_alphanumeric': 0.16138328530259366, 'fraction_numerical': 0.0009606147934678194, 'mean_word_length': 3.44136460554371, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '155646', 'n_tokens_mistral': 649, 'n_tokens_neox': 618, 'n_words': 178}