WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Symfony version(s) affected: 3.4

Description

Implementing the AuthenticatorInterface instead of extending AbstractGuardAuthenticator still throws deprecated message

I wrote a class FormAuthenticator that extended the Guard AbstractGuardAuthenticator. After upgrading from 3.3 to 3.4 (as an LTS version), I ran Psalm, which told me that this class was deprecated. It tells me to not extend from Guard AbstractGuardAuthenticator, but instead to implement Guard AuthenticatorInterface. However, the AuthenticatorInterface extends from the GuardAuthenticatorInterface, which is also deprecated.

How to reproduce

Try to implement a Guard implementing the recommended Interface for Symfony 3.4, by using

symfony/src/Symfony/Component/Security/Guard/AuthenticatorInterface.php

Line 26
in
143bdfc

interface AuthenticatorInterface extends GuardAuthenticatorInterface

Possible Solution

Duplicate the code from the Interface, instead of extending the replacement from the deprecated interface.

Issue 2:
I'm getting "Expected a Boolean." when null is passed in to a form using a checkbox, because the object backing the form is empty and has no data. Why can't null be a valid data passed to the BooleanToStringTransformer?
Issue 1:
var A = {
test: () => {this}
};

why is this in code above translated to undefined instead of pointing to object itself?

Issue 2:
When using the npm library thinky, I have the following snippet of code:

User.pre('save', (next) => {

console.log("pre save event\n", this)
next()

})

Where this will be undefined. However, if I change the arrow function to an ES5 function:

User.pre('save', function(next) {

console.log("pre save event\n", this)
next()

})

this is defined as expected. What would cause this to be undefined with an arrow function?
Issue 1:
Version

2.6.11

Reproduction link

https://jsbin.com/zebewujipu/edit?html,output

Steps to reproduce

点击 点我没反应

What is expected?

弹出对话框并显示：点了我

What is actually happening?

什么都没发生

Issue 2:
Version

2.6.11

Reproduction link

https://jsfiddle.net/u5kba8ty/

Steps to reproduce

No steps needed on the repro.

The repro should render a, b, c, d, however it only renders a, c

Also the console shows an error message

What is expected?

The repro should render a, b, c, d,.

What is actually happening?

The repro should renders a,c and there is an JavaScript error

TypeError: "c$1.elm.getBoundingClientRect is not a function"

The merge request to fix this issue is already created: https://github.com/vuejs/vue/pull/11128/files
Issue 1:
[See PR #9355]

Issue 2:
I'm trying to calculate the gradient (df/dx, df/dy) of a 2D function f(x, y) with unevenly spaced data.

Is there a function do to this in numpy? What is the correct syntax?

I've tried using numpy.gradient but can't get the syntax right.

For example:

import numpy as np

x = np.array([0, 1, 2, 2, 0])
y = np.array([0, 1, 0, 2, 2])
f = x + y

I expect np.gradient(f, x, y)) to calculate the right values ([[1, 1], [1, 1], [1, 1], [1, 1], [1, 1]]) but I'm getting an error.

f is An N-dimensional array containing samples of a scalar function., and after that x, y is N arrays to specify the coordinates of the values along each dimension of F. The length of the array must match the size of the corresponding dimension (definition 3. of *varargs).

Other variants (e.g. np.gradient(f, np.array([x, y])) don't work either. I can't find a similar example in the documentation. Is there perhaps a different function for this type of gradient calculation? Many thanks
Issue 1:
The x86_64 binaries for Linux are probably built with march that is not x86-64. As a consequence, CPU instructions that are not supported by old Intel x86_64 CPUs are produced.

The binaries are not able to run on an x86-64 Linux system with an Intel Pentium 4 Prescott HT630 CPU, for example. The GCC march for that CPU is nocona. Could you double check what march is set to compile LLVM and consequently Julia, which produced the x86_64 binaries for Linux?

This bug also affects packages that download libraries (such as gdal), when these libraries are compiled with an march setting that is not x86-64.

I have been able to produce a working x86_64 binary of Julia by compiling Julia using march=x86-64 on the old Intel CPU. However, I do not know how to fix the ready compiled libraries that are downloaded from servers when adding packages.

Issue 2:
https://julialang.org/downloads/platform.html

Surprising: the words Ubuntu and/or Debian aren't mentioned at all.

Generic Linux installers are problematic because they require the user constantly to remember to check/upgrade/remember where installed etc. I see the default snap/apt on 19.04 is Julia 1.04. Shouldn't there be an apt (and possibly yum or rpm) custom repository for later versions?
Issue 1:
Jeff Johnston opened SPR-7040 and commented

I found a bug that surfaced in Spring 3.0.1. The problem is with binding a value to a map with the form select tag.

In my JSP I have the following select tag. This will bind to a Map<String, String> field in my command object.

<form:select path="questions[${question.key}]" cssClass="${question.key}" items="${question.answers}" itemValue="key" itemLabel="name"/>

If I do a view source I can clearly see the problem.

In Spring 3.0 I have this:

<select id="questionsARTISAN_ARMOIRE_WOOD" name="questions[ARTISAN_ARMOIRE_WOOD]" class="ARTISAN_ARMOIRE_WOOD"><option value="001" selected="selected">Cherry</option><option value="002">Walnut</option></select>

In Spring 3.0.1 I have this:

<select id="questionsARTISAN_ARMOIRE_WOOD" name="questionsARTISAN_ARMOIRE_WOOD" class="ARTISAN_ARMOIRE_WOOD"><option value="001" selected="selected">Cherry</option><option value="002">Walnut</option></select>

Notice how the name is "questionsARTISAN_ARMOIRE_WOOD" instead of "questions[ARTISAN_ARMOIRE_WOOD]". The brackets got dropped in 3.0.1.

Affects: 3.0.1

Issue Links:

#11537 Spring MVC regression: binding to indexed properties is broken ("duplicates")

Issue 2:
Michal Fijas opened SPR-7603 and commented

We use AbstractPollingMessageListenerContainer with default receiveTimeout. When timeout expires the following code executes:

noMessageReceived(invoker, sessionToUse);
// Nevertheless call commit, in order to reset the transaction timeout (if any).
commitIfNecessary(session, message);

but session is null, causing NPE in commitIfNecessary(). Shouldn't it be commitIfNecessary(sessionToUse, message) instead?

Affects: 3.0.4

Issue Links:

#12136 Setup of JMS message listener invoker failed for destination when upgrading from 3.0.2 to 3.0.4 ("duplicates")
Issue 1:
Bug report

[Note: unclear to me whether this issue comes from Webpack, Babel, or the combination of the two, @Timer suggested bringing this here]

What is the current behavior?

Bundling an ES6 module using the rest/spread syntax somewhere in the file works, but if the same file uses a CommonJS format instead, it throws a bundling error unrelated to the syntax.

Steps to reproduce.

Create a vanilla create-react-app app with react-scripts@2.1.2.

Create two files: src/es6.js and src/cjs.js.

// es6.js
export default ({ foo, ...rest }) => true;

// cjs.js
module.exports = ({ foo, ...rest }) => true;

Run npm start or yarn start.

Import both of them into App.js, one at a time:

import es6 from "./es6.js";
// then
import cjs from "./cjs.js";

A full repro is here: https://github.com/veltman/webpack-babel-bug-repro

What is the expected behavior?

Importing either file should bundle successfully. Instead, importing the ES6 module works, but importing the CJS version throws one of two errors during bundling, depending on whether it's the first attempt to build or a subsequent attempt:

Attempted import error: './cjs.js' does not contain a default export (imported as 'cjs').

or

TypeError: Cannot assign to read only property 'exports' of object '#<Object>'

This appears to be specific to the language features being used. If I replace the rest/spread with plain destructuring (({ foo, bar }) => true), both files work, they're transpiled and bundled without an error.

webpack version: 4.19.1

Node.js version: 10.13.0

Operating System: OS X

Additional tools: react-scripts

Issue 2:
Bug report

What is the current behavior?

Currently it is not possible to consume federated module inside of web worker.

If the current behavior is a bug, please provide the steps to reproduce.

Try to import federated module inside of web worker script.

Theres a repo with reproduced issue.

https://github.com/grzesiek-ds/webpack-mf-workers

What is the expected behavior?

It should be possible to import federated module inside of web worker script.

Other relevant information:

webpack version: 5.74.0 (also applies to 5.75.0)

It seems that this might be the same issue as in #16173, although I'm not sure.

I've tried to include mentioned plugin in host application webpack config, but it gave no effect.

@edusperoni @ScriptedAlchemy if You have any additional information, or possible fix/workaround, please share.
Issue 1:
I know this has been asked several times, however I'm surprised I couldn't find an entry suggesting an approach similar to Webpack+Nativescript where webpack reads vars from the environment and passes down a static object with the values set. In this case it could work by reading a very specific pattern from the cli's parameters, like:

$ flutter run/build --env.DEBUG

And then it would just be a matter of initializing a static data structure that would hold the passed parameters:

if (flutter.env.DEBUG) {
print("DEBUG")
}

I am aware of the multiple entry points approach, but I think it becomes unintuitive when the dev environment changes constantly (e.g. having a PC at work and also working from home or while traveling), let alone when working with more people and each has their own dev environment and you end up polluting the working tree just to change an IP to test a change with a local server.

Issue 2:
Use xcode export ipa file, reported the following error, xcode 9.2 version

ipatool failed with an exception: #<TypeError: no implicit conversion of nil into Array>
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2767:in `&'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2767:in `bestDeviceTraitsForBundle'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1209:in `block in makeDeviceTraitsToDeviceTypesMapForDeviceIdentifiers'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1194:in `each'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1194:in `makeDeviceTraitsToDeviceTypesMapForDeviceIdentifiers'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2464:in `block in ProcessIPA'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2442:in `each'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2442:in `ProcessIPA'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2938:in `<main>'
Issue 1:
Summary of the new feature/enhancement

Right now it's possible to set space around pre-made zones (Columns, Rows, Grid, Priority Grid).

It would be nice to have that option for custom zones we define for ourselves.

Proposed technical implementation details (optional)

I suppose shrinking all the zones by the space value should work.

Issue 2:
Disabling the "space around zones" setting does not work for custom templates. Even when editing the "Selected layout" with Space around zone disabled, the duplicated template has it enabled again.
Issue 1:
If THREE.CubeTextureLoader is used scene.toJSON() crashes

function getDataURL(image)

line 3737 context.drawImage(.. // param is an array of the 6 images of the CubeTexture

Three.js version

Dev

r93

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Issue 2:
so this file here has some 120K tris and 3 x 2K textures, however when I drop it into 3js editor fps goes out the window. I get much better performance in https://sandbox.babylonjs.com/ with the same model.

@donmccurdy could it be related to the fact that, for some reason, 3js loader duplicates the textures for each map in every material across the model? here, we have 4 identical materials with 5 maps, 3 of them being same texture, but 3js creates 20 textures for this:

glb file in zip below:

three_js_problem_model.glb.zip
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The Select component's onChange prop should probably expect (event: React.FormEvent<HTMLSelectElement>) => void type.

Current Behavior

Currently it expects (event: React.FormEvent<HTMLDivElement>) => void. With this even the example from docs doesn't work with Typescript as the EventTarget of HTMLDivElement doesn't have the value property.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.10

React
15.6.1

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

We are using withStyle() to overload our components and access classes at rendering. Note that I am unsure we were using it the way it was intended to be. Please check the code below for a quick example.

const styles = {
logo: {
maxWidth: '420px',
},
};

export interface IProps {
readonly classes?: any;
}

class ExampleComp extends React.Component<IProps, {}> {
public render(): JSX.Element {
return(<Grid item sm={12} className={classes.logo}>&nbsp;</Grid>);
}
}

export default withStyles(styles)(ExampleComp);

Current Behavior

Since beta10 and Pull Request #8178, ExampleComp signature throw an exception when overload by withStyle() as the props Classes cannot be nullable. Problem : this is forcing us to pass a dummy classes props when calling the component.

Is it normal that classes is not nullable?

Your Environment

Typescript / Visual Studio Code

Tech
Version

Material-UI
beta10

React
15.6
Issue 1:
Feature request

To disable cache, you can use cdp_session.send:

cdp_session = page.context.new_cdp_session(page)
cdp_session.send('Network.setCacheDisabled', {'cacheDisabled': True})

To be more readable, we could have the method: page.set_cache_enabled(enabled)

enabled: Boolean value, i.e. one of True or False. Set the enabled state of the cache.

Issue 2:
Chromium will cache js & css files ,but the cache is disabling when using route action

So,Is there any way to enable http cache when using route ?

Cause i hope to reduce the number of requests
Issue 1:
Vijay Dendukuri opened SPR-8546 and commented

When "RequestResponseBodyMethodProcessor" is used to handle the return value (by annotating the method with @ResponseBody), the HttpMessageConverter is choosen based on request header "Accept".

Please provide an ability to also choose a HttpMessageConverter based on pathExtension (similar to ContentNegotiatingViewResolver).

The HtppMessageConverter is choosed in the following class now.

org.springframework.web.servlet.mvc.method.annotation.support.AbstractMessageConverterMethodProcessor

Method: writeWithMessageConverters

Affects: 3.0.5

Issue Links:

#11163 @RequestMapping should support accept header and url extension ("duplicates")

#13057 Content negotiation improvements ("duplicates")

Issue 2:
Oliver Drotbohm opened SPR-6671 and commented

There is a subtle issue with EventListener handling. EventListeners are generic since Spring 3.0 and works perfectly fine in most cases. Suppose the folloeing case:

You have an interface as well as an implementation. The implementation is using @Transactional for transaction demarcation and implements EventListener<ContextRefreshedEvent>. As there is a JDK dynamic proxy created by Spring, the reflective lookup of the event type fails, which causes Spring to assume the implementation actually declares a raw EventListener and thus also hands ContextClosedEvent e.g. which then in turn leads to a ClassCastException as the method only accepts ContextRefreshedEvent as parameter.

The major problem is that I see no correct way of solving this as Spring cannot simply reject the listener instead of blindly handing all events to it. As the main issue with the current situation is, that it is not really obvious why the ClassCastException occurs, a feasible solution might be to check the inspected listener instance for implementing Adviced and log a warning if also implements EventListener and does not return the event type.

Test case reproducing the issue attached.

Affects: 3.0 GA

Attachments:

event-listener-bug.zip (10.71 kB)

Issue Links:

#11262 Parameterized ApplicationListener does not work with AOP proxies ("duplicates")
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
I find that Popovers with 'click' as its trigger is kind of useless when you have many of them opened at the same time, and you have to manually go through and close each one of them. Can we request to have ONE additional popover option?

data-backdrop

Which works the same like modals closing on click. I believe this is rather straight forward and we will find very useful.

Issue 2:
I find that Popovers with 'click' as its trigger is kind of useless when you have many of them opened at the same time, and you have to manually go through and close each one of them. Can we request to have ONE additional popover option?

data-backdrop

Which works the same like modals closing on click. I believe this is rather straight forward and we will find very useful.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I would love either native support for custom scrollbars or some guidance on how to get at components buried within other components (such as the <Menu> component within a <Select> component) to add external custom scrollbars.

Current Behavior

Currently, after searching the issues, there doesn't seem to be any talk about using custom scrollbars. (sorry if I missed it, I looked through about 4 pages) I am unable to find a way to wrap the <Menu> called from <Select> in my own custom scrollbar component.

Steps to Reproduce (for bugs)

Use <Select> with a fixed height menu and notice that it uses the browsers default scrollbar. For example, the Multiple Select demo.

Context

I have been able to wrap other Material-UI components in my custom scrollbar, but I am unable to get at components called from other components, such as <Select>, so some of my elements have custom scrollbars and others do not.

Your Environment

Tech
Version

Material-UI
beta.27

React
15

browser
chrome

OS
OS X

Issue 2:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The CircularProgress should rotate on it's axis

Current Behavior

When you apply a size of 12 the CircularProgress performs an odd double rotation

Steps to Reproduce (for bugs)

See https://www.webpackbin.com/bins/-Kv1BRoDe0BTrUHaR2mY

Your Environment

Tech
Version

Material-UI
Master

React
16.6.1

browser
Chrome

I believe this issue can be fixed by changing line 42 of CircularProgress from:

position: 'relative',

to

position: 'absolute',
Issue 1:
It would be nice to be able to write:

[f() for 1:n]

instead of

[f() for _ in 1:n]

Here is some context: I wanted to build a Vector{Vector{Float64}} containing empty Vector{Float64}s.

Array(Vector{Vector{Float64}}, n) doesn't work because the inner vectors are undefined. repeat(Float64[], outer=[n]) doesn't work because it is just concatenating empty arrays. collect(repeated(Float64[], n)) works and so does [Float64[] for _ in 1:n], but it could be prettier. That's why I am proposing this teaspoon of syntactic sugar.

Not a game changer but it could be a nice little addition.

I apologize if this was brought up before. I couldn't find it.

Issue 2:
Especially with comprehensions I do this by accident fairly often:

[@elapsed f() for 1:10]

We could support the same for loops:

for 1:10 f() end

Not super crucial, but seems like something we might as well allow.
Issue 1:
i use "Glide.with(MainActivity.this).load(url).asGif().into(imageView);" and look netwrok,after 5s imageview not load gif, but i use diskCacheStrategy(DiskCacheStrategy.SOURCE) can load gif.

Issue 2:
First I want to thank you for this awesome library. It's help me to play gif in imageview, after two weeks of try and search I found that Glide better than all other libraries.

But when try load gif (its size more than 200KB) from url Glide fail to load url and appear error drawable. this is my code:

Glide.with(this)
.load(gif_url)
.asGif()
.error(getResources().getDrawable(R.drawable.error))
.into(imageview);

I try loading same url by Ion library and It work normal.

Internet is slow in my country but despite this Ion work fine and Glide not.

my questions are:

Is there way to increase Glide ability in loading url to be like Ion?

Is there any other one have like problem or all works fine with them? I don't want to publish my app and get review that gif not work.

If there is no answer to Q1 I have no way only to download gif by Ion and then showing it by Glide and this is code i write to do:

Ion.with(this)
load(gif_url)
.write(file)
.setCallback(new FutureCallback<File>() {
@Override
public void onCompleted(Exception e, File result) {
Glide.with(getBaseContext())
.load(result)
.asGif()
.diskCacheStrategy(DiskCacheStrategy.NONE )
.error(getResources().getDrawable(R.drawable.erorr))
.into(imageview);
}
});

Please tell me if you have any suggestions to fix this problem.

Thank you very much for making Gilde and I hope get answers

Sorry for my weak English
Issue 1:
Recently, I stumbled upon this article about validating emails:

https://davidcel.is/posts/stop-validating-email-addresses-with-regex/

We know that validating emails is a complex topic and depending on a lot of factors, people want something stricter than just checking for @ or something simpler than an email being "right".

Lots of issues have being creating along the years here about this issue (I wanted to list them all here for reference, but there are just too many of them :)).

What's interesting I think (and I don't remember it being mentioned before but I might be wrong), is how HTML5 actually validates emails:

https://www.w3.org/TR/html5/forms.html#valid-e-mail-address

Would it be a good middle ground that we could offer as a third alternative to our users?

Issue 2:
Problem

Validating email addresses is absurdly complex.

We've received tens of issues in the past years about this validation.

Solution

Let's simplify the email validator to just check that email addresses "look valid" using a good regexp.

If you need to validate that the email is real, send a confirmation email (by the way, do you know any serious service which doesn't send a confirmation email after signing up?).

HTML5 Standard proposes this regexp to validate emails:

/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}
[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/

Proposal

Update the regexp of the EmailValidator to use the HTML5 regexp

Deprecate strict option

Deprecate checkMX option

Deprecate checkHost option