WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible-vault

ANSIBLE VERSION

ansible 2.4.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

CONFIGURATION

DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /test

OS / ENVIRONMENT

running in ubuntu 16.04

not managing any os.

SUMMARY

From the output of `ansible-vault --help decrypt

--output=OUTPUT_FILE output file name for encrypt or decrypt; use - for
stdout

When using ansible-vault decrypt with --output=- or --output - it decrypts to a file named - instead to stdout as expected.

STEPS TO REPRODUCE

Create Dockerfile

FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-add-repository ppa:ansible/ansible
RUN apt-get update
RUN apt-get install -y ansible

ENV ANSIBLE_VAULT_PASSWORD_FILE=test
RUN echo "test" > test
RUN echo "test" > test.txt
RUN ansible-vault encrypt test.txt
RUN ansible-vault decrypt test.txt --output -
RUN cat ./-

run:

docker build -t ansible-vault-test .
docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt
docker run -it --rm ansible-vault-test cat -- ./-

EXPECTED RESULTS

Breefly:

ansible-vault writes the decrypted file to stdout.

TLDR:

run:

docker build -t ansible-vault-test .
docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt

expected result (f.e using ansible 2.3.x ):

test
Decryption successful

actual result:

Decryption successful

run:

docker run -it --rm ansible-vault-test cat -- ./-

expected result:

cat: ./-: No such file or directory

actual result

test

ACTUAL RESULTS

ansible-vault writes the decrypted file to a file named -

Issue 2:
ANSIBLE VERSION

ansible 2.4.0.0

In ansible 2.3.x, it was possible to do ansible-vault decrypt example.txt --output - to get the decrypted output into stdout. In fact, that is advertised in ansible-vault decrypt --help:

--output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout

In Ansible 2.4, this is bugged and results in a file named -.
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.5

Operating System version: Win10

Java version: JDK8

Steps to reproduce this issue

use dubbo API show provider application

ServiceConfig<GreetingsService> service = new ServiceConfig<>();
service.setApplication(new ApplicationConfig("first-dubbo-provider"));

but find this method is annotated by @Deprecated

If i want to show a demo with dubbo API to my students， where can i find a method which with no @Deprecated ？

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

dubbo/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java

Lines 97 to 118
in
56353ae

bootstrap.group(bossGroup, workerGroup)

.channel(NettyEventLoopFactory.serverSocketChannelClass())

.option(ChannelOption.SO_REUSEADDR, Boolean.TRUE)

.childOption(ChannelOption.TCP_NODELAY, Boolean.TRUE)

.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT)

.childHandler(new ChannelInitializer<SocketChannel>() {

@Override

protected void initChannel(SocketChannel ch) throws Exception {

// FIXME: should we use getTimeout()?

int idleTimeout = UrlUtils.getIdleTimeout(getUrl());

NettyCodecAdapter adapter = new NettyCodecAdapter(getCodec(), getUrl(), NettyServer.this);

if (getUrl().getParameter(SSL_ENABLED_KEY, false)) {

ch.pipeline().addLast("negotiation",

SslHandlerInitializer.sslServerHandler(getUrl(), nettyServerHandler));

}

ch.pipeline()

.addLast("decoder", adapter.getDecoder())

.addLast("encoder", adapter.getEncoder())

.addLast("server-idle-handler", new IdleStateHandler(0, 0, idleTimeout, MILLISECONDS))

.addLast("handler", nettyServerHandler);

}

});

Expected Result

Actual Result

What actually happens?
Issue 1:
Hi,

I have created a benchmark suite for Web Components librairies. Vue.js is implemented with his web component target feature, and you can see the raw results here : https://vogloblinsky.github.io/web-components-benchmark/

I will release soon a blog post explaining in detail that, but i want a feedback of many librairies authors before, to be sure i am not wrong in my implementations.

Source code here : https://github.com/vogloblinsky/web-components-benchmark

Can you have a look and give me some feedbacks ?

Thanks

Issue 2:
Vue.js version

2.1.6

Reproduction Link

http://jsfiddle.net/bvjfa9xk/8/

Steps to reproduce

What is Expected? / What is actually happening?

Dragging list item from one bucket to another paints outer item red on a dragenter event.

This is what the fiddle does as expected. I start to drag an item from the 3rd column to the 2nd, upon dragstart the 3rd gets the class immediately. The second gets it only when the mouse hovers over it. As I said this is what I expect to happen.

But if I copy the exact same code from the fiddle and paste it in a local folder /index.html, main.js, also link to vue 2.1.6/ This happens:

Upon dragstart in the 3rd column, the 2nd one immediately gets the class as well.

Same code, same versions, same browser /latest Chrome/

methods: {
dragenter: function (ev) {
debugger
this.$el.classList.add('drop-target')
console.log(this)
}
}

If I place a debugger statement before the class addition, by the time it stops there I see that the column where I started to drag already got the class and $el now referring to the second column.

Everything is the same, I don't know why it behaves different (I'm trying to develop a drag-and-drop application and I just bumped to this issue). First I thought it was webpack/node-module related, so I trashed all of these and started on a single html/js file.
Issue 1:
What problem does this feature solve?

This is a problem to convert some Bootstrap 4 components (or other CSS frameworks) for example:

<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 15%" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-success" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-info" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
</div>

We can not create two components progress-group and progress because inside dives can not accept another div (parent element). Bootstrap 4 does not work in this way.

Existing parent element for each component destroys the Bootstrap 4 structure I can show you another examples:

<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="..." class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="..." class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="..." class="d-block w-100" alt="...">
</div>
</div>

<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
<div class="input-group-append">
<span class="input-group-text">.00</span>
</div>
</div>

and a lot more.

So I want to ask for containerless (a component without parent element as a wrapper) feature for component design system. It can help us to convert a CSS framework to complete Vue toolbox.

What does the proposed API look like?

I am not sure the right way may be a config as { containerless : true }

Issue 2:
What problem does this feature solve?

Right now you can only have 1 root element per template. I know this is by design, but I find myself wrapping everything around a <div> a lot. Now, most of the time is not a big deal, I can live with that, the problem is when either Bootstrap requires a very specific hierarchy, or when dealing with Tables that also require a very specific hierarchy and wrapping everything on a div is not an option.

What does the proposed API look like?

Now, there will be a couple of things to figure out, mainly to what element will the properties provided on the Custom Element will be attached to. I think there two things that can be done:

Find the first child and stick everything to it.

Provide a custom attribute to indicate to what element they should be attached to.
Issue 1:
Uncaught Error: Atom can only handle files < 2MB for now.

Atom Version: 0.162.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/src/project.js:461

Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (/Applications/Atom.app/Contents/Resources/app/src/project.js:461:15)
at Project.module.exports.Project.bufferForPath (/Applications/Atom.app/Contents/Resources/app/src/project.js:438:63)
at Project.module.exports.Project.open (/Applications/Atom.app/Contents/Resources/app/src/project.js:392:19)
at Workspace.module.exports.Workspace.openUriInPane (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:482:29)
at Workspace.module.exports.Workspace.open (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:409:19)
at Ipc.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:118:17)

Issue 2:
Uncaught Error: Atom can only handle files < 2MB for now.

Atom Version: 0.153.0

System: linux 3.13.0-40-generic

Thrown From: tree-view package
Issue 1:
I'm trying to use the setDefaults method in a form type, but I can't figure out how to merge options with defaults, I'm doing this :

<?php

// Creating the form
$form = $factory->create('my_type', null, array(
'test' => array(
'tata' => true,
)
));

// FormType Class
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'test' => array(
'toto' => true,
'tata' => false,
)
));
}

// Resolved options
array(
'test' => array('tata' => true)
)

// I was trying to get
array(
'test' => array('tata' => true, 'toto' => true)
)

How can I achieve this? Thanks

Issue 2:
It is currently not possible to configure nested options. For example:

$resolver->setDefaults(array(
'db' => array(
'dsn' => null,
'user' => 'root,
'password' => '',
'port': 3306,
),
));

It is not possible to resolve this configuration in the following way:

$resolver->resolve(array(
'db' => array(
'dsn' => ...
),
));

because now the other default values under "db" will be dropped. Also, it is not possible to specify allowed values or types for the nested options.
Issue 1:
I work in an environment where we are not allowed to log on as administrator accounts we must Shift click -> "Run as" to use any admin privileges.

Currently the Win Terminal only supports run as Administrator but in order to use this daily I need to be able to run this as an arbitrary user. To this date I don't think I have seen any UWP support this and thus it might not be possible.

Bonus : It would be even better if I could launch each tab as different users while having the settings and core UI under my user.

Thanks in advance

P.S. I hate the security policy

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.476]
Windows Terminal version (if applicable): 0.6.2951.0

Any other software? -

Steps to reproduce

Open up the "About" box

Resize the window

Expected behavior

The overlay resizes with the window size and the about box itself stays centered

Actual behavior

The overlay and box stay at the position they were initially in which is ugly and, depending on the resize, allows selecting of the underlying text or cuts the contents of the box.

Screenshot
Issue 1:
Bug summary

See title

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
X = np.random.randn(100, 5)
ax = plt.figure().subplots()
ax.boxplot(X, patch_artist=True)
assert ax.artists

Actual outcome

AssertionError

Expected outcome

pass

Matplotlib Version

3.5.0b1

Installation

pip

Issue 2:
I want to be able to set the xticks or yticks based on user input, but I can't seem to do this without invoking an if statement in order to use the default behaviour.

To get the default xticks for example, you can run:

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0,1)

plt.plot(x, x**2)
plt.xticks()
plt.show()

However, if I want a user-set variable to set the xticks, I have to do this:

import numpy as np
import matplotlib.pyplot as plt

user_option = None

x = np.linspace(0,1)

plt.plot(x, x**2)
if user_option == None:
plt.xticks()
else:
plt.xticks(user_option)
plt.show()

Since the code plt.xticks(None) gives the following error:

Traceback (most recent call last):
File "tmp.py", line 9, in <module>
plt.xticks(None)
File "/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/pyplot.py", line 1671, in xticks
locs = ax.set_xticks(args[0])
File "/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axes/_base.py", line 2850, in set_xticks
ret = self.xaxis.set_ticks(ticks, minor=minor)
File "/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axis.py", line 1595, in set_ticks
if len(ticks) > 1:
TypeError: object of type 'NoneType' has no len()

Could the plt.xticks and plt.yticks functions allow the passing of None to retrieve default behaviour, or is there some way of getting the default ticks while still passing a variable?
Issue 1:
I am using

node v13.12.0

npm v6.14.1

Windows-x86 1909 Build 18363.752

I should first tell that I recently update nodejs on my system &

I was trying to install dependencies after cloning Realworld repo when I encountered this error.

This the npm generated log 2020-04-09T04_38_30_115Z-debug.log

Issue 2:
*Updated* as of 01/15/2021

Note: Please read this doc before filing a new issue.
Issue 1:
Keith Donald opened SPR-7539 and commented

The following lifecycle is extremely common in web apps:

bind request input to a backing bean

validate the bean

if there are bind/validation errors, re-render the form so the user can retry their submission

Steps 1 and 2 are currently handled by the @MVC framework, via JavaBean @Controller method arguments annotated with the @Valid annotation. However, the 3rd step must always be performed manually by the developer. This leads to duplication across @Controllers.

An example of this:

@RequestMapping(value="/apps", method=RequestMethod.POST)
public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) {
// duplicated
if (bindingResult.hasErrors()) {
return "apps/new";
}
return "redirect:/develop/apps/" + appRepository.createApp(account.getId(), form);
}

@RequestMapping(value="/apps/edit/{slug}", method=RequestMethod.POST)
public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) {
// duplicated
if (bindingResult.hasErrors()) {
return "apps/edit";
}
return "redirect:/develop/apps/" + appRepository.updateApp(account.getId(), slug, form);
}

The duplicated code takes more than half of the method body. Imagine an app with hundreds of form controllers--the duplication adds up.

Something like the following would be ideal:

@RequestMapping(value="/apps", method=RequestMethod.POST)
public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) {
return "redirect:/develop/apps/" + appRepository.createApp(account.getId(), form);
}

@RequestMapping(value="/apps/edit/{slug}", method=RequestMethod.POST)
public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) {
return "redirect:/develop/apps/" + appRepository.updateApp(account.getId(), slug, form);
}

But the question is how can we get to something that is as simple as the above? In some cases, we can rely on RequestToViewNameTranslation. In other cases, additional metadata will be needed to tell Spring MVC which view to render on bind/validation errors.

Affects: 3.0.4

Issue Links:

#11788 HandlerExceptionResolver for @Valid

1 votes, 3 watchers

Issue 2:
Evgeny Goldin opened SPR-7817 and commented

Today, I can't write

String s = Assert.hasText( o.getSomeText())

because Assert usually returns void. If it returns value checked then I can use Assert calls in the way shown above.

I wrote about this trick at http://evgeny-goldin.com/blog/return-something-not-void/.

Affects: 3.0.5

Issue Links:

#14461 Modify org.springframework.util.Assert.* methods so that they will return checked values ("duplicates")
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

next build does not include absolute path to node module

Current Behavior

next build includes absolute path in transpiled require path

Steps to Reproduce (for bugs)

Correct

yarn add next@4.2.0
next build

# Transpiled output
var _extends2 = require('babel-runtime/helpers/extends');

Incorrect

yarn add next@canary
next build

# Transpiled output
var _extends2 = require('/Users/kyle/projects/test/node_modules/babel-runtime/helpers/extends');

Context

Unable to deploy to lambda using up due to up building locally and uploading zip file to s3 rendering absolute paths invalid

Your Environment

Tech
Version

next
canary

node
8.9.0

OS
macos 10.13.2

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

Expected Behavior

Users should be able to bundle different modules into one final chunk.

For example, users importing component hello1.js and hello2.js may want to import both modules at the same time:

const Hello1 = dynamic(import('../components/hello1'))
const Hello2 = dynamic(import('../components/hello2'))
// This will request both hello1.js and hello2.js.

Current Behavior

Webpack 3 allows you to do so using magic comments:

const Hello1 = dynamic(/* webpackChunkName: "hello" */ import('../components/hello1'))
const Hello2 = dynamic(/* webpackChunkName: "hello" */ import('../components/hello2'))
// This should request only one hello.js with both modules.

But magic comments don't work on nextjs.

Context

Sometimes a user requesting a module is going to need more modules in the future and you can bundle those in a single chunk to avoid server round trips.

Your Environment

Next.js version: 3.0.1-beta.5

Environment name and version (e.g. Chrome 39, Node.js 5.4): Chrome 61, Node 6.11

Operating System (Linux, maxOS, Windows): macOS
Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

style attribute is not updated correctly when we set padding and paddingTop at the same time and then re-render with only padding. Same issue with border. I suppose that it would be the same with margin (not tested)

Example: http://codepen.io/testerez/pen/pNRQjW?editors=0010

What is the expected behavior?

The DOM element style should be the last rendered one and should not be affected by the previous style value.

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

Tested on chrome 54 with React 15.4 and 15.3.2

Issue 2:
This "good first bug" is taken by @YongPilMoon. Don't work on it unless that's you!

This has been discussed a few times before but I don’t think there was any conclusion, and PRs intending to solve the issue were not merged for various reasons.

I would like to close those PRs as outdated, and reboot the discussion about this.

Performance considered, the conclusion from @sebmarkbage and @syranide seems to be:

We should consider not allowing conflicting style rules at all.

— #2013 (comment)

IMHO, all things considered it's better to just disallow overlapping and warn in dev.

— #4661 (comment)

Radium by @ianobermiller came to the same conclusion in FormidableLabs/radium#95 but there was some backlash afterwards. React Native seems to allow style expansions but only for a few attributes (e.g. margin and padding, but not border).

I’m closing old pull requests about this, and creating this issue to track implementation of the behavior we seem to agree upon: we should warn in __DEV__ when border and borderBottom are used at the same time. We can discuss more specifics (should either be ignored? should we allow a few whitelisted properties but warn for others?) in this issue.

As a migration strategy, we can suggest people to use something like https://github.com/ActionIQ/style-builder if they really need those shortcuts. It’s also something we’ll need to decide upon when implementing integrated styling.

Related issues:

#2231

#2407

#5030

FormidableLabs/radium#95

Related PRs:

#2013

#4661
Issue 1:
The idea is to instrument JavaScript code and collect types information from the runtime. For example:

Consider JavaScript code (in ES2015):

File render.js:

export function renderContact(contact, container) {
let span = document.createElement('span');
span.textContent = `${contact.firstName} ${contact.secondName}`;
container.appendChild(span);
}

Then we use it in file main.js:

import {renderContact} from "./render";

renderContact({firstName: "Steve", lastName: "Works"}, document.body);

Running this code as-is gives no help, but if it's instrumented then we may callect runtime information. main.js could be instrumented to the following form using esprima/escodegen or TypeScript's parser API:

import {renderContact} from "./render";

CallExpression({line:3, col:0},
null,
renderContact,
[{firstName: "Steve", lastName: "Works"}, document.body])

CallExpression body could roughly look like:

function CallExpression(position:Position, callee:any, fn:Function, args:any[) {
// collect types information part
args.forEach(arg=>CollectArgumentTypesInformation(position, arg));

// execution part to conform JavaScript semantics and do not break the running application code
return fn.apply(callee, args);
}

function CollectArgumentTypesInformation(position:Position, arg:any) {
let type={};
Object.keys(arg).forEach(key=>{
type[key]=typeof arg[key];
});
return type;
}

CollectArgumentTypesInformation for contact parameter would yield something like:

{
firstName:string,
lastName:string
}

that could be later transformed into interface contact (name of the interface is based on renderContact 1st parameter name):

interface contact {
firstName:string,
lastName:string
}

Later on this TypeScript type could be injected into the file like render.ts (next to the render.js) and then be used to generate d.ts file using TypeScript's tsc --declaration. Before running tsc --declaration author could refactor names for better naming and the instrumentation and types collection tool would respect that changes and wouldn't override them.

position would be used to source-map .js and .ts files. Or it could be something similar, maybe using sourceMaps project itself.

Issue 2:
From #7535, it would be useful for JavaScript package authors to have the ability to generate declarations from their project. This would help with getting started on a type definition (it would be populated with known interfaces/functions/types that are exported) and would also allow the creation of continuous integration scripts that check the JavaScript types with the hand-coded definition for inconsistencies.