Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1/*2Language: NSIS3Description: Nullsoft Scriptable Install System4Author: Jan T. Sott <jan.sott@gmail.com>5Website: https://nsis.sourceforge.io/Main_Page6Category: scripting7*/8 9 10function nsis(hljs) {11 const regex = hljs.regex;12 const LANGUAGE_CONSTANTS = [13 "ADMINTOOLS",14 "APPDATA",15 "CDBURN_AREA",16 "CMDLINE",17 "COMMONFILES32",18 "COMMONFILES64",19 "COMMONFILES",20 "COOKIES",21 "DESKTOP",22 "DOCUMENTS",23 "EXEDIR",24 "EXEFILE",25 "EXEPATH",26 "FAVORITES",27 "FONTS",28 "HISTORY",29 "HWNDPARENT",30 "INSTDIR",31 "INTERNET_CACHE",32 "LANGUAGE",33 "LOCALAPPDATA",34 "MUSIC",35 "NETHOOD",36 "OUTDIR",37 "PICTURES",38 "PLUGINSDIR",39 "PRINTHOOD",40 "PROFILE",41 "PROGRAMFILES32",42 "PROGRAMFILES64",43 "PROGRAMFILES",44 "QUICKLAUNCH",45 "RECENT",46 "RESOURCES_LOCALIZED",47 "RESOURCES",48 "SENDTO",49 "SMPROGRAMS",50 "SMSTARTUP",51 "STARTMENU",52 "SYSDIR",53 "TEMP",54 "TEMPLATES",55 "VIDEOS",56 "WINDIR"57 ];58 59 const PARAM_NAMES = [60 "ARCHIVE",61 "FILE_ATTRIBUTE_ARCHIVE",62 "FILE_ATTRIBUTE_NORMAL",63 "FILE_ATTRIBUTE_OFFLINE",64 "FILE_ATTRIBUTE_READONLY",65 "FILE_ATTRIBUTE_SYSTEM",66 "FILE_ATTRIBUTE_TEMPORARY",67 "HKCR",68 "HKCU",69 "HKDD",70 "HKEY_CLASSES_ROOT",71 "HKEY_CURRENT_CONFIG",72 "HKEY_CURRENT_USER",73 "HKEY_DYN_DATA",74 "HKEY_LOCAL_MACHINE",75 "HKEY_PERFORMANCE_DATA",76 "HKEY_USERS",77 "HKLM",78 "HKPD",79 "HKU",80 "IDABORT",81 "IDCANCEL",82 "IDIGNORE",83 "IDNO",84 "IDOK",85 "IDRETRY",86 "IDYES",87 "MB_ABORTRETRYIGNORE",88 "MB_DEFBUTTON1",89 "MB_DEFBUTTON2",90 "MB_DEFBUTTON3",91 "MB_DEFBUTTON4",92 "MB_ICONEXCLAMATION",93 "MB_ICONINFORMATION",94 "MB_ICONQUESTION",95 "MB_ICONSTOP",96 "MB_OK",97 "MB_OKCANCEL",98 "MB_RETRYCANCEL",99 "MB_RIGHT",100 "MB_RTLREADING",101 "MB_SETFOREGROUND",102 "MB_TOPMOST",103 "MB_USERICON",104 "MB_YESNO",105 "NORMAL",106 "OFFLINE",107 "READONLY",108 "SHCTX",109 "SHELL_CONTEXT",110 "SYSTEM|TEMPORARY",111 ];112 113 const COMPILER_FLAGS = [114 "addincludedir",115 "addplugindir",116 "appendfile",117 "assert",118 "cd",119 "define",120 "delfile",121 "echo",122 "else",123 "endif",124 "error",125 "execute",126 "finalize",127 "getdllversion",128 "gettlbversion",129 "if",130 "ifdef",131 "ifmacrodef",132 "ifmacrondef",133 "ifndef",134 "include",135 "insertmacro",136 "macro",137 "macroend",138 "makensis",139 "packhdr",140 "searchparse",141 "searchreplace",142 "system",143 "tempfile",144 "undef",145 "uninstfinalize",146 "verbose",147 "warning",148 ];149 150 const CONSTANTS = {151 className: 'variable.constant',152 begin: regex.concat(/\$/, regex.either(...LANGUAGE_CONSTANTS))153 };154 155 const DEFINES = {156 // ${defines}157 className: 'variable',158 begin: /\$+\{[\!\w.:-]+\}/159 };160 161 const VARIABLES = {162 // $variables163 className: 'variable',164 begin: /\$+\w[\w\.]*/,165 illegal: /\(\)\{\}/166 };167 168 const LANGUAGES = {169 // $(language_strings)170 className: 'variable',171 begin: /\$+\([\w^.:!-]+\)/172 };173 174 const PARAMETERS = {175 // command parameters176 className: 'params',177 begin: regex.either(...PARAM_NAMES)178 };179 180 const COMPILER = {181 // !compiler_flags182 className: 'keyword',183 begin: regex.concat(184 /!/,185 regex.either(...COMPILER_FLAGS)186 )187 };188 189 const ESCAPE_CHARS = {190 // $\n, $\r, $\t, $$191 className: 'char.escape',192 begin: /\$(\\[nrt]|\$)/193 };194 195 const PLUGINS = {196 // plug::ins197 className: 'title.function',198 begin: /\w+::\w+/199 };200 201 const STRING = {202 className: 'string',203 variants: [204 {205 begin: '"',206 end: '"'207 },208 {209 begin: '\'',210 end: '\''211 },212 {213 begin: '`',214 end: '`'215 }216 ],217 illegal: /\n/,218 contains: [219 ESCAPE_CHARS,220 CONSTANTS,221 DEFINES,222 VARIABLES,223 LANGUAGES224 ]225 };226 227 const KEYWORDS = [228 "Abort",229 "AddBrandingImage",230 "AddSize",231 "AllowRootDirInstall",232 "AllowSkipFiles",233 "AutoCloseWindow",234 "BGFont",235 "BGGradient",236 "BrandingText",237 "BringToFront",238 "Call",239 "CallInstDLL",240 "Caption",241 "ChangeUI",242 "CheckBitmap",243 "ClearErrors",244 "CompletedText",245 "ComponentText",246 "CopyFiles",247 "CRCCheck",248 "CreateDirectory",249 "CreateFont",250 "CreateShortCut",251 "Delete",252 "DeleteINISec",253 "DeleteINIStr",254 "DeleteRegKey",255 "DeleteRegValue",256 "DetailPrint",257 "DetailsButtonText",258 "DirText",259 "DirVar",260 "DirVerify",261 "EnableWindow",262 "EnumRegKey",263 "EnumRegValue",264 "Exch",265 "Exec",266 "ExecShell",267 "ExecShellWait",268 "ExecWait",269 "ExpandEnvStrings",270 "File",271 "FileBufSize",272 "FileClose",273 "FileErrorText",274 "FileOpen",275 "FileRead",276 "FileReadByte",277 "FileReadUTF16LE",278 "FileReadWord",279 "FileWriteUTF16LE",280 "FileSeek",281 "FileWrite",282 "FileWriteByte",283 "FileWriteWord",284 "FindClose",285 "FindFirst",286 "FindNext",287 "FindWindow",288 "FlushINI",289 "GetCurInstType",290 "GetCurrentAddress",291 "GetDlgItem",292 "GetDLLVersion",293 "GetDLLVersionLocal",294 "GetErrorLevel",295 "GetFileTime",296 "GetFileTimeLocal",297 "GetFullPathName",298 "GetFunctionAddress",299 "GetInstDirError",300 "GetKnownFolderPath",301 "GetLabelAddress",302 "GetTempFileName",303 "GetWinVer",304 "Goto",305 "HideWindow",306 "Icon",307 "IfAbort",308 "IfErrors",309 "IfFileExists",310 "IfRebootFlag",311 "IfRtlLanguage",312 "IfShellVarContextAll",313 "IfSilent",314 "InitPluginsDir",315 "InstallButtonText",316 "InstallColors",317 "InstallDir",318 "InstallDirRegKey",319 "InstProgressFlags",320 "InstType",321 "InstTypeGetText",322 "InstTypeSetText",323 "Int64Cmp",324 "Int64CmpU",325 "Int64Fmt",326 "IntCmp",327 "IntCmpU",328 "IntFmt",329 "IntOp",330 "IntPtrCmp",331 "IntPtrCmpU",332 "IntPtrOp",333 "IsWindow",334 "LangString",335 "LicenseBkColor",336 "LicenseData",337 "LicenseForceSelection",338 "LicenseLangString",339 "LicenseText",340 "LoadAndSetImage",341 "LoadLanguageFile",342 "LockWindow",343 "LogSet",344 "LogText",345 "ManifestDPIAware",346 "ManifestLongPathAware",347 "ManifestMaxVersionTested",348 "ManifestSupportedOS",349 "MessageBox",350 "MiscButtonText",351 "Name|0",352 "Nop",353 "OutFile",354 "Page",355 "PageCallbacks",356 "PEAddResource",357 "PEDllCharacteristics",358 "PERemoveResource",359 "PESubsysVer",360 "Pop",361 "Push",362 "Quit",363 "ReadEnvStr",364 "ReadINIStr",365 "ReadRegDWORD",366 "ReadRegStr",367 "Reboot",368 "RegDLL",369 "Rename",370 "RequestExecutionLevel",371 "ReserveFile",372 "Return",373 "RMDir",374 "SearchPath",375 "SectionGetFlags",376 "SectionGetInstTypes",377 "SectionGetSize",378 "SectionGetText",379 "SectionIn",380 "SectionSetFlags",381 "SectionSetInstTypes",382 "SectionSetSize",383 "SectionSetText",384 "SendMessage",385 "SetAutoClose",386 "SetBrandingImage",387 "SetCompress",388 "SetCompressor",389 "SetCompressorDictSize",390 "SetCtlColors",391 "SetCurInstType",392 "SetDatablockOptimize",393 "SetDateSave",394 "SetDetailsPrint",395 "SetDetailsView",396 "SetErrorLevel",397 "SetErrors",398 "SetFileAttributes",399 "SetFont",400 "SetOutPath",401 "SetOverwrite",402 "SetRebootFlag",403 "SetRegView",404 "SetShellVarContext",405 "SetSilent",406 "ShowInstDetails",407 "ShowUninstDetails",408 "ShowWindow",409 "SilentInstall",410 "SilentUnInstall",411 "Sleep",412 "SpaceTexts",413 "StrCmp",414 "StrCmpS",415 "StrCpy",416 "StrLen",417 "SubCaption",418 "Unicode",419 "UninstallButtonText",420 "UninstallCaption",421 "UninstallIcon",422 "UninstallSubCaption",423 "UninstallText",424 "UninstPage",425 "UnRegDLL",426 "Var",427 "VIAddVersionKey",428 "VIFileVersion",429 "VIProductVersion",430 "WindowIcon",431 "WriteINIStr",432 "WriteRegBin",433 "WriteRegDWORD",434 "WriteRegExpandStr",435 "WriteRegMultiStr",436 "WriteRegNone",437 "WriteRegStr",438 "WriteUninstaller",439 "XPStyle"440 ];441 442 const LITERALS = [443 "admin",444 "all",445 "auto",446 "both",447 "bottom",448 "bzip2",449 "colored",450 "components",451 "current",452 "custom",453 "directory",454 "false",455 "force",456 "hide",457 "highest",458 "ifdiff",459 "ifnewer",460 "instfiles",461 "lastused",462 "leave",463 "left",464 "license",465 "listonly",466 "lzma",467 "nevershow",468 "none",469 "normal",470 "notset",471 "off",472 "on",473 "open",474 "print",475 "right",476 "show",477 "silent",478 "silentlog",479 "smooth",480 "textonly",481 "top",482 "true",483 "try",484 "un.components",485 "un.custom",486 "un.directory",487 "un.instfiles",488 "un.license",489 "uninstConfirm",490 "user",491 "Win10",492 "Win7",493 "Win8",494 "WinVista",495 "zlib"496 ];497 498 const FUNCTION_DEFINITION = {499 match: [500 /Function/,501 /\s+/,502 regex.concat(/(\.)?/, hljs.IDENT_RE)503 ],504 scope: {505 1: "keyword",506 3: "title.function"507 }508 };509 510 // Var Custom.Variable.Name.Item511 // Var /GLOBAL Custom.Variable.Name.Item512 const VARIABLE_NAME_RE = /[A-Za-z][\w.]*/;513 const VARIABLE_DEFINITION = {514 match: [515 /Var/,516 /\s+/,517 /(?:\/GLOBAL\s+)?/,518 VARIABLE_NAME_RE519 ],520 scope: {521 1: "keyword",522 3: "params",523 4: "variable"524 }525 };526 527 return {528 name: 'NSIS',529 case_insensitive: true,530 keywords: {531 keyword: KEYWORDS,532 literal: LITERALS533 },534 contains: [535 hljs.HASH_COMMENT_MODE,536 hljs.C_BLOCK_COMMENT_MODE,537 hljs.COMMENT(538 ';',539 '$',540 { relevance: 0 }541 ),542 VARIABLE_DEFINITION,543 FUNCTION_DEFINITION,544 { beginKeywords: 'Function PageEx Section SectionGroup FunctionEnd SectionEnd', },545 STRING,546 COMPILER,547 DEFINES,548 VARIABLES,549 LANGUAGES,550 PARAMETERS,551 PLUGINS,552 hljs.NUMBER_MODE553 ]554 };555}556 557module.exports = nsis;558 