<commit_before><NAME>
===========
The Multi-Resolution Plotter is a utility for viewing data in BTrDB.

The backend consists of three parts: (1) an HTTP server written in Go, (2) a
metadata server that answers sMAP queries, and (3) a Mongo Database to store
permalinks and account information. The script accounts.py provides a REPL
for creating accounts and granting permissions. Permissions are granted
to users at the granularity of "tags". The script metadata.py is a minimal
implementation of the metadata server; tagconfig.json maps "tags" to viewable
streams, and must be supplied to metadata.py as a command line argument.

Instantiating a Graph
---------------------
To insert a graph with full control available to the user, simply execute the
following in Javascript:
<pre><code>{{mr_plotter(domElement);}}</code></pre>
The graph will be inserted as a child of the specified DOM Element.

One can also instantiate the graph with parameters:
<pre><code>{{mr_plotter(domElement, storageKey, options, callback1, callback2, backend);}}</code></pre>

STORAGEKEY is a string that is the key to use when persisting login sessions.
Local storage is used by default. cookies are used when local storage is not
available. Two keys are stored: _storageKey_\_username and _storageKey_\_token.
OPTIONS is a Javascript object containing parameters (explained below).
CALLBACK1 and CALLBACK2 are callback functions invoked during initialization
(explained below). BACKEND is the URL of the backend; if omitted, it is derived
from window.location.

OPTIONS, the object of parameters, may have the following properties (all optional):

* hide\_permalink - TRUE if the button to generate a permalink and the space to display it are to be hidden. Defaults to FALSE.
* hide\_graph\_export - TRUE if the menu to export the graph to an SVG file is to be hidden. Defaults to FALSE.
* hide\_stream\_legend - TRUE if the legend displaying streams is to be hidden. Defaults to FALSE.
* hide\_axis\_legend - TRUE if the legend displaying axes is to be hidden. Defaults to FALSE.
* hide\_automatic\_update - TRUE if the checkbox specifying whether stream removals and axis changes should be applied automatically is to be hidden. Defaults to FALSE.
* hide\_login\_button - TRUE if the "Login" dropdown menu is to be hidden. Defaults to FALSE.
* hide\_apply\_button - TRUE if the "Apply and Plot" button is to be hidden. Defaults to FALSE.
* hide\_reset\_button - TRUE if the "Reset Zoom" button is to be hidden. Defaults to FALSE.<commit_msg>Fix code display in README<commit_after>Mr. Plotter
===========
The Multi-Resolution Plotter is a utility for viewing data in BTrDB.

The backend consists of three parts: (1) an HTTP server written in Go, (2) a
metadata server that answers sMAP queries, and (3) a Mongo Database to store
permalinks and account information. The script accounts.py provides a REPL
for creating accounts and granting permissions. Permissions are granted
to users at the granularity of "tags". The script metadata.py is a minimal
implementation of the metadata server; tagconfig.json maps "tags" to viewable
streams, and must be supplied to metadata.py as a command line argument.

Instantiating a Graph
---------------------
To insert a graph with full control available to the user, simply execute the
following in Javascript:
<pre><code>mr_plotter(domElement);</code></pre>
The graph will be inserted as a child of the specified DOM Element.

One can also instantiate the graph with parameters:
<pre><code>mr_plotter(domElement, storageKey, options, callback1, callback2, backend);</code></pre>

STORAGEKEY is a string that is the key to use when persisting login sessions.
Local storage is used by default. cookies are used when local storage is not
available. Two keys are stored: _storageKey_\_username and _storageKey_\_token.
OPTIONS is a Javascript object containing parameters (explained below).
CALLBACK1 and CALLBACK2 are callback functions invoked during initialization
(explained below). BACKEND is the URL of the backend; if omitted, it is derived
from window.location.

OPTIONS, the object of parameters, may have the following properties (all optional):

* hide\_permalink - TRUE if the button to generate a permalink and the space to display it are to be hidden. Defaults to FALSE.
* hide\_graph\_export - TRUE if the menu to export the graph to an SVG file is to be hidden. Defaults to FALSE.
* hide\_stream\_legend - TRUE if the legend displaying streams is to be hidden. Defaults to FALSE.
* hide\_axis\_legend - TRUE if the legend displaying axes is to be hidden. Defaults to FALSE.
* hide\_automatic\_update - TRUE if the checkbox specifying whether stream removals and axis changes should be applied automatically is to be hidden. Defaults to FALSE.
* hide\_login\_button - TRUE if the "Login" dropdown menu is to be hidden. Defaults to FALSE.
* hide\_apply\_button - TRUE if the "Apply and Plot" button is to be hidden. Defaults to FALSE.
* hide\_reset\_button - TRUE if the "Reset Zoom" button is to be hidden. Defaults to FALSE.
{'fraction_non_alphanumeric': 0.06936758893280633, 'fraction_numerical': 0.002766798418972332, 'mean_word_length': 4.366914103923648, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '3239343', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1256, 'n_words': 724}