helloadhavan/github_issues huggingface dataset:
Repository: electron/electron
Pull request: build: use node 20.17 on Windows

#### Description of Change

This PR bumps our base images to Node 20.17

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] PR description included and stakeholders cc'd
- [ ] `npm test` passes
- [ ] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [ ] relevant documentation, tutorials, templates and examples are changed or added
- [ ] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: none


Changed files:
filename: appveyor-bake.yml
patch: @@ -68,7 +68,7 @@ build_script:
   - ps: $env:PATH="$pwd\depot_tools;$env:PATH"
   - update_depot_tools.bat
   # Uncomment the following line if windows deps change
-  # - src\electron\script\setup-win-for-dev.bat
+  - src\electron\script\setup-win-for-dev.bat
   - >-
       gclient config
       --name "src\electron"

filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-131.0.6734.0-node-20.17-1
+image: e-131.0.6734.0-node-20.17-0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-131.0.6734.0-node-20.17-1
+image: e-131.0.6734.0-node-20.17-0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: script/nan-spec-runner.js
patch: @@ -31,7 +31,7 @@ async function main () {
   const env = {
     ...process.env,
     npm_config_nodedir: nodeDir,
-    npm_config_msvs_version: '2019',
+    npm_config_msvs_version: '2022',
     npm_config_arch: process.env.NPM_CONFIG_ARCH,
     npm_config_yes: 'true'
   };

filename: script/spec-runner.js
patch: @@ -189,7 +189,7 @@ async function installSpecModules (dir) {
   const env = {
     ...process.env,
     CXXFLAGS: process.env.CXXFLAGS,
-    npm_config_msvs_version: '2019',
+    npm_config_msvs_version: '2022',
     npm_config_yes: 'true'
   };
   if (args.electronVersion) {
Repository: ollama/ollama
Pull request: Fix a typo

The word in the JSON response is `embedding` not `embeddings`:

```sh
curl -X POST http://localhost:11434/api/embeddings -d '{
  "model": "codeup:latest",
  "prompt": "Here is an article about llamas..."
}'
```
```json
{"embedding":[-1.3911274671554565,0.045920971781015396,1.0808414220809937,0.058245059102773666,-0.27932560443878174,-0.1968495100736618,1.1102352142333984,0.9859555959701538,0.9562729597091675,-0.19171573221683502,0.16944187879562378,-0.5829504132270813,0.19427405 ...
```

Changed files:
filename: docs/api.md
patch: @@ -355,7 +355,7 @@ curl -X POST http://localhost:11434/api/embeddings -d '{
 
 ```json
 {
-  "embeddings": [
+  "embedding": [
     0.5670403838157654, 0.009260174818336964, 0.23178744316101074, -0.2916173040866852, -0.8924556970596313,
     0.8785552978515625, -0.34576427936553955, 0.5742510557174683, -0.04222835972905159, -0.137906014919281
   ]
Repository: facebook/react
Pull request: [tests] assertLog before act in ReactUse

Fixes tests blocking https://github.com/facebook/react/pull/28737

Changed files:
filename: packages/react-reconciler/src/__tests__/ReactUse-test.js
patch: @@ -663,6 +663,8 @@ describe('ReactUse', () => {
     }
 
     const root1 = ReactNoop.createRoot();
+    assertLog(['Async text requested [Hi]']);
+
     await act(() => {
       root1.render(<Suspense fallback={<Text text="Loading..." />} />);
     });
@@ -677,7 +679,7 @@ describe('ReactUse', () => {
         );
       });
     });
-    assertLog(['Async text requested [Hi]']);
+    assertLog([]);
 
     // While we're waiting for the first root's data to resolve, a second
     // root renders.
Repository: electron/electron
Pull request: build: update appveyor to node 20.17

#### Description of Change

This PR updates our Appveyor build images from Node 20.9 to Node 20.17

Note for backports: these will need to be manually backported, but adding the labels to ensure the backports happen and is cleanly documented.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [x] relevant documentation, tutorials, templates and examples are changed or added
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: none


Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-131.0.6734.0
+image: e-131.0.6734.0-node-20.17-1
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-131.0.6734.0
+image: e-131.0.6734.0-node-20.17-1
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: script/setup-win-for-dev.bat
patch: @@ -56,11 +56,15 @@ REM Install Windows SDK
 choco install windows-sdk-11-version-22h2-all
 
 REM Install nodejs python git and yarn needed dependencies
-choco install -y --force nodejs --version=20.9.0
+choco install -y --force nodejs --version=20.17.0
 choco install -y python2 git yarn
 choco install python --version 3.7.9
 call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
 SET PATH=C:\Python27\;C:\Python27\Scripts;C:\Python39\;C:\Python39\Scripts;%PATH%
+if exist "C:\Users\appveyor\AppData\Roaming\npm" (
+  rm -rf "C:\Users\appveyor\AppData\Roaming\npm"
+  mkdir "C:\Users\appveyor\AppData\Roaming\npm"
+)
 if not exist "C:\Users\appveyor\AppData\Roaming\npm" (
   mkdir "C:\Users\appveyor\AppData\Roaming\npm"
 )
Repository: ollama/ollama
Pull request: Add oterm to community integrations

Hey there!
I just published  [oterm](https://github.com/ggozad/ollama) a text-based terminal client for Ollama. 
It features:
* intuitive and simple terminal UI, no need to run servers, frontends, just type oterm in your terminal.
* multiple persistent chat sessions, stored together with the context embeddings in sqlite.
* can use any of the models you have pulled in Ollama, or your own custom models.

This PR adds it to the community integrations

Changed files:
filename: README.md
patch: @@ -230,4 +230,5 @@ curl -X POST http://localhost:11434/api/generate -d '{
 - [Typescript UI](https://github.com/ollama-interface/Ollama-Gui?tab=readme-ov-file)
 - [Dumbar](https://github.com/JerrySievert/Dumbar)
 - [Emacs client](https://github.com/zweifisch/ollama)
-- [Ellama Emacs client](https://github.com/s-kostyaev/ellama)
+- [oterm](https://github.com/ggozad/oterm)
+- [Ellama Emacs client](https://github.com/s-kostyaev/ellama)
\ No newline at end of file
Repository: denoland/deno
Pull request: fix: add top level permissions key to config file schema

Closes https://github.com/denoland/deno/issues/30762

Changed files:
filename: cli/schemas/config-file.v1.json
patch: @@ -857,6 +857,11 @@
         }
       ]
     },
+    "permissions": {
+      "type": "object",
+      "description": "Named permission sets that can be selected with -P/--permission-set or referenced in \"test\", \"bench\", or \"compile\" permissions. A special name \"default\" is used when -P is passed without a value.",
+      "additionalProperties": { "$ref": "#/$defs/permissionSet" }
+    },
     "patch": {
       "type": "array",
       "items": {
Repository: nodejs/node
Pull request: test_runner: prefer `Atomics` primordials

Extracted from https://github.com/nodejs/node/pull/58577

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: lib/internal/test_runner/mock/loader.js
patch: @@ -1,13 +1,9 @@
 'use strict';
 const {
+  AtomicsNotify,
+  AtomicsStore,
   JSONStringify,
   SafeMap,
-  globalThis: {
-    Atomics: {
-      notify: AtomicsNotify,
-      store: AtomicsStore,
-    },
-  },
 } = primordials;
 const {
   kBadExportsMessage,

filename: lib/internal/test_runner/mock/mock.js
patch: @@ -2,6 +2,8 @@
 const {
   ArrayPrototypePush,
   ArrayPrototypeSlice,
+  AtomicsStore,
+  AtomicsWait,
   Error,
   FunctionPrototypeBind,
   FunctionPrototypeCall,
@@ -18,10 +20,6 @@ const {
   StringPrototypeSlice,
   StringPrototypeStartsWith,
   globalThis: {
-    Atomics: {
-      store: AtomicsStore,
-      wait: AtomicsWait,
-    },
     SharedArrayBuffer,
   },
 } = primordials;
Repository: denoland/deno
Pull request: fix: spurious pidfd wakeup panic on linux

Upgrades Tokio to 1.47.1

Closes https://github.com/denoland/deno/issues/30760

Changed files:
filename: Cargo.lock
patch: @@ -2455,7 +2455,7 @@ dependencies = [
  "rustls-tokio-stream",
  "serde",
  "sha2",
- "socket2",
+ "socket2 0.5.5",
  "thiserror 2.0.12",
  "tokio",
  "tokio-vsock",
@@ -5000,7 +5000,7 @@ dependencies = [
  "httpdate",
  "itoa",
  "pin-project-lite",
- "socket2",
+ "socket2 0.5.5",
  "tokio",
  "tower-service",
  "tracing",
@@ -5072,7 +5072,7 @@ dependencies = [
  "http-body 1.0.0",
  "hyper 1.6.0",
  "pin-project-lite",
- "socket2",
+ "socket2 0.5.5",
  "tokio",
  "tower-service",
  "tracing",
@@ -5433,7 +5433,7 @@ version = "0.3.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f"
 dependencies = [
- "socket2",
+ "socket2 0.5.5",
  "widestring",
  "windows-sys 0.48.0",
  "winreg 0.50.0",
@@ -7324,7 +7324,7 @@ dependencies = [
  "quinn-udp",
  "rustc-hash 2.1.1",
  "rustls",
- "socket2",
+ "socket2 0.5.5",
  "thiserror 2.0.12",
  "tokio",
  "tracing",
@@ -7363,7 +7363,7 @@ dependencies = [
  "cfg_aliases",
  "libc",
  "once_cell",
- "socket2",
+ "socket2 0.5.5",
  "tracing",
  "windows-sys 0.59.0",
 ]
@@ -7904,7 +7904,7 @@ dependencies = [
  "derive-io",
  "futures",
  "rustls",
- "socket2",
+ "socket2 0.5.5",
  "tokio",
 ]
 
@@ -8494,6 +8494,16 @@ dependencies = [
  "windows-sys 0.48.0",
 ]
 
+[[package]]
+name = "socket2"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
+dependencies = [
+ "libc",
+ "windows-sys 0.59.0",
+]
+
 [[package]]
 name = "sourcemap"
 version = "9.2.0"
@@ -9509,9 +9519,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
 
 [[package]]
 name = "tokio"
-version = "1.46.1"
+version = "1.47.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0cc3a2344dafbe23a245241fe8b09735b521110d30fcefbbd5feb1797ca35d17"
+checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038"
 dependencies = [
  "backtrace",
  "bytes",
@@ -9522,9 +9532,9 @@ dependencies = [
  "pin-project-lite",
  "signal-hook-registry",
  "slab",
- "socket2",
+ "socket2 0.6.0",
  "tokio-macros",
- "windows-sys 0.52.0",
+ "windows-sys 0.59.0",
 ]
 
 [[package]]
@@ -9671,7 +9681,7 @@ dependencies = [
  "percent-encoding",
  "pin-project",
  "prost",
- "socket2",
+ "socket2 0.5.5",
  "tokio",
  "tokio-stream",
  "tower 0.4.13",

filename: Cargo.toml
patch: @@ -259,7 +259,7 @@ tar = "=0.4.43"
 tempfile = "3.4.0"
 termcolor = "1.1.3"
 thiserror = "2.0.12"
-tokio = { version = "1.45.1", features = ["full"] }
+tokio = { version = "1.47.1", features = ["full"] }
 tokio-eld = "0.2"
 tokio-metrics = { version = "0.3.0", features = ["rt"] }
 tokio-rustls = { version = "0.26.0", default-features = false, features = ["aws_lc_rs", "tls12"] }
Repository: ollama/ollama
Pull request: Add ellama community integration

Hi.
Thank you for this cool project.
In this PR new emacs package added to community integrations. [ellama](https://github.com/s-kostyaev/ellama) supports streaming output and can be installed from [MELPA](https://melpa.org/#/getting-started)

Changed files:
filename: README.md
patch: @@ -230,3 +230,4 @@ curl -X POST http://localhost:11434/api/generate -d '{
 - [Typescript UI](https://github.com/ollama-interface/Ollama-Gui?tab=readme-ov-file)
 - [Dumbar](https://github.com/JerrySievert/Dumbar)
 - [Emacs client](https://github.com/zweifisch/ollama)
+- [Ellama Emacs client](https://github.com/s-kostyaev/ellama)
Repository: electron/electron
Pull request: perf: avoid redundant virtual method call in `NativeWindowViews::SetEnabledInternal()`

#### Description of Change

Don't call `IsEnabled()` twice in a row. Yes, it's a small function. But it's also a virtual method that makes a syscall on Windows.

Why waste time make lot call when few call do trick?

#### Checklist

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
guide](https://github.com/electron/electron/blob/main/docs/development/style-guide.md)
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: none.

Changed files:
filename: shell/browser/native_window_views.cc
patch: @@ -623,11 +623,8 @@ bool NativeWindowViews::ShouldBeEnabled() const {
 }
 
 void NativeWindowViews::SetEnabledInternal(bool enable) {
-  if (enable && IsEnabled()) {
+  if (enable == IsEnabled())
     return;
-  } else if (!enable && !IsEnabled()) {
-    return;
-  }
 
 #if BUILDFLAG(IS_WIN)
   ::EnableWindow(GetAcceleratedWidget(), enable);
Repository: huggingface/transformers
Pull request: Update collated reports working directory and --path

# What does this PR do?
Sets `working-directory: /transformers` in the job and `--path .` in the script call.


Changed files:
filename: .github/workflows/collated-reports.yml
patch: @@ -27,6 +27,7 @@ jobs:
       - uses: actions/download-artifact@v4
 
       - name: Collated reports
+        working-directory: /transformers
         shell: bash
         env:
           ACCESS_REPO_INFO_TOKEN: ${{ secrets.ACCESS_REPO_INFO_TOKEN }}
@@ -35,7 +36,7 @@ jobs:
         run: |
           pip install huggingface_hub
           python3 utils/collated_reports.py                  \
-            --path /transformers/reports/                    \
+            --path .                                         \
             --machine-type ${{ inputs.machine_type }}        \
             --commit-hash ${{ env.CI_SHA }}                  \
             --job ${{ inputs.job }}                          \
Repository: facebook/react
Pull request: [tests] assertLog before act in ReactUpdates

Fixes tests blocking https://github.com/facebook/react/pull/28737

Changed files:
filename: packages/react-dom/src/__tests__/ReactUpdates-test.js
patch: @@ -1900,6 +1900,8 @@ describe('ReactUpdates', () => {
       await act(() => {
         root.render(<Terminating />);
       });
+
+      assertLog(Array.from({length: LIMIT + 1}, (_, k) => k));
       expect(container.textContent).toBe('50');
       await act(() => {
         _setStep(0);
Repository: ollama/ollama
Pull request: Update install.sh

otherwise, the `ARCH` variable is unbound in `*)` 

Changed files:
filename: scripts/install.sh
patch: @@ -26,7 +26,8 @@ require() {
 
 [ "$(uname -s)" = "Linux" ] || error 'This script is intended to run on Linux only.'
 
-case "$(uname -m)" in
+ARCH=$(uname -m)
+case "$ARCH" in
     x86_64) ARCH="amd64" ;;
     aarch64|arm64) ARCH="arm64" ;;
     *) error "Unsupported architecture: $ARCH" ;;
Repository: electron/electron
Pull request: revert: allow NSMenuItems to be disabled

Backport of #46502

See that PR for details.


Notes: Reverts a change that greyed out disabled menu items on macOS (https://github.com/electron/electron/pull/46307)

Changed files:
filename: shell/browser/ui/cocoa/electron_menu_controller.mm
patch: @@ -320,10 +320,6 @@ - (NSMenuItem*)makeMenuItemForIndex:(NSInteger)index
   NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:label
                                                 action:@selector(itemSelected:)
                                          keyEquivalent:@""];
-  if (model->IsEnabledAt(index))
-    [item setEnabled:YES];
-  else
-    [item setEnabled:NO];
 
   // If the menu item has an icon, set it.
   ui::ImageModel icon = model->GetIconAt(index);
@@ -353,6 +349,11 @@ - (NSMenuItem*)makeMenuItemForIndex:(NSInteger)index
     [item setSubmenu:[self createShareMenuForItem:sharing_item]];
   } else if (type == electron::ElectronMenuModel::TYPE_SUBMENU &&
              model->IsVisibleAt(index)) {
+    // We need to specifically check that the submenu top-level item has been
+    // enabled as it's not validated by validateUserInterfaceItem
+    if (!model->IsEnabledAt(index))
+      [item setEnabled:NO];
+
     // Recursively build a submenu from the sub-model at this index.
     [item setTarget:nil];
     [item setAction:nil];
@@ -492,10 +493,8 @@ - (void)performShare:(NSMenuItem*)sender {
 }
 
 - (NSMenu*)menu {
-  if (menu_) {
-    [menu_ setAutoenablesItems:NO];
+  if (menu_)
     return menu_;
-  }
 
   if (model_ && model_->sharing_item()) {
     NSMenu* menu = [self createShareMenuForItem:*model_->sharing_item()];
@@ -505,8 +504,6 @@ - (NSMenu*)menu {
     if (model_)
       [self populateWithModel:model_.get()];
   }
-
-  [menu_ setAutoenablesItems:NO];
   [menu_ setDelegate:self];
   return menu_;
 }
Repository: ollama/ollama
Pull request: show request to server rather than local check

The show command should send a request to the server, rather than making a direct call to the function locally.

resolces #776 

Changed files:
filename: cmd/cmd.go
patch: @@ -688,7 +688,12 @@ func generateInteractive(cmd *cobra.Command, model string) error {
 		case strings.HasPrefix(line, "/show"):
 			args := strings.Fields(line)
 			if len(args) > 1 {
-				resp, err := server.GetModelInfo(model)
+				client, err := api.ClientFromEnvironment()
+				if err != nil {
+					fmt.Println("error: couldn't connect to ollama server")
+					return err
+				}
+				resp, err := client.Show(cmd.Context(), &api.ShowRequest{Name: model})
 				if err != nil {
 					fmt.Println("error: couldn't get model")
 					return err
Repository: nodejs/node
Pull request: util: inspect: do not crash on an Error stack pointing to itself

See https://github.com/nodejs/node/issues/58195

This avoids a maximum call stack size exceeded crash when the error stack is pointing to the error itself `error.stack = error`. This bug was introduced by https://github.com/nodejs/node/pull/56573.

Changed files:
filename: lib/internal/util/inspect.js
patch: @@ -1319,7 +1319,12 @@ function getStackString(ctx, error) {
     if (typeof error.stack === 'string') {
       return error.stack;
     }
-    return formatValue(ctx, error.stack);
+    ctx.seen.push(error);
+    ctx.indentationLvl += 4;
+    const result = formatValue(ctx, error.stack);
+    ctx.indentationLvl -= 4;
+    ctx.seen.pop();
+    return `${ErrorPrototypeToString(error)}\n    ${result}`;
   }
   return ErrorPrototypeToString(error);
 }

filename: test/parallel/test-util-inspect.js
patch: @@ -770,14 +770,14 @@ assert.strictEqual(util.inspect(-5e-324), '-5e-324');
 // Note: Symbols are not supported by `Error#toString()` which is called by
 // accessing the `stack` property.
 [
-  [404, '404 [RangeError]: foo', '[404]'],
+  [404, '404 [RangeError]: foo', '[RangeError: foo\n    404]'],
   [0, '0 [RangeError]: foo', '[RangeError: foo]'],
   [0n, '0 [RangeError]: foo', '[RangeError: foo]'],
   [null, 'null: foo', '[RangeError: foo]'],
   [undefined, 'RangeError: foo', '[RangeError: foo]'],
   [false, 'false [RangeError]: foo', '[RangeError: foo]'],
   ['', 'foo', '[RangeError: foo]'],
-  [[1, 2, 3], '1,2,3 [RangeError]: foo', '[[\n  1,\n  2,\n  3\n]]'],
+  [[1, 2, 3], '1,2,3 [RangeError]: foo', '[RangeError: foo\n    [\n      1,\n      2,\n      3\n    ]]'],
 ].forEach(([value, outputStart, stack]) => {
   let err = new RangeError('foo');
   err.name = value;
@@ -3457,6 +3457,34 @@ ${error.stack.split('\n').slice(1).join('\n')}`,
 
   assert.strictEqual(
     inspect(error),
-    '[[\n  Symbol(foo)\n]]'
+    '[Error\n    [\n      Symbol(foo)\n    ]]'
   );
 }
+
+{
+  const prepareStackTrace = Error.prepareStackTrace;
+
+  Error.prepareStackTrace = (error) => error;
+
+  const error = new Error('foo');
+
+  assert.strictEqual(inspect(error), '[Error: foo\n    [Circular *1]]');
+
+  Error.prepareStackTrace = prepareStackTrace;
+}
+
+{
+  const error = new Error('foo');
+  error.stack = error;
+
+  assert.strictEqual(inspect(error), '[Error: foo\n    [Circular *1]]');
+}
+
+{
+  const error = new Error('foo');
+  const error2 = new Error('bar');
+  error.stack = error2;
+  error2.stack = error;
+
+  assert.strictEqual(inspect(error), '[Error: foo\n    [Error: bar\n        [Circular *1]]]');
+}
Repository: ggml-org/llama.cpp
Pull request: common: fix typo in cli help text [no ci]

This fixes a typo in the `--parse-special` help text of `imatrix` cli


Changed files:
filename: common/arg.cpp
patch: @@ -3203,7 +3203,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
     ).set_examples({LLAMA_EXAMPLE_IMATRIX}));
     add_opt(common_arg(
         {"--parse-special"},
-        string_format("prase special tokens (chat, tool, etc) (default: %s)", params.parse_special ? "true" : "false"),
+        string_format("parse special tokens (chat, tool, etc) (default: %s)", params.parse_special ? "true" : "false"),
         [](common_params & params) {
             params.parse_special = true;
         }