SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Web: Format test run checkbox as switch
Kilian Liereted7dfd79cdfe
diff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.jsindex 6c249bee..82d51705 100644--- a/sweagent/frontend/src/components/controls/LRunControl.js+++ b/sweagent/frontend/src/components/controls/LRunControl.js@@ -1,5 +1,6 @@import React, { useState } from 'react';import Accordion from 'react-bootstrap/Accordion';+import Form from 'react-bootstrap/Form';function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDataPath, setTestRun, dataPath, testRun, repoPath, setRepoPath}) {const [psType, setPsType] = useState('gh');@@ -55,8 +56,13 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat<Accordion.Item eventKey="1"><Accordion.Header>Extra settings</Accordion.Header><Accordion.Body>- <label htmlFor="test_run">Test run (no LM queries)</label>- <input type="checkbox" checked={testRun} onChange={(e) => setTestRun(e.target.checked)} />+ <Form.Check // prettier-ignore+ type="switch"+ id="custom-switch"+ label="Test run (no LM queries)"+ defaultChecked={testRun}+ onChange={(e) => setTestRun(e.target.checked)}+ /></Accordion.Body></Accordion.Item></Accordion>