WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information (version)

OpenCV => ❔ 3.4.3 native sdk

Operating System / Platform => ❔ Mac OS

Compiler => ❔ native c++ android studio

Detailed description

undefined reference to `cv::dnn::experimental_dnn_34_v7::Net::forward(cv::_OutputArray const&, std::__ndk1::vector<cv::String, std::__ndk1::allocatorcv::String > const&)'

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Steps to reproduce

#include <jni.h>
#include <string>

#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/dnn.hpp>

using namespace std;
using namespace cv;
using namespace cv::dnn;

extern "C" JNIEXPORT jstring JNICALL
Java_com_example_mats86_myapplication_MainActivity_stringFromJNI(
JNIEnv *env,
jobject /* this */) {

std::string hello = "Hello from C++";
float confThreshold = 0.5;
float nmsThreshold = 0.4;
int newW = 320;
int newH = 320;
String model = "/storage/emulated/0/DCIM/ImageProcessing/tessdata/frozen_east_text_detection.pb";

string imPath = "/storage/emulated/0/DCIM/ImageProcessing/test.jpg";

Mat im = imread(imPath, IMREAD_COLOR);
Mat orig;
im.copyTo(im);
int origH = im.rows;
int origW = im.cols;

int rW = (int) (origW / float(newW));
int rH = (int) (origH / float(newH));

resize(im, im, Size(newW, newH));
int H = im.rows;
int W = im.cols;

vector<Mat> outs;
vector<String> layerNames(2);
layerNames[0] = "feature_fusion/Conv_7/Sigmoid";
layerNames[1] = "feature_fusion/concat_3";

Net net = readNet(model);

// construct a blob from the image and then perform a forward pass of
// the model to obtain the two output layer sets
Mat frame, blob;
blobFromImage(frame, blob, 1.0, Size(newW, newH), Scalar(123.68, 116.78, 103.94), true, false);
net.setInput(blob);
net.forward(outs, layerNames); // undefined reference to `cv::dnn::experimental_dnn_34_v7

return env->NewStringUTF(hello.c_str());

}

Issue 2:
System information (version)

Detailed description

Steps to reproduce

I use the cvGetSize to get the cvsize, but it break, as:
Issue 1:
Open Gallery. Scroll up to collapse the app bar. Tap a component (e.g. Cards).

Notice the shadow on the app bar disappears, the transition into cards completes, and then the shadow reappears.

Tested on a Nexus 5 and 5X.

Issue 2:
[✓] Flutter (on Linux, channel master)

• Flutter at /src/flutter

• Framework revision 92d0445 (43 minutes ago), engine revision 603b070

[✓] Android toolchain - develop for Android devices (Android SDK 23.0.1)

• Android SDK at /usr/local/google/home/eseidel/Android/Sdk

• Platform android-23, build-tools 23.0.1

• OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)

[✓] Atom - a lightweight development environment for Flutter

• flutter plugin version 0.2.2

• dartlang plugin version 0.6.22

See video

https://youtu.be/sK7XSPdNzHo
Issue 1:
Summary

Hi! I'm getting some of my POST requests duplicated at my API, and I was wondering if an axios request could have been automatically retried/sent again in case of connection failure, reset, or any other reason.

As this is a random behavior and it's happening in production/users machines, it is being a kinda difficult to collect any evidence. Maybe you guys have experienced, or have acknowledge of something similar to my scenario.

All users that reported duplication in their actions also experienced a abnormal wait time.

I have checked the action creator that calls axios.create, and it is being dispatched just one time by an onClick event.

Thanks in advance!

Context

"axios": "^0.15.3"

"react": "15.0.2",

"react-redux": "^4.0.0",

Chrome 58.0.3029.81 (64-bit), Windows 10 64-bits

Asp.net WebApi

Issue 2:
I've spent a few hours today trying to get a post request to work with a few parameters and a file that I need to upload.

I was able to make it work with pure javascript and XMLHttpRequest but it doesn't work with Axios. What am I doing wrong?

Here's the code that works using XMLHttpRequest:

let data = new FormData();

data.append('action', 'ADD');
data.append('param', 0);
data.append('secondParam', 0);
data.append('file', new Blob([payload], { type: 'text/csv' }));

// this works
let request = new XMLHttpRequest();
request.open('POST', url);
request.send(data);

What would be the 'Axios' version of that?

Here's one of my tries (the simple one):

// this won't work
const config = { headers: { 'Content-Type': 'multipart/form-data' } };
axios.post(url, data, config)
.then(response => console.log(response))
.catch(errors => console.log(errors));

Thank you! And thanks for your great work with Axios!
Issue 1:
Description of the new feature/enhancement

Screenshot taken while terminal is maximized (sorry, mouse disappears when it reaches the screen edge, but you can see the yellow circle pop up when I click):

When using Windows Terminal in a maximized state, if you quickly move your mouse over to the tab you want to switch to, it is common to just move the mouse until the mouse stops when it reaches the edge of the screen above the tab. There is a small section between the the screen edge and the top of the tab, if your mouse lands in this area, the tab is not highlighted and you cannot click on it. You then have to move your mouse down just slightly in order to highlight and click. This is fine when the window is floating, but in maximized mode, it is frustrating.

What I want to happen is similar to how the Chrome browser works. If it is a floating window, it has that gap between tab and window edge. But if you maximize it, then the gap goes away. So when you move your mouse all the way to the edge of the screen, over the tab you want to use, it still highlights the tab and you can click. This makes for a much more fluid experience.

Issue 2:
Description of the new feature/enhancement

Edge and most other programs that use tabs where a menu bar is not present keep the tabs flush to the top of the screen rather than padding it down.

Proposed technical implementation details (optional)

Make Terminal consistent with Edge Dev (ideally use the same code if possible) to render the tabs on top.
Issue 1:
I tried several combinations. Nothing works:

function decorator(Class) { return Class; }

@decorator
class B { }

{
"presets": ["es2015", "stage-0"],
"plugins": [ "transform-decorators", "syntax-decorators"]
}

result (decorator just silently ignored):

...
var B = function B() {
_classCallCheck(this, B);
};

with this order: ["stage-0", "es2015"]

it throws an error TypeError: src/mxn/decorators.func.test.js: Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got "Decorator"

Issue 2:
Issue 1:
VSCode Version: v1.1.0

OS Version: Windows 7

Steps to Reproduce:

Check for updates

When network connection is bad, it will run the corrupted installer. I think it didn't check the downloaded installer's checksum.

Issue 2:
hey guys. i am running on windows 10 pro v-1511 and code v-10.1 it's not updating automatically but it shows a pop-up, i click update now it closes the editor, i have tried to wait for 10 min it didn't work when i launched the code it was the same, what should i do ? maybe it is because my windows is not activated ? i clean installed and lost my key.
Issue 1:
For example:

#![feature(rustdoc)]
extern crate rustdoc;

use rustdoc::html::markdown::Markdown;

fn main() {
let x = "This program makes a variable binding named `x`.";
println!("{}", Markdown(x));
}

This code runs fine in the playpen (http://is.gd/HVGloB) and when using the official nightly (rustc -V

rustc 1.3.0-nightly (bf3c979ec 2015-06-30)). Expected output:

<p>This program makes a variable binding named <code>x</code>.</p>

However, I compiled Rust on my machine (rustc -V rustc 1.3.0-dev (71a644136 2015-07-02)) and I get the following output instead:

<p>This program makes a variable binding named <code>x</code>`x`.</p>

Needless to say, this is wreaking havoc on the generated docs, which I'm trying to test before I submit any significant pull requests for rustdoc or rustbook issues.

I'm running Windows 7 64-bit and I'm using MSYS2 to run ./configure and make.

Any ideas? Or perhaps this is actually an issue with Hoedown?

Issue 2:
Using Windows 8.1 x64 with rustc 1.1.0-dev (e9e9279d8 2015-04-22) (built 2015-04-22)
Issue 1:
Bug report

Bug summary

When using pyplot, pyplot.savefig() throws a warning which is non-existent with figure.Figure.savefig(). Upon understanding the warning message and some investigation, it should be associated with figManager adding duplicate "sources of save" to Glib when saving "the current figure" (i.e. it does not recongize the figure being saved is the same as current figure. )

This is important as plt.savefig() is usually the way to go when using the matlab style plotting provided by pyplot package. Currently, using plt.gcf().savefig('1.png') would make this error go away, but that's using the object-oriented style of coding, which would require a change in ways of thinking and hence may cause confusion.

Suggestion: add a check of the internal figure id in pyplot.savefig() would prevent any duplicates from being generated.

Code for reproduction

import matplotlib.pyplot as plt

plt.figure()
plt.plot([1, 2, 3])
plt.savefig('1.png')

Actual outcome

This shows up in the terminal

/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_gtk3.py:195: Warning: Source ID 4 was not found when attempting to remove it
GLib.source_remove(self._idle_draw_id)

Expected outcome

No warning should be thrown.

Matplotlib version

Operating system: Ubuntu 20.04

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): GTK3Agg

Python version: 3.8.2

matplotlib was installed via pip3

Issue 2:
The weekly build with nightly wheels from numpy and pandas

has failed. Check the logs for any updates that need to be

made in matplotlib.

https://github.com/matplotlib/matplotlib/actions/runs/5560712365
Issue 1:
Summary of the new feature/enhancement

Product Launcher should support keyboard layout mapping for all system keyboard layouts, for example:

US Keyboard ⟶ Russian Keyboard

Russian Keyboard ⟶ US Keyboard

EDIT: commenting out the part about the keyboard switching since it nor relevant, this problem is present even for languages that don't require to switch keyboard.

Query "ьшскщыщае еуфьы" should display the results of "ьшскщыщае еуфьы" and "microsoft teams" queries.

Query "rfkmrekznjh" should display the results of "калькулятор" and "rfkmrekznjh" queries.

P.S.

Also Product Launcher should search for the localized app names(ms-resource:AppName) like a Windows Search.

Product Launcher:

Windows Search:

Issue 2:
Summary of the new feature/enhancement

I can only search for files or applications under C disk now，if I want to search a file in the other partition I can't use the PowerToys Run to search,so I hope the PowerToys Run can support for other partitions to search .

Proposed technical implementation details (optional)
Issue 1:
This will set the dashCase class on the button to true or false depending upon the value of binding.

<button [class.dash-case]="binding"></button>

I know dash-case to camelCase conversion is actually a "feature" built into the attribute parser, but it should have exceptions in cases like this.

The last thing I would expect is for angular to camel my classNames.

Issue 2:
If I have a binding:

<div [class.md-radio-checked]="isChecked">...</div>

Then the class name added to the element should be md-radio-checked. Currently, it is mdRadioChecked.
Issue 1:
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 2:
Hey there

I have upgraded an app to version 5 as in the list of fixes was the silent printing bug, but the issue is still the same.

My code:

printWindow.webContents.print({silent: true});

Results in nothing happening at all. No errors thrown or anything. Changing it back to false, brings up the window to select the printer and then it prints perfectly fine. It's just the silent mode that doesn't work.

I am running this on Windows 10, with Node version 10.15.3. I can not try with a different OS as the printer only has drivers for Windows.

Many thanks,

Michael
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.6

Operating System version: Windows 10

Java version: JDK 1.8

Steps to reproduce this issue

Configure provider's protocol to http and using RpcContext.getContext().setAttachment() to pass implicit parameters to provider.

Provider unable to get the attachment.

Possible Reason

There is any wrong wit the code used to pass implicit parameters in http protocol.

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.2

Operating System version: Ubuntu 18.04

Java version: 1.8

Steps to reproduce this issue

Method base642bytes(String) and other overloaded methods only check the length of the input String, not its content. Currently, passing an invalid String to this method causes it to return an unpredictble result. For example:

import org.apache.dubbo.common.io.Bytes;

public class Testing {

public static void main(String[] args) {
System.out.println(Bytes.bytes2base64(Bytes.base642bytes("d=u=b=bo")));
System.out.println(Bytes.bytes2base64(Bytes.base642bytes("invalid")));
}
}

Expected Result

IllegalArgumentException for the first call.

Actual Result

Prints //v///bo for the first call and throws an IllegalArgumentException for the second call, even though both calls pass an invalid String.

Ideally, base642bytes(String) throws an IllegalArgumentException whenever an invalid input String is passed. This can be achieved by checking each character individually, which is highly inefficient, or by updating the documentation explaining under what conditions an IllegalArgumentException is thrown.
Issue 1:
http://play.golang.org/p/gmQEUKYxrG

package main

import (
"fmt"
t "time"
)

func main() {
fmt.Println("Hello, playground")
time.Sleep(time.Second)
}

Run through imports, results in:

package main

import "fmt"

func main() {
fmt.Println("Hello, playground")
time.Sleep(time.Second)
}

Note that the named time import has been removed but not reinserted without the name. The resulting code does not compile. Running through goimports again fixes things.

Low priority corner case.

Issue 2:
$ goimports <<EOF
package main

import foo "fmt"

func main() { fmt.Println() }
EOF

Prints:

package main

func main() { fmt.Println() }

Low priority, as a second run corrects the import.
Issue 1:
I've got a little React component with a decorator that is created with an arrow function. With a fairly recent release of Babel, the decorator appears to be completely removed:

@connect(data => ({ account: data.account }))
class C extend React.Component {
}

Changing the arrow function fixes the issue as a workaround:

@connect(data => { return { account: data.account }; })
class C extend React.Component {
}

It's fine with other arrow functions like this:

data => 1
data => []

So something about the parens is causing the issue.

Issue 2:
Compare the output of these two to show the difference.

https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&code=%40decorate((arg)%20%3D%3E%20null)%0Aclass%20Example1%20%7B%0A%7D%0A%0A%40decorate(arg%20%3D%3E%20null)%0Aclass%20Example2%20%7B%0A%7D

@decorate((arg) => null)
class Example1 {
}

@decorate(arg => null)
class Example2 {
}
Issue 1:
Typescript definitions for custom theme colors has been removed. The existing documentation example does not work anymore.

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

Expected Behavior

One should be able to add custom colors to the Theme, as per documentation example.

createMuiTheme({
status: {
danger: orange[500],
},
})

When using withStyles, the custom colors would be specified as CustomOptions.

withStyles((theme: Theme<CustomOptions> => {});

Current Behavior

Typescript reports this error on the custom color definition (documentation example): Object literal may only specify known properties, and 'status' does not exist in type 'ThemeOptions | undefined'.

Typescript reports error when using the theme: Type 'Theme' is not generic.

Your Environment

Tech
Version

Material-UI
beta.22

React
16.0.0

Issue 2:
Hi,

I tried your demos and the menu doesn't seem to work. FF web console doesn't show any errors but lots of warnings.

FF 33 on Ubuntu 14.04
Issue 1:
Summary of the new feature/enhancement

People with touchscreens that have no keyboard are unable to use the Shift key to activate Fancy Zones. The existing toggle allows the zones to always stay on, while dragging. However window will always snap to one of the zones.

Safe zone functionality will allow users to move windows around without snapping them, and snap them if and when required. A safe zone is an area inside each one of the fancy zones, where user can drag the window without snapping it.

Proposed technical implementation details (optional)

Add a significant padding (A zone within a zone) of about 25% or more. An outer blue area, as it is now, will show the zone itself, the inner blue box will be the area where a window would need to be dragged to snap.

Issue 2:
Summary of the new feature/enhancement

Find an Object, apply an Action (ie: copy a file)

The ability to use Tab (or another key) to apply Actions to a selected Object. ie: I find a .jpg file, hit Tab (list of possible actions is displayed), type 'c' and select Copy. File copied. The default Action would always be Open. ie: Open a URL, open an app, etc.
Issue 1:
https://ci.appveyor.com/project/sklearn-ci/scikit-learn/build/1.0.2018/job/8tf9xbl5i9j2dcyp

Issue 2:
The following seems to happen randomly on appveyor, at least under 32 bit Python 2.7:

======================================================================
FAIL: Check class_weights resemble sample_weights behavior.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-packages\sklearn\linear_model\tests\test_ridge.py", line 518, in test_class_weight_vs_sample_weight
assert_almost_equal(clf1.coef_, clf2.coef_)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 454, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 811, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 644, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 7 decimals

(mismatch 100.0%)
x: array([[ 0.10965375, 0.61707134, -0.50021659, -0.01239003],
[-0.13067805, -1.45138219, 0.45900018, -0.78576024],
[ 0.0210243 , 0.83431085, 0.04121641, 0.79815027]])
y: array([[ 0.13644731, 0.73780242, -0.55678018, 0.12087149],
[-0.06131714, -1.75113362, 0.74417571, -1.64203741],
[-0.07513018, 1.0133312 , -0.18739553, 1.52116592]])

I have never seen this happen on travis so it might be windows-specific. The difference is large so it it probably not a trivial rounding issue.
Issue 1:
Running this code in a jupyter notebook plots a heatmap which is cutoff at the top and bottom -- horizontal view is ok.

data=np.array([[7.49377179e-10, 5.04982270e-02, 8.41080502e-01, 1.08421271e-01],
[6.33214717e-02, 6.86063645e-01, 1.57489835e-01, 9.31250485e-02],
[1.42185280e-02, 1.06747920e-01, 8.38806192e-01, 4.02273604e-02],
[7.81118162e-01, 1.28774739e-32, 4.47694456e-24, 2.18881838e-01]])
sns.heatmap(data,annot=True,fmt='.2f',cmap='Reds',vmin=0,vmax=1,cbar=False,mask=(data<0.01))

seaborn 0.9.0

matplotlib 3.1.1

Issue 2:
seaborn/seaborn/distributions.py

Line 216
in
102cf08

hist_kws.setdefault("normed", norm_hist)

'normed' kwarg is deprecated
Issue 1:
I get the following error:

julia: repl.c:307: true_main: Assertion `(((jl_array_t*)(args))->length) == 0' failed.

signal (6): Aborted
__kernel_vsyscall at (unknown line)
gsignal at /lib/i386-linux-gnu/libc.so.6 (unknown line)
abort at /lib/i386-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: -1234438457)
unknown function (ip: -1234438281)
unknown function (ip: 134517895)
julia_trampoline at /opt/julia/julia_stable/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 134516370)
__libc_start_main at /lib/i386-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 134516419)
Aborted (core dumped)

Issue 2:
I found a large regression between 0.4 and 0.5 in some code of mine, which profiling localized to containment testing. This simplified test case shows a clear picture:

function specialized_in(x::Int, y::Vector{Int})
for k = 1:length(y)
if x == y[k]
return true
end
end
return false
end

function benchmark1(n)
x = rand(Int, 20)
s = 0
for k = 1:n
if rand(Int) in x
s += 1
end
end
return s
end

function benchmark2(n)
x = rand(Int, 20)
s = 0
for k = 1:n
if specialized_in(rand(Int), x)
s += 1
end
end
return s
end

@time benchmark1(1)
@time benchmark2(1)
@time benchmark1(100_000_000)
@time benchmark2(100_000_000)

_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.5 (2016-03-18 00:58 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-linux-gnu

julia> include("/tmp/test.jl")
0.105317 seconds (70.71 k allocations: 3.181 MB, 5.77% gc time)
0.013302 seconds (4.11 k allocations: 209.523 KB)
2.547684 seconds (10 allocations: 560 bytes)
2.442474 seconds (10 allocations: 560 bytes)

_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-dev+4561 (2016-06-06 21:03 UTC)
_/ |\__'_|_|_|\__'_| | Commit 23ad581* (0 days old master)
|__/ | x86_64-linux-gnu

julia> include("/tmp/test.jl")
0.070273 seconds (53.54 k allocations: 2.304 MB)
0.010838 seconds (3.92 k allocations: 180.852 KB)
49.842859 seconds (7 allocations: 560 bytes)
2.507180 seconds (7 allocations: 560 bytes)