<commit_before># Portal project

## Overview

Portal is a set or ROS nodes that provide communication layer for Chrome browsers running various extensions.

## Details

### Directory Structure


|-- bin                  - PLACE FOR SCRIPTS
|  L-- run_tests        - SCRIPT FOR RUNNING ALL TESTS
|-- extensions           - PLACE EXTENSION DIRECTORIES HERE
|  |-- crxmake          - TOOL FOR PACKING CRX FILES
|  |-- sigs             - DIRECTORY FOR TEMPORARY FILES
|  |-- <extensionA>
|  |--  ...             - PACKAGED EXTENSION FILES (.crx,.pub,.eid,-upd.xml) ARE DROPPED ALONG-SIDE
|  L-- <extensionZ>
|-- keys
|  |-- README
|  |-- <extensionA.pem> - KEYS ARE NOT COMMITED TO GIT
|  |--  ...
|  L-- <extensionZ.pem>
|-- managed_policy_example
|  |-- <policy_exampleA.json>
|  |--  ...
|  L-- <policy_exampleZ.json>
|-- tests                         - TESTS FOR THE PROJECT
|  |-- extensions                - TESTS FOR EXTENSIONS
|   |  L-- functional            - FUNCTIONAL TESTS USING SELENIUM
|   |      |-- requirements.txt  - FILE FOR INSTALLING THE REQUIREMENTS WITH PIP
|   |      L-- tests
|   |          |-- ...           - TEST FILES
|   |          L-- <test_z>
|  L-- README           - README FILE FOR TESTS
|-- check-extensions     - USE THIS TO VERIFY ALL EXTENSIONS
|-- doc-extensions       - USE THIS TO JSDOC ALL EXTENSIONS
|-- pack-extensions      - USE THIS TO RE-PACKAGE ALL EXTENSIONS
|-- publish-extensions   - USE THIS TO PUBLISH ALL EXTENSIONS
└-- README               - THIS README

### Extensions

In order to pack extensions you should execute

```bash
./pack-extensions
```

Packaged Extension Files:

* In "<repo>/extensions/", see the following result files:
  * <extension>.pub - the public key portion of the extension-specific keypair
  * <extension>.eid - the extension-specific Application ID which is derived from the public key.
  * <extension>.crx - the extension itself, installable in Chrome/Chromium.
  * <extension>-upd.xml - the auto-update xml file which should be served to Chrome/Chromium.

### Catkin Workspace (ROS nodes)

#### Installing from source

To initialize the Catkin workspace for ROS packages, run "catkin_init_workspace" in catkin/src/ .
You must have ROS installed.

#### Installing from apt-get

You need to add a repo to /etc/apt/sources.list.d/portapt.list

```<commit_msg>Got rid of the dir structure<commit_after># Portal project

## Overview

Portal is a set or ROS nodes that provide communication layer for Chrome browsers running various extensions.

## Details

### Extensions

In order to pack extensions you should execute

```bash
./pack-extensions
```

Packaged Extension Files:

* In "<repo>/extensions/", see the following result files:
  * <extension>.pub - the public key portion of the extension-specific keypair
  * <extension>.eid - the extension-specific Application ID which is derived from the public key.
  * <extension>.crx - the extension itself, installable in Chrome/Chromium.
  * <extension>-upd.xml - the auto-update xml file which should be served to Chrome/Chromium.

### Catkin Workspace (ROS nodes)

#### Installing from source

To initialize the Catkin workspace for ROS packages, run "catkin_init_workspace" in catkin/src/ .
You must have ROS installed.

#### Installing from apt-get

You need to add a repo to /etc/apt/sources.list.d/portapt.list

```
{'fraction_non_alphanumeric': 0.10710023866348449, 'fraction_numerical': 0.0, 'mean_word_length': 2.6725082146768893, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '2511433', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1019, 'n_words': 360}