Spaces:
Runtime error
Runtime error
Commit
·
6a9a14f
1
Parent(s):
d16fcee
Update app.py
Browse files
app.py
CHANGED
@@ -133,6 +133,7 @@ def generate(
|
|
133 |
|
134 |
|
135 |
examples = [
|
|
|
136 |
"X_train, y_train, X_test, y_test = train_test_split(X, y, test_size=0.1)\n\n# Train a logistic regression model, predict the labels on the test set and compute the accuracy score",
|
137 |
"// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
|
138 |
"def alternating(list1, list2):\n results = []\n for i in range(min(len(list1), len(list2))):\n results.append(list1[i])\n results.append(list2[i])\n if len(list1) > len(list2):\n <FILL_HERE>\n else:\n results.extend(list2[i+1:])\n return results",
|
|
|
133 |
|
134 |
|
135 |
examples = [
|
136 |
+
"class HelloWorld {",
|
137 |
"X_train, y_train, X_test, y_test = train_test_split(X, y, test_size=0.1)\n\n# Train a logistic regression model, predict the labels on the test set and compute the accuracy score",
|
138 |
"// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
|
139 |
"def alternating(list1, list2):\n results = []\n for i in range(min(len(list1), len(list2))):\n results.append(list1[i])\n results.append(list2[i])\n if len(list1) > len(list2):\n <FILL_HERE>\n else:\n results.extend(list2[i+1:])\n return results",
|