WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hello,

I wrap my component with withTheme()(Comp) however, I get function instead theme object.

Is that about chaining (order etc) withStyles(styles)(withTheme()(Comp)) because It works well at other components(which doesn't have this much chaining)?

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

Expected Behavior

Should pass theme object into the props

Current Behavior

Theme is function

ƒ () {
return _this.__theme__REACT_HOT_LOADER__.apply(_this, arguments);
}

Steps to Reproduce (for bugs)

...
import {withStyles} from 'material-ui/styles';
import {withTheme} from 'material-ui';

class ControlPanel extends React.Component<Props, State> {
constructor(props: Props) {
super(props)
this.props = props;
this.state = {
darkTheme: props.theme.palette.type == "dark"
}
console.log(props.theme)
//here theme is function
}
render(...)
}

export default injectIntl(withStyles(styles)(withTheme()(withRouter(ControlPanel))));

And, also when I edit component, I get this warning which I believe could be linked.

main.bundle.js:73901 React Hot Loader: this component is not accepted by Hot Loader.
Please check is it extracted as a top level class, a function or a variable.
Click below to reveal the source location:
ƒ Style(props, context) {
(0, _classCallCheck3.default)(this, Style);

var _this = (0, _possibleConstructorReturn3.default)(this, (Style.__proto__ || (0, _getPrototypeOf2.default)(Style…
warnAboutUnnacceptedClass @ main.bundle.js:73901
resolveType @ main.bundle.js:73920
patchedCreateElement @ main.bundle.js:73942
render @ main.bundle.js:74472
render @ main.bundle.js:76797
finishClassComponent @ main.bundle.js:65916
updateClassComponent @ main.bundle.js:65893
beginWork @ main.bundle.js:66272
performUnitOfWork @ main.bundle.js:68240
workLoop @ main.bundle.js:68349
callCallback @ main.bundle.js:56966
invokeGuardedCallbackDev @ main.bundle.js:57005
invokeGuardedCallback @ main.bundle.js:56862
performWork @ main.bundle.js:68467
scheduleUpdateImpl @ main.bundle.js:68852
scheduleUpdate @ main.bundle.js:68791
scheduleTopLevelUpdate @ main.bundle.js:69062
updateContainer @ main.bundle.js:69092
renderSubtreeIntoContainer @ main.bundle.js:72775
render @ main.bundle.js:72796
(anonymous) @ main.bundle.js:91154
Promise resolved (async)
./src/index.js @ main.bundle.js:91150
__webpack_require__ @ main.bundle.js:708
hotApply @ main.bundle.js:632
(anonymous) @ main.bundle.js:314
Promise resolved (async)
hotUpdateDownloaded @ main.bundle.js:313
hotAddUpdateChunk @ main.bundle.js:290
webpackHotUpdateCallback @ main.bundle.js:32
(anonymous) @ 1.3ee591b153dc2b6585ad.hot-update.js:1

Your Environment

Tech
Version

Material-UI
beta 18

React
16

browser
any

Thank you.

Issue 2:
Same as #8190, the stepper should allow invalid children.

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

Your Environment

Tech
Version

Material-UI
0.19.4

React
15.4.0

browser
chrome
Issue 1:
I was trying to figure out which version of Deno broke my app, so I was bisecting different versions blindly and discovered an amusing error. When deno upgrade is given a non-existent version, its output is unclear and contradictory, as it says that the version was found, but then fails to download it due to a 404 Not Found error.

Is "Version has been found" hardcoded? 😄

❯ deno upgrade --version 1.0.6
Version has been found
Deno is upgrading to version 1.0.6
downloading https://github.com/denoland/deno/releases/download/v1.0.6/deno-x86_64-apple-darwin.zip
error: Import 'https://github.com/denoland/deno/releases/download/v1.0.6/deno-x86_64-apple-darwin.zip' failed: 404 Not Found

Issue 2:
Make it possible to embedded deno into another application. like electron with nodejs.

Any plan about this?
Issue 1:
Bug report

When closing a watching compiler programmatically, the node process crashes.

What is the current behavior?

Getting the following crash in several repositories on our Mac CIs:

Assertion failed: (0), function uv_close, file ../deps/uv/src/unix/core.c, line 187.
error Command failed with signal "SIGABRT".

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

clone repo: https://github.com/AviVahl/lodash-es-webpack4

yarn

paste the following to a.js:

const webpack = require('webpack');
const compiler = webpack({ mode: 'development' });

function createWatcher() {
const watcher = compiler.watch({}, () => {
console.log('watching');
setTimeout(() => {
watcher.close(() => {
console.log('closed watcher');
createWatcher();
});
}, 1000);
});
}

createWatcher();

node a.js

What is the expected behavior?

(for the above code) watch -> wait for 1 sec -> close watcher -> rewatch and repeat process.

Other relevant information:

webpack version: 4.41.2

Node.js version: 13.2.0

Operating System: Mac 10.12.6

@sokra maybe this is because watchpack is using old chokidar with outdated fsevents? :/

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

It's impossible to perform a rule based on resourceQuery condition if a module has no query at all. That module won't pass directly.

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

I have this case where there are resources of the same extension that some are loaded in a certain way an some in another. I can reach it using resource queries.

So I can write some config like this:

{
module: {
rules: {
{
test: /\.ext$/i,
resourceQuery: {
exclude: /\?another/i,
},
loader: 'normal-loader'
},
{
test: /\.ext$/i,
resourceQuery: /\?another/i,
loader: 'another-loader'
}
}
}
}

So I want that .ext files get loaded with normal-loader. Except the ones with ?another query, these will load with another-loader.

But here's the result:

path/to/module.ext?another: loaded with another-loader

path/to/module.ext?asdfg: loaded with normal-loader

path/to/module.ext: none, but we were naturally expecting normal-loader

I guess there's a problem with the logic around here:

https://github.com/webpack/webpack/blob/v2.2.0-rc.0/lib/RuleSet.js#L361

It's skipping the condition and rejecting directly if resourceQuery is empty and there's a condition.

What is the expected behavior?

It must be able to test a resourceQuery condition in an empty query.

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

Node.js: v7.2.1

Webpack: v2.2.0-rc.0
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/292 on 2006-09-23 by @baxissimo, assigned to unknown.

repmat() should work with inputs of any shape and take a tuple for the output number of repeats.

If this is considered too big a change to replace repmat's 3-argument signature with an incompatible 2-arg one, then a new function 'reparray' should be added.

An example implementation is below

def reparray(A, tup):
"""Repeat an array the number of times given in the integer tuple, tup.

Similar to repmat, but works for arrays of any dimension.
reparray(A,(m,n)) is equivalent to repmat(A,m,n)

If tup has length d, the result will have dimension of max(d, A.ndim).
If tup is scalar it is treated as a 1-tuple.

If A.ndim < d, A is promoted to be d-dimensional by prepending new axes.
So a shape (3,) array is promoted to (1,3) for 2-D replication,
or shape (1,1,3) for 3-D replication.
If this is not the desired behavior, promote A to d-dimensions manually
before calling this function.

If d < A.ndim, tup is promoted to A.ndim by appending 1's to it. Thus
for an A.shape of (2,3,4,5), a tup of (2,2) is treated as (2,2,1,1)

Examples:
>>> a = array([0,1,2])
>>> reparray(a,2)
array([0, 1, 2, 0, 1, 2])
>>> reparray(a,(1,2))
array([[0, 1, 2, 0, 1, 2]])
>>> reparray(a,(2,2))
array([[0, 1, 2, 0, 1, 2],
[0, 1, 2, 0, 1, 2]])
>>> reparray(a,(2,1,2))
array([[[0, 1, 2, 0, 1, 2]],

[[0, 1, 2, 0, 1, 2]]])

See Also:
repmat, repeat
"""
if numpy.isscalar(tup):
tup = (tup,)
d = len(tup)
c = numpy.array(A,copy=False,subok=True,ndmin=d)
shape = list(c.shape)
n = c.size
for i, nrep in enumerate(tup):
if nrep!=1:
c = c.reshape(-1,n).repeat(nrep,0)
dim_in = shape[i]
dim_out = dim_in*nrep
shape[i] = dim_out
n /= dim_in
return c.reshape(shape)

A more complete version with two implementations and tests and timing code is attached.

Issue 2:
It seems as argsort has a bug for dimension 3 arrays in an specific order.

For instance if I wrote

import numpy as np

np.argsort(array([2,3,1])

The returned value is:

array([2, 0, 1])

If I change the order of the numbers (i.e. [1,2,3]) the function works well.

I have cross checked the malfunction in python 2.7.6 with numpy 1.8.2 and python 3.5.2 with numpy version 1.11.1 both in windows and linux.
Issue 1:
Challenge Bonfire: Seek and Destroy has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0.

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

My code:

function destroyer(arr) {

// Remove all the values

var arr = arguments[0];

var z = [];

var j = 0;

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

z[j]=arguments[i];

j = j+1;

}

var chris = 0;

var leny = arr.length;

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

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

chris = arr.indexOf(z[k]);

if (chris != -1) {

arr.splice(chris, 1);

}

}

}

return arr;

}

destroyer(["tree", "hamburger", 53], "tree", 53, "");

Issue 2:
Challenge Bonfire: Seek and Destroy has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0.

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

My code:

function destroyer(arr) {
// Remove all the values

var arr = arguments[0];
var z = [];
var j = 0;
for (i = 1; i < arguments.length-1; i++) {
z[j]=arguments[i];
j = j+1;
}

var chris = 0;
var leny = arr.length;
for (i = 0; i < z.length; i++) {
for (k = 0; k < z.length; k++) {
chris = arr.indexOf(z[k]);
if (chris != -1) {
arr.splice(chris, 1);
}
}
}

return arr;
}

destroyer(["tree", "hamburger", 53], "tree", 53, "");
Issue 1:
I realize that a profiles feature is to be implemented for keyboard manager as seen on #1881 and would be an easy way to toggle between a profile with the actual shortcuts and a blank profile as an on/off toggle but that seems slightly far for now and having a way of quickly toggle it off would be a nice QoL change that doesn't necessarily overlap with profiles.

For a bit of context, I'm using shift+1~5 to send 6~0 while gaming as a sort of accessibility workaround and would like to be able to use the !@#$% symbols on chat without having to tab out and disable keyboard manager or setting another convoluted set of shortcuts to send those inputs again.

So:

shift+1 currently set to 6

press toggle shortcut(e.g. win+~)

can now type Hello! instead of Hello6

press toggle shortcut again

shift+1 is now back as 6

Issue 2:
A way in which to easily toggle on and off the keyboard manager feature without having to leave fullscreen apps, specifically games.

A shortcut keybind that is resignable that would allow for the keyboard manager to be toggled on and off without the need to alt+tab out of games.

A resign-able shortcut key to toggle keyboard manager. This is for those of us out there who game, having an easy to access way to toggle the keyboard from alt setups to default qwerty for WASD would be great. At the moment I need to alt+tab and manually click the feature off and on and it is very cumbersome. I had a previous setup with a custom keyboard and portable keyboard layout, but there was always the odd app that would choose the wrong keyboard, so powertoys is better, but the toggle would be a huge help.
Issue 1:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): N/A
Lenovo Flex 2 core i3 with Synaptics touchpad, latest Microsoft driver 19.0.9.5

Steps to reproduce

Update Powertoys to latest version

Expected behavior

Powertoys can be updated without affecting touchpad behaviour

Actual behavior

Touchpad is affected as decsribed above

Screenshots

Issue 2:
Hi all,

After installing v0.18.0 (and still, now, with v0.18.1), when I try to open the PowerToys Settings dialog, I can initially see the left-nav menu and main-panel heading, but the left-nav disappears almost instantly, and then after a beat or two, the main-panel heading goes away as well.

What I'm left with, in the end, is just the grey background on the left-nav side. (See attached)
Issue 1:
2020-11-29T19_15_09_981Z-debug.log

Current Behavior:

When ever i used to create a new project/App

Expected Behavior:

IT should create a project without any error

Steps To Reproduce:

open cmd

type ng new project name

Environment:

OS: Window 32 X64

Node: 13.14.0

npm: 6.4.12

Issue 2:
2020-11-05T23_26_35_510Z-debug.log

Current Behavior:

Expected Behavior:

Steps To Reproduce:

Environment:
Issue 1:
Description of the new feature/enhancement

I want to use WT as an external terminal for VS Code, but when I set it, the terminal just opens without running my programs. Seems like this is not implemented, so yes, why not to implement it?

Proposed technical implementation details (optional)

Issue 2:
Environment

10.0.18362.267

1909

Steps to reproduce

Type/paste in a special character, attempt to erase with backspace

Expected behavior

Character should be erased from screen

Actual behavior

Character not being erased from screen, although it is not still present

(I am using cascadia because it felt to me like it might be related; but when I swapped it to consolas it still happened.)
Issue 1:
Steps to reproduce

Install Kubernetes via KUBERNETES_PROVIDER=vagrant curl -sS https://get.k8s.io | bash

ssh into kubernetes minion

run docker ps a few times

See that the container is only up a few seconds and then later restarts

Setup

OSX Yosemite

VirtualBox 5.0.8

Vagrant 1.7.4

Kubernetes version: Client Version: version.Info{Major:"1", Minor:"0", GitVersion:"v1.0.1", GitCommit:"6a5c06e3d1eb27a6310a09270e4a5fb1afa93e74", GitTreeState:"clean"} Server Version: version.Info{Major:"1", Minor:"0", GitVersion:"v1.0.6", GitCommit:"388061f00f0d9e4d641f9ed4971c775e1654579d", GitTreeState:"clean"}

Seems like it might be a duplicate of #8042

Issue 2:
Kubernetes version used: 0.16.2

skydns image: gcr.io/google_containers/skydns:2015-03-11-001

kube2sky image: gcr.io/google_containers/kube2sky:1.4

I am running this set up locally and able to run pods, services, replicationcontrollers. When I set up the dns by running the rc and service as available in the skydns-rc.yaml.yaml and skydns-svc.yaml, observed that skydns exits repeatedly and gets created again. Watching the logs of this container gives the following lines before exiting.

sudo docker logs -f f7c77646eff5

2015/05/10 17:09:16 skydns: falling back to default configuration, could not read from etcd: 100: Key not found (/skydns/config) [759]

2015/05/10 17:09:16 skydns: ready for queries on kubernetes.local. for tcp://0.0.0.0:53 [rcache 0]

2015/05/10 17:09:16 skydns: ready for queries on kubernetes.local. for udp://0.0.0.0:53 [rcache 0]

2015/05/10 17:09:54 skydns: can not forward, name too short (less than 2 labels): foobar.' 2015/05/10 17:09:54 skydns: can not forward, name too short (less than 2 labels):foobar.'

2015/05/10 17:09:54 skydns: can not forward, name too short (less than 2 labels): `foobar.'

Can this be considered normal behavior ? (albeit, the dns functionality works well)
Issue 1:
Lets say i have shader material, and some property that makes the same shader appear as either plastic, metal, or wood...

//magic parameter
var _staticUniform = {
type:'f',
value: 1
};

var myPlasticRecipe = new THREE.ShaderMaterial({
uniforms:{
uniqueColor:{type:'c', value: new THREE.Color()},
staticMaterialProperty: _staticUniform
},
vertexShader: someVShader,
fragmentShader: someFShader
}

var redPlasticMaterial = myPlasticRecipe.clone();
redPlasticMaterial.uniforms.uniqueColor.value.setRGB(1,0,0);

var bluePlasticMaterial = myPlasticRecipe.clone();
bluePlasticMaterial.uniforms.uniqueColor.value.setRGB(0,0,1);

I'd like to change the magic parameter and affect all the materials without manually keeping track of everything, but since material.clone() calls uniformsUtils.clone() and does a deep copy the reference to the static uniform is lost.

Not sure if this would be useful to anyone else, but having uniformsUtil look up a (optional) type and then decide wether to copy or make a reference could be helpful. Sometimes textures can be shared etc. Any thoughts?

Issue 2:
Hello,

I experience a weird problem when rotating some models in three.js. Under certain angles of view some parts of a model become invisible. The problem is definetely has nothing to do with material.side.

Front view:

Back view ('good' angle):

Back view ('bad' angle):

Sample model:

Sample_GLTF.zip

Three.js version

Dev

r98

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Hi,

The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.

I am checking on source code line 932, if I commented out this line then it is working again.

this.$element

.removeClass('in')

.attr('aria-hidden', true)

//.off('click.dismiss.modal')

Am I missing anything...?

Sorry for the grammar. Thanks.

Issue 2:
Description: Type something in a typeahead field (use the one on demo) and immediately click one of the items in dropdown. Often a click will result in no selection, and nothing will be filled in the text field.

Steps to reproduce:

Go to twitter bootstrap typeahead demo

Type 'as' and select Alaska right away

This was tested on Chrome 19.0.1084.46. Firefox does not exhibit the issue nearly as often, though, but I've seen the behavior occasionally on Firefox.
Issue 1:
Using the following code

plt.plot(pd.to_datetime(np.linspace(1501288700, 1501290000, 10), unit='s'), np.arange(10))

plt.show()

I obtain different result using 0.20 or 0.21.

Using the code above with Pandas 0.20 the plot automatically identifies that the X axes contains dates. While using pandas 0.21 this, or other attempts, to force the X axes to show dates in the axes. The two plots have been attached and as you can notice one has show the datetiem as "%d %H:%M", as expected, while the 2nd made with the latest package shows integers.

All the other packages are unchanged.

Issue 2:
Possibly related to #3468

Using pandas 0.10.1.

It's legal for sql (at least Sql Server) to have queries that return two columns with the same name. And it's legal for pandas to have dataframes that have two columns with the same name. But pandas gives a very misleading error message when you try it with read_frame:

Query that has 2 columns with the same name:

sql = "select 1 as whatever, 2 as name, 3 as name where 1=0"

pos = pandas.io.sql.read_frame(sql, dbconn)

That gives very misleading error message
Issue 1:
Property event in global object Window is non-standard and must be removed from lib.d.ts because of possible errors in browsers that follow the standard (Mozilla Firefox, for example).

It's also an ability for potential wrong behavior in code (example below).

TypeScript Version:

1.7.5 / current Git code.

Code

function someHandler( event: Event, additionalData: number ): void
{
console.log( event, additionalData );
}

const onClick = (): void => someHandler( event, 1 ); // <-- forgot the argument `event`

element.addEventListener( 'click', onClick );

Expected behavior:

Error — event is not defined.

Actual behavior:

Silence but code may work incorrectly and didn't work in some browsers.

Issue 2:
The example below compiles - it shouldn't, I think...

ttsiod@avalon /home/ttsiod/tmp/TypeScript.bug
$ cat foo.ts
function whyTSwhy(config: {
name?:string
})
{
console.log(config.name);
console.log(name);
}

ttsiod@avalon /home/ttsiod/tmp/TypeScript.bug
$ tsc -t ES5 foo.ts
$

Typescript fails to see that there is no "name" variable - only "config.name" is valid in this context.

I am using the version from the repos, commit af4a121 .
Issue 1:
Challenge use-hex-code-to-mix-colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

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

The Task "Give your h1 element with the text I am dodger blue! the color dodger blue" does not complete with the below code:

<style>
.red-text {
color: #FF0000;
}
.green-text {
color: #00FF00;
}
.dodger-blue-text {
color: #1E90FF;
}
.orange-text {
color: #FFA500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Issue 2:
Challenge use-hex-code-to-mix-colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

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

<style>
.red-text {
color: #ff0000;
}
.green-text {
color: #00ff00;
}
.dodger-blue-text {
color: #1e90ff;
}
.orange-text {
color: #ffa500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Screenshot:
![image](https://cloud.githubusercontent.com/assets/3306170/18378269/47f34348-766c-11e6-8fb7-6e2da365ced7.png)
Issue 1:
Environment

Affected: any supported Windows 10, currently 18362.10022

Windows Terminal preview 0.5.2762

Any other software?

nothing special

Steps to reproduce

Open Windows Terminal

type commands or text

select the stuff with your mouse

press enter key

Expected behavior

This should copy the selection into clipboard just as usual with legacy cmd / powershell terminal

Actual behavior

pressing enter key will issue the command as if there was no selection in progress

Issue 2:
Your Windows build number: (Type ver at a Windows Command Prompt)

Version 10.0.18305.1003

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

When using Bash on Windows (WSL) with Ubuntu 18.04, sporadically when exiting Vim on a remote host via ssh, the console stops rendering new text. It doesn't happen all of the time, and it seems that re-entering vim, then exiting immediately solves the problem; no need to close & restart the shell.

What I've seen is that the cursor appears to be in the correct place, and it blinks as usual. The cursor moves in response to key presses. Key presses are sent, as when I'm in this state, I can type 'vim' and vim properly starts and renders. While I'm in vim, everything works as expected. When I exit vim (for the second time), it usually resets and the console works properly again.

What's wrong / what should be happening instead:

I would expect that after quitting Vim, that the console would behave as normal. i.e. key presses are properly echo'd, the prompt is rendered, etc.