<commit_before>File Browser
============

Shows a hierarchy of documents, based on the slashes in their filenames.

This is a plugin for Overview. You can see it live on
https://www.overviewdocs.com. [overview-local](https://github.com/overview/overview-local)
includes it automatically.

Development
===========

Setup
-----

1. Download and run [Overview](https://github.com/overview/overview-server.git)'s
   `./dev`. This creates the `overviewserver_default` Docker network that this
   plugin depends on in development mode.
1. In a separate console, `git clone https://github.com/overview/overview-file-browser.git`
1. `cd overview-file-browser`
1. `./gulp dev` starts a server that listens on http://localhost:3334
1. Test it within Overview:
    1. Browse to http://localhost:9000
    1. Upload files by using the "Add files in folder" button
    1. In the resulting Document Set, click "Add View" ... "Custom"
    1. Set `Name`: `Folders`, `App URL`: `http://localhost:3334`, and
       `Overview’s URL from App server`: `http://overview-web`

Development Loop
----------------

1. Run `./integration-tests/run` to make sure integration tests work. (You must
   be running Overview's `./dev` _and_ `./gulp dev` for integration tests to
   pass.
1. Run `./npm test` to make sure unit tests work. (You can also use
   `./npm run test-forever` to test every time a file changes.)
1. Write a new test; write accompanying code; make sure tests pass.

BUG: right now, when you edit `./server.js`, the web server in `./gulp dev`
won't reload your new code. Workaround: Ctrl+C and start it again.

Deploying
---------

Run `./release 1.0.1`. This will:

* Modify `package.json` to have the new version number
* Tag and push `v1.0.1` to GitHub
* `docker build . -t overview/overview-file-browser:1.0.1` and push the change

TODO: deploy automatically, via Jenkins

Now update your deployed cluster (e.g., ECS) to use the new version.

License
=======

This project is copyright Overview Services Inc. and released under the
AGPL-3.0 open source license. See LICENSE for legal prose.<commit_msg>Document integration-test bug<commit_after>File Browser
============

Shows a hierarchy of documents, based on the slashes in their filenames.

This is a plugin for Overview. You can see it live on
https://www.overviewdocs.com. [overview-local](https://github.com/overview/overview-local)
includes it automatically.

Development
===========

Setup
-----

1. Download and run [Overview](https://github.com/overview/overview-server.git)'s
   `./dev`. This creates the `overviewserver_default` Docker network that this
   plugin depends on in development mode.
1. In a separate console, `git clone https://github.com/overview/overview-file-browser.git`
1. `cd overview-file-browser`
1. `./gulp dev` starts a server that listens on http://localhost:3334
1. Test it within Overview:
    1. Browse to http://localhost:9000
    1. Upload files by using the "Add files in folder" button
    1. In the resulting Document Set, click "Add View" ... "Custom"
    1. Set `Name`: `Folders`, `App URL`: `http://localhost:3334`, and
       `Overview’s URL from App server`: `http://overview-web`

Development Loop
----------------

1. Run `./integration-tests/run` to make sure integration tests work. (You must
   be running Overview's `./dev` _and_ `./gulp dev` for integration tests to
   pass.
1. Run `./npm test` to make sure unit tests work. (You can also use
   `./npm run test-forever` to test every time a file changes.)
1. Write a new test; write accompanying code; make sure tests pass.

**BUG**: right now, when you edit `./server.js`, the web server in `./gulp dev`
won't reload your new code. Workaround: Ctrl+C and start it again.

**BUG**: `./integration-tests/run` has a bug related to headless Chrome. Use
`./integration-tests/run-browser spec/folders_spec.rb` until we fix it.

Deploying
---------

Run `./release 1.0.1`. This will:

* Modify `package.json` to have the new version number
* Tag and push `v1.0.1` to GitHub
* `docker build . -t overview/overview-file-browser:1.0.1` and push the change

TODO: deploy automatically, via Jenkins

Now update your deployed cluster (e.g., ECS) to use the new version.

License
=======

This project is copyright Overview Services Inc. and released under the
AGPL-3.0 open source license. See LICENSE for legal prose.
{'fraction_non_alphanumeric': 0.13240018357044517, 'fraction_numerical': 0.016062413951353834, 'mean_word_length': 3.457055214723926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4275272', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1265, 'n_words': 555}