<commit_before># rusk
[![Build Status](https://travis-ci.org/PavloKapyshin/rusk.svg?branch=master)](https://travis-ci.org/PavloKapyshin/rusk)

`rusk` is a single-page quiz application made to help Russian-speaking people
learn Slovak language (and vice versa).


## Features
- uses React framework
- UI is in English or Russian, selected language is saved into `localStorage`
- even for multiple-answer questions, only one answer can be selected
- questions are random, previously answered ones may be asked again


## Preparation
```console
$ npm install
```


## Running tests
```console
$ npm test
```


## Getting coverage
Collect info and view report:

```console
$ npm test -- --coverage
```

View HTML report:

```console
$ sensible-browser coverage/lcov-report/index.html
```


## Running development server
Start server:

```console
$ npm start
```

View it in browser:

```console
$ sensible-browser http://127.0.0.1:3000
```


## Building for production
```console
$ npm run build
```


## Updating `react-scripts`

This project uses [`create-react-app`](https://github.com/facebookincubator/create-react-app),
which uses `react-scripts`.

1. Look at [changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md).
2. Look at versions in `package.json`.
3. If needed, follow migration instructions.


## Format of `src/questions.json`
`src/questions.json` contains list of question objects. Each question
object has three mandatory fields (and one optional):

```json
{"t": "mačka", "o": ["майка", "матч", "пирожок", "кошка"], "c": [3]}
```


### `t`
Text of question. Usually a word in Russian on Slovak, e.g. `"mačka"`.


### `o`
List of answers. Usually a list of words in Russian or Slovak, e.g.
`["майка", "матч", "пирожок", "кошка"]`.


### `c`
List of indexes of correct answers in `o` list, e.g. `[3]`.

<commit_msg>Fix style<commit_after># rusk
[![Build Status](https://travis-ci.org/PavloKapyshin/rusk.svg?branch=master)](https://travis-ci.org/PavloKapyshin/rusk)

`rusk` is a single-page quiz application made to help Russian-speaking people
learn Slovak language (and vice versa).


## Features
- uses React framework
- UI is in English or Russian, selected language is saved into `localStorage`
- even for multiple-answer questions, only one answer can be selected
- questions are random, previously answered ones may be asked again


## Preparation
```console
$ npm install
```


## Running tests
```console
$ npm test
```


## Getting coverage
Collect info and view report:

```console
$ npm test -- --coverage
```

View HTML report:

```console
$ sensible-browser coverage/lcov-report/index.html
```


## Running development server
Start server:

```console
$ npm start
```

View it in browser:

```console
$ sensible-browser http://127.0.0.1:3000
```


## Building for production
```console
$ npm run build
```


## Updating `react-scripts`
This project uses [`create-react-app`](https://github.com/facebookincubator/create-react-app),
which uses `react-scripts`.

1. Look at [changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md).
2. Look at versions in `package.json`.
3. If needed, follow migration instructions.


## Format of `src/questions.json`
`src/questions.json` contains list of question objects. Each question
object has three mandatory fields (and one optional):

```json
{"t": "mačka", "o": ["майка", "матч", "пирожок", "кошка"], "c": [3]}
```


### `t`
Text of question. Usually a word in Russian on Slovak, e.g. `"mačka"`.


### `o`
List of answers. Usually a list of words in Russian or Slovak, e.g.
`["майка", "матч", "пирожок", "кошка"]`.


### `c`
List of indexes of correct answers in `o` list, e.g. `[3]`.


{'fraction_non_alphanumeric': 0.15310233682514102, 'fraction_numerical': 0.008058017727639, 'mean_word_length': 4.3428981348637015, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2028001', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1201, 'n_words': 405}