<commit_before>import { IClique, IGraph, ISepSet } from '../types'

export const buildJunctionTree = (cliqueGraph: IGraph, cliques: IClique[], sepSets: ISepSet[]): IGraph => {
  sepSets.sort((a, b) => b.sharedNodes.length - a.sharedNodes.length)

  const spanningTree: ISepSet[] = []
<commit_msg>fix(junction-tree): fix setpsets that were been removed<commit_after>import { IClique, IGraph, ISepSet } from '../types'

export const buildJunctionTree = (cliqueGraph: IGraph, cliques: IClique[], sepSets: ISepSet[]): IGraph => {
  sepSets.sort((a, b) => a.sharedNodes.length - b.sharedNodes.length)

  const spanningTree: ISepSet[] = []

{'fraction_non_alphanumeric': 0.15457413249211358, 'fraction_numerical': 0.0, 'mean_word_length': 5.2254901960784315, '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': '4017441', 'n_tokens_mistral': 215, 'n_tokens_neox': 211, 'n_words': 52}