diff --git a/common/config/rush/build-cache.json b/common/config/rush/build-cache.json index 45571cbd..c8b6c6b8 100644 --- a/common/config/rush/build-cache.json +++ b/common/config/rush/build-cache.json @@ -37,7 +37,7 @@ */ "azureBlobStorageConfiguration": { /** - * (Required) The name of the the Azure storage account to use for build cache. + * (Required) The name of the Azure storage account to use for build cache. */ // "storageAccountName": "example", diff --git a/common/scripts/hotfix-release.js b/common/scripts/hotfix-release.js index a4b840a6..a34a23d7 100644 --- a/common/scripts/hotfix-release.js +++ b/common/scripts/hotfix-release.js @@ -81,7 +81,7 @@ function run() { const pkgJsonPath = path.join(__dirname, '../../', package.projectFolder, 'package.json') const pkgJson = getPackageJson(pkgJsonPath) - // 5. add the the changes + // 5. add the changes spawnSync('sh', ['-c', `git add --all`], { stdio: 'inherit', shell: false, diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js index 68b1b56f..e6d08599 100644 --- a/common/scripts/install-run.js +++ b/common/scripts/install-run.js @@ -44,7 +44,7 @@ __webpack_require__.r(__webpack_exports__); * home directory. * * @returns - * The text of the the .npmrc. + * The text of the .npmrc. */ function _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath) { logger.info(`Transforming ${sourceNpmrcPath}`); // Verbose @@ -95,7 +95,7 @@ function _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath) { * IMPORTANT: THIS CODE SHOULD BE KEPT UP TO DATE WITH Utilities._syncNpmrc() * * @returns - * The text of the the synced .npmrc, if one exists. If one does not exist, then undefined is returned. + * The text of the synced .npmrc, if one exists. If one does not exist, then undefined is returned. */ function syncNpmrc(sourceNpmrcFolder, targetNpmrcFolder, useNpmrcPublish, logger = { info: console.log, diff --git a/common/scripts/pre-release.js b/common/scripts/pre-release.js index dac9064f..d0e97865 100644 --- a/common/scripts/pre-release.js +++ b/common/scripts/pre-release.js @@ -77,7 +77,7 @@ function run() { const pkgJsonPath = path.join(__dirname, '../../', package.projectFolder, 'package.json') const pkgJson = getPackageJson(pkgJsonPath) - // 5. add the the changes + // 5. add the changes spawnSync('sh', ['-c', `git add --all`], { stdio: 'inherit', shell: false, diff --git a/packages/vmind/__tests__/experiment/src/data/dataExtractionData.ts b/packages/vmind/__tests__/experiment/src/data/dataExtractionData.ts index 80fd3094..48a85196 100644 --- a/packages/vmind/__tests__/experiment/src/data/dataExtractionData.ts +++ b/packages/vmind/__tests__/experiment/src/data/dataExtractionData.ts @@ -2611,8 +2611,8 @@ const realEstateData = { ] }; -const enviromentData = { - domain: 'enviroment', +const environmentData = { + domain: 'environment', data: [ { isEnglish: false, @@ -6574,7 +6574,7 @@ const transposition = { export const dataExtractionCommonDataset = [ economyData, technologyData, - enviromentData, + environmentData, cultureSportsData, agricultureData, retailData, diff --git a/packages/vmind/__tests__/experiment/src/pages/DataExtraction/caseStudy.tsx b/packages/vmind/__tests__/experiment/src/pages/DataExtraction/caseStudy.tsx index 94fc2bb9..fba4cc67 100644 --- a/packages/vmind/__tests__/experiment/src/pages/DataExtraction/caseStudy.tsx +++ b/packages/vmind/__tests__/experiment/src/pages/DataExtraction/caseStudy.tsx @@ -292,7 +292,7 @@ export function DataExtractionResult() { -
Comparision Result:
+
Comparison Result:
diff --git a/packages/vmind/src/schedule/index.ts b/packages/vmind/src/schedule/index.ts index c8c3e427..876231a2 100644 --- a/packages/vmind/src/schedule/index.ts +++ b/packages/vmind/src/schedule/index.ts @@ -6,7 +6,7 @@ import type { CombineAll, MapAtomTypes, ScheduleOptions, TaskMapping } from '../ import { Factory } from '../core/factory'; export class Schedule { - atomInstaces: IBaseAtom[]; + atomInstances: IBaseAtom[]; atomList: AtomName[]; @@ -24,13 +24,13 @@ export class Schedule { this.atomList = atomList; this.options = options || {}; this.query = ''; - this.atomInstaces = atomList.map(atomName => this.atomFactory(atomName)); + this.atomInstances = atomList.map(atomName => this.atomFactory(atomName)); this.setNewTask(context); } initContext() { this.context = {} as T; - this.atomInstaces.forEach(atom => { + this.atomInstances.forEach(atom => { this.context = atom.buildDefaultContext(this.context); atom.reset(); }); @@ -85,7 +85,7 @@ export class Schedule { completion_tokens: 0, total_tokens: 0 }; - for (const atom of this.atomInstaces) { + for (const atom of this.atomInstances) { const { shouldRun, query: taskQuery } = (subTasks as any)?.[atom.name] || {}; if ((shouldRunList as any)?.[atom.name] !== false && (shouldRun || atom.shouldRunByContextUpdate(this.context))) { this.context = await atom.run({ context: this.context, query: taskQuery }); @@ -103,7 +103,7 @@ export class Schedule { setNewTask(context: any) { this.initContext(); this.updateContext(context); - this.atomInstaces.forEach(atom => { + this.atomInstances.forEach(atom => { atom.reset(this.context); atom.clearHistory(); }); @@ -111,7 +111,7 @@ export class Schedule { updateOptions(options: ScheduleOptions) { this.options = merge({}, this.options, options); - this.atomInstaces.forEach(atom => atom.updateOptions(this.getAtomOptions(atom.name as AtomName))); + this.atomInstances.forEach(atom => atom.updateOptions(this.getAtomOptions(atom.name as AtomName))); } updateContext(context: any, isReplace = false) { @@ -125,12 +125,12 @@ export class Schedule { */ getContext(atomName?: AtomName): CombineAll> { if (atomName) { - const atomInstaces = this.atomInstaces.find(atom => atom.name === atomName); - if (!atomInstaces) { + const atomInstances = this.atomInstances.find(atom => atom.name === atomName); + if (!atomInstances) { console.error(`Doesn\'t exist ${atomName}`); return null as any; } - return atomInstaces.getContext() as any; + return atomInstances.getContext() as any; } return this.context; }