WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Webpack file watcher ignores changes in symlinked files if resolve > symlinks options is set to false.

If the current behavior is a bug, please provide the steps to reproduce.

I have created a minimal reproducible repo to test the issue:

go to ./project

do npm ci

then start local server by running npm run server

start Webpack file watcher by running npm run watch

change the file in ./package/Logger (you could try changing the message getter for example, this way the changes are easy to see)

What is the expected behavior?

The changes made in Logger module should appear on the page (e.g. Logger should append a different message). Instead Webpack doesn't re-build the Logger module.

I found a similar issue here.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Node.js version 12.19.0

Webpack version 5.10.3

Issue 2:
I'm submitting a bug report

passing an Array of paths causes a webpack validation error

Webpack version:

2.1.0-beta.25

Please tell us about your environment:

macOS Sierra

Current behavior:

passing an Array of paths outputs a WebpackOptionsValidationError

entry: [
'webpack/hot/dev-server',
`webpack-dev-server/client?http://127.0.0.1:${port}`,
'./src/js/script.js',
'./src/css/style.css',
'./src/index.html'
],

configuration.entry should be one of these:
object { <key>: string | [string] } | string | [string]

Expected/desired behavior:

passing an Array of strings should work? ([string])
Issue 1:
Environment

master at b9233c0 (I haven't sought for faulting commit though)

Windows version: 10.0.18362.388

Steps to reproduce

open wsl

open tmux/mc/htop/similar program

Expected behavior

Taken from v0.5.2762.0 release (commit 7faf334)

Actual behavior

Issue 2:
When you get to the end of a line in Terminal, it now disagrees with conhost as to where the next line goes.

Terminal:

aaaaaaaaaa|
|
aaaa |

Conhost:

aaaaaaaaaa|
aaaa |

Possible regression from #2924.
Issue 1:
Hi

My env is Linux 2.6.32 cuda 8.0 python 2.7. Install pytorch by pip install https://s3.amazonaws.com/pytorch/whl/cu80/torch-0.1.8.post1-cp27-none-linux_x86_64.whl

The installation is successful However I got the error by import torch.

Best Regards,

Issue 2:
on linux, python-2.7, cuda-7.5, installed using pip.

import torch it gives the error:

>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jingleng/.local/lib/python2.7/site-packages/torch/__init__.py", line 45, in <module>
from torch._C import *
ImportError: /home/jingleng/.local/lib/python2.7/site-packages/torch/_C.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
Issue 1:
Input Code

function Target(target){
var errMsg = '';
if (typeof target != 'object'){
errMsg = 'target error - target itself must be window object';
}
if(errMsg){
throw new Error(errMsg);
}
this.target = target;
}

// get iframe
var ifr = document.getElementsByTagName('iframe')[0];
// create messager target
var msg = new Target(ifr.contentWindow);

after babel transform

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

function Target(target) {
var errMsg = '';
if ((typeof target === 'undefined' ? 'undefined' : _typeof(target)) != 'object') {
errMsg = 'target error - target itself must be window object';
}
if (errMsg) {
throw new Error(errMsg);
}
this.target = target;
}

Current Behavior

when i use IE11.

SCRIPT5：Access is denied // iframe.contentWindow.constructor

Possible Solution

fixe helpers.typeof.

Your Environment

software
version(s)

Babel
6.10.4

node
6.10.0

npm
3.10.10

Operating System
macOS 10.12.4

Issue 2:
transform-es2015-typeof-symbol converts typeof foo to _typeof(foo) when typeof Symbol.iterator !== "symbol". _typeof is implemented as follows:

function(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}

That obj.constructor property lookup throws an error when it's applied to a cross-domain window object. For example, typeof window.frames[0] transpiles to _typeof(window.frames[0]) which ends up calling window.frames[0].constructor, which triggers a cross-domain permission error.

Input Code

typeof window.frames[0];

"use strict";

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

_typeof(window.frames[0]);

Babel Configuration (.babelrc, package.json, cli command)

{
"presets": [ "es2015" ]
}

Expected Behavior

_typeof should not try to access privileged properties on a cross-domain window object.

Current Behavior

_typeof tries to access privileged properties on a cross-domain window object.

Possible Solution

try/catch and fall-back to typeof?

Context

Broke the following addition to post-robot, which allows sending messages to remote windows. We validate the passed window using typeof to ensure it's at least an "object"

Your Environment

software
version

Babel
6

node
4

npm
3

Operating System
Windows 7 / IE9-11
Issue 1:
Same as issue #11615

The glyphicon-th-list icon looks strange when in a button of normal size.

Please, check here: http://jsfiddle.net/2bxapnts/

Bootstrap version: 3.2.0

Can be reproduced on: Chrome, Firefox and IE (Windows 8)

In case it's significant, the default font size in my browser is 16px.

After playing around with the chrome console, it looks like it's not just the fact that it is in a button but that this particular icon, when in font-size 14px (which is the font size in a normal button), looks different (with other font sizes, it looks normal).

Strangely, on my tablet and also on my phone, the icon looks correct.

I also tried on a Virtual machine with windows 7 and the issue can be reproduced there.

It looks like it's Windows related but I cannot find the reason.

Issue 2:
There are some false displayed glyphicons

http://jsfiddle.net/sn8h2/
Issue 1:
Hi,

Date form type could provide support for partial dates (eg. allow for "yyyy-MM" format), even if limited to inputs type "array" or "string" on such cases

cheers

Issue 2:
DateField should support formats that don't contain the letters "y", "M" or "d" in order to select partial dates (e.g. months). The default values of the fields, when left away, should be the corresponding parts of the UNIX base timestamp 1970-01-01.

Example:

$builder->add('expires_at', 'date', array(
'format' => 'MMyyyy',
));

A date submitted here will always have day "1", e.g. "2013-02-01".

Further related work:

TimeType currently supports the "with__" options for achieving this functionality (including or excluding single parts of the time). We should think about deprecating the "with__" options and supporting a "format" option instead, if this improves consistency.
Issue 1:
from #5895:

"

After discussion with @Crell, we agreed that the RequestContext is a burden in reusing the routing component. That's because it only duplicates information of the Request and is not really useful without it anyway. Since we probably cannot remove it fully as it would be a big BC break, my idea is to make it optional. So the symfony generator and matcher both work with a RequestContext and a Request. I removed the RequestContextAwareInterface from the interfaces so a custom router does not need a RequestContext anymore. The default symfony generator/matcher still implements RequestContextAwareInterface but can also work with a Request. So UrlMatcher::match(Request) is now also possible. And the generator can use UrlGenerator::setRequest() instead of setContext().

I think it makes the routing more useable in symfony and more reusable for other libraries.

And it will probably make it easier to integrate content negotiation as matching a request directly with all it's metadata (like Accept header) is now possible.

One more point: symfony allowed to use matching a Request with #4363. But it's not integrated in symfony as symfonys router does not use it at all. And the important interfaces like the RouterInterface required the RequestContext anyway. So there was no way to use Request matching without RequestContext. This PR replaces the other extension point.

The only bc break is in terms of interfaces. People should be aware that RequestContextAwareInterface is not part of UrlGeneratorInterface/UrlMatcherInterface/RouterInterface anymore. And the RequestMatcherInterface was changed.

"

Issue 2:
Hi,

I use a collection type with prototype = true to add/remove items.

It works pretty fine but I got a notice error when I add a new item and I save the whole form :

Notice: Undefined index: 2 .../PropertyPath.php on line 283

This index is the index of the added item. I fixed this notice by addding a test in the readProperty() method (line 283) as $object should be an ArrayAccess:

if ($object->offsetExists($property)) {
return $object[$property];
}

I don't get any side effects for the moment.

Note: I'm using Propel.

The PropelCollection implements ArrayAccess so I don't know why I get this notice (which only appears when I add a new item).

Regards,

William.
Issue 1:
I have the following code for a convolutional layer. This layer is part a larger computational graph.

# Define the shape of the filter
filter_shape = [1,
config.char_filter_size,
config.dim_char,
config.dim_char]

# Define the convolutional layer weights and biases
W_conv = tf.Variable(tf.truncated_normal(filter_shape, stddev=0.1),
name="W_conv")
b_conv = tf.Variable(tf.constant(0.1, shape=[config.dim_char]),
name="b_conv")
# Do 2d convolution
conv = tf.nn.conv2d(char_embeddings,
W_conv,
strides=[1, 1, 1, 1],
padding="VALID",
name="conv")
# Apply nonlinearity
# h_conv has the same shape as conv
h_conv = tf.nn.relu(tf.nn.bias_add(conv, b_conv),
name="conv_relu")
# Maxpooling h_conv over dim 2 (char dim)

# ERROR HERE
conv_pooled = tf.nn.max_pool(h_conv,
ksize=[1, 1, tf.shape(h_conv)[-2], 1],
strides=[1, 1, 1, 1],
padding='VALID',
name="conv_max_pool")

When trying to run, I get the error:

TypeError: Expected int for argument 'ksize' not tf.Tensor shape=() dtype=int32.

is tf.nn.max_pool unable to handle dynamic ksize?

Issue 2:
I am trying to build a convolution (followed by max_pool) for variable length input size. Since the length of the input in a batch should be the same, I set the batch size to 1. However, for some reason ksize in tf.nn.max_pool is a list attribute required at run-time. This would prevent any neural network that uses variable input size to apply max pool. Is there a workaround for this? Should ksize be an input tensor otherwise?
Issue 1:
From @minac on 2016-07-22T15:22:54Z

ISSUE TYPE

Bug Report

COMPONENT NAME

meta

ANSIBLE VERSION

enansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

Ansible installed via pip and not git.

CONFIGURATION

[defaults]

gathering = explicit

host_key_checking = False

callback_whitelist = profile_tasks

remote_user = ec2-user

private_key_file = /Users/migueldavid/.ssh/aws-vigie.pem

ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}

display_skipped_hosts = False

command_warnings = True

retry_files_enabled = False

squash_actions = apk,apt,dnf,package,pacman,pkgng,yum,zypper

OS / ENVIRONMENT

Mac OS X El Capitan

SUMMARY

"meta: refresh_inventory" task fails when set as handler with "The module meta was not found in configured module paths"

STEPS TO REPRODUCE

tasks.yml

- name: Add listener instances to all inventory
add_host: name={{ item.public_ip }} groups=all
with_items:
- "{{ ec2_listener.instances }}"
notify: Refresh inventory

handler.yml

- name: Refresh inventory
meta: refresh_inventory

EXPECTED RESULTS

That the play would refresh the inventory and continue.

ACTUAL RESULTS

RUNNING HANDLER [myplaybook : Refresh inventory] ************
Friday 22 July 2016 15:57:25 +0100 (0:00:31.448) 0:05:22.537 ***********
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The module meta was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem."}

Copied from original issue: ansible/ansible-modules-core#4240

Issue 2:
SUMMARY

meta: reset_connection is failing

ISSUE TYPE

Bug Report

COMPONENT NAME

meta

ANSIBLE VERSION

2.7.2

CONFIGURATION

OS / ENVIRONMENT

ubuntu 14.04 on controller

STEPS TO REPRODUCE

handlers:

- name: Reset
meta: reset_connection

tasks:

- shell: echo "test"
notify: "Reset"

Note that with a simple task it doesn't output anything:

tasks:

- name: Reset
meta: reset_connection

Nothing is shown

EXPECTED RESULTS

It should say "success" or "changed"

ACTUAL RESULTS

It fails. Also not sure it actually reset the connection or not

Result => "connection closed" but it's a failure (in red) so it can break playbooks when "stop as first error" parameter is set up
Issue 1:
while i can easily fix this in my code, this seems a bug, What happens is that this leaves Object.items as an empty list, whatever it was before. It happens in "sqlalchemy\orm\collections.py" on lines 1157-1163:

if step == 1:
for i in range(start, stop, step):
if len(self) > start:
del self[start]

for i, item in enumerate(value):
self.insert(i + start, item)

Basically if self is the same InstrumentedList as value, then 'del self[start]' also removes value[start], leaving an empty list to be inserted. This would (unverified) also go wrong with any other slice, as long as self and value are the same object.

This is not the same behavior is in python itself:

L = [1,2,3]

L[:] = L

print(L)

Issue 2:
Migrated issue, originally created by Anonymous

Hi,

Imagine the following test-case:

A
| \
B C
|
D

so A is the "root" mapper, B and C inherit from A and D inherits from B (B is a kind of "virtual" class/table), in SQLAlchemy I have something like (not sure for mapper_B):

mapper_A = mapper(A, table_a, polymorphic_on=table_a.c.type_id)
mapper_C = mapper(C, table_c, inherits=A, polymorphic_identity='c')
mapper_B = mapper(B, table_b, inherits=A)
mapper_D = mapper(D, table_d, inherits=B, polymorphic_identity='d')

A.query.with_polymorphic(D) works as expected

A.query.with_polymorphic(B) doesn't work because the tables are joined in the wrong order (ProgrammingError: (ProgrammingError) missing FROM-clause entry for table b). I think SQLAlchemy should detect that.

A.query.with_polymorphic(D) doesn't work because of a missing table (ProgrammingError: (ProgrammingError) missing FROM-clause entry for table b).

It would be fantastic if we could do something like:

A.query.with_polymorphic(E, F, G, ...) regardless of the order of tables/inheritance ...

Now I'm using .iterate_to_root() to bypass that, but it's a little "hackish" because I have to do it for each mapped object .. and merge the whole thing at the end :(

Thanks,

Julien
Issue 1:
Argsort does not return indices that sort the input array

Reproducing code example:

import numpy as np
x = np.array([ 3 ,1, 2])
np.argsort(x)

The output is array([1, 2, 0]). Shouldn't it be [2,0,1]

NumPy/Python version information:

v1.21

Issue 2:
The argsort function seems to be broken. Looking at the code provided, the argsort for rows [0, 1] is correct but it's messed up for rows [2, 3].

I tested this on different NumPy installations and versions 1.11.0 and 1.12.0

import numpy as np

vec = np.array([
[-1.4, -1.2, 1.3],
[-3.6, 3.9, -3.7],
[-2.3, 1.5, -2. ],
[-2.6, 2.4, -1.6]
])

In [1]: np.argsort(-vec, axis=1)
Out[1]:
array([[2, 1, 0],
[1, 0, 2],
[1, 2, 0],
[1, 2, 0]])
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.6.4

Operating System version: Mac OS/X

Java version: 1.8

Steps to reproduce this issue

checkout dubbo 2.6.2, see as below in the ServiceConfig.java

checkout dubbo 2.6.4,

which one is correct for aboves?

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

Expected Result

I think correct result is looks like version 2.6.2

Actual Result

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

Just put your stack trace here!

Issue 2:
Environment

Dubbo version: 2.6.3

Operating System version: win

Java version: 1.8.0_73

Steps to reproduce this issue

starting provider

Expected Result

regist 2.6.3 version

Actual Result

the actual regiser url is: dubbo://XXXX?dubbo=2.0.2 ...

备注

当provider注册service时，注册url中传的dubbo 版本号不正确，在注册中心里看到的版本号也不对，传了错误的2.0.2
Issue 1:
Migrated issue, originally created by Anonymous

table.c.name.startswith( table.c.alias) currently fails:

File "/usr/lib/python2.4/site-packages/sqlalchemy/sql.py", line 568, in endswith

return self._compare('LIKE', "%" + other)

TypeError: cannot concatenate 'str' and 'Column' objects

here a possible patch.

Attachments: colexpr.py | like-endswith-startwith-in.tbz | like-endswith-startwith.py | like-endswith-startwith-in.py | literal4starts-ends-with.4.diff | literal4starts-ends-with-in.diff | literal4starts-ends-with.2.diff | literal4starts-ends-with.diff | literal4starts-ends-with.3.diff

Issue 2:
Migrated issue, originally created by Jack Zhou (@univerio)

When using the ON DUPLICATE KEY UPDATE support for MySQL, the .values() generative function is not available, contrary to the claims made by the documentation.

Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "kronos/__main__.py", line 97, in <module>
cli()
File "/home/ashu/Documents/kronos/venv/lib/python3.5/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/ashu/Documents/kronos/venv/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "kronos/__main__.py", line 31, in invoke
return super(CLI, self).invoke(ctx)
File "/home/ashu/Documents/kronos/venv/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ashu/Documents/kronos/venv/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ashu/Documents/kronos/venv/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/ashu/Documents/kronos/scripts/gilmore_from_scratch.py", line 46, in gilmore_from_scratch
stmt = insert(GilmoreItem.__table__).values(**to_insert)
TypeError: 'ImmutableColumnCollection' object is not callable

It appears to be shadowed by the .values property intended to support the VALUES(...) construct. Perhaps the column collection could be named values_ instead?

The workaround is to specify values with the insert constructor:

stmt = insert(GilmoreItem.__table__, values=to_insert)
Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

Go to https://codepen.io/anon/pen/qjpBzw (this is a modified version of the 'Controlled Components' docmentation page to put the chars in upper case)

Type 'a' into the input, you get 'A'

Then type 'b', you get 'AAB'

What is the expected behavior?

We should have 'AB'

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

The CodePen uses React@15.6.1, and the bug only occurs with Firefox mobile (not with the desktop version). I tested with FF53 and 54

The bug only occurs because i change the case.

Issue 2:
With server-side rendering (SSR), after page reload, input element preserves its content but useState clears its state.

The value of input element (in DOM, visible to user) and internal state are different in this situation.

In the view of user, application looks inconsistent.

I searched Internet for the issue but couldn't find someone who mentioned this. Sorry if duplicated.

React version: 17.0.2

Steps To Reproduce

Basically this code reproduces, but a server for SSR is necessary.

This application provides an input box and a button.

When the button is clicked, it opens a dialog to show the current value of the input box.

const React = require("react")
const ReactDOM = require("react-dom")

const App = () => {
const [value, setValue] = React.useState("")
return (
<form>
<input type="text" value={value} onChange={ev => setValue(ev.target.value)} />
<button type="button" onClick={() => window.alert(value)}>Show value</button>
<button type="button" onClick={() => document.location.reload()}>Reload</button>
</form>
)
}

ReactDOM.hydrate((<App />), document.getElementById("container"))

Full project: react-repro.zip

How to reproduce

Download and unzip it somewhere. Start a server like this:

npm ci
npm run build && npm run start # listening to localhost:8080

And then visit http://localhost:8080 on browser:

Put some text in the input box

Click "Reload" button. (Page will be reloaded but the input preserves its value.)

Click "Show value". A dialog opens with no content (empty string), which indicates a mismatch between value from useState and DOM state.

Link to code example:

(Sorry, I tried but couldn't make a reproduction. Reloading refreshes the input content in code example environment.)

The current behavior

"Show value" button can show incorrect value.

The expected behavior

"Show value" button should show the same value as the input shows. (For example, make sure that input value is cleared after reload.)
Issue 1:
Not sure if this is intentional, but it's different behaviour from v0.6.2:

julia> AbstractArray(randn(10,10))
ERROR: MethodError: no method matching AbstractArray(::Array{Float64,2})
Closest candidates are:
AbstractArray(::Any) where T<:AbstractArray at abstractarray.jl:22
AbstractArray(::Union{QR, LinearAlgebra.QRCompactWY}) at /Users/solver/Projects/julia7/usr/share/julia/site/v0.7/LinearAlgebra/src/qr.jl:427
AbstractArray(::QRPivoted) at /Users/solver/Projects/julia7/usr/share/julia/site/v0.7/LinearAlgebra/src/qr.jl:434
...
Stacktrace:
[1] AbstractArray(::Array{Float64,2}) at ./abstractarray.jl:22
[2] top-level scope

AbstractArray{Float64}(randn(10,10)) works as expected, without error.

Issue 2:
Openlibm offers some benefits over fdlibm:

Forked from FreeBSD, and includes a number of fixes

Includes assembly versions of various routines

No need to mix routines from libm and fdlibm for performance as is done currently

It is already used in the Windows version, and can be made default for mac and linux.