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

Navigate to flutter_gallery and run with flutter run

Navigate to the Icons demo page within the app

Notice the size 48.0 Icon displays incorrectly for certain colors.

The problem seems to be apparent for any Icon sizes between 40.5 -> 96.0, inclusively.

Please note, I've only tested this on a Samsung S6.

Issue 2:
Ensure Android architecture works with deep linking:

https://docs.google.com/document/d/1AKPWL50wzQFTSaEz2AbGZm5Fkm01uvunZH8AEoLJMRI/edit
Issue 1:
Both .dropdown-menu and .navbar have same z-index:1000 so navbar overriding dropdown menus.

Example:

http://getbootstrap.com/examples/theme/

Just click to first navbar's dropdown menu in Navbars section.

Issue 2:
In the example at http://getbootstrap.com/examples/theme/

the dropdown appears below the other menu.

Firefox 23.0.1
Issue 1:
with-external-scoped-css is not perfect.

In a slightly larger system, doing so will add a lot of work.

I think style jsx is not a good idea, it can not and other open source UI framework very good integration.

Have you considered using sass + css modules as the main technical point

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Is it possible to detect reliably if a next.js app is running from server or via next export in getInitialProps and hence client side?

Current Behavior

Currently, I am using the presence of res in getIntialProps to find out but I realized that it won't be present for client-side navigation.

Context

I am working on an app and testing the scenario where my backend is down. In an exported site, I should have all the data available already but my JS code calls backend in getInitialProps and crashes.

In the place where I am catching this error, I can trigger a location.reload() to render the content statically and serve users without the backend being up.

This is one of a few use cases.

Your Environment

Tech
Version

next
v4.2.3

node
v8.4.0

OS
MacOS high sierra 10.13.3

browser
63.0.3239.132

etc
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behaviour

When on a mobile device, touching the ToolTip should activate it, showing the configured text

Current Behaviour

Chrome Device Emulator -> clicking on the icon itself does not activate the ToolTip, only a small area to the right consistently activates it

iPhone 7 -> the ToolTip occasionally fires, it's hard to get is consistently as the hit area isn't registering every touch.

Steps to Reproduce (for bugs)

This can be reproduced by testing the demo page in device emulation or on an actual device:

https://material-ui.com/demos/tooltips/

Start of the gif i'm clicking directly on the icon, after a couple of attempts i find the hit area below the icon

Your Environment

Tech
Version

Material-UI
1.0.0-beta.30

React
16.02

Issue 2:
[ x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I do not use any Subheader elements in my project. Bundling the project should throw no errors.

Current Behavior

Bundling the project folder, without Subheaders being used anywhere, throws the below error:

/..../node_modules/material-ui/List/List.js:47:25: Cannot resolve dependency '../Subheader' at '/..../node_modules/material-ui/Subheader'

Steps to Reproduce (for bugs)

yarn add material-ui@next

yarn start // which runs parcel index.html

Context

I am working on a prototype React App, where @latest was installed. I wanted to upgrade to the beta to start using the grid.

Your Environment

Tech
Version

Material-UI
next / 1.0.0-beta.32

React
^15.4

browser
Brave, Chrome, others / N/A - happens in the command line

bundler
Parcel
Issue 1:
Say you have some some incomplete data on weirdly growing plants, and want to plot it as below. You might want to explicitly exclude the tree data for outdoor, as you just didn't test it and do not want to confuse anyone. How can this be done? I would have expected sharex=False to accomplish this, but apparently it does not. I this intended and can this be done in another way? (In my real example I also have set hue='other_attribute' but it probably does not play a role in this discussion.)

import seaborn as sns
from matplotlib import pyplot as plt
from pandas import DataFrame

data = DataFrame(
data=[
['grass', 'indoor', 30],
['bushes', 'indoor', 80],
['tree', 'indoor', 100],
['grass', 'outdoor', 50],
['bushes', 'outdoor', 120]
# this does not exist: ['tree', 'outdoor', 300],
],
columns=[
'type', 'where', 'height'
])

graph = sns.catplot(x="type", y="height", col="where", data=data,
kind="bar", orient="v")
plt.show()

Issue 2:
I would have expected that I can visualize different categorical variables in a count plot using catplot and melt.

However, it looks like the data is converted to categorical before grouping for the columns, and so the categories are shared among all the count plots. That doesn't really make sense if the different columns correspond to different categories.

Am I overlooking something or is there a different way of doing this?

import pandas as pd
import seaborn as sns
ames = pd.read_excel("http://www.amstat.org/publications/jse/v19n3/decock/AmesHousing.xls")

cat_cols = ['MS Zoning', 'Street', 'Alley', 'Lot Shape', 'Land Contour',
'Utilities', 'Lot Config', 'Land Slope', 'Neighborhood', 'Condition 1',
'Condition 2', 'Bldg Type', 'House Style', 'Roof Style', 'Roof Matl',
'Exterior 1st', 'Exterior 2nd', 'Mas Vnr Type', 'Exter Qual',
'Exter Cond', 'Foundation', 'Bsmt Qual', 'Bsmt Cond', 'Bsmt Exposure',
'BsmtFin Type 1', 'BsmtFin Type 2', 'Heating', 'Heating QC',
'Central Air', 'Electrical', 'Kitchen Qual', 'Functional',
'Fireplace Qu', 'Garage Type', 'Garage Finish', 'Garage Qual',
'Garage Cond', 'Paved Drive', 'Pool QC', 'Fence', 'Misc Feature',
'Sale Type', 'Sale Condition']
ames_cat = ames[cat_cols]
sns.catplot(x='value', col='variable', data=ames_cat.melt(), sharex=False, sharey=False, col_wrap=5, kind='count')
Issue 1:
Current tip (13699:21130d62eeb0), linux/386, run enough times on a parallel machine:

$ GOARCH=386 GOMAXPROCS=32 go test std

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x8073d94]

goroutine 50 [running]:
testing.func·003(0xf7756fd4, 0xf7756100)
/usr/local/google/home/dvyukov/go_vanilla/src/pkg/testing/testing.go:268 +0x123
----- stack segment boundary -----
runtime_test.TestStopTheWorldDeadlock(0x18855200, 0xe)
/usr/local/google/home/dvyukov/go_vanilla/src/pkg/runtime/proc_test.go:25 +0x24
testing.tRunner(0x18855200, 0x82b3dd4, 0x0)
/usr/local/google/home/dvyukov/go_vanilla/src/pkg/testing/testing.go:273 +0x71
created by testing.RunTests
/usr/local/google/home/dvyukov/go_vanilla/src/pkg/testing/testing.go:349 +0x711

The culprit is:

// mgc0.c
static struct {
uint64 full; // lock-free list of full blocks
uint64 empty; // lock-free list of empty blocks
...
} work;

8c does not align uint64 on 8-bytes, occasionally full/empty crosses cache-line boundary
and then

TEXT runtime·atomicload64(SB), 7, $0
MOVL 4(SP), BX
MOVL 8(SP), AX
// MOVQ (%EAX), %MM0
BYTE $0x0f; BYTE $0x6f; BYTE $0x00
// MOVQ %MM0, 0(%EBX)
BYTE $0x0f; BYTE $0x7f; BYTE $0x03
// EMMS
BYTE $0x0F; BYTE $0x77
RET

becomes not particularly atomic.

There are 2 ways to fix it:
1. Fix the compilers to properly align uint64 (I am not sure why they do not align it
now).
2. Just patch the GC to manually align the vars.

Issue 2:
[This may be a duplicate of issue #770]

package main
import (
"reflect"
"fmt"
)
type X int
func (_ X) Foo() { }
func main() {
v := reflect.NewValue(X(0))
fmt.Printf("%d\n", v.Type().Method(0).Type.NumIn())
fmt.Printf("%d\n", v.Method(0).Type().(*reflect.FuncType).NumIn())
v.Method(0).Call([]reflect.Value{reflect.NewValue(X(0))})
}

this prints:
1
1
panic: FuncValue: wrong argument count

The type of the method should return the argument count
that the method is expected to be called with.

6g darwin 6d3022dfb42b+ tip
Issue 1:
I am trying to use seaborn in a python standard shell environment , but I always get an error when I use the basis palette function

sns.palplot(sns.diverging_palette(240, 10, n=9))

any Idea from where this could come from ???

Traceback (most recent call last):

File "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numpy\core\function_base.py", line 117, in linspace

num = operator.index(num)

TypeError: 'float' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:/Users/meyringer/AppData/Local/Programs/Python/Python37-32/seabornpalette.py", line 3, in

sns.palplot(sns.diverging_palette(240, 10, n=9))

File "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\seaborn\palettes.py", line 744, in diverging_palette

neg = palfunc((h_neg, s, l), 128 - (sep / 2), reverse=True, input="husl")

File "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\seaborn\palettes.py", line 641, in light_palette

return blend_palette(colors, n_colors, as_cmap)

File "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\seaborn\palettes.py", line 777, in blend_palette

pal = _ColorPalette(pal(np.linspace(0, 1, n_colors)))

File "<array_function internals>", line 6, in linspace

File "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numpy\core\function_base.py", line 121, in linspace

.format(type(num)))

TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.

Issue 2:
When using row_template on FactorGrid when margin_titles=True, row_template will not render correctly as the earlier call to finalize_grid already creates an annotated text for the row margin (See: https://github.com/mwaskom/seaborn/blob/v0.7.1/seaborn/axisgrid.py#L731)

I think a fix will be to add a switch to map function which will ask if titles need to created. Another, option will be to keep track of the created row titles and edit their text (as they are created using ax.annotate https://github.com/mwaskom/seaborn/blob/v0.7.1/seaborn/axisgrid.py#L939)

Code for replication:

df = pd.DataFrame(np.random.choice(["a", "b", "c"], size=(10,2)), columns=["col1", "col2"])
df["col_value"]=np.random.randint(10, size=df.shape[0])
g = (sns.FacetGrid(row="col1", col="col2", aspect=1.5, margin_titles=True,
data=df)
g = g.map(plt.hist, "col_value", bins=range(10))
g = g.set_titles(template="", col_template="{col_name}", row_template="{row_name}")
g.fig.tight_layout()
Issue 1:
Fiddle: http://jsfiddle.net/adobi/hMvxQ/

The modal's hidden event gets executed on tooltips hidden event. Is this the correct behaviour?

I know I can block the tooltip's event to be propagated, but wouldn't be a nicer solution to namespance these event?

Thank you for your answer!

Issue 2:
The triggered show and hide event bubbles to the modal dialog when using tooltips in modal dialog. So, the show and hide of the modal dialog will also be triggered.

Following should work as workaround:

$('[rel="tooltip"','.modal').tooltip().on('show', function(e) {e.stopPropagation();}).on('hide', function(e) {e.stopPropagation();});

Possible fix:

Namespacing the triggered event to 'show.tooltip', to prevent bubbling to 'show.modal'.
Issue 1:
Hi all,

I have a collection of TypeScript files that, on Windows, compile under tsc when run under node, but throw bogus errors (I can clearly see the source contradicts them) when compiled via the Visual Studio TypeScript 1.7.6.0 extension which uses tsc.exe. I implemented a very temporary workaround by creating my own tsc.exe which simply invokes the compiler via node and overrwrote the default tsc.exe, found in c:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7\ with my own.

It would be great if the Visual Studio extension allowed the user the option to specify the compiler implementation to use, Node or tsc.exe.

Issue 2:
Consider this implmentation of a ORM-like Model class:

class Model {
public static tableName: string;
public static findById(id: number): this { // error: a this type is only available in a non-static member of a class or interface
const rows = db.query(`SELECT * FROM ${this.tableName} WHERE id = ?`, [id]);
const instance = new this();
for (const column of rows[0]) {
instance[column] = rows[0][column];
}
return instance;
}
}

class User extends Model {
public static tableName = 'users';
public username: string;
}

const user = User.findById(1); // user instanceof User

Currently, this is not possible, because TypeScript does not allow this in static members. There is no reason for this limitation: this inside a static method is simply the class in JavaScript (aka typeof Model or typeof User, depending on what class this is called on).
Issue 1:
To reproduce:

https://github.com/PlasmaSheep/flask-bug

Clone repo and install flask (python2)

export FLASK_APP=/path/to/repo/flask-bug/autoapp.py
flask run

Notice the output:

[$]>>> flask run
Using config: development
Debug is: True
* Serving Flask app "autoapp"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

So debug is enabled in the config, but the debugger is not actually active.

This does work if you set the FLASK_DEBUG env variable:

[$]>>> flask run
* Serving Flask app "autoapp"
* Forcing debug mode on
Using config: development
Debug is: True
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
Using config: development
Debug is: True
* Debugger is active!
* Debugger pin code: 155-859-497

However I think that the debug parameter should be specified in only one place, and that place should be the application config file so that you don't have to worry about setting environment variables for things you already specified in the config.

Issue 2:
I submitted a patch for this but learned that it was incomplete with further testing. #1640

Basically, it would be nice to allow DEBUG on the application to control the activation of the debugger and reloader when running the CLI like app.run does.
Issue 1:
Our Weather Zipline example is now broken. Aparently the API @AdventureBear used on her Zipline no longer works. https://www.evernote.com/l/AlwSsfX2kblJYoOSp9uAq-BKFosOSCg8-aAB/image.png

We need to find an API that works and doesn't require adding an API key, or we need to make an API endpoint on Free Code Camp that campers can use (we don't want people exposing API keys on CodePen).

Thanks to @martoncsikos for spotting this issue.

Issue 2:
Less of a bug in that the student can just erase the commented code and pass the challenge. That said, if you comment out the second if statement, you will be met with the "You should have only one if statement" even though the code effectively has only one if statement.

Maybe the pattern matching doesn't take into account commented code.

Challenge Comparisons with the Logical Or Operator has an issue.

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

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

My code:

function testLogicalOr(val) {
// Only change code below this line

if (val > 20 || val < 10) {
return "Outside";
}
/*
if (val) {
return "Outside";
}
*/
// Only change code above this line
return "Inside";
}

// Change this value to test
testLogicalOr(15);
Issue 1:
Browsersync not launching in beta.11

package.json:

...

"scripts": {

"postinstall": "npm run typings install",

"tsc": "tsc",

"tsc:w": "tsc -w",

"lite": "lite-server",

"start": "concurrent "npm run tsc:w" "npm run lite" ",

"typings": "typings"

},

"dependencies": {

"angular2": "^2.0.0-beta.11",

"es6-promise": "^3.1.2",

"es6-shim": "^0.35.0",

"reflect-metadata": "^0.1.3",

"rxjs": "^5.0.0-beta.2",

"systemjs": "^0.19.23",

"zone.js": "^0.6.2"

},

.....

Environment:

MAC/Chrome

"Issue":

When executing npm start, browsersyc does not appear to be starting. Changes are detected but not refreshed in browser.

"Resolution:

Changing entry in package.json from "angular2": "^2.0.0-beta.11" to ("angular2": "^2.0.0-beta.9" or "angular2": "^2.0.0-beta.8") browsersyc works as expected.

Issue 2:
Directives like {If, Foreach, For ... etc.) are often used in many templates. To simplify the process and in the spirit of writing less code and for the sake of maintainability, It might be a good idea to have a pre_loader API where the project can pass in the common directives in and on startup all templates are pre-injected with the common directives.

Example:

import {pre_loader, If, For, Foreach} from 'angular2/angular2';

pre_loader('directives', [IF, For, Foreach]);

@template({

url: 'templates/main.html',

directives: [MyOwnDirective]

})

With the above approach, the directives passed into the template would be IF, For, Foreach & MyOwnDirective.

The catch is to have pre_loader('directives', [IF, For, Foreach]); executed before anything else.

The pre_loader() function can also be used for configs other than directives.
Issue 1:
It is dangerous to assume a number that has a distance unit omitted from it, should be pixel-based.

Working within the SVG user space, it is sometimes required that number values are left unitless, so that they're proportionate to the user-defined matrix.

The is also the additional overhead in maintaining a property (that accepts a unitless number value) whitelist, instead of just allowing a pass-through.

Issue 2:
It's weird that style={{margin: '42'}} gets turned into margin: 42px;. I think we should only add px if the value is an actual number.
Issue 1:
i try run my project , and i getting this error after i upgrade to deno v.1.0.4

in deno version 1.0.2 this works.

I'm really stuck.

Error :

thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
[1] 4387 abort deno run -A -c tsconfig.json app.ts

i run :

deno run -A -c tsconfig.json app.ts

in this my configuration file :

{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}

Issue 2:
Received this error. For some additional info, I am only using the std/path module and some function from the Deno global.

thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:78
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:59
4: core::fmt::write
at src/libcore/fmt/mod.rs:1063
5: std::io::Write::write_fmt
at src/libstd/io/mod.rs:1426
6: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:62
7: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:49
8: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:204
9: std::panicking::default_hook
at src/libstd/panicking.rs:224
10: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:470
11: rust_begin_unwind
at src/libstd/panicking.rs:378
12: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
13: core::option::expect_none_failed
at src/libcore/option.rs:1211
14: deno_core::bindings::send
15: <extern "C" fn(A0) .> R as rusty_v8::support::CFnFrom<F>>::mapping::c_fn
16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE
19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
fatal runtime error: failed to initiate panic, error 5
Aborted
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-pop has an issue.

The directions (including the comments) for this challenge are confusing. It does not mention that the var removed should be changed in any way.

The end of this should probably read 'removed should contain the last value' or something of the sort.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-pop has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The comments in the code instruct to only change code below line 9. This is misleading, as the solution requires changing

var removed = myArray

to

var removed = myArray.pop()
Issue 1:
I know there is an externalHelpers option, but I don't want to add things to my global environment. I want my code to simply import helpers as needed, just like with runtime, but without runtime's other feature of importing things like Map and Set from core-js.

As far as I can tell this isn't possible?

Issue 2:
I'm currently using babelify to transform my source code + global shimming babel-core/browser-polyfill.js through a vendor file.

I noticed redefinitions of _createClass [et al] and the docs mentioned to use { optional: 'runtime' }, but this has the unfortunate side effect of also including regenerator/core-js, extending the dev build time.

It would be nice if I can define { optional: 'runtime.helpers' } and have it include only the helpers.
Issue 1:
Add keyword argument to HTML parser to take an integer / list for the rows to interpret as header rows. If more than one, interpret as hierarchical columns / MultiIndex.

Presumably this would also allow you to round-trip Data Frame with hierarchical columns.

I don't think this already exists.

related #4468

related #4679

related #4673

See for example: http://www.sec.gov/Archives/edgar/data/47217/000104746913006802/a2215416z10-q.htm#CCSCI

Issue 2:
related #4468

Add keyword argument to ExcelFile parser to take an integer / list for the rows to interpret as header rows. If more than one, interpret as hierarchical columns / MultiIndex.

Presumably this would also allow you to round-trip Data Frame with hierarchical columns.

Basically, if you have something spanning two columns, just converts to two cells with the data in the original cell, ending up just like what you need for csv reader.