helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: DevTools supports ENV-injected version for better internal bug reports

Internal version numbers use a 4-digit format (e.g. 4.20.2.0) but the version shown in the settings dialog is the 3-digit format, plus a Git commit hash (e.g. 4.20.2-c213030b4). This means we have to map between the two when internal users report DevTools bugs, which can be a little confusing.

Internally, the 4-digit version is generated based on the current (in Git) 3-digit version that's specified in the package.json. If we do more than one internal release between external releases, we increment (e.g. 4.20.2 becomes 4.20.2.0 then 4.20.2.1 etc).

This diff adds support for DevTools to display the 4-digit version number in the Settings dialog so that internal bug reports were more straight forward.

---

For example, this is a build showing the new param:
```sh
DEVTOOLS_VERSION=4.20.2.2 yarn build:chrome:local && yarn test:chrome
```
<img width="744" alt="Screen Shot 2021-10-27 at 12 01 36 PM" src="https://user-images.githubusercontent.com/29597/139104438-1824a697-a746-4307-9fb2-4f1937613d45.png">

And here is a test showing the previous behavior remains unchanged:
```sh
yarn build:chrome:local && yarn test:chrome
```
<img width="742" alt="Screen Shot 2021-10-27 at 12 02 29 PM" src="https://user-images.githubusercontent.com/29597/139104541-fb3db1a0-1165-42a8-b8ee-3f2cebbf3dcb.png">


Changed files:
filename: packages/react-devtools-extensions/utils.js
patch: @@ -30,12 +30,14 @@ function getGitCommit() {
   }
 }
 
-function getVersionString() {
-  const packageVersion = JSON.parse(
-    readFileSync(
-      resolve(__dirname, '..', 'react-devtools-core', './package.json'),
-    ),
-  ).version;
+function getVersionString(packageVersion = null) {
+  if (packageVersion == null) {
+    packageVersion = JSON.parse(
+      readFileSync(
+        resolve(__dirname, '..', 'react-devtools-core', './package.json'),
+      ),
+    ).version;
+  }
 
   const commit = getGitCommit();
 

filename: packages/react-devtools-extensions/webpack.backend.js
patch: @@ -30,7 +30,7 @@ const builtModulesDir = resolve(
 
 const __DEV__ = NODE_ENV === 'development';
 
-const DEVTOOLS_VERSION = getVersionString();
+const DEVTOOLS_VERSION = getVersionString(process.env.DEVTOOLS_VERSION);
 
 const featureFlagTarget = process.env.FEATURE_FLAG_TARGET || 'extension-oss';
 

filename: packages/react-devtools-extensions/webpack.config.js
patch: @@ -30,7 +30,7 @@ const builtModulesDir = resolve(
 
 const __DEV__ = NODE_ENV === 'development';
 
-const DEVTOOLS_VERSION = getVersionString();
+const DEVTOOLS_VERSION = getVersionString(process.env.DEVTOOLS_VERSION);
 
 const LOGGING_URL = process.env.LOGGING_URL || null;
Repository: denoland/deno
Pull request: ci: update release steps related to dotcom


Changed files:
filename: tools/release/release_doc_template.md
patch: @@ -125,8 +125,9 @@ verify on GitHub that everything looks correct.
 
 - [ ] Publish the release on Github
 
-- [ ] Update https://github.com/denoland/dotcom/blob/main/versions.json and open
-      a PR.
+- [ ] Run
+      https://github.com/denoland/dotcom/actions/workflows/update_version.yml to
+      automatically open a PR.
   - [ ] Merge the PR.
 
 - [ ] Run
@@ -142,23 +143,6 @@ verify on GitHub that everything looks correct.
       automatically opened that forwards the release commit back to main. If so,
       merge it. If not and it failed, please manually create one.
 
-## Updating `deno.land/api` symbols
-
-This should occur after the Deno CLI & std are fully published, as the build
-script generates the symbols based on the latest tags.
-
-- [ ] Run the `release CLI` workflow in the apiland_scripts repo on the main
-      branch:
-      https://github.com/denoland/apiland_scripts/actions/workflows/release_cli.yml
-  - [ ] Verify the workflow ran successfully.
-
-  <details>
-     <summary>Failure Steps</summary>
-
-  1. Clone `deno/apiland_scripts`.
-  2. Execute `deno task release:cli`.
-  </details>
-
 ## Updating `deno_docker`
 
 - [ ] Run the version bump workflow:
Repository: ggml-org/llama.cpp
Pull request: opencl: fix incorrect local_size index in profiling log

This PR fixes a logging issue in OpenCL profiling where the local_size was printed incorrectly.

Previously, the profiling output printed local_size[2] twice and missed local_size[1]. This resulted in wrong log entries like:

```
64x1x1  → 64x1x1  → 64x1x1  → 2x1x1  → ...
```

This fix ensures correct output of all three dimensions:
local_size[0] x local_size[1] x local_size[2]

Changed files:
filename: ggml/src/ggml-opencl/ggml-opencl.cpp
patch: @@ -1521,7 +1521,7 @@ static void ggml_cl2_free(void) {
             info.cmd_complete_duration_ns/1.e6f,
             info.cmd_total_duration_ns/1.e6f,
             info.global_size[0], info.global_size[1], info.global_size[2],
-            info.local_size[0], info.local_size[2], info.local_size[2],
+            info.local_size[0], info.local_size[1], info.local_size[2],
             info.output_size[0], info.output_size[1], info.output_size[2], info.output_size[3]);
     }
     fclose(fperf);
Repository: denoland/deno
Pull request: feat(workspace): support object config

This adds object config for the workspace config:

```json
{
  "workspace": {
    "members": ["./member-1", "./member-2"]
  }
}
```

This is a more verbose version of `"workspace": ["./member-1", "./member-2"]`. Although we don't need it at the moment, it makes the naming of `"workspace"` more clear and leaves the object open for more config in the future.

Closes https://github.com/denoland/deno/issues/24456

Changed files:
filename: Cargo.lock
patch: @@ -1307,9 +1307,9 @@ dependencies = [
 
 [[package]]
 name = "deno_config"
-version = "0.20.2"
+version = "0.20.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "acd69b394ee336e02ac28cf412a543f9e83d79c8e6584a530940712fa6c01885"
+checksum = "96119386ea33783e2a35a3f0c5a960f88edda53f34df9594c9bb8017dcae2367"
 dependencies = [
  "anyhow",
  "deno_semver",

filename: Cargo.toml
patch: @@ -101,7 +101,7 @@ console_static_text = "=0.8.1"
 data-encoding = "2.3.3"
 data-url = "=0.3.0"
 deno_cache_dir = "=0.10.0"
-deno_config = { version = "=0.20.2", default-features = false }
+deno_config = { version = "=0.20.4", default-features = false }
 dlopen2 = "0.6.1"
 ecb = "=0.1.2"
 elliptic-curve = { version = "0.13.4", features = ["alloc", "arithmetic", "ecdh", "std", "pem"] }

filename: cli/lsp/config.rs
patch: @@ -1534,11 +1534,12 @@ impl ConfigData {
 
     let workspace = config_file
       .as_ref()
-      .and_then(|c| c.json.workspace.as_ref().map(|w| (c, w)));
+      .and_then(|c| c.to_workspace_config().ok().flatten().map(|w| (c, w)));
     let is_workspace_root = workspace.is_some();
     let workspace_members = if let Some((config, workspace)) = workspace {
       Arc::new(
         workspace
+          .members
           .iter()
           .flat_map(|p| {
             let dir_specifier = config.specifier.join(p).ok()?;

filename: cli/schemas/config-file.v1.json
patch: @@ -605,11 +605,27 @@
       ]
     },
     "workspace": {
-      "type": "array",
-      "items": {
-        "type": "string"
-      },
-      "description": "The members of this workspace."
+      "oneOf": [
+        {
+          "type": "array",
+          "items": {
+            "type": "string"
+          },
+          "description": "The members of this workspace."
+        },
+        {
+          "type": "object",
+          "properties": {
+            "members": {
+              "type": "array",
+              "items": {
+                "type": "string"
+              },
+              "description": "The members of this workspace."
+            }
+          }
+        }
+      ]
     }
   }
 }
Repository: facebook/react
Pull request: Enable 'Reload and Start Profiling' for Microsoft Edge

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.

  Before submitting a pull request, please make sure the following is done:

  1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`.
  2. Run `yarn` in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
  5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`.
  6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
  7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
  8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

  Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

<!--
 Explain the **motivation** for making this change. What existing problem does the pull request solve?
-->

The 'Reload and Start Profiling' button was disabled for Microsoft Edge, as noted in issue #22630. This change enables it instead.

## How did you test this change?

<!--
  Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface.
  How exactly did you verify that your PR solves the issue you wanted to solve?
  If you leave this empty, your PR will very likely be closed.
-->

Functionality was tested by using the already established function in Chrome and comparing the results with the newly enabled Edge version, which seems to indicate that the Edge version works just the same way. In addition all test were run and passed.



Changed files:
filename: packages/react-devtools-extensions/src/main.js
patch: @@ -33,6 +33,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
   'React::DevTools::supportsProfiling';
 
 const isChrome = getBrowserName() === 'Chrome';
+const isEdge = getBrowserName() === 'Edge';
 
 let panelCreated = false;
 
@@ -203,7 +204,7 @@ function createPanelIfReactLoaded() {
 
           store = new Store(bridge, {
             isProfiling,
-            supportsReloadAndProfile: isChrome,
+            supportsReloadAndProfile: isChrome || isEdge,
             supportsProfiling,
             // At this time, the scheduling profiler can only parse Chrome performance profiles.
             supportsSchedulingProfiler: isChrome,
Repository: facebook/react
Pull request: [Fizz/Flight] Fix strings are passed to destination

This ensures that all parts are converted to chunks before writing to the destination.

Changed files:
filename: packages/react-dom/src/server/ReactDOMServerFormatConfig.js
patch: @@ -471,7 +471,7 @@ function pushAttribute(
             attributeSeparator,
             attributeNameChunk,
             attributeAssign,
-            escapeTextForBrowser(value),
+            stringToChunk(escapeTextForBrowser(value)),
             attributeEnd,
           );
         }
@@ -482,7 +482,7 @@ function pushAttribute(
             attributeSeparator,
             attributeNameChunk,
             attributeAssign,
-            escapeTextForBrowser(value),
+            stringToChunk(escapeTextForBrowser(value)),
             attributeEnd,
           );
         }
@@ -493,7 +493,7 @@ function pushAttribute(
             attributeSeparator,
             attributeNameChunk,
             attributeAssign,
-            escapeTextForBrowser(value),
+            stringToChunk(escapeTextForBrowser(value)),
             attributeEnd,
           );
         }
@@ -510,7 +510,7 @@ function pushAttribute(
           attributeSeparator,
           attributeNameChunk,
           attributeAssign,
-          escapeTextForBrowser(value),
+          stringToChunk(escapeTextForBrowser(value)),
           attributeEnd,
         );
     }
@@ -532,7 +532,7 @@ function pushAttribute(
       attributeSeparator,
       stringToChunk(name),
       attributeAssign,
-      escapeTextForBrowser(value),
+      stringToChunk(escapeTextForBrowser(value)),
       attributeEnd,
     );
   }
@@ -1146,7 +1146,7 @@ function pushStartCustomElement(
               attributeSeparator,
               stringToChunk(propKey),
               attributeAssign,
-              escapeTextForBrowser(propValue),
+              stringToChunk(escapeTextForBrowser(propValue)),
               attributeEnd,
             );
           }
Repository: nodejs/node
Pull request: doc: consolidate history table of CustomEvent

Refs: #55733
Fixes: #55733

This PR fixes inconsistencies in the `CustomEvent` docs by consolidating the history table in `globals` and `events`

Changed files:
filename: doc/api/events.md
patch: @@ -2427,11 +2427,17 @@ added:
   - v18.7.0
   - v16.17.0
 changes:
+  - version: v23.0.0
+    pr-url: https://github.com/nodejs/node/pull/52723
+    description: No longer experimental.
   - version:
     - v22.1.0
     - v20.13.0
     pr-url: https://github.com/nodejs/node/pull/52618
     description: CustomEvent is now stable.
+  - version: v19.0.0
+    pr-url: https://github.com/nodejs/node/pull/44860
+    description: No longer behind `--experimental-global-customevent` CLI flag.
 -->
 
 > Stability: 2 - Stable

filename: doc/api/globals.md
patch: @@ -438,6 +438,11 @@ changes:
   - version: v23.0.0
     pr-url: https://github.com/nodejs/node/pull/52723
     description: No longer experimental.
+  - version:
+    - v22.1.0
+    - v20.13.0
+    pr-url: https://github.com/nodejs/node/pull/52618
+    description: CustomEvent is now stable.
   - version: v19.0.0
     pr-url: https://github.com/nodejs/node/pull/44860
     description: No longer behind `--experimental-global-customevent` CLI flag.
Repository: denoland/deno
Pull request: fix: restore reference to dom.extras in lib.dom.d.ts

This was changed by mistake in #24326.

Closes https://github.com/denoland/deno/issues/24459.

Changed files:
filename: cli/tsc/dts/lib.dom.d.ts
patch: @@ -15,6 +15,7 @@ and limitations under the License.
 
 
 /// <reference no-default-lib="true"/>
+/// <reference lib="dom.extras" />
 
 /////////////////////////////
 /// Window APIs

filename: tests/specs/run/dom_extras_dts/__test__.jsonc
patch: @@ -0,0 +1,4 @@
+{
+  "args": "run --check dom_extras_dts.ts",
+  "output": "dom_extras_dts.out"
+}

filename: tests/specs/run/dom_extras_dts/deno.json
patch: @@ -0,0 +1,8 @@
+{
+  "compilerOptions": {
+    "lib": [
+      "deno.ns",
+      "dom"
+    ]
+  }
+}

filename: tests/specs/run/dom_extras_dts/dom_extras_dts.out
patch: @@ -0,0 +1,3 @@
+Check [WILDCARD]dom_extras_dts.ts
+URLPattern[WILDCARD]
+function

filename: tests/specs/run/dom_extras_dts/dom_extras_dts.ts
patch: @@ -0,0 +1,2 @@
+console.log(new URLPattern({ pathname: "/:foo/:bar/c" }));
+console.log(typeof Deno.serve);
Repository: huggingface/transformers
Pull request: enable 2 types of case on XPU

enable 2 types of case on XPU:
1. test_resize_tokens_embeddings_with_deepspeed_multi_gpu
2. test_resize_embeddings_untied_with_deepspeed_multi_gpu

Changed files:
filename: tests/test_modeling_common.py
patch: @@ -1978,7 +1978,7 @@ def test_resize_tokens_embeddings_with_deepspeed(self):
             self.test_resize_tokens_embeddings()
 
     @require_deepspeed
-    @require_torch_multi_gpu
+    @require_torch_multi_accelerator
     def test_resize_tokens_embeddings_with_deepspeed_multi_gpu(self):
         ds_config = {
             "zero_optimization": {
@@ -2084,7 +2084,7 @@ def test_resize_embeddings_untied_with_deepspeed(self):
             self.test_resize_embeddings_untied()
 
     @require_deepspeed
-    @require_torch_multi_gpu
+    @require_torch_multi_accelerator
     def test_resize_embeddings_untied_with_deepspeed_multi_gpu(self):
         ds_config = {
             "zero_optimization": {
Repository: denoland/deno
Pull request: fix(lsp): do sloppy resolution for node-to-node imports in byonm

Fixes #24457.

I believe this was caused by removing these lines: https://github.com/denoland/deno/commit/88529f0b47667435689c6ef4f81af80cead7d557#diff-5edc220fbc0fc6aebb443d977875a955bcb1304beb56fefbebae42925824d49aL1111-L1121, the other call site this was being deduped against was being skipped in the byonm case.

Changed files:
filename: cli/resolver.rs
patch: @@ -682,7 +682,9 @@ impl Resolver for CliGraphResolver {
           }
         }
       }
-    } else if referrer.scheme() == "file" {
+    }
+
+    if referrer.scheme() == "file" {
       if let Some(node_resolver) = &self.node_resolver {
         let node_result = node_resolver.resolve_if_in_npm_package(
           specifier,

filename: tests/integration/lsp_tests.rs
patch: @@ -14275,6 +14275,46 @@ fn sloppy_imports_not_enabled() {
   client.shutdown();
 }
 
+// Regression test for https://github.com/denoland/deno/issues/24457.
+#[test]
+fn lsp_byonm_js_import_resolves_to_dts() {
+  let context = TestContextBuilder::new()
+    .use_http_server()
+    .use_temp_cwd()
+    .add_npm_env_vars()
+    .build();
+  let temp_dir = context.temp_dir();
+  temp_dir.write(
+    "deno.json",
+    json!({
+      "unstable": ["byonm"],
+    })
+    .to_string(),
+  );
+  temp_dir.write(
+    "package.json",
+    json!({
+      "dependencies": {
+        "postcss": "*",
+      },
+    })
+    .to_string(),
+  );
+  context.run_npm("install");
+  let mut client = context.new_lsp_command().build();
+  client.initialize_default();
+  let diagnostics = client.did_open(json!({
+    "textDocument": {
+      "uri": temp_dir.uri().join("node_modules/postcss/lib/comment.d.ts").unwrap(),
+      "languageId": "typescript",
+      "version": 1,
+      "text": temp_dir.path().join("node_modules/postcss/lib/comment.d.ts").read_to_string(),
+    }
+  }));
+  assert_eq!(json!(diagnostics.all()), json!([]));
+  client.shutdown();
+}
+
 #[test]
 fn decorators_tc39() {
   let context = TestContextBuilder::new().use_temp_cwd().build();
Repository: nodejs/node
Pull request: tools: add WPT updater for specific subsystems

a WPT updater that specifically targets the url subsystem for more controlled and focused updates.

Changed files:
filename: .github/workflows/update-wpt.yml
patch: @@ -0,0 +1,75 @@
+name: WPT update
+
+on:
+  schedule:
+    # Run once a week at 12:00 AM UTC on Sunday.
+    - cron: 0 0 * * *
+  workflow_dispatch:
+    inputs:
+      subsystems:
+        description: Subsystem to run the update for
+        required: false
+        default: '["url", "WebCryptoAPI"]'
+
+permissions:
+  contents: read
+
+env:
+  NODE_VERSION: lts/*
+
+jobs:
+  wpt-subsystem-update:
+    if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        subsystem: ${{ fromJSON(github.event.inputs.subsystems || '["url", "WebCryptoAPI"]') }}
+
+    steps:
+      - uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc  # v4.1.7
+        with:
+          persist-credentials: false
+
+      - name: Install Node.js
+        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b  # v4.0.3
+        with:
+          node-version: ${{ env.NODE_VERSION }}
+
+      - name: Install @node-core/utils
+        run: npm install -g @node-core/utils
+
+      - name: Setup @node-core/utils
+        run: |
+          ncu-config set username "$USERNAME"
+          ncu-config set token "$GH_TOKEN"
+          ncu-config set jenkins_token "$JENKINS_TOKEN"
+          ncu-config set owner "${{ github.repository_owner }}"
+          ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)"
+        env:
+          USERNAME: ${{ secrets.JENKINS_USER }}
+          GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
+          JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}
+
+      - name: Update WPT for subsystem ${{ matrix.subsystem }}
+        run: |
+          git node wpt ${{ matrix.subsystem }}
+
+      - name: Calculate new version for WPT using jq
+        run: |
+          new_version=$(jq -r '.${{ matrix.subsystem }}.commit' test/fixtures/wpt/versions.json)
+          echo "new_version=$new_version" >> $GITHUB_ENV
+
+      - name: Open or update PR for the subsystem update
+        uses: gr2m/create-or-update-pull-request-action@86ec1766034c8173518f61d2075cc2a173fb8c97
+        with:
+          branch: actions/update-wpt-${{ matrix.subsystem }}
+          author: Node.js GitHub Bot <github-bot@iojs.org>
+          title: 'test: update WPT for ${{ matrix.subsystem }} to ${{ env.new_version }}'
+          commit-message: 'test: update WPT for ${{ matrix.subsystem }} to ${{ env.new_version }}'
+          labels: test
+          update-pull-request-title-and-body: true
+          body: |
+            This is an automated update of the WPT for ${{ matrix.subsystem }} to ${{ env.new_version }}.
+        env:
+          GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
Repository: huggingface/transformers
Pull request: fix test device spec relative path importing issue

**Symptom**
when run unit test `pytest -rA tests/deepspeed/test_deepspeed.py::TestDeepSpeedWithLauncher::test_clm_from_config_zero3_fp16` on XPU with `spec_xpu.py` by following this [doc](https://huggingface.co/docs/transformers/en/testing). Error with below log

> stderr: Traceback (most recent call last):
> stderr:   File "/.tests/transformers/examples/pytorch/language-modeling/run_clm.py", line 51, in <module>
> stderr:     from transformers.testing_utils import CaptureLogger
> stderr:   File "/.tests/transformers/src/transformers/testing_utils.py", line 2869, in <module>
> stderr:     device_spec_module = importlib.import_module(import_name)
> stderr:   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
> stderr:     return _bootstrap._gcd_import(name[level:], package, level)
> stderr: ModuleNotFoundError: No module named 'spec_xpu' 

**Root Cause**
since `export TRANSFORMERS_TEST_DEVICE_SPEC="spec_xpu.py"` cannot adding absolute path by testing design, there is a implication that pytest cases are running in transformers root directory. While in this deepspeed case, one process will be launched by deepspeed in `tests/deepspeed` directory which break this assumption, so it cannot find `spec_xpu` module in its current folder(tests/deepspeed) or in PYTHONPATH, then the error arose.

**My Fix**
append `device_spec_dir` to `sys.path`.


Changed files:
filename: src/transformers/testing_utils.py
patch: @@ -3005,6 +3005,8 @@ def backend_device_count(device: str):
 
         # Try to strip extension for later import – also verifies we are importing a
         # python file.
+        device_spec_dir, _ = os.path.split(os.path.realpath(device_spec_path))
+        sys.path.append(device_spec_dir)
         try:
             import_name = device_spec_path[: device_spec_path.index(".py")]
         except ValueError as e:
Repository: ggml-org/llama.cpp
Pull request: rpc : update README for cache usage

ref: #10095


Changed files:
filename: examples/rpc/README.md
patch: @@ -72,3 +72,14 @@ $ bin/llama-cli -m ../models/tinyllama-1b/ggml-model-f16.gguf -p "Hello, my name
 
 This way you can offload model layers to both local and remote devices.
 
+### Local cache
+
+The RPC server can use a local cache to store large tensors and avoid transferring them over the network.
+This can speed up model loading significantly, especially when using large models.
+To enable the cache, use the `-c` option:
+
+```bash
+$ bin/rpc-server -c
+```
+
+By default, the cache is stored in the `$HOME/.cache/llama.cpp/rpc` directory and can be controlled via the `LLAMA_CACHE` environment variable.