mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-10 11:41:04 +08:00
Fix typos (#1143)
Found via `codespell -S .mypy_cache,yarn.lock,*.json,*.ipynb -L rouge,nam,vie`
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
the context of this site. To learn more, the
|
||||
[Cypress documentation](https://docs.cypress.io/guides/getting-started/opening-the-app) has it all.
|
||||
|
||||
Don't get scared by the commercial offerings they offer. Their core is open source, the cloud offering is not necesarry
|
||||
Don't get scared by the commercial offerings they offer. Their core is open source, the cloud offering is not necessary
|
||||
at all and can be replaced by CI tooling and [community efforts](https://sorry-cypress.dev/).
|
||||
|
||||
# Component testing
|
||||
|
||||
@@ -156,7 +156,7 @@ const getLabelInfo = (label: string): LabelInfo => {
|
||||
zeroText: "Clean",
|
||||
zeroDescription: [],
|
||||
oneText: "Contains PII",
|
||||
oneDescription: ["Contains personally identifing information"],
|
||||
oneDescription: ["Contains personally identifying information"],
|
||||
inverted: false,
|
||||
};
|
||||
case "quality":
|
||||
|
||||
@@ -12,7 +12,7 @@ export const useGenericTaskAPI = <TaskType extends BaseTask, ResponseContent = A
|
||||
): TaskApiHook<TaskType, ResponseContent> => {
|
||||
const [response, setResponse] = useState<TaskResponse<TaskType>>({ taskAvailability: "AWAITING_INITIAL" });
|
||||
|
||||
// Note: We use isValidating to indiate we are loading beause it signals eash load, not just the first one.
|
||||
// Note: We use isValidating to indicate we are loading because it signals eash load, not just the first one.
|
||||
const { isValidating: isLoading, mutate: requestNewTask } = useSWRImmutable<ServerTaskResponse<TaskType>>(
|
||||
"/api/new_task/" + taskType,
|
||||
get,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { getBackendUserCore, getUserLanguage } from "src/lib/users";
|
||||
/**
|
||||
* Stores the task interaction with the Task Backend and then returns the next task generated.
|
||||
*
|
||||
* This implicity does a few things:
|
||||
* This implicitly does a few things:
|
||||
* 1) Records the users answer in our local database.
|
||||
* 2) Accepts the task.
|
||||
* 3) Sends the users answer to the Task Backend.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Page Tests
|
||||
|
||||
Put all page tests in this directory with the patter `MyPage.test.jsx`. We can't place them in `src/pages` due to how
|
||||
Put all page tests in this directory with the pattern `MyPage.test.jsx`. We can't place them in `src/pages` due to how
|
||||
NextJS generates page routes.
|
||||
|
||||
Reference in New Issue
Block a user