Skip to content

Commit

Permalink
fix typos (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRat committed Apr 25, 2023
1 parent 9f7fbfb commit 69d736c
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion backend/oasst_backend/utils/ranking.py
Expand Up @@ -22,7 +22,7 @@ def head_to_head_votes(ranks: List[List[int]]):


def cycle_detect(pairs):
"""Recursively detect cylces by removing condorcet losers until either only one pair is left or condorcet loosers no longer exist
"""Recursively detect cycles by removing condorcet losers until either only one pair is left or condorcet losers no longer exist
This method upholds the invariant that in a ranking for all a,b either a>b or b>a for all a,b.
Expand Down
2 changes: 1 addition & 1 deletion data/datasets/fd_dialogue/README.md
Expand Up @@ -38,7 +38,7 @@ https://transcripts.foreverdreaming.org/ (the crawler notebooks are not included
with the dataset).

The dataset contains **only a small portion of Forever Dreaming's data**, as
only transscripts with a clear dialogue format are included, such as:
only transcripts with a clear dialogue format are included, such as:

```
PERSON 1: Hello
Expand Down
2 changes: 1 addition & 1 deletion docs/blog/2023-04-15-open-assistant-released/index.mdx
Expand Up @@ -31,7 +31,7 @@ at:

[open-assistant.io/chat](https://open-assistant.io/chat)

Watch the annoucement video:
Watch the announcement video:

<ReactPlayer
controls
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/developers.md
Expand Up @@ -163,7 +163,7 @@ It has another Postgres database, the "backend database", called just `db` in
the Dockerfile.

There's also a Redis database, called `redis` in the Dockerfile, for caching API
requets.
requests.

In the Dockerfile, there are also two containers with development support tools
for the databases: `adminer`, which can be used to inspect the Postgres
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/intro.md
Expand Up @@ -14,7 +14,7 @@ You can play with our current best model [here](https://open-assistant.io/chat)!
You should join the
[Open Assistant discord server](https://ykilcher.com/open-assistant-discord)
and/or comment on Github issues before making any major changes. Most dev
communcations take place on the Discord server. There are four main areas that
communications take place on the Discord server. There are four main areas that
you can work on:

1. Ranking, labelling and making responses in
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tasks/reply_as_assistant.md
Expand Up @@ -12,7 +12,7 @@ When inserting a code block, add a language specification to give the code
You can find a full list of supported languages and their abbreviations
[here](https://github.com/jincheng9/markdown_supported_languages#heres-a-full-list-of-supported-languages).

You can find some examples adressing some edge cases
You can find some examples addressing some edge cases
[here](https://projects.laion.ai/Open-Assistant/docs/guides/examples).

Please make sure to read the
Expand Down
2 changes: 1 addition & 1 deletion model/README.md
Expand Up @@ -4,7 +4,7 @@

Here are some minimal commands to tun to whole pipeline on the collected data.

**make sure python >= 3.10, othersie, you would meet the
**make sure python >= 3.10, otherwise, you would meet the
[[issue]](https://github.com/tiangolo/typer/issues/371#issuecomment-1288987924)**

1. First create the data path location.
Expand Down
2 changes: 1 addition & 1 deletion safety/README.md
Expand Up @@ -8,7 +8,7 @@ This is the Open Assistant Safety Folder and contains the following:
- Model inference scripts
- Data processing scripts

## Mission Statment
## Mission Statement

Our mission at LAION-AI OpenAssistant safety team is to create a safety pipeline
that is not only compatible with the OpenAssistant model and project but can
Expand Down
2 changes: 1 addition & 1 deletion scripts/postprocessing/rankings.py
Expand Up @@ -22,7 +22,7 @@ def head_to_head_votes(ranks: List[List[int]]):


def cycle_detect(pairs):
"""Recursively detect cylces by removing condorcet losers until either only one pair is left or condorcet loosers no longer exist
"""Recursively detect cycles by removing condorcet losers until either only one pair is left or condorcet losers no longer exist
This method upholds the invariant that in a ranking for all a,b either a>b or b>a for all a,b.
Expand Down
2 changes: 1 addition & 1 deletion website/README.md
Expand Up @@ -126,7 +126,7 @@ Cypress is used for end-to-end (e2e) and component testing and is configured in
folder is used for supporting configuration files etc.

- Store e2e tests in the `./cypress/e2e` folder.
- Store component tests adjacent to the component being tested. If you want to wriite a test for
- Store component tests adjacent to the component being tested. If you want to write a test for
`./src/components/Layout.tsx` then store the test file at `./src/components/Layout.cy.tsx`.

A few npm scripts are available for convenience:
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Chat/ChatConversation.tsx
Expand Up @@ -108,7 +108,7 @@ export const ChatConversation = memo(function ChatConversation({ chatId, getConf

const prompter_message: InferenceMessage = await post(API_ROUTES.CREATE_PROMPTER_MESSAGE, { arg: prompter_arg });
if (messages.length === 0) {
// revalidte chat list after creating the first prompter message to make sure the message already has title
// revalidate chat list after creating the first prompter message to make sure the message already has title
mutate(API_ROUTES.LIST_CHAT);
}
setMessages((messages) => [...messages, prompter_message]);
Expand Down
2 changes: 1 addition & 1 deletion website/src/hooks/tasks/useGenericTaskAPI.tsx
Expand Up @@ -17,7 +17,7 @@ export const useGenericTaskAPI = <TaskType extends BaseTask, ResponseContent = A
): TaskApiHook<TaskType, ResponseContent> => {
const [response, setResponse] = useState<TaskResponse<TaskType>>({ taskAvailability: "AWAITING_INITIAL" });
const locale = useCurrentLocale();
// Note: We use isValidating to indicate we are loading because it signals eash load, not just the first one.
// Note: We use isValidating to indicate we are loading because it signals each load, not just the first one.
const { isValidating: isLoading, mutate: requestNewTask } = useSWRImmutable<ServerTaskResponse<TaskType>>(
API_ROUTES.NEW_TASK(taskType, { lang: locale }),
get,
Expand Down
2 changes: 1 addition & 1 deletion website/src/lib/users.ts
Expand Up @@ -21,7 +21,7 @@ export const getBackendUserCore = async (id: string): Promise<BackendUserCore> =
};

/**
* convert a user object to a canoncial representation used for interacting with the backend
* convert a user object to a canonical representation used for interacting with the backend
* @param user frontend user object, from prisma db
*/
export const convertToBackendUserCore = <T extends { accounts: Account[]; id: string; name: string }>(
Expand Down

0 comments on commit 69d736c

Please sign in to comment.