<commit_before>'use strict';

const Syno = require('syno');

let connection = new Syno({
  protocol: 'http',
  host: '192.168.2.3',
  port: '5000',
  account: process.env.USER,
  passwd: <PASSWORD>,
  apiVersion: '6.0.2'
});

connection.as.searchSong({'title': 'bowling girl'}, (err, data) => {
  if (err) {
    console.log(err);
  } else {
    console.log(data);
  }
});<commit_msg>Brainstorm approaches to scrobbling<commit_after>'use strict';

const Syno = require('syno');

let connection = new Syno({
  protocol: 'http',
  host: '192.168.2.3',
  port: '5000',
  account: process.env.USER,
  passwd: <PASSWORD>,
  apiVersion: '6.0.2'
});

connection.as.searchSong({'title': 'bowling girl'}, (err, data) => {
  if (err) {
    console.log("Error: \n", err);
  } else {
    console.log("Received the following data:\n", data);
  }
});

// listen for requests by AudioStation
// or web scrape
{'fraction_non_alphanumeric': 0.19506726457399104, 'fraction_numerical': 0.033632286995515695, 'mean_word_length': 3.7754010695187166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2680778', 'n_tokens_mistral': 347, 'n_tokens_neox': 329, 'n_words': 79}