WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Alef Arendsen opened SPR-1725 and commented

Using the new schema support we can greatly simplify the configuration of Spring Web MVC. I'll be adding schema and parsers incrementally over the next couple of days.

Issue Links:

#7452 configuring a SimpleUrlHandlerMapping through a schema ("is duplicated by")

#10972 Add mvc namespace for simplifying setup of Spring MVC ("is duplicated by")

4 votes, 6 watchers

Issue 2:
Oleksandr Alesinskyy opened SPR-2522 and commented

There is a following problem -

@Transactional applied to interface (or its method) behaves differently depending on value of proxy-target-class attribute of tx:annotation-driven tag,

namely:

If proxy-target-class is false annotation on interface is granted and all behaves as expected

if proxy-target-class is true annotation on interface is ignored (unless duplicated in class itself)

As far as I understand it should affect not @Transactional only, but the whole Spring AOP, e.g. aop:config tag.

For me it is hard to say if it can be helped, but at least it shall be documented. Chapter 6.6. of Reference Guide (pages 108 and 109 in PDF) lists some issues with this property (for aop:config tag) but not this one, which IMHO is the most important of them.

I have to suggestions

Clearly document this behavior in separate subchapter and make direct reference to this piece of documentation from all affected tags.

Extend syntax for tx:transaction and other affected "global" tags (if any) to allow filtering of classes affected by this property. aop:config is already able for such filtering. Another (simpler) alternative - provide in documentation an evident sample of aop:configy based configuration that is eqvivalent to tx:annotation-driven tag (as far as I understand it should exist).

Affects: 2.0 RC3

Issue Links:

#7267 Spring does not inherit @Transactional correctly when <aop:config target-class-proxy="true" /> ("is duplicated by")
Issue 1:
Bug summary

When drawing with hatches, dots show up in PDF as circles but they render fine as PNGs.

Code for reproduction

import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(6, 3))
ax.bar([1], height=4, hatch=".")
plt.savefig("demo.pdf")

fig, ax = plt.subplots(figsize=(6, 3))
ax.bar([1], height=4, hatch=".")
plt.savefig("demo.png", dpi=300)

Actual outcome

PDF

demo.pdf

PDF converted as png

PNG

Expected outcome

The PNG and the PDF should look the same.

Additional information

No response

Operating system

macOS 12.3.1

Matplotlib Version

3.4.3

Matplotlib Backend

module://matplotlib_inline.backend_inline (inside jupyter notebook), PDF backend when generating PDF

Python version

Python 3.8.9

Jupyter version

6.4.0

Installation

pip

Issue 2:
Bug report

Bug summary

The baseline images for the test_clipping test (clip_path_clipping.{png,pdf,svg}) clearly show differences in rendering between agg, pdf and svg:

top left is the svg baseline rendered by inkview (inkscape) 0.92.2, top right is the png baseline, bottom left is the pdf baseline rendered by okular 17.08.3, bottom right is the pdf baseline rendered by gs 9.22 (gs is used by the testing framework to rasterize the pdf for image comparisons).

Code for reproduction

N/A

Actual outcome

the colors of the stars are slightly different between png and svg.

the pdf backend render the stars as empty rather than filled.

Expected outcome

All three backends should render hatching in a similar manner.

(As a side note, mplcairo generates pdf and svg that render like the png.)

Matplotlib version

Operating system:

Matplotlib version: master

Matplotlib backend (print(matplotlib.get_backend())):

Python version:

Jupyter version (if applicable):

Other libraries:
Issue 1:
Run 'flutter doctor' from VSCode command palette:

[flutter] flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
✗ Missing Xcode dependency: Python module "six".
Install via 'pip install six' or 'sudo easy_install six'.
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2017.2.7)
[!] VS Code (version 1.25.1)
[✓] Connected devices (1 available)

! Doctor found issues in 2 categories.
exit code 0

Run flutter doctor -v in terminal

[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en-CN)
• Flutter version 0.5.1 at /Users/wolfg/Dev/lib/flutter
• Framework revision c7ea3ca377 (8 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /usr/local/share/android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /usr/local/share/android-sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2017.2.7)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25

[!] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected devices (1 available)
• iPhone X • 73056EF7-1637-4DE2-91C6-60449C983145 • ios • iOS 11.4 (simulator)

! Doctor found issues in 1 category.

Issue 2:
I'd like to use camera and save photo to external storage in my own folder.

How can I get Write/Read External Permissions?
Issue 1:
When an input group with an input group button is used with ,.navbar-right, it causes the input field and the button to break onto a new line when viewed in Chrome.

It displays correctly in Firefox.

See the following fiddle, but make sure you view it at a size of tablet or greater:

http://jsfiddle.net/binvisions/Ygz2n/

Also, see the screenshot attached for a Firefox vs. Chrome comparison:

Issue 2:
When you have an input-group (I've only tested it with a button) inside a navbar the form doesn't align and makes the navbar height way longer.
Issue 1:
🐛 Bug

I met the following error when I was using pytorch 1.6 with LSTM

RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM

To Reproduce

I think the root cause was that I was using the mixed precision training mode in pytorch 1.6 following https://pytorch.org/docs/stable/notes/amp_examples.html

and the datatype might be converted to fp16 which causes this error.

When I train my model with full precision, it worked normally.

cc @csarofeen @ptrblck @zou3519

Issue 2:
🐛 Bug

get cuDNN error: CUDNN_STATUS_BAD_PARAM in cnn-lstm network forward method

To Reproduce

import torch
from torch import nn, optim
from torch.cuda.amp import GradScaler, autocast

class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv1d(1, 10, 2)
self.lstm = nn.LSTM(input_size=10, hidden_size=10,
batch_first=True,bidirectional=True)

def forward(self, x):
x = self.conv1(x)
x = x.permute(0, 2, 1)
x, _ = self.lstm(x)
return x

net = Net().cuda()
net.train()
optimizer = optim.SGD(net.parameters(), lr=1e-3)

scaler = GradScaler()

optimizer.zero_grad()

with autocast():
output = net(torch.rand(10,1,10).cuda())

Environment

torch==1.6.0 nightly (2020-04-10)

@mcarilli

cc @csarofeen @ptrblck
Issue 1:
Duplication of babel helpers is a problem that hasn't yet been fully solved. It's solved from a userland code standpoint, but not solved when you consider node_modules that use babel in a prepublish step.

Expected Behavior

Standalone babel helpers package

There should be a babel-helpers-standalone package, with main and module package.json fields that correspond to the babel helpers formatted as a CommonJS file and ES Modules file, respectively. The ES Module format will enable tree-shaking with compatible module bundlers.

Option for babel-plugin-external-helpers to consume an external package

There should be the ability to consume the standalone babel-external-helpers package when transpiling an application and/or library. So rather than referencing a global, this could be turned into an import (ES Modules, with tree shaking) or require (CommonJS). This could look something like:

{
"plugins": [
["external-helpers": {
"package": {
"name": "babel-external-helpers",
"format": "es"
}
}]
]
}

This would yield something like:

import {classCallCheck as _classCallCheck} from "babel-external-helpers";

// ...

Now anytime a module author publishes transpiled code using this option, they will be de-duplicated. Futhermore, if the application developer consuming these modules also transpiles their code, they can use the same external-helpers configuration and de-duplicate these helpers that are in their application code. In this case, all helpers, whether in node_modules or otherwise, will be de-duplicated (assuming semver compatibility).

Current Behavior

If I publish a transpiled module, either:

I inline the babel helpers. This is sub-optimal because these helpers will potentially be duplicated many times in the consumer's browser bundle.

Use babel-plugin-external-helpers and reference a global babelHelpers variable. This is sub-optimal because any consumer of my library will not be able to use my library out of the box.

Context

I'm a module author and application developer

As a module author, I publish my modules a Rollup builds in both CommonJS and ES Modules formats (using the main and module fields of the package.json)

The consumers of my modules don't transpile node_modules

The consumers of my modules use a tree-shaking module bundler that supports ES Modules syntax

The consumers of my modules want the babel helpers to be de-duplicated in the resultant bundle (across all node_modules as well as userland code)

This proposal should be relatively straightforward to implement, I'd be happy to work on a PR. This could be done fully via userland plugins, but the value of this is greater when everyone (particularly module authors) standardizes on the same external dependency.

Issue 2:
Hi, I just tried to extend Array in your playground, and tested it then again in an traceur playground

class FooArray extends Array {
constructor(a) {
super(a);
}
}
var e = new FooArray();
e.push('bar');
console.log(e);

6to5: {"0":"bar","length":1}

tracur: ["bar"]
Issue 1:
Electron version: 0.37.8

Operating system: win 10x64

I'm loading a page using BrowserWindow, win.loadURL() and dialogs (confirm, alert, etc) does not apear.

For example, loading 'http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_confirm' and clicking the button it does not appear the alert window, IDEM for any loaded page and loading the page with webview

Issue 2:
Currently there's no support for alert and confirm dialogs in iframes (see discussion in #2522).

Once the "Session wide preload script" #2605 is ready, I think we should implement a default preload that will add the missing dialogs (kind of like what override.coffee does for the parent window).
Issue 1:
Sivakumar opened SPR-4851 and commented

Can any send the replacment method for the public static int countParameterPlaceholders(String str,

char placeholder,

String delimiters) in the spring 2.5.4

Issue Links:

#9520 Replacement method for JdbcUtils.countParameterPlaceholders in spring 2.5.4 ("duplicates")

Issue 2:
Marieke Vandamme opened SPR-5047 and commented

There seems to be a bug while using hessian in combination with spring framework for remoting.

Outputstream is not closed correctly, and part of the serialized output data gets lost.

This does not occur while doing the same with hessian-only remoting, so this should probably be resolved within spring.

The missing "close" method should be placed in:

org.springframework.remoting.caucho.Hessian2SkeletonInvoker

Close method on output stream needs to be applied after method:

this.skeleton.invoke(in, out);

A test client & server is included for simulation. Batch file launches the client, and war needs to be deployed in servlet engine running on 8080 (both on 1 computer). All source code is located in the "SpringHessianIssue.jar" file

Affects: 2.5.5

Issue Links:

#9721 Exception on client while performing remoting ... error = "expected string at end of file" ("is duplicated by")
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

[Y ] I have checked the superset logs for python stacktraces and included it here as text if any

[ Y] I have reproduced the issue with at least the latest released version of superset

[ Y] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.22.1

Expected results

Rearranging fields on "group by" and "metrics" should be easy. Using drag and drop, we should be able to rearrange it.

Actual results

I am not able to rearrange fields on fields chosen on "Group by" and "Metrics". To rearrange it, I have to delete all chosen fields and then arrange it in required order.

Steps to reproduce

Rearrange the fields chosen on "group by" or "metrics"

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.18.5

Expected results

The order of columns in the Group by field can be reshuffled by dragging them to a different position.

This worked, e.g., in superset 0.15.4.

Actual results

There is only one clickable area on each tab in the list of selected Group by columns and this is the × for removing the column. The tabs are not otherwise clickable and thus not draggable to a different position.

Steps to reproduce

Select more than one Group by column and try to drag either of them onto the position of another one.
Issue 1:
When creating and using an enum (TypeScript 1.4, Visual Studio 2013). When I build the project the enum value is compiled to a number, but if I save the file the compiled output is the full name of the enum. For example:

// enum.ts
enum SomeEnum {
One = 1,
Two = 2
}

// consumer.ts
class Consumer {
public doSomething(): void {
var x: SomeEnum = SomeEnum.One;
}
}

When the project is built, it compiles to:

var Consumer = (function () {
function Consumer() {
}
Consumer.prototype.doSomething = function () {
var x = 1 /* One */;
};
return Consumer;
})();

However when I edit and save "consumer.ts" it compiles to:

var Consumer = (function () {
function Consumer() {
}
Consumer.prototype.doSomething = function () {
var x = SomeEnum.One;
};
return Consumer;
})();

The issue is that the enum values are sitting in a DomainModels.d.ts file (that is converted from C# using TypeLite). So the definition of the enum is never included in the output.

The preferred output would be always compiling to a number.

Issue 2:
I have an enum in an interface that, when used in my TS code in TypeScript 1.3, was output as a constant. This is no longer the case in 1.4 after saving my file. When i build the project, the enum code is properly output as a constant. Using VS 2013 update 4 with TypeScript 1.4 installed.

Enum declaration file (Colors.d.ts):

declare module server {
enum Colors {
Red = 0,
Green = 0,
Blue = 0
}
}

TS Code:

if(box.color === server.Colors.Red) {
...
}

JS Output after save:

if(box.color === server.Colors.Red) {
...
}

JS Output after build (correct, or what i consider to be correct since there is no implementation of the enum):

if(box.color === 0 /* Red */) {
...
}

The same is observed if the enum is declared using the new "const enum" feature.
Issue 1:
Context:

Playwright Version: 1.27.1

Operating System: Mac

Node.js version: 16.13.1

Browser: Chromium at least, but likely all.

Extra: On M1 Mac Ventura

Code Snippet

Small repo that shows the issue

Describe the bug

I have global setup configured in playwright-config.ts:

globalSetup: "./global-setup",
use: {
// Tell all tests to load signed-in state from 'storageState.json'.
storageState: "storageState.json",
},

This global setup fails to apply. The test in login.spec.ts fails to "see" the localStorage info that is persisted in storageState.json. As a workaround, I can add this to the top of login.spec.ts, and it works:

test.use({
storageState: "storageState.json",
});

But that shouldn't be necessary per these docs: https://playwright.dev/docs/auth#reuse-signed-in-state

Issue 2:
there are some launchOptions that playwright completely ignores, even in headed mode, like --show-fps-counter

and then even for the ones it honors (like --credits and --version ).

We discovered this problem when we were adding this configuration:

projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], launchOptions: { args: [ '--disable-blink-features=AutomationControlled', // needed for gsl so google doesn't flag it as not secure ], }, }, },

seems like this configuration is only working on headed mode, in headless mode it is not working

System info

Playwright Version: [v1.35.1]

Operating System: [MacOS ventura 13.4.1]

Browser: [Chromium] (didn't test on others)

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

private repository

or

Config file

projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: [
'--disable-blink-features=AutomationControlled', // needed for gsl so google doesn't flag it as not secure
],
},
},
},

Steps

[Run the test headless mode]

[the lauchOption are not taking as part of the tests]

Expected

the lauchOptions in headed or headless mode should be the same

Actual

the launchOptions are only working in headed mode and also some flags are not working in both
Issue 1:
... for the syntax suggested in "go help importpath" (no ".git" suffixing the url)

I've managed to make private repos work by appending ".git" to the url. However this complicates things since the filesystem install path will now include the ".git". Also, the import statements must then have it.

There are tons of questions about this issue (or private repos in general) all over stackoverflow etc. etc. and many answers or posts give confusing or old information that makes go hard to use for newcomers. The go packaging is hard enough to grasp for newcomers as it is; combine that with these private repo issues and the result is no doubt three times as difficult.

Issue 2:
by greatred:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Use http://play.golang.org/p/w45c_7mFyN as alignment.go
2. Execute `go run alignment.go`

What is the expected output? (where the pointer addresses can vary, although the lowest
nibble should be similar - this working output from linux/amd64)
0xc20005f000 0xc20005f008 0xc20005f010
v.A = 1
atomic v.A = 1
v.C = 2
atomic v.C = 2

What do you see instead?
0x10442100 0x10442108 0x1044210c
v.A = 1
atomic v.A = 1
v.C = 2
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x4 pc=0x4b0d0]

goroutine 1 [running]:
runtime.panic(0xa2fc0, 0x104000f0)
/usr/local/go/src/pkg/runtime/panic.c:266 +0x134
sync/atomic.loadUint64(0x1044210c, 0x2, 0x0)
/usr/local/go/src/pkg/sync/atomic/64bit_arm.go:10 +0x6c
main.main()
/home/huin/gopath/src/alignment/alignment.go:20 +0x430
exit status 2

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux/arm

Which version are you using? (run 'go version')
go versions that exhibit the problem:
* go version devel +5b367120d592 Thu Sep 19 17:12:00 2013 +1000 linux/arm
* I have also had this problem on release 1.1.2 on the same platform.

Unaffected version:
* go version go1.1.2 linux/amd64

Please provide any additional information below.

Looking at the last nibble of the pointer addresses leads me to believe that the 3rd
member of the struct `C` isn't being aligned on a 64bit boundary, causing trouble with
the sync/atomic.LoadInt64 instruction, which (I imagine) expects this alignment.
Issue 1:
I got into animation subject.

I get the same exception(s) with two different examples.

I searched the web, I tried to get my head around the exceptions, but now I'm stuck. hence this issue.

I don't know where is the problem.

The examples I ran:

official example: http://matplotlib.org/examples/animation/moviewriter.html

@tacaswell answer on stackoverflow: http://stackoverflow.com/a/13983801/662323

the exception(s):

python moviewriter.py
/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/tight_layout.py:225: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
Traceback (most recent call last):
File "moviewriter.py", line 34, in <module>
ani_frame()
File "moviewriter.py", line 31, in ani_frame
ani.save('demo.mp4',writer=writer,dpi=dpi)
File "/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/animation.py", line 718, in save
writer.grab_frame(**savefig_kwargs)
File "/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/animation.py", line 204, in grab_frame
dpi=self.dpi, **savefig_kwargs)
File "/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/figure.py", line 1421, in savefig
self.canvas.print_figure(*args, **kwargs)
File "/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 2220, in print_figure
**kwargs)
File "/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 497, in print_raw
renderer._renderer.write_rgba(filename_or_obj)
RuntimeError: Error writing to file

my configuration

macosx mavericks 10.9.4

anaconda bundle

matplotlib 1.3.1 (as 1.4.2 still doesn't work in my configuration, the ascii bug #3517 still prevails)

matplotlib.get_backend() gives 'MacOSX'

I've installed ffmpeg and mencoder (through homebrew)

matplotlib.animation.writers.list() recognizes both codecs

Any help on this? is it a bug or a problem with my configuration?

Issue 2:
I am having trouble saving my animations using ffmpeg 2.0.1

The temp files get created, but the call to ffmpeg fails with the following error:

Option vframes (set the number of video frames to record) cannot be applied to input file _tmp%07d.png -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file _tmp%07d.png.
Error opening input files: Invalid argument

I am assuming the way in which ffmpeg takes arguments has changed between versions?
Issue 1:
See https://docs.scipy.org/doc/numpy/reference/ for the NumPy 1.17 documentation. https://numpy.org/devdocs/ refers to NumPy 1.19 documentation.

From https://numpy.org/doc/, there is no mention of NumPy 1.18 documentation.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1826 on 2011-05-10 by trac user shegler, assigned to unknown.

When using custom named data types, the wrong element is reported as the conflicting one. The following snippet

dt=numpy.dtype([
('a','f8'),
('a','f8'),
('b','f8'),
])

reports:

Traceback (most recent call last):
File "dtype_bug.py", line 8, in <module>
('b','f8'),
ValueError: two fields with the same name

It should, however, report the name which occurs twice, "a" in this case.