<commit_before># mw-Datagrepper

A MediaWiki extension that enable you to embed html cards from Datagrepper app on your user page. i.e. the last 5 messages found in datagrepper

## What does it provide?

mw-Datagrepper provides one
[parser function](https://www.mediawiki.org/wiki/Manual:Parser_functions):

### `{{#datagreppermessages: username}}`

This displays last 5 messages found in datagrepper on $username's page.

## How do I enable it?

Clone this repository to `extensions/Datagrepper`, then in `LocalSettings.php`,
add the following line:

```
require_once "$IP/extensions/Datagrepper/Datagrepper.php";
```
In order to add CSS download the Mediawiki [Extension: CSS](http://www.mediawiki.org/wiki/Extension:CSS).


<commit_msg>add table function to readme<commit_after># mw-Datagrepper

A MediaWiki extension that enable you to embed html cards from Datagrepper app on your user page. i.e. the last 5 messages found in datagrepper

## What does it provide?

mw-Datagrepper provides one
[parser function](https://www.mediawiki.org/wiki/Manual:Parser_functions):

### `{{#datagreppermessages: username}}`

This displays last 5 messages found in datagrepper related to $username
in HTML form.

### `{{#datagreppertable: username}}`

This displays last 5 messages found in datagrepper related to $username
in table form.

## How do I enable it?

Clone this repository to `extensions/Datagrepper`, then in `LocalSettings.php`,
add the following line:

```
require_once "$IP/extensions/Datagrepper/Datagrepper.php";
```
In order to add CSS download the Mediawiki [Extension: CSS](http://www.mediawiki.org/wiki/Extension:CSS).



{'fraction_non_alphanumeric': 0.10403916768665851, 'fraction_numerical': 0.0030599755201958386, 'mean_word_length': 5.193181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '388581', 'n_tokens_mistral': 510, 'n_tokens_neox': 499, 'n_words': 179}