<commit_before>var notification = {

  checkNotification: function(statusCode, response, notificationsEnabled) {
    return (
      statusCode === 200 && notification.isStatusUpdate(response) && notificationsEnabled
    );
  },

  isStatusUpdate: function(response) {
    var data = JSON.parse(response);
    return data.statusChanged === "true";
  },

  fetchUpdated: function(url, request, notificationCallback) {
    request.get(url + '/registry/updated', function(err, response, statusCode) {<commit_msg>connector: fix response parsing in notifications.<commit_after>var notification = {

  checkNotification: function(statusCode, response, notificationsEnabled) {
    return (
      statusCode === 200 && notification.isStatusUpdate(response) && notificationsEnabled
    );
  },

  isStatusUpdate: function(response) {
    return response.statusChanged === "true";
  },

  fetchUpdated: function(url, request, notificationCallback) {
    request.get(url + '/registry/updated', function(err, response, statusCode) {
{'fraction_non_alphanumeric': 0.12070657507360157, 'fraction_numerical': 0.005888125613346418, 'mean_word_length': 4.862068965517241, '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': '4306151', 'n_tokens_mistral': 274, 'n_tokens_neox': 255, 'n_words': 58}