<commit_before>elzar
=====

## Installation

Copy elzar.js to "/Company Home/Data Dictionary/Scripts"

## Usage

Add
```javascript
<import resource="/Company Home/Data Dictionary/Scripts/jshelper.js">
```
as the first line of your script.

<commit_msg>First stab at documentation<commit_after>elzar
=====

jQuery-inspired JavaScript tools for Alfresco


## Installation

Copy elzar.js to "/Company Home/Data Dictionary/Scripts"

## Usage

Add
```javascript
<import resource="/Company Home/Data Dictionary/Scripts/jshelper.js">
```
as the first line of your script.

## Documentation

### NodeRef selector

```javascript
var node = $("workspace://SpacesStore/683a7581-b138-47be-a367-cceddb5d6bf8");
```

### Search query selector

```javascript
var results = $("name:test")
```

### dir

```javascript
$.dir(object);
```

Prints all properties of the object.

### bean

```javascript
var nodeService = $.bean("NodeService");
```

Returns the Spring bean with the given name.

### Other

* console.log: Alias for logger.log
* JSON.stringify: Alias for jsonUtils.toJSONString



{'fraction_non_alphanumeric': 0.14604651162790697, 'fraction_numerical': 0.01674418604651163, 'mean_word_length': 4.879781420765028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6552473', 'n_tokens_mistral': 367, 'n_tokens_neox': 333, 'n_words': 97}