helloadhavan/github_issues huggingface dataset:
Repository: huggingface/transformers
Pull request: Fix eager experts for DeepSeekV2

The eager expert computation for DeepSeekV2 inherited from Qwen2MoE, but they pass expert weights differently. Qwen2MoE selects experts before `forward()`, it passes `top_k_weights` with shape  `(num_tokens, num_top_k)`. DeepSeekV2 does not, so `top_k_weights` has shape `(num_tokens, num_experts)`. The result is that DeepSeekV2 selected incorrect experts when `_experts_implementation == "eager"` and the output was garbage.

This PR overrides the `forward()` method for DeepSeek so we select the right experts!

cc @IlyasMoutawwakil, fixes #43224

Changed files:
filename: src/transformers/models/deepseek_v2/modeling_deepseek_v2.py
patch: @@ -116,7 +116,6 @@ def route_tokens_to_experts(self, router_logits):
             topk_weight, topk_idx = torch.topk(tmp_scores, k=self.top_k, dim=-1, sorted=False)
 
         topk_weight = topk_weight * self.routed_scaling_factor
-        topk_weight = torch.zeros_like(router_logits).scatter_(1, topk_idx, topk_weight)
         return topk_idx, topk_weight
 
     def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:

filename: src/transformers/models/deepseek_v2/modular_deepseek_v2.py
patch: @@ -269,7 +269,6 @@ def route_tokens_to_experts(self, router_logits):
             topk_weight, topk_idx = torch.topk(tmp_scores, k=self.top_k, dim=-1, sorted=False)
 
         topk_weight = topk_weight * self.routed_scaling_factor
-        topk_weight = torch.zeros_like(router_logits).scatter_(1, topk_idx, topk_weight)
         return topk_idx, topk_weight
 
     def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
Repository: nodejs/node
Pull request: build: fix crate vendor file checksums on windows

Fix cargo checksum on the `deps/crates/vendor` on Windows. This prevents git from changing the
vendored file EOL, which would result in checksum mismatch.

Changed files:
filename: .gitattributes
patch: @@ -1,5 +1,7 @@
 test/fixtures/* -text
 vcbuild.bat text eol=crlf
+# disable eol conversion in vendored files.
+deps/crates/vendor/**/* -text
 deps/npm/bin/npm text eol=lf
 deps/npm/bin/npx text eol=lf
 deps/corepack/shims/corepack text eol=lf
Repository: vercel/next.js
Pull request: Update deterministic-build assertion

Browser chunks are deterministic now

Thanks to:
- https://github.com/vercel/next.js/pull/88641
- https://github.com/vercel/next.js/pull/88741
- https://github.com/vercel/next.js/pull/88761

Changed files:
filename: test/production/deterministic-build/deployment-id.test.ts
patch: @@ -27,30 +27,18 @@ async function readFiles(next: NextInstance) {
   )
 }
 
-// TODO static/* browser chunks are content hashed and have the deployment id inlined
-const IGNORE_NAME = /^static\/chunks\//
 const IGNORE_CONTENT = new RegExp(
   [
-    // TODO These contain content-hashed browser chunk urls (and/or the deployment id query param)
-    'page_client-reference-manifest\\.js',
-    'build-manifest\\.json',
-    // TODO This contains
-    // - content-hashed browser chunk urls (and/or the deployment id query param)
-    // - browser chunk urls inside of a folder named after the build id
-    'middleware-build-manifest\\.js',
     // TODO this contains "env": { "__NEXT_BUILD_ID": "taBOOu8Znzobe4G7wEG_i",
     'middleware-manifest\\.json',
     // TODO this contains the build id
     'BUILD_ID',
     // TODO this contains the build id: "/pages-static-gsp": { "dataRoute": "/_next/data/V7oVUAlS1LiV5CqrtpkAL/pages-static-gsp.json",
     'prerender-manifest\\.json',
-    // TODO These contain (but are not deployed to the serverless function itself)
-    // - content-hashed browser chunk urls
-    // - the build id
+    // TODO These contain the build id (but are not deployed to the serverless function itself)
     '.*\\.html',
     '.*\\.rsc',
     // These are not critical, as they aren't deployed to the serverless function itself
-    '_buildManifest\\.js',
     'client-build-manifest\\.json',
     'fallback-build-manifest\\.json',
     'routes-manifest\\.json',
@@ -98,9 +86,6 @@ const IGNORE_CONTENT = new RegExp(
       await next.build()
       let run2 = await readFiles(next)
 
-      run1 = run1.filter(([f, _]) => !IGNORE_NAME.test(f))
-      run2 = run2.filter(([f, _]) => !IGNORE_NAME.test(f))
-
       // First, compare file names
       let run1FileNames = run1.map(([f, _]) => f)
       let run2FileNames = run2.map(([f, _]) => f)
Repository: ollama/ollama
Pull request: Build release for windows with local script


Changed files:
filename: scripts/build_windows.ps1
patch: @@ -80,13 +80,14 @@ function checkEnv() {
 
 
 function buildOllama() {
+    mkdir -Force -path "${script:DIST_DIR}\"
     if ($script:ARCH -ne "arm64") {
         Remove-Item -ea 0 -recurse -force -path "${script:SRC_DIR}\dist\windows-${script:ARCH}"
         New-Item "${script:SRC_DIR}\dist\windows-${script:ARCH}\lib\ollama\" -ItemType Directory -ea 0
 
         & cmake --fresh --preset CPU --install-prefix $script:DIST_DIR
         if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
-        & cmake --build --preset CPU --parallel $script:JOBS
+        & cmake --build --preset CPU  --config Release --parallel $script:JOBS
         if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
         & cmake --install build --component CPU --strip
         if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
@@ -101,7 +102,7 @@ function buildOllama() {
             # to avoid 2022 (or newer) from being used as the default
             & cmake --fresh --preset "CUDA 11" -G "Visual Studio 16 2019" --install-prefix $script:DIST_DIR
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
-            & cmake --build --preset "CUDA 11" --parallel $script:JOBS
+            & cmake --build --preset "CUDA 11"  --config Release --parallel $script:JOBS
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
             & cmake --install build --component "CUDA" --strip
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
@@ -112,7 +113,7 @@ function buildOllama() {
             write-host "Building CUDA v12 backend libraries"
             & cmake --fresh --preset "CUDA 12" --install-prefix $script:DIST_DIR
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
-            & cmake --build --preset "CUDA 12" --parallel $script:JOBS
+            & cmake --build --preset "CUDA 12"  --config Release --parallel $script:JOBS
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
             & cmake --install build --component "CUDA" --strip
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
@@ -131,7 +132,7 @@ function buildOllama() {
             $env:HIPCXX=""
             $env:HIP_PLATFORM=""
             $env:CMAKE_PREFIX_PATH=""
-            & cmake --build --preset "ROCm" --parallel $script:JOBS
+            & cmake --build --preset "ROCm"  --config Release --parallel $script:JOBS
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
             & cmake --install build --component "HIP" --strip
             if ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}
Repository: ggml-org/llama.cpp
Pull request: ggml : fix typo gmml


Changed files:
filename: ggml/CMakeLists.txt
patch: @@ -253,7 +253,7 @@ option(GGML_OPENCL_PROFILING                "ggml: use OpenCL profiling (increas
 option(GGML_OPENCL_EMBED_KERNELS            "ggml: embed kernels"                             ON)
 option(GGML_OPENCL_USE_ADRENO_KERNELS       "ggml: use optimized kernels for Adreno"          ON)
 set   (GGML_OPENCL_TARGET_VERSION "300" CACHE STRING
-                                            "gmml: OpenCL API version to target")
+                                            "ggml: OpenCL API version to target")
 
 option(GGML_HEXAGON                         "ggml: enable Hexagon backend"                    OFF)
 set(GGML_HEXAGON_FP32_QUANTIZE_GROUP_SIZE 128 CACHE STRING "ggml: quantize group size (32, 64, or 128)")

filename: ggml/src/ggml-cpu/ops.cpp
patch: @@ -9624,7 +9624,7 @@ void ggml_compute_forward_win_unpart(
     }
 }
 
-//gmml_compute_forward_unary
+//ggml_compute_forward_unary
 
 void ggml_compute_forward_unary(
         const ggml_compute_params * params,
Repository: vuejs/vue
Pull request: feat(ssr): Add 'nonce' option to context for ssr outlet script, fix #7479

re #7479

<!--
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)

- [ ] Bugfix
- [x] 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:
- [x] 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:**

Please let me know if anything is missing. I guess I should add documentation too, but I'm not sure where I can edit the SSR doc.

This resolves #7479.

Changed files:
filename: src/server/template-renderer/index.js
patch: @@ -198,8 +198,9 @@ export default class TemplateRenderer {
     const autoRemove = process.env.NODE_ENV === 'production'
       ? ';(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());'
       : ''
+    const nonceAttr = context.nonce ? ` nonce="${context.nonce}"` : ''
     return context[contextKey]
-      ? `<script>window.${windowKey}=${state}${autoRemove}</script>`
+      ? `<script${nonceAttr}>window.${windowKey}=${state}${autoRemove}</script>`
       : ''
   }
 

filename: test/ssr/ssr-template.spec.js
patch: @@ -387,5 +387,32 @@ describe('SSR: template option', () => {
         done()
       })
     })
+
+    it('renderToString + nonce', done => {
+      const interpolateTemplate = `<html><head><title>hello</title></head><body><!--vue-ssr-outlet--></body></html>`
+      const renderer = createRenderer({
+        template: interpolateTemplate
+      })
+
+      const context = {
+        state: { a: 1 },
+        nonce: '4AEemGb0xJptoIGFP3Nd'
+      }
+
+      renderer.renderToString(new Vue({
+        template: '<div>hi</div>'
+      }), context, (err, res) => {
+        expect(err).toBeNull()
+        expect(res).toContain(
+          `<html><head>` +
+          `<title>hello</title>` +
+          `</head><body>` +
+          `<div data-server-rendered="true">hi</div>` +
+          `<script nonce="4AEemGb0xJptoIGFP3Nd">window.__INITIAL_STATE__={"a":1}</script>` +
+          `</body></html>`
+        )
+        done()
+      })
+    })
   }
 })
Repository: nodejs/node
Pull request: meta: label v8 module PRs


Changed files:
filename: .github/label-pr-config.yml
patch: @@ -100,11 +100,13 @@ subSystemLabels:
   /^lib\/.*http2/: http2
   /^lib\/worker_threads.js$/: worker
   /^lib\/test.js$/: test_runner
+  /^lib\/v8.js$/: v8 module
   /^lib\/internal\/url\.js$/: whatwg-url
   /^lib\/internal\/modules\/esm/: esm
   /^lib\/internal\/modules/: module
   /^lib\/internal\/webstreams/: web streams
   /^lib\/internal\/test_runner/: test_runner
+  /^lib\/internal\/v8\//: v8 module
 
   # All other lib/ files map directly
   /^lib\/_(\w+)_\w+\.js?$/: $1  # e.g. _(stream)_wrap
Repository: ollama/ollama
Pull request: fix: pad tensor item if ge zero

this produces a nicer output since both positive and negative values produces the same width

Changed files:
filename: ml/backend.go
patch: @@ -5,6 +5,7 @@ import (
 	"encoding/binary"
 	"fmt"
 	"os"
+	"slices"
 	"strconv"
 	"strings"
 )
@@ -241,16 +242,17 @@ func dump[S ~[]E, E number](ctx Context, t Tensor, items int, fn func(E) string)
 	}
 
 	shape := t.Shape()
+	slices.Reverse(shape)
 
 	var sb strings.Builder
 	var f func([]int, int)
 	f = func(dims []int, stride int) {
 		prefix := strings.Repeat(" ", len(shape)-len(dims)+1)
-		fmt.Fprint(&sb, "[")
-		defer func() { fmt.Fprint(&sb, "]") }()
+		sb.WriteString("[")
+		defer func() { sb.WriteString("]") }()
 		for i := 0; i < dims[0]; i++ {
 			if i >= items && i < dims[0]-items {
-				fmt.Fprint(&sb, "..., ")
+				sb.WriteString("..., ")
 				// skip to next printable element
 				skip := dims[0] - 2*items
 				if len(dims) > 1 {
@@ -265,9 +267,14 @@ func dump[S ~[]E, E number](ctx Context, t Tensor, items int, fn func(E) string)
 					fmt.Fprint(&sb, ",", strings.Repeat("\n", len(dims)-1), prefix)
 				}
 			} else {
-				fmt.Fprint(&sb, fn(s[stride+i]))
+				text := fn(s[stride+i])
+				if len(text) > 0 && text[0] != '-' {
+					sb.WriteString(" ")
+				}
+
+				sb.WriteString(text)
 				if i < dims[0]-1 {
-					fmt.Fprint(&sb, ", ")
+					sb.WriteString(", ")
 				}
 			}
 		}
Repository: ggml-org/llama.cpp
Pull request: mtmd : rename mtmd_get_audio_bitrate to mtmd_get_audio_sample_rate

This commit renames the the function `mtmd_get_audio_bitrate` to `mtmd_get_audio_sample_rate` to better reflect its purpose.

The motivation for this is that the function currently returns the audio sample rate, not the bitrate (sample_rate × bit_depth × channels), and that is how it is used in the code as well.

This is a breaking change, but I believe mtmd is still in experimental/development phase so it might be alright to simply rename.

Changed files:
filename: tools/mtmd/mtmd-helper.cpp
patch: @@ -470,12 +470,12 @@ static bool decode_audio_from_buf(const unsigned char * buf_in, size_t len, int
 mtmd_bitmap * mtmd_helper_bitmap_init_from_buf(mtmd_context * ctx, const unsigned char * buf, size_t len) {
     if (audio_helpers::is_audio_file((const char *)buf, len)) {
         std::vector<float> pcmf32;
-        int bitrate = mtmd_get_audio_bitrate(ctx);
-        if (bitrate < 0) {
+        const int sample_rate = mtmd_get_audio_sample_rate(ctx);
+        if (sample_rate < 0) {
             LOG_ERR("This model does not support audio input\n");
             return nullptr;
         }
-        if (!audio_helpers::decode_audio_from_buf(buf, len, bitrate, pcmf32)) {
+        if (!audio_helpers::decode_audio_from_buf(buf, len, sample_rate, pcmf32)) {
             LOG_ERR("Unable to read WAV audio file from buffer\n");
             return nullptr;
         }

filename: tools/mtmd/mtmd.cpp
patch: @@ -912,7 +912,7 @@ bool mtmd_support_audio(mtmd_context * ctx) {
     return ctx->ctx_a != nullptr;
 }
 
-int mtmd_get_audio_bitrate(mtmd_context * ctx) {
+int mtmd_get_audio_sample_rate(mtmd_context * ctx) {
     if (!ctx->ctx_a) {
         return -1;
     }

filename: tools/mtmd/mtmd.h
patch: @@ -125,9 +125,9 @@ MTMD_API bool mtmd_support_vision(mtmd_context * ctx);
 // whether the current model supports audio input
 MTMD_API bool mtmd_support_audio(mtmd_context * ctx);
 
-// get audio bitrate in Hz, for example 16000 for Whisper
+// get audio sample rate in Hz, for example 16000 for Whisper
 // return -1 if audio is not supported
-MTMD_API int mtmd_get_audio_bitrate(mtmd_context * ctx);
+MTMD_API int mtmd_get_audio_sample_rate(mtmd_context * ctx);
 
 // mtmd_bitmap
 //
Repository: huggingface/transformers
Pull request: fix subfolder issue

# What does this PR do?


Changed files:
filename: src/transformers/processing_utils.py
patch: @@ -1520,7 +1520,9 @@ def _get_arguments_from_pretrained(cls, pretrained_model_name_or_path, processor
                 if "PixtralProcessor" in cls.__name__:
                     from .tokenization_utils_tokenizers import TokenizersBackend
 
-                    tokenizer = TokenizersBackend.from_pretrained(pretrained_model_name_or_path, **kwargs)
+                    tokenizer = TokenizersBackend.from_pretrained(
+                        pretrained_model_name_or_path, subfolder=subfolder, **kwargs
+                    )
                 else:
                     tokenizer = cls._load_tokenizer_from_pretrained(
                         sub_processor_type, pretrained_model_name_or_path, subfolder=subfolder, **kwargs

filename: tests/models/pixtral/test_processing_pixtral.py
patch: @@ -68,6 +68,11 @@ def test_image_token_filling(self):
         image_tokens = (inputs["input_ids"] == image_token_index).sum().item()
         self.assertEqual(expected_image_tokens, image_tokens)
 
+    def test_from_pretrained_subfolder_tokenizer(self):
+        processor = PixtralProcessor.from_pretrained("hf-internal-testing/tiny-flux2", subfolder="tokenizer")
+        self.assertIsInstance(processor, PixtralProcessor)
+        self.assertIsNotNone(processor.tokenizer)
+
     def test_processor_with_single_image(self):
         processor = self.processor_class.from_pretrained(self.tmpdirname)
         prompt_string = "USER: [IMG]\nWhat's the content of the image? ASSISTANT:"
Repository: nodejs/node
Pull request: build,tools: fix addon build deadlock on errors

While working on the PR #60916 I had often saw a deadlock during build of Node-API test addons.
The issue is that if there are too many errors and the `stderr` buffer becomes full, then the `process.wait()` is causing a deadlock.
This behavior was observed it on Windows. I did not check the other platforms.
The fix removes the use of the `process.wait()` to avoid the deadlock.

Changed files:
filename: tools/build_addons.py
patch: @@ -58,8 +58,8 @@ def node_gyp_rebuild(test_dir):
 
       # We buffer the output and print it out once the process is done in order
       # to avoid interleaved output from multiple builds running at once.
-      return_code = process.wait()
       stdout, stderr = process.communicate()
+      return_code = process.returncode
       if return_code != 0:
         print(f'Failed to build addon in {test_dir}:')
         if stdout:
Repository: vuejs/vue
Pull request: fix(runtime): DevTools recommendation shows for all browsers

Closes #8634

<!--
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
- [ ] 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)
- [ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] 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:**


Changed files:
filename: src/platforms/web/runtime/index.js
patch: @@ -4,7 +4,7 @@ import Vue from 'core/index'
 import config from 'core/config'
 import { extend, noop } from 'shared/util'
 import { mountComponent } from 'core/instance/lifecycle'
-import { devtools, inBrowser, isChrome } from 'core/util/index'
+import { devtools, inBrowser } from 'core/util/index'
 
 import {
   query,
@@ -51,8 +51,7 @@ if (inBrowser) {
         devtools.emit('init', Vue)
       } else if (
         process.env.NODE_ENV !== 'production' &&
-        process.env.NODE_ENV !== 'test' &&
-        isChrome
+        process.env.NODE_ENV !== 'test'
       ) {
         console[console.info ? 'info' : 'log'](
           'Download the Vue Devtools extension for a better development experience:\n' +
Repository: vercel/next.js
Pull request: Fix deployment test due to data-dpl-id attribute

Test broke after https://github.com/vercel/next.js/pull/88761

Changed files:
filename: test/e2e/favicon-short-circuit/favicon-short-circuit.test.ts
patch: @@ -28,9 +28,9 @@ describe('favicon-short-circuit', () => {
       expect(res.status).toBe(404)
       expect(res.headers.get('content-type')).toBe('text/html; charset=utf-8')
 
-      // Expect we got the right body.
+      // Expect we got HTML as text (with a non-empty body unlike in dev) and also not binary data
       const html = await res.text()
-      expect(html).toContain('<html>')
+      expect(html).toContain('<html')
     })
   }
 })
Repository: ollama/ollama
Pull request: Better WantedBy declaration

The problem with default.target is that it always points to the target that is currently started. So if you boot into single user mode or the rescue mode still Ollama tries to start.

I noticed this because either tried (and failed) to start all the time during a system update, where Ollama definitely is not wanted.

Changed files:
filename: docs/linux.md
patch: @@ -75,7 +75,7 @@ RestartSec=3
 Environment="PATH=$PATH"
 
 [Install]
-WantedBy=default.target
+WantedBy=multi-user.target
 ```
 
 Then start the service:
Repository: facebook/react
Pull request: Stringify context as SomeContext instead of SomeContext.Provider


This matches the change in React 19 to use `<SomeContext>` as the preferred way to provide a context.


Changed files:
filename: packages/react-reconciler/src/__tests__/ReactLazy-test.internal.js
patch: @@ -941,7 +941,7 @@ describe('ReactLazy', () => {
       </Suspense>,
     );
     await waitForThrow(
-      'Element type is invalid. Received a promise that resolves to: Context.Provider. ' +
+      'Element type is invalid. Received a promise that resolves to: Context. ' +
         'Lazy element type must resolve to a class or function.',
     );
   });

filename: packages/react-reconciler/src/getComponentNameFromFiber.js
patch: @@ -94,7 +94,7 @@ export default function getComponentNameFromFiber(fiber: Fiber): string | null {
       return getContextName(consumer._context) + '.Consumer';
     case ContextProvider:
       const context: ReactContext<any> = (type: any);
-      return getContextName(context) + '.Provider';
+      return getContextName(context);
     case DehydratedFragment:
       return 'DehydratedFragment';
     case ForwardRef:

filename: packages/shared/getComponentNameFromType.js
patch: @@ -106,7 +106,7 @@ export default function getComponentNameFromType(type: mixed): string | null {
         return 'Portal';
       case REACT_CONTEXT_TYPE:
         const context: ReactContext<any> = (type: any);
-        return getContextName(context) + '.Provider';
+        return getContextName(context);
       case REACT_CONSUMER_TYPE:
         const consumer: ReactConsumerType<any> = (type: any);
         return getContextName(consumer._context) + '.Consumer';