<commit_before># Tracker Proxy

## Description

This package provide one interface which can be used for working with many differ torrent-trackers as like as one.

## Features

- One interface
- Simple usage
- Can using user-write tracker adapters (soon)
- Flexibility
- ES6

## Installation

```
npm install --save tracker-proxy
```

## Usage

```javascript
const Tracker = require('tracker-proxy');
const yourTrackerAdapter = require('./your-tracker-adapter');
let tracker = new Tracker();
tracker.include(yourTrackerAdapter);
let searchResponse = [];

tracker.on('ready', function() {
    tracker.search('X-Weapon')
        .then(function(response) {
            searchResponse = response;
        })
        .catch(function(err) {
            throw err;
        });
});
```

## TODO

- Full test coverage
- More adapters for different tracker
- Add full interface description to README
<commit_msg>Updated usage section<commit_after># Tracker Proxy

## Description

This package provide one interface which can be used for working with many differ torrent-trackers as like as one.

## Features

- One interface
- Simple usage
- Can using user-write tracker adapters (soon)
- Flexibility
- ES6

## Installation

```
npm install --save tracker-proxy
```

## Usage

```javascript
const trackerProxy = require('tracker-proxy');

let trackerManager = new trackerProxy.Manager();

trackerManager.include(new trackerProxy.adapters.KAT());
trackerManager.include(new trackerProxy.adapters.TPB());

trackerManager.on(trackerManager.EVENT_SEARCH_RESPONSE, (tracker, torrents) => {
	console.log(`Tracker ${tracker.getUrl()} search response:`);
	torrents.forEach(torrent => {
		console.log(`\t${torrent.title}`);
	});
});

trackerManager.search({ query: query }); // PROFIT!
```

## TODO

- Full test coverage
- More adapters for different tracker
- Add full interface description to README

{'fraction_non_alphanumeric': 0.12267657992565056, 'fraction_numerical': 0.0010621348911311736, 'mean_word_length': 4.133514986376022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1931289', 'n_tokens_mistral': 577, 'n_tokens_neox': 539, 'n_words': 164}