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

After upgrading to 4.0, the trigger state name evaluation has changed. For example, a boolean value true doesn't match to a state named "true", which used to work on v2.4. I'm not sure whether the previous or the current behavior is the planned/desired one, but in any case, my guess would be that this is a regression issue or an undocumented change happened. Additionally, truthy and falsy values such as 0 and 1 behave unexpectedly (see repro examples 3 and 4).

Expected behavior

Both string and truthy/falsy values should behave predictably when used as state trigger names. Particularly boolean values are often used for state, as shown on the first rest in the repro below; truthy and falsy values—on the other hand, perhaps—sit more subjectively in that equation.

Minimal reproduction of the problem with instructions

I've setup a few test cases of scenarios I felt were worth exploring to exemplify the issue. Strings behave reliably to maintain state, whereas booleans or otherwise truthy/falsy values behave unreliably.

http://plnkr.co/edit/12iB5WLvRxl3MkoxOpkk?p=preview

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

Although ensuring strings to match state is not a difficult thing to achieve, I think people might expect booleans particularly to match "true" and "false" state names.

Please tell us about your environment:

OX X 10.11, VScode, Yarn, Webpack Dev Server

Angular version: 4.0.0, resolving to es2015 modules

Browser: All

Language: TypeScript 2.2.1

Node (for AoT issues): node --version = v6.9.5

Issue 2:
In the section on NgModules, after introducing the shared module, the core module does not import the shared module and instead imports the CommonModule directly. The document provides no explanation and it seems some kind of anti-pattern. Is there any reason not to import the shared module into the core module?
Issue 1:
Would it be possible to enhance the Stepper component so that it can have only 1 step?

Currently, <Stepper> needs to have an array of children of <Step>. I have a use case where sometimes, only 1 step is needed.

So, i built a primitive workflow generator where the user can generate a custom workflow. While quite primitive, it is visual, so users like it. More importantly, this means no new budget needs to be spent on simple forms etc. this means the business likes it even more. A new form of any kind means budget someone has to pay for.

They basically want the exact same behaviour as the currently, but with only 1 step, because of this workflow generator. I have tried to explain to them this is not the use case it is build for. But they like the interface.

Unfortunately i did not realise that people would use it like they are. Clearly i'm the first tech person bitten in the arse by this. /sarc

Would be most appreciated.

Issue 2:
Description

React warns about a single child for Stepper, even though a single child works without issues.

Now, it may seem strange for a Stepper to only have one step, but I can explain this use-case.

Versions

Material-UI: 0.17.4

React: 15.5.4

Browser: Any, but Opera 57 is what I'm using

Images & references

The default view when a user visits the login page:

The view changes when they click the "Register" button:

I use a Stepper for the login view to keep consistency. Without it, the content would jump when the user switches to the registration view. It works, but it yields a warning in the console, which is simply not needed.

Warning: Failed prop type: Invalid prop children of type object supplied to Stepper, expected an array.
Issue 1:
E.g. if I want to de-duplicate tweets your friends are retweeting:

MATCH (friend) -[:retweeted]-> (tweet)
RETURN DISTINCT tweet

But still return who the first friend was to retweet that tweet (just like Twitter does).

This won't work:

MATCH (friend) -[retweet:retweeted]-> (tweet)
RETURN DISTINCT tweet, friend, retweet.time AS time
ORDER BY time

Because DISTINCT looks at the entire row, and every row will have a different tweet + friend combination. The result: you get duplicated tweets.

I can achieve today with this workaround involving aggregating and slicing:

MATCH (friend) -[retweet:retweeted]-> (tweet)
WITH tweet, friend, retweet.time AS time
ORDER BY time
RETURN tweet, HEAD(COLLECT(friend)) AS friend

That's pretty tedious and non-obvious. It'd be nice if I could simply specify which variables (columns) should be looked at for the DISTINCT instead of going through those hoops.

Strawman proposal: simply specify DISTINCT after variable names, to mean that only those variables should be de-duplicated.

MATCH (friend) -[retweet:retweeted]-> (tweet)
RETURN tweet DISTINCT, friend
ORDER BY retweet.time

Related: issue #1322. This is a great example: the suggested answer in that SO post actually won't work. Adding the time to the RETURN DISTINCT (so that you can ORDER BY it) will mean de-duplication no longer happens. Hopefully a fix here will fix that case too.

Issue 2:
In Cypher, there is currently no way to set an existing Node's labels to an explicit set of labels. The SET statement can be used to add labels to the set of labels for a Node, but there is no way to update all of the labels for an exiting Node. This is in contrast to Node properties where you can do SET n = {map_of_props} to set or update all properties of the Node. This makes it difficult to set the entire state of an existing Node (I consider both the properties and labels of the Node to be part of the state) in a single Cypher query.

In our application, all Nodes have a unique id property (a GUID) and we use MERGE queries with ON CREATE/ON MATCH to implement "in place" create-or-update logic on Nodes using a query similar to:

MERGE (n:Node {guid:theguid}) ON CREATE SET n:label1:label2:label3, n = {props_for_create} ON MATCH SET n:label4:label5, n = {props_for_update} RETURN n

This allows us to implement save logic without having to know whether the Node with the specified GUID exists (i.e., whether the operation is a create or update). The intent is that an existing Node would have its properties set to the properties in the props_for_upate map and the labels set to "label4", label5. However, this doesn't quite work because ON MATCH SET n:label4:label5 adds "label4" and "label5" to the Node rather than replacing the existing labels. For us to be able to implement the "update" part of the create-or-update logic efficiently, we need to be able to replace the entire state of the node including properties and labels.
Issue 1:

Issue 2:
🐛 Bug

It is advertised, that forward pass of JITed RNNs (e.g. GRU) is as fast as cuDNN implementation.

But it is not the case.

To Reproduce

Steps to reproduce the behavior:

See here: https://gist.github.com/usamec/af21be7b83e6b1a3f38c26136af811f3

Expected behavior

Forward pass is as fast as cuDNN.

Environment

Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.0

OS: Ubuntu 18.04.1 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 430.50
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.5.0

Versions of relevant libraries:
[pip3] numpy==1.15.0
[conda] _pytorch_select 0.2 gpu_0
[conda] blas 1.0 mkl
[conda] cudatoolkit 10.0.130 0
[conda] mkl 2019.4 243
[conda] mkl-service 2.3.0 py36he904b0f_0
[conda] mkl_fft 1.0.15 py36ha843d7b_0
[conda] mkl_random 1.1.0 py36hd6b4f25_0
[conda] numpy 1.18.1 py36h4f9e942_0
[conda] numpy-base 1.18.1 py36hde5b4d6_1
[conda] pytorch 1.4.0 py3.6_cuda10.0.130_cudnn7.6.3_0 pytorch
[conda] pytorch-qrnn 0.2.1 pypi_0 pypi
[conda] torch-scatter 1.4.0 pypi_0 pypi
[conda] torchvision 0.5.0 pypi_0 pypi

I am also getting same slowdown on GeForce RTX 2080 Ti

Additional context

Posted here first.

https://discuss.pytorch.org/t/jited-gru-too-slow/68873

Warm starting does not change much at all.

cc @ezyang @gchanan @zou3519 @suo
Issue 1:
Code Sample, a copy-pastable example if possible

# for example, index should be accepted, like so:
df.to_parquet( 'my_parquet_file.parquet', compression='gzip', index=False )

Problem description

[this should explain why the current behaviour is a problem and why the expected output is a better solution.]

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.4.final.0

python-bits: 64

OS: Linux

OS-release: 3.16.0-77-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0

pytest: 3.2.5

pip: 9.0.1

setuptools: 39.0.1

Cython: 0.28.1

numpy: 1.14.2

scipy: 0.19.1

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.7.2

patsy: 0.5.0

dateutil: 2.7.2

pytz: 2018.3

blosc: None

bottleneck: None

tables: None

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: 2.5.1

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: 4.2.1

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: 1.2.5

pymysql: None

psycopg2: 2.7.4 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: 0.1.4

pandas_gbq: None

pandas_datareader: None

Issue 2:
I'm using pandas 0.17.1

import pandas as pd
pd.__version__

Out:'0.17.1'

When column names are duplicated

cols = ['A', 'A', 'B']
with open('pandas.csv', 'w') as f:
f.write('1,2,3')

we can still load dataframe

pd.read_csv('pandas.csv',
header=None,
names=cols,
)

with explainable behaviour

Out:
A A B
0 2 2 3

Then we might want to load some of the columns with python engine

pd.read_csv('pandas.csv',
engine='python',
header=None,
names=cols,
usecols=cols
)

and get different but still explainable result

Out:
A B
0 1 3

But then we switch back to c-engine

pd.read_csv('pandas.csv',
engine='c',
header=None,
names=cols,
usecols=cols
)

and get the following

Out:
A A B
0 2 2 NaN

which is:

(a) different (which is not good in my opinion)

(b) looks like bug
Issue 1:
Glide Version: 4.4

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

java.lang.IllegalStateException: Already released
at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518)
at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217)
at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6247)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)

How can I catch this exception instead of letting it crash my app? Thanks.

Issue 2:
Hey,

I use Glide to download a GIF and insert it into PhotoView. Works fine, but I want to be able to save this GIF to my local storage. I have searched through issues over here, but none was viable for me.

I was trying to use this part of code to get this done:

override fun getDrawable() : Drawable? {
photoView.image.drawable?.apply {
return this
}
return null
}

override fun saveImage() {
val drawable = getDrawable()
if (drawable == null || !checkForWriteReadPermission()) {
return
}
if (drawable is BitmapDrawable) {
val bitmap = drawable.bitmap
val file = File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "wykopmobilny")
if (!file.exists()) file.mkdirs()

val pictureFile = File("""${file.absoluteFile}/${photoView.url.substringAfterLast('/')}""")
val fos = FileOutputStream(pictureFile)
bitmap.compress(Bitmap.CompressFormat.PNG, 90, fos)
fos.close()
addImageToGallery(pictureFile.absolutePath, context)
showToastMessage("Zapisano obraz")
}
else if (drawable is GifDrawable) {
val byteBuffer = drawable.buffer
val file = File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "wykopmobilny")
if (!file.exists()) file.mkdirs()
val gifFile = File("""${file.absoluteFile}/${photoView.url.substringAfterLast('/')}""")

val output = FileOutputStream(gifFile)
val bytes = ByteArray(byteBuffer.position())
byteBuffer.get(bytes)
output.write(bytes, 0, bytes.size)
output.close()
//val fileChannel = FileOutputStream(gifFile).channel
//fileChannel.write(byteBuffer)
//fileChannel.close()
showToastMessage("Zapisano GIFa")
}
}

and it actually creates a file, but it is broken and cannot be open. For example the file size is 4.19, but the GIF size when downloading was 4.59, so it looks like it is missing some part of it.

Glide version I use is 4.5 and the Widget is https://github.com/chrisbanes/PhotoView

PS. Saving static image works fine.
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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

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

Operating System version: Mac

Java version: 1.8

Steps to reproduce this issue

does the dubbo 2.7.3 version not support config qos port in the properties?

i set the configuration as follow:

dubbo.protocol.port=2345

dubbo.qos.enable=true

dubbo.qos.port=33333

dubbo.qos.accept.foreign.ip=false

it is not working, and i found the QosConstants class in the package org.apache.dubbo.qos.common; the default port is 22222, can not change.
Issue 1:
Challenge use-a-google-font has an issue.

Similarly to #13463, there are two versions of this challenge, one in Basic CSS (the original one) and one in Applied visual design (this one was added with the new curriculum).

Actually both have a good description, I think the best thing would be to merge the two challenges to have only one on the subject, rather than just deleting one.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery has an issue

The correct way to complete the code is:

$(".btn:nth-child(2)").addClass("animated bounce")

However, writing the code like this also marks the task as completed:

$(":nth-child(2)").addClass("animated bounce")

While the 2nd version is also technically correct, it does not necessarily answers the task.
Issue 1:
by maparent:

Tested on MacOS 10.6.2
Reproduce:
cd go/src
export LC_ALL=fr
./make.bash

error:
.../go/bin/quietgcc -ggdb -I"/Users/maparent/OpenSource/go"/include -O2
-fno-inline -c
".../go/src/cmd/gc"/y1.tab.c
.../go/src/cmd/gc/yerr.h:17: error: 'loadsys' undeclared here (not in a function)

echo $GOOS $GOARCH
darwin amd64

hg identify
52b6d624f245 tip

The problem is simply that bison -v -y -d go.y
uses locale-specific strings in y.output, which the awk script bisonerror does not
expect.
Solution: set the locale in the make.bash (and related) scripts.

Issue 2:
go version devel +4a839bf01b58 Tue May 20 15:52:08 2014 +1000 + linux/amd64

Build the attached program and run as:

export GOMAXPROCS=2
export GOGC=0
RES=`./0 2>&1`
OK=`echo $RES | grep "slice capacity smaller than length"`
if [ ! -z "$OK" -a "$OK" != " " ]; then
echo $RES
exit 1
fi

Once in a while it crashes as:

bad pointer in frame main.id9 at 0x7f369fadcbf8: 0x1
fatal error: bad pointer in scanbitvector

runtime stack:
runtime.throw(0x4b3d61)
src/pkg/runtime/panic.c:522 +0x69 fp=0x7f369faf0b20
scanbitvector(0x488790, 0x475b01, 0x7f369fadcbf8, 0x7f369faf0bd8, 0x409301,
0x7f369faf0dc8)
src/pkg/runtime/mgc0.c:1492 +0x38d fp=0x7f369faf0b88
scanframe(0x7f369faf0c48, 0x7f369faf0dc8)
src/pkg/runtime/mgc0.c:1618 +0x2d1 fp=0x7f369faf0c00
runtime.gentraceback(0x40f550, 0x7f369fadcb40, 0x0, 0xc208002120, 0x400000000000, 0x0,
0x7fffffff, 0x4099f0, 0x7f369faf0dc8, 0x0)
src/pkg/runtime/traceback_x86.c:206 +0x413 fp=0x7f369faf0cc8
addstackroots(0xc208002120, 0x7f369faf0dc8)
src/pkg/runtime/mgc0.c:1688 +0x168 fp=0x7f369faf0d58
markroot(0xc208016900, 0x5)
src/pkg/runtime/mgc0.c:1321 +0xbe fp=0x7f369faf0dd8
runtime.parfordo(0xc208016900)
src/pkg/runtime/parfor.c:103 +0x128 fp=0x7f369faf0e50
gc(0x7f369faecf78)
src/pkg/runtime/mgc0.c:2403 +0x1d6 fp=0x7f369faf0f80
mgc(0xc208002ea0)
src/pkg/runtime/mgc0.c:2345 +0x2e fp=0x7f369faf0f90
runtime.mcall(0x429be7)
src/pkg/runtime/asm_amd64.s:181 +0x4b fp=0x7f369faf0fa0
Issue 1:
It would be very useful to read a components static attributes (not bindings). This is probably a prerequisite for to #633. There are many use-cases for this.

Example use case: imitating native input api

Standard radio buttons are put into one single-input-can-be-checked group with the name attribute:

<label>
<input type="radio" name="instrument">
Guitar
</label>
<!-- some arbitrary html -->
<label>
<input type="radio" name="instrument">
Trombone
</label>

If a component author wants to support the same api on a custom radio button, the author needs to be able to read the name attribute. There's usually not a need, though, to create a binding on the property.

Issue 2:
Lines 1 and 2 should read

var AppComponent = ng.Component({

instead of

var AppComponent = ng ng.Component({

Running the former in Chrome 46.0.2490.71 gave me a Error during instantiation of Token Promise<ComponentRef>!. exception, the original exception being No Directive annotation found on [object Object]
Issue 1:
Version

2.5.16

Reproduction link

https://codepen.io/gamperl/pen/JZGMWK

Steps to reproduce

Run the provided JSFiddle

What is expected?

The component in the slot should be moved from the table to the div element. Or a new one is created and the old one is destoryed.

What is actually happening?

If a slot is moved from a table to a div using a v-if directive, the slot ist recreated. But before the new component is mounted, vuejs picks the wrong component to destroy: it destoyes the new component instead of the old one.

Issue 2:
Version

2.5.14+

Reproduction link

https://jsfiddle.net/cLdbL2t2/22/

Steps to reproduce

Clicking "update message" button adds dots after message.

Once "alter" button is clicked, the message is no longer updated.

What is expected?

Updating message continues working even after slot is altered.

What is actually happening?

Prop value stops being reactive, without error nor warning.

This behavior takes place after v2.5.14 including v2.5.17-beta.0.

Any version 2.5.13 and lower works as expected.

Unit test can be found in my github https://github.com/honeroku/vue-slot-investigate

I am understanding this is edge case and refactoring structure to avoid placing identical slot in conditional positions resolves my problem.

However, this behavior was not occurring in older versions and suddenly changed without error or warning,

so I am considering this is a bug and reporting to let you know.
Issue 1:
Hello,

I've came to notice that I have the following console log:

THREE.WebGLRenderer 84

I haven't found any issues, however, it is mandatory that this specific site does not have any console logs.

Is it possible to hide/disable this log?

I've noticed other issues where people have had the same log (suggesting the log is related to Chrome or graphics cards), although I haven't seen any solutions.

Thank you.

Issue 2:
I mean this:

https://github.com/mrdoob/three.js/blob/dev/src/materials/ShaderMaterial.js#L67

https://github.com/mrdoob/three.js/blob/dev/src/renderers/webgl/WebGLProgram.js#L221

vs

https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderChunk/lightmap_vertex.glsl
Issue 1:
Please allow setting custom analyzers that use the keyword tokenizer and safe token filters on keyword fields. This would be great so we can use doc_values for things like case-insensitive sorting and icu collation without needing to create pipelines.

This was originally discussed in #12394 and the last comment from @jpountz said this can be done in a future 5.x release. This issue is to keep track of this potential enhancement.

Issue 2:
Sometimes you want to analyze text to make it consistent when running aggregations on top of it.

For example, let's say I have a city field mapped as a keyword.

This field can contain San Francisco, SAN FRANCISCO, San francisco...

If I build a terms aggregation on top of it, I will end up with

San Francisco: 1
SAN FRANCISCO: 1
San francisco: 1

I'd like to be able to analyze this text before it gets indexed. Of course I could use a text field instead and set fielddata: true but that would not create doc values for this field.

I can imagine that we allow an analyzer at index time for this field.

We can restrict its usage if we wish and only allows analyzers which are using tokenizers like lowercase, keyword, path but I would let the user decide.

If we allow setting analyzer: simple for example, my aggregation will become:

san francisco: 3

Same applies for path tokenizer.

Let say I'm building a dir tree like:

/tmp/dir1/file1.txt
/tmp/dir1/file2.txt
/tmp/dir2/file3.txt
/tmp/dir2/file4.txt

Applying a path tokenizer would help me to generate an aggregation like:

/tmp/dir1: 2
/tmp/dir2: 2
/tmp: 4