sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: runtime,cmd/link: "found pointer to free object" during asyncPreempt2 on ios-arm64-corellium
Labels: OS-Darwin,NeedsInvestigation,mobile,arch-arm64,compiler/runtime

```
##### Test execution environment.
# GOARCH: arm64
# CPU: 
# GOOS: ios
# OS Version: Darwin 20.6.0 Darwin Kernel Version 20.6.0: Tue Aug 24 21:10:43 PDT 2021; root:xnu-7195.140.44~1/RELEASE_ARM64_T8010 iPhone9,1

…
# crypto/sha256.test
runtime: marked free object in span 0x100ebd108, elemsize=24 freeindex=82 (bad use of unsafe.Pointer? try -d=checkptr)
…
fatal error: found pointer to free object
…
goroutine 1 [runnable]:
runtime.asyncPreempt2()
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/preempt.go:308 +0x40 fp=0x1300e1c10 sp=0x1300e1bf0 pc=0x1008488e0
runtime.asyncPreempt()
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/preempt_arm64.s:47 +0xa0 fp=0x1300e1e00 sp=0x1300e1c10 pc=0x100877980
crypto/sha256.blockGeneric(0x1300e1f98?, {0x1044a8000?, 0x1300cb320?, 0x1044a8000?})
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/crypto/sha256/sha256block.go:90 +0x1bc fp=0x1300e1f30 sp=0x1300e1e10 pc=0x100939f3c
crypto/sha256.block(0x1300e1fe8?, {0x1044a8000?, 0x1300c83a8?, 0x1044a8000?})
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/crypto/sha256/sha256block_arm64.go:16 +0x7c fp=0x1300e1f90 sp=0x1300e1f30 pc=0x10093a0dc
crypto/sha256.(*digest).Write(0x1300e2110, {0x1044a8000?, 0x1000, 0x1000?})
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/crypto/sha256/sha256.go:198 +0x13c fp=0x1300e1ff0 sp=0x1300e1f90 pc=0x10093993c
cmd/internal/codesign.Sign({0x104496000?, 0x104493910?, 0x2?}, {0x100ad9198, 0x1300c83a8}, {0x100a0c666, 0x5}, 0x235d10, 0x1300e2268?, 0x10085f7c0?, ...)
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/internal/codesign/codesign.go:264 +0x400 fp=0x1300e21b0 sp=0x1300e1ff0 pc=0x10093abe0
cmd/link/internal/ld.machoCodeSign(0x130120000, {0x16f5ef1e8, 0x51})
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/link/internal/ld/macho.go:1558 +0x36c fp=0x1300e2320 sp=0x1300e21b0 pc=0x10099fe2c
cmd/link/internal/ld.(*Link).hostlink(0x130120000)
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/link/internal/ld/lib.go:1799 +0x4b18 fp=0x1300e2c80 sp=0x1300e2320 pc=0x1009913d8
cmd/link/internal/ld.Main(_, {0x10, 0x20, 0x1, 0x1f, 0x1e, 0x7c00000, {0x100a14461, 0x14}, {0x100a17ba8, ...}, ...})
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/link/internal/ld/main.go:378 +0x1448 fp=0x1300e2f10 sp=0x1300e2c80 pc=0x1009a3d88
main.main()
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/link/main.go:69 +0xc5c fp=0x1300e3f70 sp=0x1300e2f10 pc=0x100a0ac3c
runtime.main()
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/proc.go:250 +0x250 fp=0x1300e3fd0 sp=0x1300e3f70 pc=0x100849de0
runtime.goexit()
	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/asm_arm64.s:1155 +0x4 fp=0x1300e3fd0 sp=0x1300e3fd0 pc=0x1008770b4
…
FAIL	crypto/sha256 [build failed]
```

(CC @golang/runtime @golang/ios)
Repository: pytorch
Issue: Performance bad on ARM AArch64 for PyTorch C++
Labels: module: build,triaged,module: arm

### 🚀 The feature, motivation and pitch

Hi PyTorch community, we have been trying to build the PyTorch on the CentOS-7/ Amazon Linux 2 on an aarch64 instance (Graviton) for our C++ project. However, we found our build performance is much worse comparing to the PyTorch aarch64 pip release. I am suspecting if there is any performance optimization libraries/flags we have not enabled during the build.

Do you mind sharing some build instruction/docker images that can build PyTorch python/C++ library for low GLIBC versions (precxx-11) on aarch64? Or C++ ARM distribution for libtorch 1.11.0 would also work.


### Alternatives

_No response_

### Additional context

_No response_

cc @malfet @seemethere
Repository: deno
Issue: Add LSP memory usage to the benchmarks
Labels: benchmarks,chore,lsp

It would be useful to track the LSP's memory usage. We probably would need to do a bunch of actions and then keep watching memory usage until it stops deviating so much then use that as the reading.
Repository: pytorch
Issue: Torch `x += y.bmm(z)` is faster than `x.baddbmm_(y, z)`
Labels: module: performance,triaged,module: linear algebra

### 🐛 Describe the bug

The `x.badbmm_(y, z)` method feels like something that should be fast, since it doesn't have to create a temporary tensor for `y.bmm(z)` before it adds it to `x`.

However, from profiling it seems like `badbmm_` just makes a lot of calls to `aten::addmm_` and `aten::select`, and turns out to be about twice as slow as the naiive code.

### Versions

Pytorch pre-release version 1.12.0a0+fb 

cc @VitalyFedyunin @ngimel @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: angular
Issue: Type checking for host bindings
Labels: feature,area: compiler,core: host and host bindings,compiler: template type-checking

Angular does not currently perform type checking for `@Component` and `@Directive` host bindings. This is a gap in Angular's otherwise robust template type checking system that leaves the door open to typos and type mismatches. 

- [ ] Introduce an option for host binding type checking
- [ ] Devise and execute a rollout plan to make this the new default behavior
Repository: godot
Issue: iOS keyboard_input_view confused by arrow keys
Labels: bug,platform:ios,topic:porting

### Godot version

3.4.4

### System information

iOS 15.4.1

### Issue description

Cursor keys, only available with an external keyboard, move the cursor in the hidden GodotKeyboardInputView, but not in the TextEdit, causing the two to get out of sync.


### Steps to reproduce

Connect external keyboard (bluetooth, universal control, m1 Mac)
Select TextEdit
type "0123"
Cursor left two times (visible cursor does not move)
type "a"
Text Edit shows "01a" (23 disappeared from view)
Cursor right 1 time (visible cursor does not move)
type "b"
Text Edit shows "01a2b" (the 2 was reinserted)



### Minimal reproduction project

[ios-keyboard-cursor-test.zip](https://github.com/godotengine/godot/files/8606694/ios-keyboard-cursor-test.zip)
Repository: pytorch
Issue: `reshape` for distributions.
Labels: module: distributions,feature,triaged

### 🚀 The feature, motivation and pitch

The `expand` method for distribution instances is great for prepending batch dimensions and, possibly, changing the number of batch elements. Adding similar functionality that mirrors `reshape` on tensors would be useful for manipulating distributions. 

For example, suppose we want to evaluate the probability of a batch of beta random variables on the unit interval.

```python
>>> import torch

# Set up the distribution and the domain over which we want to evaluate.
>>> batch_shape = (3, 4)
>>> dist = torch.distributions.Beta(*torch.rand(2, *batch_shape))
>>> x = torch.linspace(0, 1, 50)

# This, expectedly fails, because the shapes don't match.
>>> dist.log_prob(x)
ValueError: Value is not broadcastable with batch_shape+event_shape: torch.Size([50]) vs torch.Size([3, 4]).

# We can use `expand` to prepend a batch dimension, then pad `lin` with unit 
# dimensions on the right that match the batch shape. Then move the batch 
# dimensions back to the front. Fine, but a bit fiddly.
>>> log_prob = dist.expand((1,) + batch_shape).log_prob(x[:, None, None])
>>> log_prob = log_prob.moveaxis(0, -1)
>>> log_prob.shape
(3, 4, 50)

# Suppose we had a `reshape` function that acts on the batch dimension. Then
# the above simply becomes.
>>> log_prob = dist.reshape(batch_shape + (1,)).log_prob(x)
>>> log_prob.shape
(3, 4, 50)
```

### Alternatives

See above regarding a combination of `expand`, right-padding of the argument, and `moveaxis`.

### Additional context

_No response_

cc @fritzo @neerajprad @alicanb @nikitaved
Repository: flutter
Issue: Running "flutter create -t module" prints "Found saved certificate choice" and Apple cert info twice
Labels: platform-ios,tool,P3,team-ios,triaged-ios

```
$ flutter create -t module test_module
Found saved certificate choice "Apple Development: Jenn (xxxx)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "Apple Development: Jenn (xxxx)"
Creating project test_module...
Running "flutter pub get" in test_module...                      1,213ms
Found saved certificate choice "Apple Development: Jenn (xxxx)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "Apple Development: Jenn (xxxx)"
```
Caused by https://github.com/flutter/flutter/pull/90021

See also https://github.com/flutter/flutter/issues/92701
Repository: three.js
Issue: Suggestion: Rename "Source" to something like "ImageSource" or "TextureSource"
Labels: Suggestion

<!-- Ignoring this template may result in your feature request getting deleted -->

**Is your feature request related to a problem? Please describe.**

It's not really clear what "Source" is for from the name.

**Describe the solution you'd like**

I think the class definition could be renamed to be more clear. Considering it's only for texture and image data I would imagine one of the following names might be more clear:

- ImageSource
- ImageDataSource
- TextureSource

**Describe alternatives you've considered**

😢 

**Additional context**

--
Repository: material-ui
Issue: Migrate away from Lerna
Labels: core

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Lerna has been officially marked as "no longer maintained". https://github.com/lerna/lerna/issues/2703 There are definitely options out there, including some approved forks of Lerna. In an effort to not introduce tech debt to this project, there should be a migration plan away from this dependency.

### Examples 🌈

_No response_

### Motivation 🔦

I was spinning up a new MUI project when I noticed that Lerna is no longer maintained.
Repository: godot
Issue: use_mingw="yes" not Honored in custom.py
Labels: bug,platform:windows,topic:buildsystem,confirmed

### Godot version

4.0.dev (0275d60)

### System information

Windows 10, MinGW, LLVM Build

### Issue description

If I run `scons` in the shell without `use_mingw=yes` even when it's in my `custom.py` file, the build crashes. This seems to be due to the fact that the `if` statement in the `SConstruct` file (line 106 in the referenced hash) that is supposed to assign `custom_tools` to `["mingw"]` is reading from the command line only. The assignment of `custom_tools` actually happens before `custom.py` is even read.

It also doesn't seem to be honoring the `platform` variable from `custom.py` for this one `if` statement either (because `custom.py` hasn't been loaded), but that's not causing an issue because the detection is working as intended (i.e. I'm not building for Android or JavaScript).

custom.py:
```python
use_mingw = "yes"
use_llvm = "yes"
use_lto = "yes"
platform = "windows"
tools = "yes"
target = "debug"
verbose = "yes"
```

Relevant  lines in `SConstruct`:
```python
custom_tools = ["default"]

platform_arg = ARGUMENTS.get("platform", ARGUMENTS.get("p", False))

if os.name == "nt" and (platform_arg == "android" or methods.get_cmdline_bool("use_mingw", False)):
    custom_tools = ["mingw"]
elif platform_arg == "javascript":
    # Use generic POSIX build toolchain for Emscripten.
    custom_tools = ["cc", "c++", "ar", "link", "textfile", "zip"]

#............ BREAK .....................

customs = ["custom.py"]

profile = ARGUMENTS.get("profile", "")
if profile:
    if os.path.isfile(profile):
        customs.append(profile)
    elif os.path.isfile(profile + ".py"):
        customs.append(profile + ".py")

opts = Variables(customs, ARGUMENTS)
```

This is fairly simple to correct, but I wanted to get some feedback first in the case that there's a reason it is done this way.

### Steps to reproduce

1. Checkout 0275d60 on a Windows x64 host (targeting Windows x64)
2. Create `custom.py` with the following text
```python
use_mingw = "yes"
use_llvm = "yes"
use_lto = "yes"
platform = "windows"
tools = "yes"
target = "debug"
verbose = "yes"
```
3. Ensure a `mingw32`/`llvm` environment is accessible to SCons
4. Run `scons` without arguments and attempt a build
5. Run `scons use_mingw=yes` to run a successful build

### Minimal reproduction project

_No response_
Repository: vscode
Issue: Caps Lock Activated Indication in message box that requires a password 
Labels: feature-request,quick-pick

<!-- ⚠️⚠️ 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. -->
Create a "Caps Lock Activated" - Indication when entering a password for git or a ssh connection
(this window here)
![image](https://user-images.githubusercontent.com/104583173/166413056-cee870b1-3296-415f-8e8b-f089dd76b287.png)

I'm using a Macbook Pro M1 2020 with macOS Menterey Version 12.3.1
Repository: vscode
Issue: Parenthesis and brace matching within RegExps
Labels: feature-request,editor-bracket-matching

<!-- ⚠️⚠️ 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. -->
Modifying regular expressions is a pain, and a part of that pain comes from the fact that editors don't help you with the task, they treat RegExps as if they were strings.

It would be nice, when the cursor is on a parenthesis, a brace or a bracket, to have the editor highlight the one that matches, like vscode does outside RegExps.
Repository: excalidraw
Issue: Highlight words in a paragraph
Labels: enhancement,richtext,Candidate P1

Hello I don't know if I should drop this idea here but I really wish this feature would become true.

Currently we can't highlight words in a paragraph.
That can be really annoying because it keeps me from making my text more readable.
There are some work arounds with some dividers for example but it's not ideal in my opinion.

It'd be really nice if we could make some words bold, or even colorize some words in a paragraph instead of all of it.
Repository: PowerToys
Issue: PowerToys Run - Unit converter - units naming in plural
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage,Run-Plugin

### Description of the new feature / enhancement

It would be great that the unit converter can be inputed with mil**s**/meter**s**/mile**s** instead of only mil/mile.
It really is nothing but it would make a bit more sense :)

### Scenario when this would be used?

You say 10 mil**s** and not 10 mil, same for mile**s**/meter**s**... if you input 10 mils to mm (for example) it doesnt output anything :/ 


### Supporting information

Sorry for being annoying :)
Repository: vscode
Issue: Meta Mouse Cursor Mode
Labels: feature-request,under-discussion

This feature request describes a new concept of the "meta mouse cursor mode".

In this mode, the mouse cursor doesn't interact with the UI directly anymore, but shows information about the hovered/clicked UI element and offers options to change its appearance.

The meta-mode intends to provide an intuitive and uniform way for the user to answer questions such as
* What is the meaning of this UI element? What does its color mean?
* Why is it shown?
* How can its appearance be changed? (How to change its foreground/background color, how to hide it)

This feature could replace the "Inspect token" feature.
It could also replace various context menus to hide/show certain UI elements (such as minimap, status items, scrollbars etc.)

It would also help users to figure out how to disable unicode highlighting or bracket pair colorization.
Ideally you could use this concept to quickly change theme colors of abitrary elements.

@isidorn @digitarald @misolori might be interested in this.
Repository: pytorch
Issue: Adding Polyloss to `torch`
Labels: module: nn,module: loss,triaged

### 🚀 The feature, motivation and pitch

# POLYLOSS: A POLYNOMIAL EXPANSION PERSPEC- TIVE OF CLASSIFICATION LOSS FUNCTIONS
(Published as a conference paper at ICLR 2022) [link to paper](https://arxiv.org/abs/2204.12511)

This loss function implementation won't be difficult as we can use builtin crossentropy loss or focal loss to implement it. This loss function has overperformed other existing loss functions in some benchmark experiments. 

Here is a code snippet
```python3
# cross entropy as pollyloss
def poly1_cross_entropy(logits, labels, epsilon=1.0):
    # pt, CE, and Poly1 have shape [batch].
    pt = tf.reduce_sum(labels * tf.nn.softmax(logits), axis=-1) CE = tf.nn.softmax_cross_entropy_with_logits(labels, logits)
    Poly1 = CE + epsilon * (1 - pt)
    return Poly1

# focal loss as pollyloss
def poly1_focal_loss(logits, labels, epsilon=1.0, gamma=2.0): 
    # p, pt, FL, and Poly1 have shape [batch, num of classes]. p = tf.math.sigmoid(logits)
    pt = labels * p + (1 - labels) * (1 - p)
    FL = focal_loss(pt, gamma)
    Poly1 = FL + epsilon * tf.math.pow(1 - pt, gamma + 1)
    return Poly1
```

I would like to contribute to add this feature into `torch`

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: pytorch
Issue: test_python_reference_meta_functions takes too long to run
Labels: module: tests,triaged

### 🐛 Describe the bug

Currently, these tests take nearly two minutes to run on CPU:

```
$ python test/test_ops.py -k test_python_reference_meta_functions                                                                                                              
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
......................................................................................................                         
----------------------------------------------------------------------                                                         
Ran 483 tests in 117.137s 
```

This is far too long for 483 tests; we're spending nearly 0.2s a test. It would be good to understand why these tests take so long.

### Versions

master

cc @mruberry
Repository: material-ui
Issue: [migration] How can I replace makeStyles in my code?
Labels: docs,support: question,v5.x migration

I'm sorry, that's kind of a novice question.
I'm currently transferring from material-ui v4 to mui v5 and I used to have a lot of makeStyles and jss styling in the code. 
I would like to ask what is the most appropriate way to replace makeStyles for creating classes based on theme variable values. I have code like this:

`
const useStyles = makeStyles((theme) => ({

  box: {
    marginTop: theme.spacing(0.5),
    marginLeft: theme.spacing(-2.5),
  },

  table: {
    maxHeight: '50vh',
    overflow: 'auto',
    maxWidth: `calc(100vw-${theme.spacing(5)})`,
    marginRight: theme.spacing(2.5),
  },
tableCell: { padding: `${theme.spacing(0.5)} ${theme.spacing(1)}` },
  [`@media (max-width: ${mdWidth}px)`]: {
    tableCell: {
      fontSize: '0.6em',
      padding: `0px ${theme.spacing(1)}`,
    },
  },
  [`@media (min-width: ${mdWidth}px)`]: {
    box: {
      marginTop: theme.spacing(0.5),
      marginLeft: theme.spacing(0),
      marginRight: theme.spacing(2.5),
    },
  },
}
)`
  
  If possible, I would like to use a kind of jss solution and not pure css. I know about styled() approach, but wanted to ask if there are more appropriate ways of styling components with classes?
  
  Thanks in advance :)
Repository: vscode
Issue: screenreader reading of inline errors
Labels: feature-request,accessibility,error-list,languages-diagnostics

Issue Type: <b>Feature Request</b>

# feature description

We already have audio queues for when the focus goes over a line that contains errors, perhaps to give us the same experience sighted people have, where they see the errors underlined in red I believe. Next step, the same way sighted people can mouse over the portion of code underlined in red to see a tool-tip with the error message, we should also get the same information either by explicitly pressing a key, or through the mechanism that's already used for parameter hints

# how should it work?

1. Open a file in vscode, the language should be detectable and an extension that provides the language server should be installed
2. If there isn't any error, make one
3. With the arrow keys, go over that line. If everything is working right, you should hear the tone meant for errors

now, you could either wait a bit longer while on that line to hear the error text if using the parameter hint mechanism, or press a key command to do the same thing if you think the params hint way is too noisy and you want the users to have explicit control over when the screen-reader reads the error content.  
yes, I know I could use the problems view, but sometimes I have so many errors and warnings from other files as well, that the error I'm literally focused on is lost in the noise.  
I could also use the mouse over command, but that only works as long as my cursor is focused on the part of the line where the underlining in red begins. Since I don't have any way to know where that is, I can't use that feature as it is. Furthermore, the mouse over command pops up a tool-tip which moves the focus of the screen reader, requiring me to press the escape key to get back to the editor, so going through the problems view or issuing the next/previous problem commands would end up being more efficient.

# environment information

VS Code version: Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:46:01.075Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No


<!-- generated by issue reporter -->
Repository: pytorch
Issue: __torch_function__ callers should always pass kwargs
Labels: triaged,module: __torch_function__

### 🐛 Describe the bug

It is such a pain to always have to write:

```
if not kwargs:
    kwargs = {}
```

we should just unconditionally pass in the kwargs argument with a fresh empty dictionary

### Versions

master

cc @hameerabbasi @rgommers @peterbell10