helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: Change TouchedViewDataAtPoint type in ReactNativeTypes to use supported by Flow tooling syntax

## Summary

The `flow-api-translator` from the `hermes` repo does not support flow type spreads. It is currently not able to digest the ReactNativeTypes file as it contains unsupported syntax. The simplest solution is to change the type of the `TouchedViewDataAtPoint` to equivalent, yet supported by the Flow tooling. In this case the intersection can be used as 
the `TouchedViewDataAtPoint` and `InspectorData` have no common property.

## How did you test this change?

Run yarn flow native


Changed files:
filename: packages/react-native-renderer/src/ReactNativeTypes.js
patch: @@ -164,18 +164,19 @@ export type InspectorData = $ReadOnly<{
   componentStack: string,
 }>;
 
-export type TouchedViewDataAtPoint = $ReadOnly<{
-  pointerY: number,
-  touchedViewTag?: number,
-  frame: $ReadOnly<{
-    top: number,
-    left: number,
-    width: number,
-    height: number,
-  }>,
-  closestPublicInstance?: PublicInstance,
-  ...InspectorData,
-}>;
+export type TouchedViewDataAtPoint = $ReadOnly<
+  {
+    pointerY: number,
+    touchedViewTag?: number,
+    frame: $ReadOnly<{
+      top: number,
+      left: number,
+      width: number,
+      height: number,
+    }>,
+    closestPublicInstance?: PublicInstance,
+  } & InspectorData,
+>;
 
 export type RenderRootOptions = {
   onUncaughtError?: (
Repository: huggingface/transformers
Pull request: Fix failing test in Glm4vMoeIntegrationTest

# What does this PR do?

Fixes these [failing tests](https://github.com/huggingface/transformers/actions/runs/19768026992/job/56645846629#step:14:1150) in Glm4vMoeIntegrationTest.

<img width="1288" height="138" alt="image" src="https://github.com/user-attachments/assets/44c76404-c2cd-4cb2-964a-d36ecdc598a1" />

As discussed [here](https://github.com/huggingface/transformers/pull/41011#discussion_r2371807220), It depends on how pytest collects the different tests, so similar to [Lfm2MoeIntegrationTest](https://github.com/huggingface/transformers/blob/2a61590a479d3b1f77059f75caee7cc22760019d/tests/models/lfm2_moe/test_modeling_lfm2_moe.py#L147-L149), [Qwen3MoeIntegrationTest](https://github.com/huggingface/transformers/blob/2a61590a479d3b1f77059f75caee7cc22760019d/tests/models/qwen3_moe/test_modeling_qwen3_moe.py#L109-L111) (which are not failing in their get_model() function calls with this issue) it would be ideal to have `setUpClass` that initializes `cls.model` always.

## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@ydshieh @Cyrilvallez 

Changed files:
filename: tests/models/glm4v_moe/test_modeling_glm4v_moe.py
patch: @@ -294,7 +294,9 @@ def test_inputs_embeds_matches_input_ids(self):
 @require_torch
 @slow
 class Glm4vMoeIntegrationTest(unittest.TestCase):
-    model = None
+    @classmethod
+    def setUpClass(cls):
+        cls.model = None
 
     @classmethod
     def get_model(cls):
Repository: ollama/ollama
Pull request: Update README.md

Add AiLama to the list of community apps in Extensions & Plugins

This is a duplicate pull request of #4481, but resolves conflicts 

Changed files:
filename: README.md
patch: @@ -295,6 +295,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Olpaka](https://github.com/Otacon/olpaka) (User-friendly Flutter Web App for Ollama)
 - [OllamaSpring](https://github.com/CrazyNeil/OllamaSpring) (Ollama Client for macOS)
 - [LLocal.in](https://github.com/kartikm7/llocal) (Easy to use Electron Desktop Client for Ollama)
+- [AiLama](https://github.com/zeyoyt/ailama) (A Discord User App that allows you to interact with Ollama anywhere in discord )
 - [Ollama with Google Mesop](https://github.com/rapidarchitect/ollama_mesop/) (Mesop Chat Client implementation with Ollama)
 - [Painting Droid](https://github.com/mateuszmigas/painting-droid) (Painting app with AI integrations)
 - [Kerlig AI](https://www.kerlig.com/) (AI writing assistant for macOS)
Repository: vuejs/vue
Pull request: Pass attributes to parseComponent (addresses #4914)

See #4914 

This PR passes attributes down to `parseComponent` so that build tools layered on top of `vue-template-compiler` can have access to that information without having to parse the src to retrieve it. 

Changed files:
filename: src/sfc/parser.js
patch: @@ -36,28 +36,23 @@ export function parseComponent (
     end: number
   ) {
     if (depth === 0) {
+      currentBlock = {
+        type: tag,
+        content: '',
+        start: end,
+        attrs: attrs.reduce((cumulated, { name, value }) => {
+          cumulated[name] = value || true
+          return cumulated
+        }, Object.create(null))
+      }
       if (isSpecialTag(tag)) {
-        currentBlock = {
-          type: tag,
-          content: '',
-          start: end
-        }
         checkAttrs(currentBlock, attrs)
         if (tag === 'style') {
           sfc.styles.push(currentBlock)
         } else {
           sfc[tag] = currentBlock
         }
       } else { // custom blocks
-        currentBlock = {
-          type: tag,
-          content: '',
-          start: end,
-          attrs: attrs.reduce((cumulated, { name, value }) => {
-            cumulated[name] = value
-            return cumulated
-          }, Object.create(null))
-        }
         sfc.customBlocks.push(currentBlock)
       }
     }

filename: test/unit/modules/sfc/sfc-parser.spec.js
patch: @@ -16,6 +16,7 @@ describe('Single File Component parser', () => {
       <style module>
         h1 { font-weight: bold }
       </style>
+      <style bool-attr val-attr="test"></style>
       <script>
         export default {}
       </script>
@@ -24,12 +25,14 @@ describe('Single File Component parser', () => {
       </div>
     `)
     expect(res.template.content.trim()).toBe('<div>hi</div>')
-    expect(res.styles.length).toBe(3)
+    expect(res.styles.length).toBe(4)
     expect(res.styles[0].src).toBe('./test.css')
     expect(res.styles[1].lang).toBe('stylus')
     expect(res.styles[1].scoped).toBe(true)
     expect(res.styles[1].content.trim()).toBe('h1\n  color red\nh2\n  color green')
     expect(res.styles[2].module).toBe(true)
+    expect(res.styles[3].attrs['bool-attr']).toBe(true)
+    expect(res.styles[3].attrs['val-attr']).toBe('test')
     expect(res.script.content.trim()).toBe('export default {}')
   })
Repository: ggml-org/llama.cpp
Pull request: ci : use less jobs when building with sanitizers

ref https://github.com/ggml-org/llama.cpp/pull/19291#issuecomment-3862954095

I think this might help with sanitizer jobs being randomly terminated (such as https://github.com/ggml-org/llama.cpp/actions/runs/21761592313/job/62786390511).

Changed files:
filename: .github/workflows/build.yml
patch: @@ -295,6 +295,7 @@ jobs:
             -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
+
           cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
 
       - name: Build (no OpenMP)
@@ -307,6 +308,7 @@ jobs:
             -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
             -DGGML_OPENMP=OFF
+
           cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
 
       - name: Test

filename: .github/workflows/server.yml
patch: @@ -81,7 +81,7 @@ jobs:
             -DLLAMA_SANITIZE_ADDRESS=${{ matrix.sanitizer == 'ADDRESS' }} \
             -DLLAMA_SANITIZE_THREAD=${{ matrix.sanitizer == 'THREAD' }} \
             -DLLAMA_SANITIZE_UNDEFINED=${{ matrix.sanitizer == 'UNDEFINED' }}
-          cmake --build build --config ${{ matrix.build_type }} -j ${env:NUMBER_OF_PROCESSORS} --target llama-server
+          cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
 
       - name: Python setup
         id: setup_python
Repository: vercel/next.js
Pull request: fix(turbopack): Disable ES3 transforms from preset-env

### What?

Disable es3 transforms while applying preset-env.

### Why?

It's not required for turbopack. I'll remove them completely from the binary in the future.

### How?

Fixes #86076


Changed files:
filename: turbopack/crates/turbopack-ecmascript/src/transform/mod.rs
patch: @@ -8,7 +8,7 @@ use swc_core::{
     common::{Mark, SourceMap, comments::Comments},
     ecma::{
         ast::{ExprStmt, ModuleItem, Pass, Program, Stmt},
-        preset_env::{self, Targets},
+        preset_env::{self, Feature, FeatureOrModule, Targets},
         transforms::{
             base::{
                 assumptions::Assumptions,
@@ -210,6 +210,13 @@ impl EcmascriptInputTransform {
                     swc_core::ecma::preset_env::Config {
                         targets: Some(Targets::Versions(*versions)),
                         mode: None, // Don't insert core-js polyfills
+                        // Disable some ancient ES3 transforms, ReservedWords breaks resolving of
+                        // some idents references
+                        exclude: vec![
+                            FeatureOrModule::Feature(Feature::ReservedWords),
+                            FeatureOrModule::Feature(Feature::MemberExpressionLiterals),
+                            FeatureOrModule::Feature(Feature::PropertyLiterals),
+                        ],
                         ..Default::default()
                     },
                 );
Repository: vuejs/vue
Pull request: fix #4872, use context agnostic Function constructor check

If the prototype of a function is also a function, we treat it as `Function` constructor.

This check is context independent, so server side can safely extract vue as an external library. And it is not expensive.

Of course it is not silver bullet. Users can pass a value of which the prototype is set to a function. But naughty users can also rewrite `Function` global, so I think this change is at most as bad as current check.

Other counter examples are welcome!

Changed files:
filename: src/core/util/props.js
patch: @@ -70,7 +70,8 @@ function getPropDefaultValue (vm: ?Component, prop: PropOptions, key: string): a
     return vm._props[key]
   }
   // call factory function for non-Function types
-  return typeof def === 'function' && prop.type !== Function
+  // a value is Function if its prototype is function even across different execution context
+  return typeof def === 'function' && getType(prop.type) !== 'Function'
     ? def.call(vm)
     : def
 }

filename: test/ssr/ssr-string.spec.js
patch: @@ -1,4 +1,5 @@
 import Vue from '../../dist/vue.runtime.common.js'
+import VM from 'vm'
 import { createRenderer } from '../../packages/vue-server-renderer'
 const { renderToString } = createRenderer()
 
@@ -699,6 +700,23 @@ describe('SSR: renderToString', () => {
       done()
     }, context)
   })
+
+  it('default value Foreign Function', () => {
+    const FunctionConstructor = VM.runInNewContext('Function')
+    const func = () => 123
+    const vm = new Vue({
+      props: {
+        a: {
+          type: FunctionConstructor,
+          default: func
+        }
+      },
+      propsData: {
+        a: undefined
+      }
+    })
+    expect(vm.a).toBe(func)
+  })
 })
 
 function renderVmWithOptions (options, cb) {

filename: test/unit/features/options/props.spec.js
patch: @@ -98,6 +98,22 @@ describe('Options props', () => {
     }).then(done)
   })
 
+  it('default value Function', () => {
+    const func = () => 132
+    const vm = new Vue({
+      props: {
+        a: {
+          type: Function,
+          default: func
+        }
+      },
+      propsData: {
+        a: undefined
+      }
+    })
+    expect(vm.a).toBe(func)
+  })
+
   it('warn object/array default values', () => {
     new Vue({
       props: {
Repository: ollama/ollama
Pull request: Fixed redirect check if direct URL is already Present

This is a fix regarding #6308 where the redirect check would fail with

`unexpected status code 200`.

The problem is, that if you try to pull a Model from an internal Registry, there would be no redirect, but the current logic expects at least one redirect. So i've added a the StatusCode 200 - OK to the check and return the Location of the redirect.

The bug was introduced with [Pull#5962](https://github.com/ollama/ollama/pull/5962)

Changed files:
filename: server/download.go
patch: @@ -256,7 +256,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
 				continue
 			}
 			defer resp.Body.Close()
-			if resp.StatusCode != http.StatusTemporaryRedirect {
+			if resp.StatusCode != http.StatusTemporaryRedirect && resp.StatusCode != http.StatusOK {
 				return nil, fmt.Errorf("unexpected status code %d", resp.StatusCode)
 			}
 			return resp.Location()
Repository: ollama/ollama
Pull request: README.md: Package managers: add Gentoo


Changed files:
filename: README.md
patch: @@ -346,6 +346,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 ### Package managers
 
 - [Pacman](https://archlinux.org/packages/extra/x86_64/ollama/)
+- [Gentoo](https://github.com/gentoo/guru/tree/master/app-misc/ollama)
 - [Helm Chart](https://artifacthub.io/packages/helm/ollama-helm/ollama)
 - [Guix channel](https://codeberg.org/tusharhero/ollama-guix)
 - [Nix package](https://search.nixos.org/packages?channel=24.05&show=ollama&from=0&size=50&sort=relevance&type=packages&query=ollama)
Repository: vercel/next.js
Pull request: Add flag to show ignore listed frames

Since there's no way to show ignore-listed frames in the terminal, added `__NEXT_SHOW_IGNORE_LISTED` flag to show them. This should only be a concern for the maintainers/contributors who debug internals and can't attach a debugger.

Changed files:
filename: packages/next/src/server/patch-error-inspect.ts
patch: @@ -327,8 +327,7 @@ function parseAndSourceMap(
   error: Error,
   inspectOptions: util.InspectOptions
 ): string {
-  // TODO(veil): Expose as CLI arg or config option. Useful for local debugging.
-  const showIgnoreListed = false
+  const showIgnoreListed = process.env.__NEXT_SHOW_IGNORE_LISTED === 'true'
   // We overwrote Error.prepareStackTrace earlier so error.stack is not sourcemapped.
   let unparsedStack = String(error.stack)
   // We could just read it from `error.stack`.
Repository: vuejs/vue
Pull request: filter division expression with parentheses (fix #4838)

The filter parser wasn't considering "closing" parentheses in the check for regex.

Fix for issue #4838 


Changed files:
filename: src/compiler/parser/filter-parser.js
patch: @@ -55,7 +55,7 @@ export function parseFilters (exp: string): string {
           p = exp.charAt(j)
           if (p !== ' ') break
         }
-        if (!p || !/[\w$]/.test(p)) {
+        if (!p || !/[\w).\]\+\-\_$]/.test(p)) {
           inRegex = true
         }
       }

filename: test/unit/features/filter/filter.spec.js
patch: @@ -78,6 +78,68 @@ describe('Filters', () => {
     expect(vm.$el.textContent).toBe(String(1 / 4))
   })
 
+  it('handle division with parenthesis', () => {
+    const vm = new Vue({
+      data: { a: 20 },
+      template: `<div>{{ (a*2) / 5 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(16))
+  })
+
+  it('handle division with dot', () => {
+    const vm = new Vue({
+      template: `<div>{{ 20. / 5 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(8))
+  })
+
+  it('handle division with array values', () => {
+    const vm = new Vue({
+      data: { a: [20] },
+      template: `<div>{{ a[0] / 5 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(8))
+  })
+
+  it('handle division with hash values', () => {
+    const vm = new Vue({
+      data: { a: { n: 20 }},
+      template: `<div>{{ a['n'] / 5 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(8))
+  })
+
+  it('handle division with variable++', () => {
+    const vm = new Vue({
+      data: { a: 7 },
+      template: `<div>{{ a++ / 2 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(7))
+  })
+
+  it('handle division with variable--', () => {
+    const vm = new Vue({
+      data: { a: 7 },
+      template: `<div>{{ a++ / 2 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(7))
+  })
+
+  it('handle division with variable_', () => {
+    const vm = new Vue({
+      data: { a_: 8 },
+      template: `<div>{{ a_ / 2 | double }}</div>`,
+      filters: { double: v => v * 2 }
+    }).$mount()
+    expect(vm.$el.textContent).toBe(String(8))
+  })
+
   it('arguments', () => {
     const vm = new Vue({
       template: `<div>{{ msg | add(a, 3) }}</div>`,
Repository: ollama/ollama
Pull request: Update install.sh：Replace "command -v" with encapsulated functionality

Replace "command -v" with encapsulated functionality

Changed files:
filename: scripts/install.sh
patch: @@ -356,12 +356,12 @@ if ! lsmod | grep -q nvidia || ! lsmod | grep -q nvidia_uvm; then
 fi
 
 # make sure the NVIDIA modules are loaded on boot with nvidia-persistenced
-if command -v nvidia-persistenced > /dev/null 2>&1; then
+if available nvidia-persistenced; then
     $SUDO touch /etc/modules-load.d/nvidia.conf
     MODULES="nvidia nvidia-uvm"
     for MODULE in $MODULES; do
         if ! grep -qxF "$MODULE" /etc/modules-load.d/nvidia.conf; then
-            echo "$MODULE" | sudo tee -a /etc/modules-load.d/nvidia.conf > /dev/null
+            echo "$MODULE" | $SUDO tee -a /etc/modules-load.d/nvidia.conf > /dev/null
         fi
     done
 fi
Repository: vuejs/vue
Pull request: typings: type-checking WatchHandler

Makes watch handler argument to be typechecked when the expression is set
as a function.


Changed files:
filename: types/test/vue-test.ts
patch: @@ -1,6 +1,8 @@
 import Vue = require("../index");
 
 class Test extends Vue {
+  a: number;
+
   testProperties() {
     this.$data;
     this.$el;
@@ -37,7 +39,7 @@ class Test extends Vue {
       immediate: true,
       deep: false
     })();
-    this.$watch(() => {}, (val: number) => {});
+    this.$watch(() => this.a, (val: number) => {});
     this.$on("", () => {});
     this.$once("", () => {});
     this.$off("", () => {});

filename: types/vue.d.ts
patch: @@ -55,7 +55,7 @@ export declare class Vue {
     options?: WatchOptions
   ): (() => void);
   $watch<T>(
-    expOrFn: () => T,
+    expOrFn: (this: this) => T,
     callback: WatchHandler<this, T>,
     options?: WatchOptions
   ): (() => void);
Repository: ollama/ollama
Pull request: Update README.md - Apple Vision Pro

Added Enchanted with Apple Vision Pro support

Changed files:
filename: README.md
patch: @@ -335,6 +335,9 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [gollama](https://github.com/sammcj/gollama)
 - [Ollama eBook Summary](https://github.com/cognitivetech/ollama-ebook-summary/)
 
+### Apple Vision Pro
+- [Enchanted](https://github.com/AugustDev/enchanted)
+
 ### Database
 
 - [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)
Repository: vuejs/vue
Pull request: add $props

I've implemented a `$props` special attribute on components to access its props because I thought the feature proposed in #4571 was great.
For this implementation, I rewritten `proxy` function in src/core/instance/state.js to general purpose one.
Thanks for the wonderful suggestion, @akryum!


Changed files:
filename: test/unit/features/instance/properties.spec.js
patch: @@ -80,20 +80,49 @@ describe('Instance properties', () => {
     expect(calls).toEqual(['outer:undefined', 'middle:outer', 'inner:middle', 'next:undefined'])
   })
 
-  it('$props', () => {
-    var Comp = Vue.extend({
+  it('$props', done => {
+    const Comp = Vue.extend({
       props: ['msg'],
-      template: '<div>{{ msg }}</div>'
+      template: '<div>{{ msg }} {{ $props.msg }}</div>'
     })
-    var vm = new Comp({
+    const vm = new Comp({
       propsData: {
         msg: 'foo'
       }
-    })
+    }).$mount()
+    // check render
+    expect(vm.$el.textContent).toContain('foo foo')
+    // warn set
+    vm.$props = {}
+    expect('$props is readonly').toHaveBeenWarned()
     // check existence
     expect(vm.$props.msg).toBe('foo')
     // check change
-    Vue.set(vm, 'msg', 'bar')
+    vm.msg = 'bar'
     expect(vm.$props.msg).toBe('bar')
+    waitForUpdate(() => {
+      expect(vm.$el.textContent).toContain('bar bar')
+    }).then(() => {
+      vm.$props.msg = 'baz'
+      expect(vm.msg).toBe('baz')
+    }).then(() => {
+      expect(vm.$el.textContent).toContain('baz baz')
+    }).then(done)
+  })
+
+  it('warn mutating $props', () => {
+    const Comp = {
+      props: ['msg'],
+      render () {},
+      mounted () {
+        expect(this.$props.msg).toBe('foo')
+        this.$props.msg = 'bar'
+      }
+    }
+    new Vue({
+      template: `<comp ref="comp" msg="foo" />`,
+      components: { Comp }
+    }).$mount()
+    expect(`Avoid mutating a prop`).toHaveBeenWarned()
   })
 })
Repository: ollama/ollama
Pull request: Add ollama-php library to README.MD

ollama-php is a library that provides php support for ollama.

Changed files:
filename: README.md
patch: @@ -382,6 +382,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Gollm](https://docs.gollm.co/examples/ollama-example)
 - [Ollamaclient for Golang](https://github.com/xyproto/ollamaclient)
 - [High-level function abstraction in Go](https://gitlab.com/tozd/go/fun)
+- [Ollama PHP](https://github.com/ArdaGnsrn/ollama-php)
 
 ### Mobile