<commit_before># dbKoda UI
*dbKoda UI built with state of the art React stack*

[![Build Status](https://drone.southbanksoftware.com/api/badges/SouthbankSoftware/dbkoda-ui/status.svg)](https://drone.southbanksoftware.com/SouthbankSoftware/dbkoda-ui)

## Build tool

Webpack is used as build/assemble tool for React.js project. It defines two environments, `dev` and `prod`.

* Dev:
    A `webpack-dev-server` is used during development mode. All the compiled code are saved in memory.
* Prod:
    All the resources including images, fonts, javascript, css will be compiled and packaged into `dist` directory in product mode.

## Installation Step

You can use `npm` or `yarn` to build the project.

* **Note**: you may need to run `npm login` and login using the credentials on 1Password before building.
* Run `yarn install` to install all dependencies.
* Run `yarn build` to build the javascript code into `dist` directory.
* Run `yarn start` to launch a `webpack-dev-server` in dev mode.

## Run Steps

Currently you need to run the Controller seperately to the product.

* Run `npm run start` in the dbkoda-Controller repository.
* Run `npm run start` or `yarn start` in the dbkoda-ui repository.
* **Note**: Currently a new connection can be created by clicking the New Editor button.

The structure of the output structure:

```text
dbkoda-ui
├── dist
│   ├── images
│   ├── js
│   ├── index.html
│   └── styles
```<commit_msg>Updated README to remove new connection note.<commit_after># dbKoda UI
*dbKoda UI built with state of the art React stack*

[![Build Status](https://drone.southbanksoftware.com/api/badges/SouthbankSoftware/dbkoda-ui/status.svg)](https://drone.southbanksoftware.com/SouthbankSoftware/dbkoda-ui)

## Build tool

Webpack is used as build/assemble tool for React.js project. It defines two environments, `dev` and `prod`.

* Dev:
    A `webpack-dev-server` is used during development mode. All the compiled code are saved in memory.
* Prod:
    All the resources including images, fonts, javascript, css will be compiled and packaged into `dist` directory in product mode.

## Installation Step

You can use `npm` or `yarn` to build the project.

* **Note**: you may need to run `npm login` and login using the credentials on 1Password before building.
* Run `yarn install` to install all dependencies.
* Run `yarn build` to build the javascript code into `dist` directory.
* Run `yarn start` to launch a `webpack-dev-server` in dev mode.

## Run Steps

Currently you need to run the Controller seperately to the product.

* Run `npm run start` in the dbkoda-Controller repository.
* Run `npm run start` or `yarn start` in the dbkoda-ui repository.

The structure of the output structure:

```text
dbkoda-ui
├── dist
│   ├── images
│   ├── js
│   ├── index.html
│   └── styles
```
{'fraction_non_alphanumeric': 0.10181559273762905, 'fraction_numerical': 0.000711997152011392, 'mean_word_length': 4.165441176470588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3327950', 'n_tokens_mistral': 871, 'n_tokens_neox': 844, 'n_words': 380}