<commit_before>Pub-Sub Methods
================



# .publishCreate()
### Purpose
Publish the creation of a model
### Example Usage
```


```

### Notes


# .publishUpdate()
### Purpose
Publish an update on a particular model
### Example Usage
```


```

### Notes

# .publishDestroy()
### Purpose
Publish the destruction of a model
### Example Usage
```


```

### Notes


# .subscribe(req)
### Purpose
Subscribe a socket to a handful of models in this collection
### Example Usage
```


```

### Notes


# .subscribe(req,id)

### Purpose
Subscribe a socket to a handful of models in this collection
### Example Usage
```


```

### Notes
This method will be deprecated in an upcoming release. Subscriptions should be called from the request object or socket themselves, not from the model.<commit_msg>Update Models.pubSub.md<commit_after>Pub-Sub Methods
================



# .publishCreate()
### Purpose
Publish the creation of a model
### Example Usage
```


```

### Notes


# .publishUpdate()
### Purpose
Publish an update on a particular model
### Example Usage
```


```

### Notes

# .publishDestroy()
### Purpose
Publish the destruction of a model
### Example Usage
```


```

### Notes


# .subscribe(req)
### Purpose
Subscribe a socket to a handful of models in this collection
### Example Usage
```


```

### Notes


# .subscribe(req,id)

### Purpose
Subscribe a socket to a handful of models in this collection
### Example Usage
```


```

### Notes
This method will be deprecated in an upcoming release. Subscriptions should be called from the request object or socket themselves, not from the model.

# .unsubscribe(req)
### Purpose
Subscribe a socket to a handful of models in this collection
### Example Usage
```


```

### Notes


{'fraction_non_alphanumeric': 0.1479154768703598, 'fraction_numerical': 0.0, 'mean_word_length': 4.078260869565217, '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': '3919935', 'n_tokens_mistral': 544, 'n_tokens_neox': 467, 'n_words': 200}