WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable):Fancy Zones

Not sure if this specific issue is already mentioned, but just to be sure it is...

Steps to reproduce

I have two screens, using two different grids. For argument's sake let's call them monitor 1 and 2, and grid 1 and 2.

In the Windows Settings i changed the Primary Display from 1 to 2 (or the other way around). As it turns out, it's more about expanding desktops

Expected behavior

Either no change of position (= fixed to display device) OR to have them swapped around (= fixed to primary/secondary screen)

Actual behavior

After the swap (edit: expansion and/or swaping), both grids appear on the same monitor.

When i swap the priority back, both grids appear on their original screen.

Screenshots

Issue 2:
Environment

Windows build number: 10.0.18363 build 18363
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable):
PowerToys Run

# Steps to reproduce

Update PowerToys to 0.19.0, try to launh PowerToys Run through the default shortcut (Alt + Space).

# Expected behavior

After clicking the shortcut, search bar should be available.

# Actual behavior

The searchbar is not opened.
Issue 1:
Hello,

I am trying to load vtk files in three.js using the VTKLoader. The vtk files are produced by paraview. However, the loader fails silently and no vtk data is shown on the browser.

Any suggestion?

Thank you!

Issue 2:
I would like to ask for advice because of I have one use case where I need to load VTK file which is a BINARY DATASET STRUCTURED POINTS, which represents a segmented image.

# vtk DataFile Version 3.0
VTK File Generated by Insight Segmentation and Registration Toolkit (ITK)
BINARY
DATASET STRUCTURED_POINTS
DIMENSIONS 1040 1040 1
SPACING 2.6455026988983699e-01 2.6455026988983699e-01 1.0000000000000000e+00
ORIGIN 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00
POINT_DATA 1081600
SCALARS scalars unsigned_short 1
LOOKUP_TABLE default

Binary data

Thank you for your help.
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: 2.6.5

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

下载2.6.5的jar包

解压进入META-INF\dubbo\internal目录

基本上所有配置文件全部重复了3次

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

Operating System version: centos

Java version: 1.8

需求

泛化调用，返回值增加的class字段，建议增加开关。

举例

在PojoUtils.java中，有两处建议怎么增加该开关，如下：

put "class" 字段

Map<String, Object> map = new HashMap<String, Object>();
history.put(pojo, map);
map.put("class", pojo.getClass().getName());

根据条件remove "class" 字段

// when return type is not the subclass of return type from the signature and not an interface
if (!type.isInterface() && !type.isAssignableFrom(pojo.getClass())) {
try {
map = (Map<Object, Object>) type.newInstance();
Map<Object, Object> mapPojo = (Map<Object, Object>) pojo;
map.putAll(mapPojo);
map.remove("class");
} catch (Exception e) {
//ignore error
map = (Map<Object, Object>) pojo;
}
} else {
map = (Map<Object, Object>) pojo;
}

期待修改成以下代码：

put "class" 字段

Map<String, Object> map = new HashMap<String, Object>();
history.put(pojo, map);
if (keepGenericClass){ // to increase the switch for control generics
map.put("class", pojo.getClass().getName());
}

根据条件remove "class" 字段

// when return type is not the subclass of return type from the signature and not an interface
if (!type.isInterface() && !type.isAssignableFrom(pojo.getClass())) {
try {
map = (Map<Object, Object>) type.newInstance();
Map<Object, Object> mapPojo = (Map<Object, Object>) pojo;
map.putAll(mapPojo);
if (keepGenericClass){ // to increase the switch for control generics
map.remove("class");
}
} catch (Exception e) {
//ignore error
map = (Map<Object, Object>) pojo;
}
} else {
map = (Map<Object, Object>) pojo;
}
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Issue Details

Electron Version:

v11.0.0-beta.9 x86

Operating System:

win7 sp1 x64

Last Known Working Electron version:

v10.1.3 x86

To Reproduce

run electron (default app)

ctrl-shift-i for devtools

type window.

no method suggestions

Issue 2:
To repro:

Launch an Electron app (hello world/default fiddle will do)

Open DevTools

Find a minified JS file, e.g. renderer_init.js

Click the "Pretty Print" button in DevTools

Expected behavior:

The JS in the DevTools view is replaced with a pretty-printed version of the code

Actual behavior:

The JS in the DevTools view is unchanged

Bisected to v11.0.0-nightly.20200721...v11.0.0-nightly.20200723
Issue 1:
Environment

Windows Terminal version: Microsoft Windows [Version 10.0.18362.239]
Linux subsystem in Windows <a href="https://www.microsoft.com/en-us/p/kali-linux/9pkr34tncv07?activetab=pivot:overviewtab" target="_blank">(you can download it from here!)</a><a href="https://www.kali.org/news/kali-linux-in-the-windows-app-store/" target="_blank">(and the docs here!)</a>
Dual boot with Linux

Steps to reproduce

If i change the settings of the Windows Terminal, create a new profile and set it default with Linux (not powershell or cmd) , modify the property 'fontFace' from 'Consolas' to 'Rubik' (font on fonts.google.com). Close all windows and try to open Windows Terminal it won't open, if i change it back to 'Consolas' and try to open it this time it will start.

Expected behavior

Change the font and work properly.

Actual behavior

App doesn't start.

Issue 2:
Windows version is 10.0.16299.248

Bash is using locale en_US.UTF-8

When i use the Arrow keys to go back on the command line, and start typing, what has previously been written will be overwritten IF I have passed over a space character using the right Arrow key (not expected). If I do not pass over a space character, the new entered characters are instead inserted as new characters and the rest of the existing line is moved forward (expected behaviour).

The buffer itself is not overwritten, so executin the modified command line will actually execute something else than what I see as the command line.

I have no idea why this occurs. Restarting bash does not help. I tested on Another machine, with the same version of Windows and Bash, but without having the same issues.

Example above:

I write the line "wordbeforespace wordafterspace" and hit enter

Using the up Arrow key I get the line back, I edit the lite using the left Arrow key, inserting the number 1 expecting the line "word1before1space word1after1space" however as the screenshot shows, the first Word instead is shown as "word1efore1pace". However, when I hit enter, the command being executed indeed is the expected "word1before1space".

This almost breaks the entire use of bash for me right now, since I very fast get unsure what command will actually be executed.
Issue 1:
Since v0.0.6 of package jqueryui.TypeScript.DefinitelyTyped, there're compilations errors when referencing jqueryui.d.ts. I tried v0.0.7 and I have the same errors.

Signature for 'position' is duplicated

Signature for 'hide' is duplicated

Signature for 'show' is duplicated

Signature for 'toggle' is duplicated

This is due to the pull request #552 that redefines some jquery methods. Could you please fix the jQuery interface in the jqueryui.d.ts file since it already references jquery.d.ts?

Issue 2:
I tried using the @types/node package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @BrunoScheufler @smac89 @tellnes @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @matthieusieben @mohsen1 @n-e @octo-sniffle @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU

The types for async iterables are incomplete. It defines:

interface AsyncIterableIterator<T> {}

But it doesn't define AsyncIterator or AsyncIterable. This is confusing when AsyncIterableIterator appears to work, but doesn't really, and then the other types are undefined.

Should the fix be just to copy the types from esnext.asynciterable.d.ts?
Issue 1:
Sorry if this is sparse on details. I mainly want to determine if there is a bug with showDrawer or with the way I attempted to use it.

Yesterday, I attempted to use showDrawer with the 7be58b1 alpha branch of Flutter. The drawer appeared/dismissed correctly, and the widgets I put in the drawer were correct.

Unfortunately, I noticed that no matter how I attempted to change the state of what was drawn in the drawer, it would not re-render. In my case, I tried to put a Switch inside a DrawerItem to toggle debug mode for my app. I did confirm that the state did actually change, which led me to think that Flutter has a bug.

I was following the Stocks demo app quite closely, which uses a Drawer to toggle the user's market sentiment (Optimistic vs Pessimistic). However, I was assuming that the app's behavior would match the Sky Demo app in the Google Play Store. I only just realized that this app is actually 3 months old (last update August 25), so it is very possible that in that time, the Stocks example does not function as it did before.

I am currently unable to try running these examples (though I have found the instructions), so if someone else can run the Stocks app and determine whether the Optimistic/Pessimistic radio buttons update the drawer menu or not, that would be very helpful.

Otherwise, I will look into this more after the break.

Issue 2:
Issue by Hixie

Wednesday Oct 07, 2015 at 21:22 GMT

Originally opened as https://github.com/flutter/engine/issues/1528

e.g. the card_collection.dart demo's drawer's checkboxes don't check when you tap them.
Issue 1:
This was very surprising to me, and took me a very long time to figure out:

julia> using Random

julia> rng = Random.GLOBAL_RNG
_GLOBAL_RNG()

julia> deepcopy(rng) === rng
true

Even more surprising is

julia> copy(rng) === rng
false

There's similar behavior with ENV in place of GLOBAL_RNG.

There are a few issues here:

The behavior of deepcopy on GLOBAL_RNG is very different than for other RNGs. It's not clear that the former should be "special" in this way.

I had always understood deepcopy to be a stronger version of copy, in the sense that copy may still result in shared mutable sub-structures, but that deepcopy would replicate these, so the result of deepcopy would have no mutable substructures in common with the original.

I had some discussion about this on Zulip with @Seelengrab and @fredrikekre here. Fredrik pointed out that

deepcopy is really a very different function; it almost belongs in the Serialization package or something of that sort.

(from #42796 (comment))

If this is really the intent, it seems it ought to be well-documented, with guidance on when to use which one.

In any case, I can't imagine a use case for the current arrangement where deepcopy can result in strictly more sharing than copy.

Issue 2:
let
function wat()
a::String = "wat"
println(a)
end

a::String = "me"
wat()
end

This will throw an exception telling me

ERROR: LoadError: syntax: type of "a" declared in inner scope
while loading /wat.jl, in expression starting on line 1

Which is really not helpful at all. Line 1? Wow, thanks! 'syntax: type of "a" declared in inner scope' that tells me nothing, what is wrong with that. It sounds like there are some words missing e. g. " is not allowed because X".

Now my real issue here is, why is this not legal? Why can I not have a function with a local variables whos name is equal to one from outside the function?
Issue 1:
Was reading up on changes for Android P, and it led me to file this...

https://android-developers.googleblog.com/2017/11/getting-your-android-app-ready-for.html

https://code.tutsplus.com/articles/faster-logins-with-password-autofill-in-ios-11--cms-29096

@Hixie do you think this is the domain of the framework or plugins?

Issue 2:
We should make sure our text fields trigger the autofill support:

https://developer.android.com/guide/topics/text/autofill.html
Issue 1:
I think my ideas here are so far out of the mainstream that they deserve to be beaten up in their own thread.

Parameterize the type "Function" by its input and output parameters. The following type hierarchy would apply:

Function{In} <: Function == true
Function{In, Out} <: Function{In} == true

In particular we could have this:

foo(x::Int, y::Int) = convert(Float, x + y)
z = foo
isa(z, Function{Tuple{Int, Int}, Float}) == true

The set theoretic idea being that the type "Function" from T to S is a (abstract, lazy, or computed) list of Tuple{T, Tuple{T, S}} such that (x, (x, y)) is true for every element in the list:

Function{T, S} <: AbstractList{Tuple{T, Tuple{T, S}}} == true

For functions with multiple methods the in types would be some form of union, hopefully parameterized to represent any inferences and code supplied restrictions:

typeof(sin) = Function{T<:Union{Number, AbstractArray}, T}

So that a function that has been heavily overloaded in a manner that makes type inference difficult ends up as

typeof(difficultfunction) = Function{Union{Tuple{...}, Tuple{...}, ...}, Any}

Add the "maps to" symbol "->" in the type parameter list of functions to differentiate between type parameters applying to the input and type parameters applying to the output:

bar{T -> S}(x::T)::S = 2 * x
baz{T -> S}(x::T) = (2 * x)::S

Also this should allow for tying the parameters:

bac{T -> T}(x::T)::Vector{T} = x .* ones(T, x)

The result for for closures is that the following syntax covers parameterization:

g{T -> S, R}(y::T)::Function{S, R} = (x::S -> (x + y)::R)
g{T -> S, R}(y::T) = {S -> R}(x::S -> (x + y)::R)

And for truly anonymous Lambdas

h = {T -> S}(x::T -> (x + 1)::S)

Finally I would like to see the syntax "x::{...}" used for exact pattern matching instead of the "::Val{...}" and "Val{...}()" constructs:

fal(x::{0}) = 1
fal(x::Int) = x * fal(x - sign(x))

Because types in some ways identify sets, in the mathematical sense, it might be interesting to allow:

fun(x::{0, 1, 2, 3}) = 4

Reflecting the interpretation that the "::" operator represents the idea of "membership in".

Issue 2:
I've found a bug in sample. Result gives duplicate elements, c, despite replace=false.

Example code:

c = sample(a, b, replace=false, ordered=true)

Using JuliaPro-Juno-1.3.1.0 and JuliaPro-Juno-1.3.1.1.
Issue 1:
https://deno.land/manual.html page now redirects to https://github.com/denoland/deno/tree/master/docs page which seems to be not not very helpful for beginners at the moment because it's not structured as manual was

Issue 2:
Manual link https://deno.land/std/manual.md on the page https://deno.land/ forwards to https://github.com/denoland/deno/tree/master/docs.

I assume because there is no manual.md file in the docs folder.

As far as I remember a few days back the md files' content was shown under each other.
Issue 1:
The various React addons express a peer dependency on their matching React version. You can write a React component library that runs with multiple versions of React but depends on some specific addons as an implementation detail:

{
"name": "my-awesome-library",
...
"dependencies": {
"react-addons-update": "^0.14.0 || ^15.0.0"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0"
}
}

If you consume this library in a host environment that uses react@14, npm will still helpfully install the latest version of react-addons-update, which of course peer-depends on react@15, causing rather confusing UNMET PEER DEPENDENCY warnings since I, the consumer, am only looking around the peerDependencies block for version issues.

So my question is this: what are best practices for a library in this situation? Should I declare react-addons-update as a peer dependency, meaning that my consumer has to personally install not just React itself but also every react-addons-* that any of their dependents use? Seems annoying to my consumer and also a sort of an abstraction break for the sake of version matching.

Perhaps react-addons-* should be more independently versioned so they accept multiple versions? Or maybe not declare a peer dependency on React if they don't actually need it (like for react-addons-update, which only uses a couple of the small, non-React-core utilities)?

Issue 2:
For reference. We're exploring an alternative to the observe function proposed in #3398.

Instead of having a separate function that defines a list of dependencies on Observables, we could allow the render function itself trigger a bunch of side-effects that registers the currently executing component with some Observables.

render() {
var data = request(this.props.url);
if (data === null) return <div>Loading...</div>;
return <div>{data}</div>;
}

Side-effects! 😲

The implementation of request wouldn't return an Observable. Instead it would tell React that the currently executing component has a dependency on this Observable and needs to rerender anytime the subscription fires. It returns the last value received by this particular Observable... somehow.

function request(url) {
return React.readAndSubscribe(Observable.fetch(url));
}

If an Observable is no longer subscribed to in the next render pass, it is automatically unsubscribed. Perhaps the Observable API is not ideal for this model.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

using:

zeit/next-sass for my next.config.js

a custom server.js with a custom directory

const application = next({ dev, dir: './src' });

Flow js for type checking

Redux and Apollo

I have just updated to next 6.0.0 and I can't use my site because the HMR fails to find any information, causing any route requests to result in a full reload.

The site works when loaded with yarn build && yarn start

Folder structures:

./src
/pages
/apps
/Public
index.js
sign_in.js
sign_up.js
forgot_password.js
/Admin
.......

EDIT:

It seems like the files are supposed to go directly into .next I see that happening in a small test repo that I made. However, it now seems that if that's the case, the error I'm encountering is actually the fact that the HMR is unable to find the hot-update.json files when updates are made.

END EDIT

When on page /apps/Public/sign_in as /sign_in I click on <Link to="/apps/Public/forgot_password" as="forgot_password" />

Result:

Initial page loads of all pages works perfectly. However, any route changes fail.

Debugging

I have tried just about everything I can think of. It seems like this error is caused from my ./src/.next file not having a /webpack directory. My understanding is that HMR will look for the hot-update.json files in /webpack

However, in my case, all hot-update.json files are in ./src/.next

Contents of ./src/.next

Questions:

Why do I not have a /webpack directory?

I can't create a reproduction repo, can someone from Zeit help by looking through my private repo?

Your Environment

Tech
Version

next
6.0

node
9.11.1

OS
Mac OS

browser
Chrome

Issue 2:
next.js need more webpack configuration

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

Expected Behavior

webpack config can use hashcode to generate file name, add the hascode can be used in pages

Current Behavior

i genereate my css file use extractCssPlugin, and named it by hashcode. but i couldn't get the webpack content hashcode in my pages, cod i couldn't use this css file.

and i wanna know, how can i cache my css file and js file, without hashcode, should i write the version code by hands? it is ridiculous. why you guys don't provide the static resouce cache examples? it's hard for newer to found out how to cache static resouse in next.js.

i think we aslo need a example about cache js file and css file!!!

Context

i just wanna know how to cache static resource like main.js and css generate by withcss plugin,

where to get the unique version code and how to quote them in my _doucment.js file

Your Environment

Tech
Version

next
6.0.0

node
8.9.7

OS

browser

etc
Issue 1:
Challenge Check for Palindromes has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.

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

My code:

function palindrome(str) {
console.log(str);
str = str.replace(/[ ,.]/ig, "").toLowerCase();
console.log(str);
for (var i = 0, j = str.length -1 ; i < j; i++, j--) {
if (str[i] !== str[j]) {
return false;
}
}
return true;
}

palindrome("eye");

palindrome("0_0 (: /-\ :) 0-0") --> this is not a palindrome '_' v.s. '-' even If I replaced that the str that gets passed in as a param is not "0_0 (: /-\ :) 0-0" console.log says it's "0_0 (: /- :) 0-0" it's missing the ""

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions has an issue.

This waypoint is confused as the nature of the plus sign and the global modifier in regex. To pass, a camper needs to use this (incorrect) expression: /and+/gi. It works, but it really means "find any instance of the pattern of one A and one N followed by any number of Ds."

The solution should be /and/gi, but this doesn't pass.

Here's the relevant bit from the instructions:

+ means we want to find one or more occurrences of this pattern.

g means that we want to search the entire string for this pattern.

This is incorrect. The plus sign applies only to an individual character, so that an expression like this:

/and+/

would select "and" or "andd" or "anddd", etc.

Likewise /a+nd/ would select "and" or "aand", etc., and /a+n+d+/ would select "and" or even "aaaaaaaaaannnnnddddddd".

It's not accurate to say that the global modifer (g) searches the entire string. (If that were the case, what part of the string would it be be limited to without the global modifier?)

The default behavior is to search until the pattern is found, and then to stop and say, "I found it!". If it isn't found, then the entire strong IS searched. The global modifier simply says "don't stop when you find the first one, but keep going and find all of them," which is what the instructions seem to think the plus sign is doing.