<commit_before>gNodes.FORCE_LAYOUT_ITERATIONS = 100000;

gNodes.forcedDirectedLayout = function () {
  var bottomBound = gGraph.height - gGraph.BUFFER;
  var rightBound = gGraph.width - gGraph.BUFFER;
  var leftBound = kBuffer;
  var topBound = kBuffer;
  
  var nodes = [];
  gNodes.nodes.forEach (function (node) {
    nodes.push ({
      x: node.x,
      y: node.y,
      vx: 0,
      vy: 0
    });
  });
  var edges = [];
  gEdges.edges.forEach (function (edge) {
    edges.push ({
      source: gNodes.getNodeIndex (edge.source.id),
      target: gNodes.getNodeIndex (edge.target.id)
    });
  });
  
  var force = d3.layout.force ()
    .nodes (nodes)
    .links (edges)
    .linkDistance (200)
    .charge (-300)
    .gravity (0.01)
    .size ([gGraph.width - 2 * kBuffer, gGraph.height - 2 * kBuffer]);
  
  force.start();
  for (var i = 0; i < gNodes.FORCE_LAYOUT_ITERATIONS; i++) {
      force.tick();
  }
  force.stop();
  
  var xMin = nodes[0].x;
  var xMax = nodes[0].x;
  var yMin = nodes[0].y;
  var yMax = nodes[0].y;
  for (var i = 1; i < nodes.length; i++) {
    xMin = Math.min (xMin, nodes[i].x);<commit_msg>Fixed force directed layout constant names<commit_after>gNodes.FORCE_LAYOUT_ITERATIONS = 100000;

gNodes.forcedDirectedLayout = function () {
  var bottomBound = gGraph.height - gGraph.BUFFER;
  var rightBound = gGraph.width - gGraph.BUFFER;
  var leftBound = gGraph.BUFFER;
  var topBound = gGraph.BUFFER;
  
  var nodes = [];
  gNodes.nodes.forEach (function (node) {
    nodes.push ({
      x: node.x,
      y: node.y,
      vx: 0,
      vy: 0
    });
  });
  var edges = [];
  gEdges.edges.forEach (function (edge) {
    edges.push ({
      source: gNodes.getNodeIndex (edge.source.id),
      target: gNodes.getNodeIndex (edge.target.id)
    });
  });
  
  var force = d3.layout.force ()
    .nodes (nodes)
    .links (edges)
    .linkDistance (200)
    .charge (-300)
    .gravity (0.01)
    .size ([gGraph.width - 2 * gGraph.BUFFER, gGraph.height - 2 * gGraph.BUFFER]);
  
  force.start();
  for (var i = 0; i < gNodes.FORCE_LAYOUT_ITERATIONS; i++) {
      force.tick();
  }
  force.stop();
  
  var xMin = nodes[0].x;
  var xMax = nodes[0].x;
  var yMin = nodes[0].y;
  var yMax = nodes[0].y;
  for (var i = 1; i < nodes.length; i++) {
    xMin = Math.min (xMin, nodes[i].x);
{'fraction_non_alphanumeric': 0.1592384249242752, 'fraction_numerical': 0.02250108178277802, 'mean_word_length': 2.5351681957186543, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6163644', 'n_tokens_mistral': 904, 'n_tokens_neox': 863, 'n_words': 198}