@@ -168,11 +168,6 @@ def test_js_replcement() -> None:
168168const { sumArray, average, findMax, findMin } = require('./math_helpers');
169169
170170
171- /**
172- * Calculate statistics for an array of numbers.
173- * @param numbers - Array of numbers to analyze
174- * @returns Object containing sum, average, min, max, and range
175- */
176171/**
177172 * This is a modified comment
178173 */
@@ -216,7 +211,7 @@ def test_js_replcement() -> None:
216211 * @param numbers - Array of numbers to normalize
217212 * @returns Normalized array
218213 */
219- export function normalizeArray(numbers) {
214+ function normalizeArray(numbers) {
220215 if (numbers.length === 0) return [];
221216
222217 const min = findMin(numbers);
@@ -236,7 +231,7 @@ def test_js_replcement() -> None:
236231 * @param weights - Array of weights (same length as values)
237232 * @returns The weighted average
238233 */
239- export function weightedAverage(values, weights) {
234+ function weightedAverage(values, weights) {
240235 if (values.length === 0 || values.length !== weights.length) {
241236 return 0;
242237 }
@@ -269,7 +264,7 @@ def test_js_replcement() -> None:
269264 * @param numbers - Array of numbers to sum
270265 * @returns The sum of all numbers
271266 */
272- export function sumArray(numbers) {
267+ function sumArray(numbers) {
273268 // Intentionally inefficient - using reduce with spread operator
274269 let result = 0;
275270 for (let i = 0; i < numbers.length; i++) {
@@ -283,16 +278,11 @@ def test_js_replcement() -> None:
283278 * @param numbers - Array of numbers
284279 * @returns The average value
285280 */
286- export function average(numbers) {
281+ function average(numbers) {
287282 if (numbers.length === 0) return 0;
288283 return sumArray(numbers) / numbers.length;
289284}
290285
291- /**
292- * Find the maximum value in an array.
293- * @param numbers - Array of numbers
294- * @returns The maximum value
295- */
296286/**
297287 * Normalize an array of numbers to a 0-1 range.
298288 * @param numbers - Array of numbers to normalize
@@ -311,11 +301,6 @@ def test_js_replcement() -> None:
311301 return max;
312302}
313303
314- /**
315- * Find the minimum value in an array.
316- * @param numbers - Array of numbers
317- * @returns The minimum value
318- */
319304/**
320305 * Find the minimum value in an array.
321306 * @param numbers - Array of numbers
0 commit comments