<commit_before>### Web AppBuilder Custom Widget

In this lab you will create a custom widget for Web AppBuilder.

1. Create a New Default (2D)app in Web App Builder. Give it a title `Custom Widget App` and click `Ok`.

2. Click the Plateau Theme and click `Save`.

3. Click the widgets folder (e.g., webappbuilder\server\apps\1\widgets) for the application you just created.

4. [Download Simple Graphic zip] (wab/SimpleGraphic.zip?raw=true) unzip it and copy the folder to the widgets directory.

5. Click SimpleGraphic folder and edit Widget.js, update the function definition and extend the BaseWidget class: <commit_msg>Update wab_custom_widget.md<commit_after>### Web AppBuilder Custom Widget

In this lab you will create a custom widget for Web AppBuilder.

1. Create a New Default (2D)app in Web App Builder. Give it a title `Custom Widget App` and click `Ok`.

2. Click the Plateau Theme and click `Save`.

3. Click the widgets folder (e.g., webappbuilder\server\apps\1\widgets) for the application you just created.

4. [Download Simple Graphic zip] (wab/SimpleGraphic.zip?raw=true) unzip it and copy the folder to the widgets directory.

5. Click SimpleGraphic folder and edit Widget.js to update the function definition and extend the BaseWidget class: 
{'fraction_non_alphanumeric': 0.07120253164556962, 'fraction_numerical': 0.011075949367088608, 'mean_word_length': 4.360169491525424, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7220782', 'n_tokens_mistral': 360, 'n_tokens_neox': 361, 'n_words': 182}