WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
See here for a trace: https://github.com/JuliaMolSim/DFTK.jl/runs/3035339708?check_suite_focus=true#step:7:453. Can be reproduced by adding and testing DFTK.jl on 1.7 beta.

The issue appears to happen when we run a computation in Float64 precision then run it again in Float32.

I hesitated to post this since this is pretty far from a MWE, but I have zero idea how to reduce this and since 1.7 is in beta I figured it could be of interest.

Downstream issue JuliaMolSim/DFTK.jl#480

Issue 2:
A recent version of Julia nightly started throwing errors on tests in Manifolds.jl, see for example these CI runs: https://github.com/JuliaManifolds/Manifolds.jl/pull/381/checks?check_run_id=3010181089 . On Windows, for example, a part of the error reads:

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1f9b127 -- jl_datatype_isinlinealloc at /cygdrive/c/buildbot/worker/package_win64/build/src\datatype.c:253 [inlined]
jl_datatype_isinlinealloc at /cygdrive/c/buildbot/worker/package_win64/build/src\datatype.c:250 [inlined]
union_isinlinable at /cygdrive/c/buildbot/worker/package_win64/build/src\datatype.c:277 [inlined]
union_isinlinable at /cygdrive/c/buildbot/worker/package_win64/build/src\datatype.c:266
in expression starting at D:\a\Manifolds.jl\Manifolds.jl\test\centered_matrices.jl:3

and on Ubuntu:

signal (11): Segmentation fault
in expression starting at /home/runner/work/Manifolds.jl/Manifolds.jl/test/centered_matrices.jl:3
jl_datatype_isinlinealloc at /buildworker/worker/package_linux64/build/src/datatype.c:253 [inlined]
union_isinlinable at /buildworker/worker/package_linux64/build/src/datatype.c:277 [inlined]
jl_islayout_inline at /buildworker/worker/package_linux64/build/src/datatype.c:300
jl_compute_field_offsets at /buildworker/worker/package_linux64/build/src/datatype.c:446
inst_datatype_inner at /buildworker/worker/package_linux64/build/src/jltypes.c:1520

I'll try making an MWE.
Issue 1:
E.g.,

trait T {
fn foo(&self) {}
}

impl<'a> T+'a {
fn foo(&self) {}
}

Should be OK. (It currently gives "duplicate definition of value foo").

Follow up to #17750

Issue 2:
STR

#![crate_type = "lib"]

pub trait Bound<T> {}
pub trait Trait: Bound<i8> + Bound<u8> {}
//~^ error: trait `Bound<u8>` already appears in the list of bounds
fn foo<T: Bound<i8> + Bound<u8>>() {}
//~^ error: trait `Bound<u8>` already appears in the list of bounds
fn foo<T>() where T: Bound<i8> + Bound<u8> {} // OK

Due to multidispatch : Bound<i8> + Bound<u8> is a valid bound, but the compiler is rejecting it in some positions (supertraits and bounds in parameter list), but not in others (where clauses)

Workaround for the supertrait

You can use dummy intermediate traits to indirectly add the "duplicate" bounds, but this is very verbose.

pub trait Bound<T> {}
pub trait Dummy: Bound<i8> {}
pub trait Trait: Dummy + Bound<u8> {} // `Trait` implies `Bound<i8> + Bound<u8>`

Version

rustc 1.0.0-nightly (3ef8ff1f8 2015-02-12 00:38:24 +0000)

cc @nikomatsakis

Originally reported in #18693 (Niko preferred opening a new issue, instead of re-opening the old one and modifying the original report)
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.3

Operating System version: centos6.8

Java version: 1.8

Steps to reproduce this issue

@reference(version = "${service.version}", methods = {@method(name = "saveStuSegment", timeout = 30000, retries = -1)})

consumer配置 method 配置retries 无效

debug到下面这段代码，发现len还是3

public Result doInvoke(Invocation invocation, final List<Invoker> invokers, LoadBalance loadbalance) throws RpcException {

List<Invoker> copyInvokers = invokers;

checkInvokers(copyInvokers, invocation);

String methodName = RpcUtils.getMethodName(invocation);

int len = getUrl().getMethodParameter(methodName, RETRIES_KEY, DEFAULT_RETRIES) + 1;

if (len <= 0) {

len = 1;

}

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

Operating System version: macOs

Java version: 1.8

Steps to reproduce this issue

Step 1: Extend AuthFilter with order -20000.

@Activate(group = CommonConstants.PROVIDER, order = -20000)
public class AuthFilter Filter {

@Override
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException {
}
}

Step 2: We are not able to get RpcContext from the filter as ContextFilter cleared it with order -10000.

We shoudl move ContextFilter to the lowest one, leave more range for the user's extension.
Issue 1:
This more a suggestion than an issue.

I used the SAOPass and SSAOPass examples in my code and we have skinned meshes in the scene(only skinned meshes).

For this postprocessing effect to work I had to manually set .skinning = true on all the shader pass' internal materials(like the depth material). It was probably overkill, maybe only some of them needed this setting.

If I don't do this the internal render targets of the shader pass are not updated as the mesh moves/animates and you get a ghost effect.

It would be nice if this was a parameter of the shader pass constructor.

Issue 2:
When a morph target mesh is rendered with a non-morph target material, the mesh seems to render in bind pose. The EffectComposer framework for postprocessing uses the scene.overrideMaterial interface to generate depth and normal buffers, so these buffers have all meshes in bind pose. You can see the issue by applying a normal buffer postprocess to the MD2 character example.

I've badly hacked up three.js to take a scene.morphOverrideMaterial parameter to use as an alternate override for meshes which originally had a material with the morph target flags. I also updated the post processing effects to provide morph target variants of their override materials, and it allows them to render correctly on animated characters.

I could share my hack, but I think a better solution would be to use the morph target and morph normal settings from the true material of a mesh, even in the presence of an override material setting. (Or... does webgl have multiple render targets?)
Issue 1:
As a newcomer to Flutter, I find this layout hard to skim:

My eyes go immediately to the center pane. I expect to see a heading that says Listener at the very top of the center pane; like Layout behavior, but perhaps with a more prominent treatment to show it's the subject of the page.

I realize that "Listener" appears in both the top and right frames, but that's not where my eyes naturally look - the current layout looks broken. I wonder how the docs page could be redesigned to make class Listener more prominent and/or to add a heading identifying the class to the center pane.

Issue 2:
Steps to Reproduce

Create a plugin package as per the documentation using Swift in iOS and build it for ios:

flutter create --template=plugin -i swift hello
cd hello/example
flutter build ios --no-codesign

Logs

...
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
=== BUILD TARGET hello OF PROJECT Pods WITH CONFIGURATION Release ===
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/hello-umbrella.h"
^
xxx/hello/example/ios/Pods/Target Support Files/hello/hello-umbrella.h:13:9: error: include of non-modular header inside framework module 'hello': 'xxx/hello/ios/Classes/HelloPlugin.h'
#import "HelloPlugin.h"
^
<unknown>:0: error: could not build Objective-C module 'hello'

Recently upgraded to flutter beta. I've created plugin packages before in the alpha channel without problems.

Flutter Doctor

[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-NL)
• Flutter version 0.1.5 at /Users/kozw/Source/flutter
• Framework revision 3ea4d06340 (11 days ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/kozw/Library/Android/sdk
• Android NDK at /Users/kozw/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] VS Code (version 1.20.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.9.2

[✓] Connected devices (1 available)
• iPhone 8 • D5FC98FA-D6B0-41D2-B834-B7FFFEB1B506 • ios • iOS 11.2 (simulator)
Issue 1:
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.

Thank you!

Check that you are up-to-date with the master branch of Keras. You can update with:

pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:

pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Issue 2:
Hi,

I would like to share some of the hidden layers of deep multitask network using keras. Following is my code. In the code, I would like to share 'dense3'. But I get an error that

"Exception: Duplicate node identifier: dense3"

How would I solve such problem in Keras?

graph = Graph()
graph.add_input(name='input1', input_shape=( 10000, ) )
graph.add_input(name='input2', input_shape=( 10000, ) )
graph.add_node(Dense(4096), name='dense1', input='input1')
graph.add_node(Dense(4096), name='dense2', `input='input2')`
graph.add_node(Dense(128), name='dense3', input='dense1')
graph.add_node(Dense(128), name='dense3', input='dense2')

graph.add_node(Dense(40), name='dense4', input='dense3')
graph.add_node(Dense(40), name='dense5', input='dense3')

graph.add_output(name='output', inputs=['dense4', 'dense5'], merge_mode='sum')
graph.compile(optimizer='sgd', loss={'output':'categorical_crossentropy'})
Issue 1:
For those writing larger software (e.g. Servo), rustdoc is a useful tool for exploring the internal methods of a crate. However, non-exported items aren't shown.

Perhaps an "internal" mode which doesn't filter out private items would be nice.

See also: http://www.reddit.com/r/rust/comments/36ce52/reflections_on_a_weekend_with_rust/crcv9kv.compact

Issue 2:
Please add an option for rustdoc such that rustdoc creates a proper documentation for private definitions.

While it is in general a good idea to hide these private definitions, as a crate developer it would be very valuable to have a good internal documentation of private types and functions.
Issue 1:
what if i have a folder of 100 files all changed except one or two

i can see the changed one in git view but how to find the unchanged ones?

if the modified files were a different color in explorer then it would be easy to see (like Atom)

thanks

Issue 2:
Similar to what atom provides in the project explorer:

New files are displayed green.

Modified are displayed yellow/orange.

Ignored files are displayed transparent-ish.

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

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

Environment

Dubbo version: 2.7.1

Operating System version: linux

Java version: 1.8

Steps to reproduce this issue

@service我把timeout时间从原来的3秒改到30秒，我发现重启启动服务后没有生效，跟踪源码调试发现服务消费者调用的url里面还是3秒

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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: OSX

Java version: 1.8

Steps to reproduce this issue

@Test
public void testSerializeSqlDate() throws IOException, ClassNotFoundException {
java.sql.Date originTime = new java.sql.Date(System.currentTimeMillis());
this.protostuffObjectOutput.writeObject(originTime);
this.flushToInput();

java.sql.Date serializedTime = protostuffObjectInput.readObject(java.sql.Date.class);
assertThat(serializedTime, is(originTime));
}

Expected Result

What do you expected from the above steps？

Actual Result

Expected: is <2019-06-25>
but: was <1970-01-01>
Expected :is <2019-06-25>
Actual :<1970-01-01>

If there is an exception, please attach the exception trace:
Issue 1:
Environment

Windows build number: Windows 10, Version 1903, Build 18362.418

Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Set "requestedTheme": "dark" in profile.json.

Expected behavior

Before I updated the OS, the title bar used to be black under this theme.

Actual behavior

After I updated the OS, the title bar is now gray under this theme.

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:
As it stands code_typed returns its output, but code_llvm and code_native return nothing and instead print their output to an io stream. I would like to propose that all three have no side effects and return some kind of Julia object which displays nicely.

I ran into this when trying to use these functions in a Pluto.jl notebook. code_typed works just fine but the other two don’t display their output in the notebook, which is rather annoying. You can get around this by redirecting stdout or by using sprint and returning a String, but it doesn’t look nice that way.

Would the way to fix this be to have equivalents of the Core.CodeInfo type like a LLVMInfo and NativeInfo types, that just contain a string and get displayed nicely if showed?

julia> code_typed(abs, (Int,)) |> typeof
Vector{Any} (alias for Array{Any, 1})

julia> code_llvm(abs, (Int,)) |> typeof
; @ int.jl:170 within `abs'
define i64 @julia_abs_1497(i64 signext %0) {
top:
; ┌ @ int.jl:130 within `flipsign'
%1 = icmp slt i64 %0, 0
%2 = sub i64 0, %0
%3 = select i1 %1, i64 %2, i64 %0
; └
ret i64 %3
}
Nothing

julia> code_native(abs, (Int,)) |> typeof
.section __TEXT,__text,regular,pure_instructions
; ┌ @ int.jl:170 within `abs'
; │┌ @ int.jl:130 within `flipsign'
movq %rdi, %rax
negq %rax
cmovlq %rdi, %rax
; │└
retq
nopl (%rax,%rax)
; └
Nothing

Issue 2:
A very sparse matrix with 1000 rows and 100000 columns with only 10 entries is multiplied by a dense vector column-wise:

sparse(rand(1:1000, 10), rand(1:100000, 10), rand(10), 1000, 100000) .* rand(1000, 1)

This throws (maybe you have to increase the column numbers from 100000 to something higher, but you will get there):

OutOfMemoryError()

Stacktrace:

[1] _allocres at .\sparse\higherorderfns.jl:168 [inlined]

[2] _diffshape_broadcast(::Base.#, ::SparseMatrixCSC{Float64,Int64}, ::SparseMatrixCSC{Float64,Int64}) at .\sparse\higherorderfns.jl:132

[3] broadcast(::Base.#, ::SparseMatrixCSC{Float64,Int64}, ::SparseMatrixCSC{Float64,Int64}) at .\sparse\higherorderfns.jl:121

This memory error is thrown despite the fact the resulting matrix has only 10 entries. Maybe the broadcasting could be improved to reflect this.

Here is the thread on Discourse and here the version info, but @tkoolen saw the same behavior on the nightly build:

Julia Version 0.6.2

Commit d386e40* (2017-12-13 18:08 UTC)

Platform Info:

OS: Windows (x86_64-w64-mingw32)

CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz

WORD_SIZE: 64

BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)

LAPACK: libopenblas64_

LIBM: libopenlibm

LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
Issue 1:
If I try to calculate a noncentral chi-square cdf with a noncentrality parameter of zero, I get a nan returned. A non-centrality parameter of zero yields a perfectly well-defined (central) chi-squared distribution, so why not just return a value? I.e., implement internally the test that I currently have to perform:

c = ncx2.cdf(x, df, nonCent) if nonCent > 0 else chi2.cdf(x, df)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/993 on 2009-09-04 by @lebigot, assigned to unknown.

scipy.optimize.leastsq() behaves very differently depending on the type of data points: in the examples below, the first result, which has float32 data points, is vastly incorrect (even though the error code says it is OK). The second result is correct, because it uses float64 data points.

This does not look normal to me. :)

Here is a simple example:

# fit_func() is an example fitting function (linear...):
fit_func = lambda p, x: p[0] + p[1]*x

# Basic error_func():
error_func = lambda p, x, y: return y - fit_func(p, x)

In [96]: x = np.arange(3, dtype = 'f4'); optimize.leastsq(error_func, (10, 3), args = (x, fit_func([1000, 2], x)))

Out[96]: (array([ 10., 3.]), 4) # Very wrong (initial x0)

In [97]: x = np.arange(3, dtype = 'f8'); optimize.leastsq(error_func, (10, 3), args = (x, fit_func([1000, 2], x)))

Out[97]: (array([ 1000., 2.]), 2) # Perfect!
Issue 1:
I really like push and pull from http://960.gs/demo.html (bottom row)

Why? Well push is offset but pull makes it possible to show the viewer Left Middle Right but in the code it can be Middle Left Right. This is good for schreen readers, page starts straight on topic, menu later (only hidden go to menu link for screenreader is needed for screen reader). Pull is also good for the responsive design, let say Middle is your logo and you have a quote on the Left and Right and on a mobile you want the logo (Middle) first then you need to push Middle by 4 and pull Left by 4.

Example:

<div class="row">
<div class="span4 push4">Middle</div>
<div class="span4 pull4">Left</div>
<div class="span4">Right</div>
</div>

Issue 2:
It would be nice if we could use negative offsets to allow presentation order to be independent from source order. For example, to have the first sidebar to come after the content in the source, but be presented still to the left of the content.

For example, we could use something like in mixins.less:

.inset(@columns: 1) {
margin-left: 0 - ((@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)));
}

Then in scaffolding.less

// Inset column options
.inset1 { .inset(1); }
.inset2 { .inset(2); }
.inset3 { .inset(3); }
.inset4 { .inset(4); }
.inset5 { .inset(5); }
.inset6 { .inset(6); }
.inset7 { .inset(7); }
.inset8 { .inset(8); }
.inset9 { .inset(9); }
.inset10 { .inset(10); }
.inset11 { .inset(11); }
.inset12 { .inset(12); }

Thoughts on adding something like this? Is this already possible, and I just missed it?
Issue 1:
Challenge Using Objects for Lookups has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36.

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

My code:

// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha": "Adams",
"bravo": "Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo": "Easy",
"foxtrot": "Frank"
};
result += lookup[val];
// Only change code above this line
return result;
}

// Change this value to test
phoneticLookup("");

Issue 2:
Challenge Using Objects for Lookups has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36.

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

My code:

// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha": "Adams",
"bravo": "Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo": "Easy",
"foxtrot": "Frank"
};
result += lookup[val];
// Only change code above this line
return result;
}

// Change this value to test
phoneticLookup("");
Issue 1:
System information (version)

OpenCV => 4.5.4

Operating System / Platform => Linux 22.04 LTS 64 Bit

Compiler => gcc

Detailed description

Since at least version 3.3.1, the EVENT_MOUSEWHEEL and EVENT_MOUSEHWHEEL have worked in linux despite the fact the the .h file says they are implemented in Windows Only.

With 4.5.4 on a new machine, the MOUSEWHEEL events do not work.

I went back to 4.5.1 and they work fine.

Issue 2:
System information (version)

OpenCV => 4.5.5-310-g9aa647068b

Operating System / Platform => debian bullseye

Compiler => gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1)

Detailed description

When mouse wheel is used event is wrong :

see also https://forum.opencv.org/t/unable-to-get-following-flags-event-flag-l-r-m-button-event-mousewheel/8261

Steps to reproduce

#include <opencv2/opencv.hpp>
#include <iostream>

void onMouse(int event, int x, int y, int flags, void *userdata)
{
if (event&cv::EVENT_MOUSEWHEEL)
{
std::cout << "EVENT_MOUSEWHEEL" << std::endl;
std::cout << event << std::endl;
std::cout << cv::getMouseWheelDelta(flags) << std::endl;
}
if (event == cv::EVENT_MOUSEHWHEEL)
std::cout << "EVENT_MOUSEHWHEEL" << std::endl;
if (event == cv::EVENT_LBUTTONDOWN)
std::cout << "EVENT_LBUTTONDOWN" << std::endl;
}

int main(int argc, char**argv)
{
std::cout<< cv::getBuildInformation();
cv::Mat img = cv::imread("/home/pi/opencv/samples/data/baboon.jpg", cv::IMREAD_COLOR);
char key = 0;
cv::namedWindow("Test Event");
cv::setMouseCallback("Test Event", onMouse);
while (key != 27)
{
if (img.empty())
return 0;
cv::imshow("Test Event", img);
key = cv::pollKey();
}

return 0;
}

I think this line is wrong

cv_event = (event->scroll.delta_y!=0) ? CV_EVENT_MOUSEHWHEEL : CV_EVENT_MOUSEWHEEL;

May be this is good :

cv_event = (event->scroll.delta_y!=0) ? CV_EVENT_MOUSEWHEEL : CV_EVENT_MOUSEHWHEEL;