<commit_before>jquery.capture.js
=======================

Use jQuery.Deferred() to preload images.

## Usage:

```$.capture('img1.jpg')  
// return jQuery.Deferred()

$.capture(['img1.jpg', 'img2.jpg'])  
// return jQuery.when.apply(jQuery, [jQuery.Deferred() x array.length])

$.capture()  
// return jQuery.when.apply(jQuery, [jQuery.Deferred() x length of all unique images passed in])

$('img').capture()  
// return $('img'), each image now has .data('captured') which is the jQuery.Deferred()
```

## Options

`attr` = _string_ ( default is `src` )<commit_msg>Fixes markdown formatting of README<commit_after>jquery.capture.js
=======================

Use jQuery.Deferred() to preload images.

## Usage:

```
$.capture('img1.jpg')  
// return jQuery.Deferred()

$.capture(['img1.jpg', 'img2.jpg'])  
// return jQuery.when.apply(jQuery, [jQuery.Deferred() x array.length])

$.capture()  
// return jQuery.when.apply(jQuery, [jQuery.Deferred() x length of all unique images passed in])

$('img').capture()  
// return $('img'), each image now has .data('captured') which is the jQuery.Deferred()
```

## Options

`attr` = _string_ ( default is `src` )
{'fraction_non_alphanumeric': 0.22164502164502164, 'fraction_numerical': 0.005194805194805195, 'mean_word_length': 4.504761904761905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '996418', 'n_tokens_mistral': 382, 'n_tokens_neox': 366, 'n_words': 98}