sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: 🌐 [i18n-zh-hant] Translating docs to Traditional Chinese (zh-hant)
Labels: WIP

<!--
Note: Please search to see if an issue already exists for the language you are trying to translate.
-->

Hi!

Let's bring the documentation to all the Traditional Chinese-speaking community 🌐 (currently 0 out of 267 complete)

Who would want to translate? Please follow the 🤗 [TRANSLATING guide](https://github.com/huggingface/transformers/blob/main/docs/TRANSLATING.md). Here is a list of the files ready for translation. Let us know in this issue if you'd like to translate any, and we'll add your name to the list.

Some notes:

* Please translate using an informal tone (imagine you are talking with a friend about transformers 🤗).
* Please translate in a gender-neutral way.
* Add your translations to the folder called `<languageCode>` inside the [source folder](https://github.com/huggingface/transformers/tree/main/docs/source).
* Register your translation in `<languageCode>/_toctree.yml`; please follow the order of the [English version](https://github.com/huggingface/transformers/blob/main/docs/source/en/_toctree.yml).
* Once you're finished, open a pull request and tag this issue by including #issue-number in the description, where issue-number is the number of this issue. Please ping @stevhliu and @MKhalusova for review.
* 🙋 If you'd like others to help you with the translation, you can also post in the 🤗 [forums](https://discuss.huggingface.co/).

## Get Started section

- [ ] [index.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/index.md) 
- [ ] [quicktour.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/quicktour.md) 
- [ ] [installation.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/installation.md).

## Tutorial section
- [ ]  [training.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/training.md)
- [ ] [pipeline_tutorial.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/pipeline_tutorial.md)
- [ ]  [autoclass_tutorial.md](https://github.com/huggingface/transformers/blob/master/docs/source/autoclass_tutorial.md)
- [ ]  [preprocessing.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/preprocessing.md)
- [ ]  [accelerate.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/accelerate.md)
- [ ]  [model_sharing.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/model_sharing.md)
- [ ]  [multilingual.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/multilingual.md)
- [ ] [peft.md](https://github.com/huggingface/transformers/blob/main/docs/source/en/peft.md)
<!--
Keep on adding more as you go 🔥
-->
Repository: vscode
Issue: "Go to definition" jumps to a hidden region in diff editor
Labels: bug,diff-editor

# Description 

"Go to definition" on a symbol moves the cursor to the line about the hidden region in the diff editor instead of unhiding a part of region and showing the definition. 
 
https://github.com/microsoft/vscode/assets/16353531/2b1145f1-05cc-4d3f-97fe-a531c4a252f8



# Version 

```
Version: 1.83.0-insider
Commit: bccfade64adb249f57c8fcf03cba41609f76ce5c
Date: 2023-09-15T05:38:00.328Z
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0
```
Repository: flutter
Issue: Add open and close animations for MenuAnchor
Labels: framework,f: material design,c: proposal,P2,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

So I noticed this after replacing PopupMenuButtons and DropdownButtons in our app with MenuAnchors and DropdownMenus. 

According to the [material design guidelines](https://m3.material.io/components/menus/guidelines#:~:text=Menus%20use%20a%20fade%20transition%20pattern%20to%20enter%20and%20exit%20the%20screen.%20The%20animation%20creates%20a%20relationship%20between%20the%20menu%20and%20the%20interactive%20element%20that%20generates%20the%20menu.), there should be a fade transition when menu enters and exits on screen, but currently MenuAnchor just opens and close sthe menu without any animations.

### Proposal

It's not a big deal, and would actually be preferable if on desktop and web, but on Android it kinds of look weird for the menus to just suddenly appears.
Repository: rust
Issue: --format=json might need to generate more info
Labels: C-feature-request,A-libtest,T-libs

### Problem

In some cases, we could not know which package the test belongs to.

Like 

``` txt
    Finished test [optimized + debuginfo] target(s) in 0.08s
     Running unittests src\lib.rs (target\debug\deps\regex_automata-f9e1a19184899f86.exe) // <-- good, it's from regex-automata
...
     Running unittests src\lib.rs (target\debug\deps\regex_lite-0cc4b285a45dbfa1.exe) // <-- good, it's from regex-lite
...
     Running tests/lib.rs (target\debug\deps\integration-d60a2e8ec89aaeb3.exe) // <-- oh no, it's from regex-lite or regex-automata?
...
     Running tests/lib.rs (target\debug\deps\integration-67b4427e13c6296c.exe) // <-- oh no,, it's from regex-lite or regex-automata?
...
```

In this example, when running for unit tests, we could know the package name. 

However, when running for integration tests, we have no idea which integration test is running.

### Proposed Solution

For the output event:
{ "type": "suite", "event": "started", "test_count": 3 }

Maybe we could add some more meta info, like
{ "type": "suite", "event": "started", "test_count": 3, package_name: "xxxx" }

Is this possible?

Or we need to change rustc?

### Notes

_No response_
Repository: vscode
Issue: Option to disable Interactive Window recovery
Labels: feature-request,interactive-window

### Applies To

- [ ] Notebooks (.ipynb files)
- [X] Interactive Window and\/or Cell Scripts (.py files with \#%% markers)

### What happened?

The interactive window keeps appearing in a new session after VS code is restarted, including the output from the previous session.

Expected behaviour: interactive window should not be visible on startup and output from previous session should be erased when a new interactive window is created.

I have the following option enabled but that did not solve the issue:

![image](https://github.com/microsoft/vscode-jupyter/assets/10067941/86880225-060a-40d1-a9fe-06141d8b8fcd)


### VS Code Version

1.82.1

### Jupyter Extension Version

v2023.8.1002501831

### Jupyter logs

_No response_

### Coding Language and Runtime Version

Python v3.11.4

### Language Extension Version (if applicable)

v2023.8.1002501831

### Anaconda Version (if applicable)

_No response_

### Running Jupyter locally or remotely?

Local
Repository: go
Issue: os: apparent deadlock in TestFifoEOF on `dragonfly`
Labels: OS-Dragonfly,NeedsInvestigation

```
#!watchflakes
post <- goos == "dragonfly" && pkg == "os" && test == "TestFifoEOF" && `panic: test timed out`
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/9156b94b7798f2d26645ad30e7143762dc3b6e80)):

    panic: test timed out after 3m0s
    running tests:
    	TestFifoEOF (3m0s)
    
    syscall.Syscall(0x5, 0xc0000ba210, 0x20001, 0x0)
    	/tmp/workdir/go/src/syscall/asm_unix_amd64.s:19 +0x9 fp=0xc0000afde0 sp=0xc0000afdd0 pc=0x47b169
    syscall.Open({0xc0000ba1b0?, 0x28?}, 0x59e080?, 0x0)
    	/tmp/workdir/go/src/syscall/zsyscall_dragonfly_amd64.go:848 +0x87 fp=0xc0000afe50 sp=0xc0000afde0 pc=0x479b07
    os.open(...)
    	/tmp/workdir/go/src/os/file_open_unix.go:15
    os.openFileNolog({0xc0000ba1b0, 0x2f}, 0x1, 0x0)
    	/tmp/workdir/go/src/os/file_unix.go:272 +0xe5 fp=0xc0000afea0 sp=0xc0000afe50 pc=0x49dec5
    os.OpenFile({0xc0000ba1b0, 0x2f}, 0x1, 0x621dc4?)
    	/tmp/workdir/go/src/os/file.go:334 +0x3e fp=0xc0000afed8 sp=0xc0000afea0 pc=0x49b8de
    os_test.TestFifoEOF(0xc000146b60)
    	/tmp/workdir/go/src/os/fifo_test.go:50 +0x168 fp=0xc0000aff70 sp=0xc0000afed8 pc=0x53b788
    testing.tRunner(0xc000146b60, 0x5c59f0)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: rust
Issue: Rust called golang func by ffi failed on windows
Labels: A-linkage,A-FFI,C-bug

Hi, I love rust and golang both!

Rust call golang by ffi.
windows11: 
  stable & beta & nightly: 
```bash
    error: linking with `link.exe` failed: exit code: 1120
    libstd-d9ee307034db292c.rlib(std-d9ee307034db292c.std.e9da0a539f4e1ec4-cgu.0.rcgu.o) : warning LNK4078: multiple '.drectve' sections found with different attributes (00100A00)
              libffi_go_print.lib(000005.o) : error LNK2019: unresolved external symbol fprintf referenced in function _cgo_beginthread
              C:\Users\oligami\ffi-rust-go\target\debug\deps\ffi_rust_go.exe : fatal error LNK1120: 1 unresolved externals
```

wsl(ubuntu22):
  stable & beta & nightly:
    conplete
```
:print on rust
:print on golang
program end
```

alpine(docker):
  stable & beta & nightly: segmentation fault on golang func
```
:print on rust
Segmentation fault
```

code on https://github.com/oligami-0424/ffi-rust-go
I tried this code:

```go
package main

import (
	"C"
)
//export ffi_go_print
func ffi_go_print() {
	println(":print on golang")
}
```
```rust
extern "C" {
    fn ffi_go_print();
}

fn main() {
    println!(":print on rust");
    unsafe { ffi_go_print() };

    println!("program end");
}
```

```rust
fn main() {
    cgo_oligami::Build::new()
        .build_mode(cgo_oligami::BuildMode::CArchive)
        .change_dir("./golib")
        .package("main.go")
        .build("ffi_go_print");

    println!("cargo:rerun-if-changed=golib/main.go");
}
```

I expected to see this happen: success on all

Instead, this happened: success on only ubuntu

`rustc --version --verbose`:
windows11
```
rustc 1.72.1 (d5c2e9c34 2023-09-13)
binary: rustc
commit-hash: d5c2e9c342b358556da91d61ed4133f6f50fc0c3
commit-date: 2023-09-13
host: x86_64-pc-windows-msvc
release: 1.72.1
LLVM version: 16.0.5
```
ubuntu(wsl)
```
rustc 1.72.1 (d5c2e9c34 2023-09-13)
binary: rustc
commit-hash: d5c2e9c342b358556da91d61ed4133f6f50fc0c3
commit-date: 2023-09-13
host: x86_64-unknown-linux-gnu
release: 1.72.1
LLVM version: 16.0.5
```
alpine
```
rustc 1.72.0 (5680fa18f 2023-08-23)
binary: rustc
commit-hash: 5680fa18feaa87f3ff04063800aec256c3d4b4be
commit-date: 2023-08-23
host: x86_64-unknown-linux-musl
release: 1.72.0
LLVM version: 16.0.5
```
Repository: vscode
Issue: Extension runtime status reports activation on Startup when it doesn't register that activation event
Labels: extensions-editor

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: N/A (I've disabled all extensions except [PHP IntelliSense](https://github.com/zobo/vscode-php-intellisense/blob/main/package.json#L37).)

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version:
  ```
  Version: 1.82.2
  Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
  Date: 2023-09-14T05:51:20.981Z
  Electron: 25.8.1
  ElectronBuildId: 23779380
  Chromium: 114.0.5735.289
  Node.js: 18.15.0
  V8: 11.4.183.29-electron.0
  OS: Linux x64 6.4.0-4-amd64 snap
  ```
- OS Version: Debian Trixie (Testing)

Steps to Reproduce:

1. Install an extension like [PHP IntelliSense](https://marketplace.visualstudio.com/items?itemName=zobo.php-intellisense).
2. Close Visual Studio Code
3. Open a project with PHP files in Visual Studio Code
4. Review runtime status of PHP IntelliSense

It should be reporting an **Activation Event** of `workspaceContains:**/*.php`, but instead reports `Startup` which isn't one of the activation events registered by the extension.
Repository: flutter
Issue: Determine if there is a method to recover stuck tasks automatically
Labels: team-infra,P3,triaged-infra

### Is there an existing issue for this?

- [X] I have searched the [existing infra issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-infra)

### Type of Request

feature request

### Infrastructure Environment

Scheduler and LUCI

### What is happening?

In rare instances tasks can become stuck in the "In Progress" state. Here is the latest example that was not related to bugs in the scheduler: https://github.com/flutter/flutter/issues/131501

We should look into a method of "resetting" stuck tasks that have been in the "In Progress" or queued state for an inordinate amount of time.

There also may be an issue with the computation of the "Queued" and "Queueing" times shown in the dashboard.


### Steps to reproduce

NA

### Expected results

NA
Repository: neovim
Issue: Behavior of option `scrollback` = `-1`
Labels: terminal,options

### Problem

The documentation states the the valid values for `scrollback` are `1 - 100000`.

There is also the value of `-1` which appears to default to the max `100000` here
https://github.com/neovim/neovim/blob/master/runtime/lua/vim/_meta/options.lua#L5115

I was looking at https://github.com/neovim/neovim/blob/master/src/nvim/terminal.c#L245 and think that
```c
  buf->b_p_scbk =          // 'scrollback' (initialize local from global)
                  (p_scbk < 0) ? 10000 : MAX(1, p_scbk);
```
may be incorrect. Other places in the code are referencing, `#define SB_MAX 100000  // Maximum 'scrollback' value.`. 

If is set `scrollback` = `-1` it is setting the default value `10000` and not the max `100000`.



The global (https://github.com/neovim/neovim/blob/master/test/functional/terminal/scrollback_spec.lua#L513) and local (https://github.com/neovim/neovim/blob/master/test/functional/terminal/scrollback_spec.lua#L518) values of `-1` also have different values. 




### Steps to reproduce

```sh
nvim --clean --noplugin -n +'set scrollback=-1' +'set number' +'lua vim.fn.termopen([[hexdump -e "\"%u\"" /dev/urandom | fold -w 10 | head -200000]])'

# 10053 lines
```

```sh
nvim --clean --noplugin -n +'set scrollback=100000' +'set number' +'lua vim.fn.termopen([[hexdump -e "\"%u\"" /dev/urandom | fold -w 10 | head -200000]])'

# 100053 lines
```

### Expected behavior

🤷 I'm not sure. I am assuming `-1` should represent the max.

### Neovim version (nvim -v)

NVIM v0.10.0-dev-1104+g9fc321c97

### Vim (not Nvim) behaves the same?

no

### Operating system/version

macOS

### Terminal name/version

Kitty

### $TERM environment variable

xterm-kitty

### Installation

build from repo
Repository: next.js
Issue: [App Router] The config `serverComponentsExternalPackages` does not respect specified package
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/sandbox/tender-sound-n7d5q5?file=/app/layout.tsx:1,1

### To Reproduce

1. import the external package, `jsonpath`
2. use the package in top-level `page.tsx` and in a file (`lib/getParsed`) that's imported by root layout, which is a client component
3. get 2 erros:
    - runtime error on `page.tsx` console: `ENOENT: no such file or directory, open '(rsc)/./node_modules/jsonpath/include/module.js`
    - dev server build error:
![Screenshot 2023-09-19 at 10 13 52](https://github.com/vercel/next.js/assets/82411639/866b6ea6-91d9-42ca-b876-9af5865600e2)

4. add the experimental config `serverComponentsExternalPackages` and include the `jsonpath` package
5. rebuild and do not see the runtime error on `page.tsx`, and home page loads; but the build error from `lib/getParsed` persists.

### Current vs. Expected behavior

By using the `serverComponentsExternalPackages` config, I expect to not see the build error regarding Node require resolved in both the top-level `page.tsx` and the nested file.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023
    Binaries:
      Node: 18.17.1
      npm: 9.6.7
      Yarn: 3.1.1
      pnpm: N/A
    Relevant Packages:
      next: 13.4.19
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

_No response_
Repository: transformers
Issue: AugViT TensorFlow implementation 
Labels: New model

### Model description

I would like to contribute AugViT Tensorflow implementation to the Transformers library. You can find the implementation in TensorFlow here https://github.com/ushareng/AugViT

I have created Model card here https://huggingface.co/tensorgirl/TFaugvit/tree/main

Kindly let me know if the above is correct.

### Open source status

- [X] The model implementation is available
- [x] The model weights are available

### Provide useful links for the implementation

TensorFlow implementation of AugViT https://github.com/ushareng/AugViT
Repository: TypeScript
Issue: Reflect Metadata not supported for TC39 decorators
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms

decorator, experimentalDecorators, emitDecoratorMetadata, TC39, reflect-metadata, Reflect.metadata(k, v)

### 🕗 Version & Regression Information

This breaks when setting disabling experimental decorators
```json
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
```

### ⏯ Playground Link

https://github.com/paulsmithkc/typescript-decorators

### 💻 Code

**tsconfig.json**
```json
{
  "compilerOptions": {
    "target": "ES2021",
    "module": "commonjs",
    "outDir": "dist",
    "declaration": true,
    "experimentalDecorators": false,
    "emitDecoratorMetadata": false
  },
  "include": ["src"],
  "exclude": ["node_modules", "dist"]
}
```

**src/index.ts**
```ts
import 'reflect-metadata';

function setting(defaultValue: string): any {
  function getType(target: unknown, property: string | symbol) {
    return Reflect.getMetadata('design:type', target, property);
  }
  function settingExperimental(target: unknown, property: string | symbol): void {
    console.log('settingExperimental', { defaultValue, target, property, type: getType(target, property) });
    target[property] = process.env[String(property)] || defaultValue;
    return;
  }
  function settingTC39(_target: unknown, context: ClassFieldDecoratorContext): () => string {
    return function (): string {
      console.log('settingTC39', { defaultValue, target: this, context, type: getType(this, context.name) });
      return process.env[String(context.name)] || defaultValue;
    };
  }
  return function (target: unknown, context: string | symbol | ClassFieldDecoratorContext) {
    if (typeof context !== 'object') {
      return settingExperimental(target, context);
    } else {
      return settingTC39(target, context);
    }
  };
}

class Config {
  @setting('default_1') SETTING_ONE: string;
}
const configInstance = new Config();
```

**run with:**
```
tsc --project tsconfig.json && node dist/index.js
```

### 🙁 Actual behavior

`Reflect.getMetadata('design:type', target, property)` returns undefined.

### 🙂 Expected behavior

`Reflect.getMetadata('design:type', target, property)` returns the type of the class field, when using Standard TC39 decorators.


### Additional information about the issue

1. **When transpiling with:**
    ```json
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    ```
    The decorator `Reflect.metadata("design:type", type)` is automatically applied to each class field.

2. **When transpiling with:**
    ```json
    "experimentalDecorators": false,
    "emitDecoratorMetadata": false,
    ```
    
    The decorator `Reflect.metadata("design:type", type)` is not applied.

3. **When transpiling with:**
    ```json
    "experimentalDecorators": false,
    "emitDecoratorMetadata": true,
    ```
    Typescript produces the following error
    ```
    Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'.
    ```
Repository: vscode
Issue: Not all valid color syntaxes are recognized by the color decorator
Labels: polish,editor-color-picker

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No
Yes
<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.82.2
- OS Version: Windows 11 Pro build 22621

Steps to Reproduce:

1. In settings, set `"editor.defaultColorDecorators"` to `true`
2. Add the following to a JavaScript file: `const blues = ['hsl(192, 87%, 49%)', 'hsl(192 87% 49%)', 'hsl(192.5, 87.5%, 49.5%)'];`
3. Note that the color decorator only appears on the first element. The other two elements are also valid CSS color syntax, yet don't register as colors by the ColorDecorator.