WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug report

I made a repo here that shows all those behaviors, for making things easier I will use the names of the files from this repo. (click and press up/down/left/right to load everything dynamically).

https://github.com/Inateno/webpack4-full-dynamic

What is the current behavior?

Let's take dynamics module, Left, Down, both are using "Base". Base is included in both files.

Empty is using Left, we call Empty on the click during the execution, which include Left and Base sources, then we press Left key, this now download the Left bundle (but we already loaded this bundle while downloading Empty)..

What is the expected behavior?

For me, 2 options are acceptable.

include "Base" in the main chunk, actually to bypass the current behavior I include it in my main js file (this works but it's not cool).

create automatically a new chunk, it will be loaded when we call a module that require it (A,B,C or whatever).

Specific problem for Empty requiring Left:

This one is probably the easier to fix, when we download Empty, Left source is included, so the tree-shaking should "know" this Left dependency and it shouldn't ask for a download since it's already loaded in memory.

Other relevant information:

webpack version: 4,25,1 (check the package for more)

Node.js version: latest

Operating System: Mac OS 10,14 (but replicated on win8 to)

Additional tools: typescript, babel conf, webpack-dev-server

Let me know if I can provide more informations, but my demo is quite simple.

Issue 2:
I've got chunks split between head and body end, in some of the body end chunks it needs to reference things that were defined in the head chunk. If I require it in the body chunk, the dependency will end up in both head and body chunks. The only solution I can think of is having multiple compiler points and exporting the head dependencies and using them as externals in the body chunk, but I don't really want to do that. Is there a better way?
Issue 1:
Hi,

I'd like to divide my UltraWide Monitor in 2560 x 1440 (WQHD) and 880 x 1440 (rest).

Is it possible to enter this values in FancyZones ?

best regards

MBR89

Issue 2:
Summary of the new feature/enhancement

Sizing of custom zones in editor by dragging mouse is a little bit coarse (hit and miss) in terms of getting close to edges of screen symmetrically and allowing window edges of multiple zones to line up neatly. Some possible solutions are suggested for consideration.

Proposed technical implementation details (optional)

Perhaps have an option for the editor to snap to a grid of user specified n pixels.

Perhaps have optional ability to input window dimension and position directly in both absolute terms (n x n pixels) and in terms of percentage of screen width and height.
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 7 x64

Steps to Reproduce:

Open an HTML file

Type "someTag" and hit Tab, Enter

Closing tag is placed on newline at same indentation level as opening tag

On a new line, type "some-tag" and hit Tab, Enter

Closing tag is indented from opening tag

Issue 2:
VSCode Version: 1.10.1

OS Version: OS X 10.11.4

When using custom HTML tags, VS auto-align wrong way.

Steps to Reproduce:

Type some words about tags.

Press "Tab" key and auto complete will complete.

Press "Tab" key again, and the close tag will complete.

In tag, press "Enter" key to create new line. But the close tag is not align.

This happens on HTML custom tags, for tags like <a></a>, it will be good.
Issue 1:
As of now, all solutions to bonfires are saved to your profile instead of just the most recent one, which is great; it does, however, clutter up your profile, especially if you play around in the same bonfire a lot, adding stuff and testing it over and over. Could solutions to the same bonfire be stored in some sort of openable menu, so that each bonfire only appears on your profile once? Maybe the solutions part of the profile could look like the Map page and clicking the bonfire would show the solutions?

Issue 2:
Challenge Sorted Union has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// So my code passes 3 of 4 assertion tests but not one of them.

// Here it is: uniteUnique([1, 3, 2], [1, [5]], [2, [4]]) should return [1, 3, 2, [5], [4]].

// My code returns: [1,3,2,5,4]. It's the same but without the numbers 5 and 4 in an array.

// This is what it says in the instructions:

//"Write a function that takes two or more arrays and returns
//a new array of unique values in the order of the original provided arrays."

//"In other words, all values present from all arrays should
//be included in their original order, but with no duplicates in the final array."

//"The unique numbers should be sorted by their original order,
//but the final array should not be sorted in numerical order."

// My code returns what the instructions says it should return
//and does away with the array surrounding some of the values.

// Also, given that:

//var word;

// if ([5] == 5) {

// word = "bird";
//}

//...evaluates to true, meaning 5 is the same as [5], shouldn't my
//code's output for the assertion test in //question be accepted?

// **Thank you for your time and help in advance!**

function uniteUnique(arr) {

var joinedArray = [];

var newArray = [];

var finalArray = [];

for (i = 0; i < arguments.length; i++) {

var joined = arguments[i].join("");
joinedArray.push(joined);
}

joinedArray = joinedArray.join("");
joinedArray = joinedArray.split("");

for (z = 0; z < joinedArray.length; z++) {

if (z === 0) {

newArray.push(joinedArray[z]);
}

else {

var match = "no";

for (h = 0; h < newArray.length; h++) {

if (joinedArray[z] == newArray[h]) {

match = "yes";
}
}

if (match == "no") {

newArray.push(joinedArray[z]);
}
}
}

for (q = 0; q < newArray.length; q++) {

var numberized = Number(newArray[q]);

finalArray.push(numberized);
}

return finalArray;
}

uniteUnique([1, 3, 2], [1, [5]], [2, [4]]);
Issue 1:
Electron Version: 2.0.4

Operating System (Platform and Version): Ubuntu 14.04 64bits (on WMware)

Last known working Electron version: 1.8.7

Expected Behavior

The sample Electron app should run and display a window

Actual behavior

With Electron 2.x and 3.x the window loading hangs. Enabling debugging, the following error is showed when the process is terminated:

ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

To Reproduce

npm install --save-dev electron@2.0.4
./node_modules/.bin/electron

Additional Information

Interestingly, the problem appears running ./node_modules/.bin/electron but not running ./node_modules/.bin/electron > /dev/null

Issue 2:
Electron Version: 2.0.0

Operating System (Platform and Version): Lubuntu/Ubuntu 17.10

Last known working Electron version: 1.8.x

Expected Behavior

Electron should open and be functional when run from the terminal

Actual behavior

Electron either doesn't open, opens to a black screen, or freezes shortly after opening. The command doesn't exit, it just hangs there.

To Reproduce

$ git clone https://github.com/electron/electron-quick-start
$ npm install
$ npm start

Additional Information

If you run npm start > /dev/null, npm start 2> /dev/null, or npm start &> /dev/null, the issue cannot be reproduced. This makes me suspect that there's some bug with streaming to a terminal emulator (perhaps the terminal emulator gives backpressure that electron can't handle?)
Issue 1:
The code:

fn main() {
let v: Vec<i32> = Vec::new();
loop {
drop(v);
}
}

The error message:

<anon>:4:14: 4:15 error: use of moved value: `v`
<anon>:4 drop(v);
^
<anon>:4:14: 4:15 note: `v` moved here because it has type `collections::vec::Vec<i32>`, which is non-copyable
<anon>:4 drop(v);
^

In this simple example, it is pretty easy to notice that the error happens in the next iteration. However, usually the code is more complicated than this and the error is very confusing (see this reddit thread). Maybe we could add something like move happens in the next iteration of the loop.

Issue 2:
When the borrow check fails in a loop, the error message can be quite confusing:

enum Nat {
S(~Nat),
Z
}
fn test(x: &mut Nat) {
let mut p = &mut *x;
loop {
match p {
&Z => break,
&S(~ref mut n) => p = &mut *n
}
}
}

The borrow checker informs me:

Test.rs|43 col 16 error| cannot borrow `*(*p)#0` as mutable more than once at a time
Test.rs|43 col 16 n| second borrow of `*(*p)#0` as mutable occurs here

This message is confusing, because the two occurrences have the same line number and column. In fact, the error message is right: the borrow check only fails because it is being performed in a loop. The error message should mention something like that to the effect.
Issue 1:
It would be really nice if it waa possible to pass an instance of \Symfony\Component\Finder\Finder to some of the methods in \Symfony\Component\Filesystem\Filesystem, such as remove and touch.

Issue 2:
Problem:

$doctrine->resetManager();
$doctrine->getManager(); // null

Broken since: Symfony 2.3.

The trail starts in Symfony\Bridge\Doctrine\ManagerRegistry

protected function resetService($name)
{
$this->container->set($name, null);
}

In Symfony\Component\DependencyInjection\Container (Symfony 2.3)

public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
{
[..]
// re-use shared service instance if it exists
if (array_key_exists($id, $this->services)) {
return $this->services[$id];
}

$example_array = array('test' => null);
var_dump(array_key_exists('test', $example_array); // true
var_dump(isset($example_array['test']); // false

This used to work in Symfony\Component\DependencyInjection\Container (Symfony 2.2)

public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
{
$id = strtolower($id);

if (isset($this->services[$id])) {
return $this->services[$id];
}

Next to this, the resetService method should return the new entity manager, as seen in the docs of Doctrine\Common\Persistence\ManagerRegistry

/**
* Resets a named object manager.
* [..]
* @return \Doctrine\Common\Persistence\ObjectManager
*/
function resetManager($name = null);

Right now it does not.
Issue 1:
This issue is very similar to #18985 but it happens with useCallback instead of useEffect, and the error message is different.

eslint-plugin-react-hooks version: 4.0.4

Steps To Reproduce

The order of reference matters, if you flip the two calls to console.log no error is reported. And as in #18985 replacing ?. with . won't result in an error.

function MyComponent(props) {
useCallback(() => {
console.log(props?.foo);
console.log(props);
}, [props]);
};

package.json

{
"name": "bug-react-hooks",
"version": "1.0.0",
"description": "",
"license": "ISC",
"scripts": {
"test": "eslint test.js"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.1.0",
"eslint-plugin-react-hooks": "^4.0.4"
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/exhaustive-deps": "warn"
}
}
}

The current behavior

The following warning is reported:

5:6 warning React Hook useCallback has an unnecessary dependency: 'props'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps

The expected behavior

No warning should be reported.

Issue 2:
This is, I believe, an extension of the issue reported in #18985.

While the PR that resolved that issue fixed the lint rule for the useEffect hook, it seems to remain an issue for useCallback and useMemo.

When the optional chaining operator (?.) is used to access a path inside a useMemo or useCallback hook, and a prefix of that path is listed in the dependencies array, eslint-plugin-react-hooks reports an unexpected "missing dependency" warning. Replacing ?. with . produces the expected behaviour: the warning is no longer reported.

In many cases, adding the complete path, rather than a prefix, to the dependencies array is the correct answer. However, in some cases, the complete path might point to a prototype method of an object, in which case only a prefix of the path should be listed. (Hopefully the example below makes this more clear.)

React version: 16.13.1

eslint-plugin-react-hooks version: 4.0.4

Steps To Reproduce

import React, {useEffect} from 'react';

export function MyComponent(props) {
useCallback(() => {
console.log(props.foo?.toString());
}, [props.foo]);

return null;
}

It doesn't matter what foo, represents, other than it has a prototype method, toString().

We don't want to reference the prototype method of foo (props.foo?.toString) in the dependencies array because our function depends on props.foo, not the prototype of props.foo.

The current behavior

The following warning is reported:

React Hook useCallback has an unnecessary dependency: 'props.foo'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps

Note that if I list props.foo?.toString instead of props.foo in the dependencies, no warning is reported. However, this is not acceptable as the callback depends on props.foo, not the prototype of props.foo.

If I remove the optional chaining operator from the above code (so that the body of the callback reads console.log(props.foo?.toString());) then no warning is reported, as expected.

The expected behavior

No warning should be reported.
Issue 1:
When recovering all are part of a cluster it would be nice to have the ability to prioritize which indexes are recovered first. For example, following the common Index per day pattern, one could envision setting today's index to take priority over all others.

Issue 2:
ES currently does not have the ability to prioritize indices during recovery. It would be useful for the node to recover certain shards first, using an algorithm chosen by the user. Some possibilities could be 'smaller indices first' or 'larger indices first' or 'most recently created indices first'. That would allow for fast recovery of a current day's log index (for example) to get that index green and ready for ingestion as soon as possible.
Issue 1:
Hi,now I want to migrate my app from universalimageloader to glide. But I have a question is that I can‘t judge a image is already cached in disk。

There is my case:

There are many different resources and different URL for one image. Different network environments load different resources。For example，When I was in the 3G network，load the low quality image resource and the URL is "http://www.xxxxx_3g.png"。When I was in the WIFI network，load the high quality image resource and the URL is "http://www.yyyyyy_wifi.png"，There are two different URLs。

BUT! When I was in the 3G network，check the high quality image resource first。If the high quality image resource is already cached, load the high quality image resource URL from disk cache. Otherwise load "http://www.xxxxx_3g.png"。

if (isCache("http://www.yyyyyy_wifi.png") {
Glide.with(...)
.load("http://www.yyyyyy_wifi.png")
.into(...);
} else {
Glide.with(...)
.load("http://www.xxxxx_3g.png")
.into(...);
}

public boolean isCache(String url) {
// what should I do ???
}

So,How can I judge the high quality image resource(URL is "http://www.yyyyyy_wifi.png") is already cached in disk synchronously?

Thank you very much。

Issue 2:
I am new in glide and want to migrate my app from universalimageloader to glide.

I want to convert cached image from the disk into image file, and show it into an ImageView.

When I use universalimageloader, I can do it easily with this way:

File imageFile = DiskCacheUtils.findInCache(image_url, ImageLoader.getInstance().getDiscCache());
//then show it into image view
String file_target = "file://"+imageFile.getPath();
ImageLoader.getInstance().displayImage(target, imageView);

However I have not found a way from documentation to do that in Glide.

Is it possible?
Issue 1:
VSCode Version: 1.1.0-insider,

OS Version: Win10 Pro

I got two different text render styles, one is blurry, and another is clear.

You can see middle window is more blurry than both left and right window.

My monitor size is 13 inches, with 1920x1080 resolution. Display zoom level is 125%, and I've set up Code - Insiders.exe's compatible settings, and checked 'Disable display zoom under high DPI' (may be this, as I'm using a Chinese edition).

My settings:

Issue 2:
I am using VS Code on a 4k monitor (ASUS PB287Q 4K) and have set Windows 10's scaling on that monitor to 150%. VSCode fonts inside the editor are extremely blurry.

Look at this example (scaling in Windows 10: 150%, editor.fontSize:: 13, window.zoomLevel: 0):

The code in the background is very blurry (please open the image in a new tab to really see it), while the dialog in the foreground is not (just for comparison).

I tried to play around with the edtior.fontSize/window.zoomLevel options, but there isn't any way to get the font crisp. Using --disable-direct-write and --force-device-scale-factor=1.0 to start VS Code also doesn't fix the issue.
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.

I have a following question:

Should a service using injvm protocol register to a registry ?

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: 2.7.4.1

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

invocation.setAttachment can't affect in filter if RPCContext has same Key

a服务在filter中通过invocation设定a服务的kv对app=a，向b调用后，b向c发起调用，同时经过一致的filter设置b服务的kv对app=b，然后c服务接收。但是c无论从RPCContext还是invocation中，拿到的都是app=a的kv对

本质是因为AbstractInvoker中构建处理，总是RPCContext的优先级总是高于Invocation

看起来这和规范相关，曾经的历史显示是有key不添加，现在的则是完全的覆盖。我想确定的是这是一个规范么，在filter中，不要使用invocation去设置，而是通过RpcContext来设定

注解来看，其只是为了自己的编程范式下，对结果的修正，并没有讨论这种修正会对invocation造成的潜在的影响

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

Expected Result

c希望接收到由b服务的kv对app=b

Actual Result

c收到了上上游服务传递下来的kv对app=a
Issue 1:
The handshakeTransport.readLoop can exit with t.cond locked and any handshakeTransport.writePacket calls will block indefinitely at t.cond.Wait().

Sorry for the confusion - this is not a duplicate of #11882 (which solves another issue with a possible deadlock in writePacket) as I initially made a mistake of creating a single problem report for two separate issues.

Issue 2:
Apologies in advance that this is vague.

Symptoms of the problem:

@randall77's frustrations with stringer in #10249.

While working on CL 7360, I had to use cmd/internal/gc but ./cmd/?g.

The author of a tool picks an importer, but it is the user of a tool that needs to do the dependency resolution. What happens when the author picks gcimporter but the user uses gccgo?

I personally use go/build instead of go/loader in my little one-off tools because go/loader doesn't ever seem to do what I mean but go/build always does. (And I haven't invested the time to dig into why.)

I'm not familiar enough with go/loader to make a concrete detailed suggestion, but perhaps go/loader could do something like: automatically start with gcimporter (if the object files aren't stale), then fall back to a source importer, and then fall back to other importers (gccgo, llgo, etc.)? And provide hooks so that advanced users can insert their own importers (as I presume Google does internally).

/cc @randall77 @alandonovan
Issue 1:
I was running sklearn.svm.SVC, and it took five hours on the data I was using. The results were good, but I think users should get an estimated time for the length of the program's run. For instance, I know that keras has an ETA feature.

Issue 2:
In _parallel_build_trees, if the bootstrap option is selected, then a bootstrap sample the size of the training set X is produced and used.

In the situation where X is quite big and a large number of estimators are to be fit, I would find it useful to limit the size of the bootstrap subsample to be less than the number of examples, having the loose expectation that the random subsamples chosen over all the estimators generally "cover" the training dataset.

This seems like it could be implemented as a keyword argument bootstrap_subsample_fraction to the appropriate classes, taking the range of values (0, 1].

If this seems like a useful feature more broadly, I could take a whack at it.
Issue 1:
-EDIT-

Duplicate issue.

#18824

Preflight Checklist

[ x] I have read the Contributing Guidelines for this project.

[x ] I agree to follow the Code of Conduct that this project adheres to.

[x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

Electron 5.0.6

Operating System:

Linux,Windows

Last Known Working Electron version:

Electron 4.1.1

Expected Behavior

Load flash plugin

Actual Behavior

Unable to load plugin

To Reproduce

git clone https://gitlab.com/gamerworld/application

npm install electron@latest jquery

npm start

than go to Plazma Burst 2 for example and you will see it is unable to load the flash plugin. Close it than do npm i electron@4.1.1 than npm start and do the same thing and you will see it works with older version of electron and breaks on the current version.

Screenshots

Electron 4.1.1

https://imgur.com/RMgZJ84.png

Electron 5.0.9:

https://imgur.com/w1LTrcL.png

Issue 2:
Electron Version (output of node_modules/.bin/electron --version):

1.8.8

Operating System (Platform and Version):

macOS 10.14.3

Expected Behavior

require('child_process').spawn(script) returns a child_process object that has an associated PID and can be killed.

Actual behavior

If I spawn a PyInstaller-created binary on macOS like

let pythonChild = require('child_process').spawn(script)

then pythonChild === null, even though it spawns correctly. This means I can't kill it effectively when the app closes. This works fine on Windows/Linux, and it works fine with regular Python scripts. This also works fine when run from node -i on macOS, suggesting it's Electron-related. (see nodejs/node#26117)

To Reproduce

Build a Python binary with PyInstaller (I can supply mine if you trust it) and try spawning it this way.
Issue 1:
We have seen this issue in a production environment (Running Elastic Search 0.19.12) on more than one occasion - the most recent occasion being after one of the servers in the cluster was unexpectedly rebooted by Amazon.

We have been able to reproduce this locally using multiple Vagrant boxes - although not every time (2/3 attempts will reproduce this)

This bug seems very similar / the same as https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/percolator/elasticsearch/VZjslNupBNY/Q3VFfXDqt6sJ

Steps to reproduce:

Have a cluster of Elastic Search servers

Index some Percolator queries

Test that each node returns the same response to a percolation request

Forcefully reboot one of the servers (e.g. sudo reboot -f)

Wait until the rebooted node rejoins the cluster

Test each node returns the same response

Expected Result:

Every node returns the same (correct) response

Actual Result:

The restarted node returns no matched percolation queries, despite the cluster being in the healthy (green) state and the expected number of docs showing in the _percolator index.

Sometimes the correct result is returned by the restarted node for a short time, and then, after a few seconds, starts returning no matches.

Restarting Elastic Search on the node seems to fix this.

Nothing unusual appears in the log files.

Issue 2:
There are two different definitions of the timeout parameter in update_by_query.json:

...
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
},
...
"timeout": {
"type" : "time",
"default": "1m",
"description" : "Time each individual bulk request should wait for shards that are unavailable."
},
...