WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi Guys,

Not sure if anyone having this issue. I tried to open a jquery-ui.min.js file in the editor. It loaded and hang for like 30++ seconds before i can start editing the file.

Issue 2:
May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).

Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.
Issue 1:
Set src to http://github.com,

The page redirects to https (https://github.com)

but the result of webview.getUrl() remains http://github.com.

Issue 2:
WebView is not updating its src url on redirect as I would expect.

What I expect could be wrong and this could be intentional

Below is a contrived example, consider a webview showing a very simple local server

'http://localhost:8080/a' has a link to 'http://localhost:8080/b'

'http://localhost:8080/b' redirects to ''http://localhost:8080/c'

'http://localhost:8080/c' is rendered

but getUrl() returns 'http://localhost:8080/b'

I have a repo with a reproducible example if this is unclear
Issue 1:
Hi,

Is it possible to add i18n routing feature directly in symfony stack framework ?

i18n routing example :

3 i18n routes for the same controller action :

/fr/contact/

/en/contact/

/de/kontakt/

As Symfony have Router and Translater component, It would be logic that these 2 components works together to provide i18n routing capability.

A few extra bundles provide this feature (like JMSI18nRoutingBundle), but in my opinion this need is very common and could be candidate to the symfony core.

What do you think about that ?

Regards,

David.

Issue 2:
This feature has been asked by lots and lots of users in #15755, #17054 and #17407.

Problem

You have installed MyBundle which contains this template:

{# MyBundle/Resources/views/base.html.twig #}
{% block title '...' %}

{% block content %}
{# a lot of contents here #}
{% endblock %}

You override that template in your app by creating app/Resources/MyBundle/views/base.html.twig.

In your own template, you want to override just the title block and reuse the original content block.

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends 'MyBundle::base.html.twig' %}

{% block title 'New title' %}

This won't work and Symfony will show a "reached nested level" error. The only current solution is to copy+paste the entire original template (and keep it in sync forever if the bundle changes it).

Solution

People asking for this feature suggest to add a new notation to tell Twig/Symfony that you want to override the original template, not your copy:

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends '!MyBundle::base.html.twig' %}

{% block title 'New title' %}

Some people (e.g. @jakzal) don't like the new notation. The problem is that ! always mean "not", so it can be read as "don't extend ...".

Since Twig prefers expressive syntax, maybe we could use a word to enable the special extends behavior?

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends original 'MyBundle::base.html.twig' %}

{% block title 'New title' %}

Comments? Thoughts? Better ideas? Thanks!
Issue 1:
Hey there,

if the tabs have different heights, the style gets broken. This is because you style the tag below the

tag and not the
tag itself.

Attached a screenshot :)

Issue 2:
The current tabs break when one of them has multiple lines.

I fixed this in our fork of bootstrap and wanted to feed this back into here if you guys like. Happy to do a PR if you guys approve:

// NAV TABS HEIGHT FIX
@media screen and (min-width: @screen-sm-min) {
.nav-tabs {
width: 100%;

> li {
display: table-cell;
vertical-align: bottom;
float: none;

> a {
margin-bottom: -1px;
}
}
}
}

Note: This, of course, is an overwrite and would tie in a bit differently when I do the PR

Result

I've tested in IE8+, Android 4.2+, iOS 6+ and Firefox, Chrome and Safari on Mac desktop
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.7

Operating System version: Mac OS

Java version: 1.8

Spring Boot 2.3.1.RELEASE

I'm in trouble how to dynamic find dubbo service providers.

Here is one example:

I have multiple implementations for the service, which is seperated by different group. But I don't how many groups at the begining. I want the consumer find the correct group from config center, and then I could change the config without modify any code or restart the application.

But I don't know how to use a dynamic service, or change the group of a service dynamically.

The only way I can find is using ReferenceConfig to find provider in api mode. But I prefer a configration way, which is more readable and maintainable.

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.3

Operating System version: macOs Sierra

Java version: 1.8

Steps to reproduce this issue

服务端启动后，20880端口正常打开，客户端在端口打开后偶尔会报connect timeout的现象，从网络来看有丢SYN包的情况，主要是由于accept queue满了导致的。

服务端机器的配置不是很高，应用启动过程需要消耗大量CPU初始化工作。

客户端多线程并发发起到服务端的连接，每秒钟发起几百上千个连接请求。

在服务端机器看到有accept queue满的情况。

3220 times the listen queue of a socket overflowed
3220 SYNs to LISTEN sockets dropped

通过查看当前端口的连接队列，只有50个，也就是netty3的默认backlog，实际队列最高是101个。

[~]# ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 50 *:20880 *:*

Netty4的默认backlog也是1000，所以把Netty3的默认backlog调整成1024.
Issue 1:
Hi,

i have a problem with the dropdown menu jscript. Basically when I use the click on the scroll wheel on my mouse to open links in a new tab it doesn't work. how do I fix it?

Issue 2:
Issue: middle mouse click on a link in Firefox, nothing happens.

Expected behavior: middle mouse click on a link, open in new browser tab.

Live example: http://twitter.github.com/bootstrap/

Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.

Notice it when I upgrade to bootstrap v2.3.1.

Switch back to v2.3 and the middle button works again.
Issue 1:
https://twitter.com/jaffathecake/status/553159821135200256 this work in Traceur,

but dont work in 6to5 https://6to5.org/repl/#?experimental=true&playground=true&evaluate=true&code=function%20func(%7Bfoo%20%3D%20'test'%2C%20bar%20%3D%20'test2'%7D%3D%7B%7D)%20%7B%0A%20%20return%20%5Bfoo%2C%20bar%5D%0A%7D

Issue 2:
First, I'm not positive this issue is specifically related to @babel/preset-env; the problem could also lie in between-chair-and-keyboard, webpack, @babel/plugin-transform-runtime, or browserlist. But, I thought I'd try here.

I configured @babel/preset-env in the webpack config as follows:

...
plugins: ['@babel/plugin-transform-runtime'],
presets: [
['@babel/preset-env', {
modules: false,
targets: {
node: 'current',
browsers: ['defaults', 'not ie <= 10'],
},
}],
...

With that configuration, I noticed that the transpiled file retains destructuring parameters from my original, ES6+-filled code. According to the compat tables, this is not supported in several environments IE 11+.

However, when I remove node: 'current' from targets:

...
targets: {
browsers: ['defaults', 'not ie <= 10'],
},
...

the transpiled file then shows webpack pulling in an __webpack_require__ for _slicedToArray to support destructuring parameters (with arrays):

var _slicedToArray = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");

Now, I'm running Node v9.7.1, which natively supports destructuring parameters (with arrays); but I would think that if @babel/preset-env is considering the lowest common denominator, that the _slicedToArray __webpack_require__ would actually be pulled in for both configurations since the lowest common denominator should be the browsers target either way.

However, because _slicedToArray only shows up when the node target is omitted, (to me) it seems like the lowest common denominator is not being found correctly, as described in the @babel/preset-env README.

Am I missing something? Or, is this a bug?

- Sincerely Confused

Details:

node: v9.7.1
@babel/core: 7.0.0-beta.40
@babel/plugin-transform-runtime: 7.0.0-beta.40
@babel/preset-env: 7.0.0-beta.40
@babel/runtime: 7.0.0-beta.40
babel-loader: 8.0.0-beta.2
webpack: 4.1.1
webpack-cli: 2.0.11
Issue 1:
Apparently

plt.style.use('seaborn-colorblind')

yields a different color cycle than the one documented in the seaborn docs.

Especially the greenish color at the second place can be confusing as we're used to 1. blue 2. orange 3. green colors and so on.

I've translated the seaborn colors via

[
''.join([f'{int(255 * h):02x}'.upper() for h in c])
for c in sns.color_palette('colorblind')
]
> ['0173B2', 'DE8F05', '029E73', 'D55E00', 'CC78BC', 'CA9161', 'FBAFE4', '949494', 'ECE133', '56B4E9']

I guess this should go into https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle.

Issue 2:
Bug report

Bug summary

When using a combination of plt.subplots with gridspec_kw/width_ratios along with plt.subplot2grid, some of the axes disappear when one of the width ratios is (in this case) below 0.73.

Code for reproduction

import matplotlib.pyplot as plt
fig, ax = plt.subplots(2,3,sharex=True, sharey=True, gridspec_kw={'width_ratios':[1,1,0.7]})
axi = plt.subplot2grid((2,3),(0,2),rowspan=2)
plt.show()

Actual outcome

Note that the axes only disappear with the call to subplot2grid. If I remove that line, all axes appear.

Expected outcome

If width_ratios is instead [1,1,0.8], all of the axes appear.

I can achieve the desired width ratios if I use GridSpec directly instead of using the wrappers, but it would be nice if the wrappers didn't fail based on the width_ratios parameter.

Matplotlib version

Operating system: Windows 10.0.15063

Matplotlib version: 2.1.0

Matplotlib backend: module://ipykernel.pylab.backend_inline

Python version: 3.6.3

IPython version: 6.1.0

Jupyter notebook server version: 5.4.1

mabplotlib and python installed via conda.
Issue 1:
Bug Report

Which version of ShardingSphere did you use?

4.0.0-RC2

Which project did you use? Sharding-JDBC or Sharding-Proxy?

sharding-jdbc-core

Expected behavior

dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)

Actual behavior

java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

at org.jooq_3.13.0-SNAPSHOT.MYSQL.debug(Unknown Source)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.getValue(Pagination.java:60)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.<init>(Pagination.java:55)

Reason analyze (If you can)

org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination

line 60

private int getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters) {
return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment
? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
: ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue();
}
// ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
// -> parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex()).intValue

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

JOOQ use Number as limit() parameter, and past Long to preparedstatement

dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)

Issue 2:
Bug Report

Duplicate groups founded, due to the incorrect merge.

Which version of ShardingSphere did you use?

4.1.1

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

from table_A order by group_name:

group_name
count

A
1

from table_B order by group_name:

group_name
count

a
1

A
1

the result should be:

group_name
count

A
2

a
1

Actual behavior

group_name
count

A
1

a
1

A
1

Reason analyze (If you can)

the comparison result of the priority queue in class OrderByStreamMergedResult is different from the result of postgreSQL, as the getOrderValuesCaseSensitiveFromTables in OrderByValue always returns true, it should be false as 'a' > 'A' according to the resultSet of PG, e.g.

select * from (values ('A'),('a')) as a(test) order by test

test

a

A

I solved this issue by forcing the order by case-sensitive, is there any other way? thx

select * from (values ('A'),('a')) as a(test) order by test collate "C"

test

A

a
Issue 1:
christophe blin opened SPR-7395 and commented

In the §3.13.2 http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#context-functionality-events

The BlackListNotifier class which implements the interface ApplicationListener is registered as a subscriber to the application context and will receive the BlackListEvent. In order to access properties specific to BlackListEvent, the listener must perform a downcast.

This is not true because of the java generic.

You simply have to write BlackListNotifier implements ApplicationListener<BlackListEvent>

Affects: 3.0 GA

Issue Links:

#12080 Document use of ApplicationEventPublisher ("duplicates")

Referenced from: commits 9008cf9

Issue 2:
Jon Travis opened SPR-7422 and commented

Section 3.13.2 (Standard and Custom Events) of the reference manual is out of date wrt best practices.

It does not talk about using ApplicationListener<T> with a type argument, thus removing instanceof checks in the event callback

It does not espouse the use of ApplicationEventPublisher and ApplicationEventPublisherAware

In both cases, the javadoc for the corresponding bits is correct and up-to-date, it simply needs to be referenced in the manual.

Affects: 3.0 GA

Issue Links:

#12053 Document generic use of ApplicationListener interface ("is duplicated by")

Referenced from: commits 9008cf9
Issue 1:
Hi,

My Ubuntu 14.04 Atom cannot display Chinese (utf-8 files), but a series of strange square boxes. I tried to update the font to 細明體 but in ruin.

Here is the output－

Issue 2:
Text:

这上面的夜的天空，奇怪而高，我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去，使人们仰面不再看见。然而现在却非常之蓝，闪闪地睒着几十个星星的眼，冷眼。他的口角上现出微笑，似乎自以为大有深意，而将繁霜洒在我的园里的野花草上。

It happen after update to 0.189.0, and it's normal in 0.188.0 .

I try disabled all community packages or star with --safe mode, still happen.

Update: Ubuntu 14.04
Issue 1:
Additional constructor that takes in HTMLFormElement as parameter as here:

https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/FormData

declare var FormData: {

prototype: FormData;

new (): FormData;

new (form: HTMLFormElement): FormData;

};

This is copied from https://typescript.codeplex.com/workitem/720, the fix isn't incorporated into TS v 1.4.

It's possible to write the constructor in the optional form as well:

new (form?: HTMLFormElement): FormData;

Thanks in advance!

Issue 2:
i'm including a link to this codeplex issue since I believe it's a critical bug that's been incorrectly closed.

https://typescript.codeplex.com/workitem/627

when combining output into a single .js file, the compiler should NEVER emit derived classes before their base class.

this was reported 2 years ago, and it's still not fixed.
Issue 1:
Hello, I'd like to suggest a flag for npm init which creates a project using "type": "module". --esm, --module, or similar. Would this change be welcome? Assuming it's trivial in the way I imagine I'd consider opening the PR for it. Thanks in advance!

Issue 2:
See issue Error installing NodeJS 14.19.2 with npm version 6.14.17.

NVM uses the URL https://github.com/npm/cli/archive/v6.14.17.zip to download npm.

This URL typed into a browser returns the same "error" as mentioned in the issue:

the given path has multiple possibilities: #<Git::Ref:0x00007f49a98a1f98>, #<Git::Ref:0x00007f49a9891dc8>

Is there something you can do about this?
Issue 1:
Help me with this Issue this code is not passing

slotOne = Math.floor(Math.random() * (3-1+1))+1;

slotTwo = Math.floor(Math.random() * (3-1+1))+1;

slotThree = Math.floor(Math.random() * (3-1+1))+1;

Challenge Name

assert((function(){if(editor.match(/Math.floor(\s_Math.random()\s_*\s_(\s_3\s_-\s_1\s_+\s_1\s_)\s_)\s_+\s_1/gi) !== null){return editor.match(/slot.?=.?(.?).?/gi).length >= 3;}else{return false;}})(), 'You should have used Math.floor(Math.random() * (3 - 1 + 1)) + 1; three times to generate your random numbers.')

Issue Description

All checks pass but the fourth one and I used the code three times.

Browser Information

HP Desktop using google chrome

Your Code

slotOne = Math.floor(Math.random() * (3-1+1))+1;

slotTwo = Math.floor(Math.random() * (3-1+1))+1;

slotThree = Math.floor(Math.random() * (3-1+1))+1;

Issue 2:
Challenge create-a-javascript-slot-machine has an issue.

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

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

slotOne=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotTwo=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotThree=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
```

the code should pass but the last assert function return false
Issue 1:
I want to restart the whole electron app when I press a button from the index.html. It is not just reload the html page. I want to restart the whole electron app. Is there a way?

Issue 2:
Currently there is no app.restart function. I think a simple method that restarts the app is quite useful.

In my application, I do database updates after downloading a new version of an app.

After those database updates, it's best to just restart the app to prevent database problems.

The app.restart method can also be reused in the auto-updater.
Issue 1:
For some platforms (ChromeOS, Fuschia), in order to have useful accessibility information, we need to be connected to the platform's accessibility API (at least to know when we need to turn on the accessibility modes in Flutter).

Issue 2:
This is an umbrella issue that covers the work being done to support accessibility for desktop Flutter applications.

Design documents

go/flutter-desktop-accessibility

go/accessibility-bridge-detailed-design

Related issues

#23601

Flutter Engine Changes

Forked chromium accessibility code flutter/engine#22909

Initial import of accessibility code from Chromium flutter/engine#23087

Apply local patch to chromium accessibility code flutter/engine#23110

Implements accessibility bridge in common library flutter/engine#23491

mac:

Wires up accessibility bridge in macOS flutter/engine#23870

selection announcement does not work for selectable text #77833

voice over does not announce feedback when typing in a text field #77834

text field should be activated when it receives a11y focus #77835

windows:

Forked required windows component from chromium #77836

Wires up accessibility bridge in Windows #77838

Chromium Changes

https://chromium-review.googlesource.com/c/chromium/src/+/2616901
Issue 1:
Launched demo modal adds a second scroll bar.

Issue 2:
Hi, sorry for bad English. I want to tell that there is issue with opened modal (2 scrollbars) if javascripts included in head and not in the end of page as assumed in examples. The reason is here https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238 $body is empty
Issue 1:
import seaborn as sns
sns.regplot(x=[1], y=[1])

will cause following error:

IndexError Traceback (most recent call last)
<ipython-input-3-4dd949c43459> in <module>
----> 1 sns.regplot(x=[1], y=[1])

~/venv/lib/python3.7/site-packages/seaborn/regression.py in regplot(x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, label, color, marker, scatter_kws, line_kws, ax)
808 order, logistic, lowess, robust, logx,
809 x_partial, y_partial, truncate, dropna,
--> 810 x_jitter, y_jitter, color, label)
811
812 if ax is None:

~/venv/lib/python3.7/site-packages/seaborn/regression.py in __init__(self, x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, color, label)
112 # Drop null observations
113 if dropna:
--> 114 self.dropna("x", "y", "units", "x_partial", "y_partial")
115
116 # Regress nuisance variables out of the data

~/venv/lib/python3.7/site-packages/seaborn/regression.py in dropna(self, *vars)
64 val = getattr(self, var)
65 if val is not None:
---> 66 setattr(self, var, val[not_na])
67
68 def plot(self, ax):

IndexError: too many indices for array

This bug only exists in 0.10.0, but not in 0.9.0.

Issue 2:
For example:

import numpy as np
import pandas as pd
import seaborn as sns

df = pd.DataFrame({
'col': np.append(np.random.choice(np.array(['a', 'b', 'c']), 10), ['d']),
'x': np.random.normal(size = 11),
'y': np.random.normal(size = 11),
})

sns.lmplot(x = 'x', y = 'y', col = 'col', data = df)

It raises IndexError: invalid index to scalar variable which is not very intuitive. I think this case can occur with any data coming from the real world, and would be much nicer to exclude this group automatically or simply plot the single dot without regression line.
Issue 1:
Current functionality only allows splitting the input data into 2 parts i.e. "Train" and "Test" datasets.

Extension to this functionality is to allow 3 splits of dataset i.e. Train, Test and Validation using the function call only once.

High level impact assessment changes to :-

train_test_split()

Other modules may also be impacted - Assessment ongoing

Issue 2:
Asking how to do a threefold split is the top sklearn question on stackoverflow:

https://stackoverflow.com/questions/tagged/scikit-learn?sort=frequent&pageSize=50

We have discussed this before but I think this is a good reason to add it - the other option would be to document more explictly doing

from sklearn.model_selection import train_test_split

X_trainval, X_test, y_trainval, y_test = train_test_split(X, y)
X_train, X_val, y_train, y_val = train_test_split(X_trainval, y_trainval)

if that's the idiomatic way to do that.

The "issue" with that way is that it's harder to figure out the ratios.

If we want to add a threefold split method, there's three options:

add another parameter to train_test_split (not sure I like this)

create a new method that mirrors the interface of train_test_split

create a new method with a better interface than train_test_split

I kinda prefer the last one but it might be confusing to users. My ideal signature would not have *args and explicitly name X and y so we could stratify by default.

Maybe

naming_is_hard(X=None, y=None, fit_parms=None, train_size=None, val_size=None, test_size=None).

I'm not sure if it would make sense to pass a cv object here? or a CV class that's internally instantiated? Or we could have stratify and grouped options? Maybe the last makes most sense?