TheMaisk commited on
Commit
ffcbff0
·
verified ·
1 Parent(s): 9449574

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -95,14 +95,15 @@ def generate(
95
 
96
 
97
  examples = [
98
- "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",
99
- "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {",
100
- "Poor English: She no went to the market. Corrected English:",
101
- "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_ME>\n else:\n results.extend(list2[i+1:])\n return results",
102
- "def remove_non_ascii(s: str) -> str:\n \"\"\" <FILL_ME>\nprint(remove_non_ascii('afkdj$$('))",
103
  ]
104
 
105
 
 
106
  def process_example(args):
107
  for x in generate(args):
108
  pass
 
95
 
96
 
97
  examples = [
98
+ "SELECT Name, Email, PurchaseDate\nFROM Customers\nWHERE PurchaseDate >= '2023-01-01'\nORDER BY PurchaseDate DESC;",
99
+ "<!DOCTYPE html>\n<html>\n<head>\n <title>Kontaktiere Uns</title>\n</head>\n<body>\n <h1>Kontaktformular</h1>\n <form action=\"/sendEmail\" method=\"post\">\n Name: <input type=\"text\" name=\"name\"><br>\n E-Mail: <input type=\"text\" name=\"email\"><br>\n Nachricht:<br>\n <textarea name=\"message\" rows=\"5\" cols=\"30\"></textarea><br>\n <input type=\"submit\" value=\"Senden\">\n </form>\n</body>\n</html>",
100
+ "def calculate_bmi(height, weight):\n bmi = weight / (height / 100) ** 2\n return bmi\n\nprint(calculate_bmi(170, 65)) # Beispielaufruf",
101
+ "function sumArray(array) {\n return array.reduce((sum, num) => sum + num, 0);\n}\n\nconsole.log(sumArray([1, 2, 3, 4, 5])); // Gibt 15 aus",
102
+ ".button {\n background-color: blue;\n color: white;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.button:hover {\n box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);\n}"
103
  ]
104
 
105
 
106
+
107
  def process_example(args):
108
  for x in generate(args):
109
  pass