<commit_before>jQuery(document).ready(function() {
  var _debug = jQuery('#output');

  module("Overview");

  test("Created canvas", function() {
    _debug.append('<div id="utilitiestest0" style="width:640px;height:100px;background-color:#000"></div>');

    var opts = {
      injectInto: 'utilitiestest0',
      layout: 'ForceDirected',
      Navigation: {
        enable: true,
        panning: true,
        zooming: 40
      },
      Node: {
        overridable: true,
        dim: 20,
        lineWidth: 5
      },
      Edge: {
        overridable: true,
        color: '#23A4FF',
        lineWidth: 3,
        type: 'line'
      },
      Label: {
        type: 'SVG'
      }
    };

    var main = new $jit.NetworkMap(opts);

    main.loadJSON([
      {
        id: 'id1',
        adjacencies: [
          { nodeTo: 'id2' }, { nodeTo: 'id3' }
        ]
      }
    ]);
    main.refresh();

    var container = jQuery('<div id="utilitiestest1" style="width:640px;height:100px;background-color:#000"></div>').appendTo(_debug);
    var over = new $NetworkMap.Views.Overview(main, { injectInto: 'utilitiestest1' }, 0);

    ok(true, 'created overview');
  });

});<commit_msg>Add tests for overview manager<commit_after>jQuery(document).ready(function() {
  var _debug = jQuery('#output');

  module("Overview");

  test("Created canvas", function() {
    _debug.append('<div id="utilitiestest0" style="width:640px;height:100px;background-color:#000"></div>');

    var opts = {
      injectInto: 'utilitiestest0',
      layout: 'ForceDirected',
      Navigation: {
        enable: true,
        panning: true,
        zooming: 40
      },
      Node: {
        overridable: true,
        dim: 20,
        lineWidth: 5
      },
      Edge: {
        overridable: true,
        color: '#23A4FF',
        lineWidth: 3,
        type: 'line'
      },
      Label: {
        type: 'SVG'
      }
    };

    var main = new $jit.NetworkMap(opts);

    main.loadJSON([
      {
        id: 'id1',
        adjacencies: [
          { nodeTo: 'id2' }, { nodeTo: 'id3' }
        ]
      }
    ]);
    main.refresh();

    var container = jQuery('<div id="utilitiestest1" style="width:640px;height:100px;background-color:#000"></div>').appendTo(_debug);
    var over = new $NetworkMap.Views.Overview(main, { injectInto: 'utilitiestest1' }, 0);

    ok(true, 'created overview');
  });
  
  test("Overview Manager Test", function() {
    _debug.append('<div id="utilitiestest2" style="width:640px;height:100px;background-color:#000"></div>');

    var opts = {
      injectInto: 'utilitiestest2',
      layout: 'ForceDirected',
      Navigation: {
        enable: true,
        panning: true,
        zooming: 40
      },
      Node: {
        overridable: true,
        dim: 20,
        lineWidth: 5
      },
      Edge: {
        overridable: true,
        color: '#23A4FF',
        lineWidth: 3,
        type: 'line'
      },
      Label: {
        type: 'SVG'
      }
    };

    var main = new $jit.NetworkMap(opts);

    main.loadJSON([
      {
        id: 'id1',
        adjacencies: [
          { nodeTo: 'id2' }, { nodeTo: 'id3' }
        ]
      }
    ]);
    main.refresh();

    var container = jQuery('<div id="utilitiestest3" style="width:640px;background-color:#000"></div>').appendTo(_debug);
    var manager = new $NetworkMap.Views.OverviewManager(main, container, 640, 150);

    ok(true, 'created overview');
  });

});
{'fraction_non_alphanumeric': 0.16068824730242054, 'fraction_numerical': 0.030912802566345873, 'mean_word_length': 2.1818181818181817, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5073632', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1111, 'n_words': 213}