<commit_before># foxtrap

foxtrap imports Firefox bookmark backup files and downloads all pages for full-text indexing of titles, URIs, tags, and body text.

Includes a search page with instant/as-you-type results and history-based keyword suggestions.

## Usage

`foxtrap --file bookmarks-YYYY-MM-DD.json`

## Requirements

* PHP 5.3+
* Sphinx Search 0.9.9+
* MySQL 5.1+

## Setup

1. Create a new database and import `config/foxtrap.sql`.
1. Customize the "dist" configuration files under `config/`.
1. [Export bookmarks as JSON.](http://support.mozilla.com/en-US/kb/Backing%20up%20and%20restoring%20bookmarks#w_manual-backup)
1. Run `foxtrap`.
1. Setup a document root at `pub/`.
1. (Recommended) Set up a cron to run `foxtrap` on the latest JSON file periodically created by Firefox in `bookmarkbackups/` under your profile's directory.<commit_msg>Add submodule updating note.<commit_after># foxtrap

foxtrap imports Firefox bookmark backup files and downloads all pages for full-text indexing of titles, URIs, tags, and body text.

Includes a search page with instant/as-you-type results and history-based keyword suggestions.

## Usage

`foxtrap --file bookmarks-YYYY-MM-DD.json`

## Requirements

* PHP 5.3+
* Sphinx Search 0.9.9+
* MySQL 5.1+

## Setup

1. git submodule update --init
1. Create a new database and import `config/foxtrap.sql`.
1. Customize the "dist" configuration files under `config/`.
1. [Export bookmarks as JSON.](http://support.mozilla.com/en-US/kb/Backing%20up%20and%20restoring%20bookmarks#w_manual-backup)
1. Run `foxtrap`.
1. Setup a document root at `pub/`.
1. (Recommended) Set up a cron to run `foxtrap` on the latest JSON file periodically created by Firefox in `bookmarkbackups/` under your profile's directory.
{'fraction_non_alphanumeric': 0.10628571428571429, 'fraction_numerical': 0.02457142857142857, 'mean_word_length': 4.3547400611620795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2573335', 'n_tokens_mistral': 603, 'n_tokens_neox': 554, 'n_words': 209}