@memberjunction/codegen-lib 6.2.0-edge.5 → 6.2.0-edge.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +1 -0
  2. package/dist/Angular/angular-codegen.d.ts +12 -1
  3. package/dist/Angular/angular-codegen.d.ts.map +1 -1
  4. package/dist/Angular/angular-codegen.js +36 -1
  5. package/dist/Angular/angular-codegen.js.map +1 -1
  6. package/dist/Config/config.d.ts +301 -0
  7. package/dist/Config/config.d.ts.map +1 -1
  8. package/dist/Config/config.js +188 -84
  9. package/dist/Config/config.js.map +1 -1
  10. package/dist/Database/codeGenDatabaseProvider.d.ts +101 -4
  11. package/dist/Database/codeGenDatabaseProvider.d.ts.map +1 -1
  12. package/dist/Database/codeGenDatabaseProvider.js +170 -4
  13. package/dist/Database/codeGenDatabaseProvider.js.map +1 -1
  14. package/dist/Database/manage-metadata.d.ts +379 -24
  15. package/dist/Database/manage-metadata.d.ts.map +1 -1
  16. package/dist/Database/manage-metadata.js +1021 -237
  17. package/dist/Database/manage-metadata.js.map +1 -1
  18. package/dist/Database/materializationAnalysis.d.ts +18 -4
  19. package/dist/Database/materializationAnalysis.d.ts.map +1 -1
  20. package/dist/Database/materializationAnalysis.js +113 -99
  21. package/dist/Database/materializationAnalysis.js.map +1 -1
  22. package/dist/Database/materializationBroadRender.d.ts +7 -3
  23. package/dist/Database/materializationBroadRender.d.ts.map +1 -1
  24. package/dist/Database/materializationBroadRender.js +89 -56
  25. package/dist/Database/materializationBroadRender.js.map +1 -1
  26. package/dist/Database/materializationParamClassifier.d.ts +1 -1
  27. package/dist/Database/materializationParamClassifier.js +2 -2
  28. package/dist/Database/materializationParamVerifier.d.ts +1 -1
  29. package/dist/Database/materializationParamVerifier.d.ts.map +1 -1
  30. package/dist/Database/materializationParamVerifier.js +127 -221
  31. package/dist/Database/materializationParamVerifier.js.map +1 -1
  32. package/dist/Database/materializationSqlAst.d.ts +107 -79
  33. package/dist/Database/materializationSqlAst.d.ts.map +1 -1
  34. package/dist/Database/materializationSqlAst.js +307 -134
  35. package/dist/Database/materializationSqlAst.js.map +1 -1
  36. package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.d.ts +25 -5
  37. package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.d.ts.map +1 -1
  38. package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.js +135 -26
  39. package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.js.map +1 -1
  40. package/dist/Database/providers/postgresql/__tests__/MetadataSupportObjectsDDL.test.js +9 -5
  41. package/dist/Database/providers/postgresql/__tests__/MetadataSupportObjectsDDL.test.js.map +1 -1
  42. package/dist/Database/providers/postgresql/metadataSupportObjects.js +289 -90
  43. package/dist/Database/providers/postgresql/metadataSupportObjects.js.map +1 -1
  44. package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.d.ts +48 -12
  45. package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.d.ts.map +1 -1
  46. package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.js +146 -54
  47. package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.js.map +1 -1
  48. package/dist/Database/providers/sqlserver/__tests__/VerifiedJoinIndexes.test.js +66 -0
  49. package/dist/Database/providers/sqlserver/__tests__/VerifiedJoinIndexes.test.js.map +1 -1
  50. package/dist/Database/providers/sqlserver/sqlServerDefaultValues.d.ts +47 -0
  51. package/dist/Database/providers/sqlserver/sqlServerDefaultValues.d.ts.map +1 -0
  52. package/dist/Database/providers/sqlserver/sqlServerDefaultValues.js +167 -0
  53. package/dist/Database/providers/sqlserver/sqlServerDefaultValues.js.map +1 -0
  54. package/dist/Database/providers/sqlserver/sqlServerScriptText.d.ts +31 -0
  55. package/dist/Database/providers/sqlserver/sqlServerScriptText.d.ts.map +1 -0
  56. package/dist/Database/providers/sqlserver/sqlServerScriptText.js +116 -0
  57. package/dist/Database/providers/sqlserver/sqlServerScriptText.js.map +1 -0
  58. package/dist/Database/queryRebindPass.d.ts +37 -0
  59. package/dist/Database/queryRebindPass.d.ts.map +1 -0
  60. package/dist/Database/queryRebindPass.js +110 -0
  61. package/dist/Database/queryRebindPass.js.map +1 -0
  62. package/dist/Database/schema-scope.d.ts +12 -0
  63. package/dist/Database/schema-scope.d.ts.map +1 -1
  64. package/dist/Database/schema-scope.js +15 -0
  65. package/dist/Database/schema-scope.js.map +1 -1
  66. package/dist/Database/sql.d.ts +13 -0
  67. package/dist/Database/sql.d.ts.map +1 -1
  68. package/dist/Database/sql.js +39 -8
  69. package/dist/Database/sql.js.map +1 -1
  70. package/dist/Database/sql_codegen.d.ts +212 -6
  71. package/dist/Database/sql_codegen.d.ts.map +1 -1
  72. package/dist/Database/sql_codegen.js +765 -63
  73. package/dist/Database/sql_codegen.js.map +1 -1
  74. package/dist/Misc/advanced_generation.d.ts +129 -5
  75. package/dist/Misc/advanced_generation.d.ts.map +1 -1
  76. package/dist/Misc/advanced_generation.js +212 -8
  77. package/dist/Misc/advanced_generation.js.map +1 -1
  78. package/dist/Misc/display-name-heuristics.d.ts +57 -0
  79. package/dist/Misc/display-name-heuristics.d.ts.map +1 -0
  80. package/dist/Misc/display-name-heuristics.js +97 -0
  81. package/dist/Misc/display-name-heuristics.js.map +1 -0
  82. package/dist/Misc/entity_subclasses_codegen.d.ts +31 -3
  83. package/dist/Misc/entity_subclasses_codegen.d.ts.map +1 -1
  84. package/dist/Misc/entity_subclasses_codegen.js +79 -17
  85. package/dist/Misc/entity_subclasses_codegen.js.map +1 -1
  86. package/dist/Misc/remote_operations_codegen.d.ts.map +1 -1
  87. package/dist/Misc/remote_operations_codegen.js +21 -4
  88. package/dist/Misc/remote_operations_codegen.js.map +1 -1
  89. package/dist/Misc/sql_logging.d.ts +12 -0
  90. package/dist/Misc/sql_logging.d.ts.map +1 -1
  91. package/dist/Misc/sql_logging.js +21 -8
  92. package/dist/Misc/sql_logging.js.map +1 -1
  93. package/dist/Misc/system_integrity.d.ts +48 -0
  94. package/dist/Misc/system_integrity.d.ts.map +1 -1
  95. package/dist/Misc/system_integrity.js +151 -75
  96. package/dist/Misc/system_integrity.js.map +1 -1
  97. package/dist/Misc/validator-text.d.ts +17 -0
  98. package/dist/Misc/validator-text.d.ts.map +1 -1
  99. package/dist/Misc/validator-text.js +59 -0
  100. package/dist/Misc/validator-text.js.map +1 -1
  101. package/dist/runCodeGen.d.ts +37 -3
  102. package/dist/runCodeGen.d.ts.map +1 -1
  103. package/dist/runCodeGen.js +161 -51
  104. package/dist/runCodeGen.js.map +1 -1
  105. package/package.json +29 -29
@@ -1,96 +1,124 @@
1
+ import { SqlDocument, type IdentifierPath, type SelectCore, type SqlToken } from '@memberjunction/sql-parser';
2
+ import { type ParserDialect, type SQLParserDialect } from '@memberjunction/sql-dialect';
1
3
  /**
2
- * Shared, dialect-tolerant primitives for walking node-sql-parser's loosely-typed JSON AST, used by the
3
- * materialization CodeGen analyzers: the parameter verifier (materializationParamVerifier.ts), the broad-render
4
- * predicate stripper (materializationBroadRender.ts), and the GROUP BY key detector (materializationAnalysis.ts).
4
+ * Shared readers of a SQL statement's structure for the materialization CodeGen analyzers: the
5
+ * parameter verifier (materializationParamVerifier.ts), the broad-render predicate remover
6
+ * (materializationBroadRender.ts), and the key and binding analyses (materializationAnalysis.ts).
5
7
  *
6
- * These MUST be a single source of truth. The verifier classifies a parameter as a clean RowFilter using
7
- * LITERAL_NODE_TYPES / COMPARISON_OPS, and broad-render strips exactly those predicates; if divergent hand-kept
8
- * copies drifted (e.g. a node-sql-parser upgrade adds a literal node type to one set but not the other), the
9
- * verifier could accept a predicate broad-render then fails to isolate — a wrongly-filtered materialization.
10
- * Centralizing them here removes that hazard.
8
+ * These MUST be a single source of truth. The verifier classifies a parameter as a clean row filter
9
+ * only where {@link ReadComparison} reads a `column <op> literal` conjunct, and broad-render removes
10
+ * exactly the conjuncts the same reader accepts. If the two drifted apart, the verifier could accept
11
+ * a predicate that broad-render then fails to isolate, and the materialization would be filtered wrongly.
11
12
  *
12
- * node-sql-parser emits a discriminated-ish union of dozens of node shapes; walking it generically is the
13
- * correct use of `unknown` + type guards (every access is narrowed), not a lazy escape. A node is a scalar,
14
- * an array, or a keyed object with an optional `type` discriminant.
13
+ * Everything here reads a {@link SqlDocument}: token ranges and spans over the author's text. A WHERE
14
+ * condition is read as a tree of AND-ed conjuncts ({@link ReadConditionTree}); each conjunct that is
15
+ * not itself an AND chain is a leaf, and only a leaf can be a re-applicable row filter.
15
16
  */
16
- export type AstNode = unknown;
17
- export type AstObject = Record<string, unknown>;
18
- /** Literal-leaf node types whose `value` is the substituted literal (the value side of a filter predicate). */
19
- export declare const LITERAL_NODE_TYPES: Set<string>;
20
17
  /** Comparison operators whose `column <op> value` form is a re-applicable read-time row filter. */
21
18
  export declare const COMPARISON_OPS: Set<string>;
22
- export declare function IsObject(v: AstNode): v is AstObject;
23
- /** @deprecated Use {@link IsObject}. */
24
- export declare function isObject(v: AstNode): v is AstObject;
25
- export declare function NodeType(v: AstNode): string | undefined;
26
- /** @deprecated Use {@link NodeType}. */
27
- export declare function nodeType(v: AstNode): string | undefined;
28
- export declare function IsLiteralNode(v: AstNode): boolean;
29
- /** @deprecated Use {@link IsLiteralNode}. */
30
- export declare function isLiteralNode(v: AstNode): boolean;
19
+ /** The category of a literal token. Two variants whose literal at one place changes category differ in shape. */
20
+ export type LiteralCategory = 'String' | 'Number' | 'Boolean' | 'Null';
21
+ /** How a predicate's value side is written: one scalar literal, or a list of literals (`IN (…)`, `BETWEEN a AND b`). */
22
+ export type PredicateValueKind = 'scalar' | 'list';
31
23
  /**
32
- * Resolves a `column_ref` node's bare column name across dialects. SQL Server emits `column` as a string;
33
- * PostgreSQL emits `column: { expr: { type: 'default', value: 'X' } }`. Returns null for computed/expression
34
- * columns (which are not clean filter/grouping columns).
35
- *
36
- * **This deliberately DISCARDS the table qualifier** — `o.Status` and `c.Status` both return `'Status'`.
37
- * That is correct for callers that only need a name, but a caller that MATCHES a column reference against
38
- * another column reference (a SELECT-list output, another predicate) MUST also compare
39
- * {@link columnQualifier} — see {@link qualifiedColumn}. Matching on the bare name alone silently conflates
40
- * same-named columns from different tables in a join.
24
+ * The faceted dialect the structural parser needs, for a dialect typed by the older parser interface.
25
+ * A built-in dialect object is used as itself; any other object is read by its parser grammar name.
41
26
  */
42
- export declare function ColumnName(v: AstNode): string | null;
43
- /** @deprecated Use {@link ColumnName}. */
44
- export declare function columnName(v: AstNode): string | null;
27
+ export declare function ToParserDialect(dialect: SQLParserDialect): ParserDialect;
28
+ /** Case- and whitespace-insensitive SQL identifier equality. Null/undefined never matches anything. */
29
+ export declare function IdentifiersEqual(a: string | null | undefined, b: string | null | undefined): boolean;
30
+ /** A document whose only statement is a single SELECT block. */
31
+ export interface SoleSelect {
32
+ Document: SqlDocument;
33
+ Select: SelectCore;
34
+ }
45
35
  /**
46
- * Resolves a `column_ref` node's TABLE QUALIFIER — the `o` in `o.Status` (a table alias, or the table name
47
- * when no alias is declared). Returns null when the reference is unqualified (`Status`) or when the node is
48
- * not a `column_ref`. Dialect-tolerant in the same way as {@link columnName}.
36
+ * Parses `sql` and returns its sole SELECT block, or null when that is not what it is: text the parser
37
+ * could not read completely, several statements, a statement that is not a query, or a top-level query
38
+ * that is not one SELECT block. A set operation (`UNION`, `EXCEPT`, `INTERSECT`) is refused because no
39
+ * single block's WHERE, GROUP BY or select list describes the whole result. A leading WITH clause is
40
+ * allowed: the block returned is the query after it.
49
41
  */
50
- export declare function ColumnQualifier(v: AstNode): string | null;
51
- /** @deprecated Use {@link ColumnQualifier}. */
52
- export declare function columnQualifier(v: AstNode): string | null;
53
- /** A `column_ref` split into its optional table qualifier and its bare column name. */
54
- export interface QualifiedColumn {
55
- /** Table alias / table name qualifying the reference (`o` in `o.Status`); null when unqualified. */
56
- Qualifier: string | null;
57
- /** Bare column name (`Status` in `o.Status`). */
58
- column: string;
59
- }
42
+ export declare function ParseSoleSelect(sql: string, dialect: SQLParserDialect): SoleSelect | null;
43
+ /** The last part of an identifier path: the column name. */
44
+ export declare function PathColumn(path: IdentifierPath): string;
45
+ /** The part before the column in an identifier path (`o` in `o.Status`); null when the path is unqualified. */
46
+ export declare function PathQualifier(path: IdentifierPath): string | null;
60
47
  /**
61
- * Resolves a `column_ref` into its qualifier + column pair, or null when the node is not a plain column
62
- * reference. Prefer this over {@link columnName} whenever the resolved column is compared to ANOTHER
63
- * column reference — the qualifier is what distinguishes `o.Status` from `c.Status`.
48
+ * The literal category of a token, or null when it is not a literal. Only a plain `'…'` string counts as
49
+ * a string literal: a prefixed form such as `N'…'` is compared as written, so a value that changes one is
50
+ * read as a change of shape (refused) rather than as a varying literal.
64
51
  */
65
- export declare function qualifiedColumn(v: AstNode): QualifiedColumn | null;
66
- /** Case- and whitespace-insensitive SQL identifier equality. Null/undefined never matches anything. */
67
- export declare function IdentifiersEqual(a: string | null | undefined, b: string | null | undefined): boolean;
68
- /** @deprecated Use {@link IdentifiersEqual}. */
69
- export declare function identifiersEqual(a: string | null | undefined, b: string | null | undefined): boolean;
52
+ export declare function LiteralCategoryOf(token: SqlToken | undefined): LiteralCategory | null;
53
+ /** The index of the `)` that closes the `(` at `open`, searching before `end`; -1 when there is none. */
54
+ export declare function MatchingClose(tokens: readonly SqlToken[], open: number, end?: number): number;
55
+ /** The token range inside any parentheses that wrap all of `[start, end)`, subquery parentheses excepted. */
56
+ export declare function StripWrappingParens(tokens: readonly SqlToken[], start: number, end: number): {
57
+ Start: number;
58
+ End: number;
59
+ };
60
+ /** Whether `[start, end)` is exactly one scalar literal: optionally parenthesized, a number optionally signed. */
61
+ export declare function IsScalarLiteral(tokens: readonly SqlToken[], start: number, end: number): boolean;
70
62
  /**
71
- * True when a parsed statement root is a SET OPERATION (`UNION` / `UNION ALL` / `EXCEPT` / `INTERSECT`).
72
- *
73
- * **Why every analyzer needs this guard:** node-sql-parser does NOT emit a distinct `union` node type. It
74
- * emits a SINGLE `type: 'select'` root for the FIRST branch, carrying `set_op: 'union all'` and `_next`
75
- * (the remaining branch, itself a select node). So a naive `ast[0]` reader sees a plain SELECT whose
76
- * `columns`, `where`, and `groupby` describe **only the first branch** — every other branch is invisible.
77
- * Any analyzer that draws a conclusion about the whole result set (its key, its predicates, its shape)
78
- * from that root is silently reasoning about a fraction of the query. All such analyzers MUST refuse a
79
- * set-op root outright (§10 refuse-under-uncertainty).
63
+ * When the `(` at `open` starts a parenthesized, comma-separated list of scalar literals (`('A', 'B')`,
64
+ * `(1)`), the index of its closing `)`; otherwise -1.
65
+ */
66
+ export declare function LiteralListClose(tokens: readonly SqlToken[], open: number, end?: number): number;
67
+ /** A WHERE-condition conjunct that is not itself an AND chain. Token indexes are into the condition's tokens. */
68
+ export interface ConditionLeaf {
69
+ Kind: 'Leaf';
70
+ /** First token, including any wrapping parentheses. */
71
+ Start: number;
72
+ /** One past the last token, including any wrapping parentheses. */
73
+ End: number;
74
+ /** First token inside the wrapping parentheses. */
75
+ InnerStart: number;
76
+ /** One past the last token inside the wrapping parentheses. */
77
+ InnerEnd: number;
78
+ }
79
+ /** An AND chain: its conjuncts in order and the `AND` token between each pair. */
80
+ export interface ConditionAnd {
81
+ Kind: 'And';
82
+ /** First token, including any wrapping parentheses. */
83
+ Start: number;
84
+ /** One past the last token, including any wrapping parentheses. */
85
+ End: number;
86
+ Children: ConditionNode[];
87
+ /** `Separators[k]` is the index of the `AND` between `Children[k]` and `Children[k + 1]`. */
88
+ Separators: number[];
89
+ }
90
+ /** A node of a WHERE condition read as AND-ed conjuncts. */
91
+ export type ConditionNode = ConditionLeaf | ConditionAnd;
92
+ /**
93
+ * Whether a WHERE condition's tokens can be read as one boolean expression: not empty, and with no comma
94
+ * outside parentheses (a list where one condition belongs is not SQL any dialect accepts, so nothing in
95
+ * it is trusted).
80
96
  */
81
- export declare function IsSetOperationRoot(node: AstNode): boolean;
82
- /** @deprecated Use {@link IsSetOperationRoot}. */
83
- export declare function isSetOperationRoot(node: AstNode): boolean;
97
+ export declare function IsReadableCondition(tokens: readonly SqlToken[]): boolean;
98
+ /** Reads a WHERE condition's tokens as a tree of AND-ed conjuncts, flattening AND chains through parentheses. */
99
+ export declare function ReadConditionTree(tokens: readonly SqlToken[]): ConditionNode;
100
+ /** Every leaf of a condition tree, in text order. */
101
+ export declare function ConditionLeaves(node: ConditionNode): ConditionLeaf[];
102
+ /** Flips a scalar comparison operator so a `value <op> column` predicate reads as `column <flip> value`. */
103
+ export declare function FlipOperator(op: string): string;
104
+ /** A conjunct read as `column <op> literal value` (or `literal <op> column`). */
105
+ export interface ComparisonPredicate {
106
+ /** The column side. */
107
+ Column: IdentifierPath;
108
+ /** The operator, normalized to the `column <op> value` reading (flipped when the column is on the right). */
109
+ Operator: string;
110
+ /** First token of the value side. */
111
+ ValueStart: number;
112
+ /** One past the last token of the value side. */
113
+ ValueEnd: number;
114
+ ValueKind: PredicateValueKind;
115
+ }
84
116
  /**
85
- * Returns the sole statement of a parsed AST, or null when it is not exactly one statement.
86
- * A multi-statement script cannot be analyzed from its first statement alone, so callers refuse
87
- * rather than inspect only `ast[0]`.
117
+ * Reads the conjunct `[start, end)` as a comparison between one plain column and a literal value: a scalar
118
+ * literal, an all-literal `IN (…)` list, or literal `BETWEEN` bounds. The column may be on either side of
119
+ * a scalar comparison. Returns null for anything else: a function or expression on either side, a
120
+ * column compared to a column, a subquery, `OR`, `NOT`, an operator outside {@link COMPARISON_OPS}.
121
+ * `paths` are the identifier paths of the expression the tokens belong to.
88
122
  */
89
- export declare function SoleStatement(ast: AstNode): AstNode | null;
90
- /** @deprecated Use {@link SoleStatement}. */
91
- export declare function soleStatement(ast: AstNode): AstNode | null;
92
- /** True when every element of an `expr_list` value array is a literal leaf (an all-literal bag). */
93
- export declare function IsAllLiteralBag(v: AstNode): boolean;
94
- /** @deprecated Use {@link IsAllLiteralBag}. */
95
- export declare function isAllLiteralBag(v: AstNode): boolean;
123
+ export declare function ReadComparison(tokens: readonly SqlToken[], start: number, end: number, paths: readonly IdentifierPath[]): ComparisonPredicate | null;
96
124
  //# sourceMappingURL=materializationSqlAst.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"materializationSqlAst.d.ts","sourceRoot":"","sources":["../../src/Database/materializationSqlAst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC;AAC9B,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD,+GAA+G;AAC/G,eAAO,MAAM,kBAAkB,aAe7B,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,cAAc,aAGzB,CAAC;AAEH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAEnD;AAED,wCAAwC;AACxC,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAEnD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEvD;AAED,wCAAwC;AACxC,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEvD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAGjD;AAED,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAEjD;AAkBD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAKpD;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAKzD;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAEzD;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