<commit_before># Search Widget written in React

This Widget provides an easy-to-use fullscreen UI for a search interface.


## Usage

```javascript
/**
 * Attach the Widget to a DOMNode
 */
SearchWidget.create()
  .then(() => {
    console.log('Widget created');
  })
  .catch((err) => {
    console.error('An error occured: ', err);
  });
```


## Dependencies

The embedding page needs to provide the following libraries:

* [Material Icon Font](http://fonts.googleapis.com/icon?family=Material+Icons)
* [Open Sans Font](http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,900,300italic,400italic)
* [Bootstrap](https://github.com/twbs/bootstrap) ^4.0.0


## Development

### Prerequisites

Ensure you have installed (globally) the following software on your system:

* [node.js](http://nodejs.org/) ^6.0.0
* [yarn](https://yarnpkg.com/) ^0.19.1

### JavaScript Dependencies

Inside your local working directory:

```sh
$ yarn install
```

### Start the Development Server

To start the development server:

```sh
$ yarn start
```

### Testing<commit_msg>Updates README with watchman instructions<commit_after># Search Widget written in React

This Widget provides an easy-to-use fullscreen UI for a search interface.


## Usage

```javascript
/**
 * Attach the Widget to a DOMNode
 */
SearchWidget.create()
  .then(() => {
    console.log('Widget created');
  })
  .catch((err) => {
    console.error('An error occured: ', err);
  });
```


## Dependencies

The embedding page needs to provide the following libraries:

* [Material Icon Font](http://fonts.googleapis.com/icon?family=Material+Icons)
* [Open Sans Font](http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,900,300italic,400italic)
* [Bootstrap](https://github.com/twbs/bootstrap) ^4.0.0


## Development

### Prerequisites

Ensure you have installed (globally) the following software on your system:

* [node.js](http://nodejs.org/) ^7.0.0
* [yarn](https://yarnpkg.com/) ^0.24.0
* [watchman](https://facebook.github.io/watchman/docs/install.html) ^4.7.0

### JavaScript Dependencies

Inside your local working directory:

```sh
$ yarn install
```

### Start the Development Server

To start the development server:

```sh
$ yarn start
```

### Testing
{'fraction_non_alphanumeric': 0.15780062583817614, 'fraction_numerical': 0.02637460885113992, 'mean_word_length': 4.458536585365854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '697166', 'n_tokens_mistral': 777, 'n_tokens_neox': 714, 'n_words': 189}