<commit_before>LikeLines-Player
============

*Welcome to the new home for the LikeLines player component. The original prototype is still available on the [Knight-Mozilla repository](https://github.com/Knight-Mozilla/likelines-mojo).*

## Introduction
Conventional online video players do not make the inner structure of the video apparent, making it hard to jump straight to the interesting parts. LikeLines provides users with a navigable heat map of interesting regions for the videos they are watching. The novelty of LikeLines lies in its combination of content analysis and both explicit and implicit user interactions.

![LikeLines concept diagram](https://raw.github.com/ShinNoNoir/likelines-player/master/doc/diagram.png)

The LikeLines system is being developed in the [Delft Multimedia Information Retrieval Lab](http://dmirlab.tudelft.nl/) at the Delft University of Technology.


## Demo
Running the demo requires:

 * A HTML5-compatible browser supporting the Canvas element and JavaScript.
 * Internet access (for the YouTube API and jQuery library).
 * Python 2.6+ (for the backend reference implementation) with the following packages:
   * Flask
   * PyMongo
   * Flask-PyMongo
 * MongoDB (for the backend).

You can download the code via `git` or through the Github web interface. Once downloaded and unpacked to a directory, three processes need to be started in order to run the demo. These three processes can best be run in separate terminals or screens.

The first process is starting a web server (or use an existing one) which will serve demo web page and the LikeLines JavaScript library. Note that you cannot simply open the web page locally (the browser would simply refuse to execute JavaScript in a local context):

```sh
$ cd likelines-player
$ python -m SimpleHTTPServer 8080
```

Next step is to make sure a MongoDB server is running on the default port. You can start the MongoDB server by simply executing `mongod`:

```sh
$ mongod
```

The final step is to run the backend server for LikeLines. This server will receive requests to store and aggregate user playback behaviour:

```sh
$ cd likelines-player/server
$ python -m LikeLines.server -p 9090
```

When the three processes are running, please point your browser to [http://localhost:8080/examples/demo.html](http://localhost:8080/examples/demo.html) to start the demo.

## Roadmap and plans
 * March 2013: Make LikeLines deployable on at least one cloud platform.
 * March 2013: Finalize support for content analysis indexing.
 * Future: Add HTML5 <video> support.
 * Future: Improve UI.


## Acknowledgments

![CUbRIK](http://www.cubrikproject.eu/templates/rt_tachyon_j15/images/logo/light/logo.png)
<commit_msg>Hard wordwrap<commit_after>LikeLines-Player
============

*Welcome to the new home for the LikeLines player component.*
*The original prototype is still available on the*
*[Knight-Mozilla repository](https://github.com/Knight-Mozilla/likelines-mojo).*

## Introduction
Conventional online video players do not make the inner structure of the 
video apparent, making it hard to jump straight to the interesting parts. 
LikeLines provides users with a navigable heat map of interesting regions 
for the videos they are watching. The novelty of LikeLines lies in its 
combination of content analysis and both explicit and implicit user 
interactions.

![LikeLines concept diagram](https://raw.github.com/ShinNoNoir/likelines-player/master/doc/diagram.png)

The LikeLines system is being developed in the 
[Delft Multimedia Information Retrieval Lab](http://dmirlab.tudelft.nl/) 
at the Delft University of Technology.


## Demo
Running the demo requires:

 * A HTML5-compatible browser supporting the Canvas element and JavaScript.
 * Internet access (for the YouTube API and jQuery library).
 * Python 2.6+ (for the backend reference implementation) 
   with the following packages:
     * Flask
     * PyMongo
     * Flask-PyMongo
 * MongoDB (for the backend).

You can download the code via `git` or through the Github web interface. 
Once downloaded and unpacked to a directory, three processes need to be 
started in order to run the demo. These three processes can best be run 
in separate terminals or screens.

The first process is starting a web server (or use an existing one) which 
will serve demo web page and the LikeLines JavaScript library. Note that 
you cannot simply open the web page locally (the browser would simply 
refuse to execute JavaScript in a local context):

```sh
$ cd likelines-player
$ python -m SimpleHTTPServer 8080
```

Next step is to make sure a MongoDB server is running on the default port. 
You can start the MongoDB server by simply executing `mongod`:

```sh
$ mongod
```

The final step is to run the backend server for LikeLines. This server will 
receive requests to store and aggregate user playback behaviour:

```sh
$ cd likelines-player/server
$ python -m LikeLines.server -p 9090
```

When the three processes are running, please point your browser to 
[http://localhost:8080/examples/demo.html](http://localhost:8080/examples/demo.html) 
to start the demo.

## Roadmap and plans
 * March 2013: Make LikeLines deployable on at least one cloud platform.
 * March 2013: Finalize support for content analysis indexing.
 * Future: Add HTML5 <video> support.
 * Future: Improve UI.


## Acknowledgments

![CUbRIK](http://www.cubrikproject.eu/templates/rt_tachyon_j15/images/logo/light/logo.png)

{'fraction_non_alphanumeric': 0.07196621993758032, 'fraction_numerical': 0.011015237745548008, 'mean_word_length': 4.4753768844221105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6656848', 'n_tokens_mistral': 1516, 'n_tokens_neox': 1412, 'n_words': 697}