MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / padExamples

Function padExamples

src/mapper/utils.ts:116–122  ·  view source on GitHub ↗
(examples: string[])

Source from the content-addressed store, hash-verified

114}
115
116function padExamples(examples: string[]) {
117 const paddedExamples = [
118 ...examples,
119 ...Array(NUMBER_OF_EXAMPLES_IN_MAPPING - examples.length).fill(''),
120 ];
121 return paddedExamples;
122}
123
124function trimExamplesByCharacterLimit(examples: string[]) {
125 const trimmedExamples = [...examples];

Callers 1

calculateMappingExamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected