Spell fix s/e.g/e.g./ across code, tests and docs

This commit is contained in:
Debanjum Singh Solanky
2024-06-24 12:50:33 +05:30
parent 8fc7f980aa
commit 732332a3c5
10 changed files with 18 additions and 17 deletions

View File

@@ -354,7 +354,7 @@ export function getLinkToEntry(sourceFiles: TFile[], chosenFile: string, chosenE
// This finds longest path match when multiple files have same name
.sort((a, b) => b.path.length - a.path.length)
// The first match is the best file match across OS
// e.g Khoj server on Linux, Obsidian vault on Android
// e.g. Khoj server on Linux, Obsidian vault on Android
.find(file => chosenFile.replace(/\\/g, "/").endsWith(file.path))
// Return link to vault file at heading of chosen search result

View File

@@ -213,7 +213,7 @@ class SearchModelConfig(BaseModel):
model_type = models.CharField(max_length=200, choices=ModelType.choices, default=ModelType.TEXT)
# Bi-encoder model of sentence-transformer type to load from HuggingFace
bi_encoder = models.CharField(max_length=200, default="thenlper/gte-small")
# Config passed to the sentence-transformer model constructor. E.g device="cuda:0", trust_remote_server=True etc.
# Config passed to the sentence-transformer model constructor. E.g. device="cuda:0", trust_remote_server=True etc.
bi_encoder_model_config = models.JSONField(default=dict)
# Query encode configs like prompt, precision, normalize_embeddings, etc. for sentence-transformer models
bi_encoder_query_encode_config = models.JSONField(default=dict)

View File

@@ -125,7 +125,7 @@ class DateFilter(BaseFilter):
return []
# extract, parse natural dates ranges from date range filter passed in query
# e.g today maps to (start_of_day, start_of_tomorrow)
# e.g. today maps to (start_of_day, start_of_tomorrow)
date_ranges_from_filter = []
for cmp, date_str in date_range_matches:
if self.parse(date_str):
@@ -133,7 +133,7 @@ class DateFilter(BaseFilter):
date_ranges_from_filter += [[cmp, (dt_start.timestamp(), dt_end.timestamp())]]
# Combine dates with their comparators to form date range intervals
# For e.g
# For e.g.
# >=yesterday maps to [start_of_yesterday, inf)
# <tomorrow maps to [0, start_of_tomorrow)
# ---

View File

@@ -268,7 +268,7 @@ def log_telemetry(
# API endpoint on server called by client
request_body["api"] = api
if client:
# Client from which the API was called. E.g Emacs, Obsidian
# Client from which the API was called. E.g. Emacs, Obsidian
request_body["client"] = client
# Log telemetry data to telemetry endpoint