{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/aggregators/representation.distribution.aggregator.ts",
          "name": "result",
          "source": {
            "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"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "temporalOf",
      "signature": "export const temporalOf = function temporalOf(counts: ReadonlyMap<string, number>): Temporal | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/aggregators/representation.distribution.aggregator.ts",
          "name": "result",
          "source": {
            "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"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "witnessesOf",
      "signature": "export const witnessesOf = function witnessesOf("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/aggregators/representation.distribution.aggregator.ts",
          "name": "result",
          "source": {
            "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"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "overdueOf",
      "signature": "export const overdueOf = function overdueOf("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/aggregators/representation.distribution.aggregator.ts",
          "name": "result",
          "source": {
            "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"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 94,
      "name": "driftOf",
      "signature": "export const driftOf = function driftOf("
    },
    {
      "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"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "bucketMonths",
      "signature": "const bucketMonths = function bucketMonths(counts: ReadonlyMap<string, number>): MonthBuckets | null {"
    },
    {
      "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"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "temperaturesOf",
      "signature": "export const temperaturesOf = function temperaturesOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "HALF",
      "signature": "const HALF = 0.5;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "YEAR_END",
      "signature": "const YEAR_END = 4;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "MONTH_START",
      "signature": "const MONTH_START = 5;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "MONTH_END",
      "signature": "const MONTH_END = 7;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "ISO_LENGTH",
      "signature": "const ISO_LENGTH = 10;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "DATE_SEPARATOR",
      "signature": "const DATE_SEPARATOR = \"-\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "DIGITS",
      "signature": "const DIGITS: ReadonlySet<string> = new Set([\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 13,
      "name": "MonthBuckets",
      "signature": "interface MonthBuckets {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "byMagnitudeDesc",
      "signature": "const byMagnitudeDesc = function byMagnitudeDesc(a: readonly [string, number], b: readonly [string, number]): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "isoMonth",
      "signature": "const isoMonth = function isoMonth(value: string): number | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "i",
      "signature": "for (let i = 0; i < value.length; i += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "byMonth",
      "signature": "const byMonth = new Map<number, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "moments",
      "signature": "const moments: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "month",
      "signature": "const month = isoMonth(value);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "bucketed",
      "signature": "const bucketed = bucketMonths(counts);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "sorted",
      "signature": "const sorted = bucketed.moments.toSorted((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "recent",
      "signature": "const recent = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "{ indexSum, total, limit }",
      "signature": "const { indexSum, total, limit } = context;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 102,
      "name": "midpoint",
      "signature": "const midpoint = (total - 1) * HALF;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 103,
      "name": "scored",
      "signature": "const scored = [...counts.keys()].map((value): [string, number] => ["
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "representation.distribution.analyzer.ts",
  "path": "core/analyzers/representation.distribution.analyzer.ts",
  "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts",
  "relations": [
    {
      "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"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "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"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "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"
        }
      ],
      "relation": "used-by"
    },
    {
      "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"
        },
        {
          "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"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "representation",
    "variant": "distribution"
  },
  "stats": {
    "bytes": 3617,
    "callable": 8,
    "definitions": 26,
    "edges": 2,
    "exported": 11,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 4,
      "entry": 2,
      "isolated": 20
    },
    "lines": {
      "blank": 10,
      "code": 98,
      "total": 108
    }
  },
  "summary": "98 lines of code and 26 definitions.",
  "text": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.txt",
  "tree": "patterns",
  "siblings": {
    "next": {
      "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"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-information-analyzer-ts",
      "json": "https://banes-lab.com/json/source/patterns/core/analyzers/information.analyzer.ts",
      "label": "core/analyzers/information.analyzer.ts",
      "markdown": "https://banes-lab.com/source/patterns/core/analyzers/information.analyzer.ts.md",
      "ref": "anatomy:file-patterns-core-analyzers-information-analyzer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/patterns/core/analyzers",
    "label": "core/analyzers",
    "markdown": "https://banes-lab.com/api/source/patterns/core/analyzers.md",
    "ref": "api:source/patterns/core/analyzers"
  }
}
