<commit_before>module.exports = {
  create
}

let tree = {
  nodes: [],
  links: []
}

function create(state) {
 return Object.keys(state).reduce((tree, key) => createCoords(state, key), {})
}

function createCoords(state, key) {
  const node = state[key]

  tree.nodes.push({
    id: key,
    name: key
  })

  const links = node.dependencies.map(dep => ({
    source: key,<commit_msg>Pass reference number to list<commit_after>module.exports = {
  create
}

let tree = {
  nodes: [],
  links: []
}

function create(state) {
 return Object.keys(state).reduce((tree, key) => createCoords(state, key), {})
}

function createCoords(state, key) {
  const node = state[key]

  tree.nodes.push({
    id: key,
    name: key,
    references: node.references.length
  })

  const links = node.dependencies.map(dep => ({
    source: key,
{'fraction_non_alphanumeric': 0.15942028985507245, 'fraction_numerical': 0.0, 'mean_word_length': 3.530054644808743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3770010', 'n_tokens_mistral': 288, 'n_tokens_neox': 284, 'n_words': 63}