<commit_before># Bulldog
## An HTML viewer for Todo.Txt

Be tenacious, like a bulldog, on your task list.

Bulldog is a single-page HTML view of your [todo.txt](http://http://todotxt.com/) file. Use the [command line interface](http://https://github.com/ginatrapani/todo.txt-cli/downloads) for capture, editing, and completing tasks. But if you want something a little bit more "app-y" for managing your tasks, Bulldog is for you.

## Installation

Bulldog is released as a single HTML file via the [Downloads page](http://github.com/infews/bulldog/downloads), called `index.html`, that needs to live in the same directory as your `todo.txt` file.

You will also need to set up a web server to point to this directory or configure your browser to allow AJAX requests from a `file://` URL. Bulldog makes an AJAX request to read in `todo.txt`

This isn't very user-friendly at this point in time. 

For these examples, I keep my `todo.txt` file (and all of my Todo.txt stuff) in `/Users/dwf/Dropbox/todo`.

### Via HTTP and a Local Web Server

These steps work on MacOS 10.7 (Lion), serving Bulldog via the built-in web server (Apache 2). Please look up the equivalent steps for your operating system and web server.

1. Make a symlink from Apache's directory to your ToDo.txt directory: `ln -s /Users/dwf/Dropbox/todo /Library/WebServer/Documents/todo`
1. Restart Apache by visiting the `Sharing` pane under `System Preferences`, and turning `Web Sharing` off (if it's on) and then on
1. Copy Bulldog's `index.html` to `/Users/dwf/Dropbox/todo`
1. Visit `http://localhost/todo`

### Via the Local File Protocol

With some tweaking of your browser settings, `file://path/to/index.html` will work

* Safari: no change needed
* Firefox: enable "cross domain AJAX requests" via config settings; this differs across versions of Firefox, so you'll need to Google it
* Chrome/Chromium: launch the executable with the `--disable-web-security` flag set

## Usage
<commit_msg>Explain how to run Bulldog with an ad-hoc HTTP server<commit_after># Bulldog
## An HTML viewer for Todo.Txt

Be tenacious, like a bulldog, on your task list.

Bulldog is a single-page HTML view of your [todo.txt](http://http://todotxt.com/) file. Use the [command line interface](http://https://github.com/ginatrapani/todo.txt-cli/downloads) for capture, editing, and completing tasks. But if you want something a little bit more "app-y" for managing your tasks, Bulldog is for you.

## Installation

Bulldog is released as a single HTML file via the [Downloads page](http://github.com/infews/bulldog/downloads), called `index.html`, that needs to live in the same directory as your `todo.txt` file.

You will also need to set up a web server to point to this directory or configure your browser to allow AJAX requests from a `file://` URL. Bulldog makes an AJAX request to read in `todo.txt`

This isn't very user-friendly at this point in time. 

For these examples, I keep my `todo.txt` file (and all of my Todo.txt stuff) in `/Users/dwf/Dropbox/todo`.

### Via HTTP and a Local Web Server

#### Using Apache on MacOS

These steps work on MacOS 10.7 (Lion), serving Bulldog via the built-in web server (Apache 2). Please look up the equivalent steps for your operating system and web server.

1. Make a symlink from Apache's directory to your ToDo.txt directory: `ln -s /Users/dwf/Dropbox/todo /Library/WebServer/Documents/todo`
1. Restart Apache by visiting the `Sharing` pane under `System Preferences`, and turning `Web Sharing` off (if it's on) and then on
1. Copy Bulldog's `index.html` to `/Users/dwf/Dropbox/todo`
1. Visit `http://localhost/todo`

#### Using an Ad-hoc Web Server (Multiplatform)

An ad-hoc web server can be run with these steps if Python is installed (tested only on Linux but should work in other platforms):

1. _Cd_ into the directory containing `index.html` and `todo.txt`
1. Run `python -m SimpleHTTPServer`
1. Visit `http://localhost:8000/`

### Via the Local File Protocol

With some tweaking of your browser settings, `file://path/to/index.html` will work

* Safari: no change needed
* Firefox: enable "cross domain AJAX requests" via config settings; this differs across versions of Firefox, so you'll need to Google it
* Chrome/Chromium: launch the executable with the `--disable-web-security` flag set

## Usage

{'fraction_non_alphanumeric': 0.0938368860055607, 'fraction_numerical': 0.005329008341056534, 'mean_word_length': 4.1454112038140645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '3123898', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1285, 'n_words': 610}