WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When looking at the meson-generated build.ninja on windows, on a machine that is duplicating the CI build, it seems there is no use of msvc only gcc. Is this correct? If so it might be nice to document this in the meson build faq. Also I think the build requires the rtools gcc compiler, I have had problems with standard mingw.

Another niggle: meson build --debug on windows sets the gcc flags to "-O2" "-g". Is using -O2 intentional for the debug builds?

Issue 2:
I want to compute the matrix exponential of a nice, 2x2 matrix, but scipy fails with "ValueError: setting an array element with a sequence."

If I perturb the matrix ever so slightly, it does work however -- perhaps related to the fact that it's invoking a sparse solver. Example below, followed by the perturbation example:

import numpy

import scipy.linalg

A = numpy.matrix([[-1,1],[0,-2]])

B = scipy.linalg.expm(A)

AttributeError Traceback (most recent call last)

in ()

----> 1 B = scipy.linalg.expm(A)

C:\Python27\lib\site-packages\scipy\linalg\matfuncs.pyc in expm(A, q)

171 # Input checking and conversion is provided by sparse.linalg.expm().

172 import scipy.sparse.linalg

--> 173 return scipy.sparse.linalg.expm(A)

174

175

C:\Python27\lib\site-packages\scipy\sparse\linalg\matfuncs.pyc in expm(A)

619 theta_13 = 4.25

620 s = max(int(np.ceil(np.log2(eta_5 / theta_13))), 0)

--> 621 s = s + _ell(2**-s * h.A, 13)

622 U, V = h.pade13_scaled(s)

623 X = _solve_P_Q(U, V, structure=structure)

C:\Python27\lib\site-packages\scipy\sparse\linalg\matfuncs.pyc in _ell(A, m)

806

807 alpha = A_abs_onenorm / (_onenorm(A) * abs_c_recip)

--> 808 log2_alpha_div_u = np.log2(alpha/u)

809 value = int(np.ceil(log2_alpha_div_u / (2 * m)))

810 return max(value, 0)

AttributeError: log2

Perturbation

Here I perturb the matrix ever so slightly, and now it works as expected:

import numpy

import scipy.linalg

A = numpy.matrix([[-1,1],[1e-12,-2]])

B = scipy.linalg.expm(A)

print(B)

outputs:

[[ 3.67879441e-01 2.32544158e-01]

[ 2.32544158e-13 1.35335283e-01]]
Issue 1:
Environment

Windows 10.0.18363.836

PowerToys v0.18.0

PowerToys run module

Steps to reproduce

Alt+Space

Type in "notepad++"

Note that this is not an installed application, but the notepad++.exe file is available through the PATH environment variable

Observe that nothing appears

Hit Esc

Win+R

Type in "notepad++"

Hit Enter

Observe that Notepad++ starts

Quit Notepad++

Win (start menu)

Type in "notepad++"

Observe that "notepad++" shows up under Command with the right icon

Select notepad++ and hit Enter

Observe that Notepad++ starts

Expected behavior

PowerToys Run finds notepad++.exe through the PATH environment variable

Actual behavior

It does not find it.

I have also verified with about a dozen other .exe files, all available through the PATH environment variable, all found through start menu or with Win+R but not through PowerToys run.

Perhaps my expectation is at fault?

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.19624.1000]
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

enter "file explorer"

or "explorer"

Expected behavior

the application "File Explorer" should show up in the result list.

or is it intentionally filtered out?

Actual behavior

no results at all

Internet Explorer shows up

Screenshots
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

We have the following components trees:

baseControl -> inputBaseControl -> inputControl
baseControl -> textControl

baseControl has three object injected into constructor (Renderer, ElementRef, ChangeDetectorRef)

If the derived classes do not call explicitly the super.constructor, then the injected object are undefined.

Expected behavior

We expect that objects are injected correctly even without calling explicitly super.constructor like it was in Angular 2.4.1.

Minimal reproduction of the problem with instructions

For example inputControl calls explicitly and works, but textControl does not call explicitly and does not work as expected.

https://plnkr.co/edit/xXqJCy?p=preview

What is the motivation / use case for changing the behavior?

This should be the standard way to manage inheritance.

Please tell us about your environment:

Windows 10

Visual Studio 2017

NPM

Kestrel

Angular version: 4.0.0

Browser: Chrome 56

Language: TypeScript 2.2.1

Node (for AoT issues): node --version = 7.7.2

Issue 2:
I'm not sure if this is intentional, but this took me a while to puzzle out. I looked for an issue on the topic and found none. Demonstration plunker: http://plnkr.co/edit/YfCiTSnPdSARGwqJ7ifT?p=preview

Basically, when you use

<my-component *my-directive></my-component>

instead of

<template my-directive>
<my-component></my-component>
</template>

any additional inputs also have to be prefaced with *:

<my-component *my-directive *my-directive-input="something"></my-component>

Additionally, the values are bound expressions by default without having to use [prop] binding syntax.

This is in several ways counterintuitive.
Issue 1:
I just configured rust and I noticed this warning appear:

sed: 1: "tools/Makefile": undefined label 'ools/Makefile'

Nothing seems to have gone wrong as a result of this, but I think this might indicate a subtle problem with some sed invocation somewhere.

I'm using the default sed that ships with OS X Lion (BSD sed, not sure which version)

Issue 2:
These lines

# Hack the tools Makefile to turn off the clang build
sed -i 's/clang//g' tools/Makefile

are not correct for sed on OS X, where the extension for the backup files is required when using -i

% sed --help
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

I believe this is what causes the following output during configure:

sed: 1: "tools/Makefile": undefined label 'ools/Makefile'
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: macOs Sierra

Java version: 1.8

Steps to reproduce this issue

Sometimes, request body will be logged when exception occurs, which will burden on the memory and cause security issue. I will work on to remove sensitive data for dubbo protocol related, like NettyChannel, AbstractChannel, DubboProtocol.

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.4-SNAPSHOT

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

这个地方的判断是不是写反了，ipv4的地址要提示ipv6的报错。

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 1:
Chris Beams opened SPR-7778 and commented

This issue is a sub-task of #12165

Issue Links:

#12852 Introduce a reserved default profile name ("is superseded by")

Referenced from: commits b3e36a3, 5062dc3

1 votes, 2 watchers

Issue 2:
Chris Beams opened SPR-8203 and commented

Early in Spring 3.1 M1 a reserved 'default' profile name was introduced. We backed it out under the rationale that it's less magical to express defaults explicitly through spring.profiles.default or ConfigurableEnvironment#setDefaultProfiles.

This can be (re-)introduced; just wanted to keep it simple to start and see if it's truly wanted/needed.

Affects: 3.1 M1

Issue Links:

#13919 Add ability to specify whether a bean profile is active by default ("is duplicated by")

#12434 Support 'default' profile ("supersedes")

Referenced from: commits c4a1350

4 votes, 6 watchers
Issue 1:
by andrew@andreworr.ca:

On an arm5tejl processor running an eabi linux kernel *without* thumb support, executing
a golang binary (compiled with GOARM=5) will result in a segfault when the
rt0_linux_arm.s tries to branch to thumb code in order to set up the OABI check.

I was able to monkey patch this for my situation by commenting out the thumb part as
shown here:
xorrbit/golang@42667df. After
compiling my binaries with this patched copy of the golang compiler I was able to
execute them fine.

I looked into the history of this OABI check and I'm not sure that there is a better way
to do it. It is unfortunate that this is the only tiny bit of thumb code that is
generated, and that it causes a segfault if you run it on a kernel without thumb support.

Granted, this is probably a somewhat rare situation (running a kernel without thumb
support on a processor that supports thumb). I talked to the devs who ship this kernel
and there is no particular reason thumb isn't enabled, the processor supports it but
they never required it. This is all on a custom board running a custom kernel.

I thought I would log this here anyways in case anyone else encountered this problem. A
fix would be great but I can't find of a proper way to fix this that would add more
complexity.

Thanks

Issue 2:
by Andreas.Klauer:

What steps will reproduce the problem?

1. http://play.golang.org/p/KQF7Xz5os7
2. Format [X] Imports

What is the expected output?

package main

import "fmt"

// Is this a bug?
func main() {
fmt.Println("Hello, playground")
}

What do you see instead?

package main

import "fmt"

func main() {
fmt.Println("Hello, playground")
}
// Is this a bug?

Another example: http://play.golang.org/p/7-jPpVyYU4 (hit format with imports)
Issue 1:
#2994

With this Java file:

package com.growingwiththeweb.sorting;

public class BubbleSort {
public static void sort(Integer[] array) {
for (int i = 0; i < array.length - 1; i++) {
for (int j = 1; j < array.length - i; j++) {
if (array[j - 1] > array[j]) {
swap(array, j, j - 1);
}
}
}
}

private static void swap(Integer[] array, int a, int b) {
Integer temp = array[a];
array[a] = array[b];
array[b] = temp;
}
}

Selecting line number 8 (swap(array, j, j - 1)) and hitting ctrl+shift+[ folds the wrong level:

Adding another if statement within that if again folds 1 level above the correct level.

Issue 2:
Testing #2994

When my cursor is at line 266 and run the Fold action, the folding block that starts at line 263 gets folded. I expected that the block that starts at line 265 to be folded instead.

When the cursor is at line 265, behaviour is as expected, by the way.
Issue 1:
The versioning scheme is actually quite childish and doesnt comply with any industry standard.

major.minor.patch

major - this will break previous libraries that use this

minor - this adds new functionality/features

patch - something is broken

0 indicates that its still in development and anything can change at any time. Yet people are already using your product in production and relying heavily on it. You send a message to your end users that you do not care about them or their compatibility issues by not using semantic versioning.

NodeJs finally moved to real semantic versioning with IOJS merged in they are now up to 4.1.2 and clearly explains the backward compatability issues with the different versioning.

Issue 2:
Almost every release introduces breaking changes. It would be easier to maintain if React bumped the first digit of the version every time there was a breaking change.
Issue 1:
When a binary compiled with -g panics, and RUST_BACKTRACE=1, line numbers should be given along with the backtrace.

Issue 2:
In an effort to reduce the number of duplicated methods, I made a branch that uses objects in the walk routines for the visitor. This, in combination with porting more visitors to avoid the E parameter (i.e., to use Visitor<()>), should help quite a bit. However, it currently encounters a crash.
Issue 1:
await import("npm:table");

error: Uncaught (in promise) SyntaxError: Identifier '__esModule' has already been declared

Issue 2:
Happens with e.g. redis and random:

import { createClient } from 'npm:redis';

import random from 'npm:random'

deno run --unstable -A main.js

error: Uncaught SyntaxError: Identifier '__esModule' has already been declared
at <anonymous> (file:///C:/Users/GJZwiers/AppData/Local/deno/npm/registry.npmjs.org/random/3.0.6/dist/cjs/index.js:8:14)

deno --version

deno 1.25.0+da10c9c (canary, x86_64-pc-windows-msvc)
v8 10.6.194.5
typescript 4.7.4
Issue 1:
As we move to docker setup being default for local clusters we should make sure that hyperkube is up to date.

@ihmccreery @quinton-hoole @brendandburns @roberthbailey @mikedanese

Issue 2:
These docs says that one can pull Kubernetes images for each release from GCR:

https://github.com/GoogleCloudPlatform/kubernetes/blob/v1.0.1/docs/getting-started-guides/scratch.md

However, release images seem to be missing in GCR:

docker pull gcr.io/google_containers/kube-apiserver:v1.0.0
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.0 not found in repository gcr.io/google_containers/kube-apiserver

docker pull gcr.io/google_containers/kube-apiserver:v1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.1 not found in repository gcr.io/google_containers/kube-apiserver

docker pull gcr.io/google_containers/kube-apiserver:1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag 1.0.1 not found in repository gcr.io/google_containers/kube-apiserver
Issue 1:
Challenge Waypoint: Local Scope and Functions 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.106 Safari/537.36.

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

My code:

function myFunction() {
var myVar = "(g old + x/g old) / 2";
console.log(myVar);
}
myFunction();

// run and check the console
// myVar is not defined outside of myFunction

// now remove the console.log line to pass the test
console.log(myVar);

'removing only the console.log(myVar) should do the trick..'

Issue 2:
Challenge Waypoint: Local Scope and Functions has an issue.

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

The test asks you to remove the second console.log() to pass. When you remove the second console.log() it still fails. You have to remove both console.log() calls to pass(including the one inside myFunction().)

Reproducible every time by removing the console.log() outside of myFunction(), as asked by test. I'm assuming this is a bug in the test and not the text as there's no reason to remove the console.log() call within myFunction().
Issue 1:
Hello,

See: https://github.com/JuliaLang/julia/blob/master/Makefile#L541:

@env JULIA_CPU_THREADS=1 $(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/test all JULIA_BUILD_MODE=$(JULIA_BUILD_MODE)

This makes the test suite to take much more time to execute; furthermore, the official CI uses multiple workers by manually invoking runtests.jl with the ncores argument, so there doesn't seem to be a reason to force 1 worker anymore (if there ever was).

Thank you!

Issue 2:
Following on from the removal of the Graphics module from Base, the Collections module doesn't seem to belong there either, and (as far as I can tell) is not used elsewhere in Base. I propose that the (nice) functionality be moved to the DataStructures package.

On a related note, in PriorityQueue, I suggest that enqueue! and dequeue! be renamed to push! and pop! for consistency, and that pop! should return not only the value associated with the first key, but also the key itself, in a tuple. (Currently, if the key is needed, it must currently be duplicated inside the value!)
Issue 1:
sometimes celery with redis appear the problem:

portal_page_handler.py:3175 ERROR Traceback (most recent call last):

File "/home/ixianxia/web_app_src/shanghu_wifi/handler/portal_page_handler.py", line 3123, in get

self.cur_user.card_no)

File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/task.py", line 452, in delay

return self.apply_async(args, kwargs)

File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/task.py", line 554, in apply_async

*_dict(self._get_exec_options(), *_options)

File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/base.py", line 321, in send_task

reply_to=reply_to or self.oid, *_options

File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/amqp.py", line 299, in publish_task

*_kwargs

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/messaging.py", line 166, in publish

routing_key, mandatory, immediate, exchange, declare)

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/connection.py", line 440, in _ensured

return fun(_args, *_kwargs)

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/messaging.py", line 182, in _publish

mandatory=mandatory, immediate=immediate,

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/init.py", line 524, in basic_publish

message, exchange, routing_key, **kwargs

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/exchange.py", line 60, in deliver

for queue in _lookup(exchange, routing_key):

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/init.py", line 615, in _lookup

self.get_table(exchange),

File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/redis.py", line 693, in get_table

raise InconsistencyError(NO_ROUTE_ERROR.format(exchange, key))

InconsistencyError:

Cannot route message for exchange 'default': Table empty or key no longer exists.

Probably the key ('_kombu.binding.default') has been removed from the Redis database.

Issue 2:
I have installed Celery v3.0.19 with Redis as MQ backend. Everything was fine right after I set them up, but after a while Celery started throwing an error when .delay method was called to add a task to queue.

Cannot route message for exchange 'celery': Table empty or key no longer exists.
Probably the key ('_kombu.binding.celery') has been removed from the Redis database.

There is no any googleable solution for this problem. But it seems I fixed it for me by specifying timeout 0 in my redis.conf file. It had 300 set by default in version 2.2.12 that I installed from repo on 12.04.2 Ubuntu Server.

timeout n, where n > 0 means the idle client will be disconnected after n seconds. Kombu's Redis transport may not be able to handle this kind of disconnection.
Issue 1:
The code below outputs ((6340760, 140201758297392), (6340840, 140201758297424), (6340856, 140201758297472), (6340872, 140201758297504)) (exact numbers may vary). The important part is that the vtables seem to get newly created for ~1 and ~2 (and also @1 and @2) even though they could easily use the same vtables.

use std::cast::transmute;
trait Foo {
fn foo(&self) {}
}
impl Foo for uint {}
impl Foo for int {}
unsafe {
(transmute::<~Foo, (uint,uint)>(~1i as ~Foo),
transmute::<@Foo, (uint,uint)>(@1i as @Foo),
transmute::<~Foo, (uint,uint)>(~2i as ~Foo),
transmute::<@Foo, (uint,uint)>(@2i as @Foo))
}

The code was fed to rusti, original below (thanks to dbaupp):

13:55 < dbaupp> rusti: use std::cast::transmute; trait Foo { fn foo(&self) {} } impl Foo for uint {} impl Foo for int {} unsafe {(transmute::<~Foo, (uint,uint)>(~1i as ~Foo),transmute::<@Foo, (uint,uint)>(@1i as @Foo),transmute::<~Foo, (uint,uint)>(~2i as ~Foo),transmute::<@Foo, (uint,uint)>(@2i as @Foo))}
13:55 -rusti:#rust- ((6340760, 140201758297392), (6340840, 140201758297424), (6340856, 140201758297472), (6340872, 140201758297504))

Swapping vtables appears to work just fine, even between ~Trait and &Trait (but not between ~Trait and @trait):

use std::cast::transmute;
trait Foo{
fn foo(&mut self);
fn bar(&self)->int;
}
impl Foo for int{
fn foo(&mut self) {
*self=*self+1
}
fn bar(&self)->int{
*self
}
};
unsafe{
let (a1,a2) = transmute::<~Foo,(uint,uint)>(~1 as ~Foo);
let (b1,b2) = transmute::<&mut Foo,(uint,uint)>(&mut 2 as &mut Foo);
let mut a = transmute::<(uint,uint),~Foo>((b1,a2));
let b = transmute::<(uint,uint),&mut Foo>((a1,b2));
a.foo();b.foo();
(a.bar(),b.bar() )
}

Outputs (2,3) in rusti.

14:24 < Thiez> rusti: use std::cast::transmute; trait Foo{fn foo(&mut self);fn bar(&self)->int;} impl Foo for int{fn foo(&mut self){*self=*self+1}fn bar(&self)->int{*self}}; unsafe{ let
(a1,a2)=transmute::<~Foo,(uint,uint)>(~1 as ~Foo); let (b1,b2)=transmute::<&mut Foo,(uint,uint)>(&mut 2 as &mut Foo); let mut a=transmute::<(uint,uint),~Foo>((b1,a2));let b =
transmute::<(uint,uint),&mut Foo>((a1,b2)); a.foo();b.foo();(a.bar(),b.bar()) }
14:24 -rusti:#rust- (2, 3)

It seems to me we should generate the vtables at compile time.

Issue 2:
I'd marked a test case with those two attributes, intended to remove the second one later, but the compiler didn't bother with the second one to begin with. This caused a known-buggy test case to run anyway and wedge the build bots on all but windows.

I would have liked to have seen something like warning: duplicate ignore attribute; ignoring the latter
Issue 1:
Just updated to 5.8.23 and noticed this in our diff:

Input (context):

} else if (add) {
if (!(model = this._prepareModel(attrs, options))) continue;
toAdd.push(model);
this._byId[model.cid] = model;
if (model.id != null) this._byId[model.id] = model;
}

Output (context):

} else if (add) {
if (!(model = this._prepareModel(attrs, options))) continue;
toAdd.push(model);
this._byId[model.cid] = model;
if (model.id != null) this._byId[model.id] = model;
}

No changes in the source file (as far as I can tell).

Unfortunately I'm not sure how to check which version of Babel I was using previously as I just ran npm update. Somewhere between 5.5.8 and 5.8.23.

Thanks for the great work. 👍

Issue 2:
In 5.8.9, this:

if (a) {
b(); // this comment breaks the code generators indentation
} else {
c();
}

results in:

"use strict";

if (a) {
b(); // this comment breaks the code generators indentation
} else {
c();
}
Issue 1:
Below is the error:

Exception in thread "main" java.lang.UnsupportedOperationException: Op BatchNormWithGlobalNormalization is not available in GraphDef version 21. It has been removed in version 9. Use tf.nn.batch_normalization().

at org.tensorflow.Graph.importGraphDef(Native Method)

at org.tensorflow.Graph.importGraphDef(Graph.java:113)

at org.tensorflow.Graph.importGraphDef(Graph.java:97)

at org.tensorflow.examples.LabelImage.executeInceptionGraph(LabelImage.java:110)

at org.tensorflow.examples.LabelImage.main(LabelImage.java:65)

I can't find the source file in which to use tf.nn.batch_normalization

Are the Java libraries using older versions of Tensorflow?

Issue 2:
I am following Tensorflow for poet instruction for retrain model. I have successfully create retrained_graph.pb and retrained_labels.txt. While I use imagenet_comp_graph_label_strings.txt and tensorflow_inception_graph.pb then application run without any error. But use my created file then I get error that:

Caused by: java.lang.UnsupportedOperationException: Op BatchNormWithGlobalNormalization is not available in GraphDef version 21. It has been removed in version 9. Use tf.nn.batch_normalization(). at org.tensorflow.Graph.importGraphDef(Native Method) at org.tensorflow.Graph.importGraphDef(Graph.java:118) at org.tensorflow.Graph.importGraphDef(Graph.java:102) at org.tensorflow.contrib.android.TensorFlowInferenceInterface.load(TensorFlowInferenceInterface.java:402) at org.tensorflow.contrib.android.TensorFlowInferenceInterface.initializeTensorFlow(TensorFlowInferenceInterface.java:91) at org.tensorflow.demo.TensorFlowImageClass