WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Choose one: is this a bug report or feature request?

Input Code

class Test {
testFun() {
return 0;
}
}

Babel Configuration (.babelrc, package.json, cli command)

{
"babel-preset-es2015": "7.0.0-alpha.10",
}

Expected Behavior

I used babel-preset-es2015 7.0.0-alpha.10

when I compile Test.js

compile error "path.get(...).arrowFunctionToExpression is not a function while parsing"

Issue 2:
Minimal repro:

.babelrc

{
"presets": ["es2015", "stage-2"]
}

repro.js

class Stream {
timeout(timeLimit, opts) {
let timeout = null;
}
}

$ babel --version
6.1.18 (babel-core 6.1.19)

$ babel repro.js
TypeError: repro.js: Duplicate declaration "timeout"
1 | class Stream {
2 | timeout(timeLimit, opts) {
> 3 | let timeout = null;
| ^
4 | }
5 | }
6 |
at File.buildCodeFrameError (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:408:15)
at Scope.checkBlockScopedCollisions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:488:27)
at Scope.<anonymous> (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:673:18)
at Scope.registerBinding (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:687:8)
at Scope.registerDeclaration (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:575:14)
at Object.BlockScoped (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:226:28)
at Object.newFn (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/visitors.js:311:17)
at NodePath._call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:102:12)

According to the author of the original code (which is not me), this should be allowed and it is also working in Chrome Canary.

As I understand it, a function has its own LexicalEnvironment and corresponding EnvironmentRecord. Creating a new binding only checks for duplicates in that same EnvironmentRecord - not in any containing LexicalEnvironment / EnvironmentRecord:

[http://www.ecma-international.org/ecma-262/6.0/#sec-declarative-environment-records-createmutablebinding-n-d]

Also see this original issue.
Issue 1:
Spacing seems to be hard coded to xs but there's code that calculates spacing for each breakpoint.

https://github.com/mui-org/material-ui/blob/c3f222bf8c08e9607a32d5eb9161de5ed124780b/src/Grid/Grid.js#L187

Is this something that just needs to be "turned on" or were there complications with exposing this?

Issue 2:
Hello,

Description

Add extra flex properties on Layout

Currently, not all flex properties are supported.

I think we could benefit to have them so we don't have to touch the CSS every time when dealing with layout only components.

Missing properties : grow, shrink, basis, flow, order

Make the breakpoints properties (xs, sm, lg...) accept an object of subproperties

With the breakpoints properties, we have the control over the width of our components based on the screen resolution.

It would be totally awesome to have control over all the flex properties based on the resolution.

To do that, we could make the breakpoints properties accept an object of subproperties like this :

<Grid spacing={{ sm: 2, md: 4 }} alignItems={['center', 'flex-end']}>
{/*...*/}
</Grid>

Images & references

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout
Issue 1:
This causes an infinite loop:

macro_rules! m {
( $()+ ) => ();
}

m!();

Issue 2:
Play rust link: http://is.gd/DVjBtk

macro_rules! a {(<$($($d:expr),*$($c:ident),*)*>) => (B<$($d,)*$($c,)*>);}a! (<>);
Issue 1:
Hi,

I was trying to add Cairo, Gadfly and IJulia packages, and ran into some issues.

Gadlfy installed fine. But I can't use this.

julia> using Gadfly

ERROR: IOString not defined

in reload_path at loading.jl:144

in _require at loading.jl:59

in require at loading.jl:43

while loading /home/mahesh/.julia/v0.3/Gadfly/src/weave.jl, in expression starting on line 21

while loading /home/mahesh/.julia/v0.3/Gadfly/src/Gadfly.jl, in expression starting on line 71

I can't install IJulia or Cairo. gives me the similar error

spawn: no such file or directory (ENOENT)

while loading /home/mahesh/.julia/v0.3/Cairo/deps/build.jl, in expression starting on line 129

Any thoughts on how to solve these?

Thank you.

Issue 2:
Fresh install of Julia head on OSX 10.8.5. Pkg.add("Gadfly") ; using Gadfly yields

ERROR: IOString not defined
while loading /Users/dpo/.julia/v0.3/Gadfly/src/weave.jl, in expression starting on line 21
while loading /Users/dpo/.julia/v0.3/Gadfly/src/Gadfly.jl, in expression starting on line 71

Any ideas?

Thanks.
Issue 1:
While debugging biocore/biom-format#816, we noticed that the return type of __getitem__ for a sparse matrix object changed between SciPy versions.

We did not see anything that stood out in the changelog regarding this, but we apologize if we overlooked something. We also attempted to identify what commit may have been associated with this but have so far not been successful. We would be happy to assist on or contribute a PR if one is appropriate here.

Reproducing code example:

For SciPy 1.2.0:

>>> import scipy.sparse as sp
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.2.0 1.15.4 sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
>>> print(type(sp.csr_matrix([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.float64'>

For SciPy 1.3.0:

>>> import scipy.sparse as sp
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.3.0 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
>>> print(type(sp.csr_matrix([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.ndarray'>

Behavior as observed with a 2D np.array:

>>> print(type(np.array([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.float64'>

Issue 2:
Indexing csr or csc sparce matrix return an array of one element with scipy 1.3, With previous version it returned a scalar. I believe it is an oversight since lil_matrix indexing still return a scalar.

import scipy
import numpy as np
print(type(scipy.sparse.csr_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.csc_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.lil_matrix(np.eye(3))[0,0]))

<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float64'>

Scipy/Numpy/Python version information:

scipy 1.3.0

numpy 1.16.3

python 3.7.0
Issue 1:
All of the projects I'm working on are mounted through SSHFS which will become inaccessible as I move around places, and now that Atom attempts to load previously opened tabs/folders on program startup, I almost always will see a huge list of red warnings on the right side twice a day as I move from home to office and office to home. It'd be great if we can add in an option to turn this behavior off because it's not beneficial to me in this case.

Issue 2:
It's useful that atom can remember the files/folders you had open last time and then re-open them next time you start atom. I can't seem to figure out how to turn off this behavior though, I generally want to start clean each time I open atom.

Is there a config option to enable/disable this feature? Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?
Issue 1:
VSCode Version: 1.0.0

OS Version: OSX 10.11.4 (15E65)

Steps to Reproduce:

When I press "CMD"+"/" the result is "CMD"+"["

and others

Should I re-binding the shortcut

Thanks

Issue 2:
Now it "outdents." There are a few other potentially related oddities, such as Command-[ causing the text to get smaller, and Command-] causing the text to get larger.

If I had to guess, someone change the key-mapping code to work off of key codes and not characters, so it think it's using a QWERTY keyboard, even though it's not.

This worked prior to the latest update (broken version is 0.10.5 dfc08dc).
Issue 1:
I just completed jQuery, and started Javascript, but the challenges section is all messed up

I tried in all browsers, and all latest updated. Chrome, Mozilla, Microsoft Edge.

I even tried on both my desktop PC as well as laptop, same issue

Issue 2:
After finishing a challenge and jumping to the next, I find that 9/10 times when I click where I want to start typing my code the cursor (flashing "I"?) doesn't stick to where I want to be. I'll start typing and it'll go a line or two below, which I have to erase, click somewhere else, then finally be able to type where I want.

Anyone else experiencing this??
Issue 1:
Environment

Microsoft Windows [Version 10.0.18362.388]
Version: 0.5.2762.0

# Steps to reproduce

Open terminal
full screen app
open 7 or more tabs

# Expected behavior

The tab on the end should show a X button
and not be cut off;

# Actual behavior

The seventh tab is cut off, hiding text and X button.

![Capture3](https://user-images.githubusercontent.com/50422375/66369073-b03d3400-e94f-11e9-9997-cb3e020bfd2d.PNG)

Issue 2:
Environment

Windows build number: [10.0.18362.175]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Open the new terminal on a french machine, using AZERTY keyboard

Type Alt Gr + 8 to get the back-slash

Expected behavior

A back-slash should print on the window

Actual behavior

An underscore prints
Issue 1:
I am opening this master/umbrella issue to track Ubernetes e2e test flakes. I think this issue is sufficient right now. But as we make progress we might have to fork this into sub-issues.

This issue is not just about the e2e tests themselves but also includes infrastructure related flakes such as bringing up the clusters, bringing up the federation control plane, etc.

Here is one flake that I am seeing from yesterday:

$ FEDERATION=true E2E_ZONES="us-central1-f" KUBE_GCE_ZONE="us-central1-f" go run hack/e2e.go -v --up
...
...
...
NAME LOCATION SCOPE BASE_INSTANCE_NAME SIZE TARGET_SIZE INSTANCE_TEMPLATE AUTOSCALED
madhusudancs-us-central1-f-minion-group us-central1-f zone madhusudancs-us-central1-f-minion-group 3 madhusudancs-us-central1-f-minion-template
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Group is stable
INSTANCE_GROUPS=madhusudancs-us-central1-f-minion-group
NODE_NAMES=madhusudancs-us-central1-f-minion-group-5wk9 madhusudancs-us-central1-f-minion-group-6ys7 madhusudancs-us-central1-f-minion-group-l1vs
Using master: madhusudancs-us-central1-f-master (external IP: <REDACTED_IP>)
Waiting up to 300 seconds for cluster initialization.

This will continually check to see if the API for kubernetes is reachable.
This may time out if there was some uncaught error during start up.

...................................................................................................................................................Cluster failed to initialize within 300 seconds.
2016/06/02 14:18:06 e2e.go:218: Error running up: exit status 1
2016/06/02 14:18:06 e2e.go:214: Step 'up' finished in 8m0.261564635s
2016/06/02 14:18:06 e2e.go:114: Error starting e2e cluster. Aborting.
exit status 1

cc @colhom @nikhiljindal @colhom @kubernetes/sig-cluster-federation @jianhuiz @mfanjie

Issue 2:
We reverted it to use Update (PUT) while scale was broken. We should revert back, for ReplicationController, ReplicaSet, and Deployment.

cc @janetkuo @madhusudancs @soltysh @kargakis
Issue 1:
Electron Version: 2.0.7

Operating System (Platform and Version): Ubuntu 16.04

Expected Behavior

The print task should be sent without showing the system dialog, and it should print the html content.

Actual behavior

it is not doing anything at all.

To Reproduce

secondWindow.webContents.print({silent: true, printBackground : false, deviceName : ''},(success) => {
if(success){
console.log(success);
secondWindow = null;
}
});

silent : false option is printing the content but not calling the callback function. i don't want the user interaction when something need to be printed.

secondWindow.webContents.print({silent: false, printBackground : false, deviceName : ''},(success) => {
if(success){
console.log(success);
secondWindow = null;
}
});

Issue 2:
Issue 1:
have a breakpoint in a loop

run and once hitting the breakpoint keep pressing play

notice that the feedback of resume and pause is not strong enough. It seems we animate/delay something which hides the state transitions.

Issue 2:
Hi Guys!

If I create a new file in my workingdirectory ist doesn't show up. I have to refresh the list and then there is my new file. In a previous version the refresh was automatically there when I create a new file. The same thing applies to folders.

My version of VSCode is 0.10.5
Issue 1:
Hi,

Should be great to be able to perform a grouping of computed values using the pipeline aggregation range bucket.

Thanks,

David

Issue 2:
Let's say the data set is transactions made by users and the question we want to ask is "Which users have transactions totalling between 100 - 200, 200 - 300, etc.?"

At the moment, there doesn't seem to be a way to do this in one query.

Given documents like this:

"user": user1,
"credit": 50

we can answer questions such as "Show me only the users that have transactions totalling more than 100" by using a bucket_selector like this:

"aggs": {
"users": {
"terms": {
"field": "user"
},
"aggs": {
"sum_credit": {
"sum": {
"field": "credit"
}
},
"the_pipeline_agg": {
"bucket_selector": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"script": "sumCredit > 100"
}
}
}
}
}

And now we could form ranges on the client side by running several of these queries in parallel.

But to answer the original question we would need some form of range pipeline aggregation like:

"bucket_range": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"ranges": [
{ "to": 100 },
{ "from": 100, "to": 200 }
]
}

Or maybe even a more generic "bucket defining" pipeline agg, e.g.:

"bucket_definer": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"bucket_script": "floor(sumCredit / 100)"
}

This would define automatically define buckets for 0-100, 100-200, and so on.
Issue 1:
Checklist

Happens on master and previously released versions as well.

Steps to reproduce

See

celery/celery/backends/redis.py

Line 22
in
b266860

from . import async, base

and

celery/celery/backends/rpc.py

Line 20
in
b266860

from .async import AsyncBackendMixin, BaseResultConsumer

and https://github.com/celery/celery/blob/master/celery/backends/async.py

Expected behavior

Module should not be named async.

Actual behavior

Module is named async.

More info

I fail to run 3.7 test easily, but this leads to:

File "celery/backends/redis.py", line 22
from . import async, base
^
SyntaxError: invalid syntax

Issue 2:
Checklist

I have checked the issues list

for similar or identical feature requests.

I have checked the pull requests list

for existing proposed implementations of this feature.

I have checked the commit log

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

main 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

I want to using the return task_id to moniter whether the task was success or not in difference environment not the task function revoked in django view.

For example:

the celery task revoked in django view, task=task1.delay(),

and then i want to consumers.py of websocket environment to moniter the task1 status, when it success, i want to trigger a function to send a message to frontend html.

Possible Duplicates

None

Brief Summary

Design

Architectural Considerations

None

Proposed Behavior

Proposed UI/UX

Diagrams

N/A

Alternatives

None
Issue 1:
.text-right, .text-center, .text-left don't have any affect when applied to <td> elements. I haven't checked, but I assume that's because the CSS specifies p.text-right etc.

Issue 2:
With the following code, "foo" is aligned to left instead of right

<table class="table">
<tr>
<td class="text-right">foo</td>
</tr>
</table>
Issue 1:
Bug summary

When using symlog scale for an axis, a false warning is initially generated - independant of the data to plot - as soon as the mouse is moved over the axes.

Code for reproduction

import matplotlib.pyplot as plt

ax = plt.figure().add_subplot()
ax.set_yscale('symlog')

plt.show()

Actual outcome

UserWarning: All values for SymLogScale are below linthresh, making it effectively linear. You likely should lower the value of linthresh.

Expected outcome

"Nothing"

Additional information

... maybe related to TkAgg?

Operating system

Windows

Matplotlib Version

3.7.0

Matplotlib Backend

TkAgg

Python version

3.11.2

Jupyter version

No response

Installation

pip

Issue 2:
Matplotlib plots are shown in reduced resolution: every pixel of the plot takes 4 physical pixels.

Version: 1.2.0

To reproduce just plot anything on retina macbook.

Screen Shot 2013-04-28 at 14 56 02
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I got the right answer, but the question wasn't a good guide. I suspect the question can be tightened up. Should I propose replacement text? You 'issue readers' likely know better.

Issue 2:
http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions

In this waypoint you learn functions but a few things are confusing to new people in my opinion:

1) Showing functions written two different ways without any explanation:

On the code you see:

ourFunction = function() {
return a - b;
};

but the description shows a function written like this:

function functionName (a, b) {

return(a + b);

}

If this is your first time seeing this it could bring unnecessary confusion in my mind.

2.) The function shown in the code does not pass any arguments.

This code shown again does not have anything passed in and uses the global variables. Being new this could cause unnecessary confusion without understanding how functions work:

ourFunction = function() {
return a - b;
};

I suggest removing the ourFunction = function() { return a -b; }; in the code or maybe explaining how the values are getting into the function by passing them or globally.
Issue 1:
The current code for str::not_utf8 condition does this:

cond.raise(fmt!("from_bytes: input is not UTF-8; first bad byte is %u",
first_bad_byte as uint))

It might be more reasonable for condition handlers to recover in this situation if they had a reference to the original byte vector, rather than just a string describing what was wrong.

(In one case, the byte vector being passed is a ~[u8], but in another it is &[u8]; in the latter, case, attempting to do this would run into #5370, unless we were willing to allocate a copy when raising the condition, which is probably not a good idea.)

(Update: blake2-ppc makes a reasonable suggestion in his comment below, though it involves a more substantial revision to the code. I've generalized the title of this ticket accordingly.)

Issue 2:
Currently even this simple cat program:

use io::ReaderUtil;
fn main() {
for io::stdin().each_line |line| { io::println(line); }
}

...fails on the broken or invalid UTF-8 strings (or possibly in other character encodings, as this example illustrates):

$ echo 깨진 글자 | iconv -f utf-8 -t cp949 | ./test
rust: task failed at 'Assertion is_utf8(vv) failed', [...]/rust/src/libcore/str.rs:50
rust: domain main @0x7fcf32815e10 root task failed

...due to the byte sequence is assumed to be in UTF-8 (which is not). But there is currently no standard way to fix broken UTF-8 strings by replacing offending substrings by some other valid UTF-8, so it is hard to fix this kind of bugs.

This issue is ultimately linked to the general character encoding handling (libiconv binding, perhaps?) and a strict distinction between byte sequence and Unicode (UTF-8) string. I found Python's approach reasonable (bytes and str are separated, converted to each other via encode and decode methods, normal file open reads bytes, codecs.open with an encoding converts them to str), but I'm really not sure about the actual interface.
Issue 1:
[ x] feature request

Current behavior

currently renderer.setElementStyle can not set !important

renderer.setElementStyle(el, styleProperty, styleValue)

Expected behavior

renderer.setElementStyle(el, styleProperty, styleValue, important)

important could be a optional boolean

What is the motivation / use case for changing the behavior?

to be able to set !important programmatically

Angular 2.0.2

Browser: [all ]

Language: [all ]

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting

Current behavior

Both options will fail:

[ngStyle]="{'color':'red !important'}"
[style.color]="'red !important'"

Expected behavior

!important is valid css usecase.

Reproduction of the problem

https://plnkr.co/edit/abOMwv3tcYnnjqjCe4ff?p=preview

Angular version: 2.0.0

Browser: [all ]

Language: [TypeScript 1.8.11]
Issue 1:
Error log:

Starting Deno language server...
version: 1.34.1 (release, x86_64-unknown-linux-gnu)
executable: /home/olivier-faure/.cargo/bin/deno
Connected to "Visual Studio Code" 1.78.2
Enabling import suggestions for: https://deno.land
Server ready.

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 1.34.1
Args: ["/home/olivier-faure/.cargo/bin/deno", "lsp"]

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /home/olivier-faure/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.9.0/src/view/generated.rs:14469:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 1:25:24 PM] Connection to server got closed. Server will restart.

Full log here, though it's mostly the same on loop.

The error reccommends running the language server with RUST_BACKTRACE=1, but I don't know how to do that from VsCode. I installed deno with cargo install.

deno lsp alone doesn't give me any error.

Issue 2:
Deno has panicked. This is a bug in Deno. Please report this

at https://github.com/denoland/deno/issues/new.

If you can reliably reproduce this panic, include the

reproduction steps and re-run with the RUST_BACKTRACE=1 env

var set and include the backtrace in your report.

Platform: linux x86_64

Version: 1.33.3

Args: ["/home/.../.cargo/bin/deno", "lsp"]

thread '' panicked at 'called Option::unwrap() on a None value', /home/.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.9.0/src/view/generated.rs:14469:17

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

[Error - 11:23:00] The Deno Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information
Issue 1:
Canonical example [None, ..10] doesn't work for a generic [Option<T>, ..10]. It's possible to write a macro to accomplish this, but it sucks that that's necessary.

Issue 2:
This should be fixable by special casing this (the type isn't copyable, but for this specific case the variant is).

This problem only exists with fixed-size vectors since vec::from_fn(10, |_| None) works with non-copyable types.

@nikomatsakis thinks this should be fixable