<commit_before># JS Helpers

Collection of small JavaScript helpers. These are usable either in regular JavaScript projects, or with testing frameworks (e.g. Jasmine).

## Documentation

- [simulateMouseEvent](#simulateMouseEvent)

### simulateMouseEvent

```javascript
simulateMouseEvent(object, event_type, button, properties)
```

Simulates any mouse event. This is very handy when testing user interactions with the UI. Event object allows you to set lots of various properties, but most of the time, you just care about two of them: event type (usualy `click`) and mouse button (usualy `left`).

#### Parameters

**object**  <commit_msg>fix anchor in list of functions<commit_after># JS Helpers

Collection of small JavaScript helpers. These are usable either in regular JavaScript projects, or with testing frameworks (e.g. Jasmine).

## Documentation

- [simulateMouseEvent](#simulatemouseevent)

### simulateMouseEvent

```javascript
simulateMouseEvent(object, event_type, button, properties)
```

Simulates any mouse event. This is very handy when testing user interactions with the UI. Event object allows you to set lots of various properties, but most of the time, you just care about two of them: event type (usualy `click`) and mouse button (usualy `left`).

#### Parameters

**object**  
{'fraction_non_alphanumeric': 0.08448540706605223, 'fraction_numerical': 0.0, 'mean_word_length': 5.325242718446602, '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': '3966978', 'n_tokens_mistral': 349, 'n_tokens_neox': 330, 'n_words': 161}