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

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

CallbackServiceCodec has a method referOrdestroyCallbackService,

I think it would be referOrDestroyCallbackService better ,so we can understand the method mean more simple.

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

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

Operating System version: win7

Java version: 1.8

Step to reproduce this issue

Problem one

I want to test pseudo cluster, I create service like follow code :

public interface DemoService
{
String sayHello(String name);
}

implement service interface as follows, both loadbalance strategies are random：

@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}

@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl2 implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service2 -> Hello " + name;
}
}

I start one appliction to test it.

Expected Result

random return "Service1" and "Service2" .

Actual Result

alway return "Service2"

Problem two

change one implement loadbalance stragy as follow:

@Service(timeout = 5000, loadbalance="consistenthash")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}

Expected Result

random return "Service1" and "Service2" .

Actual Result

alway return "Service1"

Question

I don't know how dubbo it works. but it is very strange , it always use consistenthash stragy.

Dubbo provide client and server side loadbalance stragy , Who is at work.

As I know，dubbo has no central node coordinator, may be is client side effect. If remove server side loadblance stragy or improve it ?

could not provid unique way to use loadbalance

Single loadbalance stragy

Mixed loadbalance stragy

@ulinkwo @justinmclean @lonre @ke4qqq @gmcdonald @carryxyh
Issue 1:
by fibercut:

What steps will reproduce the problem?

package main

import (
"fmt"
)

type Node struct {
line string
unused [50]int
}

const (
LOOPS = 300 // consume ~ 1G of RAM, increase this at your own risk
MAX = 30000
STR = "1 2 3 4 5 6 7 8 9 0"
)

func main() {
for i := 1; i < LOOPS; i++ {
p := new([MAX]Node)[0:MAX]
for j := 0; j < MAX; j++ {
p[j].line = STR
}
fmt.Printf("%v\n", i)
}
}

What is the expected output?

On 64 bit Ubuntu (6g) to above program stays at a comfortable 45M memory consumption,
even for much larger values of LOOPS.

What do you see instead?

The above program consumes > 1G of RAM quickly on 32 bit systems (8g).

Which compiler are you using (5g, 6g, 8g, gccgo)?

8g

Which operating system are you using?

Linux (ubuntu)

Which revision are you using? (hg identify)

ca4f9687cec0 release.2010-10-13.1/release

Please provide any additional information below.

Issue 2:
Expected behavior: go test works

Actual behavior: go test fails because it trips over long paths it itself constructs for building and running the tests

Output of "go version":

go version go1.4.2 windows/amd64

Repro steps:

C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>type foo\foo.go

package foo

func Foo() string {

return "foo"

}

C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>type foo\foo_test.go

package foo

import "testing"

func TestFoo(t *testing.T) {

t.Log("Testing foo")

}

C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>go test .\foo

/C/Users/lukasza/my/enlistment/has/rather/long/and/descriptive/paths/that/I/rather/like/and/enjoy/foo

mkdir C:\Users\lukasza\AppData\Local\Temp\go-build344025871_\C_\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy

foo_test_\C_\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather: The filename or extension is too long.

FAIL /C/Users/lukasza/my/enlistment/has/rather/long/and/descriptive/paths/that/I/rather/like/and/enjoy/foo [setup failed]
Issue 1:
Environment

Windows build number: Version 10.0.18362.720
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Run photoshop or Maya

make sure to have a floating window.

Move it while having shift pressed down

FancyZones does not turn up.

Expected behavior

In earlier versions of FancyZones snapping of floating windows was allowed and worked just like any other window.

Actual behavior

FancyZones doesn't trigger when using any of the shortcuts and I am thuus unable to snapp any floating windows from any aplication I have tried it with.

Screenshots

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Create FancyZone layout, use mouse to drag-and-drop "Solution Explorer" or any other window from Visual Studio (except main window) into a zone.

Expected behavior

The window resizes to the zone accordingly, works in v0.13 of PowerToys.

Actual behavior

The window does not resize to the zone.

In version 0.14 it is still possible to arrange the window by activating the "Override Windows snap hotkeys..."-option and using hotkeys to arrange it into place. Drag-and-drop does not work.

In version 0.15+ there is no option to arrange these windows into a zone.
Issue 1:
Seems there is an issue running the terminal "As Administrator"

Error: Windows cannot find "C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" Make sure you've typed the name correctly, then try again

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2661.0

Steps to reproduce

Open WT

Open profiles.json

Create an object in the profiles array

Fill in some fields such as name, commandline, startingDirectory, colorScheme, etc.

Save profiles.json

Expected behavior

WT will generate/add a guid to the new custom profile, that way it can be set as the defaultProfile. This was the case in previous versions of WT, before separation of cascading settings was implemented.

Actual behavior

WT does not generate/add a guid to the new profile, thus there appears to be no way to set your custom profile as the default.
Issue 1:
Jyothi Prakash opened SPR-8681 and commented

Hi,

I am new to this technology.

I've just started reading spring reference documentation (PDF) both Current Development Releases and Current GA Releases. Unfortunately both PDF version does not download the images in files.

Thanks in advance,

Jyothi

Affects: 3.0.5, 3.1 M2

Reference URL: http://forum.springsource.org/showthread.php?114388-Reference-Documentation

Issue Links:

#13158 pdf documentation doesn't contain images ("duplicates")

Issue 2:
Bertrand Fovez opened SPR-4108 and commented

For example, spring-context.pom reads the following:

<groupId>org.springframework</groupId>

<artifactId>spring-context</artifactId>

<version>2.5-rc1</version> <-- 2.5-rc1 here -->

And lower:

<dependency>

<groupId>${project.groupId}</groupId>

<artifactId>spring-beans</artifactId>

<version>${project.version}</version> <-- ${project.version} here refers to 2.5-rc1 -->

</dependency>

As a results, any maven goal leads to maven trying to download spring-beans-2.5-rc1 instead of spring-beans-2.5-rc2.

Affects: 2.5 RC2

Issue Links:

#8778 Error in spring-2.5-rc2.pom (Wrong version information) ("duplicates")
Issue 1:
I see on my website and on your online docs this bug :

When you click to "Launch demo modal", the modal appear. I click on "close", the modal disappear. But when I click again on "Launch demo modal", the button close doesn't work.

You can see that on : http://getbootstrap.com/javascript/#modals

In Bootstrap 2.3.2, it's correct : http://getbootstrap.com/2.3.2/javascript.html#modals

Can you fixe that?

Tx

Issue 2:
Hi,

The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.

I am checking on source code line 932, if I commented out this line then it is working again.

this.$element

.removeClass('in')

.attr('aria-hidden', true)

//.off('click.dismiss.modal')

Am I missing anything...?

Sorry for the grammar. Thanks.
Issue 1:
rust-bindgen sets cargo:rustc -L to /usr/local/lib via build.rs

When this happens, linking fails because duplicate candidate dylibs are found in the bootstrap libs: (/usr/local/lib) and the rustlib (/usr/local/lib/rustlib/../lib)

Specific errors below:

Issue 2:
fn main() {
for i in range(0, 30) {
}
}

says

2:11: 2:16 error: cannot determine a type for this bounded type parameter: cannot determine the type of this integer; add a suffix to specify the type explicitly
2 for i in range(0, 30) {
^~~~~

11 times.
Issue 1:
TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

// A self-contained demonstration of the problem follows...

Expected behavior:

Actual behavior:

Issue 2:
I have a general question about project structures / modules.

It's a project with 3 types of code:

client: classes used for the client web-app, built into a single js file (with --out).

server: code running on node

shared: classes used by both client and server, typically model classes with functions like validation, etc

My aim is this:

use 1 file per 1 class at the source level

deploy the client app into a single output file (for performance reasons: better start up time), the server can be deployed as many files (or if possible and makes sense from a perf. point of view it can be a single file too). These can be 2 separate compilations, the client with --out and the server with commonjs.

reuse the shared model classes (without duplication) in the client and the server

be able to use circular dependencies (although shared code will not depend on client/node code, only the other way around, circular dependencies can only occur in within the client code)

I can't seem to achieve these goals. The problem is this:

if I structure the shared code so that I only use the ///<reference.../> tags (like I do in the client) that won't be usable when compiling the server with common.js

if I use common.js style requires in the shared code then that won't work for the client's single file --out compilation

These are the options I think I have:

switch to using require js (amd) in the client as opposed to references and the single file output, and maybe use some post compile script to concatenate the modules to a single file. However circular dependencies may occur sometimes and that's a big issue I have with require.js

switch to using es6 style module syntax and use it on the client and in node with some polyfills/loaders until natively supported

switch to using commonjs style modules and load them with browserify on the client

do a pre-compilation step and transform the shared code to be eligible once for the client side single output compilation and once for the node.js side common.js compilation. However this can have many caveats and sounds like a hack.

What I'm really looking for is a way for each TypeScript class/file to be able to "say" what is the class it exports, but not specify how it will be consumed, ie. via commonjs or as a single file output. Probably that's not possible though in a simple way?
Issue 1:
I found a strange behaviour when importing a default-exported module from file1 and using it for variable/parameter/return value/whatever... type declarations in file2. Please note that the imported namespace is still visible and works correctly when I use it for variable definitions (e.g. invoking class constructor with new). See the code below:

file1.ts

export module a {
export module b {
export class MyClass {
x: number = 10;
}
}
}

export default a.b;

file2.ts

import y from './file1';

function fn(): y.MyClass { //warning here: Cannot find namespace 'y'.
return new y.MyClass(); //it works here, no compiler warning
}

var a = fn(); //works fine
var b: y.MyClass = fn(); //warning here: Cannot find namespace 'y'.

function fn2(i: y.MyClass) { //warning here: Cannot find namespace 'y'.
}

Instead, for class expression (export default class {... in file1.ts) it works fine, both for type declarations and variable definitions.

Issue 2:
Current description of export assignments in the spec states:

Export assignments exist for backward compatibility with earlier versions of TypeScript. An export assignment designates a module member as the entity to be exported in place of the module itself.

ExportAssignment:
export = IdentifierReference ;

A module containing an export assignment can be imported using an import require declaration (11.3.3), and the local alias introduced by the import require declaration then takes on all meanings of the identifier named in the export assignment.

However current implementation also permits dotted names - in this case only value meaning is exported. This change seems to be quite recent, example below compiles with no errors in current master and issues a syntax error ';' expected."in v1.4.

declare module foo.bar {
export type X = number;
export var X: { A: number };
}

declare module "test" {
export = foo.bar;
}

This issue can have several interpretations:

this is only spec bug - current behavior for dotted names should be documented

this is both spec and implementation issue - we export all meanings also for dotted names and spec should be adjusted to reflect this

this is implementation bug - we should prohibit usage of dotted names in export assignments.
Issue 1:
Challenge Target the Children of an Element Using jQuery has an issue.

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

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

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");

$("#right-well").children() .css("color","FFa500");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
Challenge tests for jQuery fail to run if syntax errors are present in a campers code.

Examples:

#9289

#9082

#9470

#9672

#9698

What is stopping the tests running? Can we fix it?

Is there a way to lint jQuery in codemirror so campers get visual clues to syntax errors, like in the JS challenges?

-Or-

When there is a syntax error, can we present a modal to the camper saying there is a syntax error present in their code when they click 'Run tests'?
Issue 1:
Muthukumaran Madialagan opened SPR-4077 and commented

My Issue is same as of the BUG which was already disucssed and fixed in the following URL

http://opensource.atlassian.com/projects/spring/browse/SPR-1384

Affects: 2.0.2

Issue Links:

#8797 PROPAGATION_REQUIRES_NEW fails on JBoss 4.2.1 when using Hibernate connection release mode "on_close" ("is duplicated by")

#6084 IllegalStateException thrown by JBoss 4.0.3 when PROPAGATION_REQUIRES_NEW used during active transaction in MessageBean with BMT

Issue 2:
Frank Scheffler opened SPR-9180 and commented

As far as I've seen it most of the bean profile examples tend to use profiles such as dev and production. However, sometimes it would be useful to have a configuration that should NOT be applied, if a certain profile is active. More generally speaking, wouldn't it be possible to support some rudimentary boolean logic for bean profiles?

Issue Links:

#13370 Support not (!) operator for profile selection ("duplicates")

#12637 Support profile exclusivity and/or bean definition finality
Issue 1:
from torchvision.models import vgg16, resnet18
vgg16()

The following interrupt message appears：

Illegal instruction

I installed pytorch(1.2/1.3) from binaries via pip wheels, and I don't know how to solve it.

Issue 2:
Hello,

I have a strange issue when loading some pretrained models. On loading, some models abort and give an "illegal instruction" message, like below:

import torchvision
torchvision.models.squeezenet1_0(pretrained=True)

Illegal instruction (core dumped)

But with other models, everything runs smoothly. The following code

import torchvision
torchvision.models.alexnet(pretrained=True)

outputs a nicely loaded model:

AlexNet(
(features): Sequential(
(0): Conv2d(3, 64, kernel_size=(11, 11), stride=(4, 4), padding=(2, 2))
(1): ReLU(inplace=True)
(2): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
(3): Conv2d(64, 192, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2))
(4): ReLU(inplace=True)
(5): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
(6): Conv2d(192, 384, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(7): ReLU(inplace=True)
(8): Conv2d(384, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(9): ReLU(inplace=True)
(10): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(11): ReLU(inplace=True)
(12): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
)
(avgpool): AdaptiveAvgPool2d(output_size=(6, 6))
(classifier): Sequential(
(0): Dropout(p=0.5, inplace=False)
(1): Linear(in_features=9216, out_features=4096, bias=True)
(2): ReLU(inplace=True)
(3): Dropout(p=0.5, inplace=False)
(4): Linear(in_features=4096, out_features=4096, bias=True)
(5): ReLU(inplace=True)
(6): Linear(in_features=4096, out_features=1000, bias=True)
)
)

Running Python 3.7.5 on a CPU only Ubuntu machine with the following versions:

PyTorch Version: 1.4.0+cpu

Torchvision Version: 0.5.0+cpu

The CPUs have the following properties:

processor : 7

vendor_id : GenuineIntel

cpu family : 6

model : 13

model name : QEMU Virtual CPU version (cpu64-rhel6)

stepping : 3

microcode : 0x1

cpu MHz : 2593.902

cache size : 4096 KB

physical id : 7

siblings : 1

core id : 0

cpu cores : 1

apicid : 7

initial apicid : 7

fpu : yes

fpu_exception : yes

cpuid level : 4

wp : yes

flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl cpuid pni cx16 hypervisor lahf_lm abm pti

bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf

bogomips : 5187.80

clflush size : 64

cache_alignment : 64

address sizes : 46 bits physical, 48 bits virtual

power management:

I could not find help anywhere with this issue...
Issue 1:
If I install babel-plugin-transform-runtime into a new project, NPM will install babel-runtime 5.x. This makes sense, as basically everything else uses a 5.x babel-runtime too.

The problem is that it requires methods based on the 6.1.4 filenames, rendering it basically useless.

This produces errors like this when I try to run Webpack on the resultant files:

Module not found: Error: Cannot resolve module 'babel-runtime/helpers/defineProperty'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/slicedToArray'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/objectWithoutProperties'

These errors only occur when running babel-plugin-transform-runtime. I've tried it on 6.1.4, 6.1.2 and 6.0.2. I've also tried downgrading the versions of various other packages to 6.1.2 and 6.0.2. I've also removed node_modules and done a complete npm install on each of these steps.

Issue 2:
I'm using the latest everything:

NodeJS 5.0.0

NPM 3.3.12

babel-runtime 6.1.4

babel-register 6.1.4

when running anything with babel-node I get the following errors:

Error: Cannot find module 'babel-runtime/helpers/interop-require-default'
at Object.<anonymous> (babel-register/lib/node.js:5:30)

Error: Cannot find module 'babel-runtime/helpers/interop-require-wildcard'
at Object.<anonymous> (babel-register/lib/node.js:7:31)

The reason this happens is that the files are actually named interopRequireDefault.js and interopRequireWildcard.js respectively.

If I rename them to interop-require-default.js and interop-require-wildcard.js the errors go away.

Other than that everything seems to work just fine.
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

I have two tags select bound to the same list, after changing the selection a couple times I can see items from the first select being overridden by the second select selection.

This happens when I was testing bindings types on select with ngValue, value and a change event.

Expected behavior

The list instance should not change.

Minimal reproduction of the problem with instructions

This behavior seems ramdom, you'll need to change selection in both drop down a couple times before both select start containing only one duplicated object.

Here is a plunker on version 2.4.7: http://plnkr.co/edit/u4Owq7NeP5GMlUGrR9Oa?p=preview

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

Testing/prototyping

Please tell us about your environment:

Window 7 / Xeon

Angular version: 2.4.7

Browser: [Chrome 55 | IE 11 ]

Language: [TypeScript 2.0.2 | ES6]

Issue 2:
I'm submitting a ...

[ x] bug report
[ ] 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

Got extra empty li last element using ul li and ngFor.

Angular version: 2.0.0-rc.4

Browser: Linux Chromium51

Plunk: http://plnkr.co/edit/TtIFZegKFHrfG8TGQqKb?p=preview

Sorry if it is a duplicate, couldn't find any similar Issues.
Issue 1:
Checklist

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

Steps to reproduce

I have been using celery==3.1.25 for scheduling my periodic tasks at regular intervals. I am using the redis==2.10.6 as our broker. The tasks are getting scheduled using apply_async method and the time gets scheduled using eta or countdown. My tasks are being duplicated at regular intervals.

I have also set the timeout visibility to be greater than my *ETA

bug.txt

*

Expected behavior

Actual behavior

Issue 2:
These two files overlap quite a bit. Instead of maintaining two files that mostly have equivalent content, maybe converting one of them into a symlink would be an idea?