WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Marc Logemann opened SPR-1623 and commented

wouldnt it make sense to enhance WebApplicationContextUtils with sister methods which accept a PortletContext? Currently I am working in a Portal Environment where its not easy to get a ServletContext, but a PortletContext is not different at all, unfortunately Websphere's PortletContext doesnt extend ServletContext.

perhaps like this:

static WebApplicationContext getRequiredWebApplicationContext(PortletContext pc)

static WebApplicationContext getWebApplicationContext(PortletContext pc)

Affects: 1.2.6

Issue 2:
Keith Donald opened SPR-5368 and commented

It is common to use a component-scan directive in your app-config to populate your root application context.

Unfortunately, discovered @Controllers will not be hooked into the DispatcherServlet pipeline without also configuring a custom DefaultAnnotationHandlerMapping bean in this same context.

This appears to because the default AnnotationHandlerMapping instance the DispatcherServlet references does not detect handlers in ancestor contexts.

It would be nice if it would detect @Controllers in ancestor contexts by default... then no explicit DefaultAnnotationHandlerMapping would need to be registered if no other strategies were needed.

Affects: 2.5.6

Issue Links:

#10413 AbstractUrlHandlerMapping registerHandler does not register REST url paths if configured in global web.xml contextConfigLocation param instead of DispatcherServlet init-param ("is duplicated by")
Issue 1:
In test_auc_duplicate_values we use reorder=True which is deprecated.

If we remove that, the test fails. I'm confused as to what is happening?

Issue 2:
I find the equal distance warning in the neighbors module a bit annoying and think we should change the default value, so that no warning is raised.

As iris has duplicate points, the warning will always be raised there. For digits, I think the warning is raised because entries are discrete (0-16) so same distances are very likely.
Issue 1:
Electron version:1.8.1 beta

Operating system: mac os high sierra

Expected behavior

system: mac os 10.11.6

Actual behavior

How to reproduce

This my BrowserWindow config.

const url = require('url')

var config = {
resizable: true,
frame: false,
titleBarStyle: 'hidden-inset',
fullscreenable: false,
"vibrancy": "dark"
}

var win = new BrowserWindow(config)
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}))

Issue 2:
Electron version: 1.7.6

Operating system: MacOS High Sierra GM

Expected behavior

Title bar should not be invisible

Actual behavior

Title bar is invisible

How to reproduce

mainWindow = new BrowserWindow({
vibrancy: 'light',
titleBarStyle: 'hiddenInset',
width: 800,
height: 600
})

$ git clone git@github.com:gerges/electron-quick-start.git -b issue/invisible-titlebar
$ npm install
$ npm run start
Issue 1:
I'm new for Atom so I don't have a clue how to fix this.

On Windows, I copy some text that have a trailing carriage return from other application, such as excel, notepad, then try to search the opening doc in Atom. Then I was surprising that there's no match. Because you cannot see the trailing carriage return in any form on the editor, you may not aware the fact that you are actually searching a 2-lines text.

The search input box seems to be a single-line one, so I guess we may need to trim CRs and LFs there.

Atom Version 0.181.0 2015/2/19 上午5:56:33

Issue 2:
Pasting something like this in the Find box displays incorrectly

'use strict';

It seems like the box gets the height of the content so the overflow hidden doesnt happen.

Mac 0.152.0
Issue 1:
My understanding is that org.neo4j.server.transaction.timeout is only for server mode. I would like to request a timeout feature for embedded mode, to automatically abort any transaction longer than a given time. Ideally this could be overridden in an individual transaction. Previously we used the recommendation here: http://www.markhneedham.com/blog/2013/10/17/neo4j-setting-query-timeout/ however, from the author's update comment, it seems this no longer works in Neo4j 2.2+. Maybe the execution guard function was removed? The timeout workaround we constructed in our own code (following that blog post, in an earlier Neo4j) does seem broken on Neo4j 2.3+. So we no longer have a way to catch runaway queries, as far as I know.

For comparison: Postgres statement_timeout http://www.postgresql.org/docs/9.3/static/runtime-config-client.html

Issue 2:
I am using Java API in an embedded graph (version 1.9.4) and using the following code to get the ShortestPath -

GraphAlgoFactory.shortestPath(expander, 15)

where expander is a expander with specific relationship types.

In rare cases, the graph (which is about 28 G on a JVM sized to 10G) just spins for more than 30 minutes. Is there a way to specify the timeout so that shortestPath query is cancelled?
Issue 1:
Problem description

It's a weird issue. The border of a TextField has the color black (see Screenshot):

Checking the CSS in the developer console:

So obviously there is no color set on the border.

This happens in Chrome, but in Firefox it works. But it get even more weird: When I build my app with the flag NODE_ENV=production then it DOES work properly.

Also changing these two lines of code here: https://github.com/callemall/material-ui/blob/master/src/TextField/TextFieldUnderline.js#L94-L95

… to borderBottom: 'solid 2px ' + focusColor, work as well, even with a normal build.

I wanted to create a Webpackbin example, but there it works fine.

I'm using Meteor, don't know if that matters. But maybe someone find a solution.

Versions

Material-UI: 0.16.4

React: 15.4.1

Browser: Chrome 54

Issue 2:
borderColor does not work!

I copied the code from http://www.material-ui.com/#/components/text-field.

Styled examples

const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocusStyle: {
color: blue500,
},
};
// .......
<TextField
hintText="Custom Underline Focus Color"
underlineFocusStyle={styles.underlineStyle}
/>

It doesn't work, the border-corlor keeps in default.

borderBottomColor works well.

I tried to set borderBottomColor, and it works.

I don't know if it was a bug.

Chrome

create-react-app
Issue 1:
Hi, I found two duplicate property set in exported CSS.

I don't know if it's the purpose or there's problem with LESS to CSS conversion.

/* line 3483, padding */

.btn-group-xs > .btn {
padding: 5px 10px;
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}

/* line 4956, display */

.thumbnail {
display: inline-block;
display: block;
height: auto;
max-width: 100%;
padding: 4px;
line-height: 1.428571429;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 4px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}

Thx

Issue 2:
I have popovers in hrefs in a modal div with couple of text and number inputs and all inputs are cleared out when popover is hiding.
Issue 1:
I believe the spacing between the polygons shouldn't be there. Below is my code. Is this a bug or am I missing some option? It happens on all backends.

I know that I can enlarge the polygons slightly so that they overlap each other which then removes these spaces, but this approach is only suitable for very simple polygons like the rectangular ones above, and in my real use-case I have arbitrarily shaped polygons, so that's not really an option.

import numpy as np

import matplotlib as mpl
mpl.use('agg')
import matplotlib.pyplot as plt
from matplotlib.collections import PolyCollection

def createPolygons(xv, yv):
assert xv.shape == yv.shape
xy = np.dstack((xv,yv))

# adapted from matplotlib.collections.QuadMesh.convert_mesh_to_paths
verts = np.concatenate((
xy[0:-1, 0:-1],
xy[0:-1, 1: ],
xy[1: , 1: ],
xy[1: , 0:-1],
), axis=2)
verts = verts.reshape((xv.shape[0]-1) * (xv.shape[1]-1), 4, 2)

return verts

def drawPlot(verts, outputFile, blackbg, widthPx):
if blackbg:
mpl.rcParams['savefig.facecolor'] = 'black'
else:
mpl.rcParams['savefig.facecolor'] = 'white'

ax = plt.gca()
fig = plt.gcf()

if blackbg:
fig.patch.set_facecolor('black')
ax.patch.set_facecolor('black')
ax.spines['bottom'].set_color('white')
ax.spines['top'].set_color('white')
ax.spines['left'].set_color('white')
ax.spines['right'].set_color('white')
for i in ax.get_xticklabels(): i.set_color("white")
for i in ax.get_yticklabels(): i.set_color("white")
for t in ax.xaxis.get_ticklines(): t.set_color('white')
for t in ax.yaxis.get_ticklines(): t.set_color('white')
ax.xaxis.label.set_color('white')
ax.yaxis.label.set_color('white')

coll = PolyCollection(verts, facecolors=None, edgecolors='none')

ax.add_collection(coll)
ax.autoscale()

width = fig.get_figwidth()
dpi = widthPx / width

fig.savefig(outputFile, dpi=dpi)
plt.close(fig)

x = np.linspace(0, 10, num=10)
xv, yv = np.meshgrid(x, x)
verts = createPolygons(xv, yv)
drawPlot(verts, 'test.png', blackbg=True, widthPx=500)

Issue 2:
This is the underlying problem raised in #1178.

It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.

Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.

import numpy as np
import matplotlib.pyplot as plt

z = np.arange(150)
z.shape = (10,15)

fig, axs = plt.subplots(2,2)

ax = axs[0,0]
cs0 = ax.contourf(z, 20)
cbar0 = fig.colorbar(cs0, ax=ax)

ax = axs[0,1]
cs1 = ax.contourf(z, 20, alpha=0.3)
cbar1 = fig.colorbar(cs1, ax=ax)

ax = axs[1,0]
im2 = ax.imshow(z, interpolation='nearest')
cbar2 = fig.colorbar(im2, ax=ax)

ax = axs[1,1]
im3 = ax.imshow(z, interpolation='nearest', alpha=0.3)
cbar3 = fig.colorbar(im3, ax=ax)

plt.savefig("test1.pdf")
plt.savefig("test1.svg")
plt.show()
Issue 1:
It would be a good enhancement to have a 'Open Recent' on the File Menu, like in Sublime.

Issue 2:
I would like to be able to find files or folders that I have recently opened in previous editing sessions. On Windows this is usually done under the File menu. For example: File > Recent Files > (displays a sub menu of top 10 most recently used files in descending order).

File

Recent Files

> (top 10 most recent files)

Recent Folders

> (top 10 most recent folders)
Issue 1:
What steps will reproduce the problem?
1. create file "a" and "b"
2. run `os.Rename("a", "b")`

What is the expected output?
file "b" should be atomically replaced with file "a"

What do you see instead?
rename a b: Cannot create a file when that file already exists.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
windows 8 64-bit

Which version are you using? (run 'go version')
go version go1.1rc3 windows/amd64

I think it should use MoveFileEx syscall with MOVEFILE_REPLACE_EXISTING flag set instead
of plain MoveFile syscall.

Issue 2:
by awalterschulze:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. http://play.golang.org/p/d-6SskGBBg
2.
3.

What is the expected output?
equal

What do you see instead?
pointer to zero value has been decoded as a nil value

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?

Which version are you using? (run 'go version')

Please provide any additional information below.
Issue 1:
Describe the bug

A clear and concise description of what the bug is. If your problem is not a bug, please file under Support or Usage Question

To Reproduce

Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question

// Example code here

Expected behavior

A clear and concise description of what you expected to happen.

Environment:

Axios Version [e.g. 0.18.0]

OS: [e.g. iOS 12.1.0, OSX 10.13.4]

Browser [e.g. Chrome, Safari]

Browser Version [e.g. 22]

Additional Library Versions [e.g. React 16.7, React Native 0.58.0]

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue 2:
We're using axios both on the back-end, to communicate with some third-party APIs, and on the front-end, to communicate with our back-end. I recently ran into some problems trying to add some client-side tests for code that uses axios. Because axios detects its environment at require time, even using something like jsdom, one is constrained to setting up axios as either browser-oriented or node-oriented for the entire test suite. This matters in testing because relative URLs fail when running in node (and possibly other differences).

I see several possible workarounds:

have two separate client and server test suites

always pass baseURL from window.location.href when using axios on the client

always force a client environment via jsdom for the whole test suite

None of these seem that great though (with the first one probably being the best and least likely to cause trouble, but requiring more duplicate setup). Any suggestions for how to approach this?
Issue 1:
Description:

When using bundle inheritance and template inheritance at the same time (where one of the child bundle's templates extends one of the parent bundle's templates), an error is thrown.

Expected outcome:

It should be possible to extend a parent bundle's template from a child bundle's template.

How to reproduce:

https://gist.github.com/4226370

Note that this happens with all values of xdebug.max_nesting_level and also with xdebug disabled (in this case the code keeps running until the process is out of memory).

The following appear to be referencing the same issue, where a parent bundle's template is also being extended by a child bundle's template:

phiamo/MopaBootstrapBundle#327

http://stackoverflow.com/questions/11951379/maximum-function-nesting-when-extending-twig-template-for-sonata-admin

Issue 2:
What do you think about creating an interface EventDispatcherAware, a trait EventDispatcherAwareTrait and maybe a tag too (event_dispatcher_aware) to inject automatically the EventDispatcher on services?
Issue 1:
Both danish and faroese keyboard layouts uses Alt Gr-´ to print the pipe character "|" but the key binding resolver registers Alt Gr-´ as "ctrl-alt-["

I tried adding the following rule to keymap.cson:

'.workspace .editor:not(.mini)':
'ctrl-alt-[': 'native!'

But this causes atom to both fold the current line and print |. I tried changing it to

'.workspace .editor:not(.mini)':
'ctrl-alt-[': 'notset!'

but that caused atom to neither fold or print the pipe.

I've tried adding rules to ".workspace .editor", ".workspace" and "body" but no matter how much I fiddle around with the keymap.cson file I cannot get atom to consistently print | and not fold the current line.

If I bind ctrl-alt-[ to something other than native! or notset! then atom consistently calls that command, but I cannot find any documentation about binding a keystroke pattern to print a specific character.

I'm using Atom 0.136.0 on Windows 7 64bit

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
Hi,

Please make typescript auto-property support like C# to easier use.

Thanks.

Issue 2:
When you're creating a class and you want to define some properties you have to write much code to do so.

Current way

class MyClass {

/**
* Creates a new Instance of this class
*/
constructor(private _id: number, private _name: string) {
}

/**
* To define a property, you need a get function ...
*/
get id(): number {
return this._id;
}

/**
* ... and a set function ...
*/
set id(value: number) {
this._id= value;
}

/**
* ... for every single ...
*/
get name(): string {
return this._name;
}

/**
* ... property.
*/
set name(value: string) {
if (this.checkName(value)) {
this._name = value;
}
}

/**
* Do something
*/
private checkName(name: string): boolean {
return name && name.trim();
}
}

Please consider to add additional ways to define properties, similar to C# where you also have more than one way.

Additional ways in a future release

class MySecondClass {
/**
* Creates a new Instance of this class
*/
constructor(id: number, private _name: string) {
this.id = id;
}

/**
* Define a property in only one line
*/
public id(): number { get; set; }

/**
* Define a property with additional functionallity
*/
public name(): string {
get { return this._name; }
set {
if (this.checkName(value)) {
this._name = value;
}
}
}

/**
* Do something
*/
private checkName(name: string): boolean {
return name && name.trim();
}
}
Issue 1:
Currently with the extensions API, we have access to output channels (creation and access through vscode.window.createOutputChannel()). And likewise, we can get adhoc user input through vscode.window.showInputBox.

I think what would be really helpful is if the extensions API included the capability to have a console-like experience, much like the debug console has (input part of the experience with the output). Not necessarily for "debugging" purposes, but for a more consistent and extended user experience exchange for ongoing for user input creation, then VS Code output consumption, followed by more user input creation, ... so on and so forth.

At the moment, the showInputBox() functionality with the output channel can seem like a one-time exchange, without the continuity of a input/output console (like the debugger console).

Issue 2:
While it is awesome that we have the Debug Console for an interactive console experience while debugging, it would be ideal if VS Code also supported a persistent REPL (interactive console) which could also be used at any time. Users of languages such as PowerShell, F#, Python, Ruby, and many others would benefit from this.

At least in the case of PowerShell, all that would really be needed is an event that can be registered when the user enters a command and then some API for writing the output. The PowerShell, F#, and Elm extensions already simulate this by allowing the user to select some text, run a command to execute it, and then have the output written to an output channel.

Users of the PowerShell extension have requested feature this here: PowerShell/vscode-powershell#10

cc @Krzysztof-Cieslak
Issue 1:
The title says everything. If you have several files open, and press CTRL-O, at the moment the open dialog will default to "Recently Used". However, it makes a lot of sense to default, as a starting point, to the directory where the file currently viewed is.

For example if you are working on the file youtRepo/auth/button/facebook.js, and you want to open youtRepo/auth/button/local.js, you should be able to press CTRL-O and find yourself in youtRepo/auth/button/. Again, this is what happens in Sublime and I find it immensely helpful.

I tried to do it myself, but I am not familiar with Atom's code. However, the relevant lines seem to be https://github.com/atom/atom/blob/master/src/browser/atom-application.coffee#L225-L227 and https://github.com/atom/atom/blob/master/src/browser/atom-application.coffee#L171.

Issue 2:
When you create a new buffer and hit save, Atom will present me with a save dialog and the default selected folder is the project root. That's almost never the place I want to put a file.

Sublime Text was a lot smarter with this -- although I do not remember the exact heuristics. For example, it would propose saving the file in the same location where the file you last had opened was. This worked really well for me: Usually I create a new file by splitting an existing file, creating a test for a module (and those two are in directly adjacent directories) or similar.

Even if I want to save to the root directory, which is the current behavior, navigating upwards in the file save dialog is really simple.

PS: I am using Atom 0.187.0
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.166.0

System: Mac OS X 10.10.2

Thrown From: Atom Core

Stack Trace

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

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

Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (/Applications/Atom.app/Contents/Resources/app/src/project.js:355:15)
at Project.module.exports.Project.bufferForPath (/Applications/Atom.app/Contents/Resources/app/src/project.js:332:63)
at Project.module.exports.Project.open (/Applications/Atom.app/Contents/Resources/app/src/project.js:286:19)
at Workspace.module.exports.Workspace.openUriInPane (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:485:29)
at Workspace.module.exports.Workspace.open (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:412: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)

Commands

2x -1:41.5 core:select-down (atom-text-editor.editor)
-1:40.1 core:backspace (atom-text-editor.editor)
-1:38.7 core:select-down (atom-text-editor.editor)
-1:38.1 core:backspace (atom-text-editor.editor)
-1:37.0 core:move-down (atom-text-editor.editor)
-1:36.7 core:move-up (atom-text-editor.editor)
2x -1:36.4 core:select-down (atom-text-editor.editor)
-1:35.6 core:move-up (atom-text-editor.editor)
2x -1:34.0 core:move-down (atom-text-editor.editor)
-1:32.0 core:select-down (atom-text-editor.editor)
-1:31.7 core:move-up (atom-text-editor.editor)
-1:31.0 core:save (atom-text-editor.editor)
-0:04.3 core:move-right (atom-text-editor.editor)
-0:04.1 core:move-up (atom-text-editor.editor)
4x -0:03.8 core:select-right (atom-text-editor.editor)
6x -0:00.0 core:save (atom-text-editor.editor)

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"fontSize": 13,
"invisibles": {}
}
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.2.2
gulp-snippets, v0.6.0
language-scala, v1.1.0
linter-javac, v0.1.3
linter-scalac, v0.3.3
scala-format, v0.1.2
script, v2.16.0

# Dev
No dev packages

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:
They shrink so much that with many open files the titles become unreadable, e.g.:

Issue 2:
When I select some text and then paste something instead of it, sometimes I get random piece of the pasted text being selected. Look at the screencast:

Here I'm selecting pieces of text and pasting some other text. In one of three times it results in a part of the pasted text being selected.

It leads to some inconvenience in my work. After I replace selected text with text from the clipboard, I should check whether something is selected before I type anything (because the text I'm typing will replace the selection).

The same when I start typing while some text is selected. The typed symbol replaces the selection, but sometimes it becomes selected itself. So when I type the second symbol, it replaces the first one.

The behaviour which I observe in other text editors is: replace selected text with pasted/typed one, deselect anything, place the cursor after the pasted text. This is the most convenient option, I guess.

My Atom version is 0.175.0 (and I've observed it in all previous versions), my system - OS X 10.9.5.