<commit_before>/*global require, applicationContext */
(function () {
  'use strict';
  var db = require('org/arangodb').db,
    sessionsName = applicationContext.collectionName('sessions');

  if (db._collection(sessionsName) === null) {
    db._create(sessionsName, {isSystem: true});
  }
}());<commit_msg>Fixed the sessions app, to create the _sessions collection if it is used on the internal mount point<commit_after>/*global require, applicationContext */
(function () {
  'use strict';
  var db = require('org/arangodb').db,
      sessionsName;

  if (applicationContext.mount.indexOf('/_system/') === 0) {
    sessionsName = '_sessions';
  } else {
    sessionsName = applicationContext.collectionName('sessions');
  }

  if (db._collection(sessionsName) === null) {
    db._create(sessionsName, {isSystem: true});
  }
}());
{'fraction_non_alphanumeric': 0.15504807692307693, 'fraction_numerical': 0.001201923076923077, 'mean_word_length': 4.553333333333334, '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': '5991252', 'n_tokens_mistral': 254, 'n_tokens_neox': 251, 'n_words': 58}