<commit_before># Semantic Browser

> A free tool to browse and query any SPARQL endpoint.

## Demo

Semantic Browser is the source code of [SemanticWeb.rocks](http://semanticweb.rocks).

![SemanticWeb.rock Demo](https://raw.githubusercontent.com/armeninants/semantic-browser/master/client/src/assets/screencast1.gif)

## Prerequisites

Make sure you have [Node](https://nodejs.org/en/download/) and NPM installed.
Then run `npm install -g forever` to install `forever` globally.

If you are going to run the application in development mode, then install `webpack-dev-server` as well:

``` bash
npm install -g webpack-dev-server
```

## How to Install

``` bash
git clone https://github.com/armeninants/semantic-browser.git
cd semantic-browser/
chmod gu+x ./*.sh
npm run update
```

## Run
``` bash
./run.sh
```
Open http://localhost:8031 in your browser.

## Run in development mode
``` bash
./run.sh dev
```

<commit_msg>Updated README.<commit_after># Semantic Browser

> A free tool to browse and query any SPARQL endpoint.

## Demo

Semantic Browser is the source code of [SemanticWeb.rocks](http://semanticweb.rocks).

![SemanticWeb.rock Demo](https://raw.githubusercontent.com/armeninants/semantic-browser/master/client/src/assets/screencast1.gif)

## Prerequisites

Make sure you have [Node](https://nodejs.org/en/download/) and NPM installed.
Then run `npm install -g forever` to install `forever` globally.

If you are going to run the application in development mode, then install `webpack-dev-server` as well:

``` bash
npm install -g webpack-dev-server
```

## Installation

``` bash
git clone https://github.com/armeninants/ai-semantic-browser.git
cd ai-semantic-browser/
chmod gu+x ./*.sh
npm run update
```

## How to run
To choose between development and production modes, set the SB_ENV environment variable in the `/.env` file to a respective value.

Run `npm run start` to start.
The application is accessible now at [http://localhost:8031](http://localhost:8031).
You can change the port by setting the SB_PORT environment variable.

To stop, run `npm run stop`.

## Pulling updates from the repo

``` bash
npm run update
npm run start
```


{'fraction_non_alphanumeric': 0.11990740740740741, 'fraction_numerical': 0.006481481481481481, 'mean_word_length': 4.296568627450981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '7671793', 'n_tokens_mistral': 721, 'n_tokens_neox': 665, 'n_words': 237}