<commit_before># JawBar

A Vanilla JavaScript implementation of Firefox's "Awesome Bar".

HTML5's `<datalist>` element, while a step up from nothing, does not
allow to user input to vary from what gets shown in the drop-down.
I thought the original project by <NAME>. was quite a
good start and I hope more features can be added (see below).

# Installation

1. For the styles (currently non-existent, but I plan to move them from
out of the JavaScript), add this:
```html
<link href="styles/demo.css" rel="stylesheet" type="text/css" />
```
1. Add this for JavaScript:
```html
<script src="../src/jawbar.js"></script>
```
<commit_msg>Update installation info<commit_after># JawBar

A Vanilla JavaScript implementation of Firefox's "Awesome Bar".

HTML5's `<datalist>` element, while a step up from nothing, does not
allow to user input to vary from what gets shown in the drop-down.
I thought the original project by <NAME>. was quite a
good start and I hope more features can be added (see below).

# Installation

(Paths below are relative to the root of the repository and should changed as needed.)

1. For the styles, add this:
```html
<link href="/src/styles/jawbar.css" rel="stylesheet" type="text/css" />
```
1. Add this for JavaScript:
```html
<script src="/src/jawbar.js"></script>
```

If you wish to support older browsers, you will need polyfills for:
- `Array.prototype.find`
- `document.querySelector`
- `Element.classList`
- `Array.prototype.forEach`
- `Element.addEventListener`
- a proper [Array.prototype.slice](https://gist.github.com/brettz9/6093105)
{'fraction_non_alphanumeric': 0.11641221374045801, 'fraction_numerical': 0.008905852417302799, 'mean_word_length': 4.5583038869257955, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '998966', 'n_tokens_mistral': 486, 'n_tokens_neox': 461, 'n_words': 202}