<commit_before>## Documentation
You can see below the API reference of this module.

### `generateModuleService(path, callback)`
Generates content for .service.json file.

#### Params
- **String** `path`: The path to the package.json file.
- **Function** `callback`: A function called with error and .serivce.json file content.

#### Return
- **Promise** A promise used to run the function steps.

### `entrypoint(username, app, instance, host, pub)`
Generates entrypoints by providing needed data.

#### Params
- **String** `username`: The username.
- **String** `app`: The app name.
- **String** `instance`: The instance name.
- **String** `host`: The host value.
- **Boolean** `pub`: A flag if the domain is public or not.

#### Return
- **String** The generated entrypoint.

### `getCompositionDir(app)`
Returns the path to the composition directory.

#### Params
- **String** `app`: The app name.

#### Return
- **String** The path to the composition directory.

### `getInstances(app, callback)`
Gets the instances of a app.

#### Params
- **String** `app`: The app name.
- **Function** `callback`: The callback function.

### `getComposition(app, options, callback)`
Reads the composition files and sends an object:

```js
{ "path/to/some/instance.json": { ... }
```

#### Params
- **String** `app`: The app name.
- **Object** `options`: An object containing:
 - `iName` (Boolean): If `true`, the instance name will be used instead of path name.
- **Function** `callback`: The callback function.

### `generateSymlinks(app, username, callback)`
Generates symlinks for a provided app.

#### Params
- **String** `app`: The app name.<commit_msg>:memo:<commit_after>## Documentation
You can see below the API reference of this module.

### `generateModuleService(path, callback)`
Generates content for .service.json file.

#### Params
- **String** `path`: The path to the package.json file.
- **Function** `callback`: A function called with error and .serivce.json file content.

#### Return
- **Promise** A promise used to run the function steps.

### `entrypoint(username, app, instance, host, pub)`
Generates entrypoints by providing needed data.

#### Params
- **String** `username`: The username.
- **String** `app`: The app name.
- **String** `instance`: The instance name.
- **String** `host`: The host value.
- **Boolean** `pub`: A flag if the domain is public or not.

#### Return
- **String** The generated entrypoint.

### `getCompositionDir(app)`
Returns the path to the composition directory.

#### Params
- **String** `app`: The app name.

#### Return
- **String** The path to the composition directory.

### `getInstances(app, callback)`
Gets the instances of a app.

#### Params
- **String** `app`: The app name.
- **Function** `callback`: The callback function.

### `getInstance(app, instanceName, callback)`
Gets the specified instance.

#### Params
- **String** `app`: The app name.
- **String** `instanceName`: The instance name.
- **Function** `callback`: The callback function.

### `getComposition(app, options, callback)`
Reads the composition files and sends an object:

```js
{ "path/to/some/instance.json": { ... }
```

#### Params
- **String** `app`: The app name.
- **Object** `options`: An object containing:
 - `iName` (Boolean): If `true`, the instance name will be used instead of path name.
- **Function** `callback`: The callback function.

### `generateSymlinks(app, username, callback)`
Generates symlinks for a provided app.

#### Params
- **String** `app`: The app name.
{'fraction_non_alphanumeric': 0.17050953600910904, 'fraction_numerical': 0.0, 'mean_word_length': 4.473520249221184, 'pattern_counts': {'":': 2, '<': 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': '7611191', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1030, 'n_words': 412}