WhereIsAI/github-issue-similarity huggingface dataset:
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:

4.1.0 or 4.1.3 or 5.0.0 -bata7 (x86)

Operating System:

Windows 10 x64

Last Known Working Electron version::

none

Expected Behavior

webContents.print({ silent: true }, function(error) { console.log(error) });

Don't ask user for print settings, and send page to printer print

Actual Behavior

First call:

No response, no callback, no results returned

Call again:

Callback returns error, console output: false

To Reproduce

Screenshots

Additional Information

Issue 2:
Issue Details

Electron Version:

5.0.4

Operating System:

Windows 10

Last Known Working Electron version:

None

Expected Behavior

webContents.print(option, callback) can work with parameters.

Actual Behavior

webContents.print() will work without parameters.

But it doesn't respond when adding parameters, no errors, and no callback. If the window is closed at this time, a "false" callback will be made.

printPage.webContents.print() // may work

printPage.webContents.print({silent: true}, (e) => console.log(e)) // no respond

I'm not sure if this is a BUG, and I still want to find a solution. Thank!!!
Issue 1:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider

Guessing it's related to #2863.

Issue 2:
I am using SimpleTarget to draw thing over downloaded images and then showing in ImageView.

When i navigate from the activity and back and attempt to reload the images, the things that i drew previously are not cleared. I assume Glide is setting previous bitmap from memory. Is there a way to override it? Here is my code:

Target<Bitmap> target = new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) {
if (notWatched) {
Canvas canvas = new Canvas(resource);
Paint paint = new Paint();

paint.setColor(ivImage.getResources().getColor(R.color.blue));
paint.setStyle(Paint.Style.FILL);
paint.setAntiAlias(true);

int triangleSide = canvas.getHeight() / 5;
Point a = new Point(canvas.getWidth(), 0);
Point b = new Point(canvas.getWidth(), triangleSide);
Point c = new Point(canvas.getWidth() - triangleSide, 0);

Path path = new Path();
path.setFillType(Path.FillType.EVEN_ODD);
path.moveTo(a.x, a.y);
path.lineTo(b.x, b.y);
path.lineTo(c.x, c.y);
path.lineTo(a.x, a.y);
path.close();

canvas.drawPath(path, paint);
}
ivImage.setImageBitmap(resource);
}
};
Glide.with(this).load(imageUrl).asBitmap().centerCrop().into(target);
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: xxx

Operating System version: xxx

Java version: 1.8

Expected Result

Actual Result

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.1

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

protocol设置为dubbo 序列化设置为 protosubff

等待心跳

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

Expected Result

What do you expected from the above steps？

Actual Result

WrapperUtils.needWrapper(Object obj){

return needWrapper(obj.getClass()); //这里obj 是null报错

}

因为NettyClientHandler.userEventTriggered()

方法创建Request对象时候 mData 属性没有null

请问是不是我使用protosubff 姿势不对

Just put your stack trace here!
Issue 1:
When incorrectly passing a keyword to a variable, the error message is confusing:

fatal: [flexo.kormoc.com] => Traceback (most recent call last):
File "/Users/kormoc/Projects/Ansible/ansible/lib/ansible/runner/__init__.py", line 421, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/Users/kormoc/Projects/Ansible/ansible/lib/ansible/runner/__init__.py", line 512, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/Users/kormoc/Projects/Ansible/ansible/lib/ansible/runner/__init__.py", line 706, in _executor_internal_inner
module_args = template.template(self.basedir, module_args, inject, fail_on_undefined=self.error_on_undefined_vars)
File "/Users/kormoc/Projects/Ansible/ansible/lib/ansible/utils/template.py", line 319, in template
varname = template_from_string(basedir, varname, vars, fail_on_undefined)
File "/Users/kormoc/Projects/Ansible/ansible/lib/ansible/utils/template.py", line 551, in template_from_string
return res
UnboundLocalError: local variable 'res' referenced before assignment

This is due to the error checking being:

try:
res = jinja2.utils.concat(rf)
except TypeError, te:
if 'StrictUndefined' in str(te):
raise errors.AnsibleUndefinedVariable("unable to look up a name or access an attribute in template string")
return res

There should be a else condition to that if statement that at least outputs str(te) rather then falling though to the return res.

Issue 2:
The following playbook generates a traceback when run on the devel branch:

- name: test
hosts: all
gather_facts: false
vars:
- a_list:
- a_value
tasks:
- name: I meant to concat a string with an array value
debug: msg="{{ 'foo => ' + a_list[0] }}"

- name: But I accidentally concat a string with array
debug: msg="{{ 'foo => ' + a_list }}"

The stacktrace generated:

fatal: [rizo] => Traceback (most recent call last):
File "/srv/ansible-source/lib/ansible/runner/__init__.py", line 418, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/srv/ansible-source/lib/ansible/runner/__init__.py", line 509, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/srv/ansible-source/lib/ansible/runner/__init__.py", line 703, in _executor_internal_inner
module_args = template.template(self.basedir, module_args, inject, fail_on_undefined=self.error_on_undefined_vars)
File "/srv/ansible-source/lib/ansible/utils/template.py", line 319, in template
varname = template_from_string(basedir, varname, vars, fail_on_undefined)
File "/srv/ansible-source/lib/ansible/utils/template.py", line 550, in template_from_string
return res
UnboundLocalError: local variable 'res' referenced before assignment

I gather that relates to a bug in the error trapping code rather than the jinja2 error.

The above minimal example was derived from a much more complex playbook.

It took me a while to figure out that the problem was with the data for a particular host, given that the playbook worked on other hosts :-(
Issue 1:
https://github.com/crabtw/rust-bindgen is super cool and ought to be part of the toolset we distribute with rustc.

It might be the right time to consider bundling libclang with rustc as well, for this reason as well as possibly other forms of integration (our driver, cargo, etc.)

Issue 2:
Make a pass that executes bindgen during the build.

This would build the jsapi module automatically based on the header files:

#[bindgen(files("jsapi.h", "jswhatever.h"), name = "jsapi")];

It would never generate any .rs files, just insert it directly into the AST.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/772 on 2008-05-07 by @alberts, assigned to unknown.

Valgrind warning when running test for compress2d:

==14758== Conditional jump or move depends on uninitialised value(s)
==14758== at 0x4330DB6: PyArray_MapIterReset (arrayobject.c:10190)
==14758== by 0x437D85E: array_subscript (arrayobject.c:2549)
==14758== by 0x437E491: array_subscript_nice (arrayobject.c:3173)
==14758== by 0x80CC7BD: PyEval_EvalFrameEx (ceval.c:1207)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x80CF002: PyEval_EvalFrameEx (ceval.c:3741)
==14758== by 0x80D04A2: PyEval_EvalFrameEx (ceval.c:3731)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x81235D5: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CB503: PyEval_EvalFrameEx (ceval.c:3944)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x8062C76: instancemethod_call (classobject.c:2558)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CBE34: PyEval_EvalFrameEx (ceval.c:3856)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)

Found by Python 2.6 buildbot.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/338 on 2006-10-12 by @alberts, assigned to unknown.

When running the following code:

#!python
import numpy as np
import scipy as sp
from scipy.interpolate import interp1d
print np.__version__
print sp.__version__
x10 = np.arange(10.)
y210 = np.arange(20.).reshape((2, 10))
interp210 = interp1d(x10, y210)
interp210(1.5)

Valgrind emits the following warning on 32-bit Linux:

==1076== Conditional jump or move depends on uninitialised value(s)
==1076== at 0x4433E14: PyArray_MapIterReset (arrayobject.c:9684)
==1076== by 0x44679F3: array_ass_sub (arrayobject.c:2442)
==1076== by 0x4A1EA6B: PyObject_SetItem (in /usr/lib/libpython2.4.so.1.0)
==1076== by 0x4A7D92C: PyEval_EvalFrame (in /usr/lib/libpython2.4.so.1.0)
==1076== by 0x4A81757: PyEval_EvalCodeEx (in /usr/lib/libpython2.4.so.1.0)
...

Similar warning on 64-bit Linux:

==31596== Conditional jump or move depends on uninitialised value(s)
==31596== at 0x571ACD0: PyArray_MapIterReset (arrayobject.c:9650)
==31596== by 0x575CED0: array_ass_sub (arrayobject.c:2433)
==31596== by 0x474080: PyEval_EvalFrame (in /usr/bin/python2.4)
==31596== by 0x4783FE: PyEval_EvalCodeEx (in /usr/bin/python2.4)
...

Tested with Valgrind 3.1.0 and 3.2.1. Used !NumPy 1.0.dev3217 and !SciPy 0.5.2.dev2254 on 64-bit system. Used !NumPy 1.0.dev3315 and !SciPy 0.5.2.dev2241 on 32-bit system.
Issue 1:
Specifying a file isn't required to run deno test. It will run all the tests in the directory I'm running the command in.

$ deno test -A
Check file:///home/kyle/Projects/deno/react_app/env_test.ts
running 10 tests from ./env_test.ts
...

I found that if I add the --watch flag, it wasn't finding any of the files.

$ deno test --watch -A
Watcher Test started.

ok | 0 passed | 0 failed (0ms)

Watcher Test finished. Restarting on file change...

I found that if I add a path like ., it is able to find the test files like it can without the --watch flag.

$ deno test --watch -A .
Watcher Test started.
running 10 tests from ./env_test.ts
...

I believe that the test command should be able to find the test files without a path when using the --watch flag, like it can without the --watch flag.

Issue 2:
Other commands like deno fmt/lint --watch, will watch and fmt/lint all the files in the project if no files are passed on the command line, but this does not seem to work for deno test --watch.

// test.ts
import { assertEquals } from "https://deno.land/std@0.163.0/testing/asserts.ts";

Deno.test({
name: "myTest",
fn: () => {
assertEquals(1+1, 2);
},
});

With deno test --watch:

Watcher Test started.

ok | 0 passed | 0 failed (0ms)

Watcher Test finished. Restarting on file change...

Making changes to the test file will not trigger the file watcher.

With deno test --watch test.ts:

Watcher Test started.
running 1 test from ./test.ts
myTest ... ok (24ms)

ok | 1 passed | 0 failed (47ms)

Watcher Test finished. Restarting on file change...

With deno test:

Check file:///C:/Users/GJZwiers/repos/test_deno_test/test.ts
running 1 test from ./test.ts
myTest ... ok (8ms)

ok | 1 passed | 0 failed (33ms)
Issue 1:
Environment

"symfony/symfony": "2.5.*-dev",
"payum/payum-bundle": "0.11.*@dev",
"payum/payum": "0.11.*@dev",
"payum/paypal-express-checkout-nvp": "*",

I have a CustomBundle, there is a services.yml file with default parameters in [Bundle directory]/Resources/config directory:

parameters:
custom_bundle.paypal.api_username: 'default_username'
custom_bundle.paypal.api_password: 'default_password'
custom_bundle.paypal.api_signature: 'default_signature'

There are other values in app/config/parameters.yml:

parameters:
custom_bundle.paypal.api_username: 'other_username'
custom_bundle.paypal.api_password: 'other_password'
custom_bundle.paypal.api_signature: 'other_signature'

In app/config/config.yml:

payum:
contexts:
paypal_express_checkout:
paypal_express_checkout_nvp:
username: %custom_bundle.paypal.api_username%
password: %custom_bundle.paypal.api_password%
signature: %custom_bundle.paypal.api_signature%
sandbox: %custom_bundle.paypal.use_sandbox%

The magic

In Controller (good):

<?php
// ...
$this->container->getParameter('custom_bundle.paypal.api_username') // ==> 'other_username'

In app/cache/dev/appDevDebugProjectContainer.php file (wrong: default values):

<?php
/**
* Gets the 'payum.context.paypal_express_checkout.api' service.
*
* This service is shared.
* This method always returns the same instance of the service.
*
* @return Payum\Paypal\ExpressCheckout\Nvp\Api A Payum\Paypal\ExpressCheckout\Nvp\Api instance.
*/
protected function getPayum_Context_PaypalExpressCheckout_ApiService()
{
return $this->services['payum.context.paypal_express_checkout.api'] = new \Payum\Paypal\ExpressCheckout\Nvp\Api(array(
'username' => 'default_username',
'password' => 'default_password',
'signature' => 'default_signature',
'sandbox' => true), $this->get('payum.buzz.client'));
}

Is it Payum or Symfony bug? When I remove defaults from services.yml, it is improved.

Issue 2:
I trying to use third-party bundle. (http://knpbundles.com/ornicar/ApcBundle). This bundle requires me to provide ornicar_apc.host config value. I am trying to re-use existing configuration value router.request_context.host, which is overrided in my parameters.yml, but third-party bundle always compiled with default configuration value localhost. After some time of debugging I found:

1st step: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php#L50 loading configuration for the framework extension. Keep in mind: $container already have loaded valid value for router.request_context.host.

2nd step: This line: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L306 loads default config value for router.request_context.host parameter value and rewriting existing "normal" value.

3rd step: Thrd-party bundle uses overwriten value of router.request_context.host parameter.

Could you help me with resolving this bug?
Issue 1:
It seems that provided code example leaks memory on numpy 1.16.0. This can be observed via top or htop while the program executes. The same code with numpy 1.15.4 has stable memory footprint. I couldn't isolate the problem without multiprocessing.

I've reproduced the same behavior on Ubuntu and MAC OSX on python versions 3.6.5_1, 3.6.8, 3.7.2.

import numpy as np
from multiprocessing import Pool, get_context

def f(x):
return x + 2

a = map(lambda x: np.array([]), range(int(10e6)))

if __name__ == '__main__':
print("Numpy version: ", np.version.version)
with Pool(4) as pool:
k = pool.imap_unordered(f, iter(a))
for i in k:
pass

Issue 2:
Reproducing code example:

import numpy as np
import pickle
import os
import itertools
import psutil
import gc
import sys

print ('NumPy version:', np.__version__, 'Python version:', sys.version)
for i in itertools.count():
pickle.dumps(np.zeros(1024*1024))
gc.collect()
if i % 100 == 0:
info = psutil.Process(os.getpid()).memory_info()
print(f'vms={info.vms/1024/1024}MB rss={info.rss/1024/1024}MB')

Output on NumPy 1.15.4

NumPy version: 1.15.4 Python version: 3.6.3 (default, Nov 23 2017, 18:55:59)
[GCC 5.4.0 20160609]
vms=434.71875MB rss=27.421875MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB
vms=434.72265625MB rss=27.52734375MB

Output on NumPy 1.16.0

$ python test.py
NumPy version: 1.16.0 Python version: 3.6.3 (default, Nov 23 2017, 18:55:59)
[GCC 5.4.0 20160609]
vms=431.58984375MB rss=27.34765625MB
vms=1239.5859375MB rss=827.47265625MB
vms=2039.58984375MB rss=1627.4765625MB
vms=2839.58984375MB rss=2427.4765625MB
vms=3639.59375MB rss=3227.4921875MB
vms=4439.59375MB rss=4027.5078125MB
vms=5239.59375MB rss=4827.51953125MB
vms=6039.59765625MB rss=5627.5390625MB
Issue 1:
Related #51

The following default keybindings conflict with default Ubuntu OS keybindings.

Move app to different workspace:

{ "key": "ctrl+shift+alt+down", "command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus" },
{ "key": "ctrl+shift+alt+up", "command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus" },
{ "key": "ctrl+shift+alt+left", "command": "workbench.action.focusLeftEditor" },
{ "key": "ctrl+shift+alt+right", "command": "workbench.action.focusRightEditor" },

Maximize/unmaximize(?):

{ "key": "ctrl+meta+up", "command": "editor.action.insertCursorAbove",
"when": "editorTextFocus" },
{ "key": "ctrl+meta+down", "command": "editor.action.insertCursorBelow",
"when": "editorTextFocus" },

Issue 2:
Steps to reproduce:

Find a merge conflict

Press backspace twice on the line containing ======

Undo the changes

Repeat 2-3 a couple times

The text decorations will stack as shown below.

Also once the text decorations are stacked you can spread the text decoration to multiple lines like so.
Issue 1:
System information (version)

OpenCV => 4.5.4

Operating System / Platform => win10 LTSC 2021

Compiler => Visual Studio 2019

Python Version => 3.9.9

Detailed description

cv2.resize() function return cv2.error (-215:Assertion failed) _step >= minstep in function 'cv::Mat::Mat'

opencv was compiled with cuda version 11.4.3, cudnn version 8.2.4 following tutorial from YouTube

Steps to reproduce

import cv2
import numpy as np
origin_black = np.zeros((1, 1, 3), np.uint8)
cv2.resize(origin_black, (100, 100))

(then it returns) cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\src\matrix.cpp:466: error: (-215:Assertion failed) _step >= minstep in function 'cv::Mat::Mat'

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

forum.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
System information (version)

OpenCV => 4.5.4-dev

Operating System / Platform => Windows 64 Bit

Compiler => precompiled from opencv-contrib-python-headless 4.5.4.58

Detailed description

Issue encountered in python: opencv/opencv-python#575

cvtColor should be able to convert a single pixel's color as it does in version 4.5.3

Steps to reproduce

import cv2
import numpy as np

pixel = np.uint8([[[40, 50, 200]]])
new_pixel = cv2.cvtColor(pixel, cv2.COLOR_RGB2BGR)
print(new_pixel)

with OpenCV 4.5.3, this runs successfully. With OpenCV 4.5.4-dev, I get the following error:

OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\core\src\matrix.cpp:466: error: (-215:Assertion failed) _step >= minstep in function 'cv::Mat::Mat'

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

forum.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc
Issue 1:
The documentation on how to write documentation is out of date:

http://matplotlib.org/devdocs/devel/documenting_mpl.html#documenting-matplotlib

Specifically, it should refer to our MEP10

Issue 2:
I'm running this on Windows 10 / Anaconda Python 3.4.3 / jupyter iPython 4

Here's some repro code:

import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure(1)
ax = plt.axes([0., 0., 1., 1.])

points = np.random.rand(2,2) # plot 2 points, totally fine
ax.scatter(points[0], points[1], c=[1, 0, 0], s=200)
points = np.random.rand(2,3) # plot 3 points, hopelessly broken
ax.scatter(points[0], points[1], c=[0, 1, 0], s=200)
points = np.random.rand(2,3) # plot 3 points with string color, totally ok
ax.scatter(points[0], points[1], c='g', s=200)
points = np.random.rand(2,4) # plot 4 points, totally fine
ax.scatter(points[0], points[1], c=[0, 0, 1], s=200)
plt.show()

Here's what I get:

As you can see, plotting 2, 4, or any other number of points using ax.scatter is fine, but graphing 3 points while using RGB color array results in two points as black, and one point as white, instead of using the specified color.

Here's an example on a real dataset. As you can see, it also messes with the legend color. It's hard to diagnose the issue because it's completely non-obvious that the number of points plotted is what triggers the bug.

I was pulling my hair out for awhile until I realized that the problem only manifested itself on series that had 3 members.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

It is possible to override styles of Popover inside Menu.

Current Behavior

It is not possible to override styles of Popover inside Menu.

Steps to Reproduce (for bugs)

N/A

Context

Menu intercepts classes prop, so it is not passed to Popover component along with ...other props.

My suggestion would be adding PopoverProps, which then can be used to pass classes prop to Popover (like it is implemented in Drawer).

I can submit a PR if you are OK with this solution

Your Environment

N/A

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

Expected Behavior

NextJS sample apps should run without any error.

Current Behavior

Throws the following errors

This dependency was not found:

material-ui/colors/green, material-ui/colors/green in ./getPageContext.js

Steps to Reproduce (for bugs)

Run NextJS Sample App

Your Environment

Tech
Version

Material-UI
latest

React
latest

Next
latest
Issue 1:
VSCode Version: 1.2.0-insider (24e811)

OS Version: Windows 10.0.10586

Steps to Reproduce:

Open integrated terminal

Type e.g. 'dir' and press enter

Toggle/close integrated terminal

Toggle/open integrated terminal

Expected: Terminal opens

Actual: Error: Cannot set property 'innerHTML' of undefined

Problem exists both with cmd.exe as terminal, and with "terminal.integrated.shell.windows": "\\Program Files\\Git\\Bin\\bash.exe"

Issue 2:
VSCode Version: 1.2.0-insider

OS Version: Windows 10

Git Bash Shell (relevant?)

Steps to Reproduce:

This only happens sometimes and is perhaps secondary to #7345?

Ctrl+~ to invoke the integrated terminal

See that the terminal is invoked but blank and that this error popup is displayed: