WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This has lost so much work in the las few days. I can't find a pattern: it happens in different file types and there doesn't appear to be any trigger, other than Undo.

I hit (Cmd-Z, with the keyboard), and occasionally and randomly it takes the file back to some previous state, but it's clearly NOT the last saved state. I believe it's the originally opened state.

If I'm not watching close, it'll happen and I miss it, then continue editing.

It leaves the file marked as "dirty", so saving after this happens will overwrite any changes since the state it restored it to, which in one case was a few days ago, so saving often does not help.

Version 0.120.0 on OS X Mavericks.

Issue 2:
The default keyboard mapping for editor:checkout-head-revision is Cmd+Alt+Z or Ctrl+Alt+Z on Windows/Linux. This is pretty easy to fat-finger and there is no confirmation dialog. Also, the Redo command doesn't restore what was lost ... but Undo does ... which is confusing when this command is accidentally triggered.

We should probably display a confirmation dialog for this command to be certain it is what the user wants and since data loss (or perceived data loss) can result.

See Discuss topics:

https://discuss.atom.io/t/sometimes-s-or-z-does-buu-buu/11186?u=leedohm

https://discuss.atom.io/t/a-seriously-nasty-problem/11286

https://discuss.atom.io/t/undo-redo-broken/10658

https://discuss.atom.io/t/undo-defect-undo-make-my-file-back-to-status-when-i-open-it/10512
Issue 1:
julia> immutable Words32
lo::UInt32
hi::UInt32
end
julia> isbits(Words32)
true
julia> a=UInt64(0x123456789abcdef0)
0x123456789abcdef0
julia> b=reinterpret(Words32,a)
ERROR: reinterpret: expected bits type as first argument
in reinterpret at essentials.jl:115

Besides the contradiction isbits() != bits type I think that would definitely be useful to be able to reinterpret immutables

Issue 2:
I was wondering, why this works:

reinterpret(Float32, Int32(0))
@assert isbits(ImmutableType1) && isbits(ImmutableType2) && (sizeof(ImmutableType1) == sizeof(ImmutableType2))
reinterpret(ImmutableType1, Array(ImmutableType2, 42))

and this does not:

reinterpret(ImmutableType1, ImmutableType2(...))

This is convenient for converting different FixedSizeArrays with the same layout without copying anything.

It's probably related to #7697, which didn't get fully implemented?

@vtjnash answered on Julia users:

That last one requires a different sequence of llvm instructions than the other examples (it's the difference between isbits and bitstype). Not hard, but likely unimplemented.

Is anyone willing to implement this, or give some pointers on how to implement it?
Issue 1:
📝 Provide a description of the new feature

Every now and then, I want to use normal half-width Aero snap for one of my windows when the rest of them are in FancyZones zones and I know I can just drag as usual, but because I use Fancy Zones so much, I find I've gone and pressed the Shift modifier by accident! can anyone think of a good way of having a special drop zone where it would end up as normal Aero snap without that being confusing when you really did want the FancyZone zone? It's just I've done it three times today (I clearly need more coffee!)

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

Issue 2:
Make it so that Win+Arrow will also cycle through Aero Snap locations as part of the rotation.
Issue 1:
[Environment] Windows 10 1903 18362.356

1.In general, when I type 'cmd' in the address bar of a folder, cmd will switch the directory location to the location of the folder.However, if the open is 'wt', it is still the same, he still opens C:\Users\XXXX，even if I did not write the parameter ”startingDirectory“.

2.Even if I set the WSL ‘startingDirectory’ parameter on the terminal to the absolute location of a folder in the wsl root directory, he still opens the root directory of wsl.

If it is my parameters are not written, please advise

If it is a bug, please fix it as soon as possible.

Issue 2:
This bug-tracker is monitored by Windows Console development team and other technical types. We like detail!

If you have a feature request, please post to the UserVoice.

Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible

Your Windows build number: (Type ver at a Windows Command Prompt)

Version 10.0.16299.309

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

using ssh to a remote server, running ls -l | more in /var/log/

What's wrong / what should be happening instead:

It should just disable a list of files in this folder but for some reason the terminal goes nuts and shows black texted with a white background as if i have highlighted it (I haven't)

Seems to invert the colours when you get to -- more --

I wouldn't need to use more if i could find a way to scroll the terminal without the mouse!!

Thanks
Issue 1:
I only have this error in windows. In linux it works fine.

When I type the character in settings view it does work. In the editor if I do "alt gr + [" it doesn't print the character. Instead it prints nothing at all.

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:
This script:

#!/bin/bash
set -e
while true; do
date
rm -rf $GOPATH/pkg/linux_amd64
GOMAXPROCS=1 go install -x -work launchpad.net/juju-core/cmd/...
done

Breaks down after a couple of tries with errors like:

pack: non-object file $WORK/launchpad.net/juju-core/cmd/_obj/_go_.6

Preserving the working directory with -work or hacking the code to disable the mkdir
cache do not fix the problem.

Running it without parallelism with -p 1 makes it work reliably.

The full log of such a broken build is attached.

Attachments:

log.txt (37653 bytes)

Issue 2:
by webmaster@webmaster.ms:

I use GC 1.0.1 from http://code.google.com/p/go/downloads/list
Windows 2008 Server

Testcase:
===
package main

import (
"fmt"
"runtime"
)

func main() {
for i:=0; i<10000; i++ {
buf := make([]byte, 0x100000)
buf[0] = 0 // supress warning

var ms runtime.MemStats
runtime.ReadMemStats(&ms)
fmt.Println(float64(ms.Alloc)/1024.0/1024.0)

//if (ms.Alloc > 200*1024*1024) { runtime.GC() }
}
}
===

This works well compiled with 6g, consuming 1-2Mb of memory.
But being compiled with 8g it goes to "out of memory" very quickly.

Adding explicit runtime.GC() call makes memory consumption fluctuate between 120Mb and
200Mb (yes, 120Mb just after runtime.GC() call)
Issue 1:
When I read the documentation of the rust standard library from google, I don't know to which version of rust it refers. It could be great to have a footer with the version and a text which appear when we put our cursor on the rust logo which display the version of the library this doc refer to.

That mean improving the documentation compilator of rust.

Issue 2:
I recently was using a library whose online documentation was out of date. One of the method signatures had changed and that wasn't reflected in the documentation. I checked the source code of the project to confirm that the signature had changed, but it also would have been nice to see on the documentation page that the version I was using didn't match up to the documentation version.
Issue 1:
Per discussion at https://groups.google.com/forum/#!topic/ansible-project/A79N7LRm-9I, when I add systems to a group using group_by, they don't get variables for that group which are defined in group_vars.

I've given an example that shows the issue in current devel (c41a23a) in a gist at https://gist.github.com/mcodd/8250193. When running the test.yml playbook, I'd expect the variable groupvar to resolve to "this_group_var", but it instead remains undefined.

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

inventory files

ANSIBLE VERSION

ansible 2.4.1.0
config file = /Users/craig.bryan/.ansible.cfg
configured module search path = [u'/Users/craig.bryan/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/craig.bryan/.virtualenvs/ansible24/lib/python2.7/site-packages/ansible
executable location = /Users/craig.bryan/.virtualenvs/ansible24/bin/ansible
python version = 2.7.13 (default, Dec 17 2016, 23:03:43) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

CONFIGURATION

No changes in configuration

OS / ENVIRONMENT

Running on OSX 10.11.6

SUMMARY

Adding a inventory group var block before the inventory group member block causes the group membership to be modified.

STEPS TO REPRODUCE

Run ansible-inventory against the following inventories files to see the changes to group membership

Test inventory 1

[supergroup:children]
subgroup

[subgroup]
host1

[subgroup:vars]
foo=bar

Test inventory 2

[supergroup:children]
subgroup

[subgroup:vars]
foo=bar

[subgroup]
host1

Both are inspected with:

ansible-inventory -i <INVENTORY_FILE> --list

EXPECTED RESULTS

Both inventories act the same way when listed with ansible-inventory

ACTUAL RESULTS

Test inventory 1 acts as expected - subgroup is within the supergroup group

Test inventory 2 does not act the same way - subgroup is no longer within the supergroup group.

% ansible-inventory -i test-inventory-1 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {
"children": [
"subgroup"
]
},
"ungrouped": {}
}

% ansible-inventory -i test-inventory-2 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"subgroup",
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {},
"ungrouped": {}
}
Issue 1:
This issue is an exact analog of numpy 3733, because the code between these this function and np.percentile is mostly duplicated.

scoreatpercentile claims to function with the per argument (the percentiles to calculate) being either a scalar or an array_like. However, the initial lines of code do:

if per == 0:
return a.min(axis=axis, out=out)
elif per == 100:
return a.max(axis=axis, out=out)

which of course breaks with a "truth value of array undefined" exception if per is in fact an ndarray. It doesn't break if per is a list, since per isn't coerced to array-ness, but that's just two bugs canceling.

From an initial reading, I think the implementations of these two functions could be merged. np.concatenate could be given an interpolate_method argument like scoreatpercentile, and then scipy.stats.scoreatpercentile could just become an alias for the Numpy function.

Issue 2:
The discussion started in #4864 . I propose that the usage of polish in the _differentialevolution.py must be deprecated. The polish functionality simply repeats the functionality of other scipy.optimize module. The library functions must be simple, universal and not specialised and overfeatured. The polish can be applied to the result externally by a user using optimize.minimize with the same cost, but _differentialevolution.py will be more universal, will have one less dependency and cleaner code.

Additional reasoning:

The function is called differential_evolution and not a differential_evolution_with_polishing. I would not expect from this function to do something else from DE. OK, if there is statistics that this polishing really goes in majority of real world cases, then let leave it. But, at least the default behavior should be changed to polish = False. (Are there some benchmarks about comparing what is more efficient -- letting a couple of additional iterations of DE, or applying polishing? What about the type of the testfunction?)

Additionally, this polisher, I hypothesize, works OK only with differentiable functions. But there are a lot of real engineering problems (my among them), where objective functions are not only nonlinear, but also are discontinuous and non-differentiable and somewhat noizy, and where the global minimum can be just near the discontinuity. I still prefer modularity, and I belive, that all library functions should be modular and perform good just one task.

So, this additional feature could be removed with mentioning in documentation, or in the examples, that L-BFGS-B polishing is usually best suited and gives good results for differentiable smooth objective functions. Or, at least, the default behaviour should be changed to polish = False.
Issue 1:
support/6be6d1eaa44911e38bd5c0467822a465?page=1

Issue 2:
First of all, can't find any references about this thing around the issue tracker, so sorry if this is a duplicate.

Windows 8.1 here, title says it all. When I Alt+Tab on something else and then back to the editor the cursor disappears and forgets the place it was at. Can't immediately type after getting back to the editor.

I've rebuilt the whole thing again before submitting this, FYI.
Issue 1:
This is an existing issue that has been fixed, but it has returned in 3.1.1.

A tooltip is not removed after parent element has been removed either in normal or modal window.

I am preparing a demo.

Issue 2:
I use Tooltip on buttons initiating AJAX loads, which remove the content including the tooltip parent element. In that case the tooltip won't hide.

Steps to reproduce:

Mouseover the button with tooltip

Tooltip is shown

Click the button (while the tooltip is shown)

The element where the tooltip parent element was placed is now removed/replaced with AJAX

New content is displayed, but the tooltip is still present, and I am unable to remove it (the mouseleave event won't fire, because the tooltip parent element is no longer there).

I created JS fiddle demonstrating the issue: http://jsfiddle.net/fjHh5/
Issue 1:
<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>

I want to use interpolate.splprep but it returns SystemError

Reproducing code example:

from scipy import interpolate
A = [-50.49072266, -50.49072266, -54.49072266, -54.49072266]
tck, t = interpolate.splprep([A])

Error message:

*** SystemError: <built-in function _parcur> returned NULL without setting an error

Scipy/Numpy/Python version information:

0.19.0 1.12.1 sys.version_info(major=3, minor=6, micro=1, releaselevel='final', serial=0)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/978 on 2009-07-28 by @josef-pkt, assigned to unknown.

floating point errors in ceil is not corrected in nbinom._ppf

PierreGM

>>> from scipy.stats.distributions import nbinom
>>> nbinom(.3,.15).ppf(nbinom(.3,.15).cdf(np.arange(20)))
array([ 1., 2., 2., 3., 5., 5., 6., 8., 9., 10., 11.,
12., 13., 14., 15., 16., 17., 18., 19., 20.])

I would have naturally expected np.arange(20).

Robert Kern:

The problem here is that we are using nbdtr() inside this function to compute temp, but nbdtr doesn't handle n<1. The _cdf() method uses betainc() instead. If one replaces these lines:

vals1 = vals-1
temp = special.nbdtr(vals1,n,pr)

with these:

vals1 = (vals-1).clip(0.0, np.inf)
temp = special.betainc(n,vals,pr)

then you get the desired answer.

josef:

It would be better to replace the duplication of the _cdf method directly with a call to self._cdf.

For example, in changeset 4673, _cdf method was changed to use betainc instead of nbdtr, but not the _ppf method. Without the code duplication, partial corrections could be more easily avoided.

add roundtrip test to all discrete distributions, like

>>> n=10
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
True
>>> n=0.3
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
False
Issue 1:
Babel 6.1.1 (babel-core 6.0.20)

class Foo {

bar() {
let bar = 2
console.log(bar)
}
}

./node_modules/.bin/babel test.js

TypeError: test.js: Duplicate declaration "bar"
2 |
3 | bar() {
> 4 | let bar = 2
| ^
5 | console.log(bar)
6 | }
7 | }
at File.buildCodeFrameError (***/node_modules/babel-core/lib/transformation/file/index.js:409:15)
at Scope.checkBlockScopedCollisions (***/node_modules/babel-traverse/lib/scope/index.js:428:27)
at Scope.<anonymous> (***/node_modules/babel-traverse/lib/scope/index.js:613:18)
at Scope.registerBinding (***/node_modules/babel-traverse/lib/scope/index.js:627:8)
at Scope.registerDeclaration (***/node_modules/babel-traverse/lib/scope/index.js:515:14)
at Object.BlockScoped (***/node_modules/babel-traverse/lib/scope/index.js:165:28)
at Object.newFn (***/node_modules/babel-traverse/lib/visitors.js:300:17)
at NodePath._call (***/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (***/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (***/node_modules/babel-traverse/lib/path/context.js:102:12)

IMO this code is 100% valid :)

Issue 2:
Recently, LICENSE files were added to packages/* for Babel 7 and Babel 6 (I think). However, packages/babel-runtime appears to be missing its LICENSE file.

Can a LICENSE file please be added to packages/babel-runtime, like with the other packages?
Issue 1:
Lesson: http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images

Instructions are the wrong way around, should assign the class after instructing you to make the new img tag

Switches from https:// to http:// requirement for second img

If you add img-responsive to the existing img tag you are then unable to complete the lesson even if you add another image below it with the correct src and class

Lesson accepts itself as complete before you have to close the image tag eg: <img class="img-responsive" src="http://bit.ly/fcc-kittens2" is accepted (missing > on the end)

Don't think the notes should have the words responsive design wrapped in a code tag, previously only seen it used to describe markup.

Don't think this needs the caps either: Fortunately, we have access to a Responsive CSS Framework called Bootstrap. should just be responsive CSS framework

Issue 2:
Challenge http://www.freecodecamp.org/challenges/waypoint-mobile-responsive-images has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

The following will pass the test:

<img class="img-responsive" src="http://bit.ly/fcc-kittens2"

Note: it's missing a > at the end of it

Im thinking this is a flaw with it rendering it on the fly creating the dom elements even if it's not complete? But it leads to a false sense of being done when you really aren't done with the element to pass it. Subjective I guess depending on your view of it?
Issue 1:
Debian systems generally don't install sudo, and none of our production servers have it installed. Instead, when we need to execute commands as another user, we use su username -c.

Could Ansible be modified to support different user-switching techniques than sudo? su -c can't be made to accept the same options as sudo, as far as I know. At least trying to set sudo_exe to various invocations of su -c weren't successful for me.

The problem showed up when trying to use the postgresql_user module as user 'postgresql' on a Debian machine. If I use sudo_user: postgresql on a machine without sudo, things fail, of course, since the root user (which we normally connect as) isn't allowed to admin the PostgreSQL database.

This can be solved in two ways, either by making root a trusted superuser on PostgreSQL by rewriting pg_hba.conf via Ansible or by having a different mechanism to become the user postgres.

We would prefer not to install sudo anywhere, since we don't have a need for it and it just adds one more layer and attack vector to the system's security and is yet another component we'd have to manage.

Issue 2:
file.set_context_if_different() contains this code:

for i in range(len(context)):
if context[i] is not None and context[i] != cur_context[i]:

On my box context looks like this:

[None, None, None, u's0']

And cur_context looks like this:

[u'user_u', u'object_r', u'etc_t']

Point being that cur_context[3] doesn't exist, so it crashes with list index out of range. I don't know anything about SELinux, so I have no idea what these mean or what the fix is. Incidentally, this error is not bubbled up to the user, so I just get an 'unreachable' error with a dict that looks like everything is fine.
Issue 1:
Hi,

I've found a small big in the email validation that is causing me some grief.

Using a compound email validator, the following email address is considered as valid: foo.@domain.com

However when trying to send an email to this email address using swiftmailer, an exception is thrown with the following message:

Address in mailbox given [foo.@domain.com] does not comply with RFC 2822, 3.6.2.

500 Internal Server Error - Swift_RfcComplianceException

I would expect the SF2 email validation to match the SwiftMailer email validation so these types of issues do not occur.

Thanks

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
v4.0.4 (probably older)

I have something along the lines of:

$io = new SymfonyStyle($input, $output);

$io->comment(
sprintf(
'Loading the configuration file "<comment>%s</comment>".',
$configPath
)
);

So you can see the <comment> tag being used. When using comment() or another similar method, the text is eventually wrapped when too long:

// Loading the configuration file
// "/very/long/path/to/box.json.dist</commen
// t>".

However you can see above that this breaks the comment tag
Issue 1:
Toggle console with a Hotkey

When I'm working I use a lot of windows and I think it would be a good idea to have a HotKey to toggle the console (minimize/on top).

Issue 2:
Environment

Version: 1903

OS BUILD: 18362.10006 (Microsoft Windows [Version 10.0.18362.10006])

Windows Terminal version (if applicable):

Any other software?

# Steps to reproduce

Build code from 42c1e58966b50c72039808b09b663b74180519ce and the build completes, but when I start the app, I get failures and app just instantly closes out.
If I restore the file (src/cascadia/TerminalConnection/ConhostConnection.cpp) from 0da13cdf2d5ba2081f12f85f6816546489d4918b to any newer code then build succeeds and the app starts normally
# Expected behavior
I expect the newer version of src/cascadia/TerminalConnection/ConhostConnection.cpp to not cause the app to crash on startup

<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I start the app with newest code and app crashes. But when I restore the file of src/cascadia/TerminalConnection/ConhostConnection.cpp to pre 42c1e58966b50c72039808b09b663b74180519ce version, everything works fine.

# Actual behavior

The app crashes when I use the latest code of src/cascadia/TerminalConnection/ConhostConnection.cpp