helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: cli: mark --heapsnapshot-near-heap-limit as stable.

This has not changed in the past 5 years and has been passing the tests for 5 years. Mark it as stable.

<!--
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: doc/api/cli.md
patch: @@ -1512,10 +1512,13 @@ Specify the file name of the heap profile generated by `--heap-prof`.
 added:
   - v15.1.0
   - v14.18.0
+changes:
+  - version:
+    - REPLACEME
+    pr-url: https://github.com/nodejs/node/pull/60956
+    description: The flag is no longer experimental.
 -->
 
-> Stability: 1 - Experimental
-
 Writes a V8 heap snapshot to disk when the V8 heap usage is approaching the
 heap limit. `count` should be a non-negative integer (in which case
 Node.js will write no more than `max_count` snapshots to disk).
Repository: ollama/ollama
Pull request: llm: do not error on "null" format

This fixes another regression in the previous commit that fixed other known bugs.

Changed files:
filename: llm/server.go
patch: @@ -700,20 +700,24 @@ func (s *llmServer) Completion(ctx context.Context, req CompletionRequest, fn fu
 	}
 
 	if len(req.Format) > 0 {
-		switch {
-		case bytes.Equal(req.Format, []byte(`""`)):
-			// fallthrough
-		case bytes.Equal(req.Format, []byte(`"json"`)):
+		switch string(req.Format) {
+		case `null`, `""`:
+			// Field was set, but "missing" a value. We accept
+			// these as "not set".
+			break
+		case `"json"`:
 			request["grammar"] = grammarJSON
-		case bytes.HasPrefix(req.Format, []byte("{")):
+		default:
+			if req.Format[0] != '{' {
+				return fmt.Errorf("invalid format: %q; expected \"json\" or a valid JSON Schema object", req.Format)
+			}
+
 			// User provided a JSON schema
 			g := llama.SchemaToGrammar(req.Format)
 			if g == nil {
 				return fmt.Errorf("invalid JSON schema in format")
 			}
 			request["grammar"] = string(g)
-		default:
-			return fmt.Errorf("invalid format: %q; expected \"json\" or a valid JSON Schema", req.Format)
 		}
 	}
 

filename: llm/server_test.go
patch: @@ -39,25 +39,34 @@ func TestLLMServerCompletionFormat(t *testing.T) {
 
 	cancel() // prevent further processing if request makes it past the format check
 
-	checkCanceled := func(err error) {
+	checkValid := func(err error) {
 		t.Helper()
 		if !errors.Is(err, context.Canceled) {
 			t.Fatalf("Completion: err = %v; expected context.Canceled", err)
 		}
 	}
 
-	valids := []string{`"json"`, `{"type":"object"}`, ``, `""`}
+	valids := []string{
+		// "missing"
+		``,
+		`""`,
+		`null`,
+
+		// JSON
+		`"json"`,
+		`{"type":"object"}`,
+	}
 	for _, valid := range valids {
 		err := s.Completion(ctx, CompletionRequest{
 			Options: new(api.Options),
 			Format:  []byte(valid),
 		}, nil)
-		checkCanceled(err)
+		checkValid(err)
 	}
 
 	err := s.Completion(ctx, CompletionRequest{
 		Options: new(api.Options),
 		Format:  nil, // missing format
 	}, nil)
-	checkCanceled(err)
+	checkValid(err)
 }
Repository: electron/electron
Pull request: ci: fix import in issue opened workflow

#### Description of Change

<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

Fast follow-up to #48246. I wasn't able to test that workflow originally since it needs to be triggered by an issue being opened, but now that it was merged and we had an issue opened it's clear this line got missed and needs to be updated to fix the workflow.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd

#### Release Notes

Notes: none <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->


Changed files:
filename: .github/workflows/issue-opened.yml
patch: @@ -56,6 +56,7 @@ jobs:
             const { chdir } = require('node:process');
             chdir('${{ github.workspace }}/.github/workflows');
 
+            const { ElectronVersions } = require('@electron/fiddle-core');
             const { fromMarkdown } = require('mdast-util-from-markdown');
             const { select } = require('unist-util-select');
             const semver = require('semver');
@@ -89,7 +90,6 @@ jobs:
                     labelExists = true;
                   } catch {}
 
-                  const { ElectronVersions } = await import('${{ github.workspace }}/node_modules/@electron/fiddle-core/dist/index.js');
                   const electronVersions = await ElectronVersions.create(undefined, { ignoreCache: true });
                   const validVersions = [...electronVersions.supportedMajors, ...electronVersions.prereleaseMajors];
Repository: vercel/next.js
Pull request: Add test creation instructions to agents.md

## Enhance test documentation with best practices and non-interactive test generation

### What?
Expanded the AGENTS.md documentation with detailed guidance on writing tests, including:
- Added non-interactive test generation instructions for AI agents
- Documented best practices for writing tests with code examples
- Provided clear guidance on using `retry()` instead of deprecated `check()` or `setTimeout`
- Added recommendations for using fixture directories over inline file definitions


Changed files:
filename: AGENTS.md
patch: @@ -110,7 +110,68 @@ pnpm test-dev-turbo test/development/
 
 - `pnpm test-unit` - Run unit tests only (fast, no browser)
 - `pnpm testonly <path>` - Run tests without rebuilding (faster iteration)
-- `pnpm new-test` - Generate a new test file from template
+- `pnpm new-test` - Generate a new test file from template (interactive)
+
+**Generate tests non-interactively (for AI agents):**
+
+```bash
+# Use --args for non-interactive mode
+# Format: pnpm new-test --args <appDir> <name> <type>
+# appDir: true/false (is this for app directory?)
+# name: test name (e.g. "my-feature")
+# type: e2e | production | development | unit
+
+pnpm new-test --args true my-feature e2e
+```
+
+## Writing Tests
+
+**Test writing expectations:**
+
+- **Use `pnpm new-test` to generate new test suites** - it creates proper structure with fixture files
+
+- **Use `retry()` from `next-test-utils` instead of `setTimeout` for waiting**
+
+  ```typescript
+  // Good - use retry() for polling/waiting
+  import { retry } from 'next-test-utils'
+  await retry(async () => {
+    const text = await browser.elementByCss('p').text()
+    expect(text).toBe('expected value')
+  })
+
+  // Bad - don't use setTimeout for waiting
+  await new Promise((resolve) => setTimeout(resolve, 1000))
+  ```
+
+- **Do NOT use `check()` - it is deprecated. Use `retry()` + `expect()` instead**
+
+  ```typescript
+  // Deprecated - don't use check()
+  await check(() => browser.elementByCss('p').text(), /expected/)
+
+  // Good - use retry() with expect()
+  await retry(async () => {
+    const text = await browser.elementByCss('p').text()
+    expect(text).toMatch(/expected/)
+  })
+  ```
+
+- **Prefer real fixture directories over inline `files` objects**
+
+  ```typescript
+  // Good - use a real directory with fixture files
+  const { next } = nextTestSetup({
+    files: __dirname, // points to directory containing test fixtures
+  })
+
+  // Avoid - inline file definitions are harder to maintain
+  const { next } = nextTestSetup({
+    files: {
+      'app/page.tsx': `export default function Page() { ... }`,
+    },
+  })
+  ```
 
 ## Linting and Types
Repository: facebook/react
Pull request: Build `react-server-dom-webpack` for codesandbox

This allows us to test Flight changes in a codesandbox.

[Example](https://codesandbox.io/p/devbox/zkjk7y)

Changed files:
filename: .codesandbox/ci.json
patch: @@ -1,10 +1,11 @@
 {
-  "packages": ["packages/react", "packages/react-dom", "packages/scheduler"],
+  "packages": ["packages/react", "packages/react-dom", "packages/react-server-dom-webpack", "packages/scheduler"],
   "buildCommand": "download-build-in-codesandbox-ci",
   "node": "18",
   "publishDirectory": {
     "react": "build/oss-experimental/react",
     "react-dom": "build/oss-experimental/react-dom",
+    "react-server-dom-webpack": "build/oss-experimental/react-server-dom-webpack",
     "scheduler": "build/oss-experimental/scheduler"
   },
   "sandboxes": ["new"],

filename: package.json
patch: @@ -146,7 +146,7 @@
     "publish-prereleases": "echo 'This command has been deprecated. Please refer to https://github.com/facebook/react/tree/main/scripts/release#trigger-an-automated-prerelease'",
     "download-build": "node ./scripts/release/download-experimental-build.js",
     "download-build-for-head": "node ./scripts/release/download-experimental-build.js --commit=$(git rev-parse HEAD)",
-    "download-build-in-codesandbox-ci": "yarn build --type=node react/index react-dom/index react-dom/client react-dom/src/server react-dom/test-utils scheduler/index react/jsx-runtime react/jsx-dev-runtime",
+    "download-build-in-codesandbox-ci": "yarn build --type=node react/index react.react-server react-dom/index react-dom/client react-dom/src/server react-dom/test-utils react-dom.react-server scheduler/index react/jsx-runtime react/jsx-dev-runtime react-server-dom-webpack",
     "check-release-dependencies": "node ./scripts/release/check-release-dependencies",
     "generate-inline-fizz-runtime": "node ./scripts/rollup/generate-inline-fizz-runtime.js",
     "flags": "node ./scripts/flags/flags.js"
Repository: nodejs/node
Pull request: v8: mark v8.queryObjects() as stable

This has been used in the tests for leak testing stably for over a year. The API is modeled after the Chrome DevTools console API is unlikely to have breaking changes. It's time to mark it as stable.

<!--
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: doc/api/v8.md
patch: @@ -367,10 +367,13 @@ for more information about the properties of the object.
 added:
   - v22.0.0
   - v20.13.0
+changes:
+  - version:
+    - REPLACEME
+    pr-url: https://github.com/nodejs/node/pull/60957
+    description: This API is no longer experimental.
 -->
 
-> Stability: 1.1 - Active development
-
 * `ctor` {Function} The constructor that can be used to search on the
   prototype chain in order to filter target objects in the heap.
 * `options` {undefined|Object}
Repository: ollama/ollama
Pull request: llm: loosen format check to default to no format


Changed files:
filename: llm/server.go
patch: @@ -722,20 +722,14 @@ func (s *llmServer) Completion(ctx context.Context, req CompletionRequest, fn fu
 		return fmt.Errorf("unexpected server status: %s", status.ToString())
 	}
 
-	if len(req.Format) > 0 {
-		switch {
-		case bytes.Equal(req.Format, []byte(`"json"`)):
-			request["grammar"] = grammarJSON
-		case bytes.HasPrefix(req.Format, []byte("{")):
-			// User provided a JSON schema
-			g := llama.SchemaToGrammar(req.Format)
-			if g == nil {
-				return fmt.Errorf("invalid JSON schema in format")
-			}
-			request["grammar"] = string(g)
-		default:
-			return errors.New(`invalid format: expected "json" or a JSON schema`)
+	if bytes.Equal(req.Format, []byte(`"json"`)) {
+		request["grammar"] = grammarJSON
+	} else if bytes.HasPrefix(req.Format, []byte("{")) {
+		g := llama.SchemaToGrammar(req.Format)
+		if g == nil {
+			return fmt.Errorf("invalid JSON schema in format")
 		}
+		request["grammar"] = string(g)
 	}
 
 	// Handling JSON marshaling with special characters unescaped.
Repository: vuejs/vue
Pull request: fix #6945: properly $off array of events

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [x] Bugfix of #6945 
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [X] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [X] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [X] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [X] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [X] New/updated tests are included

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**

The existing test were passing due to the fact that the $off had a second argument. I have fixed the bug and introduced one more test to test the scenario where it doesn't make use of the second argument.

Changed files:
filename: src/core/instance/events.js
patch: @@ -92,7 +92,7 @@ export function eventsMixin (Vue: Class<Component>) {
     if (!cbs) {
       return vm
     }
-    if (arguments.length === 1) {
+    if (!fn) {
       vm._events[event] = null
       return vm
     }

filename: test/unit/features/instance/methods-events.spec.js
patch: @@ -41,6 +41,13 @@ describe('Instance methods events', () => {
     expect(spy.calls.count()).toBe(1)
   })
 
+  it('$off multi event without callback', () => {
+    vm.$on(['test1', 'test2'], spy)
+    vm.$off(['test1', 'test2'])
+    vm.$emit('test1')
+    expect(spy).not.toHaveBeenCalled()
+  })
+
   it('$once', () => {
     vm.$once('test', spy)
     vm.$emit('test', 1, 2, 3)
Repository: facebook/react
Pull request: [compiler] Only append hash and date for experimental releases


No need to append these for non experimental/beta releases.


Changed files:
filename: compiler/scripts/release/publish.js
patch: @@ -139,10 +139,13 @@ async function main() {
       files: {exclude: ['.DS_Store']},
     });
     const truncatedHash = hash.slice(0, 7);
-    const newVersion =
+    let newVersion =
       argv.tagVersion == null || argv.tagVersion === ''
-        ? `${argv.versionName}-${argv.tag}-${truncatedHash}-${dateString}`
-        : `${argv.versionName}-${argv.tag}.${argv.tagVersion}-${truncatedHash}-${dateString}`;
+        ? `${argv.versionName}-${argv.tag}`
+        : `${argv.versionName}-${argv.tag}.${argv.tagVersion}`;
+    if (argv.tag === 'experimental' || argv.tag === 'beta') {
+      newVersion = `${newVersion}-${truncatedHash}-${dateString}`;
+    }
 
     for (const pkgName of pkgNames) {
       const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
Repository: facebook/react
Pull request: [ci] Change to string type


to no one's surprise, the `number` type appears to be cursed in GH actions for workflow dispatch. switch to string


Changed files:
filename: .github/workflows/compiler_prereleases.yml
patch: @@ -18,7 +18,7 @@ on:
         type: string
       tag_version:
         required: false
-        type: number
+        type: string
     secrets:
       NPM_TOKEN:
         required: true

filename: .github/workflows/compiler_prereleases_manual.yml
patch: @@ -16,7 +16,7 @@ on:
         type: string
       tag_version:
         required: false
-        type: number
+        type: string
 
 permissions: {}
Repository: facebook/react
Pull request: [compiler] Fix version name in publish script


Add ability to specify an optional tagVersion which is appended to the version name + tag, eg

19.1.0-rc.1
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32979).
* __->__ #32979
* #32978

Changed files:
filename: .github/workflows/compiler_prereleases.yml
patch: @@ -16,6 +16,9 @@ on:
       version_name:
         required: true
         type: string
+      tag_version:
+        required: false
+        type: number
     secrets:
       NPM_TOKEN:
         required: true
@@ -55,4 +58,4 @@ jobs:
       - name: Publish packages to npm
         run: |
           cp ./scripts/release/ci-npmrc ~/.npmrc
-          scripts/release/publish.js --frfr --ci --versionName=${{ inputs.version_name }} --tag ${{ inputs.dist_tag }}
+          scripts/release/publish.js --frfr --ci --versionName=${{ inputs.version_name }} --tag=${{ inputs.dist_tag }} ${{ inputs.tag_version && format('--tagVersion={0}', inputs.tag_version) || '' }}

filename: .github/workflows/compiler_prereleases_manual.yml
patch: @@ -14,6 +14,9 @@ on:
       version_name:
         required: true
         type: string
+      tag_version:
+        required: false
+        type: number
 
 permissions: {}
 
@@ -29,5 +32,6 @@ jobs:
       release_channel: ${{ inputs.release_channel }}
       dist_tag: ${{ inputs.dist_tag }}
       version_name: ${{ inputs.version_name }}
+      tag_version: ${{ inputs.tag_version }}
     secrets:
       NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

filename: compiler/scripts/release/publish.js
patch: @@ -65,6 +65,12 @@ async function main() {
       choices: ['experimental', 'beta', 'rc'],
       default: 'experimental',
     })
+    .option('tag-version', {
+      description:
+        'Optional tag version to append to tag name, eg `1` becomes 0.0.0-rc.1',
+      type: 'number',
+      default: null,
+    })
     .option('version-name', {
       description: 'Version name',
       type: 'string',
@@ -133,7 +139,10 @@ async function main() {
       files: {exclude: ['.DS_Store']},
     });
     const truncatedHash = hash.slice(0, 7);
-    const newVersion = `${argv.versionName}-${argv.tag}-${truncatedHash}-${dateString}`;
+    const newVersion =
+      argv.tagVersion == null || argv.tagVersion === ''
+        ? `${argv.versionName}-${argv.tag}-${truncatedHash}-${dateString}`
+        : `${argv.versionName}-${argv.tag}.${argv.tagVersion}-${truncatedHash}-${dateString}`;
 
     for (const pkgName of pkgNames) {
       const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
Repository: ollama/ollama
Pull request: readme: example/get started guide for pgai with Ollama

readme: example/get started guide for pgai with Ollama

Changed files:
filename: README.md
patch: @@ -408,6 +408,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 ### Database
 
 - [PostgreSQL extension pgai](https://github.com/timescale/pgai) (Create and search embeddings from Ollama models using pgvector)
+   - [Get started guide](https://github.com/timescale/pgai/blob/main/docs/ollama.md)
 - [MindsDB](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/integrations/handlers/ollama_handler/README.md) (Connects Ollama models with nearly 200 data platforms and apps)
 - [chromem-go](https://github.com/philippgille/chromem-go/blob/v0.5.0/embed_ollama.go) with [example](https://github.com/philippgille/chromem-go/tree/v0.5.0/examples/rag-wikipedia-ollama)
 - [Kangaroo](https://github.com/dbkangaroo/kangaroo) (AI-powered SQL client and admin tool for popular databases)