<commit_before>var utils  = require('radiodan-client').utils,
    logger = utils.logger(__filename);

module.exports.create = create;

function create(register, eventBus, settings) {
  var instance = {},
      history  = [],
      currentServiceId;

  instance.change       = change;
  instance.next         = nextService;
  instance.revert       = revert;
  instance.events       = register.events;
  instance.get          = get;
  instance.programmeFor = programmeFor;
  instance.all          = all;
  instance.current      = current;

  settings.get().then(function(setData) {
    instance.default = setData.serviceId;<commit_msg>TODO: remove servicesManager#get<commit_after>var utils  = require('radiodan-client').utils,
    logger = utils.logger(__filename);

module.exports.create = create;

function create(register, eventBus, settings) {
  var instance = {},
      history  = [],
      currentServiceId;

  instance.change       = change;
  instance.next         = nextService;
  instance.revert       = revert;
  instance.events       = register.events;
  // TODO: replace instances of `get` for `playlist`
  instance.get          = get;
  instance.playlist     = get;
  instance.programmeFor = programmeFor;
  instance.all          = all;
  instance.current      = current;

  settings.get().then(function(setData) {
    instance.default = setData.serviceId;
{'fraction_non_alphanumeric': 0.11249086924762601, 'fraction_numerical': 0.0, 'mean_word_length': 2.8810198300283285, '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': '4517929', 'n_tokens_mistral': 394, 'n_tokens_neox': 390, 'n_words': 78}