@tuned-tensor/cli 0.28.0 → 0.29.0
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.
- package/README.md +7 -0
- package/dist/chunk-CT2RXESA.js +1272 -0
- package/dist/chunk-CT2RXESA.js.map +1 -0
- package/dist/chunk-G3KT4AYL.js +1623 -0
- package/dist/chunk-G3KT4AYL.js.map +1 -0
- package/dist/chunk-HKWPQPOJ.js +260 -0
- package/dist/chunk-HKWPQPOJ.js.map +1 -0
- package/dist/chunk-MM75IAY3.js +138 -0
- package/dist/chunk-MM75IAY3.js.map +1 -0
- package/dist/{chunk-7CO5DBCY.js → chunk-UY3SU2XA.js} +4949 -4843
- package/dist/chunk-UY3SU2XA.js.map +1 -0
- package/dist/contracts-4MEIRTIN.js +72 -0
- package/dist/dataset-Y5NEUKI5.js +22 -0
- package/dist/dataset-Y5NEUKI5.js.map +1 -0
- package/dist/index.js +812 -331
- package/dist/index.js.map +1 -1
- package/dist/local-runtime.js +84 -467
- package/dist/local-runtime.js.map +1 -1
- package/dist/model-server-7BNWDXHP.js +18 -0
- package/dist/model-server-7BNWDXHP.js.map +1 -0
- package/dist/{prefetch-LBIOO7ZO.js → prefetch-ZFCK4IBD.js} +3 -2
- package/dist/prefetch-ZFCK4IBD.js.map +1 -0
- package/docs/local-runtime/model-quality.md +103 -0
- package/docs/spec-workflow.md +9 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/README.md +364 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +778 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js +76 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +774 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js +72 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +932 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/numeric-range.ts +79 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
- package/node_modules/minimatch/README.md +125 -107
- package/node_modules/minimatch/dist/commonjs/index.d.ts +49 -38
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/commonjs/index.js +782 -359
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/minimatch/dist/esm/index.d.ts +49 -38
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/esm/index.js +781 -356
- package/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/minimatch/package.json +5 -4
- package/package.json +3 -2
- package/training/adapter/src/train.py +16 -1
- package/dist/chunk-7CO5DBCY.js.map +0 -1
- package/dist/chunk-FSVTMX4L.js +0 -2820
- package/dist/chunk-FSVTMX4L.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.js +0 -845
- package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.js +0 -841
- package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- /package/dist/{prefetch-LBIOO7ZO.js.map → contracts-4MEIRTIN.js.map} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/local-runtime/dataset.ts
|
|
4
|
+
import { readFile } from "fs/promises";
|
|
5
|
+
async function loadNormalizedChatJsonl(path) {
|
|
6
|
+
const text = await readFile(path, "utf8");
|
|
7
|
+
const rows = [];
|
|
8
|
+
const jsonLines = [];
|
|
9
|
+
for (const [index, line] of text.split(/\r?\n/).entries()) {
|
|
10
|
+
if (!line.trim()) continue;
|
|
11
|
+
let value;
|
|
12
|
+
try {
|
|
13
|
+
value = JSON.parse(line);
|
|
14
|
+
} catch (error) {
|
|
15
|
+
throw new Error(`Invalid chat JSONL row ${index + 1}: malformed JSON`, { cause: error });
|
|
16
|
+
}
|
|
17
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
18
|
+
throw new Error(`Invalid chat JSONL row ${index + 1}: expected an object`);
|
|
19
|
+
}
|
|
20
|
+
const messages = value.messages;
|
|
21
|
+
if (!Array.isArray(messages) || ![2, 3].includes(messages.length) || messages.some(
|
|
22
|
+
(message) => !message || typeof message !== "object" || Array.isArray(message) || !["system", "user", "assistant"].includes(String(message.role)) || typeof message.content !== "string"
|
|
23
|
+
)) {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Invalid chat JSONL row ${index + 1}: expected an optional system message, one user message, and one assistant answer`
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
const row = { messages };
|
|
29
|
+
const offset = row.messages.length === 3 ? 1 : 0;
|
|
30
|
+
if (offset === 1 && row.messages[0]?.role !== "system" || row.messages[offset]?.role !== "user" || !row.messages[offset]?.content.trim() || row.messages[offset + 1]?.role !== "assistant" || !row.messages[offset + 1]?.content.trim()) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
`Invalid chat JSONL row ${index + 1}: expected an optional system message, one non-empty user message, and one non-empty assistant answer`
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
rows.push(row);
|
|
36
|
+
jsonLines.push(JSON.stringify(row));
|
|
37
|
+
}
|
|
38
|
+
if (rows.length === 0) throw new Error(`Chat JSONL contains no examples: ${path}`);
|
|
39
|
+
return {
|
|
40
|
+
rows,
|
|
41
|
+
jsonl: jsonLines.join("\n")
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async function normalizeChatJsonlForRelocation(path) {
|
|
45
|
+
return (await loadNormalizedChatJsonl(path)).jsonl;
|
|
46
|
+
}
|
|
47
|
+
function datasetInputIdentity(value) {
|
|
48
|
+
return value.normalize("NFKC").trim().replace(/\s+/g, " ").toLocaleLowerCase("en");
|
|
49
|
+
}
|
|
50
|
+
function buildSystemMessage(spec) {
|
|
51
|
+
const parts = [];
|
|
52
|
+
const guidelines = spec.guidelines.map((value) => value.trim()).filter(Boolean);
|
|
53
|
+
const constraints = spec.constraints.map((value) => value.trim()).filter(Boolean);
|
|
54
|
+
if (spec.system_prompt.trim()) parts.push(spec.system_prompt.trim());
|
|
55
|
+
if (guidelines.length > 0) {
|
|
56
|
+
parts.push(`Guidelines:
|
|
57
|
+
${guidelines.map((guideline) => `- ${guideline}`).join("\n")}`);
|
|
58
|
+
}
|
|
59
|
+
if (constraints.length > 0) {
|
|
60
|
+
parts.push(`Constraints:
|
|
61
|
+
${constraints.map((constraint) => `- ${constraint}`).join("\n")}`);
|
|
62
|
+
}
|
|
63
|
+
return parts.join("\n\n") || "Follow the demonstrated behavior.";
|
|
64
|
+
}
|
|
65
|
+
function exampleToChatRow(spec, example) {
|
|
66
|
+
const system = buildSystemMessage(spec);
|
|
67
|
+
return {
|
|
68
|
+
messages: [
|
|
69
|
+
{ role: "system", content: system },
|
|
70
|
+
{ role: "user", content: example.input },
|
|
71
|
+
{ role: "assistant", content: example.output }
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function compileSpecToJsonl(spec) {
|
|
76
|
+
return spec.examples.map((example) => JSON.stringify(exampleToChatRow(spec, example))).join("\n");
|
|
77
|
+
}
|
|
78
|
+
function examplesFromSpec(spec) {
|
|
79
|
+
return spec.examples;
|
|
80
|
+
}
|
|
81
|
+
async function examplesFromChatJsonl(path) {
|
|
82
|
+
const normalized = await loadNormalizedChatJsonl(path);
|
|
83
|
+
const examples = [];
|
|
84
|
+
for (const [index, row] of normalized.rows.entries()) {
|
|
85
|
+
const user = row.messages.at(-2);
|
|
86
|
+
const assistant = row.messages.at(-1);
|
|
87
|
+
examples.push({
|
|
88
|
+
input: user.content,
|
|
89
|
+
output: assistant.content
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return examples;
|
|
93
|
+
}
|
|
94
|
+
async function evaluationSuiteFromChatJsonl(path, configuredSystem) {
|
|
95
|
+
const normalized = await loadNormalizedChatJsonl(path);
|
|
96
|
+
const inputIdentities = /* @__PURE__ */ new Set();
|
|
97
|
+
for (const row of normalized.rows) {
|
|
98
|
+
const input = row.messages.at(-2).content;
|
|
99
|
+
const identity = input.trim().replace(/\s+/g, " ").toLowerCase();
|
|
100
|
+
if (inputIdentities.has(identity)) {
|
|
101
|
+
throw new Error(
|
|
102
|
+
"General regression data contains duplicate inputs; evaluation prompts must be unique."
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
inputIdentities.add(identity);
|
|
106
|
+
}
|
|
107
|
+
const systems = new Set(
|
|
108
|
+
normalized.rows.map((row) => row.messages.find((message) => message.role === "system")?.content).filter((value) => value !== void 0)
|
|
109
|
+
);
|
|
110
|
+
if (systems.size > 1) {
|
|
111
|
+
throw new Error("General regression rows must use one consistent system message.");
|
|
112
|
+
}
|
|
113
|
+
const embeddedSystem = [...systems][0];
|
|
114
|
+
if (configuredSystem !== void 0 && embeddedSystem !== void 0 && configuredSystem !== embeddedSystem) {
|
|
115
|
+
throw new Error(
|
|
116
|
+
"evaluation.generalRegression.systemPrompt must match the system message embedded in the dataset."
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
examples: normalized.rows.map((row) => ({
|
|
121
|
+
input: row.messages.at(-2).content,
|
|
122
|
+
output: row.messages.at(-1).content
|
|
123
|
+
})),
|
|
124
|
+
system: configuredSystem ?? embeddedSystem ?? "You are a helpful assistant."
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
normalizeChatJsonlForRelocation,
|
|
130
|
+
datasetInputIdentity,
|
|
131
|
+
buildSystemMessage,
|
|
132
|
+
exampleToChatRow,
|
|
133
|
+
compileSpecToJsonl,
|
|
134
|
+
examplesFromSpec,
|
|
135
|
+
examplesFromChatJsonl,
|
|
136
|
+
evaluationSuiteFromChatJsonl
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=chunk-MM75IAY3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/local-runtime/dataset.ts"],"sourcesContent":["import { readFile } from \"node:fs/promises\";\nimport type { BehaviorSpec, BehaviorSpecExample, SpecSnapshot } from \"./contracts.js\";\n\nexport interface ChatJsonlRow {\n messages: Array<{\n role: \"system\" | \"user\" | \"assistant\";\n content: string;\n }>;\n}\n\ninterface NormalizedChatJsonl {\n rows: ChatJsonlRow[];\n jsonl: string;\n}\n\nasync function loadNormalizedChatJsonl(path: string): Promise<NormalizedChatJsonl> {\n const text = await readFile(path, \"utf8\");\n const rows: ChatJsonlRow[] = [];\n const jsonLines: string[] = [];\n for (const [index, line] of text.split(/\\r?\\n/).entries()) {\n if (!line.trim()) continue;\n let value: unknown;\n try {\n value = JSON.parse(line) as unknown;\n } catch (error) {\n throw new Error(`Invalid chat JSONL row ${index + 1}: malformed JSON`, { cause: error });\n }\n if (!value || typeof value !== \"object\" || Array.isArray(value)) {\n throw new Error(`Invalid chat JSONL row ${index + 1}: expected an object`);\n }\n const messages = (value as { messages?: unknown }).messages;\n if (\n !Array.isArray(messages)\n || ![2, 3].includes(messages.length)\n || messages.some((message) =>\n !message\n || typeof message !== \"object\"\n || Array.isArray(message)\n || ![\"system\", \"user\", \"assistant\"].includes(String((message as { role?: unknown }).role))\n || typeof (message as { content?: unknown }).content !== \"string\"\n )\n ) {\n throw new Error(\n `Invalid chat JSONL row ${index + 1}: expected an optional system message, one user message, and one assistant answer`,\n );\n }\n const row = { messages } as ChatJsonlRow;\n const offset = row.messages.length === 3 ? 1 : 0;\n if (\n (offset === 1 && row.messages[0]?.role !== \"system\")\n || row.messages[offset]?.role !== \"user\"\n || !row.messages[offset]?.content.trim()\n || row.messages[offset + 1]?.role !== \"assistant\"\n || !row.messages[offset + 1]?.content.trim()\n ) {\n throw new Error(\n `Invalid chat JSONL row ${index + 1}: expected an optional system message, one non-empty user message, and one non-empty assistant answer`,\n );\n }\n rows.push(row);\n jsonLines.push(JSON.stringify(row));\n }\n if (rows.length === 0) throw new Error(`Chat JSONL contains no examples: ${path}`);\n return {\n rows,\n jsonl: jsonLines.join(\"\\n\"),\n };\n}\n\n/** Parses and canonically rewrites text chat JSONL before copying it. */\nexport async function normalizeChatJsonlForRelocation(path: string): Promise<string> {\n return (await loadNormalizedChatJsonl(path)).jsonl;\n}\n\n/** Normalized prompt identity used for duplicate and train/eval overlap checks. */\nexport function datasetInputIdentity(value: string): string {\n return value.normalize(\"NFKC\").trim().replace(/\\s+/g, \" \").toLocaleLowerCase(\"en\");\n}\n\n/** Compile the shared behavior fields into the instruction seen by either engine. */\nexport function buildSystemMessage(\n spec: Pick<BehaviorSpec, \"system_prompt\" | \"guidelines\" | \"constraints\">,\n): string {\n const parts: string[] = [];\n const guidelines = spec.guidelines.map((value) => value.trim()).filter(Boolean);\n const constraints = spec.constraints.map((value) => value.trim()).filter(Boolean);\n if (spec.system_prompt.trim()) parts.push(spec.system_prompt.trim());\n if (guidelines.length > 0) {\n parts.push(`Guidelines:\\n${guidelines.map((guideline) => `- ${guideline}`).join(\"\\n\")}`);\n }\n if (constraints.length > 0) {\n parts.push(`Constraints:\\n${constraints.map((constraint) => `- ${constraint}`).join(\"\\n\")}`);\n }\n return parts.join(\"\\n\\n\") || \"Follow the demonstrated behavior.\";\n}\n\nexport function exampleToChatRow(spec: SpecSnapshot, example: BehaviorSpecExample): ChatJsonlRow {\n const system = buildSystemMessage(spec);\n return {\n messages: [\n { role: \"system\", content: system },\n { role: \"user\", content: example.input },\n { role: \"assistant\", content: example.output },\n ],\n };\n}\n\nexport function compileSpecToJsonl(spec: SpecSnapshot): string {\n return spec.examples.map((example) => JSON.stringify(exampleToChatRow(spec, example))).join(\"\\n\");\n}\n\nexport function examplesFromSpec(spec: SpecSnapshot): BehaviorSpecExample[] {\n return spec.examples;\n}\n\nexport async function examplesFromChatJsonl(path: string): Promise<BehaviorSpecExample[]> {\n const normalized = await loadNormalizedChatJsonl(path);\n const examples: BehaviorSpecExample[] = [];\n for (const [index, row] of normalized.rows.entries()) {\n const user = row.messages.at(-2)!;\n const assistant = row.messages.at(-1)!;\n examples.push({\n input: user.content,\n output: assistant.content,\n });\n }\n return examples;\n}\n\nexport interface EvaluationSuite {\n examples: BehaviorSpecExample[];\n system: string;\n}\n\n/**\n * Loads an evaluation-only chat JSONL suite. Rows may omit the system message,\n * but when they include one it must be identical across the suite.\n */\nexport async function evaluationSuiteFromChatJsonl(\n path: string,\n configuredSystem?: string,\n): Promise<EvaluationSuite> {\n const normalized = await loadNormalizedChatJsonl(path);\n const inputIdentities = new Set<string>();\n for (const row of normalized.rows) {\n const input = row.messages.at(-2)!.content;\n const identity = input.trim().replace(/\\s+/g, \" \").toLowerCase();\n if (inputIdentities.has(identity)) {\n throw new Error(\n \"General regression data contains duplicate inputs; \"\n + \"evaluation prompts must be unique.\",\n );\n }\n inputIdentities.add(identity);\n }\n const systems = new Set(\n normalized.rows\n .map((row) => row.messages.find((message) => message.role === \"system\")?.content)\n .filter((value): value is string => value !== undefined),\n );\n if (systems.size > 1) {\n throw new Error(\"General regression rows must use one consistent system message.\");\n }\n const embeddedSystem = [...systems][0];\n if (\n configuredSystem !== undefined\n && embeddedSystem !== undefined\n && configuredSystem !== embeddedSystem\n ) {\n throw new Error(\n \"evaluation.generalRegression.systemPrompt must match the system message embedded in the dataset.\",\n );\n }\n return {\n examples: normalized.rows.map((row) => ({\n input: row.messages.at(-2)!.content,\n output: row.messages.at(-1)!.content,\n })),\n system: configuredSystem ?? embeddedSystem ?? \"You are a helpful assistant.\",\n };\n}\n"],"mappings":";;;AAAA,SAAS,gBAAgB;AAezB,eAAe,wBAAwB,MAA4C;AACjF,QAAM,OAAO,MAAM,SAAS,MAAM,MAAM;AACxC,QAAM,OAAuB,CAAC;AAC9B,QAAM,YAAsB,CAAC;AAC7B,aAAW,CAAC,OAAO,IAAI,KAAK,KAAK,MAAM,OAAO,EAAE,QAAQ,GAAG;AACzD,QAAI,CAAC,KAAK,KAAK,EAAG;AAClB,QAAI;AACJ,QAAI;AACF,cAAQ,KAAK,MAAM,IAAI;AAAA,IACzB,SAAS,OAAO;AACd,YAAM,IAAI,MAAM,0BAA0B,QAAQ,CAAC,oBAAoB,EAAE,OAAO,MAAM,CAAC;AAAA,IACzF;AACA,QAAI,CAAC,SAAS,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,GAAG;AAC/D,YAAM,IAAI,MAAM,0BAA0B,QAAQ,CAAC,sBAAsB;AAAA,IAC3E;AACA,UAAM,WAAY,MAAiC;AACnD,QACE,CAAC,MAAM,QAAQ,QAAQ,KACpB,CAAC,CAAC,GAAG,CAAC,EAAE,SAAS,SAAS,MAAM,KAChC,SAAS;AAAA,MAAK,CAAC,YAChB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