ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { isBasicASCII } from '../../../util/vs/base/common/strings';
export function looksLikeCode(text: string): boolean {
const lines = text.split(/\r?\n/);
const lineTypes = lines.map(guessLineType);
const codeLineCount = lineTypes.filter(type => type === GuessedLineType.Code).length;
const naturalLanguageLineCount lineTypestype type GuessedLineTypeNaturalLanguagelength
codeLineCount naturalLanguageLineCount
GuessedLineType
Unknown
Code
NaturalLanguage
line GuessedLineType
linelength
GuessedLineTypeUnknown
naturalLanguageScore
codeScore
obviousCodeSyntax
obviousCodeSyntaxsyntax linesyntax
GuessedLineTypeCode
line line
GuessedLineTypeCode
line
naturalLanguageScore
linelinelength
naturalLanguageScore
line
naturalLanguageScore
line line
codeScore
line
codeScore
commonCodeChars
commonCodeCharsCounts commonCodeCharschar linechar x xlength
codeScore commonCodeCharsCounts
naturalLanguageScore codeScore
GuessedLineTypeNaturalLanguage
codeScore naturalLanguageScore
GuessedLineTypeCode
GuessedLineTypeUnknown