WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Describe the issue with documentation

On https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/patch_dag

the payload in the example for PATCH /dags/{dag_id} suggest that it's possible to update schedule_interval which is not true :

{
"is_paused": true,
"schedule_interval": {
"__type": "string",
"days": 0,
"seconds": 0,
"microseconds": 0
}
}

How to solve the problem

Update documentation removing the schedule_interval part from payload

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Description

Since Airflow 2 we get a lot of customization options for pods spawned using KubernetesPodOperator. There is, however, one area in which nothing has changed and it's xcom_sidecar_container. Currently, all of the specs for it are hardcoded in PodDefaults class.

This issue is meant to start discussion and to possibly shape the end solution enabling configuration of xcom side container (unless there is a feeling it's not needed).

Use case / motivation

We are running on self-hosted k8s with own docker repository (JFrog artifactory) and in our current setup we are required to spawn pods using full path to the repo - we cannot do docker pull alpine but need to do docker pull arficatory.domain/registry/alpine.

Are you willing to submit a PR?

Yes, but could use some points, discussion on what would be the acceptable target solution.

Related Issues

n/a
Issue 1:
Right now all constraint configuration should be defined in the validator.xml or validator.yaml file. Once you have a lot of entities this file becomes overly large. As I'm completely unfamiliar with the way metadata is handled by the validation component I need some suggestions before I can open a PR.

This might be related to #2992 and #2996 but I'm not sure.

Issue 2:
I have a website splitted in 2 areas:

public customers

professional customers

Both areas contains the same organization (a list of the same activities).

I am trying to generate the sames urls for both areas (just adding a prefix on pro area) and share the configuration so I don't need to duplicate all urls.

The goal is to have something looking like this:

Public area:

- /activity-1/
- /activity-2/
- /reuse-same-slug/

Pro area (reuse same slugs without prefix):

- /pro/activity-1/
- /pro/activity-2/
- /pro/reuse-same-slug/

My controllers are stored in 2 distinct folders using same controller names:

App\Controller\Pub\Activity1Controller.php
App\Controller\Pub\Activity2Controller.php

App\Controller\Pro\Activity1Controller.php
App\Controller\Pro\Activity2Controller.php

So I am able to load the same route configuration on both Pub and Pro controllers with this configuration:

activity-1:
resource: ../../src/Controller/*/Activity1Controller.php
type: annotation
name_prefix: activity-1_
prefix: /activity-1

activity-2:
resource: ../../src/Controller/*/Activity2Controller.php
type: annotation
name_prefix: activity-2_
prefix: /activity-2

But now, in order to distinguish public and professional routes, I need to the same custom annotation on each Pro controllers:

/**
* @Route("/professional", name="professional_")
*/

I am wondering if there is a better way to do this or if there is a way to not duplicate the annotation in all controllers?
Issue 1:
Attempt to run a python program using a single line problem matcher. For example, use the tasks.json from http://stackoverflow.com/questions/29987840/how-to-execute-python-code-from-within-visual-studio-code, except make it a test command or build command so you can run with a shortcut. Run on an app.py file containing some error, like it only contains the code 1.foo.

The problem matcher defined in the task.json only works with single line error output, but Python delivers multiline output. I assume this is what is causing VSCode to freeze. It (at least for me) can't be closed except by killing the process.

I'm running the latest VSCode version on Windows 10.

Issue 2:
whether vscode can change the mechanism that make me can get all all completionitem list include vscode itself provided in the following method provideCompletionItems in my vscode plugin? where I can know how vscode deal with this in vscode source?

vscode.languages.registerCompletionItemProvider("javascript",
{
resolveCompletionItem(item:vscode.CompletionItem, token: vscode.CancellationToken): vscode.CompletionItem
{
var completionItem1:vscode.CompletionItem = new vscode.CompletionItem("id");
completionItem1.detail = "aaa";
completionItem1.filterText = "aa";
completionItem1.insertText = "aa";
return completionItem1;
}
,
provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Promise<vscode.CompletionItem[]>
{
return new Promise((resolve, reject) => {
var completionItems:vscode.CompletionItem[] = [];

return resolve(completionItems) ;
});
}
})
Issue 1:
The issue at #4273 was closed but the problem still exists. There is even a repo with a repro

Input Code

export * from 'module'

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

{
"plugins": [
"transform-runtime"
],
"presets": [
"es2015"
]
}

Expected Behavior

There should be no import statement in the output file

Current Behavior

The file contains

import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
import _Object$keys from 'babel-runtime/core-js/object/keys';

Possible Solution

A workaround is adding the polyfill: false in the transform config:

{
"presets": ["es2015"],
"plugins": [
[
"transform-runtime",
{ "polyfill": false }
]
]
}

But this may not suit all cases

Context

Your Environment

software
version

Babel
6.8.0

node
6.9.1

npm
3.10.10

Operating System
osx

Issue 2:
Issue originally made by @brnrd

Bug information

Babel version: 6.3.26

Node version: 5.2.0

npm version: 3.3.12

Options

using babel-cli, "babel --presets es2015"

Input code

try {
function Person() {
this.age = 0;

this.incAge = () => {
this.age = this.age + 1;
}
}
} catch (e) { ... }

Description

When compiling this code using the es2015 preset, the resulting code is:

try {
var _this = this;

var Person = function Person() {
this.age = 0;

this.incAge = function () {
_this.age = _this.age + 1;
};
};
} catch (e) { ... }

Note that the position of the var _this = this; is wrong since it will cause _this.age to be an undefined property of _this.

Outside the try-catch, the code compiles fine.
Issue 1:
Sorriso opened SPR-8930 and commented

the full code source having the issue can be found here:

https://github.com/sorriso/TodoSRV

this is a small application architecture sample (still under improvement / development) of a full todos application

with a RIA javascript application on client side (using sproutcore 2.0, jquery)

and a spring Resful server (using mybatis, c3p0 and mysql) with spring security

database must be create first

just change springframework version from 3.0.6.RELEASE to 3.1.0.RC2 (and vice versa) in pom.xml file to (de)activate error msg

launch the application on a tomcat 7 server (via eclipse by example)

open the url http://localhost:8080/TodoSRV

login with user / user -> if exists todos item list appears (GET command allowed)

if not create 2 or 3 todo item (POST command allowed)

AND REFRESH the page in order to avoid a bug (who have no link with this issue) who duplicate todo items

mark as "done" a todo item -> error in webInspector / firebug console -> POST command not allowed

(this action works fine with 3.0.6.RELEASE)

if a todo item is already marked as done, clear action works fine (DELETED command allowed)

filter hiddenHttpMethodFilter have been added in web.xml file

Affects: 3.1 RC2

Issue 2:
Abhijit Sarkar opened SPR-9359 and commented

Background: I opened an improvement SWS-746 but it was incorrectly closed. It is OK if the improvement is not accepted but the fact that it was closed because "here has been a UriTemplate class since version 3.0, which allows you to create a URI template quite easily." is incorrect. There is no method in UriTemplate that can do what I am suggesting.

Improvement:

There is no code to create an UriTemplate. UriTemplate has methods to expand the following URI but nothing to create it. http://example.com/hotels/{hotel}/bookings/{booking}

public String createUriTemplate(String endpoint, Map<String, String> queryParams) {
final String queryParamsStart = "?";
final String uriVariableStart = "{";
final String uriVariableEnd = "}";
final String uriVariableSeparator = "&";
final char uriPathSeparator = '/';

StringBuilder uriTemplate = new StringBuilder(endpoint);

Set<String> keys = queryParams.keySet();

if (!(uriTemplate.codePointBefore(uriTemplate.length()) == uriPathSeparator))
uriTemplate.append(uriPathSeparator);

uriTemplate.append(queryParamsStart);

for (String key : keys)
uriTemplate.append(key).append("=").append(uriVariableStart)
.append(key).append(uriVariableEnd)
.append(uriVariableSeparator);

uriTemplate.deleteCharAt((uriTemplate.length() - 1));

logger.debug("Created URI template: " + uriTemplate);

return uriTemplate.toString();
}

Issue Links:

SWS-746 Provide RestTemplate methods that can create a UriTemplate using a Map ("duplicates")
Issue 1:
Eberhard Wolff opened SPR-6870 and commented

The Autowiring algorithms tries to work out the dependencies by building up the Beans. If this fails, a BeanCreationException is thrown, caught and then a different way to handle the dependencies is tried. In some situations this results in slow performance and it is probably also not the nicest programming style.

Affects: 2.5.6

Attachments:

perf305MainPatch.html (110.13 kB)

perf305stock.html (120.62 kB)

perfDiffStockVsPatch1.html (154.63 kB)

SPR6870.patch (2.63 kB)

Sub-tasks:

#14083 Backport "Cache by-type lookups in DefaultListableBeanFactory"

Issue Links:

#13934 Major Performance Problem in ApplicationContext Creation and Prototype Bean Lookup by Type ("is duplicated by")

#12604 Improve performance of DefaultSingletonBeanRegistry.getSingletonNames(..) for high-concurrent-load applications ("is duplicated by")

#12750 Improve performance of bean lookup by type for DefaultListableBeanFactory ("is duplicated by")

Referenced from: commits 841d953, 0d18deb, db1cb13, f75c01d, 4c7a1c0

45 votes, 45 watchers

Issue 2:
Kieron Edwards opened SPR-5933 and commented

This is the exception when trying to load org.apache.xml.dtm.ref.DTMManagerDefault from ShadowingClassLoader in a multithreaded environment (I have assigned intensive parsing tasks to multiple threads). I can get around this by subclassing AbstractJpaTests :-

@Override
protected void customizeResourceOverridingShadowingClassLoader(ClassLoader shadowingClassLoader){
((ShadowingClassLoader)shadowingClassLoader).excludePackage("org.apache.xml.");
}

but Im wondering if this multi-threaded problem could affect the production environment. Any thoughts, nudges in the right direction would be appreciated, stack trace below ...

java.lang.LinkageError: loader (instance of org/springframework/test/jpa/OrmXmlOverridingShadowingClassLoader): attempted duplicate class definition for name: "org/apache/xml/dtm/ref/DTMManagerDefault"

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:703)

at java.lang.ClassLoader.defineClass(ClassLoader.java:548)

at org.springframework.instrument.classloading.ShadowingClassLoader.doLoadClass(ShadowingClassLoader.java:151)

at org.springframework.instrument.classloading.ShadowingClassLoader.loadClass(ShadowingClassLoader.java:102)

at org.apache.xml.dtm.ObjectFactory.findProviderClass(ObjectFactory.java:508)

at org.apache.xml.dtm.ObjectFactory.lookUpFactoryClass(ObjectFactory.java:219)

at org.apache.xml.dtm.ObjectFactory.createObject(ObjectFactory.java:133)

at org.apache.xml.dtm.ObjectFactory.createObject(ObjectFactory.java:103)

at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137)

at org.apache.xpath.XPathContext.<init>(XPathContext.java:102)

at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:115)

Affects: 2.5.6
Issue 1:
Migrated issue, originally created by jvanasco (@jvanasco)

discussed previously in

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/MUyt8zYaP0c/ht4fGR9q9w8J

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/331XoToT4lk/RPjIYNTkSEIJ

I tried doing this myself, but don't know enough of the internals to get this done on my own.

it looks like these need to be modified

sqlalchemy/sql/default_comparator.py

sqlalchemy/sql/operators.py

but not sure about

sqlalchemy/sql/compiler.py

there are probably more files.

if someone can get one working, I can do the rest and build out tests.

Issue 2:
Describe the bug

Using MySQL 8.0.27 with a database table called lead. Turns out this is a new reserved word in MariaDB. I am using SQLAlchemy 1.3.24 and adding lead to your dialects/mysql/base.py RESERVED_WORDS set fixes the issue, causing the lead table to be escaped properly. Looking at your latest 1.4.x branch, lead is not in there either.

I know 1.3.24 is old, but still used in the industry. If you could backport that reserved word in 1.3 that would be appreciated.

To Reproduce

Run a JOIN on a table called `leads` BUT the join alias is singular `lead` on MySQL 8.0.27. An example SQL produced will be

SELECT DISTINCT opportunities.id, opportunities.name, opportunities.lead_id, lead.id AS "lead__id", lead.name
AS "lead__name", lead.primary_contact_id AS "lead__primary_contact_id" FROM opportunities LEFT OUTER JOIN
leads AS lead ON opportunities.lead_id = lead.id;

Which fails with "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lead ON opportunities.lead_id = lead.id' because lead is not escaped properly as it is not in your set of RESERVED words.

Error

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lead ON opportunities.lead_id = lead.id'

Versions

OS: Linux Manjaro

Python: 3.9.0

SQLAlchemy: 1.3.24

Database: MySQL 8.0.27

DBAPI (eg: psycopg, cx_oracle, mysqlclient): aiomysql via encode/databases

Additional context

No response
Issue 1:
I'm wondering if you can add a new feature: show nested menu when hover on item.

I read your source code and found that the new menu was rendered on body. I don't know how to change code so the menu item can support this feature.

Issue 2:
the circle around the selected date in the calendar is down and left of where it should be to be centered with the selected number.

this is verified on mac osx in chrome, safari, and firefox

the circle should be:

top: -7px;
left: 3px

these screenshots are from the datepicker documentation
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

LATEST

Operating System:

macOS 10.13.6

Expected Behavior

const filter = {
urls: [
"file://*.sobot.com/*"
]
}

browserWindow.webContents.session.webRequest.onBeforeRequest(filter, (details, callback) => {
const { id, url, method, resourceType, timestamp, uploadData } = details;
// url === "file://users/liutong/Desktop/**/projectName/app/***"
callback({
cancel: false,
redirectURL: 'http' + url.slice(4)
})
})

The callback of onBeforeRequest will be called by any request from the file scheme.

Actual Behavior

For the above codes, I just want to redirect a request that contains the '*.sobot.com' domain,

But I received a URL from the local path of /users/Oliver/Desktop in the callback of onBeforeRequest.

When I add "file://*.sobot.com/*" a rule in the array, for the rule, I actually expected it only to match request that domain is '.sobot.com', but It appears to listen to all requests. e.g

[ "file://users/Oliver/Desktop/**/projectName/app/caching_resources/***" ]

To Reproduce

Screenshots

Additional Information

As for my final purpose, you can refer to this issue. so my fallback is to exclude any request that contains a path of 'caching_resources' as to redirect to the HTTP scheme.

Issue 2:
Electron version: 1.7.9

Operating system: macOS

Expected behavior

The callback should be used only for URLs matching the filter.

const filter = { urls: ['*://www.googleapis.com'] };
session.defaultSession.webRequest.onBeforeRequest(filter, (details, callback) => {
console.log('onBeforeRequest: ', details);
callback({ cancel: true });
});

Actual behavior

The callback is called for random URLs.

onBeforeRequest: { id: 1,
method: 'GET',
referrer: '',
resourceType: 'mainFrame',
timestamp: 1512654154551.9841,
url: 'file:///Users/pronebird/apple/mail/build/index.html' }
onBeforeRequest: { id: 4,
method: 'GET',
referrer: '',
resourceType: 'mainFrame',
timestamp: 1512654154564.2021,
url: 'chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@691bdb490962d4e6ae7f25c6ab1fdd0faaf19cd0/&can_dock=&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)&experiments=true' }
Issue 1:
I believe the following behavior of which() is not intended:

julia> f(a::Int, b) = a+b
f (generic function with 1 method)

julia> f(a, b::Int) = a-b
f (generic function with 2 methods)

julia> f(2,2) # to highlight that there is an ambiguity
ERROR: MethodError: f(::Int64, ::Int64) is ambiguous. Candidates:
f(a, b::Int64) in Main at REPL[2]:1
f(a::Int64, b) in Main at REPL[1]:1
Possible fix, define
f(::Int64, ::Int64)

julia> which(f, Tuple{Int,Int})
ERROR: no method found for the specified argument types
Stacktrace:
[1] which(::Any, ::Any) at ./reflection.jl:823

Instead of saying that there is "no method found", which() should give an error indicating that there is an ambiguity. Looking at the source

julia/base/reflection.jl

Line 878
in
2b983d4

error("method match is ambiguous for the specified argument types")

, it looks like an ambiguity error was intended. Blame shows that none of this code has changed for a while.

I think it's worth fixing or changing the error to say that it might be an ambiguity because it was quite confusing to me when debugging.

Sorry if this is a duplicate issue - it's not too easy to search for issues involving "which".

Also, my versioninfo():

Julia Version 0.6.0
Commit 9036443 (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)

Issue 2:
As pointed out here #11430 (comment), here #11430 (comment) and in some of the comments on that issue, the naming convention for Ref and RefValue is probably not the best and causes some confusion.

I'd like to propose the following changes

Ref -> CRef, ARef (A for Abstract) or ByRef (proposed by @JeffBezanson)

RefValue -> Ref (and export this)

and leaving RefArray as it is.

As pointed out by @vtjnash, most of the time what people need is the abstract version, but for #11430 and #18965 having Ref to mean RefValue would be more convenient.

Also, quoting @StefanKarpinski

I think that simple concrete names should be used for simple concrete things; programming correctly to an abstraction requires awareness and care, so having a name that reminds you of that is a good thing.
Issue 1:
Unit tests on our CI have apparently been failing for 2 weeks and no one noticed (oops!)...

The PR that seems to have caused the failures is #14328.

The failing test is k8s.io/kubernetes/pkg/volume/flocker - TestSetUpAtInternal.

[16:15:04][Step 4/5] --- FAIL: TestSetUpAtInternal (0.00s)
[16:15:04][Step 4/5] assertions.go:202:
[16:15:04][Step 4/5]
[16:15:04][Step 4/5] Error Trace: plugin_test.go:208
[16:15:04][Step 4/5]
[16:15:04][Step 4/5] Error: Not equal: "expected-to-be-set-properly" (expected)
[16:15:04][Step 4/5] != "" (actual)
[16:15:04][Step 4/5]
[16:15:04][Step 4/5] FAIL
[16:15:04][Step 4/5] FAIL k8s.io/kubernetes/pkg/volume/flocker 0.014s

Full Test Log: https://teamcity.mesosphere.io/viewLog.html?buildId=54217&buildTypeId=Oss_KubernetesMesos_2UnitTests&tab=buildLog&guest=1#_focus=866

I'm not sure why this is failing on our CI and not on shippable. Has anyone else seen something similar?

That test only seems to fail on the second run through with etcdPrefix: kubernetes.io/registry.

Our unit tests run in a container built specifically for testing k8s-mesos:

$ cluster/mesos/docker/test/build.sh
$ docker run --rm \
-v "$(pwd):/go/src/github.com/GoogleCloudPlatform/kubernetes" \
-v "/var/run/docker.sock:/var/run/docker.sock" \
mesosphere/kubernetes-mesos-test \
-cexu "\
cd /go/src/github.com/GoogleCloudPlatform/kubernetes && \
make clean && \
export KUBERNETES_CONTRIB=mesos && \
make test
"

The Dockerfile for the env: https://github.com/kubernetes/kubernetes/blob/master/cluster/mesos/docker/test/Dockerfile

Is anyone else able to repro with the above env or their own?

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): close channel multiple times

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version): master

Environment: None

Cloud provider or hardware configuration: None

OS (e.g. from /etc/os-release): None

Kernel (e.g. uname -a): None

Install tools: None

Others: None

What happened:

Panic maybe happens, since close the same channel multiple times.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

in the file pkg/proxy/config/config.go:

func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
ch := c.mux.Channel(source)
serviceCh := make(chan ServiceUpdate)
go func() {
for update := range serviceCh {
ch <- update
}
close(ch)
}()
return serviceCh
}

The function Channel is allowed to be invoked many times with the same source,

for example,

c.Channel("one")

...

c.Channel("one"),

then, it creates only one channel ch, that is, c.mux.sources["one"], while close(ch) will be invoked many times.

So I think it is a bug, although the close(ch) may not be run for ever.

I think discard the code "close(ch)" will be better.