helloadhavan/github_issues huggingface dataset:
Repository: ollama/ollama
Pull request: server: lowercase roles for compatibility with clients

Fixes https://github.com/ollama/ollama/issues/5687. Note: we may first want to make sure that there are no cases where roles may be uppercase.

Changed files:
filename: api/types.go
patch: @@ -110,6 +110,18 @@ type Message struct {
 	Images  []ImageData `json:"images,omitempty"`
 }
 
+func (m *Message) UnmarshalJSON(b []byte) error {
+	type Alias Message
+	var a Alias
+	if err := json.Unmarshal(b, &a); err != nil {
+		return err
+	}
+
+	*m = Message(a)
+	m.Role = strings.ToLower(m.Role)
+	return nil
+}
+
 // ChatResponse is the response returned by [Client.Chat]. Its fields are
 // similar to [GenerateResponse].
 type ChatResponse struct {
@@ -243,8 +255,8 @@ type DeleteRequest struct {
 
 // ShowRequest is the request passed to [Client.Show].
 type ShowRequest struct {
-	Model    string `json:"model"`
-	System   string `json:"system"`
+	Model  string `json:"model"`
+	System string `json:"system"`
 
 	// Template is deprecated
 	Template string `json:"template"`

filename: api/types_test.go
patch: @@ -208,3 +208,26 @@ func TestUseMmapFormatParams(t *testing.T) {
 		})
 	}
 }
+
+func TestMessage_UnmarshalJSON(t *testing.T) {
+	tests := []struct {
+		input    string
+		expected string
+	}{
+		{`{"role": "USER", "content": "Hello!"}`, "user"},
+		{`{"role": "System", "content": "Initialization complete."}`, "system"},
+		{`{"role": "assistant", "content": "How can I help you?"}`, "assistant"},
+		{`{"role": "TOOl", "content": "Access granted."}`, "tool"},
+	}
+
+	for _, test := range tests {
+		var msg Message
+		if err := json.Unmarshal([]byte(test.input), &msg); err != nil {
+			t.Errorf("Unexpected error: %v", err)
+		}
+
+		if msg.Role != test.expected {
+			t.Errorf("role not lowercased: got %v, expected %v", msg.Role, test.expected)
+		}
+	}
+}
Repository: vercel/next.js
Pull request: fix: eslint-config-next types was exporting to dist/src

`eslint-config-next` types were being emitted to `dist/src` instead of `dist/` during build.

| Before | After |
|--------|--------|
| <img width="422" height="452" alt="CleanShot 2025-11-04 at 15 50 38@2x" src="https://github.com/user-attachments/assets/09c96d1a-41ba-4da9-87c6-bc05257c6e2a" /> | <img width="386" height="488" alt="CleanShot 2025-11-04 at 15 50 01@2x" src="https://github.com/user-attachments/assets/7b9802a4-e453-4086-90fb-a19e1aec7e20" /> |

Fixes https://github.com/vercel/next.js/issues/85379
Closes: https://github.com/vercel/next.js/pull/84929
Closes: https://github.com/vercel/next.js/pull/85653

Changed files:
filename: packages/eslint-config-next/package.json
patch: @@ -39,7 +39,7 @@
   "scripts": {
     "dev": "pnpm build",
     "build": "swc -d dist src && pnpm types",
-    "types": "tsc --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --outDir dist",
+    "types": "tsc --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --declarationDir dist --rootDir src",
     "prepublishOnly": "cd ../../ && turbo run build"
   },
   "exports": {
Repository: facebook/react
Pull request: Remove unused field _debugIsCurrentlyTiming

This field is unused. It's not there at runtime. It's just legacy from the type.

Changed files:
filename: packages/react-reconciler/src/ReactInternalTypes.js
patch: @@ -210,7 +210,6 @@ export type Fiber = {
   _debugOwner?: ReactComponentInfo | Fiber | null,
   _debugStack?: string | Error | null,
   _debugTask?: ConsoleTask | null,
-  _debugIsCurrentlyTiming?: boolean,
   _debugNeedsRemount?: boolean,
 
   // Used to verify that the order of hooks does not change between renders.
Repository: nodejs/node
Pull request: doc: fix quic session instance typo

<!--
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/quic.md
patch: @@ -438,7 +438,7 @@ added: v23.8.0
 
 The callback to invoke when the path validation is updated. Read/write.
 
-### `seesion.onsessionticket`
+### `session.onsessionticket`
 
 <!-- YAML
 added: v23.8.0
Repository: facebook/react
Pull request: [Flight Parcel] Remove private package

We'll start publishing these.



Changed files:
filename: packages/react-server-dom-parcel/package.json
patch: @@ -2,7 +2,6 @@
   "name": "react-server-dom-parcel",
   "description": "React Server Components bindings for DOM using Parcel. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
   "version": "19.0.0",
-  "private": true,
   "keywords": [
     "react"
   ],
Repository: vuejs/vue
Pull request: Fix missing removal of v-transition class

Fix #2972

At first I added this test too since manually updating the directive may differ from real updates but then I realised it must be already tested on binding tests so I removed it.

``` javascript
  it('removes v-transition on dynamic transition', function (done) {
    var el = document.createElement('div')
    document.body.appendChild(el)
    var vm = new Vue({
      el: el,
      template: '<div :transition="trans"></div>',
      data: {
        trans: null
      },
      replace: true
    })

    _.nextTick(function () {
      expect(vm.$el.className).toBe('v-transition')
      vm.trans = 'a'
      _.nextTick(function () {
        expect(vm.$el.className).toBe('a-transition')
        done()
      })
    })
  })
```


Changed files:
filename: src/directives/internal/transition.js
patch: @@ -11,6 +11,7 @@ export default {
     // resolve on owner vm
     var hooks = resolveAsset(this.vm.$options, 'transitions', id)
     id = id || 'v'
+    oldId = oldId || 'v'
     el.__v_trans = new Transition(el, id, hooks, this.vm)
     if (oldId) {
       removeClass(el, oldId + '-transition')

filename: test/unit/specs/directives/internal/transition_spec.js
patch: @@ -14,25 +14,30 @@ describe('transition', function () {
     })
     var dir = new Directive({
       name: 'transition',
-      raw: 'test',
+      raw: '',
       def: def,
       modifiers: {
         literal: true
       }
     }, vm, el)
     dir._bind()
     var transition = dir.el.__v_trans
+    expect(transition.enterClass).toBe('v-enter')
+    expect(transition.leaveClass).toBe('v-leave')
+    expect(dir.el.className).toBe('v-transition')
+    dir.update('test', '')
+    transition = dir.el.__v_trans
     expect(transition.el).toBe(dir.el)
     expect(transition.hooks).toBe(fns)
     expect(transition.enterClass).toBe('test-enter')
     expect(transition.leaveClass).toBe('test-leave')
-    expect(dir.el.className === 'test-transition')
+    expect(dir.el.className).toBe('test-transition')
     dir.update('lol', 'test')
     transition = dir.el.__v_trans
     expect(transition.enterClass).toBe('lol-enter')
     expect(transition.leaveClass).toBe('lol-leave')
     expect(transition.fns).toBeUndefined()
-    expect(dir.el.className === 'lol-transition')
+    expect(dir.el.className).toBe('lol-transition')
   })
 
   it('dynamic transitions', function (done) {
Repository: ggml-org/llama.cpp
Pull request: DirectIO Model Loading: Extend and fix Fallback

Due to issues with the DirectIO model loading path on Android this PR adds `EINVAL` errors to the fallback condition. Also there was a bug in the fallback to `mmap` in case `open` with the DirectIO flag fails. 

Changed files:
filename: src/llama-mmap.cpp
patch: @@ -265,7 +265,8 @@ struct llama_file::impl {
                         continue;  // Interrupted by signal, retry
                     }
                     // Fallback to std::fread in case the DMA controller cannot access the buffer
-                    if (errno == EFAULT) {
+                    if (errno == EFAULT || errno == EINVAL) {
+                        LLAMA_LOG_WARN("%s: Falling back to buffered IO due to %s\n", __func__, strerror(errno));
                         auto curr_off = tell();
                         close(fd);
                         fd = -1;
@@ -384,6 +385,9 @@ int llama_file::file_id() const {
 #ifdef _WIN32
     return _fileno(pimpl->fp);
 #else
+    if (pimpl->fd != -1) {
+        return pimpl->fd;
+    }
 #if defined(fileno)
     return fileno(pimpl->fp);
 #else

filename: src/llama-model-loader.cpp
patch: @@ -539,12 +539,18 @@ llama_model_loader::llama_model_loader(
     files.emplace_back(new llama_file(fname.c_str(), "rb", use_direct_io));
     contexts.emplace_back(ctx);
 
-    use_direct_io = use_direct_io && files.back()->has_direct_io();
-
-    // Disable mmap in case Direct I/O is enabled and available
-    if (use_direct_io && use_mmap) {
-        use_mmap = false;
-        LLAMA_LOG_WARN("%s: direct I/O is enabled, disabling mmap\n", __func__);
+    if (use_mmap && use_direct_io) {
+        if (files.back()->has_direct_io()) {
+            // Disable mmap, as DirectIO is available
+            use_mmap = false;
+            LLAMA_LOG_WARN("%s: direct I/O is enabled, disabling mmap\n", __func__);
+        } else {
+            // Disable DirectIO and reopen file using std::fopen for mmap
+            use_direct_io = false;
+            files.pop_back();
+            files.emplace_back(new llama_file(fname.c_str(), "rb", false));
+            LLAMA_LOG_WARN("%s: direct I/O is not available, using mmap\n", __func__);
+        }
     }
 
     // Save tensors data offset of the main file.
Repository: facebook/react
Pull request: Fix canary version strings

We're still publishing RCs and creating canary version strings using the RC naming convention. Setting the `canaryChannelLabel` back to canary fixes the version names and tags after the 19 stable release.

Changed files:
filename: ReactVersions.js
patch: @@ -26,11 +26,11 @@ const ReactVersion = '19.1.0';
 //
 // It only affects the label used in the version string. To customize the
 // npm dist tags used during publish, refer to .github/workflows/runtime_prereleases_*.yml.
-const canaryChannelLabel = 'rc';
+const canaryChannelLabel = 'canary';
 
 // If the canaryChannelLabel is "rc", the build pipeline will use this to build
 // an RC version of the packages.
-const rcNumber = 1;
+const rcNumber = 0;
 
 const stablePackages = {
   'eslint-plugin-react-hooks': '5.2.0',
Repository: electron/electron
Pull request: fix: MacOS 26 Tahoe - stop overriding private cornerMask API to fix WindowServer GPU load

Backport of #48376

See that PR for details.


Notes: Fixed excessive WindowServer GPU usage on macOS Tahoe 26.

Changed files:
filename: shell/browser/native_window_mac.mm
patch: @@ -1354,7 +1354,6 @@ static bool FromV8(v8::Isolate* isolate,
       [maskImage setCapInsets:NSEdgeInsetsMake(radius, radius, radius, radius)];
       [maskImage setResizingMode:NSImageResizingModeStretch];
       [vibrantView setMaskImage:maskImage];
-      [window_ setCornerMask:maskImage];
     }
   }
 }

filename: shell/browser/ui/cocoa/electron_ns_window.h
patch: @@ -40,15 +40,13 @@ class ElectronNativeWindowObserver;
 @property BOOL disableAutoHideCursor;
 @property BOOL disableKeyOrMainWindow;
 @property(nonatomic, retain) NSVisualEffectView* vibrantView;
-@property(nonatomic, retain) NSImage* cornerMask;
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask;
 - (void)cleanup;
 - (electron::NativeWindowMac*)shell;
 - (id)accessibilityFocusedUIElement;
 - (NSRect)originalContentRectForFrameRect:(NSRect)frameRect;
 - (BOOL)toggleFullScreenMode:(id)sender;
-- (NSImage*)_cornerMask;
 - (void)disableHeadlessMode;
 @end
 

filename: shell/browser/ui/cocoa/electron_ns_window.mm
patch: @@ -25,7 +25,6 @@
 }  // namespace electron
 
 @interface NSWindow (PrivateAPI)
-- (NSImage*)_cornerMask;
 - (int64_t)_resizeDirectionForMouseLocation:(CGPoint)location;
 @end
 
@@ -123,7 +122,6 @@ @implementation ElectronNSWindow
 @synthesize disableAutoHideCursor;
 @synthesize disableKeyOrMainWindow;
 @synthesize vibrantView;
-@synthesize cornerMask;
 
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask {
@@ -308,16 +306,6 @@ - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
   return [super validateUserInterfaceItem:item];
 }
 
-// By overriding this built-in method the corners of the vibrant view (if set)
-// will be smooth.
-- (NSImage*)_cornerMask {
-  if (self.vibrantView != nil) {
-    return [self cornerMask];
-  } else {
-    return [super _cornerMask];
-  }
-}
-
 - (void)disableHeadlessMode {
   if (shell_) {
     // We initialize the window in headless mode to allow painting before it is
Repository: vuejs/vue
Pull request: add ssr custom directive test

ref: #2872 


Changed files:
filename: test/ssr/ssr-string.spec.js
patch: @@ -3,8 +3,6 @@ import { compileToFunctions } from '../../dist/compiler.js'
 import createRenderer from '../../dist/server-renderer.js'
 const { renderToString } = createRenderer()
 
-// TODO: test custom server-side directives
-
 describe('SSR: renderToString', () => {
   it('static attributes', done => {
     renderVmWithOptions({
@@ -360,6 +358,38 @@ describe('SSR: renderToString', () => {
     })
   })
 
+  it('custom directives', done => {
+    const renderer = createRenderer({
+      directives: {
+        'class-prefixer': (node, dir) => {
+          if (node.data.class) {
+            node.data.class = `${dir.value}-${node.data.class}`
+          }
+          if (node.data.staticClass) {
+            node.data.staticClass = `${dir.value}-${node.data.staticClass}`
+          }
+        }
+      }
+    })
+    renderer.renderToString(new Vue({
+      render () {
+        const h = this.$createElement
+        return h('p', {
+          class: 'class1',
+          staticClass: 'class2',
+          directives: [{
+            name: 'class-prefixer',
+            value: 'my'
+          }]
+        }, ['hello world'])
+      }
+    }), (err, result) => {
+      expect(err).toBeNull()
+      expect(result).toContain('<p server-rendered="true" class="my-class2 my-class1">hello world</p>')
+      done()
+    })
+  })
+
   it('should catch error', done => {
     renderToString(new Vue({
       render () {
Repository: ollama/ollama
Pull request: llm: looser checks for minimum memory

Fixes https://github.com/ollama/ollama/issues/5674

Changed files:
filename: llm/server.go
patch: @@ -127,7 +127,7 @@ func NewLlamaServer(gpus gpu.GpuInfoList, model string, ggml *GGML, adapters, pr
 	// On linux, over-allocating CPU memory will almost always result in an error
 	if runtime.GOOS == "linux" {
 		systemMemoryRequired := estimate.TotalSize - estimate.VRAMSize
-		available := min(systemTotalMemory, systemFreeMemory+systemSwapFreeMemory)
+		available := systemFreeMemory + systemSwapFreeMemory
 		if systemMemoryRequired > available {
 			slog.Warn("model request too large for system", "requested", format.HumanBytes2(systemMemoryRequired), "available", available, "total", format.HumanBytes2(systemTotalMemory), "free", format.HumanBytes2(systemFreeMemory), "swap", format.HumanBytes2(systemSwapFreeMemory))
 			return nil, fmt.Errorf("model requires more system memory (%s) than is available (%s)", format.HumanBytes2(systemMemoryRequired), format.HumanBytes2(available))
Repository: electron/electron
Pull request: fix: MacOS 26 Tahoe - stop overriding private cornerMask API to fix WindowServer GPU load

Backport of #48376

See that PR for details.


Notes: Fixed excessive WindowServer GPU usage on macOS Tahoe 26.

Changed files:
filename: shell/browser/native_window_mac.mm
patch: @@ -1333,7 +1333,6 @@ static bool FromV8(v8::Isolate* isolate,
       maskImage.capInsets = NSEdgeInsetsMake(radius, radius, radius, radius);
       maskImage.resizingMode = NSImageResizingModeStretch;
       [vibrantView setMaskImage:maskImage];
-      [window_ setCornerMask:maskImage];
     }
   }
 }

filename: shell/browser/ui/cocoa/electron_ns_window.h
patch: @@ -40,15 +40,13 @@ class ElectronNativeWindowObserver;
 @property BOOL disableAutoHideCursor;
 @property BOOL disableKeyOrMainWindow;
 @property(nonatomic, retain) NSVisualEffectView* vibrantView;
-@property(nonatomic, retain) NSImage* cornerMask;
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask;
 - (void)cleanup;
 - (electron::NativeWindowMac*)shell;
 - (id)accessibilityFocusedUIElement;
 - (NSRect)originalContentRectForFrameRect:(NSRect)frameRect;
 - (BOOL)toggleFullScreenMode:(id)sender;
-- (NSImage*)_cornerMask;
 - (void)disableHeadlessMode;
 @end
 

filename: shell/browser/ui/cocoa/electron_ns_window.mm
patch: @@ -25,7 +25,6 @@
 }  // namespace electron
 
 @interface NSWindow (PrivateAPI)
-- (NSImage*)_cornerMask;
 - (int64_t)_resizeDirectionForMouseLocation:(CGPoint)location;
 @end
 
@@ -123,7 +122,6 @@ @implementation ElectronNSWindow
 @synthesize disableAutoHideCursor;
 @synthesize disableKeyOrMainWindow;
 @synthesize vibrantView;
-@synthesize cornerMask;
 
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask {
@@ -308,16 +306,6 @@ - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
   return [super validateUserInterfaceItem:item];
 }
 
-// By overriding this built-in method the corners of the vibrant view (if set)
-// will be smooth.
-- (NSImage*)_cornerMask {
-  if (self.vibrantView != nil) {
-    return [self cornerMask];
-  } else {
-    return [super _cornerMask];
-  }
-}
-
 - (void)disableHeadlessMode {
   if (shell_) {
     // We initialize the window in headless mode to allow painting before it is
Repository: vercel/next.js
Pull request: remove unused RSC payload property

This property is from back when we forked client router handling based off the presence of the `postponed` payload, but it's no longer being read by anything, so this PR removes it. 

Changed files:
filename: packages/next/src/client/flight-data-helpers.ts
patch: @@ -118,7 +118,6 @@ export function createInitialRSCPayloadFromFallbackPrerender(
     ],
     m: fallbackInitialRSCPayload.m,
     G: fallbackInitialRSCPayload.G,
-    s: fallbackInitialRSCPayload.s,
     S: fallbackInitialRSCPayload.S,
   }
 }

filename: packages/next/src/server/app-render/app-render.tsx
patch: @@ -1333,7 +1333,6 @@ async function getRSCPayload(
     ],
     m: missingSlots,
     G: [GlobalError, globalErrorStyles],
-    s: typeof ctx.renderOpts.postponed === 'string',
     S: workStore.isStaticGeneration,
   }
 }
@@ -1458,7 +1457,6 @@ async function getErrorRSCPayload(
       ] as FlightDataPath,
     ],
     G: [GlobalError, globalErrorStyles],
-    s: typeof ctx.renderOpts.postponed === 'string',
     S: workStore.isStaticGeneration,
   } satisfies InitialRSCPayload
 }

filename: packages/next/src/shared/lib/app-router-types.ts
patch: @@ -288,8 +288,6 @@ export type InitialRSCPayload = {
   m: Set<string> | undefined
   /** GlobalError */
   G: [React.ComponentType<any>, React.ReactNode | undefined]
-  /** postponed */
-  s: boolean
   /** prerendered */
   S: boolean
 }
Repository: vuejs/vue
Pull request: Fix laravel link


Changed files:
filename: README.md
patch: @@ -28,7 +28,7 @@ Vue.js is an MIT-licensed open source project. Its ongoing development is made p
   <img width="200px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/jsfiddle.png">
 </a>
 
-<a href="https://jsfiddle.net/">
+<a href="https://laravel.com/">
   <img width="200px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/laravel.png">
 </a>
Repository: huggingface/transformers
Pull request: Fix UnboundLocalError in RT-DETR loss computation

## Summary

Fixes an `UnboundLocalError` that occurs in the RT-DETR loss computation when `config.auxiliary_loss` is `False`.

## Problem

The variable `auxiliary_outputs` is conditionally assigned inside an `if config.auxiliary_loss:` block, but it's referenced later in the function regardless of whether the condition was true. When `auxiliary_loss` is disabled, this causes:

```
UnboundLocalError: local variable 'auxiliary_outputs' referenced before assignment
```

## Solution

Initialize `auxiliary_outputs = None` before the conditional block to ensure it's always defined before use.

## Changes

- Added `auxiliary_outputs = None` initialization in `src/transformers/loss/loss_rt_detr.py:450`

## Testing

This fix ensures the function works correctly whether `config.auxiliary_loss` is `True` or `False`.

Changed files:
filename: src/transformers/loss/loss_rt_detr.py
patch: @@ -447,6 +447,7 @@ def RTDetrForObjectDetectionLoss(
     outputs_loss = {}
     outputs_loss["logits"] = logits
     outputs_loss["pred_boxes"] = pred_boxes
+    auxiliary_outputs = None
     if config.auxiliary_loss:
         if denoising_meta_values is not None:
             dn_out_coord, outputs_coord = torch.split(outputs_coord, denoising_meta_values["dn_num_split"], dim=2)