File size: 41,480 Bytes
47f1e3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{"diff": "diff --git a/file0.js b/file0.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file1.js b/file1.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file2.js b/file2.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file3.js b/file3.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file4.js b/file4.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file5.js b/file5.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file6.js b/file6.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file7.js b/file7.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file8.js b/file8.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file9.js b/file9.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file10.js b/file10.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file11.js b/file11.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file12.js b/file12.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file13.js b/file13.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file14.js b/file14.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file15.js b/file15.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file16.js b/file16.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file17.js b/file17.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file18.js b/file18.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file19.js b/file19.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file20.js b/file20.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file21.js b/file21.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file22.js b/file22.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file23.js b/file23.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file24.js b/file24.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file25.js b/file25.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file26.js b/file26.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file27.js b/file27.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file28.js b/file28.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file29.js b/file29.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file30.js b/file30.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file31.js b/file31.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file32.js b/file32.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file33.js b/file33.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file34.js b/file34.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file35.js b/file35.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file36.js b/file36.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file37.js b/file37.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file38.js b/file38.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file39.js b/file39.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file40.js b/file40.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file41.js b/file41.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file42.js b/file42.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file43.js b/file43.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file44.js b/file44.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file45.js b/file45.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file46.js b/file46.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file47.js b/file47.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file48.js b/file48.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file49.js b/file49.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file50.js b/file50.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file51.js b/file51.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file52.js b/file52.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file53.js b/file53.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file54.js b/file54.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file55.js b/file55.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file56.js b/file56.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file57.js b/file57.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file58.js b/file58.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file59.js b/file59.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file60.js b/file60.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file61.js b/file61.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file62.js b/file62.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file63.js b/file63.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file64.js b/file64.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file65.js b/file65.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file66.js b/file66.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file67.js b/file67.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file68.js b/file68.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file69.js b/file69.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file70.js b/file70.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file71.js b/file71.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file72.js b/file72.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file73.js b/file73.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file74.js b/file74.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file75.js b/file75.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file76.js b/file76.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file77.js b/file77.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file78.js b/file78.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file79.js b/file79.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file80.js b/file80.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file81.js b/file81.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file82.js b/file82.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file83.js b/file83.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file84.js b/file84.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file85.js b/file85.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file86.js b/file86.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file87.js b/file87.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file88.js b/file88.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file89.js b/file89.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file90.js b/file90.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file91.js b/file91.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file92.js b/file92.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file93.js b/file93.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file94.js b/file94.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file95.js b/file95.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file96.js b/file96.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file97.js b/file97.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file98.js b/file98.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file99.js b/file99.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file100.js b/file100.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file101.js b/file101.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file102.js b/file102.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file103.js b/file103.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file104.js b/file104.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file105.js b/file105.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file106.js b/file106.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file107.js b/file107.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file108.js b/file108.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file109.js b/file109.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file110.js b/file110.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file111.js b/file111.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file112.js b/file112.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file113.js b/file113.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file114.js b/file114.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file115.js b/file115.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file116.js b/file116.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file117.js b/file117.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file118.js b/file118.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file119.js b/file119.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file120.js b/file120.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file121.js b/file121.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file122.js b/file122.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file123.js b/file123.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file124.js b/file124.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file125.js b/file125.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file126.js b/file126.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file127.js b/file127.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file128.js b/file128.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file129.js b/file129.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file130.js b/file130.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file131.js b/file131.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file132.js b/file132.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file133.js b/file133.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file134.js b/file134.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file135.js b/file135.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file136.js b/file136.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file137.js b/file137.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file138.js b/file138.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file139.js b/file139.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file140.js b/file140.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file141.js b/file141.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file142.js b/file142.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file143.js b/file143.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file144.js b/file144.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file145.js b/file145.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file146.js b/file146.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file147.js b/file147.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file148.js b/file148.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file149.js b/file149.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file150.js b/file150.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file151.js b/file151.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file152.js b/file152.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file153.js b/file153.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file154.js b/file154.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file155.js b/file155.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file156.js b/file156.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file157.js b/file157.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file158.js b/file158.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file159.js b/file159.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file160.js b/file160.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file161.js b/file161.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file162.js b/file162.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file163.js b/file163.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file164.js b/file164.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file165.js b/file165.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file166.js b/file166.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file167.js b/file167.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file168.js b/file168.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file169.js b/file169.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file170.js b/file170.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file171.js b/file171.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file172.js b/file172.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file173.js b/file173.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file174.js b/file174.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file175.js b/file175.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file176.js b/file176.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file177.js b/file177.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file178.js b/file178.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file179.js b/file179.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file180.js b/file180.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file181.js b/file181.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file182.js b/file182.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file183.js b/file183.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file184.js b/file184.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file185.js b/file185.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file186.js b/file186.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file187.js b/file187.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file188.js b/file188.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file189.js b/file189.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}
{"diff": "diff --git a/file190.js b/file190.js\n@@ -1,1 +1,1 @@\n-var count = 0\n+let count = 0\n", "comment": "Use `let` or `const` instead of `var` for block scoping."}
{"diff": "diff --git a/file191.js b/file191.js\n@@ -1,1 +1,1 @@\n-if (a == b) {\n+if (a === b) {\n", "comment": "Use strict equality `===` instead of `==`."}
{"diff": "diff --git a/file192.js b/file192.js\n@@ -1,1 +1,1 @@\n-function greet(name) { return 'Hello ' + name }\n+const greet = (name) => `Hello ${name}`;\n", "comment": "Use arrow functions and template literals for cleaner syntax."}
{"diff": "diff --git a/file193.js b/file193.js\n@@ -1,1 +1,1 @@\n-console.log('Value: ' + value)\n+console.log(`Value: ${value}`)\n", "comment": "Prefer template literals over string concatenation."}
{"diff": "diff --git a/file194.js b/file194.js\n@@ -1,1 +1,1 @@\n-for (var i = 0; i < arr.length; i++) { doSomething(arr[i]); }\n+for (const item of arr) { doSomething(item); }\n", "comment": "Use `for...of` with `const` for cleaner iteration."}
{"diff": "diff --git a/file195.js b/file195.js\n@@ -1,1 +1,1 @@\n-function add(a, b) { return a + b }\n+function add(a = 0, b = 0) { return a + b; }\n", "comment": "Provide default parameter values to avoid `undefined`."}
{"diff": "diff --git a/file196.js b/file196.js\n@@ -1,1 +1,1 @@\n-const result = x ? x : 10\n+const result = x || 10;\n", "comment": "Use logical OR `||` for default values."}
{"diff": "diff --git a/file197.js b/file197.js\n@@ -1,1 +1,1 @@\n-let obj = { a: a, b: b }\n+let obj = { a, b };\n", "comment": "Use object property shorthand when key and variable name match."}
{"diff": "diff --git a/file198.js b/file198.js\n@@ -1,1 +1,1 @@\n-if (!Array.isArray(items)) { return false }\n+if (!Array.isArray(items)) return false;\n", "comment": "Use concise single-line `if` statements for simple returns."}
{"diff": "diff --git a/file199.js b/file199.js\n@@ -1,1 +1,1 @@\n-var sum = 0;\narr.forEach(function(n) { sum += n; });\n+const sum = arr.reduce((acc, n) => acc + n, 0);\n", "comment": "Use `Array.prototype.reduce` instead of manual accumulation."}