<commit_before># flights-pro

Air traffic control system and flight simulator - a test example for the [rete4frames](http://github.com/rururu/rete4frames) expert system shell.
It uses [Flightradar24](http://www.flightradar24.com) web service, [Leaflet](http://leafletjs.com) JavaScript library, [Cesium](https://cesiumjs.org/) WebGL virtual globe and map engine, [geonames](http://www.geonames.org) geographical data web service and [Protege-3.5](http://protege.stanford.edu) ontology editor as server-side GUI and Clojure/ClojureScript IDE.

![screenshot](screenshot1.jpeg)

## Start

```clj
$ cd <..>
$ git clone https://github.com/rururu/flights-pro.git
$ cd flights-pro
$ lein run
```
In a Protege GUI open a project FlightPro.pprj from a folder <..>/flights-pro/pro-projects and execute a menu item Edit -> Clojure Work.
When the Pro server starts, open two browser windows, one on the address: http://localhost:4444 (Cockpit view), second on the address: http://localhost:4444/chart (Chart view).

```diff
- WARNING! Uncomment this line for Java 9 and Java 10 in project.clj file:
```
```Clojure
;; :jvm-opts ["--add-modules" "java.xml.bind"]
```

## Usage

### Chart view

#### Commands<commit_msg>WARNING! Uncomment this line for Java 9 and Java 10 in project.clj file before start<commit_after># flights-pro

Air traffic control system and flight simulator - a test example for the [rete4frames](http://github.com/rururu/rete4frames) expert system shell.
It uses [Flightradar24](http://www.flightradar24.com) web service, [Leaflet](http://leafletjs.com) JavaScript library, [Cesium](https://cesiumjs.org/) WebGL virtual globe and map engine, [geonames](http://www.geonames.org) geographical data web service and [Protege-3.5](http://protege.stanford.edu) ontology editor as server-side GUI and Clojure/ClojureScript IDE.

![screenshot](screenshot1.jpeg)

```diff
- WARNING! Uncomment this line for Java 9 and Java 10 in project.clj file before the start:
;; :jvm-opts ["--add-modules" "java.xml.bind"]
```

## Start

```clj
$ cd <..>
$ git clone https://github.com/rururu/flights-pro.git
$ cd flights-pro
$ lein run
```
In a Protege GUI open a project FlightPro.pprj from a folder <..>/flights-pro/pro-projects and execute a menu item Edit -> Clojure Work.
When the Pro server starts, open two browser windows, one on the address: http://localhost:4444 (Cockpit view), second on the address: http://localhost:4444/chart (Chart view).

## Usage

### Chart view

#### Commands
{'fraction_non_alphanumeric': 0.13612565445026178, 'fraction_numerical': 0.017317760773258157, 'mean_word_length': 4.6072234762979685, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '4054445', 'n_tokens_mistral': 842, 'n_tokens_neox': 783, 'n_words': 263}