<commit_before># VanillaJS Helpers

## Ajax

### vanillaAjax
```javascript
/**
 *	@param {object} obj
 * 	{
 *		url: 'string',          required
 *		method: '',             required
 *		data: 'string',			    required
 *		success: function(){},  required
 *		before: function(){},	  [optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 * 	}
 */

vanillaAjax(obj)
```

### vanillaAjaxGet
```javascript
/**
 *	@param {object} obj
 *	{
 *		url: 'string',          required
 *		success: function(){},  required
 *		before: function(){},	  [optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 *	}
 */

vanillaAjaxGet(obj)
```

### vanillaAjaxPost
```javascript
/**
 *	@param {object} obj
 *	{
 *		url: 'string',          required
 *		data: 'string',         required
 *		success: function(){},	required
 *		before: function(){},	  [optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 *	}
 */

vanillaAjaxPost(obj)
```

### vanillaSerialize
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaSerialize(form)
```

## Manipulation

### vanillaRemoveClass
```javascript
/**
 *  @param {object} elem		  - selector
 *  @param {string} elemClass	- class name
 */

vanillaRemoveClass(elem, elemClass)
```

### vanillaAddClass
```javascript
/**
 *  @param {object} elem		  - selector
 *  @param {string} elemClass	- class name
 */

vanillaAddClass(elem, elemClass)
```

### vanillaHasClass
```javascript
/**
 *  @param {object} elem		  - selector
 *  @param {string} elemClass	- class name
 */

vanillaHasClass(elem, elemClass)
```

### vanillaToggleClass
```javascript
/**
 *  @param {object} elem		  - selector
 *  @param {string} elemClass	- class name
 */

vanillaToggleClass(elem, elemClass)
```

## Traversing

### vanillaClosest
```javascript
/**
 *  @param {object} elem    - selector
 *  @param {number} target  - element target
 */

vanillaClosest(elem, target)
```

## Effects

### vanillaFadeOut
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaFadeOut(elem)
```

### vanillaFadeIn
```javascript
/**
 *	@param {object} elem 	   - selector
 *	@param {string} display  - inline-block or block (default)
 */

vanillaFadeIn(elem, display)
```

## Visibility filter

### vanillaIsHidden
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaIsHidden(elem)
```

### vanillaIsVisible
`vanillaIsVisible(elem)`
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaIsVisible(elem)
```<commit_msg>adjusting indentation<commit_after># VanillaJS Helpers

## Ajax

### vanillaAjax
```javascript
/**
 *	@param {object} obj
 * 	{
 *		url: 'string',          required
 *		method: '',             required
 *		data: 'string',			required
 *		success: function(){},  required
 *		before: function(){},	[optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 * 	}
 */

vanillaAjax(obj)
```

### vanillaAjaxGet
```javascript
/**
 *	@param {object} obj
 *	{
 *		url: 'string',          required
 *		success: function(){},  required
 *		before: function(){},	[optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 *	}
 */

vanillaAjaxGet(obj)
```

### vanillaAjaxPost
```javascript
/**
 *	@param {object} obj
 *	{
 *		url: 'string',          required
 *		data: 'string',         required
 *		success: function(){},	required
 *		before: function(){},	[optional]
 *		complete: function(){},	[optional]
 *		error: function(){}     [optional]
 *	}
 */

vanillaAjaxPost(obj)
```

### vanillaSerialize
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaSerialize(form)
```

## Manipulation

### vanillaRemoveClass
```javascript
/**
 *  @param {object} elem		- selector
 *  @param {string} elemClass	- class name
 */

vanillaRemoveClass(elem, elemClass)
```

### vanillaAddClass
```javascript
/**
 *  @param {object} elem		- selector
 *  @param {string} elemClass	- class name
 */

vanillaAddClass(elem, elemClass)
```

### vanillaHasClass
```javascript
/**
 *  @param {object} elem		- selector
 *  @param {string} elemClass	- class name
 */

vanillaHasClass(elem, elemClass)
```

### vanillaToggleClass
```javascript
/**
 *  @param {object} elem		- selector
 *  @param {string} elemClass	- class name
 */

vanillaToggleClass(elem, elemClass)
```

## Traversing

### vanillaClosest
```javascript
/**
 *  @param {object} elem    - selector
 *  @param {number} target  - element target
 */

vanillaClosest(elem, target)
```

## Effects

### vanillaFadeOut
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaFadeOut(elem)
```

### vanillaFadeIn
```javascript
/**
 *	@param {object} elem 		- selector
 *	@param {string} display  	- inline-block or block (default)
 */

vanillaFadeIn(elem, display)
```

## Visibility filter

### vanillaIsHidden
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaIsHidden(elem)
```

### vanillaIsVisible
```javascript
/**
 *  @param {object} elem - selector
 */

vanillaIsVisible(elem)
```
{'fraction_non_alphanumeric': 0.18397157520726412, 'fraction_numerical': 0.0, 'mean_word_length': 3.524107142857143, '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': '7497275', 'n_tokens_mistral': 1815, 'n_tokens_neox': 1727, 'n_words': 378}