WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Kenny MacLeod opened SPR-6234 and commented

With EhCach you can register event listeners with individual caches. Unfortunately, Spring's EhCacheFactoryBean does not provide the facility for configuring these.

We still have the option of configuring the caches in ehcache.xml (see http://ehcache.org/EhcacheUserGuide.html#id.s28), but I much prefer doing this via EhCacheFactoryBean.

I suggest being able to inject a List of CacheEventListenerFactory objects into EhCacheFactoryBean, which would then register them with the cache it creates.

Affects: 2.5.6, 3.0 M4

Issue Links:

#10312 EhCacheFactoryBean should support CacheEventListener ("duplicates")

Referenced from: commits 747300f

Issue 2:
Jeremy Haile opened SPR-5324 and commented

The "scanPackages" property requires the package name to have a trailing "." which is inconsistent with the component-scan. This feature was adding by #9415

ClassPathScanningCandidateComponentProvider (used by component-scan) constructs the scanning pattern like this:

String packageSearchPath = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + resolveBasePackage(basePackage) + "/" + this.resourcePattern;

AnnotationSessionFactoryBean constructs the scanning pattern like this:

String pattern = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + ClassUtils.convertClassNameToResourcePath(pkg) + RESOURCE_PATTERN;

Notice the missing "/" in the hibernate class. This means that the resource pattern is constructed like classpath*:myPackage**/.class instead of classpath:myPackage/**/*.class

This works when all persistence classes are in the package to be scanned, but fails to scan subclasses. AnnotationSessionFactoryBean should be changed to construct its pattern like component-scan does.

A workaround is to append a trailing "." onto the end of your package name.

Affects: 2.5.6

Issue Links:

#10711 AnnotationSessionFactoryBean packagesToScan in a OSGi environment ("is duplicated by")

Referenced from: commits 71df72d
Issue 1:
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Run the code at http://play.golang.org/p/Z2aaevAIbN

What is the expected output?
map[0:2]

What do you see instead?
map[1:2 0:1]

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux

Which version are you using? (run 'go version')
go1.0.3/tip devel +c0a5b4ad0895

Please provide any additional information below.
Raised here: https://groups.google.com/d/msg/golang-nuts/qOIyn4PXli0/VxhopTqhYtcJ
The almost equivalent slice code gives the expected output
(http://play.golang.org/p/4vRaPGs63w), as the equivalent map literal assignment
(http://play.golang.org/p/jqzQ7MsRS4).

Issue 2:
The Go compiler version does not match the Mercurial repository version.

$ hg id
dd31a3b56536 tip
$ 6g -V
6g version weekly.2011-06-23 8948
Issue 1:
Currently pd.read_sql_query() accepts an sqlalchemy.engine.base.Engine instance as the con parameter. Using that, it presumably creates a new sqlalchemy.engine.base.Connection to connect to the DB server and issue the query.

However, as most (all?) DB servers associate a session with a connection, this precludes issuing queries for an existing session/connection.

For example, it is common to break up large queries into a series of steps that create TEMPorary intermediate result tables, possibly joining some into further intermediate tables, and then querying for the final result. The lifetime and scope of a TEMP table is that of the session/connection.

Hence, something like:

con = engine.connect()
con.execute('CREATE TEMP TABLE tmptable ...')
result = pd.read_sql_query('SELECT * FROM tmptable ..', engine)

will fail as the tmptable isn't available to the connection/session created by read_sql_query().

Concatenating the SQL statements into one query string with ';' statement seperator, or using the SQLAlchemy text class to attempt to create the table and query it in one SQL query also fails as leads to SQLAlchemy claiming the query doesn't return results (perhaps because it doesn't being with "SELECT"?)

This, and other similar use-cases involving multiple queries within a single session/connection context, could be easily supported by allowing a sqlalchemy.engine.base.Connection to be passed to the read_sql_query() and similar functions, whereby they would use the supplied connection rather than creating a new one. An added benefit would be the reduction in overhead of repeatedly creating and tearing down connections to the DB server and also allowing users to implement connection pooling when necessary.

(Issue created at suggestion of @joris in this StackOverflow question )

Issue 2:
related #7615

Bit of a UI problem here (although it's behaving as the docstring says it does, so it doesn't quite qualify as a bug):

>>> df = pd.DataFrame({"A": [1,2,3], "B": [4,5,6]})
>>> df.to_csv("tmp.csv", sep=";")
>>> !cat tmp.csv
;A;B
0;1;4
1;2;5
2;3;6
>>> df.to_csv("tmp.csv", delimiter=";")
>>> !cat tmp.csv
,A,B
0,1,4
1,2,5
2,3,6

read_csv accepts both sep and delimiter but to_csv silently ignores delimiter. Someone was recently tripped up by this on SO. I'm fine with either teaching to_csv to behave the same way read_csv does or, alternatively, raising if delimiter is found as a keyword.

That is, I'm less bothered by the inconsistency than the silent unexpected behaviour.
Issue 1:
Version

2.5.21

Reproduction link

https://github.com/phil294/vue-hackernews-ssr-alternative-data-fetching

Steps to reproduce

In SSR docs, option 2, Fetch data after the matched view is rendered, calls asyncData in beforeMount.

The pseudo-syntax is

if (asyncData)
asyncData()

This does not check if asyncData was already called by the server. Thus, guided by the official docs, this leads to duplicate fetches. In the case of dynamic module registration, even to duplicate modules.

In the linked repro, I cloned vue-hackernews and changed the fetch method accordingly. I also added a console.log to when fetchIdsByType is called which happens when asyncData is called.

What is expected?

Data is fetched on server, client does not fetch it again (as is the case with the usual router.beforeResolve solution (step 1).

What is actually happening?

Data is fetched twice, also on client, because there is no check on whether the data is already there, effectively making option 2 unusable.

Issue 2:
From knockout to angular to react, now i'm new to Vue. Really love this library, feels like "angular+react for humans".

:class now support array OR object, but sometimes it's still a little tedious

if :class support classnames(https://github.com/JedWatson/classnames) like syntax will be better.

example:

from

:class="[type, checked?'checked':'', readOnly?'read-only':'', disabled?'disabled':'', fitted?'fitted':''"

into

:class="type, {checked, disabled, fitted}, readOnly&&'read-only'"

Sure, I can always use a computed method, but by doing this class names are defined in one more place(props+template -> props+template+computed), which harms readability.
Issue 1:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Whenever I try to use FancyZones, the overlay looks kinda weird. The numbers are duplicated and in different spots, which results in FancyZones looking like this.

These are my FancyZones settings: & . I do not have any custom layouts and encountered the issue when using the default grid style. Other styles also seem to give the issue, but the grid style is then "on top" of the chosen style, as seen here.

By the way, it seems to only be a visual issue, as it will always apply the correct zone, e.g. when using rows and grid style is on top, the window snaps to the row format, not to the grid format.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.19041.329]
PowerToys version: v0.19.0 and v0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Screen Count: 4 (1 is not landscape)

Steps to reproduce

Activate Fancy Zones

Make sure PowerToy is started when windows starts, is did this by adding PowerToy to the start menu Startup folder.

Put your computer (Laptop) to sleep

Awake your computer and logon

you got duplicate zones.

Possibly important info

I use a USB-C dock with 2 displays

1 display use the laptops own HDMI port

The displays are connected before the laptop comes on

The displays are disconnected before the laptop goes to sleep

Expected behavior

No, zone duplication

Actual behavior

Zone duplication

Screenshots

I hope this is helpful.
Issue 1:
Challenge Waypoint: Target HTML Elements with Selectors Using jQuery has an issue.

User Agent is: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET4.0C; .NET4.0E).

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

My code:

<script>
$(document).ready(function() {

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target

Issue 2:
Can't run code because of this error error: plugin failed to initialize it is showing in the lower left corner. Tried different browsers, computer, and devices same error. Have a really slow internet connection
Issue 1:
This issue is just tracking JuliaStats/Rmath.jl#7. I believe this issue here needs to be added to the 0.5.0 milestone, and that is why I added a duplicate here in the julia repo.

My understanding is that StatsFuns.jl relies on rmath. Previously rmath was part of base and worked on all platforms. #6131 moved it out into JuliaStats/Rmath.jl, but that package doesn't work on Windows, so now StatsFuns.jl doesn't work anymore on Windows, and with that essentially the whole julia statistics stack.

Issue 2:
My main grudge with the 1-based array indexing common in scientific programming languages is that it makes cyclic array-indexing a pain:

n = length(a)
a[mod(i-1,n)+1]

The only language I know which solves this problem reasonably elegantly is Mathematica whose Mod function takes an optional third argument which is an offset that shifts the representatives of the remainder classes. E.g. mod(x,3,1) would return a number in 3, 1, 2 instead of 0, 1, 2. This makes cyclic 1-based indexing a lot neater:

n = length(a)
a[mod(i,n,1)]

I don't know if this would also be a useful feature for rem, especially because rem(x,n) doesn't come with the semantics "this function will always return one of n values".
Issue 1:
TypeScript Version:

Lastest Commit

Code

const a = [5, 6, "7", "8"]
const b = a.filter(x => typeof x === "number")

Expected behavior:

b is number[]

Actual behavior:

b is (number|string)[]

Issue 2:
TypeScript Version:

nightly (1.9.0-dev.20160323)

Code

let numbers: number[] =
[1, '2', 3, '4'].filter(x => typeof x !== 'string');

declare function isNumber(arg: any): arg is number;
let numbers2: number[] = [1, '2', 3, '4'].filter(isNumber);

Playground

Expected behavior:

.filter with a type guard returns an array of the specified type. This would be especially useful with --strictNullChecks, so we could do something like foo.map(maybeReturnsNull).filter(x => x != null)....

Actual behavior:

.filter returns an array of the same type, and the two lets above are errors.
Issue 1:
Is it possible to scale fonts using rem instead of px or %?

Using font-size: 62.5% in html tag as default, make simple calculations for font sizes like 24px = 2.4rem, 12px = 1.2rem, etc.

Then, changing the html font-size via media queries, we can auto-scale all the text in page.

Is this possible in new versions to come?

Thanks

Issue 2:
The version of Bothstroop 3.0 , Why not use percentage and EM instead of PX
Issue 1:
The apache-airflow-providers-google package locks the google-ads package to an unsupported version.

The maximum supported Google Ads API with the Apache Airflow google provider package is now stuck at v5.

The current supported version (until Jun 2022) is v8.

Hence the Apache Airflow package breaks all Google Ads functionality (API calls with the package Google Ads client are all rejected).

As a user of Airflow, I would expect to be able to upgrade google-ads individually.

Issue 2:
Hey team, I was looking to use the google ads hook but it seems like the google ads package is a bit out of date with the hook only taking "v5", "v4", "v3", "v2" https://developers.google.com/google-ads/api/docs/release-notes and all of those being deprecated. Is there any chance the provider can be upgraded to include this? here is the release note of https://github.com/googleads/google-ads-python/releases/tag/12.0.0 google's 12.0.0 release which also deprecated v5

Apache Airflow version: 2.0.1

What happened:

deprecated API endpoint, need to update google ads to version 12.0.0

What you expected to happen:

return query data, instead, I get an error returned from the google ads v5 API:

How to reproduce it:

attempt to hit the v5 API endpoint

Anything else we need to know:

error is below

Response
-------
Headers: {
"google.ads.googleads.v5.errors.googleadsfailure-bin": "\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.",
"grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure\u0012L\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.",
"request-id": "JyFZ9zysaqJbiCr_PX8SLA"
}
Fault: errors {
error_code {
request_error: UNKNOWN
}
message: " Version v5 is deprecated. Requests to this version will be blocked."
}
Issue 1:
Challenge Escape Sequences in Strings has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36.

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

I get the required output, as can be seen in the screenshot ---> https://snag.gy/FxkBG0.jpg

But for some reason my code does not get accepted.

My code:

var myStr='Here is a backslash: \\.\n \t \t Here is a new line with two tabs.'; // Change this line
console.log(myStr);

Issue 2:
Challenge Escape Sequences in Strings has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2756.0 Safari/537.36 OPR/40.0.2267.0 (Edition developer).

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

My code:

var myStr = "Here is a backslash:\\.\n \t\t Here is a new line with two tabs.";

Screenshot: https://i.sli.mg/hEmocD.png

I asked for help in the chatroom and my solution was the same as others who had successfully completed the challenge.
Issue 1:
These settings parallel each other and are also confusing with transport.type. This causes problems in tests sometimes since we randomize the first two settings. So if a test wants to rely on, eg always using netty, it has to remember to set two settings, to make sure randomization doesn't mess this up. And if the test forgets one, it can have weird consequences, like the wrong transport address instance being created, causing class cast exceptions like in #12788.

I think we should minimize these to as single setting (preferably transport.type since that is the pluggable setting).

Issue 2:
The notes in the code say that the script parsing will go in 2.0 but its still there. I mean SCRIPT_LANG, SCRIPT_FILE, SCRIPT_ID, and SCRIPT_INLINE.
Issue 1:
When an accordion container is closed, its contents are still visible in IE.

I checked IE9, IE8 and IE7. Fails in all of them. It was a real IE9 running on Windows 7, IE8 and IE7 were the IE9 running in the emulation modes.

The accordion example at http://twitter.github.com/bootstrap/javascript.html#collapse works as test case.

Screenshot of the problem: http://imgur.com/dvdVU

Issue 2:
When using delegation i.e, passing a selector, the passed options is ignored, however any data attribute options are not.

v2.3.1.
Issue 1:
Enhancing readbility as part of remaining stuff from PR https://github.com/apache/incubator-dubbo/pull/3013/files.

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?

Enhancing readability of code as part of PR https://github.com/apache/incubator-dubbo/pull/3013/files

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

Operating System version: xxx

Java version:

Steps to reproduce this issue

I merged the code about #3327, but still UT failed.

Travis CI failed with the following log

https://api.travis-ci.org/v3/job/484984836/log.txt

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

Expected Result

CI pass

Actual Result

CI fail

[�[1;34mINFO�[m] �[1;32mTests run: �[0;1;32m2�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 s - in org.apache.dubbo.monitor.dubbo.�[1mStatisticsTest�[m
[�[1;34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m
[�[1;34mINFO�[m] �[1;32mTests run: �[0;1;32m1�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.919 s - in org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m
[�[1;34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m
[�[1;31mERROR�[m] �[1;31mTests �[0;1mrun: �[0;1m5�[m, �[1;31mFailures: �[0;1;31m1�[m, Errors: 0, Skipped: 0, Time elapsed: 1.028 s�[1;31m <<< FAILURE!�[m - in org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m
[�[1;31mERROR�[m] testCount Time elapsed: 0.043 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <1> but was: <0>
at org.apache.dubbo.monitor.dubbo.DubboMonitorTest.testCount(DubboMonitorTest.java:117)

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

Just put your stack trace here!
Issue 1:
When we include json content as part of template html, we are getting template parsing errors like below. we use json content heavily in our current Angular v1 application to inject locale content to be used in directive html text labels.

Template parse errors:

Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.) ("

}

Ex: page template html (use custom directive transcluded with json content)

`

{ "lblFName": "xyz" }

`

custom directive template html (we internally get the transcluded json content to vm.content variable and use it in the directive template)

<span>{{::vm.content.lblFName}}</span>

we are trying to research on upgrading our application to Angular2 with RC5 version but getting template parsing errors when trying to include json content like above. Do we have any other options to support this feature in Angular2 or allow us to override or add support to Angular2 template parser to ignore json content like above ...

Error message specifies, that we need to escape { char with '{', having to escape complex json content structure would be time consuming and we are looking for any other options are available in Angular2 for this...

Issue 2:
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

<div>Test binding: {{2 + 2}}</div>

=> Test binding: 4

<div ngNonBindable>Test non binding: {{2 + 2}}</div>

=> Test binding: {{2 + 2}}

<div>Test non binding: {2 + 2}</div>

=> Template parse errors, the "(Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)" message.

This is a problem because precisely due to the fact that they are [ngNonBindable] marked elements, "{{ '{' }}" doesn't produce the expected result.

Expected behavior

As the escaping of { characters isn't possible inside [ngNonBindable] elements so it's the compiler's job to ignore them altogether, I believe.

<div>Test non binding: {2 + 2}</div>

=> Test binding: {2 + 2}

Reproduction of the problem

here => http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview

Angular version: 2.0.0
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
?

Symfony version
2.8.15

Hi,

I'm upgrading from Symfony 2.3 to 2.8 and ran into an issue.

I'm using an entity which get some properties let's see it as follow

class MyEntity
{
private $myProperty;
}

I'm missing annotations as this code it is only for demonstration purpose, but it is a symfony entity.

I got a controller action which list MyEntity's entites and I got a filter system to show all my entites or only those with $myProperty corresponding to what I want.

We can imagine the controller action as follow:

function listAction(Request $request)
{
$form = $this
->createForm(MyEntityFormType::class, [], ['method' => $request->getMethod()])
->handleRequest($request)
;
}

In symfony/symfony/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler::handleRequest() function there is in line 109 this verification:

// Don't auto-submit the form unless at least one field is present.
if ('' === $name && count(array_intersect_key($data, $form->all())) <= 0) {
return;
}

I never have form name in sent data on my whole project. When I try to call my controller action listAction without filtering on MyEntity::myProperty form is not submitted because no field are present in form while I could before as I was using submit() function.

I found a workaround checking if I'm in this particular case and then resubmitting manually the form but it's kind of ugly and definitly not a good practice.

$form = $this
->createForm(MyEntityFormType::class, [], ['method' => $request->getMethod()])
->handleRequest($request)
;

// $form->handleRequest() doesn't submit request with no data
// If the form doesn't get errors and the request doesn't get
// data we manually call $form->submit() w/ computed data
if (!$form->isSubmitted() && (0 === count($form->getErrors(true))) && $form->isEmpty()) {
$requestData = $request->request->all();
$queryData = $request->query->all();
$form->submit(array_merge($defaultValue, $queryData, $requestData));
}

Is there a best practice to handle this case ?

Is this a case which is not supposed to be ?

Issue 2:
Hello,

I was trying to set my dbal connection using doctrine with MySQL PDO. When setting the yaml config file to use password '@SomePassword01' the framework will expect an object reference rather than a string.

This causes an exception: InvalidTypeException: Invalid type for path "doctrine.dbal.connections.default.password". Expected scalar, but got object.

Can you please have a look?

If this won't be fixed can you please at least make sure than the password requirement are mentioned correctly.

Using standard installation 2.2.0

MySQL Server 5.6

PHP 5.4.12