WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: Microsoft Windows Version 10.0.18362.239
Windows Terminal version (if applicable): 0.3.2171.0

Any other software? None needed to reproduce this.

Steps to reproduce

Open a cmd.exe prompt using Windows terminal

Change the background color using the color command ("color 1f")

Press Enter until you are close to the bottom of the screen

Run the "dir" command so that the text will scroll

Notice that the background color is reset for the part of the window that scroll.s

These images show side by side comparisons between Windows Terminal and the classic console

:

Expected behavior

As noted in the screenshots above, when the window scrolls, it should use the current background color instead of reverting to the default.

Actual behavior

The window is reverting the background color.

Issue 2:
Summary of the new feature/enhancement

Set up the Windows Terminal to have and return a UIA tree.

Proposed technical implementation details (optional)

Create UIA tree

Hook it up properly
Issue 1:
Vue.extend() works well but i think there is no way to extend the corresponding template without changing scope. Here is an example of what i'd like to achieve. <block> is like <slot> but i renamed it not to be confused with the current slot implementation

const BaseForm = Vue.extend({
template: `
<form>
<block name="header">
<h1>{{ title }}</h1>
</block>
<block name="content">Form inputs go here</block>
<block name="actions">
<button @click="saveRecord">Save</button>
<button @click="deleteRecord">Delete</button>
</block>
</form>
`,
data () {
return {
title: 'Base Title',
apiUrl: null,
record: {}
}
},
methods: {
saveRecord () {
// axios.post(this.apiUrl + this.record.id)...
},
deleteRecord () {
// axios.delete(this.apiUrl + this.record.id)...
}
}
})

const PersonForm = BaseForm.extend({
template: `
<extend>
<div block="header">
{{ title }} From Person Form
<button @click="saveRecord">Save from header</button>
</div>
<div block="content">
<input type="text" v-model="record.name" />
<input type="text" v-model="record.age" />
<button @click="incAge">Increase age</button>
</div>
</extend>
`,
data () {
return {
title: 'My Title',
apiUrl: '/api/my/',
record: {
id: 1,
name: '',
age: 0
}
}
},
methods: {
incAge () {
this.record.age++
}
}
})

So js is merged as usual but then the base template blocks are replaced with the new ones when compiling the template. So everything works within the same scope.

<block> and <extend> can be changed with different words/options in the api

Does this make sense? Or is there a better way to do it? Or is it not intact with Vue principles?

The end results should be:

{
template: `
<form>
<div>
{{ title }} From Person Form
<button @click="saveRecord">Save from header</button>
</div>
<div>
<input type="text" v-model="record.name" />
<input type="text" v-model="record.age" />
<button @click="incAge">Increase age</button>
</div>
<button @click="saveRecord">Save</button>
<button @click="deleteRecord">Delete</button>
</form>
`,
data () {
return {
title: 'My Title',
apiUrl: '/api/my/',
record: {
id: 1,
name: '',
age: 0
}
}
},
methods: {
incAge () {
this.record.age++
},
saveRecord () {
// axios.post(this.apiUrl + this.record.id)...
},
deleteRecord () {
// axios.delete(this.apiUrl + this.record.id)...
}
}
}

Issue 2:
What problem does this feature solve?

<template> <span></span> <span></span> </template>

What does the proposed API look like?

<template> <> <span></span> <span></span> </> </template>
Issue 1:
#18968

sets up a really basic structure. ideally split out tests from tests_series and test_frame, in a similar

manner to how we do pandas/tests/frame and pandas/tests/series.

Issue 2:
I have a dataframe that contains a datetime64 column that seems to be losing some digits after a groupby.first(). I know that under the hood these are stored at nanosecond precision, but I need them to remain equal, since I'm merging back onto the original frame later on. Is this expected behavior?

import pandas as pd
from pandas import Timestamp

data = [
{'a': 1,
'dateCreated': Timestamp('2011-01-20 12:50:28.593448')},
{'a': 1,
'dateCreated': Timestamp('2011-01-15 12:50:28.502376')},
{'a': 1,
'dateCreated': Timestamp('2011-01-15 12:50:28.472790')},
{'a': 1,
'dateCreated': Timestamp('2011-01-15 12:50:28.445286')}]

df = pd.DataFrame(data)

Output is:

In [6]: df
Out[6]:
a dateCreated
0 1 2011-01-20 12:50:28.593448
1 1 2011-01-15 12:50:28.502376
2 1 2011-01-15 12:50:28.472790
3 1 2011-01-15 12:50:28.445286

In [7]: df.groupby('a').first()
Out[7]:
dateCreated
a
1 2011-01-20 12:50:28.593447936

When I compare the datetime64 in the first row to the datetime64 after the groupby.first(), the two are not equal.
Issue 1:
Symfony version(s) affected: 4.1.0

Description

Symfony 4.1.0 logs a request.CRITICAL whenever authentication is required.

[2018-06-14 20:52:10] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2018-06-14 20:52:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: "Access Denied." at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php line 68 {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)"} []
[2018-06-14 20:52:10] security.DEBUG: Access denied, the user is not fully authenticated; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)"} []
[2018-06-14 20:52:10] security.DEBUG: Calling Authentication entry point. [] []

This behavior is different than Symfony 3, which does not log the request.CRITICAL. It should be silenced because the exception is actually caught.

How to reproduce

Follow part 1-a on https://symfony.com/doc/current/security.html to configure basic authentication. Observe the log file when the /admin route receives a GET request.

Possible Solution

Additional context

Issue 2:
Symfony version(s) affected: 4.1.0

Description

Seems like ever since #25366, authentication exceptions are first logged, and then handled gracefully (redirecting to a login entrypoint).

If an unauthenticated user hits a route they cannot access (e.g. a homepage route with this firewall rule - { path: ^/, role: ROLE_ADMIN }), what currently happens is:

step 1: Symfony\Component\Security\Http\Firewall\AccessListener rightfully throws an AccessDeniedException exception

step 2: because of its new and high priority level (of 2048 since #25366), Symfony\Component\HttpKernel\EventListener\ExceptionListener decides to log this exception: Uncaught PHP Exception AccessDeniedException .... Logging such a CRITICAL error has the bad side-effect of causing Monolog to send me an email.

step 3: because of its (now-comparatively-low) priority level of 1, Symfony\Component\Security\Http\Firewall\ExceptionListener gets triggered. It converts the exception to a (redirect) Response (to the login page), and the website appears to work. However, it's way too late already, as "step 2" (above) already logged the error and sent me an exception email.

Possible Solution

Symfony\Component\Security\Http\Firewall\ExceptionListener can be executed with a higher priority than Symfony\Component\HttpKernel\EventListener\ExceptionListener, so that graceful handling of authentication exceptions can happen before logging.

Changing Symfony\Component\Security\Http\Firewall\ExceptionListener, so that the KernelEvents::EXCEPTION priority is higher (from 1 to 2049) works around the problem.
Issue 1:
Just changed a project to Bootstrap 2.3.2 (the only change I made was to change 2.3.1 to 2.3.2 in the .js and .css links to the netdna CDN. Now any dropdowns on mobile don't work when you tap them (they work fine in a desktop browser if I resize the browser window so that the header nav.nav-collapse collapses into the menu. The submenus also work fine on an iPad when the nav-collapse menu is not collapsed.

Issue 2:
I had a project using more or less the same menu and it worked. Found out it was using Bootstrap version 2.3.1. Compared version 2.3.2 and 2.3.1 and found that in version 2.3.2 there's this snippet of CSS that reads:

.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990;
}

and the rule: position: fixed; seems to cause all the problems.

I still don't undertand the point of the markup that is added by the bootstrap dropdown plugin:

<div class="dropdown-backdrop"></div>

So I've temporarily fixed the bug on my end by adding a style to override the style causing the problem:

.dropdown-backdrop {
position: static;
}

To me this looks like a bug introduced from version 2.3.1 to 2.3.2. Maybe I'm wrong. If someone could explain the purpose of the empty div, it would be helpful.
Issue 1:
Environment

Windows build number: Microsoft Windows [版本 10.0.18362.295]
Windows Terminal version (if applicable): 0.4.2382.0
Profile Font: Consolas

Any other software?
Remote Linux box locale: en_US.UTF-8

Steps to reproduce

(Some of these steps might not be relevant)

Open the debian WSL profile

SSH to a remote Linux box

Start a tmux session

Edit a file which contains Chinese character and has lines more than the terminal using neovim

Scroll through the lines in neovim

Expected behavior

The unicode(Chinese) characters' font size should be consistent and should not be duplicated.

Actual behavior

When scrolling, by chances the Chinese characters get duplicated and the font get smaller than other normally rendered Chinese characters.

Issue 2:
Current tags and unused tags cannot be clearly distinguished

Hope to highlight
Issue 1:
Vue.js version

1.0.21

My code here

my svg-icon component:

<template>
<svg viewBox="0 0 24 24"
preserveAspectRatio="xMidYMid meet"
fit
:style="style">
<g v-if="path"><path :d="path"/></g>
<slot v-if="!path"></slot>
</svg>
</template>

<script type="text/babel">
export default {
props: {
path: {
type: String,
default: ''
},
size: {
type: Number,
default: 24
}
},
computed: {
style () {
return {
fill: 'currentcolor',
verticalAlign: 'middle',
width: this.size,
height: this.size
}
}
}
}
</script>

and sometimes I want to use it like this:

<template>
<svg-icon :size="size">
<circle cx="6.181" cy="4.063" r="2.591"></circle>
<path d="M.6 12.202a5.614 5.614 0 0 1 11.228 0"></path>
<g>
<circle cx="11.98" cy="6.993" r="1.569"></circle>
<path d="M12.24 12.202c.018-1.853-.625-2.927-1.35-3.495-.29-.227.721-.185 1.11-.185 1.877 0 3.4 1.802 3.4 3.68"></path>
</g>
</svg-icon>
</template>

<script>
import svgIcon from '../icon/icon.vue'
export default {
props: ['size'],
components: {
svgIcon
}
}
</script>

What is Expected?

I expect both pass a path props and slot is OK

What is actually happening?

slot is not OK, and path props seems fine.

the warn showed when use slot

vue.common.js?e881:987[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Issue 2:
Vue.js version

1.0.16

Reproduction Link

http://jsfiddle.net/5sH6A/320/

Steps to reproduce

JSfiddle above... inspect console and errors will show up.

What is Expected?

'g' and 'line' to be treated as svg elements after being dropped in between two svg tags via 'slot''

What is actually happening?

'g' and 'line' not being recognized as svg elements and being treated as custom components unless warpped in another 'svg' tag on top of an already existing 'svg' tag.

error: Unknown custom element: 'g'- did you register the component correctly? For recursive components, make sure to provide the "name" option.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/7797/

Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:142
Expected
<[]string | len:1, cap:1>: [
"Container kube-apiserver/kube-apiserver is using 2.71/2.5 CPU",
]
to be empty
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/resource_usage_gatherer.go:376

Previous issues for this test: #26185 #27142 #30275 #31101 #31105 #32059 #32074 #32078 #32098 #32437 #32525 #33344

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/6840/

Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:387
There should be no high-latency requests
Expected
<int>: 1
not to be >
<int>: 0
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:381

Previous issues for this test: #26185 #27142 #30275 #31101 #31105 #32059 #32074 #32078 #32098 #32437 #32525 #33344
Issue 1:
📝 Provide a description of the new feature

Although Powertoys Run is great for quickly finding applications, it doesn't find system menus. Like Setting, Windows Update, Accounts, that kind of stuff. So I find myself still using the Windows key and then running the search instead, the old/normal way, but I prefer the experience better with the Powertoys Run UI. It would be great if this could be a complete replacement for Windows key/start typing to search.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Environment

Windows build number: Windows 10 Home Single Language 1909
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Run

Steps to reproduce

The v0.18.1 is only able to search for programs but not individual files, even when running in administrator mode.

Expected behavior

The v0.18.0 could search for all files and programs. The same was expected of the update.

For the sake of complete reporting, I went back and installed v0.18.0 and did not experience the issue, which would rule out any problem caused by settings on the device.

Actual behavior

Screenshots
Issue 1:
We accidentally applied PureRenderMixin to a page that that rendered the same result given the same props and state, however, it broke the page since the context changed (for a isUserLoggedIn).

Issue 2:
I know this.context is not officially there but quite a few libraries rely on it, and it seems like it's getting into shape with #2509.

I'm trying to understand how exactly shouldComponentUpdate is supposed to be implemented with context in mind. I noticed it accepts a third argument (nextContext) and I can extend PureRenderMixin to also check it:

shouldComponentUpdate: function(nextProps, nextState, nextContext) {
return !shallowEqual(this.props, nextProps) ||
!shallowEqual(this.state, nextState) ||
!shallowEqual(this.context, nextContext); // this will throw without context, read on
}

Components that don't opt into this.context by not omitting contextTypes will not get this third argument, which is understandable.

However this presents a problem when we have a <Middle /> component in between between <Top /> context owner and <Bottom /> context consumer. If <Middle /> implements a restrictive shouldComponentUpdate, there is no way for <Bottom /> to react to <Top />'s context updates at all:

(fiddle)

var Bottom = React.createClass({
contextTypes: {
number: React.PropTypes.number.isRequired
},

render: function () {
return <h1>{this.context.number}</h1>
}
});

var Middle = React.createClass({
shouldComponentUpdate: function (nextProps, nextState, nextContext) {
return false;
},

render: function () {
return <Bottom />;
}
});

var Top = React.createClass({
childContextTypes: {
number: React.PropTypes.number.isRequired
},

getInitialState: function () {
return { number: 0 };
},

getChildContext: function () {
return { number: this.state.number };
},

componentDidMount: function () {
setInterval(function () {
this.setState({
number: this.state.number + 1
});
}.bind(this), 1000);
},

render: function() {
return <Middle />;
}
});

React.render(<Top />, document.body);

The same problem would occur if I tried to give Middle a generic context-aware shouldComponentUpdate as I wrote above, because Middle has no this.context unless it opts in.

This is possible to work around by adding contextTypes to Middle, but it doesn't look like a good solution. You'd need to explicitly add necessary contextTypes on every level with smart shouldComponentUpdate so it's too easy to slip up.

Will this be solved by #2112? Is there another solution in the meantime? What is the recommended way?
Issue 1:
Hi, when I compile a ts file which contains following imports

import Navigations from './navigations.tsx';

it outputs exactly the same line

import Navigations from './navigations.tsx';

This breaks the code in the browser. I would expect that "tsx" import will be renamed to "jsx"

import Navigations from './navigations.jsx';

Is this somehow achievable?

Thanks

PS: I am using meteor, not webpack, which does not resolve imports like import Navigations from './navigations';

Issue 2:
Currently, TS can't find modules when you use a file extension in the import name (import {Foo} from './foo.ts';) - SystemJS updated and file extensions are now required (though the spec issue is still under discussion) on imports (without setting some legacy settings in System.config). So when compiling with --module, you can either have a functioning typechecker (no extensions on your imports) or a functioning runtime (.js on your imports, since your result files have .js extensions). This is complicated further by systemjs's bundler, which looks for dependent files before TS transpiles them, so you have to use .ts extensions on your imports so the bundler can resolve the paths to real ones.

This extension madness is all incredibly awkward to work with, and I'm not sure if this needs module resolution logic updating on our part, arguing for old behavior on the loader spec, or talking to systemjs and having them change how they're finding modules ignoring the spec.
Issue 1:
In case of lightmaps, the engine assumes a secondary uv set was defined. In many cases, such as online configurators where users change only the color of the material, the lightmaps do share the same primary uv set. The engine should assume that if a lightmap is set, and if no secondary set is provided that it should use the primary buffer instead. Or internally duplicate the primary buffer to the secondary.

This would prevent the necessity to provide twice the same data if exported from third party editors or code the above.

Issue 2:
I've noticed some duplication in renderer source (WebGLRenderer) as well as the fact that the whole thing is sparsely annotated and is several thousands lines long. Maybe pull it apart somewhat? Extract abstract classes or routines out of it perhaps? Extra documentation in code wouldn't go amiss either. I think for many people including myself, that chunk of code is fairly difficult to decipher. I know there is a handful of bugs in cascading shadow maps implementation for instance, but it doesn't look like it would be easy for someone unfamiliar with the whole 6.5k lines to identify the problem. If there was a distinct set of files dedicated to shadows - it would be a lower entry barrier. I think this is necessary for project's overall health.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I expect that a menu item on a touch device should function approximately the same as on desktop: when a selected item is clicked (touched) the darkened background should turn white (at some point - after finishing the transitions).

Current Behavior

The background keeps being dark (although slightly darker than a normal selected text). It does not do this on desktop.

Steps to Reproduce (for bugs)

Browse to the the multiple select demo on a mobile device or using Chrome's emulator

Select some names

3.Try deselecting a name

Observe it still having a grey background

Context

When testing out custom rendering we were bit by this when our fonts didn't include the bold font weights. Then the darkness of the boxes was the only thing that discerned whether a item was selected or not. With this bug, even a freshly deselected item would remain visibly selected.

Your Environment

Tech
Version

Material-UI
beta.32

React
15.6

browser
Chrome on desktop and Android

Issue 2:
https://material-ui.com/api/dialog/

Would love to have a flag to make dialog box draggable. It could have a draggable handle or just all dialog would be draggable.

I use a dialog box for settings and stuff behind the dialog changes when settings in the dialog are changed and sometimes dialog box just covers content behind it and simply drag would solve it and UX would be much better.

I have searched the issues of this repository and believe that this is not a duplicate.
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: 1.8

Steps to reproduce this issue

基于xml的方式可以对分组方法进行merger调用

但是基于注解方式@Reference或@Method都不支持指定merger

Expected Result

可以通过@Reference或@Method指定merger

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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

当使用分组聚合时，如果只有一个分组，这时分组下面的所有提供者会被调用一次，然而希望的是，只需要一个提供者被调用。

xxx

xxx

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

Just put your stack trace here!