WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi!

Rust ends with an illegal instruction error when I try to compile this:

let mut c: u64;
asm!("" : "=m" (c));

Maybe because it generates wrong LLVM IR.

Rust/LLVM IR:

%1 = call i64 asm "", "=m,~{dirflag},~{fpsr},~{flags}"(), !srcloc !0
store i64 %1, i64* %c

Clang/LLVM IR:

call void asm "", "=*m,~{dirflag},~{fpsr},~{flags}"(i64* %c) #1, !srcloc !1

Meta

rustc --version --verbose:

rustc 1.1.0-dev (2214860 2015-04-24) (built 2015-04-25)

binary: rustc

commit-hash: 2214860

commit-date: 2015-04-24

build-date: 2015-04-25

host: x86_64-unknown-linux-gnu

release: 1.1.0-dev

clang --version:

Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)

Target: x86_64-pc-linux-gnu

Thread model: posix

Issue 2:
#![feature(asm)]

fn main() {
let foo = 42u;
unsafe { asm!("lea rax, $0" :: "m"(foo) : "rax" : "intel"); }
}

Expected result: rax contains the address of foo

However:

unknown operand type!
UNREACHABLE executed at /build/buildd/rust-nightly-201408090406~39bafb0~trusty/src/llvm/lib/Target/X86/X86AsmPrinter.cpp:208!
Aborted (core dumped)

Using a struct instead of an uint:

#![feature(asm)]

struct Foo(u64, u64);

fn main() {
let foo = Foo(42, 1337);
unsafe { asm!("lea rax, $0" :: "m"(foo) : "rax" : "intel"); }
}

Now the compiler doesn't crash. But the emitted lea instruction references the memory location of the address of foo instead of foo itself:

; create foo
mov QWORD PTR [rbp-0x10],0x2a
mov QWORD PTR [rbp-0x8],0x539

; the (broken) implementation of the "m" constraint
lea rax,[rbp-0x10] ; this instruction should not be emitted
mov QWORD PTR [rbp-0x18],rax ; this instruction should not be emitted

; the actual inline asm
lea rax,[rbp-0x18] ; this should be: lea rax, [rbp-0x10]

So basically "m"(foo) generates the code for "m"(&foo) if foo is a struct.
Issue 1:
Catching DBApi exception it would be nice to get the model name or at least the table name which caused the problem.

e.orig.args is not convenient:

('duplicate key value violates unique constraint "unique_shop_item_user"\nDETAIL: Key (shop_item_id, user_id)=(1, 96) already exists.\n',)

due to the ambiguity of a message.

Issue 2:
Describe the bug

Incorrect warning SAWarning: Reassigning polymorphic association for identity ... Check for duplicate use of ... as value for polymorphic_identity under some inheritance configurations.

In the example below, there is no duplication of polymorphic identity. But a warning is displayed.

To Reproduce

import sqlalchemy as sa
from sqlalchemy import orm

metadata = sa.MetaData()
BaseModel = orm.declarative_base(metadata=metadata)

@orm.declarative_mixin
class PolymorphicMixin:
@orm.declared_attr
def discriminator(cls) -> sa.Column:
return sa.Column(sa.String(40), nullable=False)

__mapper_args__ = {
'polymorphic_on': discriminator,
}

class Entity(BaseModel, PolymorphicMixin):
__tablename__ = 'entities'
pk = sa.Column(sa.Integer, primary_key=True)

class Actor(Entity):
__tablename__ = 'actors'
__mapper_args__ = {'polymorphic_identity': 'actor'}
pk = sa.Column(sa.ForeignKey(Entity.pk), primary_key=True)

class Client(Actor):
__tablename__ = 'clients'
pk = sa.Column(sa.ForeignKey(Actor.pk), primary_key=True)

class Person(Client):
__mapper_args__ = {'polymorphic_identity': 'person'}

class Company(Client):
__mapper_args__ = {'polymorphic_identity': 'company'}

Error

test_example.py:31: SAWarning: Reassigning polymorphic association for identity 'actor' from <Mapper at 0x7ff89b8d6070; Actor> to <Mapper at 0x7ff89b8d61c0; User>: Check for duplicate use of 'actor' as value for polymorphic_identity.
class User(Actor):

Versions

OS: Linux Mint 20.2

Python: 3.9.5

SQLAlchemy: 1.4.22

Additional context

If the polymorphic_identity argument is removed from the Actor class, there will be no warning.

If the polymorphic_identity argument is added to the Client class, there will be no warning.
Issue 1:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
Windows build number: Windows 10 Version 2004 (OS Build 19041.329)
PowerToys version: V0.18.2
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Install PowerToys Preview

Restart computer

3, Login

PowerToys Preview starts up

Expected behavior

PowerToys doesn't run at startup

Actual behavior

PowerToys runs at startup despite Run at startup slider at Off

Screenshots

Issue 2:
Environment

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

Steps to reproduce

Freshly install PowerToys

Make sure the checkbox "Automatically start PowerToys at logon" is selected

Finish installing

Open PowerToys settings

Expected behavior

"Run at startup" should be activated in General settings

Actual behavior

"Run at startup" is not activated.

Screenshots
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: JDK 1.8

Steps to reproduce this issue

start the provider

<bean id="demoService" class="com.ctrip.DemoServiceImpl"/>
<dubbo:service interface="com.ctrip.DemoService" ref="demoService">
</dubbo:service>

set return to false for the consumer, and make a call to the DemoService.

<dubbo:reference id="demoService" interface="com.ctrip.DemoService">
<dubbo:parameter key="return" value="false"/>
</dubbo:reference>

Dubbo will invoke listener even it's one way mode.

public abstract class ListenableFilter implements Filter {

protected Listener listener = null;

public Listener listener() {
return listener;
}
}

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

Expected Result

Filter listener should not be invoked in one way mode.

Actual Result

Filter listener is invoked in one way mode.

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

Operating System version: Mac OS

Java version: N/A

Steps to reproduce this issue

Run dubbo-demo project

Use consul as registry center

Start provider

Start consumer

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

Expected Result

The consumer can exit as usual

Actual Result

The consumer cannot exit.

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

Just put your stack trace here!
Issue 1:
I'm getting this exception during render of constraint error. I'm using the changepassword form of fosuserbundle using only one character for new password. I used en as default locale so $position = 1 but $standardRules has only one value on key 0 which is the one defined in validations.en.yml of fosuserbundle.

__project__/vendor/symfony/symfony/src/Symfony/Component/Translation/MessageSelector.php at line 78
$position = PluralizationRules::get($number, $locale);
if (!isset($standardRules[$position])) {
throw new \InvalidArgumentException('Unable to choose a translation.');
}
return $standardRules[$position];

Issue 2:
InvalidArgumentException: Unable to choose a translation for "The username is too short" with locale "en" from "Array([0] => The username is too short)

Stack:

in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Component/Translation/MessageSelector.php at line 78

at MessageSelector ->choose ('The username is too short', '2', 'en')

in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php at line 158

at Translator ->transChoice ('fos_user.username.short', '2', array('%count%' => '2', '{{ value }}' => '3', '{{ limit }}' => '2'), 'validators', null)

in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/TranslationExtension.php at line 102

at TranslationExtension ->transchoice ('fos_user.username.short', '2', array('{{ value }}' => '3', '{{ limit }}' => '2'), 'validators')

in kernel.root_dir/cache/dev/twig/d5/f8/67933444399d695f7f689bde7dca.php at line 110

....
Issue 1:
📝 Add the ability to have multiple tabs in windows file explorer as part of File Explorer Addons

With all this amazing features coming in, it would be great if we could have multiple tabs at the same time. This would allow people to have the ability to copy, move, compare files and folders easily.

Something like this:

And

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
With the release of the new command line system for W10 I think this kind of feature is a no brainier. Here is another solution for reference: TidyTabs
Issue 1:
Please:

[ x] Check for duplicate issues.

[ x] Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

I am installing the jax using the following command:

'pip install --upgrade "jax[cuda111]" jaxlib==0.1.67 -f https://storage.googleapis.com/jax-releases/jax_releases.html'

it gives me the following error:

jax depends on jaxlib@ https://storage.googleapis.com/jax-releases/cuda111/jaxlib-0.1.67+cuda111-cp38-none-manylinux2010_x86_64.whl

I am using cuda 11.4 with python 3.8.10

it give

If applicable, include full error messages/tracebacks.

Issue 2:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

import itertools

import jax
import jax.numpy as jnp

import haiku as hk
import optax

Model = hk.nets.ResNet152

def dataloader(batch_size, *, key):
while True:
# Binary classification
X_key, Y_key = jax.random.split(key)
X = jax.random.normal(X_key, (batch_size, 64, 64, 3))
Y = jax.random.randint(Y_key, (batch_size,), 0, 2)
yield X, Y

def train():
batch_size = 32
learning_rate = 0.001

def forward(input, is_training):
net = Model(num_classes=2)
output = net(input, is_training)
return output

def learner_fn(input, ground_truth):
logits = forward(input, True)
labels = jax.nn.one_hot(ground_truth, 2)
return jnp.mean(optax.softmax_cross_entropy(logits, labels))

learner_fn_t = hk.transform_with_state(learner_fn)
learner_fn_t = hk.without_apply_rng(learner_fn_t)

@jax.jit
def train_step(params, state, opt_state, X, y):
(loss, state), grads = jax.value_and_grad(learner_fn_t.apply, has_aux=True)(params, state, X, y)
updates, opt_state = optimizer.update(grads, opt_state, params)
params = optax.apply_updates(params, updates)
return params, state, opt_state, loss

rng = jax.random.PRNGKey(42)
loader_rng, rng = jax.random.split(rng)
loader = dataloader(batch_size, key=loader_rng)

X, y = next(loader)
params, state = learner_fn_t.init(rng, X, y)

optimizer = optax.adam(learning_rate)
opt_state = optimizer.init(params)

# Training
for X, y in itertools.islice(loader, 50):
params, state, opt_state, loss = train_step(params, state, opt_state, X, y)
print(loss)

if __name__ == '__main__':
train()

If applicable, include full error messages/tracebacks.

$ XLA_FLAGS=--xla_dump_to=/tmp/slow_operation_dump pipenv run python3 slow_operation.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
2022-05-21 01:56:39.688109: E external/org_tensorflow/tensorflow/compiler/xla/service/slow_operation_alarm.cc:61]
********************************
Very slow compile? If you want to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results.
Compiling module jit_train_step.261
********************************

Here is the content of /tmp/slow_operation_dump: slow_operation_dump.zip. Additionally, here is the Pipenv lock files to help you reproduce my development environment on macOS 12.3.1: Pipfile.zip
Issue 1:
When I build a simple script:

import tensorflow

import matplotlib.pyplot as plt

import numpy as np

plt.plot(np.arange(100))

plt.show()

I get a segmentation fault with TensorFlow 0.8.0. Tested with both, Matplotlib 1.5.1 and 1.4.3.

When I downgrade TensorFlow to 0.7.1 everything runs fine, with both, Matplotlib 1.5.1 and 1.4.3.

TensorFlow is installed via pip inside a virtual environment. I've not installed it outside of a virtual-env, because I do not want to break anything on my system.

Environment info

Operating System: Manjaro Linux

uname --all

Linux 4.4.6-1-MANJARO #1 SMP PREEMPT Sat Mar 19 06:00:37 CET 2016 x86_64 GNU/Linux

pip freeze

backports.shutil-get-terminal-size==1.0.0

cycler==0.10.0

decorator==4.0.9

funcsigs==1.0.1

ipython==4.2.0

ipython-genutils==0.1.0

louis==2.6.5

matplotlib==1.5.1

mock==2.0.0

netsnmp-python==1.0a1

nose==1.3.7

numpy==1.11.0

packaging==16.6

pathlib2==2.1.0

pbr==1.9.1

pexpect==4.0.1

pickleshare==0.7.2

protobuf==3.0.0b2

ptyprocess==0.5.1

pwquality==1.3.0

pyparsing==2.1.1

python-dateutil==2.5.3

python-libtorrent==1.0.9

python-musicbrainz==0.0.0

pytz==2016.4

simplegeneric==0.8.1

six==1.10.0

team==1.0

tensorflow==0.7.1

traitlets==4.2.1

virtualenv==15.0.0

Issue 2:
I install tensorflow use:sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl

linux version is :Linux version 3.10.0-229.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015

when I learn python, and import tensorflow,segmentation fault

import tensorflow

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally

Segmentation fault (core dumped)
Issue 1:
Hi. I have noticed that Deno.read(...) throws an error when attempting to read into a buffer backed by a SharedArrayBuffer. Minimal repro submitted below.

Environment

deno 1.23.1 (release, x86_64-pc-windows-msvc)
v8 10.4.132.8
typescript 4.7.2

Repro

const handle = await Deno.open('./data.txt')
const buffer = new Uint8Array(new SharedArrayBuffer(1000))
const read = await Deno.read(handle.rid, buffer)

// error: Uncaught (in promise) TypeError: Error parsing args at position 2: serde_v8 error: ExpectedBuffer
// const result = await Deno.read(handle.rid, buffer)
// ^
// at opAsync (deno:core/01_core.js:150:35)
// at Object.read (deno:runtime/js/12_io.js:104:30)
// at file:///C:/Users/.../Desktop/repro/index.ts:3:27

Issue 2:
#11040 is currently in the process of implementing the ability to share SharedArrayBuffers across workers, and code implemented in JS and WASM will be able to immediately benefit from it. However, as per #11040 (comment), many of the ops that use MagicBuffer are written assuming that the buffer can only be modified from the current thread/worker, and need to be reviewed and fixed before those APIs can be used with shared memory. Even worse, as per denoland/rusty_v8#711 it seems that the Rust binding for BackingStore is unsound when the backing store is shared, so ZeroCopyBuf would be unsound too.

Therefore, it seems like we should disable the deserialization of shared typed arrays into MagicBuffers for the time being, and at some later point we can figure how to rewrite MagicBuffer and ZeroCopyBuf using the new BackingStore API.
Issue 1:
Cloning SkinnedMesh-es breaks faces with unskinned vertices.

I have no idea where it comes from, I have been struggling with it few hours.

JSFiddle experiments :

comment/uncomment mesh.clone() to watch the issue.

clue1 ? Triggering the cloning on a click event or a setTimeout makes it work !! However this is not even a good hack since it doesn't work in bigger scenes, even after seconds.

clue2 ? I don't think this hacky solution comes from the thread change : setting the timeout to 0 works in the fiddle but not on my laptop, it needs 2-3ms and more.

Issue 2:
Description of the problem

Three.js doesn't currently have a typescript section to the docs (that i could see, certainly).

Describe the bug or feature request in detail:

We should look to add an MVP doc for typescript to the docs which can list common issues and some more detail about how it works.

At the moment the typescript documentation is spread across the web on SO and in closed issues here in this repo

Three.js version

r111 ^

Browser

All of them

OS

All of them
Issue 1:
What problem does this feature solve?

Provide slot for grandchildren

What does the proposed API look like?

For example I have components Parent > GroupedList > SimpleList.

I want to provide slot from Parent to SimpleList

Currently I have to write in GroupedList like this:

<template slot="item" slot-scope="{ itemData }">
<slot name="item" :itemData="itemData"></slot>
</template>

Simple way(which doesn't work):

<slot name="item" :itemData="itemData" slot="item" slot-scope="{ itemData }"></slot>

Or just like:

<slot name="item" slot="item"></slot>

Issue 2:
What problem does this feature solve?

The related issue (#5151) is closed, so I need to clarify my point.

It should exist convenient way to define template for items of hierarchical component (for example, tree or list with sections).

I know, it can be solved with render functions, but it is not so "native" way of building components in vue as in react. I mean, writing / reading render functions is more uncomfortable for average vue user, because they are used only occasionally. It's even worse, if user need to setup webpack / babel / jsx. So I think, render functions should be avoided for not-so-advanced cases.

Slots can be "passed" to children using templates, like this:

<child>
<template slot-scope="props">
<slot v-bind="props"></slot>
</template>
</child>

But there are some drawbacks:

This creates wrapper function on each level. First, we have wrapper. Then wrapper of wrapper, and so on.

This breaks fallback content (default template) feature.

What does the proposed API look like?

<child>
<slot slot-scope></slot>
</child>

Remark

I propose syntax, which is boiled down version of first markup, and can be supported by compiler. Here is my test implementation (it seems quite easy): shameleo/vue-slot-pass-demo@bdb6cbb

If you give me green light, I'll try to prepare PR. If something is missed in implementation, let me know, please.
Issue 1:
Similar in scope to the current 'ignore_unmapped' (issue #1558) used for sorting search results, this parameter would prevent an exception from being generated when a given term is not mapped within an index during a faceted search.

This would be most helpful when generating faceted results across multiple indexes and a certain term does not exist in a given index within the search. The results for the indexes where a term does exist would still be created.

An example:

indexA,indexB,indexC/blogs/_search

{
"query" : {
"match_all" : { }
},
"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"size" : 10,
"ignore_missing": true
}
}
}
}

This should be applied across all facet queries: term, range, histogram, date histogram, statistical, etc.

This ticket could be modified to apply the flag via the uri.

Issue 2:
An optional parameter on the facet, like sort's "ignore_unmapped" parameter would be great.

Context : We use "dynamic_templates" in our index mapping and allow clients to search, sort, and "facet" on any field that is valid by the rules of the mapping.

The problem arises when facets are run on fields that do not exist in the data, and thus are not "actually" in the mapping.

Example : With a "dynamic_template" for "rating-*" fields, we can search, filter, and sort

(with "ignore_unmapped" = true), against a "rating-Tuna" field, even though there are no

documents in the index with that field.

See Gist https://gist.github.com/4568689 for a script that will quickly demonstrate the problem.
Issue 1:
From challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine

The format below is required and seems redundant:

Math.floor(Math.random() * (3 - 1 + 1)) + 1;

But shouldn't this work better as it is more succinct:

Math.floor((Math.random() * 3) + 1);

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine has an issue. Not precisely a bug, but I didn't know any other way how to report it. The point is, when boundaries are given, I think it's pointless requiring strict Math.random()*(max-min+1)+min, when you can insert certain values.