sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: not throwing any error while appending a random single character to the end of encrypted token
Labels: crypto

### Version

v16.15.0

### Platform

Microsoft Windows NT 10.0.19042.0 x64

### Subsystem

crypto

### What is the expected behavior?

If one or more character is added anywhere of the 64 chars TID we get the expected error while detokenizing (decrypting)

### What do you see instead?


We are using the crypto library from nodejs in service A and service B. As per the current logic below table depicts the maximum tokenized ID (TID) lengths for a given range of ID lengths.
 
ID   length | Maximum   TID Length
-- | --
1 - 15 | 24
16   - 31 | 44
32   - 47 | 64
48   - 63 | 88   ….   and so on
 
We have observed that for service A the maximum TID length is 44 chars and for service B it is 64 chars.

If we take a 64 chars TID and append a random single character to the end, service B is still able to detokenize the string instead of throwing an error. It just ignores the extra character.

-	This behavior is observed only for a TID of length 64 chars. It works as expected for the other lengths.
-	This behavior is observed only when a single character is appended at the end of a 64 chars TID. If we append more than one character at the end of a 64-chars TID, we get the expected error while detokenizing.
-	If one or more character is added anywhere other than the end of the 64 chars TID we get the expected error while detokenizing
Repository: ant-design
Issue: InputNumber defaultValue & value is empty with  Next.js React 18 Strict Mode
Labels: help wanted,Inactive,React 18

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/nextjs-ant-design-forked-f6u4qp?file=/next.config.js)

### Steps to reproduce

Enabling strictmode in next.config.js passing InputNumber defaultValue and value causes empty field on page:
/** @type {import('next').NextConfig} */
const nextConfig = {
  // with true InputNumber value is empty
  reactStrictMode: true
};

module.exports = nextConfig;

changing   reactStrictMode: false makes InputNumber work properly and does not cause an empty field



### What is expected?

expect InputNumber field is not empty after passing defaultValue with strictMode enabled

### What is actually happening?

When using StrictMode in next.js passing defaultValue in InputNumber cause empty field

| Environment | Info |
| --- | --- |
| antd | 4.20.5 |
| React | 18 |
| Next | 12 |
| System | Windows |
| Browser | Chromium 100 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ant-design
Issue: TreeSelect: Add "labelInAriaLive"-property for better accessibility: 
Labels: Inactive,⌨️ Accessibility

### What problem does this feature solve?

If the user moves between TreeSelect options using arrow keys, the screenreader will always read out the value of the active node. It would be much better for accessibility (and more flexible), if I as a developer could decide to use labels for aria-live content instead of the values.

### What does the proposed API look like?

New prop would  be ``labelInAriaLive``, and it would be ``false`` by default. This prob would then be used to decide whether to use the value or label of the selected item, when rendering the aria-live tag of the component.

Using the component with the implemented feature:

```
import React, { useState } from 'react';
import { TreeSelect } from 'antd';

const { TreeNode } = TreeSelect;

const Demo = () => {
  const [value, setValue] = useState(undefined);
  const onChange = () => {
    setValue(value);
  };
  return (
    <TreeSelect
      showSearch
      style={{ width: '100%' }}
      value={value}
      labelInAriaLive={true} // Here's the API change: default would be false
      dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
      placeholder="Please select"
      allowClear
      treeDefaultExpandAll
      onChange={onChange}
    >
      <TreeNode value="parent 1" title="parent 1">
        <TreeNode value="parent 1-0" title="parent 1-0">
          <TreeNode value="leaf1" title="leaf1" />
          <TreeNode value="leaf2" title="leaf2" />
        </TreeNode>
        <TreeNode value="parent 1-1" title="parent 1-1">
          <TreeNode value="leaf3" title={<b style={{ color: '#08c' }}>leaf3</b>} />
        </TreeNode>
      </TreeNode>
    </TreeSelect>
  );
};

export default Demo;
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: Add DropdownButton method to open the list programmatically
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

## Use case

- Make another  widget on the screen open the dropdown list to draw attention to it.
- Build the dropdown list widget only when the user clicks on a small placeholder widget, and then open the list automatically, to save memory if your list is very big and there are many of them.

Example Stackoverflow requests:
- https://stackoverflow.com/questions/57529394/how-to-open-dropdownbutton-when-other-widget-is-tapped-in-flutter
- https://stackoverflow.com/questions/69337506/open-flutter-dropdown-programmatically
- https://stackoverflow.com/questions/61267370/flutter-dropdownbutton-menu-is-not-getting-opened-automatically-on-being-focus

No pub.dev packages that support this.
https://pub.dev/packages/dropdown_button2 does not.

Current workaround is to search for the button's gesture detector containing widget through its key and call its onTap method.

## Proposal

Add the methods Open() and Close() to the DropdownButton class. And the property, `startOpened`.
Repository: go
Issue: x/net/http2: TestTransportGroupsPendingDials failures due to missing Close
Labels: NeedsInvestigation

```
--- FAIL: TestTransportGroupsPendingDials (0.02s)
    transport_test.go:401: saw 0 closes; want 1
FAIL
FAIL	golang.org/x/net/http2	17.546s
```

`greplogs -l -e 'FAIL: TestTransportGroupsPendingDials .*(?:\n[ ]{4}.*) saw 0 closes' --since=2021-01-01`
[2022-05-18T15:25:04-183a9ca-1f9f7db/linux-amd64-clang](https://build.golang.org/log/e5a6dc779deb637691c20634904425e2da504e8d)
[2022-04-29T02:01:27-2871e0c-e7c56fe/freebsd-arm-paulzhol](https://build.golang.org/log/f0f5cbe404fd17953623fb6bc4a3fb6d25344727)
[2022-03-04T14:10:38-27dd868-c9b6063/freebsd-arm64-dmgk](https://build.golang.org/log/9aaf6a629473af0f794bfed1e64c6fe38e824cc2)

This may be a symptom of #50027; see previously #43176.

(attn @neild @tombergan)
Repository: vscode
Issue: Add support for extension-less files on Mac
Labels: feature-request,macos,workbench-os-integration

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
On the Mac, VS Code does not show up in the Open With menu for files without a file extension. You have to choose Other App and search for it. This makes it very cumbersome if you deal with a fair number of files that don't have a file extension. I figured out how to manually modify the Info.plist file to allow VS Code to show in the Open With menu on my machine, but it would be nice to have it be there automatically.

In the Info.plist file, I added the following code inside the `CFBundleDocumentTypes` array.

```
<dict>
    <key>CFBundleTypeRole</key>
    <string>Viewer</string>
    <key>LSItemContentTypes</key>
    <array>
        <string>public.data</string>
    </array>
</dict>
```
Repository: storybook
Issue: Storybook 6.5:  React - Using array of objects as child for component throws error
Labels: bug,react

**Describe the bug**
When using an array of objects as a child for a component, @storybook/react throws the error below:
**Objects are not valid as a React child (found: object with keys {icon, children, key}). If you meant to render a collection of children, use an array instead**
But I am using an array :)
Here is a screenshot of the array used as a child and the error:

![image](https://user-images.githubusercontent.com/63335068/169310745-39f08af1-00c9-42b3-bfe8-655ec0b0a379.png)


**To Reproduce**

**System**
Environment Info:

  System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-10810U CPU @ 1.10GHz
  Binaries:
    Node: 14.19.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.16 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.47)

**Additional context**
Issue was not reproduced in storybook 6.3 or 6.4
Repository: create-react-app
Issue: Severity Vulnerabilities RIGHT OFF THE BAT! "npm audit fix --force" makes it WORSE!
Labels: needs triage,issue: bug report

I don't know if this is bug or poor management of dependencies but I don't like it at all.

Did nothing but run `npx create-react-app blahblahblah` and got this:
![image](https://user-images.githubusercontent.com/59757582/169314001-a3347124-73aa-4dec-8c53-9068ddac9eba.png)

And running `npm audit fix --force` makes an absolute mess/chaos:
![image](https://user-images.githubusercontent.com/59757582/169314413-c44f81c7-e885-4dd7-b3fe-decc67f2a771.png)

I expect to get ZERO warnings of package deprecation and ZERO vulnerabilities.
Repository: flutter
Issue: [camera] Remove `CameraImage` in the next breaking change
Labels: p: camera,package,team-ecosystem,P2,p: requires breaking change,triaged-ecosystem

`CameraImage` and its component classes were left in the app-facing package with the streaming code during the initial federation, so they couldn't be moved to the platform interface package without breaking changes somewhere without causing collisions. Instead near-duplicates were added to the platform interface package with slightly different names, and the app-facing package translates between them.

We should do a breaking change to `camera` at some point that removes the app-facing versions and returns (and exports) the platform interface versions directly. Since they are simple immutable data classes, they should be fine to use directly from the platform interface (i.e., we never expect clients to extend/implement them, so they won't be subject to breakage).
Repository: godot
Issue: MacOS startup error: ERROR: Resource file not found: res://Arc custom keys
Labels: bug,platform:macos,topic:rendering

### Godot version

3.5rc1

### System information

MacOS 12.2 M1 and X86 builds

### Issue description

These errors display in the console at startup on both arm64 and x86 builds:

UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable

ERROR: Resource file not found: res://Arc custom keys
   at: _load (core/io/resource_loader.cpp:275)

### Steps to reproduce

Run Godot 3.5rc1 (same errors occur with 3.4.4stable)

### Minimal reproduction project

_No response_
Repository: godot
Issue: MacOS DeckLinkCMIO incompatible with arm64 architecture error at startup
Labels: bug,platform:macos,topic:porting

### Godot version

3.5.rc1, 3.4.4.stable

### System information

MacOS 12.2 M1

### Issue description

When running the arm64 build (not the universal), the following error appears on the console:

2022-05-19 09:15:01.413 godot35rc1[6785:175213] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/DeckLinkCMIO.plugin/Contents/MacOS/DeckLinkCMIO:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/DeckLinkCMIO.plugin/Contents/MacOS/DeckLinkCMIO, 0x0106): tried: '/Library/CoreMediaIO/Plug-Ins/DAL/DeckLinkCMIO.plugin/Contents/MacOS/DeckLinkCMIO' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/DeckLinkCMIO' (no such file), '/usr/lib/DeckLinkCMIO' (no such file)

### Steps to reproduce

Compile godot on MacOS for the arm64 target and run the binary (not the universal binary).

### Minimal reproduction project

_No response_
Repository: flutter
Issue: [go_router] [navigator 2.0] declarative version of showModalBottomSheet is missing
Labels: framework,f: routes,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case
When using GoRouter or another navigator 2.0 implementation which is inherently declarative it is difficult to reproduce the showModalBottomSheet behaviour. 

I would expect to be able to push a bottomSheet onto the page stack of the router instead of adding it to the [Navigator] 
Thats what is causing this issue: https://github.com/flutter/flutter/issues/100933

When trying to recreate the modal behaviour in a CustomTransitionPage in GoRouter we have this issue blocking us:
https://github.com/flutter/flutter/issues/102289

## Proposal

* We should have access to [_ModalBottomSheetRoute](https://github.com/flutter/flutter/blob/0c38e238699ac9ebb62ba6678d0a86f908f08251/packages/flutter/lib/src/material/bottom_sheet.dart#L451) and or the underlying classes.

* We should consider adding adding documentation to gorouter.dev on how to use BottomSheets with GoRouter to avoid problems like https://github.com/flutter/flutter/issues/100933

## Further reading
There are community solutions like [simple_cupertino_modal_route.dart](https://gist.github.com/cpboyd/864524e80c80aec9aa400ec09652ca24) but it would be more consistent to have access to the already existing navigator 1 version, especially for anybody considering to transition to Navigator 2.0

There is an open SO question on this as well: https://stackoverflow.com/questions/70478220/how-do-i-declaratively-push-bottomsheet-with-navigator-2-0
Repository: storybook
Issue: Conditionnal Control: disabled state
Labels: feature request,addon: controls

Hi,

The conditionnal control are very good, just hide or show is, for me, too limitate and I would to know if is possible to add option for declare if this option can hide / show or enable / disabled.

Thank you.
Repository: go
Issue: cmd/gofmt: inconsistent whitespace after map value type
Labels: NeedsInvestigation

[Consider the following](https://go.dev/play/p/Wr93DyMwNh3):
```go
var _ = map[string]func() bool{
	"Func": func() bool {
		return false
	},
}
```

On one line it's `go fmt`'d as `func() bool{` and as `func() bool {` on the other line. Note the space between `bool` and `{`.

In the previous case, this is the syntax for a map literal, while the latter is a function declaration.

Perhaps we should always output a space after a type expression (e.g., `func() bool` or `chan bool`) that contains a space?
Repository: yt-dlp
Issue: JSON issue when downloading from VK
Labels: site-bug

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I'm running yt-dlp version **2022.05.18** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

Got this message when trying to download a video from VK

> Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)'))

Using yt-dlp, updated 

### Verbose log

```shell
[debug] Command-line config: ['-vU', 'https://vk.com/video-4499945_456248631']
[debug] Portable config "G:\yt-dlp.conf": ['-f', '299+140', '-o', '%(title)s.%(ext)s', '-r12000000', '--ignore-errors', '--cookies', 'D:vk.txt']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d523] (win_exe)
[debug] Python version 3.7.9 (CPython 32bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: avprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg git-2020-08-14-a762fd2
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
Latest version: 2022.05.18, Current version: 2022.05.18
yt-dlp is up to date (2022.05.18)
[debug] [vk] Extracting URL: https://vk.com/video-4499945_456248631
[vk] -4499945_456248631: Downloading JSON metadata
ERROR: [vk] -4499945_456248631: Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 642, in extract
  File "yt_dlp\extractor\vk.py", line 328, in _real_extract
  File "yt_dlp\extractor\vk.py", line 58, in _download_payload
  File "yt_dlp\extractor\common.py", line 1034, in _download_json
  File "yt_dlp\extractor\common.py", line 1018, in _download_json_handle
  File "yt_dlp\extractor\common.py", line 1045, in _parse_json

  File "yt_dlp\extractor\common.py", line 1041, in _parse_json
  File "json\__init__.py", line 361, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```
Repository: pytorch
Issue: Make the appropriate backend `DimensionNode` visible to LTC core
Labels: triaged,lazy

### 🚀 The feature, motivation and pitch

With the current implementation of `DimensionNode` in LTC, each backend has its own implementation ([PyTorch/XLA](https://github.com/pytorch/xla/pull/3558), [TorchScript](https://github.com/pytorch/pytorch/blob/master/torch/csrc/lazy/ts_backend/dynamic_ir.h#L46-L56)). 

At the same time, shape inference builds off of LTC core classes leading to this [PR](https://github.com/pytorch/pytorch/pull/77830) failing to build shape inference implementation for `expand.SymInt`. Please make the appropriate backend `DimensionNode` visible to LTC core.

**Solution** alternatives based on offline chat with @Krovatkin.
* IR core to access the correct backend implementation
* Use multiple inheritance

CC @wconstab @JackCaoG

### Alternatives

_No response_

### Additional context

_No response_
Repository: flutter
Issue: [Selection] SelectableRegion should support rich text clipboard
Labels: c: new feature,framework,c: proposal,P3,f: selection,team-framework,triaged-framework

SelectableRegion currently only support PlainText data type. We should make sure we can store RichText data type.

```dart
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: SelectionArea(
        child: Scaffold(
          appBar: AppBar(title: const Text(_title)),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: const <Widget>[
                Text('Row 1', style: TextStyle(fontSize: 30, color: Colors.red)),
                Text('Row 2'),
                Text('Row 3'),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

```
1. try to select and copy test with different style
2. paste into google doc or some richtext editor
3. currently it store as plainText.

Ideally it should preserve some rich text content.
Repository: go
Issue: x/tools/gopls: consider indexing workspace symbols in all dependencies
Labels: FeatureRequest,gopls,Tools

As noted in https://github.com/golang/go/issues/37537#issuecomment-1131750277, workspace symbols is a useful index for "available symbols" in a project.  But right now, we only index files in the transitive closure of workspace packages. This means that symbols in unimported packages (including stdlib packages) are not reachable. FWIW I don't usually notice this, but it can be surprising if one is trying to jump to a standard library symbol that happens not to be reachable. As an API it's not great because the user can't be expected to remember which packages are imported, and which are not.

The good news is that the workspace symbol index is out-of-band of our package graph, and symbols are somewhat efficiently stored (if needed, we can further optimize their storage). We should be able to index all files in modules reachable from the workspace.

To start, we can do this for std.

CC @marwan-at-work @hyangah
Repository: godot
Issue: Multiple incorrect inheritence-related type errors
Labels: bug,topic:gdscript,topic:editor

### Godot version

3.4.4.stable

### System information

macOS

### Issue description

I frequently but intermittently encounter 2 categories of incorrect errors after working in a project for more than an hour:
1. child signature mismatch when the signatures are the same:
    > The function signature doesn't match the parent. Parent signature is: "bool method(Parent)".gdscript(-1)
2. "Invalid argument type" when passing a child's child class to a method accepting it's grandparent.  
    I.e with `Child extends Parent extends GrandParent` and `GrandParent.method(GrandParent) -> void`, calling `method(Child.new())` causes an error.

If I restart the errors go away for a while, even if I jump around and edit all files involved.

Initially opened as https://github.com/godotengine/godot-vscode-plugin/issues/367 but realized it was more general while using the native editor.

### Steps to reproduce

Wish I knew. It might happen after spending long enough working in a project including something like the following:
```gdscript
extends Reference
class_name GrandParent
func method(_o: GrandParent) -> bool:
	return false
```
```gdscript
extends GrandParent
class_name Parent
var foo := "foo"
func method(o: GrandParent) -> bool:
	return o.has_attribute("foo")
```
```gdscript
extends Parent
class_name Child
func other_method() -> bool:
    return method(self)
```

### Minimal reproduction project

_No response_