WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Output of node_modules/.bin/electron --version: 3.0.3

Operating System (Platform and Version): macOS Mojave 10.14

Description

There were a few desktops. I put my electron app on one, and focused on another one. When the app's notification came and I clicked the action button:

Expected Behavior

The app will not be activated.

Actual Behavior

The app was activated automatically.

To Reproduce

$ git clone https://github.com/ervinewell/electron-quick-start.git -b bugfix/notificaion-activate-app
$ npm install
$ npm start

Screenshots

https://youtu.be/YaNFgvYOYK8

Issue 2:
Electron Version: 2.0.5, 2.0.6

Operating System (Platform and Version): macOS 10.13.6

Last known working Electron version: 2.0.5

Expected Behavior

App passing submission requirements.

Actual behavior

App got rejected.

Your app uses or references the following non-public APIs:

Symbol: _CGDisplayUsesForceToGray
From framework: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics

Symbols: ___CFRunLoopSetOptionsReason, __CFIsObjC
From framework: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

In binary: Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework

Additional Information

Our app already is on the App Store using Electron version 2.0.5 (just trying to issue an update). I guess this is a new requirement.
Issue 1:
It would be nice to see the pixel amount for x/y dimensions of the fancy zone layout when resizing the zones in edit mode.

Issue 2:
FancyZone does not work well on four monitor setup with three on one row and one above the main center screen. Only the center and screen above work with fancy Zone Left and right do not. The problem was seen in version 20 and 21. but was not present in the older version (I do not know which version it stopped working)

ℹ Computer information

PowerToys version: 21

PowerToy Utility: FancyZone

Running PowerToys as Admin:

Windows build number: [run "winver"]

📝 Provide detailed reproduction steps (if any)

…

…

…

✔️ Expected result

What is the expected result of the above steps?

❌ Actual result

What is the actual result of the above steps?

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form
Issue 1:
I'm using Bootstrap 2.0 and am trying to use a Modal for displaying a Markdown cheat sheet. I've set up a link to display the modal but when I click it, the modal appears briefly and then immediately disappears again.

Here's my basic code:

<a class="btn" data-toggle="modal" data-target="#markdown">Show Markdown Cheatsheet</a>

<div id="markdown" class="modal hide fade">
Foo
</div>

I've got the following JS files loaded:

jquery 1.7.1

bootstrap

bootstrap-alert

bootstrap-dropdown

bootstrap-tabs

bootstrap-modal

bootstrap-transition

jquery.dataTables.min

I have the following document-ready blocks:

$(document).ready(function(){
$(".alert-message").alert();
$(".dropdown-toggle").dropdown();

$('#save').attr("disabled", "disabled");
$('#comment_message').show();

$('#comment').keyup(function() {
inspectCommentTextField();
});

$('#minor_revision').change(function() {
inspectMinorRevisionCheckBox();
});

});

$(document).ready(function(){
computersTable = $('#computers').dataTable({
"sScrollY": "200px",
"bPaginate": false
});

applicationsTable = $('#applications').dataTable({
"sScrollY": "200px",
"bPaginate": false
});

$('form').submit(function() {
// Clear filters because filtered checkboxes don't get submitted for some reason
computersTable.fnFilter('');
applicationsTable.fnFilter('');
});
});

Issue 2:
Code:

<form class="form-horizontal" role="form">
<div class="form-group has-success has-feedback">
<label class="control-label col-sm-3" for="inputSuccess3">Input with success</label>
<div class="col-sm-9">
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username">
</div>
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
</div>
</form>

Example: http://cssdeck.com/labs/xvebpw8t
Issue 1:
Chris Beams opened SPR-5113 and commented

The following paragraph is repeated twice in the javadoc for AbstractMessageListenerContainer:

<b>NOTE:</b> The default behavior of this message listener container is to

<b>never</b> propagate an exception thrown by a message listener up to the

JMS provider. Instead, it will log any such exception at the error level and

rollback the active transaction if there is one. This means that from the

perspective of the attendant JMS provider no listener will ever fail.

Affects: 2.0.8, 2.5.5

Backported to: 2.0.9

Issue 2:
Jerome Lacoste opened SPR-798 and commented

In one of my beans, I return a Set of Longs. I use this set to populate a multiple select box on a Web.

I registered an Editor to the field. When doing status.value I expected to get a Set, but I am getting a String. BindStatus reuses the following code from BindException:

public Object getFieldValue(String field) {
FieldError fe = getFieldError(field);
String fixedField = fixedField(field);
// use rejected value in case of error, current bean property value else
Object value = (fe != null) ? fe.getRejectedValue() : getBeanWrapper().getPropertyValue(fixedField);
// apply custom editor, but not on binding failures like type mismatches
if (fe == null || !fe.isBindingFailure()) {
PropertyEditor customEditor = getCustomEditor(fixedField);
if (customEditor != null) {
customEditor.setValue(value);
return customEditor.getAsText();
}
}
return value;
}

Here one can see that the customEditor is used but the method getAsText() is used, not the getValue().

I don't understand this choice. It breaks symetry between displaying and submitting my form.

Someone else reported the same issue on the devel list back in September 2004.

http://news.gmane.org/find-root.php?message_id=%3c41378671.1090307%40pcedev.com%3e

Workaround is to respecify my field using its path. Ugly.

Not sure how to fix that. Fixing it would break existing code. Introducing an interface like proposed in the mail in -devel would makes things complex for what is supposed to be normal case to me.

Affects: 1.1.5
Issue 1:
Symfony version(s) affected: 4.2.6

Description

Rendering form with null block prefix duplicates the form default attributes in rendered html. This is major problem if we'd like to add id attribute to it as id should be unique in whole HTML document.

How to reproduce

Create form as follows

<?php

namespace App\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver;

class BugType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'attr' => [
'id' => 'duplicate',
'foo' => 'bar',
],
]);
}

public function getBlockPrefix()
{
return null;
}
}

Pass it to the twig as follows:

<?php

namespace App\Controller;

use App\Form\BugType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

class IndexController extends AbstractController
{
/**
* @Route("/", name="index")
*/
public function index()
{
$form = $this->createForm(BugType::class);

return $this->render('index/index.html.twig', [
'form' => $form->createView(),
]);
}
}

And than render it using Twig

{{ form(form) }}

The result will be:

<form method="post" id="duplicate" foo="bar">
<div id="duplicate" foo="bar">
<input type="hidden" id="_token" name="_token" value="psSwaT9qr427m_jWqmu7qo1cgbsZ5f-lxcHEcTpeGcY"/>
</div>
</form>

as you can see form and div have the same attributes.

Issue 2:
If invalid value submitted the select choice throws an exception TransformationFailedException where radio\checkbox choices set the value to NULL.

This behavior cause some problems at validation stage.

First one is Choice constraint. It do nothing for NULL values.

Next problem more serious. If you dont have NotBlank constraint at the field you will pass validation with NULL value where someone would expect a value from choice set.

Personally I prefer TransformationFailedException for such cases.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

ansible 2.5.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/ici/home/yves/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Sep 20 2017, 01:25:59) [GCC 7.2.0]

CONFIGURATION

ANSIBLE_SSH_PIPELINING(/etc/ansible/ansible.cfg) = True

OS / ENVIRONMENT

Up-to-date Archlinux

SUMMARY

I have writen more than 50 Ansible roles, with the aim of installing/updating my home-server. It works nice.

But running the whole book takes very long! One reason it takes so long is that some roles that I include using include_role get often repeated needlessly (no change) at places where I do not expect them to run.

STEPS TO REPRODUCE

I tried to minimally reproduce the problem, and I came up with this:

https://yalis.fr/git/yves/ansible-repeated-tasks-showcase

In short:

nfs and postgresql both depend on cleanupdate, which depends on init

each of these may have “upstream” actions and “local” actions

the “upstream” actions are enclosed between:

an include_role of etckeeper.inc with tasks from upstream.yml

an include_role of etckeeper.inc with tasks from merge.yml

the “local” actions are followed by:

an include_role of etckeeper.inc with tasks from local.yml

furthermore, init starts with:

an include_role of etckeeper.inc with tasks from init.yml

EXPECTED RESULTS

I expect the following sequence of actions:

load role nfs and see its meta/ dependencies, for instance cleanupdate

load role cleanupdate and see its meta/ dependencies, for instance init

load role init and see its meta/ dependencies, for instance none

run init, then cleanupdate, then nfs

load role postgresql and see its meta/ dependencies, for instance cleanupdate

cleanupdate has already ran, so skip it

run postgresql

ACTUAL RESULTS

Instead of the 6th step, I see a bunch of runs of tasks from etckeeper.inc, which is exactly what I see with my big, real, Ansible setup. And this is only a minimal example with 2 roles and simplified meta-dependencies…

The actual, annotated, output of ansible-playbook -i production site.yml can be seen here:

https://yalis.fr/git/yves/ansible-repeated-tasks-showcase/src/master/ansible-playbook.log

Issue 2:
I am trying to use ansible, unfortunately It does not work with my list of hosts defined in .ssh/config.

In paramiko mode - my hosts are throwing "Name of service not known" - my /etc/ansible/hosts file refers to aliases defined in .ssh/config.

In -c ssh - it tries connect to default 22 port, instead of the ones defines in .ssh/config
Issue 1:
The deadline support in lookupIPDeadline is apparently not a real deadline, in the sense
that a goroutine is leaking on every lookup that does not return timely.

I have a bug report for mgo where someone got to 50k+ goroutines hanging on it:

https://jira.mongodb.org/browse/MGO-41

I'll have to do something else as I need to support existing releases, but it'd be good
to get this fixed so that deadlines are real, at some point.

Issue 2:
What steps will reproduce the problem?

GC=gccgo go build sg.go

What is the expected output?

makes it to the link step with 6g

What do you see instead?

compile errors with gccgo:

_cgo_defun.c:36:1: error: unknown type name ‘byte’
_cgo_defun.c:37:1: error: stray ‘\302’ in program
_cgo_defun.c:37:1: error: stray ‘\267’ in program

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

gccgo

Which operating system are you using?

linux

Which revision are you using? (hg identify)

gccgo (GCC) 4.7.0 20120302
commit f2b34014d56c08d8fa5d93a2329e92046215de6d
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184877
138bc75d-0d04-0410-961f-82ee72b054a4

Please provide any additional information below.

The problematic lines in _cgo_defun.c:

extern byte *sg_lib_version_str;
void *·_Cvar_sg_lib_version_str = &sg_lib_version_str;

Attachments:

sg.go (138 bytes)
Issue 1:
Environment info

transformers version: Installed from git

Issue

The len(AutoTokenizer.from_pretrained("t5-base")) is 32100 but the T5ForConditionalGeneration.from_pretrained("t5-base").config.vocab_size is 32128. Seems to be a similar issue to that of : #2020

Issue 2:
❓ Questions & Help

Pretrained T5Tokenizer has vocab size of 32100 (32000 tokens plus 100 extra_ids) but the shared embedding layer of T5ForConditionalGeneration has size of (32128, 768). I checked the google-research implementation of T5 and also found that they have vocab size of 32100 also.

Where did the extra 28 embeddings come from and how can we map it to the tokenizer?

To reproduce

from transformers import (
T5Tokenizer,
T5ForConditionalGeneration,
)

tokenizer_pretrained = T5Tokenizer.from_pretrained('t5-base')
model_pretrained = T5ForConditionalGeneration.from_pretrained('t5-base')
len(tokenizer_pretrained.get_vocab()), model_pretrained.state_dict()['shared.weight'].shape

Output:

(32100, torch.Size([32128, 768]))
Issue 1:
Is there any way to prohibit transpilation of "async" and "await" to the "_awaiter"? The transpiled code breaks the functionality of graphql. Seems like only babel transpiles this correctly.

I would like to maintain the async and await keywords.

Can it be done? Thanks.

Issue 2:
I'm using babel for transpiling like:

TSX -> ES6 -> Babel + webpack -> ES5

and I set noEmitHelpers to true in tsconfig.json, because babel handle it with single global helper instead of multiple helpers in each file but it doesn't work with Acyncs and Decorators and after compile i'm getting

__decorate(...)

and

__awaiter(this, void 0, Promise, function* () {
...
});

How can I prevent tsc to compile Asyncs and Decorators and let babel handle them?
Issue 1:
Environment

Windows build number: 1909
PowerToys version: 19.0
PowerToy module for which you are reporting the bug (if applicable):
PowerToys Run's shortcuts can‘t wake up

Steps to reproduce

When I use this feature, it doesn't respond at all. Even if you change the shortcut key, it doesn't work.

Expected behavior

it could be used as on other‘s pc

Actual behavior

it doesn't respond

Screenshots

Issue 2:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.1
PowerToy module: PowerToys Run

Steps to reproduce

Run PowerToys as administrator.

Focus on non-elevated application

Press the shortcut keys for PowerToys Run

Nothing will happen except opening a window menu (screenshot below).

Expected behavior

When running PowerToys normally, PowerToys Run shortcut should work only for applications that run normally too.

PowerToys Run shortcut should work over all applications (that running either as administrator or not) when running PowerToys as administrator.

Actual behavior

When running PowerToys as administrator, the shortcut works only for application that runs as administrator.

Screenshots

Screenshot from VoIP application "Mumble". I launched it normally (and PowerToys as administrator), tried to use the shortcut, it showed this menu (default shortcut of Windows).
Issue 1:
How are you using Babel?

@babel/eslint-parser

Input code

import * as t from '@babel/types';
import { parse } from '@babel/parser';
import generator from '@babel/generator';

const code = `
import React from "react";
// 1111
class App extends React.Component {}
`;

describe('babel', () => {
it('clone and generate', () => {
expect(
generator(
t.cloneNode(
parse(code, {
sourceType: 'module',
}),
true,
false,
),
{
retainLines: true,
},
).code,
).toEqual(code);
});
});

Current and expected behavior

current code: with duplicate comments

import React from "react";
// 1111
// 1111
class App extends React.Component {}

expected code

import React from "react";
// 1111
class App extends React.Component {}

Environment

"dependencies": {
"@babel/generator": "^7.17.10",
"@babel/parser": "^7.17.10",
"@babel/traverse": "^7.17.10",
"@babel/types": "^7.17.10",
"@types/babel__generator": "^7.6.4",
"@types/babel__traverse": "^7.17.1",
},

node: v16.14.2

os: macos

Possible solution

No response

Additional context

No response

Issue 2:
Issue originally made by @welefen

Options

Babel 5:

var data = babel.transform(content, {
filename: 'file',
//retainLines: retainLines === undefined ? true : retainLines,
stage: 0,
modules: 'common',
loose: true,
optional: 'runtime'
});

Babel 6:

var data = require("babel-core").transform(content, {
presets: ["es2015-loose", "stage-1"],
plugins: ['transform-runtime'],
});

Input code

var a = class {
async test(){
await Promise.resolve(1);
}
}

Description

use Babel 5 Compiled: 171ms

use Babel 6 Compiled: 6245ms
Issue 1:
ℹ Computer information

PowerToys version: 0.21.1

PowerToy Utility: FancyZones

Running PowerToys as Admin: No

Windows build number: [run "winver"] 18363.1082; 19041.548

📝 Provide detailed reproduction steps (if any)

Enable TaskView, and make several Virtual Desktops (--);

Move Windows' TaskBar to vertical left (Right-click on Taskbar; clear "Lock taskbar"; drag taskbar to the left edge);

Define two equal, non-overlapping areas, occupying the whole bottom half of the screen, next to each other;

Switch to eg second virtual desktop (--); open eg File Explorer, snap it into position - snaps OK;

Move to first virttial desktop; open eg File Explorer. When snapping, the two snap areas are moved all the way to tle left, ignoring vertical taskbar, and leaving empty area on the right edge.

✔️ Expected result

First virtual desktop' snapping should be no different than others;

❌ Actual result

First virtual desktop' snap areas are shifted under the taskbar.

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Not too easy to provide screenshots with this feature, might try with a virtual machine setup.

Issue 2:
If I have vertical taskbar setup, fancy zones sometimes gets the edge of the screen wrong so that my zones don't take up the full screen. Even if I edit the zone after changing taskbar status.

Thanks folks. Chris
Issue 1:
Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests.

If you have questions on how to use Neo4j, please ask on StackOverflow instead of creating an issue here.

Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a single problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.

To help us understand your issue, please specify important details, primarily:

Neo4j version: X.Y.Z

Operating system: (for example Windows 95/Ubuntu 16.04)

API/Driver: (for example Cypher/Java API/Python driver vX.Y.Z)

Steps to reproduce

Expected behavior

Actual behavior

Additionally, include (as appropriate) log-files, stacktraces, and other debug output.

Example bug report

I discovered that when I mount data/ to a volume on my host, and then stop the container, the write.lock is not removed as well as a number of other files not being cleaned up properly.

Neo4j Version: 3.0M03

Operating System: Ubuntu 15.10

API: Docker

Steps to reproduce

Pull the image: docker pull neo4j/neo4j:3.0.0-M03

Create a directory on the host that will be a mount for the data: mkdir /home/neo4j-data

Start a new container that mounts to this directory: docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j-data:/data neo4j/neo4j:3.0.0-M03

Navigate to the write.lock file located in the directory: /data/databases/graph.db/schema/label/lucene/labelStore/1/

Stop the container: docker stop neo4j-test

Expected behavior

write.lock should be removed now.

Actual behavior

write.lock is still present and preventing access by other programs.

Issue 2:
Creating unique constraint and getting the following result:

No element found in org.neo4j.helpers.collection.Iterables$FilterIterable$FilterIterator@450b0e07

Occurred while creating a typical constraint:

CREATE CONSTRAINT ON (n:Movie) ASSERT n.id IS UNIQUE;

Database has been upgraded from 1.9-->2.0-->2.1.3-->2.1.4
Issue 1:
I try to compile this program in rustc but an internal compile error occurred that:

task <unnamed> failed at 'assertion failed: is_utf8(v)', C:\bot\slave\dist2-win\build\src\libstd\str.rs:1032
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', c:\bot\slave\dist2-win\build\src\librustc\rustc.rs:391

this is my program:

extern mod extra;
use extra::json::ToJson;

fn main () {
let l = ~[1, 2, 3, 4];
println(l.iter().filter(|&x| *x > 2).map(|&x| x).to_owned_vec().to_json().to_str());
}

This error occurred both in Windows 8.1 64bit and windows XP 32bit.

Issue 2:
In many of the core and std libraries, the iface usage is flaky and ends up duplicating a lot of code.

Many ifaces only implement some small arbitrary subset of the full set of functions, for example in str and vec. It makes code look awkward when you have something like str::replace(foo, "x", "y").split_char('z').

Additionally, all of the docs are duplicated for the iface functions and most of them are just inlines of calling something on self.

Can all of the code be moved to just use iface impls instead of regular functions? Or something else?
Issue 1:
Migrated issue, originally created by nyov (@nyov)

Would it be possible to have a parameter to sqlalchemy.sql.expression.select() to avoid the "Ambiguous column name" exception for simple joins?

I don't care for the use_labels here as I then have to rewrite all the keys again after.

If possible, I'd like a parameter to select that would then simply drop the column name on the right side of the join (where the value is the same for such a join) from the select column list. As in "select all but joined_on_column duplicate".

This'd be a nicer, quicker way than writing out all the many column names manually or working with an alias for a column I still don't need as it's just a duplicate.

Issue 2:
Migrated issue, originally created by Marcin Lulek (@ergo)

adding this code to create_connect_args() corrects this issue

opts['raise_on_warnings']('raise_on_warnings') = opts.get('raise_on_warnings', True)
util.coerce_kw_type(opts, 'raise_on_warnings', bool)
Issue 1:
I realize that permutation_importance is a better and less biased measure than Impurity-based feature importance but it still has it uses. As illustrated here multi-collinearity can be an issue. Comparing permutation and impurity based importances is a good way to understand multicollinear issues and your true feature importance.

Can a method like in GradientBoostingRegressor be added? This method.

Issue 2:
Description

numpydoc appends a randomized number at the end of references link tags.

Related to issue #9417 and pull request #9420.

The issue is, a random number is generated even after making all duplicate tags unique.

Check out this link for Rouseeuw tags.
Issue 1:
This is a library-wide problem. When the following is used:

try {
something();
} catch (e) {
throw new SomethingError(e);
}

The stack trace loses all context of what in something() caused the original exception. It makes debugging a lot more difficult.

++ @yjbanov, @mhevery

Issue 2:
try {
...
} catch (e) {
console.log(e, e.stack);
throw e;
}

should transpile to

try {
...
} catch (e, e_stack) {
console.log(e, e_stack);
rethrow;
}

detect e.stack replace with e_stack + add e_stack to catch

detect rethrow throw e replace with rethrow;