WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The reduce function should, according to its docstring, "reduce the given collection with the given binary operator." I believe this is also what most programmers would expect a reduce function to do.

However, this is not always what it does. Some input types, e.g. Int32 are converted before the operator is applied. This can lead to unexpected results.

julia> my_op(a::Int32,b::Int32) = max(a,b)
my_op (generic function with 1 method)

julia> reduce(my_op, ones(Int32,42))
ERROR: MethodError: no method matching my_op(::Int64, ::Int64)
in mapreduce_impl(::Base.#identity, ::#my_op, ::Array{Int32,1}, ::Int64, ::Int64, ::Int64) at ./reduce.jl:101
in _mapreduce(::Base.#identity, ::#my_op, ::Base.LinearFast, ::Array{Int32,1}) at ./reduce.jl:168
in mapreduce(::Function, ::Function, ::Array{Int32,1}) at ./reduce.jl:175
in reduce(::Function, ::Array{Int32,1}) at ./reduce.jl:179

The exact same problem occurs with mapreduce(identity, my_op, ones(Int32,42)).

I realize that using an accumulator that is wider than the input could be beneficial in some special circumstances, such as if the sum function didn't exist and one wanted to create it using reduce(+, ...) without risking integer overflow. But in those cases one could supply a v0 argument of the desired return type (or there could be an optional accumulator_type argument).

Issue 2:
I'm running a code similar to following (data: https://homes.cs.washington.edu/~grechkin/bugreport1.jld)

using JLD

type A1
v1::String
v2::String
end
type B1
val::A1
tag::String
end

@load "bugreport1.jld" tmp_data2
Base.hash(x::A1) = hash((x.v1, x.v2))
Base.hash(x::B1) = hash((hash(x.tag), hash(x.val)))
import Base.==
==(x::B1, y::B1) = x.tag == y.tag && x.val.v1 == y.val.v1 && x.val.v2 == y.val.v2

@show tmp_data2 # 12 items in the array with last two duplicated

@show unique(tmp_data2[1:12]) # expect here that one of the last two entries will be removed

@show unique(tmp_data2[6:12]) # when I call it like this, last two items are actually deduplicated

# yet:
@show hash(tmp_data2[11]) == hash(tmp_data2[12]) # true
@show tmp_data2[11] == tmp_data2[12] # true

On Julia 0.5 and it looks like unique is not removing elements even though they are equal to each other and hash to the same value.
Issue 1:
I use console to generate new bundle.

Normally, default path for bundle was %root_dir%/src

But now new bundle in my case is saved in cache folder: app/cache/dev/src

I guess that problem is new added function removeAbsolutePathsFromContainer

Issue 2:
In 2.3.14, 2.3.15, and 2.4.5, when I run php app/console generate:bundle I get the following prompt:

Target directory [/home/intrepion/path/app/cache/dev/../src]:

But when I revert back to 2.3.13 or 2.4.4, I get exactly what I expect:

Target directory [/home/intrepion/path/src]:
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18995.1]
Windows Terminal version: source git at: #aa682bfd (origin/master, origin/HEAD) doc: update the path to profiles.json (#3087) [Dustin L. Howett (MSFT)]

Any other software? Ubuntu-18.04_LTS WSL 2

Steps to reproduce

Simply open terminal, then open a new tab using the profile:

"commandline" : "wsl.exe -d Ubuntu-18.04"

Then run $ ls on a directory that has a lot of files (or any command such that the screen displays more then the number of lines your terminal is able show at one time. It may take more than one time, but usually after a couple.

Expected behavior

There should be normal display lines without the shifting of a section of the entry/cursor line down by one line; it should display correctly, like with prior builds.

Actual behavior

At some point, adding lines to the buffer after listing files (or anything else), starting from where the cursor is at, the current line gets shifted down by one line. Then near the end of the line, the remainder of the line is displayed correctly.

Any typing is displayed on the line down and is initially treated as valid input by your shell, but soon, the input line starts being displayed twice, or characters don't show up correctly, and generally becomes visually and functionally almost impossible to use.

I've also confirmed that is not related to any particular shell, commands, or programs. It's how Terminal's display handling of the line that appears to be the problem (no pun intended ;-).

Images attached show this more clearly. The first is simple file listing from zsh. The second is an example in Vim that shows exactly where the shift occurs. The cursor is on the line number that is underlined, but insert characters display on the next line. And the status bar provides clear range of the shift.

It's not .vimrc or any configuration issue in any program or dotfiles, none of those have changed, and vanilla vim and/or nvim show it clearly as well.

Issue 2:
Environment

Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version: 0.5.2681.0
Powershell: 5.1

Steps to reproduce

Set color scheme for powershell profile to be One Half Dark or any of the other ones and then launch the powershell profile.

Expected behavior

The background of powershell profile should change, as you select different colorShemes in the profile.json

Actual behavior

No changes to the background color, the text colors do change but Powerhshell still remains blue
Issue 1:
Version

2.5.16

Reproduction link

https://jsfiddle.net/weituotian/k5hLxf1d/

Steps to reproduce

make sure the curPage in data is 1 or 2 or 3

click add transition

click change page

What is expected?

not all the transition of li disapper.

every time it should be one disapper.

What is actually happening?

the transition is Disappear. all of the li

This shows that vue replaces all elements instead of incremental updates.

if the curPage is 0,4,5, not all the transition of li wiil disapper

do not close my issue so easily.

i will close it myself if i find the appropriate answer.

Issue 2:
Version

2.6.10

Reproduction link

https://codesandbox.io/s/js-duixiangzhongdezhidushichangliang-u8lzg?fontsize=14

Steps to reproduce

Add a dynamic component with slots to tbody lable.

What is expected?

Do not pop up error messages in the console.

What is actually happening?

Although it works normally, an error is reported.
Issue 1:
It is currently quiet hard to test modifications within custom error pages. It involves the following steps:

Make the exception controller use the right template:

When in development mode the exception controller defaults to use a template called "exception_". In production it searches for "error_". So you either need to switch to production locally or rename your template temporarily. When switching to production locally Twig will start to cache the compiled templates. So you even need to clear the cache after each modification or deactivate caching in your Twig configuration. It is ugly anyway.

Trigger an exception

To actually see the error page, an exception has to be thrown. This might still be easy for 404 exceptions (http://localhost/app.php/there/is/no/page/here...), but is more difficult for other exception types (e.g. 403, 500).

Suggestion:

The exception controller should offer a way to make him use the "production" templates within development mode. This could be a configuration variable in TwigBundle.

We could offer routes for exception tests in development mode (e.g. /_exceptions-test/403). This routes would start a controller that just throws the specified exception.

It would be even nicer if calling the test route would implicitly switch to "production" templates without having to reconfigure TwigBundle.

I have already had a look into TwigBundle and could provide a PR if you like the idea.

Or am I overseeing something existing?

Issue 2:
When I'm viewing my site in production, I get to take advantage of the extremely useful error pages symfony provides. Unfortunately, this is clobbering my user-facing error pages.

It would be nice if somewhere in the ui of the default app_dev error page, a button was made available to re-render the request using the production error templates.

I'm going to clarify something ahead of time as I brought this up on IRC and some people struggled to understand the usefulness of this: Ideally I wouldn't have to re-enter the same URL in the address bar to view the production template. Reason being that I may not have directly navigated to the page I'm viewing. As a result, things like post variables or anything set server side are not guaranteed to be present.
Issue 1:
Let's assume we have an application with sessions with the following routes:

/1

/1/2

/1/2/3

/1/3

The first path, when called from a WebTestCase, will create a cookie in the local Client object with the path set to "/". Calling the second route will renew the cookie, setting its path to /1. The third will update the cookie's path to /1/2.

Now when I call the fourth route, the cookie is not available any more for that request, because it is set to another path (/1/2 instead of / or /1). The cookie will not be sent and therefore the application will create a new cookie. This breaks my test cases, obviously.

Please let me know if this is an error on my side, or if I can provide further information with this problem.

Issue 2:
I know it had been discussed a lot, but I thought the problem had been fixed.

I am writing functional tests that requires the session to stays the same between client requests. What is the recommended way to do so ?
Issue 1:
Description

The Table implementation does not support multiple tbody elements. According to the HTML specification multiple tbody elements are allowed (along with a footer for each) and can be used for grouping rows of data. This would allow more advanced features to be built using the material-ui Table Component and match the implementation of the React DOM and HTML specification.

Images & references

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table

https://www.w3.org/TR/xhtml1/dtds.html

<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>

Issue 2:
According to w3c, it is valid to have multiple <tbody>tags within a <table>, but this is currently not supported with material-ui's Table component.

I have a PR coming shortly to fix this.
Issue 1:
Hi,

im using Yaml Component in a project,

but when I dump a array into a YAML,

it returns something like this:

Yaml::dump()

test:
value: "1 \r\n 2 \r\n 3"

and I need something like this:

Yaml::dump()

test:
value: |
1
2
3

This is the original array:

Array(
"teste" => Array(
"value" => "1
2
3"
)
)

Its is possible?

Issue 2:
In a Controller, I have two actions :

/**
* @Route("/search", name="search_with_default", defaults={"p"=1})
*/
public function searchWithDefaultAction(Request $request)
{
return $this->render('default/index.html.twig');
}

/**
* @Route("/search", name="search_without_default")
*/
public function searchWithoutDefaultAction(Request $request)
{
return $this->render('default/index.html.twig');
}

In twig, I generate routes to these actions with an additional GET parameter 'p' :

{{ path('search_with_default',{'p':2}) }}<br/>
{{ path('search_without_default',{'p':2}) }}

Result :

/app_dev.php/search
/app_dev.php/search?p=2

The first one, totally ignore the value assigned on 'p'.

Bug reproduced here :

https://github.com/Alsatian67/symfony-standard

(index page shows the two paths)
Issue 1:
How about we add numbers to the challenges?

Problem: So many people come to the chat and say that they are stuck on XX-challenge, which actually does not tell helpers anything.

Solution: Add actual numbers to challenges ;)

Issue 2:
As per the umptieth I've just had this conversation on FB where people are confused/misled as to what that number next to their avatar picture represents.

The general conclusion seems to be we should add a more clear explanation of the brownie points. How each challenge gives you a point, but someone can have the same number after completing the same amount of challenges, even if they decide to start from back end. Also, how you get points by being said thanks to over gitter.

Perhaps adding some info in the onboarding challenges?
Issue 1:
Like Python, Julia's zip(a, b) ignores the tail end of its input sequences when they are of unequal length (but see #17928). I've yet to encounter a problem where I wanted that behavior, and I would much prefer seeing an error when the inputs are of unequal length. Are there applications where truncation is very convenient?

Issue 2:
julia> collect(zip([1,2,3],[1,2],[1,2,3]))
ERROR: DimensionMismatch("dimensions must match")
in promote_shape(::Tuple{Base.OneTo{Int64}}, ::Tuple{Base.OneTo{Int64}}) at ./operators.jl:401
in indices(::Base.Zip2{Array{Int64,1},Array{Int64,1}}) at ./iterator.jl:91
in _similar_for(::UnitRange{Int64}, ::Type{T}, ::Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}, ::Base.HasShape) at ./array.jl:260
in collect(::Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}) at ./array.jl:270

julia> for x in zip([1,2,3],[1,2],[1,2,3])
println(x)
end
(1,1,1)
(2,2,2)
Issue 1:
What problem does this feature solve?

you know sometimes you cant always use variable form filter when you want to Extract the abstract logic on filter

such like:

.item1

.item-count {{(item.shouldFilterValue[0] || 0) | item.filterName[0]}}

.item2

.item-count {{item.shouldFilterValue[1] || 0 | item.filterName[1]}}

.item3

.item-count {{item.shouldFilterValue[2] || 0 | item.filterName[2]}}

the code above is served as a basic child component,and its parent component will provide string form filter name like:

const normalRunItem = {

title: ['Km', 'Speed', 'Time'],

shouldFilterValue: [distance, pace, secondDuration],

filterName: ['calRunningDistance', 'formatRunPace']

}

const cyclingItem = {

title: ['Km', 'Km/h', 'Time'],

shouldFilterValue: [distance, [secondDuration, distance], secondDuration],

filterName: ['calCyclingDistance', 'calAverageSpeed']

}

const hikingItem = {

title: ['Km', 'Pace', 'Duration'],

shouldFilterValue: [distance, steps, secondDuration],

filterName: ['calCyclingDistance', '']

}

What does the proposed API look like?

support string form filter gonna be ok

Issue 2:
According to the document, the filterId would be parsed by using the text after | as the filterId. Is there possible to support use expression as the filterId. For example: we can use obj.filter as the filterId. vue can calc the expression, then use the result to be the filterId? Thx for your time:)
Issue 1:
I have first 9 taskbar items pinned for apps that I use the most. I really love the fast switching between apps using Win+1..9.

Also, I'm using different virtual desktops for different purposes (home x work).

For such setup, it would be really useful to have the possibility to organize pinned taskbar items per purpose of the desktop.

Issue 2:
I want to pin application to non-primary monitor taskbar.
Issue 1:
There is an abstract static method here, which causes an error.

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Tests/Mapping/Loader/AbstractMethodStaticLoader.php#L9

Issue 2:
I´m seeing loads of test failures and exceptions on the current master branch when running phpunit

php --version PHP 5.4.20 (cli) (built: Oct 10 2013 14:49:05) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

phpunit --version PHPUnit 3.7.28 by Sebastian Bergmann.

Tests: 11739, Assertions: 22421, Errors: 49, Incomplete: 1, Skipped: 1265.

The errors are a mixture of

session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/bin/phpunit:2) and [...]Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes)[...]

This is whats listed as a requirement for dev. Anything else I´m missing?
Issue 1:
When rendering the documentation to any standard library class with Chrome Version 44.0.2403.130 m (64-bit) - the latest release on Windows 10, the & character is obviously not rendered correctly, as demonstrated by this picture.

Is there any more information I can provide to help fix this issue?

Issue 2:
On my system, ampersands in the documentation are drawn incorrectly in Chrome: https://i.imgur.com/FmG93G5.png. I'm using Windows 7, 64-bit. This doesn't happen in Firefox.

I'm thinking this could be a bug in Chrome, but I haven't seen it on any other site. It seems to happen on any page generated with rustdoc. Ampersands in the examples aren't affected.
Issue 1:
I am using Webpack 2 beta21 in some setup where I am trying to combine System.import auto chunks + HMR + SSR React. I am currently struggle with how to use modules in es2015 module syntax (as suggested by module/jsnext:main entries). As far as I understand I have to transpile that code. But normally we do not transpile any code from node_modules, correct? So how can I do that "basic" transpilation that I have a non-module output from all these different sources?

Issue 2:
Bug report

What is the current behavior?

After running my command:

cross-env webpack --watch --mode development ./run/start.web.js

I get an error:

This dependency was not found:

* fs in ./node_modules/minio/dist/main/minio.js, ./node_modules/mkdirp/index.js

I tried:

node: {
fs: 'empty'
}

It does remove the error and succesfully launches the client

However it looks like the site is unresponsive and some controls are missing, like there is no javascript applied.

If I remove usage of file which uses minio (from error). Everything works just fine.

Webpack config:

const Dir = global.DIR;
export function loader() {
return {
jsx: {
use: {
query: {
presets: [['es2015', { modules: false }], 'stage-0', 'react'],
plugins: [
'transform-decorators-legacy',
'transform-class-properties',
'transform-runtime',
'babel-root-import',
'react-hot-loader/babel',
],
},
},
},
cssModules: {
use: [
'style-loader',
{
loader: 'css-loader',
options: {
localIdentName: '[name]__[local]___[hash:base64:5]',
modules: true,
sourceMap: true,
importLoaders: 1,
},
},
'postcss-loader',
],
},
};
}
export function config(entry) {
return {
devtool: 'cheap-module-eval-source-map',
entry: {
app: [
'babel-polyfill',
'isomorphic-fetch',
'whatwg-fetch',
'react-hot-loader/patch',
'webpack-hot-middleware/client',
// ['webpack-hot-middleware/client', webhost].join('?'),
path.join(Dir.src, entry, 'client'),
],
},
output: {
path: '/',
publicPath: '/',
filename: 'bundle.js',
},
plugins: [
new FriendlyErrorsWebpackPlugin({
clearConsole: true,
compilationSuccessInfo: {
messages: logServerConfigWebpack(entry),
},
}),
new BrowserSyncPlugin({
host: getenv('BROWSERSYNC_HOST'),
port: getenv('BROWSERSYNC_PORT'),
proxy: webhost(entry),
}, { reload: false }),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
],
};
}

webpack version: 4.14

Node.js version: 8.91

Operating System: Ubuntu
Issue 1:
tuple(DeviceArray) evaluates the DeviceArray (at least when using xla) and returns them as np arrays.

Example:

ar = jnp.ones(shape=3, dtype=jnp.float32) # type: jax.interpreters.xla.DeviceArray,
tuple(ar)

produces a tuple of numpy.float32: (1.0, 1.0, 1.0), while

tuple(ar[i] for i in range(ar.shape[0]))

produces a tuple of DeviceArrays.

It feels like tuple(ar) returning a tuple of DeviceArrays would make sense. Is there some drawback to this?

Furthermore, when jitting vs not-jitting the following:

def tuple_split(ar):
return tuple(ar)

I do get different return types like so:

print("orig:", tuple_split(jnp.ones(shape=3, dtype=jnp.float32)))
> orig: (1.0, 1.0, 1.0)
print("jit:", jit_tuple_split(jnp.ones(shape=3, dtype=jnp.float32)))
> jit: (DeviceArray(1., dtype=float32), DeviceArray(1., dtype=float32), DeviceArray(1., dtype=float32))

which I also didn't expect.

xla tuple implementation: https://github.com/google/jax/blob/master/jax/interpreters/xla.py#L1044

Issue 2:
Looping through a DeviceArray like in a list comprehension, for loop, or enumerate returns numpy.ndarray. Is this expected behaviour?

import jax.numpy as np

X = np.array(range(3)).reshape(3,1)
print(type(X))
#<class 'jax.interpreters.xla.DeviceArray'>

x0,x1,x2 = [xi for xi in X]
print(type(x0))
#<type 'numpy.ndarray'>

for xi in X:
print(type(xi))
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>

This is unexpected to me. Why are these not also DeviceArrays?
Issue 1:
Describe the bug

When connecting to the database, we use a connection string. What happens is when using an at ("@") inside the password, the db_engine object gets wrong password and host. This worked on the sqlalchemy version 1.4.9

Going into debug-mode and looking at the db_engine object below, I can see that the password has been split on the first at sign ("@"). What should actually happen is not splitting the password, but splitting on the last at sign in the string before the connection string.

TLDR:

First part of password with @ is used as password.

Second part of password after @ is then part of the host string.

@bjornamr and @Falkon353

To Reproduce

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine, Column, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

CONNECTION_STRING = "mssql+pymssql://username:firstpartpass@lastpartpass@localhost:1433/dev"

class User(Base):
__tablename__ = "user"

ssid = Column(String(256), primary_key=True, index=True)
Name = Column(String(256))

db_engine = create_engine(CONNECTION_STRING)
db_session = sessionmaker(bind=db_engine)
Base.metadata.create_all(bind=db_engine)

Error

Exception has occurred: OperationalError

(pymssql._pymssql.OperationalError) (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (YARge@CHN-CL-DEVSQL.MCHP-MAIN.COM)\n')

(Background on this error at: https://sqlalche.me/e/14/e3q8)

During handling of the above exception, another exception occurred:

The above exception was the direct cause of the following exception:

File "password_error.py", line 19, in

Base.metadata.create_all(bind=db_engine)

Versions

OS: Windows 10

Python: 3.8

SQLAlchemy: 1.4.22

Database: MS SQL 2019

DBAPI: pymssql version: 2.2.1

Additional context

No response

Issue 2:
Describe the bug

When a password contains a @ character. Sqlalchemy with a string url cannot connect to the database.

I greatly suspect that it was induced by #6482.

Was working fine in 1.4.15.

To Reproduce

url = (
"mssql+pyodbc://"
"SA:P@my_password@127.0.0.1:1433/master"
"?driver=ODBC Driver 17 for SQL Server"
)

Error

``

sqlalchemy.exc.OperationalError: (pyodbc.OperationalError) ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')

``

Versions.

OS:

Python: 3.8

SQLAlchemy: 1.4.17

Database: mssql

DBAPI: pyodbc

Have a nice day!
Issue 1:
We have made several changes to the window.open functionality to use the native blink/chromium code, but we are always working with embedded views so I'm looking for a little help to upstream this without breaking other use cases

Starting from brave/muon@6ee28c3 to brave/muon@9dc98b1

We are working on getting the remaining electron tests passing and I'm happy to create a pull request as the basis for this, but some help/feedback would be welcome. Thanks!

Issue 2:
when opening a new window using window.open, we currently get a BrowserWindowProxy that only support posting messages.

Some websites, webapps and libraries uses window.opener to access properties and objects of the opener window. Thoose are broken in Electron.

That's the case for example of Chromium devtools, that use window.open / window.opener in dockable/undockable mode.
Issue 1:
I tried to upgrade my application from Sf 2.4 to Sf 2.5 and I discovered a bug :

A service working with the "validator.initializer" tag, is not called anymore.

Service definition :

cpl.sitebundle.canonicalizer:

class: Cpl\SiteBundle\Validator\Canonicalizer

tags:

- { name: validator.initializer }

This service fill a "canonical" field on many entities before validations (same logic as FOSUserbundle "Name_canonical" field).

Thank you

Issue 2:
see: FriendsOfSymfony/FOSUserBundle#1511

The problem is solved by using the 2.4 validation api.