WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Tooltip.d.ts is missing the disable trigger props in TooltipProps.

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

Expected Behavior

Expect the disableTriggerXXX props to be available.

Current Behavior

Receiving a type error when attempting to use the disableTriggerFocus prop.

Steps to Reproduce (for bugs)

<Tooltip title="Copy" disableTriggerFocus placement="left">...</Tooltip>

Error: [ts] Property 'disableTriggerFocus' does not exist on type 'IntrinsicAttributes & HTMLAttributes<HTMLDivElement> & { title: ReactNode; onRequestClose?: ((eve...'.

Context

Attempting to adjust to behavior of the Tooltip component results in an error.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.16

React
16.0.0

browser

etc

Issue 2:
Going to https://material-ui.com/demos/dialogs/#confirmation-dialogs and clicking Phone Ringtone will cause the screen to go gray and a thin mostly white vertical line to appear.

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

Expected Behavior

A Dialog should appear that requires an explicit OK button

Steps to Reproduce (for bugs)

Go to https://material-ui.com/demos/dialogs/#confirmation-dialogs

Click on Phone Ring

Screen darkens and white line appears

You can't escape

Context

I am new user to material, and decided to go with v1 because it seems like it will ship before we are live. If dialogs are not rock solid, we will have to use another system

Your Environment

Tech
Version

browser
Chrome 62.0.3202.94 and Safari Version 11.0.1 (12604.3.5.1.1)

Material V1 Doc git commit
e56d378
Issue 1:
Needs docs on how to configure UI session timeout

Issue 2:
I have a problem. Now I reference the iframe tag in the HTML page. I reference 9 iframe tags in one page, which are different graphics, but the page is loaded slowly. After checking, I found that when the loading explore.31a5ac0d241c9667d5a2.entry.js size is 11.9M, it loads. 9 times, so the page loading speed is very slow, how can I avoid repeated loading the js files ? Or is there a way to reference many graphics without iframe tags?the json tag can resolve this problem?

Thank you!

Superset version

incubator-superset-0.27.0

The result I want is the ability to speed up page loading.

This is a screenshot of the problem I encountered:
Issue 1:
When I'm on my laptop I use 13pt Monaco. When I get to work, I change font to 16pt (because of larger screen, higher resolution) and the preferred line length (80 columns) stays the same. I need to close and reopen all files in order to get it to behave correctly.

Issue 2:
This is a continuation from atom/atom#3254 (comment) (cc @mdekauwe).

When the font size is increased and decreased with commands, the wrap guide updates correctly. Here's a video:

However, if the font size is modified via the settings view, it doesn't update correct (it does update, but not to the expected position). Here's a video:

Notice that the font size is 11. Then I modify it to 14 in settings view and go back to the editor. The wrap guide moved only slightly to the right (not as much as expected). After that I decrease the font size with cmd - to 13, but notice that the wrap guide moves to the right instead of to the left which is what should happen when you decrease font size. This happened because the wrap guide wasn't at the correct position before I hit cmd -, and then moved to the correct position after I hit cmd -.

cc @benogle
Issue 1:
When a function has multiple optional arguments, callers of the function must use undefined to get the default, optional value.

Proposal

Add a syntax allowing function arguments to be passed by name. Unless there is a better suggestion, I propose the use of :=. This would be sugar, and rewrite the call site to invoke the function properly. A syntax error would be thrown if the argument name was not a specified parameter.

argumentName := value

Example syntax:

function func(a, b=2, c=3)
{
// Do work
}

// Proposed syntax
func(c:=4, a:=1);
// Results in the following javascript being output:
func(1, void 0, 4);

// Syntax error - Multiple specifications for argument 'a'
func(1, a:=1);

// Syntax error - 'd' is not a function parameter
func(1, d:=4);

// Valid syntax
func(a:=1);
// Rewrites to
func(1);

Issue 2:
C# allows adding names of arguments in a function call:

CalculateBMI(weight: 123, height: 64);

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

In TypeScript's source this is also done, but with comments:

emitLinesStartingAt(nodes, /*startIndex*/ 0);

Can we have named arguments in TypeScript like this:

emitLinesStartingAt(nodes, startIndex: 0);

This can add some compile time checking, for instance when you type count: 0 you will get an error.

I think we should add a restriction that the order of the arguments cannot be changed. Example:

function foo(first: number, second: number) {}
var z = 3;
foo(second: z++, first: z);

An error should be thrown on the last line, because changing the order of the arguments (to foo(z, z++)) in the generated javascript would cause unexpected behavior.

Also this can be useful for functions with lots of optional arguments:

function foo(a?, b?, c?, d?, e?) {}
foo(e: 4);
foo(d: 8, 5); // e will be 5

Generates

function foo(a, b, c, d, e) {}
foo(void 0, void 0, void 0, void 0, 4);
foo(void 0, void 0, void 0, 8, 5);
Issue 1:
The popover will not destroy properly while showing.

Here is a fiddle to demonstrate it: http://jsfiddle.net/vBUFu/20/ [edited].

Hover over the button and wait 5sec to see what i mean.

(I changed the opacity of the fade class so that the popover stays visible.)

The problem is that even with opacity 0, one cannot click on elements behind it!

It works when its manually shown, but not with events like 'hover' or 'click'.

Issue 2:
Using toggle popover hidden and ok. When using hide command, popover is hidden, but button inside popover still trigering mouse over.

http://jsfiddle.net/conx/n8FYQ/4/
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
2.7

Fabien added this comment about this bug:

#20044 this is a bug on Console that should be fixed, when passing --prefix="", the prefix should be empty.

Issue 2:
Forgive me if this is a known issue or is due to misconfiguration.

I have two configuration files, config_test.yml and config.yml. The first one imports the second, so I expect all values in config_test.yml to override config.yml. However, in my bundle extension class where I am processing the bundle configuration, I am seeing some strange behaviour. Below is the portion of the config that I am having problems with in both YML files...

config_test.yml:

tickit_cache:
default_namespace: "tickit.test"
types:
memcached:
servers:
main:
host: test.local
port: ~
weight: 2
retry_time: 5
enabled: true
alternate:
host: test.local
port: ~
weight: 1
retry_time: 10
enabled: true

config.yml:

tickit_cache:
default_namespace: "tickit"
types:
memcached:
servers:
main:
host: localhost
port: ~
weight: 2
retry_time: 5
enabled: true
alternate:
host: localhost
port: ~
weight: 1
retry_time: 10
enabled: true

After these are processed by Symfony\Component\Config\Definition\Processor I expect to see something like this...

Array
(
[default_namespace] => tickit.test
[types] => Array
(
[memcached] => Array
(
[servers] => Array
(
[main] => Array
(
[host] => test.local
[port] =>
[weight] => 2
[retry_time] => 5
[enabled] => 1
[persistent] => 1
)

[alternate] => Array
(
[host] => test.local
[port] =>
[weight] => 1
[retry_time] => 10
[enabled] => 1
[persistent] => 1
)
)
)
)
);

Instead, the "servers" portion of the configuration is being duplicated and I receive something like this...

Array
(
[default_namespace] => tickit.test
[types] => Array
(
[memcached] => Array
(
[servers] => Array
(
[main] => Array
(
[host] => localhost
[port] =>
[weight] => 2
[retry_time] => 5
[enabled] => 1
[persistent] => 1
)

[alternate] => Array
(
[host] => localhost
[port] =>
[weight] => 1
[retry_time] => 10
[enabled] => 1
[persistent] => 1
)

[0] => Array
(
[host] => test.local
[port] =>
[weight] => 2
[retry_time] => 5
[enabled] => 1
[persistent] => 1
)

[1] => Array
(
[host] => test.local
[port] =>
[weight] => 1
[retry_time] => 10
[enabled] => 1
[persistent] => 1
)
)
)
)
);

The "default_namespace" is correctly using the value from config_test.yml, but the "servers" array is being duplicated instead of using just config_test.yml values.

For reference, here is my tree builder logic:

$builder->root('tickit_cache')
->addDefaultsIfNotSet()
->children()
->scalarNode('default_namespace')->defaultValue('tickit_cache')->end()
->arrayNode('types')
->children()
->arrayNode('memcached')->addDefaultsIfNotSet()
->children()
->arrayNode('servers')
->prototype('array')
->children()
->scalarNode('host')->end()
->scalarNode('port')->end()
->booleanNode('persistent')->defaultValue(true)->end()
->scalarNode('weight')->defaultValue(1)->end()
->scalarNode('retry_time')->defaultValue(10)->end()
->booleanNode('enabled')->defaultValue(true)->end()
->end()
->end()
->end()
->end()
->end()
->end()
->end()
->end();
Issue 1:
I am in the process of migrating from RequireJS to Webpack, but following AMD module that worked in RequireJS produces "SyntaxError: missing ; before statement" with webpack:

define([], function() {
var modules = [];
if (modules.length) {
require(modules, function() {});
}
});

This is basically an excerpt that causes error. Webpack transforms it to following:

var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
var modules = [];

if (modules.length) {
__webpack_require__(1)!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = modules; (function () {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());
}
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

Browser reports "SyntaxError: missing ; before statement" in the string webpack_require(1)! after function call.

Is it a bug or I can transform this call to some other form?

I use webpack 1.7.3

Issue 2:
Bug report

What is the current behavior?

When using an import() in the base level of a file (i.e. not inside any functions/classes), webpack fetches 4 files on the browser. It's possible that this is caused by two separate issues (one about the extra vendor~ file and the other about the duplicate requests). The code I use is:

import(
/* webpackChunkName: "brace_modes" */
/* webpackMode: "lazy" */
/* webpackPrefetch: true */
'./brace_modes'
);

and this is what the browser does:

For my full webpack.config.js, go here.

Note that this seems to be a regression in Webpack 4.

If the current behavior is a bug, please provide the steps to reproduce.

Create a dynamic import in the base level of a file. Run it.

What is the expected behavior?

Only a single file is imported dynamically - brace_modes.<hash>.js.

Other relevant information:

webpack version: 4.28.4 (I didn't use 4.29 due to the issues with import)

Node.js version: 10

Operating System: Windows 10

Additional tools: -
Issue 1:
I just updated to 3.5 and im getting a warning when i start my application. My manifest sets the dimensions like so:

<meta-data
android:name="com.sec.android.support.multiwindow"
android:value="true" />
<meta-data
android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W"
android:resource="@dimen/app_defaultsize_w" />
<meta-data
android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H"
android:resource="@dimen/app_defaultsize_h" />
<meta-data
android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W"
android:resource="@dimen/app_minimumsize_w" />
<meta-data
android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H"
android:resource="@dimen/app_minimumsize_h" />

Log

01-28 23:09:37.913 2076-2076/gonemad.gmmp W/Bundle﹕ Key com.sec.android.multiwindow.MINIMUM_SIZE_H expected String but value was a java.lang.Integer. The default value <null> was returned.
01-28 23:09:37.923 2076-2076/gonemad.gmmp W/Bundle﹕ Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.os.Bundle.getString(Bundle.java:1121)
at com.bumptech.glide.module.ManifestParser.parse(ManifestParser.java:29)
at com.bumptech.glide.Glide.get(Glide.java:151)

Issue 2:
Glide 3.5.0

com.bumptech.glide.module.ManifestParser

==> GLIDE_MODULE_VALUE.equals(appInfo.metaData.getString(key))

may cause ClassCastException if the manifest has meta-data for other libraries that is not a string value.
Issue 1:
Node ver: 5.0.0

Babel Deps:

"babel-cli": "^6.4.0",

"babel-core": "^6.3.26",

"babel-eslint": "^5.0.0-beta6",

"babel-loader": "^6.2.0",

"babel-plugin-add-module-exports": "^0.1.2",

"babel-polyfill": "^6.3.14",

"babel-preset-es2015": "^6.3.13",

"babel-preset-react": "^6.3.13",

"babel-preset-react-hmre": "^1.0.1",

"babel-preset-stage-0": "^6.3.13"

It seems cause by custom html tag.

Issue 2:
The className prop does not appear to get mapped correctly when applied to custom DOM elements in 0.14.0-rc1.

JSFiddle: https://jsfiddle.net/hellosmithy/5pdujnfq/1/
Issue 1:
I am doing CI testing on different devices.

Could the team make a Flutter Plugin Gallery please that uses all the official plugins and publish it to the Play and Apple store please ?

It will make it much easier to test on various real devices and in saucelabs.

Issue 2:
The official flutter plugins are really useful.

Would it not be smart to have a flutter gallery plugins app tmso developers can get firsthand experience and the plugin team get more cross device testing ??
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: Mac

Java version: 1.8

Steps to reproduce this issue

org/apache/dubbo/registry/support/ProviderConsumerRegTable.java:65 Type 'ProviderInvokerWrapper<>' does not define hashCode(), but is used in a hashing data-structure.

Class overrides equals but not hashCode.

org.apache.dubbo.config.AbstractConfig

org.apache.dubbo.registry.support.ProviderInvokerWrapper

org.apache.dubbo.remoting.buffer.AbstractChannelBuffer

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

Whether the above suggestions can be fixed or have other considerations

Actual Result

Is it considered a bug? Will it fix?

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4.1

Operating System version:Linux version 4.15.0-88-generic 16.04.1-Ubuntu

Java version: java version "1.8.0_201"

Steps to reproduce this issue

server-side configuration

<dubbo:registry address="zookeeper://127.0.0.1:2181" check="false" simplified="true"
file="${user.home}/.dubbo/${application.name}-cache.properties"/>
<dubbo:provider timeout="60000" retries="1" payload="104857600" />
<dubbo:metadata-report address="zookeeper://127.0.0.1:2181" />

client-side

invoke method, and the response' data size is more than 8M(default payload) but less than 100M(configued payload).

Expected Result

there is not exception, and the result was returned as expected.

Actual Result

throws an ExceedPayloadLimitException

Caused by: org.apache.dubbo.remoting.transport.ExceedPayloadLimitException: Data length too large: 11727594, max payload: 8388608, channel: NettyChannel [channel=[id: 0x61f431d2, L:/172.18.0.1:52186 - R:/172.18.0.1:20880]]
at org.apache.dubbo.remoting.transport.AbstractCodec.checkPayload(AbstractCodec.java:50)
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

13.1.6

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20.04.2 LTS

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I expect the print dialog not to appear when pressing print.

Actual Behavior

The print dialog shows.

Testcase Gist URL

No response

Additional Information

This is the code I have seen used, but it does not work. I cannot find any further docs on this and I have seen people in the past report it as a bug, but I can't find what the actual issue is and any work arounds.

const mainWindow = new BrowserWindow({
width: 800,
height: 600,
});

mainWindow.webContents.print(
{
silent: true,
printBackground: false,
deviceName: "HP_DeskJet_4100_series_A6BABF_test",
}

Issue 2:
Issue 1:
Code Sample, a copy-pastable example if possible

In 0.18.1, a single NaN in a column will cause the reported percentiles to all be NaN. In 0.18.0 and according to the documentation, NaNs are excluded.

import pandas as pd
import numpy as np
df = pd.DataFrame(data={'blah': range(10) + [np.nan]})
df.describe(percentiles=[0.1, 0.5, 0.9])

blah
count 10.00000
mean 4.50000
std 3.02765
min 0.00000
10% NaN
50% NaN
90% NaN
max 9.00000

Expected Output

blah
count 10.00000
mean 4.50000
std 3.02765
min 0.00000
10% 0.90000
50% 4.50000
90% 8.10000
max 9.00000

output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 2.7.11.final.0

python-bits: 64

OS: Darwin

OS-release: 15.5.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

pandas: 0.18.1

nose: 1.3.7

pip: 8.1.2

setuptools: 20.3

Cython: 0.23.4

numpy: 1.11.0

scipy: 0.17.0

statsmodels: 0.6.1

xarray: None

IPython: 4.1.2

sphinx: 1.3.5

patsy: 0.4.0

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: 1.0.0

tables: 3.2.2

numexpr: 2.5

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: 1.0.0

xlsxwriter: 0.8.4

lxml: 3.6.0

bs4: 4.4.1

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.12

pymysql: None

psycopg2: 2.6.1 (dt dec pq3 ext)

jinja2: 2.8

boto: 2.39.0

pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan

Expected Output

I would expect 2.5 as output (as with version 0.17.1).

output of pd.show_versions()

commit: None

python: 2.7.6.final.0

python-bits: 64

OS: Linux

OS-release: 3.13.0-85-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: de_DE.UTF-8

pandas: 0.18.1

nose: None

pip: 1.5.4

setuptools: 2.2

Cython: None

numpy: 1.11.0

scipy: 0.16.1

statsmodels: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

boto: None

pandas_datareader: None
Issue 1:
for consistency with dropna (and also to not use cols which is being deprecated)

related #6645

Issue 2:
Code Sample, a copy-pastable example if possible

import numpy as np
import pandas as pd

persons = [
{
'name': ''.join([
np.random.choice([chr(x) for x in range(97, 97 + 26)])
for i in range(5)
]),
'age': np.random.randint(0, 100),
'sex': np.random.choice(['male', 'female']),
'job': np.random.choice(['staff', 'cook', 'student']),
'birthday': np.random.choice(pd.date_range('1990-01-01', '2010-01-01')),
'hobby': np.random.choice(['cs', 'war3', 'dota'])
}
for i in range(10)
]

df = pd.DataFrame(persons)
df.set_index('birthday', inplace=True)
print(df)
df.iloc[0] = {
'name': 'john',
'age': int(10),
'sex': 'male',
'hobby': 'nohobby',
'job': 'haha'
}
print(df)

Problem description

age hobby job name sex
birthday
2007-12-31 name age sex hobby job
2004-07-31 20 dota student uwxhn female
2001-10-22 34 war3 cook udknv female
2002-10-13 91 dota cook bofcv female
1992-05-25 54 war3 cook tcqew male
2009-09-02 95 war3 staff jcolr female
1998-12-15 61 war3 student dibkw female
2004-07-03 4 war3 student mntqh male
2000-06-08 88 war3 staff jknxm female
2006-10-19 82 cs student asrpz male

Have no idea why the keys are set to the rows.

Expected Output

age hobby job name sex
birthday
2007-12-31 10 nohobby haha john male
2004-07-31 20 dota student uwxhn female
2001-10-22 34 war3 cook udknv female
2002-10-13 91 dota cook bofcv female
1992-05-25 54 war3 cook tcqew male
2009-09-02 95 war3 staff jcolr female
1998-12-15 61 war3 student dibkw female
2004-07-03 4 war3 student mntqh male
2000-06-08 88 war3 staff jknxm female
2006-10-19 82 cs student asrpz male

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.1.final.0

python-bits: 64

OS: Darwin

OS-release: 16.6.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: en_US.UTF-8

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.20.1

pytest: 3.0.7

pip: 9.0.1

setuptools: 35.0.2

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

xarray: 0.9.5

IPython: 6.0.0

sphinx: 1.5.5

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: 1.2.0

tables: 3.4.2

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: 2.4.7

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: 3.7.3

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: 1.1.9

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
VSCode Version: 1.1.1-insiders

OS Version: Win10

I know window.visibleEditors is supposed to contain actual text editors but it is not possible to tell at the moment if a VirtualDocument (ie a htmlContentProvider) is in view.

The scenario I would need this for is for detecting if a Virtual Document has focus when a command is triggered. If there is another work around for this please let me know.

Thanks 😄

Issue 2:
I have a use case where I would like to be able to get a list of all the open editors (basically exactly what is shown here).

I understand that Editors are disposed but I just need a list of filenames.

Something like: workspace.openDocuments:Array<TextDocument> or even just workspace.openFiles:Array<string>.

Long term, it might be nice to have API access to operate on this list (EG: sort open editors pane by last opened, name, etc).
Issue 1:
I start to get the feeling that the float parts of core are too huge to have them linked into every rust program. Besides, #2187 suggests an overhaul of math. So is it time to pull it into a separate lib, just like in C, and only keep as few as possible but required minimal bits in core?

Issue 2:
The borrow checker gives different results when functions are manually inlined, giving confusing or annoying results.

The following compiles:

struct Foo {
x: int,
y: int,
}

impl Foo {
pub fn foo(&mut self) {
let y = &mut self.y;
self.x = self.x + *y;
}
}

The following does not:

struct Foo {
x: int,
y: int,
}

impl Foo {
pub fn foo(&mut self) {
let y = self.bar();
self.x = self.x + *y;
}

pub fn bar(&mut self) -> &mut int {
&mut self.y
}
}

I don't believe this to be a duplicate of #6393, because this has not only to do with scoping, but also the fact that a member function always borrows all of self.