{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/baseline.analyzer.ts",
          "name": "uniformity",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-baseline-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/baseline.analyzer.ts",
            "label": "core/analyzers/baseline.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/baseline.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-baseline-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "compositionOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "liftOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "orderedOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "positionalOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "slotPatternsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "topPairsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/selectors/counter.selector.ts",
          "name": "topEntries",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-counter-selector-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/selectors/counter.selector.ts",
            "label": "core/selectors/counter.selector.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/selectors/counter.selector.ts.md",
            "ref": "anatomy:file-patterns-core-selectors-counter-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 53,
      "name": "result",
      "signature": "public result(top = DEFAULT_TOP): GraphSummary {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "combinations2",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        },
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 88,
      "name": "recordMembers",
      "signature": "private recordMembers(members: readonly string[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        },
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 98,
      "name": "recordPositions",
      "signature": "private recordPositions(items: readonly string[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/representation.graph.analyzer.ts",
          "name": "countAdjacent",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
            "label": "core/analyzers/representation.graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
          }
        },
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 109,
      "name": "observeNumeric",
      "signature": "private observeNumeric(distinct: ReadonlySet<unknown>): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/record.selector.ts",
          "name": "foldRecords",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-record-selector-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/selectors/record.selector.ts",
            "label": "core/selectors/record.selector.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/selectors/record.selector.ts.md",
            "ref": "anatomy:file-patterns-core-selectors-record-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 40,
      "name": "update",
      "signature": "public update(chunk: readonly unknown[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/counter.selector.ts",
          "name": "weightedSample",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-counter-selector-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/selectors/counter.selector.ts",
            "label": "core/selectors/counter.selector.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/selectors/counter.selector.ts.md",
            "ref": "anatomy:file-patterns-core-selectors-counter-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 46,
      "name": "sample",
      "signature": "public sample(rng: Rng): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "DEFAULT_TOP",
      "signature": "const DEFAULT_TOP = 10;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "class_declaration",
      "line": 21,
      "name": "GraphAccumulator",
      "signature": "export class GraphAccumulator {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 22,
      "name": "field",
      "signature": "private readonly field: string;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 24,
      "name": "pairs",
      "signature": "private readonly pairs = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 25,
      "name": "numeric",
      "signature": "private readonly numeric = new Map<number, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 26,
      "name": "positions",
      "signature": "private readonly positions = new Map<number, Map<string, number>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 27,
      "name": "sets",
      "signature": "private readonly sets = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 28,
      "name": "slots",
      "signature": "private readonly slots = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 29,
      "name": "records",
      "signature": "private records = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 30,
      "name": "listRecords",
      "signature": "private listRecords = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 31,
      "name": "edges",
      "signature": "private edges = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 32,
      "name": "maxDegree",
      "signature": "private maxDegree = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 33,
      "name": "adjacent",
      "signature": "private adjacent = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 34,
      "name": "allNumeric",
      "signature": "private allNumeric = true;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 36,
      "name": "constructor",
      "signature": "public constructor(field: string) {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 74,
      "name": "observe",
      "signature": "private observe(value: unknown): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "members",
      "signature": "const members = [...new Set(value.map(String))].sort((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "counter",
      "signature": "const counter = this.positions.get(index) ?? new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 104,
      "name": "i",
      "signature": "for (let i = 0; i + 1 < items.length; i += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "numbers",
      "signature": "const numbers = [...distinct].filter((item): item is number => typeof item === \"number\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 115,
      "name": "values",
      "signature": "const values = numbers.toSorted((a, b) => a - b);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-representation-graph-aggregator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "representation.graph.aggregator.ts",
  "path": "core/aggregators/representation.graph.aggregator.ts",
  "ref": "anatomy:file-patterns-core-aggregators-representation-graph-aggregator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-aggregators",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-aggregators",
          "label": "core/aggregators",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-aggregators.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-aggregators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-baseline-analyzer-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/analyzers/baseline.analyzer.ts",
          "label": "core/analyzers/baseline.analyzer.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/analyzers/baseline.analyzer.ts.md",
          "ref": "anatomy:file-patterns-core-analyzers-baseline-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-graph-analyzer-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.graph.analyzer.ts",
          "label": "core/analyzers/representation.graph.analyzer.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.graph.analyzer.ts.md",
          "ref": "anatomy:file-patterns-core-analyzers-representation-graph-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
          "label": "core/counters/base.counter.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
          "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-counter-selector-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/selectors/counter.selector.ts",
          "label": "core/selectors/counter.selector.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/selectors/counter.selector.ts.md",
          "ref": "anatomy:file-patterns-core-selectors-counter-selector-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-record-selector-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/selectors/record.selector.ts",
          "label": "core/selectors/record.selector.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/selectors/record.selector.ts.md",
          "ref": "anatomy:file-patterns-core-selectors-record-selector-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-analyzers.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-counters",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-counters",
          "label": "core/counters",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-counters.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-counters"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-selectors.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "aggregator",
    "subject": "representation",
    "variant": "graph"
  },
  "stats": {
    "bytes": 4479,
    "callable": 8,
    "definitions": 27,
    "edges": 17,
    "exported": 26,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 6,
      "isolated": 21
    },
    "lines": {
      "blank": 10,
      "code": 111,
      "total": 121
    }
  },
  "summary": "111 lines of code and 27 definitions.",
  "text": "https://banes-lab.com/source/patterns/core/aggregators/representation.graph.aggregator.ts.txt",
  "tree": "patterns",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-representation-grid-aggregator-ts",
      "json": "https://banes-lab.com/json/source/patterns/core/aggregators/representation.grid.aggregator.ts",
      "label": "core/aggregators/representation.grid.aggregator.ts",
      "markdown": "https://banes-lab.com/source/patterns/core/aggregators/representation.grid.aggregator.ts.md",
      "ref": "anatomy:file-patterns-core-aggregators-representation-grid-aggregator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-representation-distribution-aggregator-ts",
      "json": "https://banes-lab.com/json/source/patterns/core/aggregators/representation.distribution.aggregator.ts",
      "label": "core/aggregators/representation.distribution.aggregator.ts",
      "markdown": "https://banes-lab.com/source/patterns/core/aggregators/representation.distribution.aggregator.ts.md",
      "ref": "anatomy:file-patterns-core-aggregators-representation-distribution-aggregator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/patterns/core/aggregators",
    "label": "core/aggregators",
    "markdown": "https://banes-lab.com/api/source/patterns/core/aggregators.md",
    "ref": "api:source/patterns/core/aggregators"
  }
}
