MPBench0-1126 / data /html.jsonl
SURELYNOTVAIN's picture
MPBench0-1126: tasks, scorer, runner and results
6b45f1e verified
Raw History Blame Contribute Delete
3.55 kB
{"id": "html-01", "section": "html", "type": "html", "question": "Write an HTML page with the title \"Night Owl\" and a big heading that says \"Hello, night owls\".", "checks": [{"tag": "html", "closed": true}, {"tag": "title", "closed": true}, {"text": "night owl(?!s)"}, {"tag": "h1", "closed": true}, {"text": "hello,? night owls"}]}
{"id": "html-02", "section": "html", "type": "html", "question": "Write HTML for an ordered list of three steps to plant a tree: dig, plant, water.", "checks": [{"tag": "ol", "closed": true}, {"tag": "li", "inside": "ol", "min": 3}, {"text": "\\bdig"}, {"text": "\\bplant"}, {"text": "\\bwater"}]}
{"id": "html-03", "section": "html", "type": "html", "question": "Write HTML for a link to https://example.org with the text \"Visit us\" that opens in a new tab.", "checks": [{"tag": "a", "closed": true}, {"tag": "a", "attrs": {"href": "example\\.org"}}, {"tag": "a", "attrs": {"target": "_blank"}}, {"text": "visit us"}]}
{"id": "html-04", "section": "html", "type": "html", "question": "Write an HTML table with the columns Planet and Moons, and rows for Earth (1) and Mars (2).", "checks": [{"tag": "table", "closed": true}, {"tag": "tr", "inside": "table", "min": 3}, {"tag": "th", "min": 2}, {"text": "planet.*moons"}, {"text": "earth.*1.*mars.*2"}]}
{"id": "html-05", "section": "html", "type": "html", "question": "Write an HTML sign-up form with a name field, an email field and a submit button that says \"Join\".", "checks": [{"tag": "form", "closed": true}, {"tag": "input", "min": 2, "inside": "form"}, {"tag": "input", "attrs": {"type": "email"}}, {"tag": "button|input", "inside": "form", "min": 3}, {"any": [{"text": "\\bjoin\\b", "inside": "button"}, {"tag": "input|button", "attrs": {"value": "\\bjoin\\b"}}]}]}
{"id": "html-06", "section": "html", "type": "html", "question": "Write an HTML page with a dark blue background and white text that says Deep Sea.", "checks": [{"text": "deep sea"}, {"colour": "background", "family": "dark blue"}, {"colour": "text", "family": "white"}]}
{"id": "html-07", "section": "html", "type": "html", "question": "Write HTML for an image from cat.jpg that is 300 pixels wide and has the alt text A sleeping cat.", "checks": [{"tag": "img"}, {"tag": "img", "attrs": {"src": "cat\\.jpg"}}, {"tag": "img", "attrs": {"alt": "sleeping cat"}}, {"any": [{"tag": "img", "attrs": {"width": "^\\s*300(px)?\\s*$"}}, {"code": "(?<![-\\w])width\\s*:\\s*300px"}]}]}
{"id": "html-08", "section": "html", "type": "html", "question": "Write an HTML page with a button and a counter that goes up by one each time the button is clicked.", "checks": [{"tag": "button", "closed": true}, {"tag": "script", "closed": true}, {"any": [{"tag": "*", "attrs": {"onclick": "\\S"}}, {"code": "\\.onclick\\s*=|addEventListener\\(\\s*[\\\"'`]click|\\.click\\(\\s*(function|\\(|\\w)|\\.on\\(\\s*[\\\"']click"}]}, {"code": "\\+\\+|\\+=\\s*1\\b|\\+\\s*1\\b"}, {"code": "textContent|innerText|innerHTML|\\.value"}]}
{"id": "html-09", "section": "html", "type": "html", "question": "Write an HTML button that shows an alert saying Saved when it is clicked.", "checks": [{"tag": "button|input"}, {"code": "alert\\s*\\("}, {"code": "saved"}]}
{"id": "html-10", "section": "html", "type": "html", "question": "Write a semantic HTML page layout with a header, a nav with two links, a main area and a footer.", "checks": [{"tag": "header", "closed": true}, {"tag": "nav", "closed": true}, {"tag": "a", "inside": "nav", "min": 2}, {"tag": "main", "closed": true}, {"tag": "footer", "closed": true}]}