<commit_before># IRC-js

An IRC library for node.js

[View Documentation](http://gf3.github.com/IRC-js/).

## Installation

```sh
npm install irc-js
```

## Tests

```sh
make test
```

# 2.0 Beta Notes

We recently released the first beta of IRC-js 2.0.
This release brings many changes, and documentation is not quite ready.
So, for the adventurous, here's how to get started with 2.0:

```js
/* IRC-js 2.0 provides a set of objects representing IRC entities, such as:
 *    Client    An IRC client, create one of these first.
 *    Message   A client sends and receives instances of this object.
 *    Channel   An IRC channel.
 *    Person    An IRC user.
 * Here follows a simple bot demonstrating basic usage.
 */

var irc = require("irc-js");

/* First, lets create an IRC Client.
 * The quickest way is to use the laziness function `irc.connect()`.
 * It takes an object configuring the bot, and returns a Client instance.
 */
irc.connect({ nick: "bot500" }, function(bot) {
  /* This optional callback means the client has connected.
   * It receives one argument: the Client instance.
   * Use the `join()` method to join a channel:
   */
  bot.join("#irc-js", function(err, chan) {
    /* You get this callback when the client has joined the channel.
     * The argument here is any eventual Error, and the Channel joined.
    if (err) {<commit_msg>Add missing `*/` in README<commit_after># IRC-js

An IRC library for node.js

[View Documentation](http://gf3.github.com/IRC-js/).

## Installation

```sh
npm install irc-js
```

## Tests

```sh
make test
```

# 2.0 Beta Notes

We recently released the first beta of IRC-js 2.0.
This release brings many changes, and documentation is not quite ready.
So, for the adventurous, here's how to get started with 2.0:

```js
/* IRC-js 2.0 provides a set of objects representing IRC entities, such as:
 *    Client    An IRC client, create one of these first.
 *    Message   A client sends and receives instances of this object.
 *    Channel   An IRC channel.
 *    Person    An IRC user.
 * Here follows a simple bot demonstrating basic usage.
 */

var irc = require("irc-js");

/* First, lets create an IRC Client.
 * The quickest way is to use the laziness function `irc.connect()`.
 * It takes an object configuring the bot, and returns a Client instance.
 */
irc.connect({ nick: "bot500" }, function(bot) {
  /* This optional callback means the client has connected.
   * It receives one argument: the Client instance.
   * Use the `join()` method to join a channel:
   */
  bot.join("#irc-js", function(err, chan) {
    /* You get this callback when the client has joined the channel.
     * The argument here is any eventual Error, and the Channel joined.
     */
    if (err) {
{'fraction_non_alphanumeric': 0.10295728368017525, 'fraction_numerical': 0.008762322015334063, 'mean_word_length': 3.1704718417047184, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2782963', 'n_tokens_mistral': 859, 'n_tokens_neox': 792, 'n_words': 373}