<commit_before>(function() {

  'use strict';

  function LevelGraphService() {

    // initialize levelgraph db adapter
    var Level = require('level');
    var LevelGraph = require('levelgraph');
    var LevelN3 = require('levelgraph-n3');
    var LevelJSONLD = require ('levelgraph-jsonld');

    var path = require('path');
    var remote = require('remote');
    var app = remote.require('app');

    var sysCfg = app.sysConfig();

    function DataService(dbName) {

      var db = new Level(path.join(sysCfg.paths.data, dbName));
      var lDB = LevelN3(LevelJSONLD(db));
      console.log(lDB);<commit_msg>bugfix levelgraph service init<commit_after>(function() {

  'use strict';

  function LevelGraphService() {

    // initialize levelgraph db adapter
    var Level = require('level');
    var LevelGraph = require('levelgraph');
    var LevelN3 = require('levelgraph-n3');
    var LevelJSONLD = require ('levelgraph-jsonld');

    var path = require('path');
    var remote = require('remote');
    var app = remote.require('app');

    var sysCfg = app.sysConfig();

    function DataService(dbName) {

      var db = new Level(path.join(sysCfg.paths.data, dbName));
      var lDB = LevelN3(LevelJSONLD(LevelGraph(db)));
      console.log(lDB);
{'fraction_non_alphanumeric': 0.14138204924543288, 'fraction_numerical': 0.004765687053216839, 'mean_word_length': 3.5323741007194243, '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': '5310741', 'n_tokens_mistral': 383, 'n_tokens_neox': 368, 'n_words': 92}