WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I upgraded to React v16 and chai-enzyme v3, and any component test that I have that utilizes Material ui (particularly MuiThemeProvider) that is mounted throws various errors like the following:

TypeError: Cannot set property 'stroke' of undefined

TypeError: Cannot set property 'display' of undefined

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

I tried to create a codepen to make an example but i was unable to setup enzyme test runner.

Expected Behavior

React v16 and material ui together should not break all tests.

Current Behavior

Material UI combined with enzyme 3 and react v16 break all tests

Note: this does not effect the actual components in a browser, only in the test environment when mounted via enzyme, and that mounted component also happens to use MuiThemeProvider.

Context

Cannot upgrade to react v16, this is the last thing I need to fix to get my tests running and finally upgrade.

Tech
Version

Material-UI
v0.19.4

React
v16.0.0

enzyme
v3.0.0

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

Expected Behavior

We match the specification. It could also be the opportunity to make the implementation more customizable friendly.

https://material.io/guidelines/components/buttons.html#buttons-flat-buttons

Current Behavior

We don't follow the spec.

Steps to Reproduce (for bugs)

Click on a button and compare the result with the specification.

Context

material-web-components seems to implement the animation correctly. cc @kof

Closes #7537

Your Environment

Tech
Version

material-ui
v1.0.0-beta.24

react
v16.2.0
Issue 1:
I've been using Go for about 9 months and over that time I've come to like the explicitness of most of the language's semantics. But I feel that the language lacks some convenient ways to handle slices as you will find in most other languages. I feel that adding HOFs such as map/filter/reduce would make code less verbose when handling slices without compromising on explicitness or type-safety.

The current idiom for doing a map operation is something like:

s0 := []int{1,2,3}
s1 := make([]int, 3)

for i := range s0 {
s1[i] = s0[i] * 2
}

While this is a trivial case, and I could have just mutated s0 in this case, it is clearly very imperative and verbose compared to what it could be.

I propose an alternative:

s0 := []int{1,2,3}
s1 := s0.map(func(x int) int {
return x * 2
})

In this case the function passed to map has two properties of interest. The argument which would need to be the slice's Kind (type-checked at compile time), and the return type which could be any type. The one caveat is that the type of the resulting slice will need to be inferred from the type returned from the function.

For example:

s0 := []int{1,2,3}
s1 := s0.map(func(x int) float32 {
return float32(x) / 2
})

where s1 would have type []float32.

I feel like this seemingly low-hanging fruit would be a step in the right direction in terms of making the language more enjoyable to use with its lack of generics.

Issue 2:
See http://play.golang.org/p/OeSXsazIDS

If you unmarshal <Param2 int="1" />

into

type Param2 struct {
Int *int `xml:"int,attr"`
}

Int will always be nil. As seen in the example, this works if Int is an element and not
an attribute.
Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

When mouse enter disabled form element, trigger mouseenter events, but it not trigger mouseleave when mouse leave from the element.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).

http://jsbin.com/goxowolina/edit?html,js,output

First button rendered by react.

What is the expected behavior?

Don't trigger mouseenter events when form elements disabled.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

15.3.0. Yes.

Issue 2:
Website or app

https://codesandbox.io/s/new

Repro steps

Open up Chrome inspector

Expect Components + Profile tabs to appear

Computer:

2019 MacBook Pro (Intel)

Browser:

Google Chrome

Version 99.0.4844.51 (Official Build) (x86_64)

DevTools:

4.24.0 (3/10/2022)

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response
Issue 1:
Transferred from http://code.opencv.org/issues/4497

|| Brian Kamery on 2015-07-22 14:14
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: x64 / Windows

Path format error failing on resource load.

Hi, I hope this is not a duplicate - I tried to find a report of this, but there are many potential key words to search for.

When following several of the v3.0 java samples on windows (e.g. http://docs.opencv.org/3.0-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html), one gets errors such as:

OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file C:\builds\master_PackSlaveAddon-win64-vc12-static\opencv\modules\objdetect\src\cascadedetect.cpp, line 1634
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: C:\builds\master_PackSlaveAddon-win64-vc12-static\opencv\modules\objdetect\src\cascadedetect.cpp:1634: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale
]
at org.opencv.objdetect.CascadeClassifier.detectMultiScale_1(Native Method)
at org.opencv.objdetect.CascadeClassifier.detectMultiScale(CascadeClassifier.java:103)
at opencv.DetectFaceDemo.run(Hello.java:41)

The sample runs on linux without problem.

There are several "answers" on various boards that say to hardcode the absolute path ... this is obviously less than optimal, but did lead me to the "right" answer. I was able to debug this down to the format of the URL.getPath() response that are used for both the CascadeFilter and the Imgcodecs.imread() calls.

The URL.getPath() (and the URL.getFile()) calls both return an absolute path that starts with a '/' (e.g. "/c:/opencv/..."), but the imread() and the CascadeClassifier constructor are unableto handle this format on a windows file system. The in-code solution is url.getPath().substring(1), and the opencv utilities work great - but this too is less than optimal.

The ideal solution would be for opencv to handle the path starting with a '/' on windows as well. Even better, when the path that is passe din is unable to be handled opencv should fail in some way that is indicative of the real problem (e.g. the CascadeClassifier contructor and/or the imread() function throws a RuntimeException.)

I assume that the same issue would be true on the x86 windows platform as well as the x64.

History

Issue 2:
Reason:

duplicates behavior and implementation (fixed type, fixed size)

relates #8535
Issue 1:
The item (and mapping) do not exist in one of the indexes but exists in the other indexes. A sort is performed.

Works fine when the sort is removed from the query.

Here is a gist.

https://gist.github.com/1820642

Issue 2:
We currently have a very large maven build system, comprising of 6k lines of xml. While maven parent POMs have been very useful in de-duplicating build logic across elasticsearch and plugins, the rigidity of maven has required us to begin implementing most of our test logic through maven-antrun-plugin. Another major problem with multi-module builds is trap: building a module requires explicitly listing an upstream module in order to get a local build of the dependency, or building from a higher level module (which implicitly builds all sub-modules). And finally, the maven model is incapable of decoupling test dependencies from main dependencies, in that tests for module A, cannot depend on module B, which in turn depends on module A (this is not a cycle).

I have a branch which contains elasticsearch switched to using gradle:

https://github.com/elastic/elasticsearch/tree/burn_maven_with_fire

This is a tracking issue for completing the migration to gradle. The tasks are separated into two groups: those remaining required before pushing to master (as to not completely break development), and those required for the migration to be complete, which must happen before the next release (tentatively 2.2).

Required for master push:

Maven publishing

Windows integ test support

Setup publishing of buildSrc (ie ES gradle build plugins)

Publish "attach project plugin" (allows dynamically including a multi-project build inside another build)

Required for release:

Copyright header check

Vagrant qa tests

Multi node qa tests (#14921)

Rpm/deb building complete

Rpm signing

Distribution tests

Update plugins not in elasticsearch repo to use ES gradle build plugins (mapper attachment: elastic/elasticsearch-mapper-attachments#184)

Document new ES gradle build plugins (for ES plugin authors)

Document building/testing in README/TESTING (this is done except for jacoco reports)

integ tests parity: #14464

Addtional nice to haves:

Make qa plugins work in eclipse (need to configure custom classpath)

Add run task for elasticsearch and plugins to replace run.sh/run.bat: #14451
Issue 1:
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.15

Expected results

Export data from dashboard page

Actual results

Need to click explore button, go to slice, then can export data.

Is it possible to export data from dashboard page, then unnecessary to click again to slice page.

How to do this?

Steps to reproduce

Issue 2:
Slices have ability to export data to CSV but it's not possible to do from dashboard

It's possible to open slice from dashboard to do that, but after opening slice, all dashboard filtering is lost and has to be repeated in slice
Issue 1:
This seems to work ok

julia> "doc for my custom struct"
struct teststruct
"doc for x"
x
"doc for y"
y
end
teststruct
help?> teststruct.x
doc for x

However, the docstrings for fields of a parametric struct brings about an error:

julia> "doc for my custom parametric struct"
struct testparametricstruct{T}
"doc for x"
x::T
"doc for y"
y::Int
end
testparametricstruct
help?> testparametricstruct.x
ERROR: MethodError: no method matching Base.Docs.Binding(::Type{testparametricstruct}, ::Symbol)
Closest candidates are:
Base.Docs.Binding(::Module, ::Symbol) at docs/bindings.jl:9
Stacktrace:
[1] top-level scope at /Users/navid/julia/usr/share/julia/stdlib/v1.5/REPL/src/docview.jl:438

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1* (2020-11-09 13:37 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.6.0)
CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 12

Issue 2:
From Discourse

Trying to get the documentation for Bar.x works, but not Foo.x or Foo{Float64}.x:

# file tmp4.jl
"""
This is struct Foo
"""
struct Foo{T}
"""
This is field x
"""
x
end

"""
This is struct Bar
"""
struct Bar
"""
This is field x
"""
x
end

In the repl:

julia> include("tmp4.jl")
Bar

help?> Foo
search: floor pointer_from_objref OverflowError RoundFromZero FileMonitor functionloc StackOverflowError

This is struct Foo

help?> Foo{Float64}.x
ERROR: MethodError: no method matching Base.Docs.Binding(::Type{Foo{Float64}}, ::Symbol)
Closest candidates are:
Base.Docs.Binding(::Module, ::Symbol) at docs/bindings.jl:12

help?> Foo.x
ERROR: MethodError: no method matching Base.Docs.Binding(::Type{Foo}, ::Symbol)
Closest candidates are:
Base.Docs.Binding(::Module, ::Symbol) at docs/bindings.jl:12

help?> Bar
search: baremodule SubArray GlobalRef BitArray clipboard backtrace BitMatrix takebuf_array catch_backtrace

This is struct Bar

help?> Bar.x
This is field x
Issue 1:
Show syntax error while open all es6 files in folder 'node_modules' and it's subfolders, and reopen the file, will show repeatedly syntax error in multilines.

open the es6 project:

open es6 file in root folder, no syntax error:

but, open the es6 file in folder 'node_modules', will show syntax error:

text of syntax error:

show same error while open es6 file in subfolder of 'node_modules':

open others not in folder 'node_modules', no syntax error:

and, will show repeatedly syntax error in multilines while reopen the es6 file which has syntax error:

repoen repeatedly:

Issue 2:
Hi.

Thanks for your product, I really enjoy using it. However I have one problem:

When using ES6 features, like the arrow functions, I get the message "This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6".

However I have a jsconfig.json-file in my root (the folder opened in Visual Studio Code), which contains:

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}

The weird part is that I get it for some files, and not for others. Even if the files are in the same directory. Right now I have three files in the subdirectory /app/bpm names bpm.js, bpmController.js and enterClick.js. All three are written with ES6-functionality, but I only get the warning and red underlined text for bpm.js.

UPDATE:

I just restarted VS Code, and the red underline disappeared from bpm.js too. It was a new file I had created after the two others, however the red underline only went away after a restart.
Issue 1:
Windows 10 Home 1903

Windows build number: 18362.356
Windows Terminal version: 0.5.2762.0

Open Azure cloud shell

resize the window horizontally, using mouse

Text should wrap according to the width of the window

Text disappears, which does not the window and disappears after reducing width and does not come back after increasing it.

Issue 2:
Apologies if this explanation is confusing. I've mentally internalized the problem here, but I'm not sure if I can fully articulate. Here goes...

When receiving characters in a stream fashion (in either conhost or the Terminal), there are a bunch of situations that occur that run off the golden path rails of "just put this into the buffer and move the cursor forward by one".

A few major categories of these are:

C0 control characters (tab, backspace, newline, carriage return, etc.)

Surrogate pairs for UTF-16 (two wchar_ts are required to form one U+ codepoint)

An entire run of characters required to figure out a particular cell display or run of cells.

We need to solve 1 and 2 first. Solving 3 will probably require a bit more interaction with the CustomTextLayout in the DirectWrite renderer to perform some sort of read-ahead or multiple-pass calculation over text as it flows in stream-wise to figure out the columns it should take.

The existing manifests of this sort of work are WriteCharsLegacy in the console host (which is a thousand line or more monstrosity full of multi-pass switch cases, loops, and gotos) and the stream write thing in TerminalControl (I think, might be TerminalConnection) which @zadjii-msft affectionately warned against it becoming "WriteCharsLegacy2ElectricBoogaloo" in one of his comments.

I think what needs to be done here is:

Create a third entry point to the buffer object that accepts text in a stream write fashion, potentially "buffering" before it inserts into the buffer for reals (or has the ability to look-behind at what was just written) taking over the duties of the "WriteCharsLegacy" type methods into the buffer itself so at least 1 and 2 can be handled in a unified-ish manner.

Teach the buffer and/or let the buffer accept some sort of loose pfn that will connect it up to the text layout engine and let it query for column counts or glyph run information as stream characters show up and adjust the behavior of their neighboring glyphs.
Issue 1:
VSCode Version: 1.0.0

OS Version: OSX 10.11.4

Steps to Reproduce:

Create new .py file

Start typing def test():

Press enter

Expected:

Code editor should indent function body.

Actual:

Editor keeps old indention

Issue 2:
When declaring class in python files, the next line should has indentation. For example:

type class Class:

hit Enter

the cursor should be on position 4 (for indentation 4 spaces)

On the version 0.10.8 the cursor position is 0
Issue 1:
Environment

Windows build number: 1909 (18363.836)
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): Powertoys Run

Steps to reproduce

Alt+Space

Search for "Bildschirmtastatur" or "winver" for example

Expected behavior

Bring up the on-screen keyboard or the windows version dialogue.

Actual behavior

"Bildschirmtastatur" can't be found in PowerToysRun, only a search via the start menu does.

Although it can be found if the application already is running and has been started via the start menu (see second screenshot)

Also winver can only be started from the start menu, as typing winver in PowerToysRun does only bring up system administrative tools.

Screenshots

Issue 2:
Summary of the new feature/enhancement

Add the following shortcuts to Shortcut Guide:

Win+Shift+S - Snip & Sketch

Win+V - Open Clipboard (if enabled)

Win+. - Emoji

Win+T - Switch between apps in Taskbar

Win+P - Project

Win+W - Windows Ink (if available)

Win+Ctrl+F4 - Close current virtual desktop

There are a lot of other shortcuts(may be less important), e.g.

Win+Break - System Information

Win+F1 - Get Help

and others
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.7.1

Operating System version: CentOS 7.5

Java version: JAVA 1.8.0_202

Issue description

ConsistentHashLoadBalance is very good at guaranteeing a robust data locality, when the same method with the same parameter is directed to always the same target (when system state does not change).

However, it is possible in reality when there exists a hot parameter, which is called significantly more frequently with the given method compared to other parameters.

This lead to a unbalanced load as the request to this method with the hot parameter is always directed to the same target, makes this target overloaded.

Expectation

Would it be possible to improve the current ConsistentHashLoadBalance implementation to better balance the load under this edge case?

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.

Does it have to be replaced with an upgrade guide link for the official website?

http://dubbo.apache.org/zh-cn/docs/user/versions/version-270.html
Issue 1:
X-post from webpack/webpack#1544:

For example, if I have the js:

import React, {PropTypes} from "react";

import Branding from "./Branding";

const Layout = ({children, customSignIn}) => (
<div className="container" style={{marginTop: 60}}>
<div className="well" style={{padding: 50}}>

<div className="panel-body">
<div className="col-lg-6" style={{textAlign: "center"}}>
<Branding customSignIn={customSignIn} />
</div>
<div className="col-lg-6">
{children}
</div>
</div>
</div>
</div>
);

Layout.propTypes = {
children: PropTypes.node,
customSignIn: PropTypes.string,
};

export {Layout as default};

Webpack+babel produces:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _react = __webpack_require__(3);

var _react2 = _interopRequireDefault(_react);

var _Branding = __webpack_require__(283);

var _Branding2 = _interopRequireDefault(_Branding);

var Layout = function Layout(_ref) {
var children = _ref.children;
var customSignIn = _ref.customSignIn;
return _react2["default"].createElement(
"div",
{ className: "container", style: { marginTop: 60 } },
_react2["default"].createElement(
"div",
{ className: "well", style: { padding: 50 } },
_react2["default"].createElement(
"div",
{ className: "panel-body" },
_react2["default"].createElement(
"div",
{ className: "col-lg-6", style: { textAlign: "center" } },
_react2["default"].createElement(_Branding2["default"], { customSignIn: customSignIn })
),
_react2["default"].createElement(
"div",
{ className: "col-lg-6" },
children
)
)
)
);
};

Layout.propTypes = {
children: _react.PropTypes.node,
customSignIn: _react.PropTypes.string
};

exports["default"] = Layout;
module.exports = exports["default"];

Notice all the instances of _react2["default"]... these don't minify well because the "default" is not minified. What would be better would be if webpack added a var _reactDefault = _react2["default"]; declaration at the top and used that instead.

Notice it also "inlined" my PropTypes definition and the usage became _react.PropTypes. Again, this is less minifiable than if it had generated var _reactPropTypes = _react.PropTypes.

This pattern isn't specific to React, but React code certainly suffers greatly from it.

Issue 2:
tl;dr

['default'] can be omit

Details

When using an imported identifier the generated code is too verbose.

e.g.

import Foo from 'foo'
const a = Foo.bar()

produces:

var _Foo = require('foo');
var _Foo2 = _interopRequireWildcard(_Foo);
var a = _Foo2['default'].bar();

While the generated code is perfectly valid, when coupled with JSX it produces really long AST:

import React from 'react'
const a = (
<div>
<h1>foo</h1>
<p>bar</p>
</div>
)

var _React = require('react');
var _React2 = _interopRequireWildcard(_React);
var a = _React2['default'].createElement(
'div',
null,
_React2['default'].createElement(
'h1',
null,
'foo'
),
_React2['default'].createElement(
'p',
null,
'bar'
)
);
Issue 1:
Subj,

as example

I create some module in another folder ( /projects/MY_MODULE )

MY_MODULE not compiled, source code

then run npm link

after go to my project and run npm link MY_MODULE

Compile my project and have error two copies React

i`am try

{
test: /\.js$/,
exclude: [/node_modules/],
include: [/node_modules\/MY_MODULE/]
},

Issue 2:
Bug report

What is the current behavior?

cc @sokra

I find a bug that cause Webpack hangs after build finished in latest version 5.32.1 because of this line in #14174

Webpack 5.52.1 prod build with cache:

webpack 5.52.1 compiled with 8 warnings in 2010 ms
✨ Done in 61.31s.

Webpack 5.52.0 prod build with cache:

webpack 5.52.0 compiled with 8 warnings in 1974 ms
✨ Done in 2.72s.

The root cause of this bug is setTimeout(..., MAX_TIME_IN_FRESH_PACK) keeps event loop not empty util 1mins passed.

For more details, in this question When does Nodejs process quit? it said

Node's mechanism is the event loop and a node process will generally exit when:

The event loop's queue is empty.

No background/asynchronous tasks remain that are capable of adding to the queue.

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

Since it is an obvious bug that I could find the root cause line of code. I didn't prepare a reproduce example. But I believe and Webpack 5.52.1 with cache enabled could reproduce this issue.

What is the expected behavior?

Webpack process should exit immediately after finished build.

Other relevant information:

webpack version: 5.52.1

Node.js version: 14.15.3

Operating System: Darwin Malash-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin

Additional tools: