WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Eberhard Wolff opened SPR-3245 and commented

AbstractJpaTest leads to an StackOverflowError if used with Maven.

childDelegationMode true did not help

forkMode perTest did not help

error is present if using mvn test or running the test from inside Eclipse

Battery: base.BestellungMitJPATest

Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,772 sec

testNothing(base.BestellungMitJPATest) Time elapsed: 2,726 sec <<< ERROR!

[ stdout ] ---------------------------------------------------------------

[ stderr ] ---------------------------------------------------------------

[ stacktrace ] -----------------------------------------------------------

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entity

ManagerFactory' defined in class path resource [jpa-beans.xml]: Invocation of init method fail

ed; nested exception is java.lang.StackOverflowError

Caused by: java.lang.StackOverflowError

at java.lang.Character.toLowerCase(Character.java:4204)

at java.lang.Character.toLowerCase(Character.java:4171)

at java.lang.String.toLowerCase(String.java:2219)

at java.lang.String.toLowerCase(String.java:2296)

at org.apache.xerces.util.URI.setScheme(URI.java:908)

at org.apache.xerces.util.URI.initializeScheme(URI.java:576)

at org.apache.xerces.util.URI.initialize(URI.java:400)

at org.apache.xerces.util.URI.<init>(URI.java:211)

at org.apache.xerces.util.URI.<init>(URI.java:195)

at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)

at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)

at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:

625)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:580)

at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:588)

at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:588)

Affects: 2.0.2

Attachments:

MavenJpaTestsBug.zip (14.25 kB)

Issue Links:

#7923 AbstractJpaTests and Maven ("duplicates")

#7923 AbstractJpaTests and Maven ("is duplicated by")

Issue 2:
Maarten Bosteels opened SPR-796 and commented

Would be nice if LobHandler supported specifying the column by name.

The implementation is of course trivial (and attached).

Affects: 1.1.5

Attachments:

DefaultLobHandler.java (5.71 kB)

LobHandler.java (8.20 kB)

OracleLobHandler.java (16.97 kB)
Issue 1:
Describe the workflow you want to enable

I think it would be awesome if the RF regressor returns the standard deviation (not only the mean) of the output of the different trees.

Describe your proposed solution

This is not a definite option, but contains the core idea:

from sklearn.ensemble import RandomForestRegressor
import numpy as np

class RandomForestWithUncertainty:

def __init__(self,**args):

self.model = RandomForestRegressor(**args)

def predict(self, X, return_std = False):

pred = np.array([tree.predict(X) for tree in self.model]).T
pred_mean = np.mean(pred, axis=1)

if return_std:

pred_var = (pred - pred_mean.reshape(-1,1))**2
pred_std = np.sqrt(np.mean(pred_var, axis=1))
return pred_mean, pred_std

else:
return pred_mean

Describe alternatives you've considered, if relevant

No response

Additional context

This is useful if we want to use the RF in algorithms that require uncertainties estimatios, such as Bayesian Optimization.

Issue 2:
It would be nice if we could do:

rf = RandomForestRegressor()
rf.fit(X, y)
y_mean, y_var = rf.predict(X, ret_variance=True)

Same for BaggingRegressor.
Issue 1:
from @dhirschfeld

I just ran across the bug described in issue #3020 (#3020) as our unit-tests started failing after upgrading pandas.

I did a git bisection and found the first bad commit to be 9deda9e:

9deda9e687915017cc9db7698504ead1f89ead9e is the first bad commit
commit 9deda9e687915017cc9db7698504ead1f89ead9e
Author: Chang She
Date: Sun Dec 2 02:21:10 2012 -0500

API: change resample to infer correct closed and label value by default #2363

:040000 040000 3abca1d3eb70bcd6ade31581acc4684a3035b81e 4cdeae975685b996ef2f41c738ca70bfd41ca583 M pandas

I think this is a fairly serious regression as (apart from causing our unit-tests to fail) it will silently give incorrect answers for an aggregation if the data has been resampled beforehand.

The following unit-test demonstrates the problem:

def test_resample_doesnt_truncate():

"""Test for issue #3020"""

import pandas as pd

dates = pd.date_range('01-Jan-2014','05-Jan-2014', freq='D')

series = pd.TimeSeries(1, index=dates)

series = series.resample('D')

assert series.index[0] == dates[0]

Issue 2:
When resampling from a TimeSeries with freq='MS' to freq='D' the TimeSeries is shifted forward by one day, skipping the first element:

In [64]: dates = pd.date_range('01-Apr-13','01-May-13',freq='MS')

In [65]: ts = pd.TimeSeries([1,2],dates)

In [66]: ts
Out[66]:
2013-04-01 1
2013-05-01 2
Freq: MS

In [67]: ts.resample('d',closed='left',label='left')
Out[67]:
2013-04-02 NaN
2013-04-03 NaN
2013-04-04 NaN
2013-04-05 NaN
2013-04-06 NaN
2013-04-07 NaN
2013-04-08 NaN
2013-04-09 NaN
2013-04-10 NaN
2013-04-11 NaN
2013-04-12 NaN
2013-04-13 NaN
2013-04-14 NaN
2013-04-15 NaN
2013-04-16 NaN
2013-04-17 NaN
2013-04-18 NaN
2013-04-19 NaN
2013-04-20 NaN
2013-04-21 NaN
2013-04-22 NaN
2013-04-23 NaN
2013-04-24 NaN
2013-04-25 NaN
2013-04-26 NaN
2013-04-27 NaN
2013-04-28 NaN
2013-04-29 NaN
2013-04-30 NaN
2013-05-01 2
2013-05-02 NaN
Freq: D
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work has an issue.

The way the last two directions are written is very confusing:

Add $(document.ready(function() { to the beginning of your script element.)

Close your $(document.ready(function() { function with });.)

It took me awhile (maybe I was just being slow today) to realize that you don't need to repeat the script element: $(document.ready(function() { }

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-mutations has an issue.

The example from the task says:

['Mary', 'Aarmy'] should return false because 'Mary' is only 4 letters while 'Aarmy' is 5, so 'Mary' can't possibly contain 'Aarmy'.

Consider this example: ['Mary', 'Maary']. 'Maary' has 5 letters, but 'Mary' contains all the letters from it.

I think, we should:

or remove ['Mary', 'Aarmy'] example from the description

or just set a condition: length of the first string >= length of the second string
Issue 1:
Issue Type:

Feature Idea

Ansible Version:

ansible 1.5.4

Environment:

Debian 7

Summary:

Ability to use useradd's -o flag "allow to create users with duplicate (non-unique) UID"

Steps To Reproduce:

not possible

Expected Results:

This is useful if you want to create an ftp account with same permissions as another user but chroot (with for example proftp's chroot ~ ) its home dir to a directory further down the tree, thus locking it out from alot of the main users directories but still have write access to its own home dir. (as both users share uid/gid both have write access)

Actual Results:

not possible

Issue 2:
The recommended directory layout from the documentation (http://docs.ansible.com/ansible/playbooks_best_practices.html#directory-layout) indicates putting all playbooks at the top level, alongside inventory files. This can get really messy in a large project.

We put all configuration in roles. Playbooks are basically mappings of a set of roles to a set of inventory. I believe that is best-practice to make roles reusable.

In earlier Ansible versions (~ year ago?) it was possible to put playbooks in a subfolder and run them from the top folder (where inventory files are). Somewhere along the line that became impossible, because playbooks in a subfolder cannot see roles and group var files, in such case.

Can we please get support for playbooks in subfolder? Why is that not a recommended best-practice in the documentation?
Issue 1:
Hi,

I am using the following java code to create instance of ElasticSearch instance and create a index called "testindex".

Node node = NodeBuilder.nodeBuilder().settings(ImmutableSettings.settingsBuilder()
.put("path.data", "/etc/elasticsearch")
.put("cluster.name", "testcluster"))
.node();
Client client = node.client();
IndicesAdminClient indices = client.admin().indices();
IndicesExistsResponse res = indices.prepareExists("testindex").execute().actionGet();
if(!res.isExists()){ //Everytime getting value as false
CreateIndexRequestBuilder createIndexRequestBuilder = indices.prepareCreate("testindex");
createIndexRequestBuilder.execute().actionGet(); // Erring out with IndexAlreadyExistsException
}

Before creating the index I am checking whether index exists or not, I only create the index if it exists.

Second time when I am running the above code, it fails with IndexAlreadyExistsException.

It seems like the IndicesExistsResponse.isExists() is not behaving correctly.

Above code works fine if default elasticsearch.yml file is present in the classpath.

Issue 2:
I have a problem with the embedded Java client (for testing) after moving our our Java integration library from 1.0 to 1.4.0.Beta. We use the Java client embedded.

During application restart, we check if an index exists and create or update it. Now we have the problem, that indices exists returns false, causing create index to fail.

I tried IRC for a solution but @karmi thought it's supposedly a bug.

(test case to follow)
Issue 1:
I am trying for the life of me to get one of the more efficient source map option working.

When I use any source-map oriented devtool setting, if I try and set a breakpoint in Chrome 48.0.2564.82, it jumps to a different line that what I selected.

If I use eval-source-map not only do I get the line number jump, but I also never get a break point stop even on the line it jumped to.

Issue 2:
I'm submitting a bug report

Webpack version:

1.10.x

Please tell us about your environment:

OSX 10.x

Current behavior:

A module is evaluated twice.

Expected/desired behavior:

This should not happen by default. It really goes against the ES6 module contract.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.

Using the DedupePlugin does not solve the issue (I tried and verified). No repro yet, but I have a file that starts with the following, and as you can see it has a console.log at the top level:

// infamous/motor/Node.js
import 'geometry-interfaces'
import Motor from './Motor'
import MotorHTMLNode from '../motor-html/node'

console.log(' -- Node module ?????!')

Multiple modules in the app import that file, and the console.log statement is fired twice, as seen in the output:

What is the expected behavior?

The -- Node module ?????! output should only appear once.

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

If this isn't a bug, then to follow the spec, making modules easier to reason about and less error-prone. Problems can happen when data structures are expected to be singletons.

Browser: not applicable

Language: ES6/7 via Babel
Issue 1:
MWE:

julia> g(::Ref{Union{Int, Other}}) where {Other} = Other
g (generic function with 1 method)

julia> g(Ref{Union{Int, Float64}}(1))
Float64

julia> g(Ref{Union{Int, Array}}(1))
ERROR: MethodError: no method matching g(::Base.RefValue{Union{Int64, Array}})
Closest candidates are:
g(::Ref{Union{Int64, Other}}) where Other at REPL[3]:1
Stacktrace:
[1] top-level scope at REPL[5]:1

julia> versioninfo()
Julia Version 1.5.2
Commit 539f3ce943* (2020-09-23 23:17 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen 5 2600 Six-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
Environment:
JULIA_NUM_THREADS = 6

Seems like a bug with UnionAll to me.

Originally posted by @MasonProtter in #37790 (comment)

Issue 2:
This might be a duplicate of #36377, not sure.

Suppose I want to make a type

struct Foo{I <: Integer}
v::Vector{Complex{I}}
end

Now, at runtime, I have a vector of integer Complex, but I don't know which integer type, so I can just make an abstractly typed array:

julia> v = Complex{<:Integer}[Complex{Int}(1, 1)]
1-element Array{Complex{var"#s16"} where var"#s16"<:Integer,1}:
1 + 1im

But now, how do I wrap v in a Foo?

julia> Foo{<:Integer}(v)
ERROR: MethodError: no method matching Foo{var"#s12"} where var"#s12"<:Integer(::Array{Complex{var"#s16"} where var"#s16"<:Integer,1})

One workaround is to instead define

struct Foo{C <: Complex{<:Integer}}
v::Vector{C}
end

But I think having Complex as part of Foo's signature is unnecessary. Would it be possible to enable the "direct" use of <:Integer in this case?
Issue 1:
Electron version: 1.7.9

Operating system: Windows

Expected behavior

The datalist element should let the user to select a predefined value from a drop-down list for input elements.

Actual behavior

After selecting a value from drop-down list, that value is displayed in the input field, but the "value" property of that input element is an empty string instead of the selected value.

How to reproduce

Using the below code snippet. The input element's value will be displayed as the window title.

<input id="test-field" type="text" list="test-list" />

<datalist id="test-list">
<option value = "Car" />
<option value = "Bike" />
<option value = "Truck" />
</datalist>

<script>
document.getElementById("test-field").addEventListener("input", (e) => {
document.title = "Value is: " + e.target.value;
});
</script>

Issue 2:
Electron version: 1.7.3 beta

Operating system: Windows 7 x86_64 Professional

Clicking the pyramid icon on an input control associated with a data list and picking a value from the list, then evaluating value property of the input control, the value is expected to match the text chosen from the data list, which the input control is now showing.

Instead, the text returned by value property is an empty string, or at least the string that was manually typed into the input control prior.

Only manual editing of value of the input control, as you would with an ordinary text input without a n associated datalist, causes the value property to yield the same text that the input control is showing.

Using following markup to reproduce by loading up default Electron distribution and typing document.location = ...; /* path to file containing below text */ in Developer Tools console:

<!DOCTYPE html>
<html>
<body>
<input list="foobar">
<datalist id="foobar">
<option value="apple">
<option value="orange">
<option value="banana">
</datalist>
</body>
</html>
Issue 1:
Hi all.

I've asked this question here: http://stackoverflow.com/questions/35274885/can-you-have-a-stand-alone-directive-in-angular-2

It came down to using within a component, but it's throwing an error:

The component Slider has 1 elements, but only 0 slots were provided.

Slider.ts

import {Component, View, ElementRef} from 'angular2/core';
@Component({
selector: 'Slider',
template: '<ng-content></ng-content>'
})
export class Slider {
constructor(private element: ElementRef) {
console.log('Slider');
}
}

index.html

<Slider><div>hello world</div></Slider>

Is this a bug with the system or am I writing this out wrong? The code itself within the index HTML disappears from the DOM at run time.

Here is a plnkr: https://plnkr.co/UH42bVv93Fedrre7GKFI Hopefully that works for you

Issue 2:
http://plnkr.co/edit/5731Z9N6tQ391gQtfZrA?p=preview

I've been over the documentation 10 times, I've read through the source code, tutorials, the works... and I still can't wrap my head around what I'm doing wrong.

all I want to do is:

<app myTitle='my awesome title'>

and access myTitle from inside the constructor.

Is that possible in NG2?
Issue 1:
Do you want to request a feature or report a bug?

I am not sure,maybe a bug.

What is the current behavior?

Uncaught TypeError: ref is not a function
at commitAttachRef (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:13520:7)
at commitAllLifeCycles (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:13995:9)
at HTMLUnknownElement.boundFunc (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:229:14)
at invokeGuardedCallback (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:243:16)
at invokeGuardedCallback (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:278:34)
at commitAllWork (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:14101:19)
at completeUnitOfWork (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:14241:11)
at performUnitOfWork (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:14273:14)
at workLoop (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:14395:26)
at HTMLUnknownElement.boundFunc (eval at 18 (vendor.bf495772693e68a40763.js:746), <anonymous>:229:14)

And when I debugger,I find below:

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

I use react-16.0.0-alpha.12. windows-64,chrome-canary-61.0.3113.0

Issue 2:
This is not react bug (it is more about react docs) but I tried all those channels recommended to get help without result, so I have no choice but to post it here.

I opened this issue in react docs repository but no response. Here is the link:

reactjs/react.dev#3915

There is also related highly voted question on Stack overflow:

https://stackoverflow.com/questions/61999810/store-a-callback-in-useref

So maybe we can get some help here?
Issue 1:
VSCode Version: 1.0.0

OS Version: Windows7 64bit

Steps to Reproduce:

type CTRL-SHIFT-P

type install ext

Before 1.0.0, we can get installation of extensions with typing install ext, but latest are not because install extension is translated to 拡張機能 in japanese.

:(

I'm happy if the launch menu have match with install ext also.

Issue 2:
VSCode Version:

バージョン 0.10.12-insider

コミット ef2a1fc

日付 2016-03-21T11:33:38.240Z

シェル 0.35.6

レンダラー 45.0.2454.85

ノード 4.1.1

Even Japanese people, typing Japanese words are very painful and time-consuming because of IME composition problems.

We expects that the commands are all in English.

For example, if I want to execute git pull, I will type "git pull"; not "git プル".

Hope you can understand our situation.
Issue 1:
A checkbox/toggle in the General Settings page to disable the Power Toys system tray icon.

Or, better yet (but more work), a Power Toy to choose all system tray icons to be enabled/disabled as some applications do not have the ability to completely disable their system tray icon.

Issue 2:
It would be nice if in keyboard manager we could map macros for excels, games etc or do a task on pressing a empty key or keys that are not used like scroll lock or the entire numpad on a mouse or a keyboard like running security scan through command prompt or doing through gui like opening youtube, discord or starting a steam and also have the ability to add multiple functions to one key and mix of both gui and command prompt. note that it should also support powershell
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

[x ] I have checked the superset logs for python stacktraces and included it here as text if any

[x ] I have reproduced the issue with at least the latest released version of superset

[x ] I have checked the issue tracker for the same issue and I haven't found one similar

Steps to reproduce

Issue 2:
I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.18.2

Expected results

All buttons and lists are fully visible and accessible.

Actual results

The Add filter button as well as the expanded drop-down selectors for the column name, the operator and the filter values are cut off at the bottom of the page, as long as there are more than just a couple of options present.

This behavior can also be observed in the animation shown in #2330 and does not seem to depend much on the employed web browser, as tested with Firefox and Vivaldi.

Steps to reproduce

Add a new filter in explore view, preferably for a column that has many distinct options.

With every added filter, one needs to scroll within the left panel and then within the drop-down lists which are cut off and thus hiding some options.

For power users this is probably not a big deal, as they would just start typing; however, to those that are less familiar with the underlying table, the option lists are very helpful.

Thoughts on a possible approach

Maybe it would make sense (if possible) to add some padding at the bottom of the left panel's bounding box. This padding should always be present and still be included when more filters are added.

The size of the padding should be large enough to accommodate the maximum size of the filter selectors (assuming that there is a limit set somewhere).
Issue 1:
Challenge Bonfire: Return Largest Numbers in Arrays has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

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

My code:

function largestOfFour(arr) {
// You can do this!
var array,large,arr1=[];
var k=arr.length;
for(var i=0;i<k;i++)
{ array=arr.shift();
var h=array.length;
for(var j=0;j<h;j++)
{if(j===0) large=array[j];
else {
if(array[j]>large)
large=array[j];
}

}
arr1.push([large]);

}
return '['+arr1+']';}

largestOfFour([[56,13, 27, 102,18, 26,99], [32, 35, 37, 39], [1000, 1001, 857, 1]]);

Issue 2:
Update signin page to only display signin options

Add signup route that uses the email-signup route handler.