WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Steps to reproduce:

Open a file in atom with the package vim-mode enabled.

Change the file permissions.

Esc i (switch to insert mode).

Atom Version: 0.165.0

System: Mac OS X 10.10.2

Thrown From: Atom Core

Stack Trace

Uncaught Error: EACCES, open '/Users/Yvan/Downloads/test.css'

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: EACCES, open '/Users/Yvan/Downloads/test.css'
at Error (native)

Commands

-0:00.0 vim-mode:activate-insert-mode (input.hidden-input)

Config

{
"editor": {
"fontSize": 12,
"tabLength": 4,
"showInvisibles": true,
"softWrap": true,
"autoIndentOnPaste": false
}
}

Installed Packages

# User
ascii-codes, v0.3.3
autocomplete-plus, v1.0.0
color-picker, v1.2.6
editor-stats, v0.16.0
file-icons, v1.4.3
html-entities, v0.2.0
language-haskell, v1.0.0
language-latex, v0.4.1
language-rust, v0.3.2
language-viml, v0.2.0
linter, v0.9.0
linter-coffeelint, v0.1.7
linter-javac, v0.1.3
linter-jshint, v0.1.0
linter-php, v0.0.11
linter-pylint, v0.2.0
linter-rubocop, v0.2.1
linter-scalac, v0.3.3
linter-scss-lint, v0.0.11
linter-shellcheck, v0.0.6
linter-xmllint, v0.0.5
minimap, v3.4.9
project-manager, v1.14.1
tabs-to-spaces, v0.8.0
travis-ci-status, v0.11.1
vim-mode, v0.22.0
visual-bell, v0.9.0

# Dev
No dev packages

Issue 2:
Perhaps put a message in the status bar or somewhere else, but catch it either way.
Issue 1:
From the discussion in #18115 :

we should add the Double Submit Cookies CSRF prevention strategy as described by

https://www.owasp.org/index.php/CSRF_Prevention_Cheat_Sheet#Double_Submit_Cookies

If doable, this should be the default CSRF prevention strategy used in symfony SE

Issue 2:
It would be nice add cookies csrf token storage. Use case: we are having form which available for anonymous users (and bots like googlebot). Session starts on each time when this page open. And too much files was generated with session data.
Issue 1:
Hello there.

Doing a right click on a flash object opens up a context menu as expected, but the positioning in 2.0.0-beta.1 is wrong. This happens on both 32-bit and 64-bit builds for Windows and also on Ubuntu 64-bit.

The positioning is correct in v1.8.2.

Additional info:

Windows 7 x64

Flash Player: 28.0.0.161

Minimal app for reproducing (win-64bit and linux-64bit):

wrong-context-menu-position.zip

Issue 2:
Electron version: 2.0.0-beta.1

Operating system: Windows 10 and Ubuntu 16 (I cannot reproduce on macOS)

Expected behavior

We use event.pageX and event.pageY to position the context menu under the mouse and this used to work fine in Electron 1.7.x.

Actual behavior

The coordinates can easily end up outside of the window.

How to reproduce

electron quick start example

open the renderer and add below code

right click

=> the menu opens outside the window

var electron = require("electron");
var menu = new electron.remote.Menu()
menu.append(new electron.remote.MenuItem({ label: 'MenuItem1', click: function () { console.log('item 1 clicked') } }))
menu.append(new electron.remote.MenuItem({ type: 'separator' }))
menu.append(new electron.remote.MenuItem({ label: 'MenuItem2', click: function () { console.log('item 2 clicked') }, type: 'checkbox', checked: true }))

window.addEventListener('contextmenu', function (e) {
e.preventDefault()
menu.popup({ window: electron.remote.getCurrentWindow(), x: e.pageX, y: e.pageY })
}, false)
Issue 1:
The pull request to allow injecting ENV parameters introduced an issue when building the container.

When a container is merged, the mergeEnvPlaceholders will duplicate existing placeholders. In a local project, where I had 9 env() parameters, this meant that the first 3 were duplicated 32768 times. Later when the compiler calls resolveEnvPlaceholders it will loop through all of these impacting performance pretty badly.

I think the problem is that using array_merge_recursive will append duplicate values of nested arrays if the keys are numeric. I've never contributed to Symfony before so I'm not sure on this one, but I don't know if it needs to be fully recursive given that the environment placeholders should be scalar values.

If it really does need to be recursive then something like the function mentioned in the comments for the array_merge_recursive docs page could be used. I did a simple performance check (microtime) for one of the compiler passes that was slowing down (ContainerBuilderDebugDumpPass)

0.023882150650024 # with the function from the comments in the php docs
16.744822025299 # as it is now
0.023157119750977 # with only one level merge

I'll create a pull request using the simple merge and see what you think.

I guess this won't affect anything before v3.2

Issue 2:
The FileType currently prints the full qualified file system path to a file into the value attribute of the input field. This should be prevented at all costs inside the FileType (not in the template).
Issue 1:
Tobias Mattsson opened SPR-8728 and commented

It would be really helpful if the profile attribute could take names of profiles that all has to be active.

For instance:

<beans profile="production,datacenter_us">
...
</beans>
<beans profile="production,datacenter_eu">
...
</beans>

As for syntax there would need to be a notation that can express both OR and AND, possibly using | and ,

Like:

<beans profile="staging|production">
...
</beans>

Even better would be if the syntax was in line with other expressions such as SpEL.

Affects: 3.1 M2

Issue Links:

#13818 Provide boolean logic on bean profiles, i.e. NOT profile. ("is duplicated by")

#21010 Profile activation: not operator does not work consistently

#12637 Support profile exclusivity and/or bean definition finality

7 votes, 12 watchers

Issue 2:
Mark Fisher opened SPR-9654 and commented

This can lead to an implicit "escaping" of the yet-to-be-initialized instance. It's more subtle than an explicit escape of a "this" reference, but it still allows the instance to be used before it is fully initialized (e.g. any explicit or implicit "this" references within the overridden method).

This is a decent explanation of the potential consequences:

https://www.securecoding.cert.org/confluence/display/java/MET05-J.+Ensure+that+constructors+do+not+call+overridable+methods

I discovered this while trying to create a custom Environment subclass that initializes a couple of its own final instance varirables within its constructor and then attempts to use those in its overriding implementation of customizePropertySources(..).

Affects: 3.1.2

Issue Links:

#13652 AbstractEnvironment should not call overridable method from constructor ("duplicates")
Issue 1:
Description of the problem

Three.js Github repository is more than 700mb big. It sounds like this issue already came up and may be related to the Github history but I think that is getting REALLY big and that'd be great if there are some Git pros out there knowing how to deal with that!

Note git shallow-clone could be a work around it.

Repoduce:

gitroot git clone https://github.com/mrdoob/three.js
Cloning into 'three.js'...
remote: Enumerating objects: 45, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 221599 (delta 23), reused 9 (delta 3), pack-reused 221554
Receiving objects: 100% (221599/221599), 727.72 MiB | 10.24 MiB/s, done.

More information

➜ three.js git:(dev) du -sh *
4.0K	LICENSE
4.0K	README.md
2.8M	build
3.4M	docs
1.9M	editor
362M	examples
268K	files
32K	icon.png
92K	package-lock.json
4.0K	package.json
3.2M	src
1.8M	test
72K	utils
➜ three.js git:(dev) du -sh .*
4.0K	.editorconfig
743M	.git
4.0K	.gitattributes
8.0K	.github
4.0K	.gitignore
4.0K	.npmignore
4.0K	.travis.yml

Three.js version

Dev

Issue 2:
#####Git folder is too big, cloning repository last like 1 hour

Is there a way this library "restart" git not to have that big git file

Three.js version

Dev

r103

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. run `go test -coverprofile=coverage.out ./...`

What is the expected output?

coverage.out contains coverage all of the specified packages

What do you see instead?

`cannot use test profile flag with multiple packages`

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

6g

Which operating system are you using?

OS X 10.9

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

go version go1.2 darwin/amd64

Please provide any additional information below.

If I manually construct a coverage.out file from multiple packages, it seems to work
fine:

1. go test -coverprofile a.part ./a
2. go test -coverprofile b.part ./b
3. echo "mode: set" >coverage.out
4. grep -h -v "mode: set" *.part >>coverage.out
5. go tool cover -html=coverage.out

Why can't `go test -coverprofile` do this automatically?

Issue 2:
Duplicate strings can waste memory and cause lots of allocations, but may be cheaper at
allocation time.

Interning strings has a lookup cost, but can save memory and even CPU by reduced number
of GCs.

I'd like to have this choice, for when I know my strings are large and likely duplicates.

Manual interning in user code,

var internedStrings struct{
sync.RWMutex
m map[string]string
}

... leads to lock contention and a map that grows forever.

The runtime could have a less contentious map and could integrate with the garbage
collector, such that strings that are only referenced from the intern table to
themselves are still collected and removed from the internal map.
Issue 1:
Context:

Playwright Version: 1.2.1

Operating System: Mac

Node version: 12.14.1

Browser: Firefox, Webkit

Code Snippet

https://github.com/benoitjchevalier/playwright-focus

npm install

node run.js

Observe lack of focus ring on some FF screenshots

Describe the bug

Hello there 👋 . We're building an in-house visual regression tool using playwright which has been a huge help for us. I've recently come across an edge case on Firefox and sometimes Webkit.

When running multiple pages (each with a unique context) of the same browser in parallel and taking screenshots of a focused element then on FF the screenshot will miss the focus ring.

Chrome always behaves and I've seen rare occurrences where webkit would also suffer from the focusringlessness.

The element itself is correctly identified as active by the browser when testing through element === (document|shadowRoot).activeElement, before and after the screenshot.

I've created a small repro in the above repo. Please note that this repo does everything from the node context where our tool runs the tests in the browser context and the notifies the node context when a screenshot should be taken. So the difference is that we focus from the browser context where the reproduction focuses from the playwright elementHandle. That said the results are similar.

I'm hoping this can be fixed at the playwright level and isn't a limitation at the browser level :)

Issue 2:
Context:

Playwright Version: 1.3.0

Operating System: Linux/Docker

Node.js version: 14

Browser: Firefox

Extra: https://try.playwright.tech/?s=nsosu

Code Snippet

// @ts-check
const playwright = require("playwright");

(async () => {
for (const browserType of ['chromium', 'webkit', 'firefox']) {
/** @type {import('playwright').Browser} */
const browser = await playwright[browserType].launch();
const page1 = await (await browser.newContext()).newPage();
const page2 = await (await browser.newContext()).newPage();
await page1.setContent(`<button id="foo" onfocus="window.gotFocus=true">foo</button>`)
await page2.setContent(`<button id="foo" onfocus="window.gotFocus=true">foo</button>`)
await page1.focus("#foo")
await page2.focus("#foo")
console.log(browserType, "page1", await page1.evaluate(() => !!window["gotFocus"]))
console.log(browserType, "page2", await page2.evaluate(() => !!window["gotFocus"]))
await browser.close();
}
})();

Describe the bug

Actual: firefox page1 false

Expected: firefox page1 true

Reported via Slack: https://playwright.slack.com/archives/CSUHZPVLM/p1597434617186900
Issue 1:
Autocomplete in the REPL add \ when needed to file names but julia1.0 functions do not like them

julia> DelimitedFiles.readdlm("a\ a.txt")
ERROR: syntax: invalid escape sequence

julia> DelimitedFiles.readdlm("a a.txt")

works

Issue 2:
Autocompleted paths which include whitespaces lead to an error as the whitespaces are automatically masked with a leading single backslash

see also

https://discourse.julialang.org/t/invalid-escape-sequence/12154/2

julia> isfile("c:\\temp\\some folder with whitespace\\x.jl")
true

julia> include("C:\\temp\\some\ folder\ with\ whitespace\\x.jl")
ERROR: syntax: invalid escape sequence

julia> include("c:\\temp\\some folder with whitespace\\x.jl")

julia> versioninfo()
Julia Version 0.7.0-beta.0
Commit f41b1ecaec (2018-06-24 01:32 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
JULIA_BINDIR = C:\Julia-0.7.X\bin\
JULIA_EDITOR = "C:\Program Files (x86)\Notepad++\notepad++.exe"
JULIA_HOME = C:\Julia-0.6.X\bin\

julia>
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: v 0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run (ish)

Steps to reproduce

It used to be "Press CTRL+WIN"...

An alternative:

Open chrome (or any similar browser)

Hide the browser window

Press alt+space and type "Chrome"

Select the first option

Expected behavior

The main reason I starting using PowerToys was for the amazing Launcher. I understood it was replaced by the Run tool that has an integrated Window Walker.

I expect to be able to run the "alt-tab" alternative tool and just that. Not a mix that makes using an alternative to alt tab worse than alt-tabbing.

Actual behavior

CTRL+WIN doesn't do anything anymore. Function is disabled

ALT+Space runs the new Run, however the alt+tab feature is gone. Selecting, for example, the browser will just open a new instance of chrome, instead of "alt-tabbing" to the open app.

I'd just like to use the "Window walker" integration. Separated from the Wox and alike features.

Screenshots

Here's a quick GIF.

I have an open Chrome browser.

I switch focus to windows terminal

Alt+space to open the search bar and type "chrome"

Select first option

As a result, it just opens a new chrome browser instance instead of switching to the existing one in the background.

https://imgur.com/CEZY0Py

Issue 2:
Like the header says, need to be able to centralize the taskbar items as I have a 49" ultrawide and the clock and background apps are far too far to the right and too small. Likewise, the start menu is too far to the right to make it comfortable to use all the time.

I know there's a way to enlarge the icons, but it's either too small or too big.
Issue 1:
This url

http://doc.rust-lang.org/core/?search=Option%3A%3Aunwrap_or_else

currently returns two identical results

A search for, "Option::unwrap_or_else" yields a direct hit.

A search for, "Option unwrap_or_else" yields no results

found during an investigation of #18498

Issue 2:
$ brew install llvm --HEAD
$ ./configure --llvm-root=$(brew --prefix llvm) --disable-docs --disable-valgrind --enable-debug --enable-optimize --enable-optimize-tests
...
configure: using custom LLVM at /usr/local/opt/llvm
configure:
configure: found ok version of LLVM: 3.7.0svn
...
$ /usr/bin/make check-stage1
compile: x86_64-apple-darwin/rt/rust_try.o
/usr/local/opt/llvm/bin/llc: /Users/tamird/src/rust/src/rt/rust_try.ll:27:29: error: expected instruction opcode
landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @rust_eh_personality_catch to i8*)
^
make: *** [x86_64-apple-darwin/rt/rust_try.o] Error 1

cc @alexcrichton
Issue 1:
I'm trying the generate package command described in the Create your first package docs, but it's not in there (version 0.137.0)/doesn't show up in the Command Palette.

It is, however, available from the top menu under Packages > Package Generator.

Issue 2:
It looks like packages using activation commands don't have those commands appear in the command palette until the package is activated.

Command palette at startup with untitled editor window:

Command palette after pressing cmd-f:
Issue 1:
There is a problem when i use validation_groups when i render the form, lets say:

class Profile
{
/**
* @var string $phone
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
* @Assert\NotBlank(groups={"signup"})
*/
private $phone;

/**
* @var string $phone_mobile
*
* @ORM\Column(name="phone_mobile", type="string", length=255, nullable=true)
* @Assert\NotBlank(groups={"admin"})
*/
private $phone_mobile;
}

when i will build the form with the admin validation group, then form still render:

required="required" for the phone field, which is only a part of signup validation group.

Issue 2:
The ValidatorTypeGuesser does not consider the current form's validation_groups option when guessing type. This could be fixed by passing the options array to the guesser methods. The signature of the FormTypeGuesserInterface methods would look like this:

function guessType($class, $property, array $options = array());

The default argument is provided for BC.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18912.1001]
Windows Terminal version (if applicable): commit 2da5b0b

Steps to reproduce

Build a terminal, open WSL profile.

If setting(profiles.json) has startingDirectory, erase it.

At commit 2da5b0b, there is no startingDirectory for WSL

Set "startingDirectory" : "%USERPROFILE%"

Expected behavior

Both WSL starts at home directory as user. (/home/username/)

Actual behavior

if there is no startingDirectory, WSL starts at /mnt/c/WINDOWS/System32

if startingDirectory is %USERPROFILE%, WSL starts at /mnt/c/Users/Windows-Username

Issue 2:
Your Windows build number: Microsoft Windows [Version 10.0.18362.86]

What you're doing and what's happening:

Setting the starting directory for wsl in profiles.json doesn't make it point to the right directory.

Take the config below :-

{
"startingDirectory": "C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn",
"guid": "{a2785f8e-72c9-4550-b406-697388644902}",
"name": "Ubuntu",
"colorscheme": "MonokaiVivid",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorHeight": 25,
"cursorShape": "vintage",
"commandline": "wsl.exe",
"fontFace": "Inconsolata for Powerline",
"fontSize": 10,
"acrylicOpacity": 1,
"useAcrylic": true,
"closeOnExit": true,
"padding": "10, 10, 10, 10",
"icon": "ms-appdata:///roaming/ubuntu.png"
}

This results in wsl starting up in the root folder

In this config :-

{
"startingDirectory": "/home/tackyunicorn",
"guid": "{a2785f8e-72c9-4550-b406-697388644902}",
"name": "Ubuntu",
"colorscheme": "MonokaiVivid",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorHeight": 25,
"cursorShape": "vintage",
"commandline": "wsl.exe",
"fontFace": "Inconsolata for Powerline",
"fontSize": 10,
"acrylicOpacity": 1,
"useAcrylic": true,
"closeOnExit": true,
"padding": "10, 10, 10, 10",
"icon": "ms-appdata:///roaming/ubuntu.png"
}

This results in wsl starting up in the Windows user folder

What's wrong / what should be happening instead:

The startingDirectory profile setting is not being applied correctly on a wsl profile
Issue 1:
Description of the problem

Duplicate request handling in #12434

In case of an error on the request, we should notify the rest of the duplicate .load() callbacks (onError). Similarly, we can call onProgress to every duplicate .load() call callback.

Three.js version

Dev

r87

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Describe the bug

This glb file sofa.zip which made and exported from Blender, has diffuseMap and aoMap.

When loaded to threejs scene using GLTFLoader, the aoMap display incorret.

I guess they has different uvs and tried to add this line sofa.geometry.attributes.uv2.copy(sofa.geometry.attributes.uv) then display correct.

I also tried https://threejs.org/editor/ and https://modelviewer.dev/editor/ ( which I heard also based on threejs ), all has the same problem.

But with https://sandbox.babylonjs.com/ , https://playcanvas.com/viewer and Win10 3D Viewer, display all ok.

Is the problem of threejs's GLTFLoader?

To Reproduce

Steps to reproduce the behavior:

Go to https://threejs.org/editor/

Click on File -> Import, chose the glb file, and add a AmbientLight

See error

Code

let loader=new GLTFLoader()
loader.load('./sofa.glb',gltf=>{
scene.add(gltf.scene)
let sofa=gltf.scene.children[0]
// sofa.geometry.attributes.uv2.copy(sofa.geometry.attributes.uv)
})

Live example

See above metioned gltf viewer and load the glb model.

Expected behavior

Display correct aoMap with this glb model like in https://sandbox.babylonjs.com/ , https://playcanvas.com/viewer and Win10 3D Viewer.

Screenshots

See above.

Platform:

Device: [Desktop]

OS: [Windows]

Browser: [Chrome]

Three.js version: [r127]
Issue 1:
Ludovic Praud opened SPR-8375 and commented

How to reproduce the problem

With a ModelAttribute such as :

class Model {
List<String> getItems();
}

With a JSP such as :

<form:input path="items[0]" />

within an HTML form.

POST the form with modified items attribute :

items[100000000]=foo

and wait, wait, wait until the OutOfMemoryException.

Incriminated code

org.springframework.validation.DataBinder.autoGrowNestedPaths is default true, it should be false instead.

Workarounds

In a controller :

@InitBinder
public void initBinder(WebDataBinder binder) {
binder.setAutoGrowNestedPaths(false);
}

or using an implementation of WebBindingInitializer :

public void initBinder(WebDataBinder binder, WebRequest request) {
binder.setAutoGrowNestedPaths(false);
}

Affects: 3.0.5

Issue Links:

#12498 DataBinder should be able to define a different strategy for BeanWrapperImpl how autogrowing should handle gaps in collection properties ("duplicates")

1 votes, 3 watchers

Issue 2:
Darren Mills opened SPR-8282 and commented

We have a WebSphere cluster configured with session replication between each node. In order to accomplish this, all objects that end up in the session must be Serializable. We are using the Joda Date/Time Converters in our domain objects which could be contained within a Web Form. Although all of OUR objects are Serializable, our production logs are complaining about the FormattingConversionService not being Serializable. Another poster confirmed they are seeing the same exception and provided screenshots of their session attributes which included the FormattingConversionService.

Possible solutions may be either making all ConversionService implementations serializable, or changing the Spring behavior of storing the service bean in session, for example, in ServletContext.

Affects: 3.0.5

Reference URL: http://forum.springsource.org/showthread.php?p=359434

Referenced from: commits 74b6a5b, 9472025

7 votes, 14 watchers