helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: doc: update `require(ESM)` history and stability status

<!--
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/modules.md
patch: @@ -171,15 +171,20 @@ relative, and based on the real path of the files making the calls to
 ## Loading ECMAScript modules using `require()`
 
 <!-- YAML
+added:
+  - v22.0.0
+  - v20.17.0
 changes:
   - version: REPLACEME
     pr-url: https://github.com/nodejs/node/pull/55085
-    description: require() now supports loading synchronous ES modules by default.
+    description: This feature is no longer behind the `--experimental-require-module` CLI flag.
   - version: REPLACEME
     pr-url: https://github.com/nodejs/node/pull/54563
     description: Support `'module.exports'` interop export in `require(esm)`.
 -->
 
+> Stability: 1.2 - Release candidate
+
 The `.mjs` extension is reserved for [ECMAScript Modules][].
 See [Determining module system][] section for more info
 regarding which files are parsed as ECMAScript modules.
Repository: ggml-org/llama.cpp
Pull request: sync : ggml


Changed files:
filename: ggml/src/ggml-cuda/convert.cu
patch: @@ -579,13 +579,7 @@ static __global__ void convert_unary(const void * __restrict__ vx, dst_t * __res
 
     const src_t * x = (const src_t *) vx;
 
-    if constexpr (std::is_same_v<src_t, nv_bfloat16>) {
-        y[i] = __bfloat162float(x[i]);
-    } else if constexpr (std::is_same_v<dst_t, nv_bfloat16> && std::is_same_v<src_t, half>) {
-        y[i] = (float)x[i];
-    } else {
-        y[i] = x[i];
-    }
+    y[i] = float(x[i]);
 }
 
 template <typename src_t, typename dst_t>

filename: ggml/src/ggml-cuda/vendors/hip.h
patch: @@ -20,6 +20,7 @@
 #define CUBLAS_STATUS_SUCCESS HIPBLAS_STATUS_SUCCESS
 #define CUBLAS_TF32_TENSOR_OP_MATH 0
 #define CUDA_R_16F  HIPBLAS_R_16F
+#define CUDA_R_16BF HIPBLAS_R_16B
 #define CUDA_R_32F  HIPBLAS_R_32F
 #define CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED hipDeviceAttributeVirtualMemoryManagementSupported
 #define CU_MEM_ALLOC_GRANULARITY_RECOMMENDED hipMemAllocationGranularityRecommended

filename: ggml/src/ggml-cuda/vendors/musa.h
patch: @@ -15,6 +15,7 @@
 #define CUBLAS_STATUS_SUCCESS MUBLAS_STATUS_SUCCESS
 #define CUBLAS_TF32_TENSOR_OP_MATH MUBLAS_MATH_MODE_DEFAULT
 #define CUDA_R_16F  MUSA_R_16F
+#define CUDA_R_16BF MUSA_R_16BF
 #define CUDA_R_32F  MUSA_R_32F
 #define cublasComputeType_t cudaDataType_t
 #define cublasCreate mublasCreate
Repository: denoland/deno
Pull request: fix: unblock fsevents native module

node-api is fully supported now.

Changed files:
filename: ext/node/polyfills/01_require.js
patch: @@ -1101,9 +1101,6 @@ Module._extensions[".json"] = function (module, filename) {
 
 // Native extension for .node
 Module._extensions[".node"] = function (module, filename) {
-  if (filename.endsWith("fsevents.node")) {
-    throw new Error("Using fsevents module is currently not supported");
-  }
   module.exports = op_napi_open(
     filename,
     globalThis,
Repository: nodejs/node
Pull request: doc: move history entry to class description

Move the history entry for the `TextDecoder` class into the class description itself instead of its constructor.

Refs: https://github.com/nodejs/node/issues/55938

<!--
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/util.md
patch: @@ -1998,6 +1998,10 @@ The full list of formats can be found in [modifiers][].
 
 <!-- YAML
 added: v8.3.0
+changes:
+  - version: v11.0.0
+    pr-url: https://github.com/nodejs/node/pull/22281
+    description: The class is now available on the global object.
 -->
 
 An implementation of the [WHATWG Encoding Standard][] `TextDecoder` API.
@@ -2076,14 +2080,6 @@ is not supported.
 
 ### `new TextDecoder([encoding[, options]])`
 
-<!-- YAML
-added: v8.3.0
-changes:
-  - version: v11.0.0
-    pr-url: https://github.com/nodejs/node/pull/22281
-    description: The class is now available on the global object.
--->
-
 * `encoding` {string} Identifies the `encoding` that this `TextDecoder` instance
   supports. **Default:** `'utf-8'`.
 * `options` {Object}
Repository: facebook/react
Pull request: Add Scheduling Profiler GK link to Timeline UI for FB build

This is a constant source of confusion for FB engineers trying to figure out why Chrome profiling data does not have any React marks.

Internal Facebook build will now show the following additional line:
<img width="524" alt="Screen Shot 2021-11-09 at 3 23 21 PM" src="https://user-images.githubusercontent.com/29597/140998934-7fb9087c-3716-4a59-bd85-004d4965c0d7.png">

Changed files:
filename: packages/react-devtools-timeline/src/Timeline.js
patch: @@ -10,6 +10,7 @@
 import type {DataResource} from './createDataResourceFromImportedFile';
 import type {ViewState} from './types';
 
+import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
 import * as React from 'react';
 import {
   Suspense,
@@ -79,6 +80,19 @@ export function Timeline(_: {||}) {
 
 const Welcome = ({onFileSelect}: {|onFileSelect: (file: File) => void|}) => (
   <ol className={styles.WelcomeInstructionsList}>
+    {isInternalFacebookBuild && (
+      <li className={styles.WelcomeInstructionsListItem}>
+        Enable the
+        <a
+          className={styles.WelcomeInstructionsListItemLink}
+          href="https://fburl.com/react-devtools-scheduling-profiler-gk"
+          rel="noopener noreferrer"
+          target="_blank">
+          <code>react_enable_scheduling_profiler</code> GK
+        </a>
+        .
+      </li>
+    )}
     <li className={styles.WelcomeInstructionsListItem}>
       Open a website that's built with the
       <a
Repository: ggml-org/llama.cpp
Pull request: metal : fix floating-point range of attention scores in FA kernels

cont #12688 
ref https://github.com/ggml-org/llama.cpp/issues/12946#issuecomment-2826370070

Models such as GLM 4 seem to require wider floating-point range for the attention.

Changed files:
filename: ggml/src/ggml-metal/ggml-metal.metal
patch: @@ -3192,7 +3192,7 @@ kernel void kernel_flash_attn_ext(
 
     {
         float S[Q] = { [0 ... Q-1] = 0.0f };
-        float M[Q] = { [0 ... Q-1] = -__FLT16_MAX__/2 };
+        float M[Q] = { [0 ... Q-1] = -__FLT_MAX__/2 };
 
         // thread indices inside the simdgroup
         // TODO: see if we can utilize quad-group functions for better performance
@@ -3452,7 +3452,7 @@ kernel void kernel_flash_attn_ext(
     // reduce the warps sequentially
     for (ushort sg = 1; sg < nsg; ++sg) {
         float S = { 0.0f };
-        float M = { -__FLT16_MAX__/2 };
+        float M = { -__FLT_MAX__/2 };
 
         threadgroup_barrier(mem_flags::mem_threadgroup);
 
@@ -3699,7 +3699,7 @@ kernel void kernel_flash_attn_ext_vec(
 
     {
         float S = 0.0f;
-        float M = -__FLT16_MAX__/2;
+        float M = -__FLT_MAX__/2;
 
         // thread indices inside the simdgroup
         const short tx = tiisg%NL;
Repository: electron/electron
Pull request: build: free up macos disk space as soon as possible

Backport of #43533

See that PR for details.


Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->none


Changed files:
filename: .github/workflows/pipeline-segment-electron-build.yml
patch: @@ -82,6 +82,12 @@ jobs:
       with:
         path: src/electron
         fetch-depth: 0
+    - name: Free up space (macOS)
+      if: ${{ inputs.target-platform == 'macos' }}
+      uses: ./src/electron/.github/actions/free-space-macos
+    - name: Check disk space after freeing up space
+      if: ${{ inputs.target-platform == 'macos' }}
+      run: df -h
     - name: Setup Node.js/npm
       if: ${{ inputs.target-platform == 'macos' }}
       uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b

filename: .github/workflows/pipeline-segment-electron-gn-check.yml
patch: @@ -54,6 +54,23 @@ jobs:
       with:
         path: src/electron
         fetch-depth: 0
+    - name: Cleanup disk space on macOS
+      if: ${{ inputs.target-platform == 'macos' }}
+      shell: bash
+      run: |   
+        sudo mkdir -p $TMPDIR/del-target
+
+        tmpify() {
+          if [ -d "$1" ]; then
+            sudo mv "$1" $TMPDIR/del-target/$(echo $1|shasum -a 256|head -n1|cut -d " " -f1)
+          fi
+        }   
+        tmpify /Library/Developer/CoreSimulator
+        tmpify ~/Library/Developer/CoreSimulator
+        sudo rm -rf $TMPDIR/del-target
+    - name: Check disk space after freeing up space
+      if: ${{ inputs.target-platform == 'macos' }}
+      run: df -h        
     - name: Install Build Tools
       uses: ./src/electron/.github/actions/install-build-tools
     - name: Init Build Tools
Repository: facebook/react
Pull request: fix(devtools): accept json file in import fileinput

<!--
  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
Loading profile can accept all files which breaks the functionality of parsing the data since devtools only accept `.json` file.
![devtools-bug-accept-json](https://user-images.githubusercontent.com/22376783/140655771-08c9393b-5ecd-431d-bff0-c813cd37a2aa.gif)

<!--
 Explain the **motivation** for making this change. What existing problem does the pull request solve?
-->

## How did you test this change?
With react inline app.
![devtools-accept-json](https://user-images.githubusercontent.com/22376783/140655782-9b8bd5c7-d6e0-4320-ad91-1e3fbf9ad858.gif)

<!--
  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.
-->


Changed files:
filename: packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js
patch: @@ -122,6 +122,7 @@ export default function ProfilingImportExportButtons() {
         ref={inputRef}
         className={styles.Input}
         type="file"
+        accept=".json"
         onChange={
           selectedTabID === 'timeline'
             ? importTimelineDataWrapper

filename: packages/react-devtools-timeline/src/ImportButton.js
patch: @@ -46,6 +46,7 @@ export default function ImportButton({children = null, onFileSelect}: Props) {
         ref={inputRef}
         className={styles.Input}
         type="file"
+        accept=".json"
         onChange={handleFiles}
         tabIndex={-1}
       />
Repository: denoland/deno
Pull request: fix(ext/node): use primordials in `ext/node/polyfills/_fs/_fs_dir.ts`

Towards #24236

Changed files:
filename: ext/node/polyfills/_fs/_fs_dir.ts
patch: @@ -1,13 +1,22 @@
 // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
 
-// TODO(petamoriken): enable prefer-primordials for node polyfills
-// deno-lint-ignore-file prefer-primordials
-
+import { primordials } from "ext:core/mod.js";
 import Dirent from "ext:deno_node/_fs/_fs_dirent.ts";
 import { assert } from "ext:deno_node/_util/asserts.ts";
 import { ERR_MISSING_ARGS } from "ext:deno_node/internal/errors.ts";
 import { TextDecoder } from "ext:deno_web/08_text_encoding.js";
 
+const {
+  Promise,
+  ObjectPrototypeIsPrototypeOf,
+  Uint8ArrayPrototype,
+  PromisePrototypeThen,
+  SymbolAsyncIterator,
+  ArrayIteratorPrototypeNext,
+  AsyncGeneratorPrototypeNext,
+  SymbolIterator,
+} = primordials;
+
 export default class Dir {
   #dirPath: string | Uint8Array;
   #syncIterator!: Iterator<Deno.DirEntry, undefined> | null;
@@ -21,7 +30,7 @@ export default class Dir {
   }
 
   get path(): string {
-    if (this.#dirPath instanceof Uint8Array) {
+    if (ObjectPrototypeIsPrototypeOf(Uint8ArrayPrototype, this.#dirPath)) {
       return new TextDecoder().decode(this.#dirPath);
     }
     return this.#dirPath;
@@ -31,12 +40,12 @@ export default class Dir {
   read(callback?: (...args: any[]) => void): Promise<Dirent | null> {
     return new Promise((resolve, reject) => {
       if (!this.#asyncIterator) {
-        this.#asyncIterator = Deno.readDir(this.path)[Symbol.asyncIterator]();
+        this.#asyncIterator = Deno.readDir(this.path)[SymbolAsyncIterator]();
       }
       assert(this.#asyncIterator);
-      this.#asyncIterator
-        .next()
-        .then((iteratorResult) => {
+      PromisePrototypeThen(
+        AsyncGeneratorPrototypeNext(this.#asyncIterator),
+        (iteratorResult) => {
           resolve(
             iteratorResult.done ? null : new Dirent(iteratorResult.value),
           );
@@ -46,21 +55,23 @@ export default class Dir {
               iteratorResult.done ? null : new Dirent(iteratorResult.value),
             );
           }
-        }, (err) => {
+        },
+        (err) => {
           if (callback) {
             callback(err);
           }
           reject(err);
-        });
+        },
+      );
     });
   }
 
   readSync(): Dirent | null {
     if (!this.#syncIterator) {
-      this.#syncIterator = Deno.readDirSync(this.path)![Symbol.iterator]();
+      this.#syncIterator = Deno.readDirSync(this.path)![SymbolIterator]();
     }
 
-    const iteratorResult = this.#syncIterator.next();
+    const iteratorResult = ArrayIteratorPrototypeNext(this.#syncIterator);
     if (iteratorResult.done) {
       return null;
     } else {
@@ -92,7 +103,7 @@ export default class Dir {
     //No op
   }
 
-  async *[Symbol.asyncIterator](): AsyncIterableIterator<Dirent> {
+  async *[SymbolAsyncIterator](): AsyncIterableIterator<Dirent> {
     try {
       while (true) {
         const dirent: Dirent | null = await this.read();
Repository: nodejs/node
Pull request: doc: add history entry for textEncoder.encodeInto()

Refs: https://github.com/nodejs/node/pull/29524
Fixes: https://github.com/nodejs/node/issues/55938

<!--
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/util.md
patch: @@ -2166,6 +2166,10 @@ encoded bytes.
 
 ### `textEncoder.encodeInto(src, dest)`
 
+<!-- YAML
+added: v12.11.0
+-->
+
 * `src` {string} The text to encode.
 * `dest` {Uint8Array} The array to hold the encode result.
 * Returns: {Object}
Repository: denoland/deno
Pull request: fix(node): revert invalid package target change

Reverts this change (I'm not sure it causes a bug, but I thought about this in the morning):

https://github.com/denoland/deno/pull/24470/files/18cd4ff3ff5050e18647c781011a2bc3099cab5c..ac3e42eaaecc6cf89300b39c270029da3ecc1e63?diff=split&w=0

Reason is that `e` may contain an invalid package target nested deeply in the returned errors. We should probably add a `.code()` to all errors to make matching easier or make the errors flatter.

Changed files:
filename: ext/node/resolution.rs
patch: @@ -878,15 +878,15 @@ impl NodeResolver {
             last_error = None;
             continue;
           }
-          Err(e) => match e.as_kind() {
-            PackageTargetResolveErrorKind::InvalidPackageTarget(_) => {
+          Err(e) => {
+            // todo(dsherret): add codes to each error and match on that instead
+            if e.to_string().starts_with("[ERR_INVALID_PACKAGE_TARGET]") {
               last_error = Some(e);
               continue;
-            }
-            _ => {
+            } else {
               return Err(e);
             }
-          },
+          }
         }
       }
       if last_error.is_none() {