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

module m {
var z = x;
var y = {
a: x,
x
};
}

Expect

(function (m) {
var z = m.x;
var y = {
a: m.x,
x: m.x
};
})(m || (m = {}));

Actual

(function (m) {
var z = m.x;
var y = {
a: m.x,
x
};
})(m || (m = {}));

objectLiteralShorthandPropertiesWithModuleES6.js

giant.js

Issue 2:
Please fill the following out:

Name: IDeliverable, Ltd.

Homepage url: http://www.ideliverable.com

Brand Guidelines/Licensing: N/A

Logo: http://www.ideliverable.com/Media/Default/Site/Logo-Full-Color-Transparent.svg

Example:

Name: Microsoft

Homepage url: https://microsoft.com

Brand Guidelines/Licensing: https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx

Logo: https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/
Issue 1:
Environment

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

Steps to reproduce

Open PT Run

Type Text

Select entry

4, Remove character from text in input field

Expected behavior

Written text is readable.

Actual behavior

Write Text overlaps with proposal text.

Screenshots

Issue 2:
Steps to repro:

Navigate to a really long path (beyond the search box size)

Do Ctrl+C to copy the file path

Paste the file path in search box

The shadow is misaligned
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When I use noWrap on Typography, it should not cut my "g" off, just like without noWrap

Current Behavior

Steps to Reproduce (for bugs)

Use https://material-ui-1dab0.firebaseapp.com/demos/drawers/#responsive-drawer and add a g

in the title

Context

This is happening because adding noWrap adds overflow: hidden, is this needed? Can we switch to overflow-x: hidden or remove it completely?

Another fix would be to make the component with overflow: hidden fit higher chars.

Thoughts?

Your Environment

Tech
Version

Material-UI
latest

React
16.0.0

browser
chrome canary

Issue 2:
I was trying to install material-ui on an app under with "react": "^0.14.0-beta3". However the package.json in master and alarmingly also in the v0.11 branch seem to have "react": ">=0.13" as a peerDependency.

npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-relay@0.1.1 wants react@^0.14.0-beta3
npm ERR! peerinvalid Peer react-tap-event-plugin@0.1.7 wants react@~0.13.x || ~0.12.x
npm ERR! peerinvalid Peer material-ui@0.10.4 wants react@>=0.13

Is there any way around this ? Or are we not going to be able to combine Material-UI and React 0.14 apps for a few months to come ?
Issue 1:
Allow opening additional windows (BrowserWIndow) to be able to work on multi-monitor setups.

See also:

Detachable split-view

Ability to have a "folder" open over multiple windows (like Visual studio)

Multiple windows, same folder

Issue 2:
Hi,

I suggest floating windows option for:

Terminal

Debug console

Problems

Output

Eventually:

tabs

Explorer / search / debug / git / extensions

This way we could take advantage of large screen space and / or multi monitors.

Having to constantly switch between the various windows is not optimum working flow.
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 a feature request that matches the one I want to file, without success.

Electron Version

^11.0.1

What operating system are you using?

macOS

Operating System Version

MacOs Big Sur, 11.0.1

What arch are you using?

x64

Last Known Working Electron version

None, tried in 12.0.0 also

Expected Behavior

I have added two BrowserView to BrowserWindow using addBrowserView method on BrowserWindow's instance

Ideally, both the browser views should be interactable but I can focus and enter text in only one of the browserviews

Other browserview won't event respond to click events.

Actual Behavior

Browserview in the left is working fine, but on the right, it is frozen, nothing happens on clicking

Repo URL to reproduce this issue

https://github.com/pOoOf/electron-test

Instructions to start server

This works with node 12

nvm use 12
yarn
yarn start

Issue 2:
electron version: 1.6.2

os: windows 7

Okay, here's a problem I've met:

If I set the BrowserWindow with option "transparent: true", the function ".isMaximized()" always return the "false" value, which means I cant reset the window into its initial size.
Issue 1:
🐛 Bug

RuntimeError: Exporting the operator affine_grid_generator to ONNX opset version 11 is not supported. Please open a bug to request ONNX export support for the missing operator.

To Reproduce

Steps to reproduce the behavior:

Just trying to convert this pytorch project in link to onnx model, using the code below in eval.py

"https://github.com/D-X-Y/landmark-detection/tree/master/SBR"

inputs = image.unsqueeze(0)
net.to(torch.device('cpu'))
input_names = [ "actual_input_1" ] + [ "learned_%d" % i for i in range(72) ]
output_names = [ "output1", "output2"]
torch.onnx.export(net, # model being run
inputs, # model input (or a tuple for multiple inputs)
"sbr.onnx", # where to save the model (can be a file or file-like object)
verbose=True, input_names=input_names, output_names=output_names
,operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK
,opset_version=12
)

Expected behavior

Obtaining onnx model file correctly

Environment

PyTorch version: 1.6.0a0+f6b1c04

Is debug build: No

CUDA used to build PyTorch: 10.2

OS: Ubuntu 18.04.4 LTS

GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

CMake version: version 3.17.2

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: Could not collect

GPU models and configuration: GPU 0: GeForce GTX 1050 Ti

Nvidia driver version: 440.64.00

cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:

[pip] numpy==1.18.4

[pip] torch==1.6.0a0+f6b1c04

[conda] blas 1.0 mkl

[conda] libblas 3.8.0 15_mkl conda-forge

[conda] libcblas 3.8.0 15_mkl conda-forge

[conda] liblapack 3.8.0 15_mkl conda-forge

[conda] magma-cuda102 2.5.2 1 pytorch

[conda] mkl 2019.0 pypi_0 pypi

[conda] mkl-include 2019.0 pypi_0 pypi

[conda] mkl-service 2.3.0 py36he904b0f_0

[conda] mkl_fft 1.0.15 py36ha843d7b_0

[conda] mkl_random 1.1.0 py36hd6b4f25_0

[conda] numpy 1.18.2 pypi_0 pypi

[conda] numpy-base 1.18.1 py36hde5b4d6_1

[conda] torch 1.6.0a0+f6b1c04 dev_0

cc @houseroad @spandantiwari @lara-hdr @BowenBao @neginraoof

Issue 2:
import torch
import torch.nn as nn

class Model(nn.Module):
def __init__(self):
super(Model, self).__init__()

def forward(self, theta, size):
return torch.nn.functional.affine_grid(theta, size, align_corners=None)

model = Model()
theta = torch.ones((1, 2, 3))
size = torch.Size((1,3,24,24))
torch.onnx.export(model, (theta, size), 'test.onnx', verbose=True)

Result:

RuntimeError: Exporting the operator affine_grid_generator to ONNX opset version 9 is not supported.
Issue 1:
The link on the 1.0 documentation "View the latest version here" should point to the 1.1 version of the same page (if it exists). Currently, it just navigates to the root page (http://kubernetes.io/docs).

Issue 2:
Getting messages like the following repeatedly in the log:

W0129 04:35:07.724460 1 aws.go:1489] Error authorizing security group ingressInvalidPermission.Duplicate: the specified rule "peer: sg-fd3fc79a, ALL, ALLOW" already exists

It seems the controller should just be satisfied that the rule already exists and move on.
Issue 1:
@ symbol is not working with German keyboard layout. Nothing appears in editor, neither with hardware, nor with virtual keyboard. Works in all other software. There is no other keybinding set for this in Atom, as far as i can see.

If i switch to English layout, it works, but screws all the other symbols, obviously.

Win 8.1/64bit

Atom 0.113.0

Issue 2:
Atom doesn't handle keyboards with Right Alt (i.e. AltGr). This is a very basic mistake. I have a Hungarian keyboard layout, I can only write specific keys like "|" (pipe) by pressing Right Alt (AltGr) and then W, which Atom doesn't recognize and treat like Alt-W or something?

The point is there are some layouts like greek, hungarian, czech with special keys, which an EDITOR should handle the right way!!

E.g. I can't write CTRL-", because it writes the number "2" instead. I think this key might be interpreted like CTRL-ALT sequence, but not sure either.

Anyway, without it, it's just not an editor.

Like Windows Media player; you can't pause a movie with it hitting space bar...

From: support/9f98abca9f4a11e3955c6445541b1a76
Issue 1:
Bug report

Describe the bug

I have two page components PageA and PageB. PageA doesn't use antd components but PageB does. The style file of PageB imported antd's css file:

style-b.less

@import '~antd/dist/antd.css';
// ...other styles

PageB:

import './style-b.less'
// ...

When I first open PageB, everything runs well;

When I first open PageA and jump to PageB (by click a link in PageA), the antd css file is not loaded.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Open localhost:3000/b (pageB rendered correctly)

Open localhost:3000/a, click the link to jump to b (this time pageB doesn't load antd's style)

Expected behavior

When jump to b from a, b have the antd style file loaded.

System information

OS: mac

Browser (if applies) chrome 73.0.3683.86

Version of Next.js: 8.0.3

Issue 2:
In this small repo I've illustrated next-css not working with SSR, this is a blocker from my team moving off of https://github.com/traveloka/styled-modules which we're super eager to do.

Great work on Next.js 5.0! Can't wait to fully migrate to it :)

I would mind if Next.js apps had to have a custom _document.js to support this, but I guess thats more of an implementation detail.
Issue 1:
Affected Version

0.20.0

Description

Ingesting to same Datasource from 2 different Kafka clusters with exact same topic name/specs overwrites previous Supervisor.

Steps to reproduce the problem

Create 1st Kafka spec and submit;

Create 2nd Kafka spec and submit with exact same spec as 1st, but w/ different Kafka brokers.

Expected results: 2 Supervisors ingesting from 2 different Kafka clusters w/ same topic name to same Datasource

Issue 2:
Opentsdb logs as follows:

20:23:04.230 WARN [PutDataPointRpc.execute] - Invalid tag value ("bd-prod-rt-olap0:8082"): illegal character: :: metric=query.cpu.time ts=1527769336 value=1101 service=druid/broker host=bd-prod-rt-olap0:8082 type=segmentMetadata dataSource=accesslog-tranquility-seller-log

tag value should be sanitized too.
Issue 1:
TypeScript Version:

nightly (1.9.0-dev.20160429)

Code

const foo = {
_foo: 'bar',
get foo() { // <- 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
return this._foo;
},
set foo(value) { // <- 'value' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
this._foo = value;
}
};

Expected behavior:

No errors.

Actual behavior:

With the compiler option noImplicitAny = true and inferred object literal typing, the compiler is complaining that get and set accessors have inferred any types, when though it is logical that the type of string can be inferred from the context (or at least I am missing the reason why it cannot be inferred).

Issue 2:
TypeScript Version:

1.8.9

Code

interface Window {
URL;
}

Actual behavior:

When upgrading typescript versions, new definitions were added to lib.d.ts, and these new definitions cause conflicts with definitions we had in our project.

This makes it annoying to upgrade typescript since we have to introduce a change to the code that breaks anyone using an old compiler.

Expected behavior:

Typescript would merge the types in my project definitions with lib.d.ts without complaint.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I entered my comments into the code editor, however, the left panel is responding by pretty much telling me my code has an error. I don't see anything wrong with my line of code, and this is also the first time that the left panel has said why my code is incorrect, which I've noticed that it never had mentioned reasons for any of my code errors in my code editor in the previous lessons.

Issue 2:
As discussed on the chat there is two annoying things making me want to smash my mac.

Everytime I change the code inside editor, left sidebar scroll up, and effectively making me scroll down as I want to see "objectives"

Exiting from the ""(quotes) could be easier then clicking left key, shortcut alt+space would be amazing, I have the same shortcut in my Sublime Text, and its time saver, also my left pinky love me.

@benmcmahon100
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:

7.0.0-beta.4

6.0.7

5.0.10

4.2.10

3.1.13

2.0.18

Operating System:

macOS 10.14.6

Last Known Working Electron version:

unknown (doesn't work on the latest major releases listed above)

Expected Behavior

Cursor style is applied when mousing over a frameless BrowserWindow.

Actual Behavior

Cursor style is ignored for the top ~24px of a frameless BrowserWindow

To Reproduce

Create a BrowserWindow with frame: false

Add the following to the page's HTML:

<div style="height: 50px; width: 100%; background-color: red; cursor: pointer;"></div>

Run the app

Hover your cursor over the top of the window

Electron Fiddle example:

https://gist.github.com/7bc823b3ce1797d45841cf799f52008f

Screenshots

Additional Information

The affected area appears to be the height of a native macOS title bar.

Issue 2:
If you place an element with a css cursor style at the top of the page where the title bar would be with titleBarStyle="hidden", the cursor always displays as default. A simple example would be a link.
Issue 1:
The following code produces a segmentation fault in my configuration:

np.bincount(np.ones(np.power(2,32),dtype=(np.uint16)))

platform : linux-64

numpy version: 1.93

Issue 2:
I'm getting this weird concatenating issue when trying to transform a numpy array. When I filter by the 2nd column of the array, I get correct results, but when I filter by the third, the dtype is changed to U1, and the text is truncated.

Reproducing code example:

import numpy as np

dat = np.array([[2.017298e+06, 7.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00],
[2.017299e+06, 7.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00],
[2.017199e+06, 0.000000e+00, 2.000000e+02, 0.000000e+00, 0.000000e+00],
[2.017135e+06, 0.000000e+00, 7.000000e+01, 1.000000e+01, 4.000000e+00]])

resA = np.apply_along_axis( (lambda a : "foo" if (a[1] != 0) else "" ), 1, dat)

resB = np.apply_along_axis( (lambda a : "foo" if (a[2] != 0) else "" ), 1, dat)

print("Res A")
print(resA)
print("Res B")
print(resB)

Output message:

I expected:

Results
Res A
['foo' 'foo' '' '']
Res B
['' '' 'foo' 'foo']

But got:

Results
Res A
['foo' 'foo' '' '']
Res B
['' '' 'f' 'f']

Numpy/Python version information:

1.18.1 3.7.6 (default, Jan 8 2020, 19:59:22)

[GCC 7.3.0]
Issue 1:
Not sure if this is intentional or not but when a form is posted, the order in which they are posted is not taken into account.

Basically, I want to have a collection of input fields which will be drag/drop. The user will enter text in the input field and then may decide they want to drag it above a previous input field.

If one of the input fields fails validation the form is displayed along with the errors. However, the input fields are no longer in the order they were posted.

Issue 2:
Looks like there is a bug, when generating URI of duplicated request. Here is an example:

$request = Request::create('/test', 'GET', array('page' => 100));
$duplicated = $request->duplicate(array('page' => 1));
echo $duplicated->getUri();
// expected output: http://localhost/test?page=1
// actual output: http://localhost/test?page=100
Issue 1:
Hi,

in many applications will be useful to have available not only the gradients averaged on minibatches, but also its second momentum for each parameter.

I think developers can do it with a small computation overhead by modifying accumulate_grad.cpp (I was not able to understand the underlying class structure), accumulating also the square of the individual contribution to the gradient (which is much more simple that getting the individual contribution to the gradients as requested in #7786).

I'm aware that it will duplicate the memory requirements, but hopefully it can be done as optional.

Thank you very much.

If you have a question or would like help and support, please ask at our

forums.

If you are submitting a feature request, please preface the title with [feature request].

If you are submitting a bug report, please fill in the following details.

Issue description

Provide a short description.

Code example

Please try to provide a minimal example to repro the bug.

Error messages and stack traces are also helpful.

System Info

Please copy and paste the output from our

environment collection script

(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

PyTorch or Caffe2:

How you installed PyTorch (conda, pip, source):

Build command you used (if compiling from source):

OS:

PyTorch version:

Python version:

CUDA/cuDNN version:

GPU models and configuration:

GCC version (if compiling from source):

CMake version:

Versions of any other relevant libraries:

Issue 2:
Currently, loading checkpoints using strict=False can be fairly error-prone. An extra level (for example with a nn.DataParallel) could lead to completely missing loading all the weights, and there is no sign that this has happened.

Proposal:

A way to enable user-code to verify for possible mistakes would be to add an option to load_state_dict to return matched / unmatched / unexpected keys.

This would allow the user to easily inspect if the loading is actually doing what is expected.

Returning those values is only needed if strict=False, because in strict=True mode an error is raised if the state dict doesn't match exactly.

A possible API:

def load_state_dict(self, state_dict, strict=True, return_unmatched=False):
...
if return_unmatched:
return matched, unmatched, unexpected

Thoughts?
Issue 1:
Buggy case

The following example produces an empty figure:

import matplotlib.pyplot as plt

fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
ax2 = ax1.twinx()
ax2.cla()
ax1.plot([1,2,3])
fig.savefig('test.png')

Control case

If I remove twinx it works:

import matplotlib.pyplot as plt

fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
ax2 = ax1.twinx()
ax1.plot([1,2,3])
fig.savefig('test.png')

Versions

$ python --version
Python 3.4.2 :: Continuum Analytics, Inc.
$ python -c 'import matplotlib; print(matplotlib.__version__)'
1.4.2

Issue 2:
With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a much longer program where the twinx axes must be cleared while retaining the primary axis plot. I would prefer not to replot the entire graph each time the twinx axes change. You can see this by adding the cla method to the matplotlib web site example, two_scales.py, shown below.

I have matplotlib installed via the anaconda package. Matplotlib 1.4.0 is from anaconda 2.1.0. Matplotlib 1.3.1 is from 1.9 versions of the anaconda package.

Linux version:

Linux gamow 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux

Same cla() result on osX 10.9.4.

Same result for backends Qt4Agg and TkAgg; the cla() method cleared both axes.

I also tried various other options such as setting ax2.hold(False) prior to replotting ax2. However, once again ax1 was cleared. The ax2 clear commands seem to apply to the ax1 axis as well??? These options worked as expected for the earlier matplotlib version, clearing only the ax2 axis.

Here’s the code: if you execute the code, you should see a blank figure with the cla() included and the usual two graphs without the cla() method.

import numpy as np
import matplotlib.pyplot as plt

fig, ax1 = plt.subplots()
t = np.arange(0.01, 10.0, 0.01)
s1 = np.exp(t)
ax1.plot(t, s1, 'b-')
ax1.set_xlabel('time (s)')
# Make the y-axis label and tick labels match the line color.
ax1.set_ylabel('exp', color='b')
for tl in ax1.get_yticklabels():
tl.set_color('b')

ax2 = ax1.twinx()
s2 = np.sin(2*np.pi*t)
ax2.plot(t, s2, 'r.')
ax2.set_ylabel('sin', color='r')
for tl in ax2.get_yticklabels():
tl.set_color('r')

# single line addition to the two_scales.py example
# clears both ax2 and ax1 under matplotlib 1.4.0, clears only ax2 under matplotlib 1.3.1
# obviously, same result with ax2.clear() method
ax2.cla()

plt.show()

I would appreciate any help; this looks like a bug in the latest version of matplotlib.

I could not find any reference to this problem in earlier posts.

Thanks,

Charlie

[TAC edited for markup]
Issue 1:
There is already exists es7 proposal https://github.com/leebyron/ecmascript-more-export-from

and it accepted to stage-1.

It sould be nice to have same in typescript. Without it, it is annoying to write something like:

// module1.ts
module Module1 { // I should explicit wrap to module for export
// ... module declaration
}
export default Module1

// module2.ts
module Module2 {
// ... module declaration
}
export default Module2

// index.ts
export {default as Module1} from "./module1"
export {default as Module2} from "./module2"

// usage.ts
import * as Modules from "./index"

// can be used Modules.Module1.

This can be done better with proposal:

// module1.ts
// just a module declaration, without wrapping to explicit module

// module2.ts
// just a module declaration, without wrapping to explicit module

// index.ts
export * as Module1 from "./module1"
export * as Module2 from "./module2"

// usage.ts
import * as Modules from "./index"

// can be used Modules.Module1.

Issue 2:
The ES7 proposal is available at: https://github.com/leebyron/ecmascript-more-export-from

The additions include:

reexporting default:

// proposed:
export v from "mod";

// symmetric to:
import v from "mod";
export {v};

reexporting as sub-module:

// proposed:
export * as ns from "mod";

// symmetric to:
import * as ns from "mod";
export {ns};

also allowing combining

// proposed
export v, {x, y as w} from "mod"
// symmetric to
import v, {x, y as w} from "mod"
As well as

// proposed
export v, * as ns from "mod"
// symmetric to
import v, * as ns from "mod"
Issue 1:
An official apt repository would be really, very nice.

At present we're hesitant to install any software that we can't automate updates through the package manager.

Currently going to the elasticsearch website and downloading the latest deb from a web page just isn't suitable.

Issue 2:
Currently I´m checking once in a while if there are new packages available for Debian systems, but this is cumbersome. Ideally I could add your repository and import public keys into my apt keyring and get updates whenever they're ready. It doesn't really scale on an admin level to verify all packages manually ;-)