WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The conponents works fine when compiling but there is a warning displayed in the console

WARNING in ./~/@angular/core/@angular/core.es5.js

6857:19-40 Critical dependency: the request of a dependency is an expression

WARNING in ./~/@angular/core/@angular/core.es5.js

6883:19-106 Critical dependency: the request of a dependency is an expression

This only comes when i am running angular4 RC .

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

When compiling using webpack, in angular rc7 core libraries there are a couple of warnings.

Expected behavior

I guess no warnings... :-)

Reproduction of the problem

Install a bare project, the simplest you like using webpack with the Angular2 rc7 revision and you will get the warnings.

Please tell us about your environment:

All the last versions of Angular2 rc7, typings, ts and webpack related dependencies. All of them on the latest versions npm has.

Angular version:

2.0.0-rc.7
Issue 1:
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-SNAPSHOT

Operating System version: mac os

Java version: 1.8

Step to reproduce this issue

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

Expected Result

What do you expected from the above steps？

Actual Result

What is actually happen?

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

Just put your stack trace here!

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

ExtensionLoader.getActivateExtension

if (isMatchGroup(group, activateGroup)) {
// 这个应该放到 if 里面，会更合适
T ext = getExtension(name);
if (!names.contains(name)
&& !names.contains(Constants.REMOVE_VALUE_PREFIX + name)
&& isActive(activateValue, url)) {
exts.add(ext);
}
Issue 1:
It would be great to implement some simple mouse improvements for multi-monitor setups.

I have 2 monitors with different resolutions. When moving the mouse from one monitor to another, it can get "stuck" on corners where the monitors (which appear to the system as being of different "sizes") don't align. Adjusting for resolution to let the mouse travel from the upper-left corner of one monitor to the upper-right corner of the next (and lower-left to lower-right) would make my setup much easier to use.

The open source app LittleBigMouse does this pretty well, but the configuration is very slow and it is somewhat flaky on startup. It also appears to be abandoned. I don't know anything about the source, but at least you can see what it does and try it out to see if you think it improves the standard Windows mouse handling.

I think this type of functionality would fit in well with the PowerToys portfolio.

Issue 2:
Summary of the new feature/enhancement

For some shortcuts there is no way to natively deactivate them. Implementing the option to remap them to do nothing / deativate them would allow users to get rid of unwanted shortcuts.

This is especially useful for shortcuts that easily get triggered by accident. For example, I sometimes press Alt and Tab in close succession and it is always very annoying when the window switches because of this.
Issue 1:
React version: 16.12.0

Steps To Reproduce

Use renderToString to render <source> element with srcset attribute

Link to code example: https://codesandbox.io/s/react-dom-camelcase-bug-1rnxt

The current behavior

srcSet isn't transformed to srcset

The expected behavior

srcSet becomes srcset

Issue 2:
There seems to be a lot of misunderstanding in the react community about how defaultValue works. It is often expected that if the defaultValue of an element is changed then that should be reflected in the UI. This is not the case since defaultValue is only set when the component is first rendered.

When people complain about this (#1484, #1663, #2764) it is usually suggested that they use value instead of defaultValue but this is often seen as unpractical in a form were there are many input fields since all fields now need an onChange listener to be editable. (This is not actually true, you can put an onChange listener on a wrapping element but this generates a lot of warnings #1118, #3070).

I feel that none of the above solutions are practical, but an easy solution is to set a key attribute on a wrapping element. If the form contains elements with defaultValue fields that are changed along with the key, the change will be reflected in the UI.

I think this is a good solution for a common UI case where you have a list of entities you want to be able to edit. If you click one of them a form shows up with the entity value populated and if you click on another element you want the form to be updated with that entity's data.

Perhaps it could be documented in order to avoid future confusion. Or is there an even better solution?
Issue 1:
Examples bug report

Example name

with-firebase-authentication

Describe the bug

It is not really a bug but a request for serverless implementation of with-firebase-authentication example. Currently, this example uses a custom server which makes it ineligible for deploying to a serverless environment. It would be very helpful if a serverless target version of this example could be provided.

Additional context

A serverless target example will make the deployment of firebase projects very easy and also help as a good model for developers to migrate their projects from custom server to serverless. A guide along these lines would also be very helpful.

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I should have a way to copy files to root of out folder while doing next export. I thought about doing this in exportPathMap in next.config.js but I am not sure when out folder will be created for me to copy files.

Current Behavior

I could not find how to do this in docs, so, I am not sure if it is possible. Is there a standard way of doing this?

Steps to Reproduce (for bugs)

NA

Context

I was trying to setup netlify redirect and that requires me to place a _redirects file in the out folder. I am not clear yet on how to achieve that in the build step.

Your Environment

Tech
Version

next
v4.2.3

node
v8.4.0

OS
MacOS high sierra 10.13.3

browser
63.0.3239.132

etc
Issue 1:
To check if all routes have been secured properly it would be really good to have the router:debug command accept a role as parameter to only show the routes available to that role.

Issue 2:
Hello,

Do you know if it's possible to check if a ROLE can access to a route depending on the configuration of the firewall.

I would like to create a controller to redirect to a route automatically but only if the user have a ROLE allowed to access the route.

for example, if I have the following configuration:

access_control:
- { path: ^/secured/activities, roles: ROLE_CLIENT }
- { path: ^/secured/client/user, roles: ROLE_ADMINISTRATOR }

From a controller I would like to be able to check like this:

$targetPath = $request->getSession()->get('_security.target_path');

if ($this->securityContext->isGrantedForRoute('ROLE_ADMINISTRATOR', $targetPath) {
return new RedirectResponse($targetPath);
}

isGrantedRoute doesn't exists, but it's just to show the thing I would like to do. I would like to be able to do that because, I have a login form and I would like to redirect on same the path the user was before he loose it's session, but depending on it's rights, we can't redirect on this path. I created an ExceptionListener like this: http://symfony.com/doc/master/cookbook/security/target_path.html to set the last route in session.

For example if the user connects with ROLE_ADMINISTRATOR, and access to /secured/client/user, wait 30 min, loose the session and reconnect with ROLE_CLIENT, we must not redirect him on /secured/client/user.
Issue 1:
Electron version: tested on 1.6.2, but same on all versions

Operating system: All

Expected behavior

When you subclass BrowserWindow, you shoud be able to use instances of these subclasses as arguments for dialog.showMessageBox.

Actual behavior

When you subclass BrowserWindow, you cannot use instances of these subclasses as arguments for dialog.showMessageBox .

How to reproduce

Subclass BrowserWindow with a custom constructor.

Try using an instance of that class as argument of dialog.showMessageBox.

You get an empty message box.

What actually happens.

The code at lib/browser/api/dialog.js:24 checks for window.constructor !== BrowserWindow.

In that case, the first argument is interpreted as an options argument.

It should instead use the instanceof operator.

With a quick search on the repo, this happens at at least 3 places of electron's code :

https://github.com/electron/electron/blob/d4a8a64ba7be50906ed5116669b7c06d8da3574f/lib/browser/api/menu-item.js line 15 which checks for Menu constructor

https://github.com/electron/electron/blob/d01250eceb6d567378df1de44b5631246c1a523b/lib/browser/api/menu.js line 150 which checks for BrowserWindow constructor

https://github.com/electron/electron/blob/8c2cf03f378008baf2cb31050795ac9c929411b0/lib/browser/api/dialog.js line 24 which checks for BrowserWindow constructor

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

Operating System: macOS 10.13.6

(also verified on Windows 10)

Expected Behavior

I expect to be able to abort Bluetooth scanning (initiated by calling requestDevice()) even if there are no scan results.

Actual Behavior

Currently it is only possible to abort a scan by calling the callback provided by the webContents event 'select-bluetooth-device' (in the main process). However, if there are no scan results the callback is never called and there is no callback to use.

To Reproduce

Start scanning by calling requestDevice() in an environment with no BLE devices (or with a filter that does not match any devices).

Additional Information

One solution would be to trigger 'select-bluetooth-device' with an empty list immediately when requestDevice is called. This would be backwards compatible and have the least impact on the current API.

Personally, I would prefer if the callback was provided in some other way. It does not make sense of providing the callback repeatedly in the 'select-bluetooth-device' event as the callback usage is not related to an individual scan result but rather to the ongoing scanning process.
Issue 1:
Please fill the following out:

Name: آما ویرای کیان

Homepage url: http://amasystem.ir/

Brand Guidelines/Licensing: http://amasystem.ir/

Logo: http://amasystem.ir/Assets/Image/ama-vira-logo-b.png

Example:

Name: Microsoft

Homepage url: https://microsoft.com

Brand Guidelines/Licensing: https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx

Logo: https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/

Issue 2:
Please fill the following out:

Name: Ama Vira Kian

Homepage url: http://amasystem.ir

Brand Guidelines/Licensing: http://amasystem.ir
Issue 1:
Issue Type: Bug Report

Ansible Version: 2.0.0.1

Ansible Configuration: nothing changed

Environment: OS X 10.11.2

Summary:

Conditional role inclusion in a play still tries to expand variables passed onto this role, even if the role is being skipped

Steps To Reproduce:

Given a play of this kind:

...
roles:
- { role: some_role,
some_var: "{{ some_value }}",
when: some_value is defined,
tags: [ tag1, tag2 ]
}

when the some_value variable is undefined, one gets an error ERROR! ERROR! 'some_value' is undefined even though the output clearly shows that the role is being skipped:

skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}

Expected Results:

The role should be skipped without the error, as was the behaviour of Ansible 1.9.4

Actual Results:

...
TASK [some_role : description of first task in that role] **
task path: /Users/some_user/some/path/to/roles/some_role/tasks/main.yml:2
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
ERROR! ERROR! 'some_value' is undefined

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

Files/Template

ANSIBLE VERSION

ansible 2.3.2.0 (stable-2.3 10aa164166) last updated 2017/06/29 18:32:01 (GMT +300)
config file = /home/user/.ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

CONFIGURATION

none

OS / ENVIRONMENT

N/A

SUMMARY

Lots of application, I install with ansible, are tar archives downloaded with 'maven_artifact' or 'unarchive' modules.

Some of these archives contains templates of configuration files in jinja2 format. I want to be able copy those files to application config directory with replacing jinja2 placeholders and without copying them to my local machine.

Now I have to use module 'replace', but I think it may be more native to use 'template' module with option 'remote_src=yes'

STEPS TO REPRODUCE

- name: Get Snapshot app
maven_artifact:
group_id: "{{ component_group_id }}"
artifact_id: "{{ component_artifact_id }}"
repository_url: "{{ snapshot_repository }}"
version: "{{ component_version }}"
extension: 'tar.gz'
dest: "{{ some_path }}.tgz"

- name: Extract tarball
unarchive:
remote_src: yes
src: "{{ some_path }}.tgz"
dest: "{{ app_directory }}"

- name: Copy configuration files
template:
remote_src: yes # <- this is what I want
src: "{{ app_directory }}/conf_templates/{{ item }}.j2"
dest: "{{ app_directory }}/conf/{{ item }}"
with_items: "{{ conf_files }}"

EXPECTED RESULTS

Files from directory 'conf_templates' should be copied to directory 'conf' with jinja2 filters applied

ACTUAL RESULTS

Now I can fetch those files to my local machine into temporary directory and then copy them back as templates, or use 'replace' module to replace jinja2 placeholders.
Issue 1:
I'm submitting a ... (check one with "x")

[ x ] bug Report
[ ] feature request
[ ] support request

Current behavior

Having a component with a ngClass, where the clauses have two or more of the same css classes, will be getting the css classes set wrongly, when using the component twice in a view.

Expected behavior

All components used multiple times in a view should.

Minimal reproduction of the problem with instructions

For better understanding I'll start with the Tour of Heroes: Part 3 Exmaple available on Plnkr and modify it.

To reproduce it you will have to give my-hero-detail a ngClass, like [ngClass]="{'main' : isMain, 'main second': !isMain}" and set isMain as a input variable of the component. When using the component my-hero-detail twice in a view, where the first component is set to (isMain)=true and the second is one is set to (isMain)=false, you will have a class missing in the first component. The second component will have the correct class set, being class="main second", while the first component will have an empty class field class="".

Modified Tour of Heroes: Part 3 Exmaple: https://plnkr.co/edit/N9kiStd5mfDbqwGzmNiw?p=preview

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

Basically setting the right classes, when needed, without loosing a class.

Please tell us about your environment:

Windows 10, VS Code

Angular version:

2.2.1

Browser:

Reproduced in Chrome and Edge Browser

Language:

Typescript

Issue 2:
This is a plunk of the official one in the api preview with multiple class added instead, and change to alpha48

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

if you click the button and disabled back and forth, you will see that both class don't get added.
Issue 1:
Electron version: Any??

Operating system: Any??

This is where I found out about it: https://developer.chrome.com/multidevice/webview/tipsandtricks

Issue 2:
We had a person report:

To increase nodejs memory limits it's common to use f.e. "NODE_OPTIONS=--max-old-space-size=8192".

For few seconds the slack.exe process appears in task manager, then disappears without any warnings or errors, doesn't matter if it's x32 or x64 version

Person thinks it’s something incompatible with node.dll(at initialization) slack use.

Electron version: 1.8.x

Operating system: Windows 10

Slack version 3.1.1

Expected behavior

Slack should launch without issue.

Actual behavior

Slack process starts in task manager and ends quickly after, no error or crash reported.

How to reproduce

User steps:

cmd

cd %USERPROFILE%\AppData\Local\Slack

set NODE_OPTIONS=--max-old-space-size=8192

slack.exe

It won’t start

If you:

set NODE_OPTIONS=

slack.exe

Slack starts without issue
Issue 1:
Description of the new feature/enhancement

I think it has feature reset settings

Proposed technical implementation details (optional)

Issue 2:
Description of the new feature/enhancement

On Windows 10, when you pin the native PowerShell shortcut to start, there is a menu item "Run as Administrator" when you right-click it.

However, the same operation for Windows Terminal results in this:

The user has to choose "more" -> "Run as Administrator".

I hope Windows Terminal has the top-level "Run as Administrator" just as native PowerShell does.

Proposed technical implementation details (optional)
Issue 1:
v7 Regression

Potential Commit/PR that introduced the regression

#10161

Description

When we recently upgraded from 7.5 to 7.8 we experienced a bundle size increase from ~3,4 MB to 3.5 MB minified (+90 KB difference)

When we checked the bundle diff, we found that a function _getRequireWildcardCache is being re-defined for every module in our application and adds quite a bunch of code in total.

Searching for the function, we found that it's a new feature in babel 7.6. Here's a blog post where @ifsnow , who built this feature explains it nicely: https://www.notion.so/Improving-Babel-Import-performance-makes-React-Native-faster-4ab20915a599481ab8fbb4993db38709 (thanks for the explanation by the way)

But what we find now is that besides the performance improvement we're hoping to get, we're seeing this regression in bundle size.

Is that to be expected? Is it possible to opt-out of this optimization?

Issue 2:
Here's the input file.

(function () {

'use strict';

const angular = window.angular;

function mainContainer() {

return {
restrict: 'E',
templateUrl: 'packages/main-container/main-container.html'
};

}

angular.module('app')
.directive('mainContainer', [
mainContainer
]);

}());

And here's the output.

'use strict';

(function () {

'use strict';

var angular = window.angular;

function mainContainer() {

return {
restrict: 'E',
templateUrl: 'packages/main-container/main-container.html'
};
}

angular.module('app').directive('mainContainer', [mainContainer]);
})();

I'm using the default settings.
Issue 1:
VSCode Version: 1.1.0

OS Version: Mac OSX 10.11.4

Steps to Reproduce:

Open Visual Studio Code

Open any file

Right click in any word to show the popup menu

The native Mac OSX popup menu is replaced by a particular Visual Studio Code menu

However, the operating system native popup usually provides useful things such as spell check. Visual Studio Code popup menu options would be added to the native Mac OSX popup.

The images below shows the differences between a native Mac OSX application and Visual Studio Code.

Mac OSX popup menu in native TextEdit app:

Replaced popup menu in Visual Studio Code:

Issue 2:
VSCode Version: 1.1.0

OS Version: Win 8.1

Steps to Reproduce:

Map a network drive to a location.

Make mapped location unreachable.

File > Open Folder...

VS Code will become non-responsive for a period of time, after which several duplicated OS errors pop up regarding inability to connect to the drive.
Issue 1:
Scheduler takes 100% of CPU without task execution

#13637

Issue 2:
I have a kind request for all the contributors to the latest provider packages release.

Could you please help us to test the RC versions of the providers?

Let us know in the comment, whether the issue is addressed.

Those are providers that require testing as there were some substantial changes introduced:

Provider amazon: 8.0.0rc2

Remove deprecated "delegate_to" from GCP operators and hooks (#30748): @shahar1

take advantage of upcoming major version release to remove deprecated things (#30755): @vandonr-amz

add a stop operator to emr serverless (#30720): @vandonr-amz

SqlToS3Operator - Add feature to partition SQL table (#30460): @utkarsharma2

New AWS sensor — DynamoDBValueSensor (#28338): @mrichman

Add a "force" option to emr serverless stop/delete operator (#30757): @vandonr-amz

Add support for deferrable operators in AMPP (#30032): @syedahsn

Fixed logging issue in DynamoDBValueSensor (#30703): @mrichman

DynamoDBHook - waiter_path() to consider resource_type or client_type (#30595): @utkarsharma2

Add ability to override waiter delay in EcsRunTaskOperator (#30586): @vincbeck

Add support in AWS Batch Operator for multinode jobs (#29522): @vandonr-amz

AWS logs. Exit fast when 3 consecutive responses are returned from AWS Cloudwatch logs (#30756): @vincbeck

Remove @poke_mode_only from EmrStepSensor (#30774): @vincbeck

Organize Amazon provider docs index (#30541): @eladkal

Remove duplicate param docstring in EksPodOperator (#30634): @jlaneve

Update AWS EMR Cluster Link to use the new dashboard (#30844): @dakshin-k

The guidelines on how to test providers can be found in

Verify providers by contributors

I have marked issues that were tested in RC1 as completed.

All users involved in the PRs:

@syedahsn @eladkal @utkarsharma2 @vincbeck @vandonr-amz @shahar1 @dakshin-k @mrichman @jlaneve

Committer

I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Issue 1:
Kai Hackemesser opened SPR-8582 and commented

I have converted an xml config file into java config. The xml config then and now the java config defined the "messagesource" bean and imported a handful of other xml configs.

Some logic beans defined in the imported xml files depend on messagesource which is now defined in the importing config class - circle closed but exception thrown. As this was working in the pure xml config, I see this as a kind of regression.

I was able to work around here by defining a separate java config file just for the message source and importing this in the main java config as well. But it would be nice if the config interpreter would be able to handle this for me the same way the xml config handler was doing this.

Attachments:

proof.jar (6.35 kB)

Issue Links:

#13227 Java config for Web app context and servlet context - autowiring the configuration fails. ("is duplicated by")

#13252 Detect circular dependencies within @Configuration classes and throw a helpful exception

Referenced from: commits spring-attic/spring-framework-issues@09dd8ab, spring-attic/spring-framework-issues@4ea27b6, spring-attic/spring-framework-issues@a1c4743

Issue 2:
Geoffrey Wiseman opened SPR-1359 and commented

I'm encountering a problem with Autowiring and Factories that seems to be, at the very least, unfortunate, and quite probably unintentional (e.g. a Bug).

Since it's somewhat complicated, and since I described it in the forum system already, I'll point this to that rather than duplicate it.

http://forum.springframework.org/viewtopic.php?t=9361

I've verified that the same thing happens in Spring 1.2.5. I'd have a hard time isolating this from the larger config, so I haven't yet done so; if I can find the time, I'll try and figure it out.

Affects: 1.2.3, 1.2.5

Attachments:

source.zip (1.55 kB)