<commit_before>request
=======

Ajax wrapper<commit_msg>README.md<commit_after># request

## GET

```JavaScript
request.get(url, query);
```

```JavaScript
request.get(url, {
	key: 'value'
})
.success(function(response, xhr){
	console.log(response);
})
.error(function(message, xhr){
	console.log(message);
})
.always(function(){
	console.log('always');
});
```

## POST

```JavaScript
request.post(url, data, query);
```

```
request.post(url, {
	key: 'value'
}, {
	key: 'value'
})
.success(function(response, xhr){
	console.log(response);
})
.error(function(message, xhr){
	console.log(message);
})
.always(function(){
	console.log('always');
});
```
{'fraction_non_alphanumeric': 0.2361963190184049, 'fraction_numerical': 0.0, 'mean_word_length': 6.175824175824176, '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': '7071054', 'n_tokens_mistral': 254, 'n_tokens_neox': 240, 'n_words': 38}