WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
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

When i have checkbox inside a form with required attribute, if its unchecked, the validation is passing

<label for="acceptance" class="form-check-label"
[ngClass]="{'field-error-text': acceptance.errors && acceptance.errors.required}">
<input [(ngModel)]="contact.acceptance"
#acceptance="ngModel" id="acceptance"
name="acceptance" type="checkbox" class="form-check-input"
required> Please accept lorem ipsum terms conditions.
</label>

submit button is always enabled on unchecked field

<button (click)="submit()" [disabled]="!contactForm.form.valid" type="submit" class="btn btn-primary">Submit</button>

all this code is inside a form tag like

<form #contactForm="ngForm">

Expected behavior

If an input is required, validation should not pass and in this case, button should be disabled

Minimal reproduction of the problem with instructions

I was able to reproduce the behavior even on plunkr

http://plnkr.co/edit/iG5fpGo8DqHtIKLnrDrp?p=preview

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

For example the use case here is a terms and conditions acceptance, so user has to accept the check all the time

Please tell us about your environment:

El Capitan, MacOS, Atom, NPM, browser sync

Angular version: 2.0.X

Tried on 2.1

Browser:

Tried Chrome 53, but probably same on other browsers

Language:

Typescript

Node (for AoT issues): =

v5.2.0

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

Given an <input type="checkbox"> with the required attribute, ngModel correctly considers it invalid to start with. Checking it correctly makes it valid, but after unchecking it it's still valid.

Expected behavior

A required checkbox should always be invalid if it's not checked.

Reproduction of the problem

http://plnkr.co/edit/GZI2fiZ65qtJQIjJbZLh?p=preview

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

HTML5 Form Validation doesn't allow submitting a form if a required checkbox is unchecked. (Or at least that's how Chrome and Firefox work.)

Angular version: 2.0.0-rc.6

Browser: [all]

Language: [all]
Issue 1:
Environment

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

Steps to reproduce

Set up for only zone zone with no border.

Open Notepad.exe

Move Notepad to the one zone

See that Notepad covers the whole non-taskbar desktop area

Move the taskbar to a different edge of the screen

Move Notepad to the one zone again

See that the zone uses its original dimensions, not refactored for the new non-taskbar desktop area

Expected behavior

See that Notepad covers the new whole non-taskbar desktop area

(On move of the taskbar, have the zone area recalculated)

Actual behavior

See that the zone uses its original dimensions, not refactored for the new non-taskbar desktop area. This can even be observed when the zone previews are showing before depositing the window in the zone.

Screenshots

Issue 2:
Environment

Windows build number: Version 10.0.18363.836

PowerToys version: 0.18.1

PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Every time I reboot/log in into my account, a PowerToys Run instance appears for less than a second on the screen. This instance is transparent, although you can see the "start typing" and the borders of the app.

Is this related to a startup issue of the app?
Issue 1:
Hi, can you pls add leaflet functionality to operate custom tile maps in google_maps_flutter?

Issue 2:
Hi,

My native app versions (iOS & Android) are using the tile overlay feature.

Android:

https://developers.google.com/maps/documentation/android-sdk/tileoverlay#add

iOS:

https://developers.google.com/maps/documentation/ios-sdk/tiles#use_gmsurltilelayer_to_fetch_tiles_from_urls

It would be great to use it from the Flutter side as well, simply call these native APIs.

In case it's not too hard to say, I'd like to know what is your estimation for this kind of feature to be production-ready (or shall I ask about google_maps_flutter 1.0.0 first), because it influences my production release timeline (I'm considering to rewrite these two apps in Flutter only).

Thanks!
Issue 1:
When using the 'groups' option to validate multiple groups at once, it would be great if I could find out which validations were triggered in every given group.

This is how I do it currently:

$warnings = $validator->validate($entity, array('warning'));
$errors = $validator->validate($entity, array('error'));

A nicer way would be:

$messages = $validator->validate($entity, array('warning', 'error'));

And then retreive the matched group or groups from the ConstraintViolation object with a getGroups() method.

Maybe I missed something and this is currently possible. If so, please tell me how :-)

Thanks.

Issue 2:
when you create a form by doing :

createForm(new foo(), $object);

with a "bar" form field defined in your foo FormType, the Symfony Form component is looking if one of the method getBar() , isBar() or hasBar() exists. If neither of this methods exists, an exception is thrown. This is a problem for object that use magical methods to simulate getBar() method for exemple.
Issue 1:
Also options like esbuild

https://esbuild.github.io/api/#minify

Issue 2:
Similar to how Deno uses a TypeScript compiler when running code, users should have the option when bundling to minify their compiled files for better performance. The argument after bundle could be -m or -minify. We could see if the minifier would be uglify, which from what I've heard is normally used with npm.

Any thoughts?
Issue 1:
Describe what you were doing when the bug occurred:

Opened profiler

Recorded session

Clicked "Ranked" button

Please do not remove the text below this line

DevTools version: 4.3.0-3e0967783

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159833

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159779)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160302)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:322998)

at ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59363)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107431)

at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99973)

at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99898)

at vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:96672)

Component stack: in Sl

in div

in div

in div

in vo

in Unknown

in n

in Unknown

in div

in div

in Qi

in Ve

in nn

in Da

in Yc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
Description

Airflow currently exposes map_index to the user as a way of distinguishing between tasks in an expansion. The index is unlikely to be meaningful to the user. They probably have their own label for this action. I'm requesting that we allow them to add that label.

To see the problem, consider a dag that sends email to a list of users which is generated at runtime:

with DAG(...) as dag:

@dag.task
def get_account_status():
return [
{
"NAME": "Wintermute",
"EMAIL": "wintermute@tessier-ashpool.com",
"STATUS": "active",
},
{
"NAME": "Hojo",
"EMAIL": "ops@research.shinra.com",
"STATUS": "delinquent",
},
]

BashOperator.partial(
task_id="send_email",
bash_command=dedent(
"""
cat <<- EOF | tee | mailx -s "your account" $EMAIL
Dear $NAME,
Your account status is $STATUS.
EOF
"""
),
).expand(env=get_account_status())

Notice that in the grid view, it's not obvious which task goes with which user:

Use case/motivation

I'd like to be able to explicitly assign a name to each expanded task, that way I can later go look at the right one. I would like this name to be used (when available) anywhere that the user interacts with the expanded task.

In cases where the user provides no names, perhaps we can generate some. For instance, this expansion generates four instances.

BashOperator.partial(task_id="greet").expand(
bash_command=["echo hello $USER", "echo goodbye $USER"],
env=[{"USER": "foo"}, {"USER": "bar"}],
)

The friendliest way would be to use the requested feature name each task:

hi_foo

hi_bar

bye_foo

bye_bar

As it is, the user will see:

1

2

3

4

But if the user doesn't give names, maybe we should generate some names for them:

bash_command_1_env_1

bash_command_1_env_2

bash_command_2_env_1

bash_command_2_env_2

I don't know. I'm creating this issue so we have a place to discuss it.

Related issues

No response

Are you willing to submit a 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

Enable users to use their national characters, which are usually non-ASCIIs as the display name of their dags / tasks.

Use case/motivation

At present, only ASCIIs are allowed for dag_id and task_id as shown in this comment.

However, in many cases, users would like to use their national characters for their dag_ids and task_ids, which apparently leads to some existing issues, related: #21127, #18010

Enabling non-ASCII dag_id / task_id would be a great idea to solve these issues as commented here

For a quick fix, maybe we could add a new optional field display_name for both dag and task.

Considering backward compatibility, dag_id or task_id will be used as UI display name if the field display_name is None.

UPDATE (by @potiuk):

any solution to this one should also include possibility of specifying names for dynamically mapped tasks (individually - per mapped index id)

Related issues

related: #21127

related: #18010

related: #23020

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
It is not possible to match files with a double-extension using "$(basename).ext", i.e. ".js.map" or ".min.css".

You can currently workaround matching ".js.map" files by excluding the extention in the "when":

{
"files.exclude": {
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": { "when": "$(basename).ts"}, // Does nothing
"**/*.js.map": { "when": "$(basename)"}, // Works
"**/*.css": { "when": "$(basename).scss"},
"**/*.min.css": { "when": "$(basename).scss"} // Does nothing
}
}

Ideally I would like to use "when": "$(basename).ext" to exclude ".js" and ".js.map" transpiled Typescript files, and ".css" and ".min.css" transpiled and minified Sass or Less files:

{
"files.exclude": {
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": { "when": "$(basename).ts"},
"**/*.css": { "when": "$(basename).scss"},
"**/*.min.css": { "when": "$(basename).scss"}
}
}

This issue could possibly be resolved by allowing regex expressions, as described in #1214

Issue 2:
VSCode Version: 0.10.12

OS Version: Windows

Steps to Reproduce:

Compile TS -> JS including source maps

Try to filter the js.map file if a corresponding TS file exists

Wasn't able to do so. Tried:

"**/*.js.map": { "when": "$basename($(basename)).ts"}
Issue 1:
Maven integration tests currently do not work with security manager. There are a couple easy to fix issues like passing the right system properties to give access to .class files. However, a larger issue is the forked classloader the maven failsafe plugin uses. We can disable this isolated classloader with useManifestOnlyJar=false. However, the jars from maven itself then have jar hell (the failsafe api jar and failsafe junit jar have duplicate classes). We might be able to exclude the api jar (assuming the junit jar is a superset of the classes).

Issue 2:
Elasticsearch version:

5.0.0

Plugins installed: []

None

JVM version:

java version "1.8.0_71"

Java(TM) SE Runtime Environment (build 1.8.0_71-b15)

Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)

OS version:

Mac OS Sierra

Description of the problem including expected versus actual behavior:

On a plain, empty installation elasticsearch-plugin list causes a stack trace. It should just say that no plugins are installed.

Steps to reproduce:

Install 5.0

Run ./bin/elasticsearch-plugin list

Describe the feature:

./bin/elasticsearch-plugin list
Exception in thread "main" java.io.IOException: Plugins directory missing: /Users/andrew/bin/elastic/stack-5.0.0/elasticsearch-5.0.0/plugins
at org.elasticsearch.plugins.ListPluginsCommand.execute(ListPluginsCommand.java:51)
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
at org.elasticsearch.cli.Command.main(Command.java:62)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:42)
Issue 1:
version : shardingsphere-jdbc-core-5.0.0-beta

question:

Excuse me, can it be achieved? All tables can be realized as broadcastTables by setting a special symbol or other flag bit, because my requirement is that all tables are broadcast tables, and there are almost hundreds of tables. after all settings are set, if additions and deletions are made later, it will cause a lot of work, and I look forward to answering.

Issue 2:
Question

when i use the jdbc.url=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host_ip1)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = host_ip2)(PORT = 1521)) (LOAD_BALANCE = yes)(failover=on)(connect_data= (service_name = orattt))), the class of OracleDataSourceMetaData is error,

public final class OracleDataSourceMetaData implements DataSourceMetaData {

private static final int DEFAULT_PORT = 1521;

private final String hostName;

private final int port;

private final String catalog;

private final String schema;

private final Pattern pattern = Pattern.compile("jdbc:oracle:(thin|oci|kprb):@(//)?([\\w\\-\\.]+):?([0-9]*)[:/]([\\w\\-]+)", Pattern.CASE_INSENSITIVE);

public OracleDataSourceMetaData(final String url, final String username) {
Matcher matcher = pattern.matcher(url);
if (!matcher.find()) {
throw new UnrecognizedDatabaseURLException(url, pattern.pattern());
}
hostName = matcher.group(3);
port = Strings.isNullOrEmpty(matcher.group(4)) ? DEFAULT_PORT : Integer.valueOf(matcher.group(4));
catalog = matcher.group(5);
schema = username;
}

}

throw UnrecognizedDatabaseURLException,

please help me , the shardingsphere dont support oracle RAC???
Issue 1:
Have a use case where users can upload documents from a site and the site will refresh the UI immediately to show the new documents, often faster than the default refresh interval of 1s. Currently there are a few options:

Decrease the refresh interval to < 1s (not recommended given that refresh is expensive and can affect indexing performance if set too low)

Make an explicit/immediate refresh call after the upload action

Delay the update of the view in the UI to allow the new docs to be refreshed in the index.

@mikemccand noted that there is something called ControlledRealTimeReopenThread in Lucene that handles exactly this use case (but not currently exposed in ES), where most search requests don't have to see the latest change but then one specific search request does.

Issue 2:
Feature request: Provide an option to the index operation that will wait until the next scheduled refresh occurs before returning a response. After the response is returned, all documents indexed in that operation should be visible for search.
Issue 1:
Problem description

onNewRequest function does not work

Versions

Material-UI: 0.14.4

React: 0.14.7

Browser: Chrome 51.0.2704.103

-->

Issue 2:
Problem description

Within the AutoComplete component, the onNewRequest function doesn't execute all the time on iOS devices. It only executes after a long tap/hold of the menu item.

Made a quick video to demonstrate what is going on:

https://youtu.be/XSTk6TeIa24

Steps to reproduce

Implement AutoComplete component with onNewRequest function, and listen for changes on that function. It only executes after a long tap/hold, when it should be executed on any tap. Test on iOS simulator (Cordova app), which returns the same result as a real physical device.

The issue doesn't occur through mobile Safari, just an app built with Cordova.

Versions

Material-UI: 0.15.0

React: 15.0.2

Browser: iOS Simulator (and physical iPhone app)
Issue 1:
Electron version: 1.4.16 1.6.6

Operating system: Mac OS 10.11.6

Expected behavior

When creating a new window, setting property "show" to false should make the window stay hidden unless show() is called. The window should also send 'ready-to-show' event once its done loading.

Actual behavior

It works properly unless you set a parent window on Mac OS. On Linux and Windows it works as expected.

How to reproduce

git clone https://github.com/ionphractal/electron-quick-start.git -b mac-show-bug
cd electron-quick-start
npm install
npm start || electron .

Issue 2:
Electron version: 1.6.1

Operating system: macOS Sierra

When you do this from a renderer process:

new electron.remote.BrowserWindow(
parent: parentBrowserWindow,
show: false,
);

The browser window always shows even though the show option is false. If you do not provide a parent, the browser window respects the show option.
Issue 1:
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

The documentation page for FormGroup contains a link to AbstractControl.get. When I click on this link I get a 404 page.

Expected behavior

I expect to see the documentation for the get method on AbstractControl

Minimal reproduction of the problem with instructions

Navigate to https://angular.io/docs/ts/latest/api/forms/index/FormGroup-class.html#!#controls-anchor

Look at the documentation for the contains method

Click on the link in there to AbstractControl.get

You will end up on a 404 page

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

I would like to know how to use the get method

Please tell us about your environment:

macOS Sierra v10.12.4

Angular version: 4.1.0-rc.0

Browser: Google Chrome Browser Version 57.0.2987.133 (64-bit)

Issue 2:
I'm submitting a ... (check one with "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

Almost all methods of AbstractControl aren't being shown on https://angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html

Full list:

setValidators(newValidator: ValidatorFn|ValidatorFn[]): void

setAsyncValidators(newValidator: AsyncValidatorFn|AsyncValidatorFn[]): void

clearValidators(): void

clearAsyncValidators(): void

markAsTouched({onlySelf}: {onlySelf?: boolean} = {}): void

markAsUntouched({onlySelf}: {onlySelf?: boolean} = {}): void

markAsDirty({onlySelf}: {onlySelf?: boolean} = {}): void

markAsPristine({onlySelf}: {onlySelf?: boolean} = {}): void

markAsPending({onlySelf}: {onlySelf?: boolean} = {}): void

disable({onlySelf, emitEvent}: {onlySelf?: boolean, emitEvent?: boolean} = {}): void

enable({onlySelf, emitEvent}: {onlySelf?: boolean, emitEvent?: boolean} = {}): void

setParent(parent: FormGroup|FormArray): void

updateValueAndValidity({onlySelf, emitEvent}: {onlySelf?: boolean, emitEvent?: boolean} = {}):
void

setErrors(errors: ValidationErrors|null, {emitEvent}: {emitEvent?: boolean} = {}): void

get(path: Array<string|number>|string): AbstractControl

getError(errorCode: string, path: string[] = null): any

hasError(errorCode: string, path: string[] = null): boolean

get root(): AbstractControl

Expected behavior

Minimal reproduction of the problem with instructions

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

Please tell us about your environment:

Angular version: 4.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

All

Language: [all | TypeScript X.X | ES6/7 | ES5]

All

Node (for AoT issues): node --version =
Issue 1:
Hello

I am a problem with Babel 6.0.17 and importing modules. My files:

js/actions/constantsActions

export function updateConstants {...}

js/actions/index.js

import * as constantsActions from './constantsActions';

export default {
...constantsActions
};

js/main.js

import {constantsUpdate} from './actions';

constantsUpdate() // function constantsUpdate is undefined

The problem is in main.js with the expected function constantsUpdate being undefined. This code was working with Babel 5. Is there a plugin I am missing or could this be a bug?

.babelrc

{
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": [
"transform-object-rest-spread"
]
}

Issue 2:
Let's say we have the following very simple code:

const a = 3;
export default a;

Pre babel 6, it would compile into this:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
var a = 3;
exports["default"] = a;
module.exports = exports["default"];

Note the last line.

Now in Babel 6, the default export isn't assigned properly. This may be related to: #2694

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
var a = 3;
exports.default = a;