mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-12 11:40:44 +08:00
Fix typos (#1143)
Found via `codespell -S .mypy_cache,yarn.lock,*.json,*.ipynb -L rouge,nam,vie`
This commit is contained in:
@@ -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