WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
What steps will reproduce the problem?
1. hg clone https://code.google.com/p/go
2. cd go/src
3. ./all.bash
4. go vet strconv

What is the expected output?
Output from go vet.

What do you see instead?
go tool: no such tool "vet"; to install:
go install code.google.com/p/go.tools/cmd/vet

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

Which operating system are you using?
linux

Which version are you using? (run 'go version')
go version devel +4bd7beaedee8 Tue May 21 21:18:10 2013 -0700 linux/amd64

Please provide any additional information below.
Preferably ./all.bash in combination with cmd/dist will download and install vet from
go.tools.

If manual installation is the intended behavior then the error message should state
"go get code.google.com/p/go.tools/cmd/vet" rather than "go
install", since we need to checkout the repo.

Issue 2:
Currently in sys_windows_amd64.s line 41-ish

loadregs:
// Load first 4 args into correspondent registers.
MOVQ 0(SI), CX
MOVQ 8(SI), DX
MOVQ 16(SI), R8
MOVQ 24(SI), R9

But if an arg is a float32/float64 it should be loaded into an xmm register instead

http://msdn.microsoft.com/en-us/library/ms235286.aspx

In the "Calling Convention" section.
"
The arguments are passed in registers RCX, RDX, R8, and R9. If the arguments are
float/double, they are passed in XMM0L, XMM1L, XMM2L, and XMM3L.
"

Perhaps the easy thing is to just load them into both sets of 4?
Then you wouldn't have to type check going out...

Figured I shouldn't try submitting a patch for something so low level without any
previous submissions.

I am no windows pro, so I may just be confused here.

I discovered this trying to call glClearColor (which takes only 4 floats) with
syscall.Syscall6. I got random colors every run, which was fairly interesting.
Used a fake opengl32.dll (from GLIntercept) and a Printf right before Syscall6 to
discover my values were not being pushed all the way through unless they were integers.

I didn't look into 32bit windows and float args. It may have similar problem.
Hopefully this makes sense my brain hurts. I hate windows.
Issue 1:
I find it annoying I have to open a shell and run atom to get to my recent directories.

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:
It seems in most typescript projects, the build setup will have tslint, tsc, and some form of minifier. This is also closely related to #8. The build setup also has someway of deciding whether to invoke the build pipe depending on what files have changed.

I believe typescript should have plugins just like babel. Basically the compiler has hook points at various before/after stages, plugins can modify scanner behaviour, parser behaviour, emitter behaviour.

This means tslint can hook in and do its checks at parser/scanner stage. There could be a plugin to support a much stronger inference, kind of like flow at the checker stage. The minifier can hook in the emitter stage.

I could write a plugin to support extra syntatic sugar. e.g is isn't, and, or, not. a plugin to support Coffeescript like omission of parenthesis and curly braces.

There could be a plugin to inline function calls, or a plugin to output computationaly intensive code as asm, or wasm.

There could be a plugin to cache the AST's so when the same file is encountered with the same hash, it can load the AST from cache speeding up the compiler.

This would mean typescript does what it needs to do the best, the community can build plugins rather than having to fork the whole typescript project to support a simple feature.

tsconfig.json would have a plugins array and just like npm init, tsc can auto download the plugins if it doesn't have them.

What do you think?

Issue 2:
We get "bug reports" of this nature very often:

I wrote this code

interface Window {
myPlugin: any;
}
let x = window.myPlugin;
class Foo { }

then I added 'export' and I get compile errors, wat?

interface Window {
myPlugin: any;
}
let x = window.myPlugin;
export class Foo { }

Our current answer today is "Move your stuff to another .d.ts file". This is an OK workaround, but not great. The real sticker is when there's a type defined inside an external module -- it's impossible to use those types to augment a global interface, even though this is a thing that actually happens. It gets even trickier because this encourages people to move types into the global namespace when they didn't want to in the first place, exacerbating the problem.

We need some proposal for how to make this work.
Issue 1:
Checklist

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

Steps to reproduce

settings.py:

CELERY_DEFAULT_QUEUE = 'qs'

Expected behavior

(Pdb) app.conf.task_default_queue
u'qs'

Actual behavior

(Pdb) app.conf.task_default_queue
u'celery'

Issue 2:
I have checked the issues list

for similar or identical enhancement to an existing feature.

I have checked the pull requests list

for existing proposed enhancements.

I have checked the commit log

to find out if the if the same enhancement was already implemented in the

master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Brief Summary

Currently LOG_SUCCESS and friends allows customizing the messages, but Received task is fixed. It would be good for this to be customizable and include the same values in extra (i.e. use celery.app.trace.info rather than logging.info). I was thinking something like this:

info('Received task: %s', {
'name': req.name,
'id': req.id,
})

Design

Architectural Considerations

Should be a non-breaking change that only adds a customization point

Proposed Behavior

Add LOG_RECEIVED so it can be customized as well

Proposed UI/UX

N/A

Diagrams

N/A

Alternatives

None that I can think of
Issue 1:
Consider following example:

console.log(...['Hello', 'world']);

It's a completely valid console.log usage scenario however TypeScript (@1.6.2) raises TS2346 error: Supplied parameters do not match any signature of call target.

The log's signature is:

declare function log(message?: any, ...optionalParams: any[]);

Therefore following code:

console.log('Hello', ...['world']);

is considered valid, without any errors.

In my opinion the top example should not trigger any errors.

Issue 2:
The default signature for console.log is wrong.

log(message?: any, ...optionalParams: any[]): void;

See this code example:

function puts(...optionalParams: any[]): void {
console.log.apply(this, arguments); // no error

// Supplied parameters do not match any signature of call target.
// Method Console.log(message?: any, ...optionalParams: any[]): void;
console.log(...arguments); // see error above
}

If I update the signature to log(...optionalParams: any[]): void; then it works.
Issue 1:
Challenge Waypoint: Make Images Mobile Responsive has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<div class="container-fluid">
<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="img-responsive smaller-image thick-green-border" src="http://bit.ly/fcc-relaxing-cat"></a>
<a href="#"><img class="img-responsive smaller-image thick-green-border" src="http://bit.ly/fcc-running-cats"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
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 1:
const enum Types{ NAME=0, NODE=1 }
var a: [string, Node];
a[Types.NODE].parentNode; // parentNode does not exists
a[1].parentNode;// that is works fine

Issue 2:
TypeScript Version:

1.8.2

Code

// A self-contained demonstration of the problem follows...
class Repro
{
static property = {
foo: "bar"
};
}

tsc --allowJs --out out.js repro.js

Expected behavior:

Compiles without error

Actual behavior:

repro.js(3,5): error TS8014: 'property declarations' can only be used in a .ts file.
Issue 1:
I read this discussion about max and maximum returning NaN when the collection includes NaN. For example,

julia> VERSION
v"0.7.0-DEV.82"

julia> v = [1.0, NaN, 2.0]
3-element Array{Float64,1}:
1.0
NaN
2.0

julia> maximum(v)
NaN

However, findmax still returns the maximum among non-NaN values and its index:

julia> findmax(v)
(2.0, 3)

This seems inconsistent. Is this something intended or a bug?

Issue 2:
See #23155. These should be made to match and documentation updated accordingly.
Issue 1:
Hi many times people need to use Twitter Bootstrap on only part of a web page or to otherwise have a prefix class to reduce the scope of the Bootstrap CSS. This can be accomplished in LESS , see http://stackoverflow.com/questions/11831346/applying-css-styles-only-to-certain-elements

.bootstrap-container {
@import "/path-to-bootstrap-less.less"
@import "/path-to-bootstrap-responsive-less.less"
}

It would be great if there was an option on the bootstrap customization page to add an optional prefix to all css elements. Thanks!

Issue 2:
To prevent random mixing of styles maybe we should use prefix?

For example, .tb-span6 or .tb-row instead .span6 or .row?

.menu, .navbar is so common class names so it may a little confusing without prefix
Issue 1:
VSCode 10.8, OSX El Capitan, MBP

Given the following scenario:

Pressing tab now produces this:

The undo buffer is empty.

Potential regression in 0.10.8, this feature worked fine in 0.10.7

UPDATE: this behavior is not predictable. If there are tab characters in the selection, or tab has been used already in the page other places, then it looks like working, but then again, not always.

Please consider this rather serious, as it can actually cause loss of code - if you have unsaved changes, since you cant undo.

Issue 2:
I wanted to indent multiple lines at once but it failed. This is how it looks like when I select some lines and press Tab. Sometimes it works though, like when creating an untitled file in split screen.

Quite important bug @egamma @jrieken @bpasero
Issue 1:
The doumentation mentions at http://electron.atom.io/docs/v0.27.0/tutorial/application-distribution/

you can also package your app into an asar archive to avoid exposing your app's source code to users.

I was able to view the source code at \resources\app.asar after installation. Was able to even edit the file (used Notepad++). (e.g. "Welcome to" edited to "to Welcome") and the app worked normally.

Issue 2:
It appears to have been a while since the last discussions on source code protection with snapshots. NW.js and enclosejs have found ways to do snapshots without including the source code. I was wondering if this could be looked at again, thank you!
Issue 1:
When I start atom for the first time I have a very high disc io. I've started iotop and found 4 apps running:

2288 be/4 user 717.17 K/s 0.00 B/s 0.00 % 98.51 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2291 be/4 user 679.23 K/s 0.00 B/s 0.00 % 97.91 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2290 be/4 user 694.40 K/s 0.00 B/s 0.00 % 97.41 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2289 be/4 user 599.54 K/s 0.00 B/s 0.00 % 96.19 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');

its running for about a minute with 4 times almos 100% disc write usage. After a minute they are finished and no disc io

atom 0.180.0-ac7057b

Dell M4500 Notebook

Fedora 21

Issue 2:
Hi, i have used Textmate for a loong long time. But also as a big fan of new things, i decided to try Atom for curiosity purposes.

It turns out that i found Atom a great platform for day-by-day development, and im using it Atom now. But theres one thing annoying me:

I usually open Atom using the Shell command "atom [filename]", and compared to "mate [filename]" (the same command Textmate use for open files using Shell), Atom is incredible slow (i feel i have to wait twice of the time, like 1s~2s).

I know this performance also is related to machine specs, processors, memory and etc. But its the exactly same task executed for different tools.

I can record a video showing that behavior if you like.

Also, if this is a un-prioritize known issue, i can submit a pull request if theres noone working on it. I just need to know where to start looking.

][`s
Issue 1:
When trying out the form-control-feedback css class, I noticed that if you don't have a corresponding label element or if that label element is hidden and the the form does not have the form-horizontal class the span element is inserted below the input element.

http://jsfiddle.net/h73ZL/

Issue 2:
When using the has-feedback class on a form and if the label on the form group is not specified then it does not render correctly.

<form>
<div class="form-group has-success has-feedback">
<input type="text" class="form-control" id="inputSuccess2">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
</form>

The above code renders like this.
Issue 1:
Can we introduce a new postfix operator for the transpose, like A^⊤ or A̕ ?

It would of great help to us who write expressions with a lot of transposes. For example:

a = (transpose(s)*A*s)\s*(Q-transpose(s)*p+U*transpose(R)*κ)

and it would more true to form if the multiple calls to transpose() were replaced with something more terse. Even if the language defaulted to transpose for A' unless it knew a complex data type was used when the adoint is more appropriate.

Issue 2:
Now that .op is generally the vectorized form of op, it's very confusing that .' means transpose rather than the vectorized form of ' (adjoint, aka ctranspose). This issue is for discussing alternative syntaxes for transpose and/or adjoint.
Issue 1:
Bug report

Bug summary

Setting font as Computer Modern Roman (matplotlib.rcParams.update({'font.family': 'cmr10'})) results in negative signs in ticklabels not rendering. Oddly, negative signs in titles & labels render fine.

Code for reproduction

import matplotlib
matplotlib.rcParams.update({
#'mathtext.fontset': 'cm',
'font.family': 'cmr10'
})
import matplotlib.pyplot as plt

plt.figure()
plt.plot(range(-1, 1), range(-1, 1))
plt.title(r"dash (-) $mathtext:negative (-)\bf{mathtext.bf:negative (-)}$")
plt.xlabel(r"dash (-) $mathtext:negative (-)\bf{mathtext.bf:negative (-)}$")

Actual outcome

/usr/local/lib/python3.6/dist-packages/matplotlib/backends/backend_agg.py:214: RuntimeWarning: Glyph 8722 missing from current font.
font.set_text(s, 0.0, flags=flags)
/usr/local/lib/python3.6/dist-packages/matplotlib/backends/backend_agg.py:183: RuntimeWarning: Glyph 8722 missing from current font.
font.set_text(s, 0, flags=flags)

Matplotlib version

Operating system: ubuntu

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline

Python version: 3.6.9

Jupyter version (if applicable):

jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : not installed
ipython : 7.13.0
ipykernel : 5.2.0
jupyter client : 6.1.3
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.6
traitlets : 4.3.3

Installed via conda channel conda-forge

Issue 2:
Hello ,It's very nice to use it ! Someday when I run my code I got a Warning:

RuntimeWarning: Glyph XXX missing from current font.

font.set_text(s, 0.0, flags=flags)

XXX is some numbers, such as 8722 、25329 etc.

Although it doesn't influence the result, I really want to slove this warning. What can I do?

Thanks and best wishes!
Issue 1:
I understand that when it comes to property initializers, there might be a need to perform some hocus-pocus with the initializer property, which effectively prevents modifying descriptor's value (it is overwritten by the result of the initializer function in the end).

But for plain objects descriptor's value can be left intact. Accessing it by a decorator is currently unnecessarily prevented.

Could it be not so? If yes, then I volunteer to create a PR with a fix for that :)

Issue 2:
Feature request:

Recommendation from Node core is to output mjs alongside js files so that the package.json main field can be ambiguous. Since babel only outputs .js files when used with the -d directory flag, it becomes complicated to make this work. I'd like to see an option available to specify the extension the same as with parsing/consuming mjs.

Current Behavior

This is the most elegant solution I've found so far, which involves building all files into a temporary directory, renaming all the files to mjs, copying them into the dist/node destination, and then removing the temp directory.

"build-node-esm": "babel lib -d dist/node-es && rename -v .js .mjs dist/node-es/*.js && rename -v .js .mjs dist/node-es/**/*.js && cp -R dist/node-es/* dist/node && rm -rf dist/node-es",

Possible Solution

My suggestion would be to add a new CLI flag option to specify the output extension. This will allow developers to easily support both Node-based ESM/CJS.

babel lib -d dist/node --ext ".mjs"

Context

I'm trying to figure out how to build a library that will be ready to take advantage of the new Node ESM semantics.

Your Environment

software
version(s)

node
v9.0.0-pre
Issue 1:
ISSUE TYPE

Feature Idea

ANSIBLE VERSION

ansible 2.0.1.0

SUMMARY

--check currently is only available as command line option and sometimes people forget so it would be nice if there is something like check_mode: True in playbook so we don't have to worry about command line options.

The output of check mode run should be more obvious to indicate that this is a check only.

Thanks

Issue 2:
Ansible check_mode allows determining if a task would have changed something, but only on the level of an entire play.

But there are obvious cases where idempotency requires being able to change the order of events - i.e. check if a file would be changed, if so, stop a daemon and change the file - otherwise do nothing.

This can be replicated by comparing mtimes locally and remotely, but leads to complicated syntax for something the existing feature can already provide.

Ideally something like this would be possible:

- hosts: webservers
tasks:
- copy: src=monitoredfile dest=monitoredfile
check_mode: true
register: copy_check

- service: name=webserver state=stopped
when: copy_check.changed

- copy: src=monitoredfile dest=monitoredfile
when: copy_check.changed

- service: name=webserver state=started
when: copy_check.changed

This is simple and readable, and helps in dealing with services which may be monitoring config directories for new files but which would might like to try and avert for changes like that (exim with a perl interpreter can be a problem in this regard).
Issue 1:
the system allows you to delete a replicationController whose replicas > 0

when the replicationController is deleted - it leaves the orphaned pods running

Issue 2:
After I delete a replicationController, its pods are still getting replicated when I try to delete the pods.

Create two replication controllers:

cluster/kubecfg.sh -p 8080:80 run dockerfile/nginx 3 myNginx

cluster/kubecfg.sh -p 6379:6379 run dockerfile/redis 3 myRedis

Wait until everything is running then delete one of the controller:

cluster/kubecfg.sh delete /replicationControllers/myNginx

Reports success, it's gone from the list.

Then try to remove its pods:

cluster/kubecfg.sh delete /pods/{podID}

Result: It will recreate the removed pod, it also appears in the log of master:

I0812 11:47:26.242463 06745 replication_controller.go:152] Too few replicas, creating 3

I'm on c6dcfd5 and did a fresh vagrant up today after destroyed my previous cluster.
Issue 1:
This should compile without errors:

declare function getDBObjectById(id: number): DBObject;
declare function bar(arg: DBObject): void;
function foo(arg: number | DBObject) {
if (arg instanceof DBObject) {
bar(arg)
} else {
bar(getDBObjectById(arg) // error TS2345: Argument of type 'number | DBObject' is not assignable to parameter of type 'number'.
// Type 'DBObject' is not assignable to type 'number'.
}
}

Issue 2:
Hi,

TS Version: 1.4

In the following:

class Bar {
bar ='bar';
}

class Foo {
foo = 100;
}

function f1(x: Bar|Foo) {

if(x instanceof Bar){
console.log(x.bar);
}
else {
console.log(x.foo); // Error: inferred as Bar|Foo
}
}
f1(new Bar()); // bar
f1(new Foo()); // 100

is there any reason why in the else block we are failing to narrow the type to Foo?
Issue 1:
Let the user set a global setting to have the terminal re-open with whatever profiles were last open.

Thoughts:

what happens when a user has two windows open, closes one with 3 tabs, then opens a new window? Should it open the 3 tabs? Or should it start a fresh, single tabbed window?

how do we persist the last session?

Do we only persist the last tabs open when the last terminal window is closed?

Do we add a "quit terminal" option that closes all open windows, and persists all their open profiles?

THIS IS NOT A DISCUSSION OF PRESERVING WINDOW CONTENT, ONLY OPEN WINDOW PROFILES

This also includes restoring things like previous window positions.

Issue 2:
Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable):

Steps to reproduce

Open the new terminal

press Win + = to open magnifier.exe

press the + button to create a new tab in terminal

Expected behavior

the window should scale correctly when zoomed. Here is an example of what it should look like from Fluent Terminal

Actual behavior

The menu is scaled inappropriately