<commit_before># node-groove

Node.js bindings to [libgroove](https://github.com/superjoe30/libgroove) -
generic music player backend library.

## Usage

1. Install libgroove to your system.
2. `npm install --save groove`

```js
var groove = require('groove');

groove.open("danse-macabre.ogg", function(err, file) {
  if (err) throw err;
  console.log(file.metadata);
  console.log("duration:", file.duration());
  file.close();
});
```

## API Documentation

### GrooveFile

#### groove.open(filename, callback)

`callback(err, file)`

#### file.close()

#### file.duration()

In seconds.

#### file.shortNames()

A comma-separated list of short names for the format.

#### file.getMetadata(key, [flags])

Flags:

 * `groove.TAG_MATCH_CASE`
 * `groove.TAG_DONT_OVERWRITE`
 * `groove.TAG_APPEND`

#### file.setMetadata(key, value, [flags])

See `getMetadata` for flags.

#### file.metadata

For convenience, this is an object with all the metadata filled in.
You can still query individually with `getMetadata`. In order
to update metadata you must call `setMetadata` and then `save`.
This property is *not* updated when you call `setMetadata`.

#### file.dirty

Boolean whether `save` will do anything.

#### file.save(callback)

`callback(err)`

### GroovePlayer

### GrooveReplayGainScan<commit_msg>update README docs<commit_after># node-groove

Node.js bindings to [libgroove](https://github.com/superjoe30/libgroove) -
generic music player backend library.

## Usage

1. Install libgroove to your system.
2. `npm install --save groove`

```js
var groove = require('groove');

groove.open("danse-macabre.ogg", function(err, file) {
  if (err) throw err;
  console.log(file.metadata);
  console.log("duration:", file.duration());
  file.close();
});
```

## API Documentation

### GrooveFile

#### groove.open(filename, callback)

`callback(err, file)`

#### file.close()

#### file.duration()

In seconds.

#### file.shortNames()

A comma-separated list of short names for the format.

#### file.getMetadata(key, [flags])

Flags:

 * `groove.TAG_MATCH_CASE`
 * `groove.TAG_DONT_OVERWRITE`
 * `groove.TAG_APPEND`

#### file.setMetadata(key, value, [flags])

See `getMetadata` for flags.

#### file.metadata

For convenience, this is an object with all the metadata filled in.
You can still query individually with `getMetadata`. In order
to update metadata you must call `setMetadata` and then `save`.
This property is *not* updated when you call `setMetadata`.

#### file.dirty

Boolean whether `save` will do anything.

#### file.filename

The string that was passed to `groove.open`

#### file.save(callback)

`callback(err)`

### GroovePlayer

### GrooveReplayGainScan
{'fraction_non_alphanumeric': 0.15246636771300448, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 4.72008547008547, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7496643', 'n_tokens_mistral': 893, 'n_tokens_neox': 863, 'n_words': 257}