<commit_before>Nbsp = {};

Nbsp.updateColor = function() {
  var red = Session.get('red'),
      green = Session.get('green'),
      blue = Session.get('blue');
  $('body').css({
    'background-color': 'rgb(' + red + ', ' + green + ', ' + blue + ')'
  });
}

if (Meteor.isClient) {

  Session.setDefault('red', 0);
  Session.setDefault('green', 0);
  Session.setDefault('blue', 0);

  Template.form.onCreated(function() {
    Nbsp.updateColor();
  });

  Template.form.helpers({
    counter: function () {
      return Session.get('counter');
    }
  });

  Template.form.events({
    'change input': function (event) {
      Session.set(event.target.id, event.target.value)

      Nbsp.updateColor();

      $('')
    }
  });
}

if (Meteor.isServer) {
  Meteor.startup(function () {
    // code to run on server at startup
  });
}<commit_msg>Initialize Hue service at startup<commit_after>Nbsp = {};

Nbsp.updateColor = function() {
  var red = Session.get('red'),
      green = Session.get('green'),
      blue = Session.get('blue');
  $('body').css({
    'background-color': 'rgb(' + red + ', ' + green + ', ' + blue + ')'
  });
}

if (Meteor.isClient) {

  Session.setDefault('red', 0);
  Session.setDefault('green', 0);
  Session.setDefault('blue', 0);

  Template.form.onCreated(function() {
    Nbsp.updateColor();
  });

  Template.form.helpers({
    counter: function () {
      return Session.get('counter');
    }
  });

  Template.form.events({
    'change input': function (event) {
      Session.set(event.target.id, event.target.value)

      Nbsp.updateColor();
    }
  });
}

if (Meteor.isServer) {
  Meteor.startup(function () {
    let hueSettings = Meteor.settings.hue || Meteor.settings.public.hue;
    if (!hueSettings) {
      throw new Meteor.Error(500, "Hue credentials not available.");
    }
    Nbsp.hue = new HueBridge(hueSettings.server, hueSettings.username);
  });
}
{'fraction_non_alphanumeric': 0.1911532385466035, 'fraction_numerical': 0.004739336492890996, 'mean_word_length': 3.068522483940043, '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': '2686126', 'n_tokens_mistral': 677, 'n_tokens_neox': 647, 'n_words': 112}