WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/2175 on 2012-06-21 by trac user eyurtsev, assigned to unknown.

An error message comes up when I try to pickle the result of

numpy.mean on a masked array of nans.

I suspect that this is a bug.

For convenience a python file is attached with this code.

import pickle

import numpy

a = numpy.mean(numpy.ma.masked_invalid(numpy.nan))

with open('test.txt', 'wb') as f:

pickle.dump(a, f)

-------------- Error Message --------------------

/usr/lib/python2.7/pickle.pyc in save(self, obj)

304 reduce = getattr(obj, "reduce_ex", None)

305 if reduce:

--> 306 rv = reduce(self.proto)

307 else:

308 reduce = getattr(obj, "reduce", None)

/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc in reduce(self)

5471 return (_mareconstruct,

5472 (self.class, self._baseclass, (0,), 'b',),

-> 5473 self.getstate())

5474 #

5475 def deepcopy(self, memo=None):

/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc in getstate(self)

5444 getmaskarray(self).tostring(cf),

5445 #getmaskarray(self).tolist(),

-> 5446 self._fill_value,

5447 )

5448 return state

AttributeError: 'MaskedConstant' object has no attribute '_fill_value'

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2155 on 2012-06-11 by trac user r0k3, assigned to @pierregm.

One gets an error while trying to pickle an object that contains a MaskedConstant.
Issue 1:
I have a figure that I need to compile using PGF backend because the \Game symbol is incorrect (another issue will be opened for that problem).

But when I do, the curves bounding the fill seem to get cropped to the visible window, which breaks the fill, as seen here:

When using the other backends, this behavior is not seen, for instance,

Issue 2:
Problem

I usually want to zoom into some specific regions of a plot. Using the "rectangle" method feels slow given that Google Maps and similar services allow zooming using the mouse wheel.

Proposed Solution

There are some work-arounds available on SO and gists. But I would love to see a standard solution which simply works out of the box.

Additional context and prior art

https://stackoverflow.com/questions/11551049/matplotlib-plot-zooming-with-scroll-wheel
Issue 1:
When creating html with df.style e.g.

df.style.apply(color_f, axis=1).render()

pandas assigns to each html cell of the table a unique css class. This means huge html are created, while it would be possible to use the same class for cell with the same style.

commit: None

python: 2.7.14.final.0

python-bits: 64

OS: Linux

OS-release: 4.15.14-300.fc27.x86_64

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: it_IT.UTF-8

LOCALE: None.None

pandas: 0.22.0

pytest: 3.1.3

pip: 9.0.1

setuptools: 36.0.1

Cython: 0.27.3

numpy: 1.14.2

scipy: 1.0.0

pyarrow: None

xarray: None

IPython: 5.4.1

sphinx: None

patsy: 0.4.1

dateutil: 2.7.2

pytz: 2018.4

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: None

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: None

lxml: None

bs4: 4.6.0

html5lib: 0.9999999

sqlalchemy: 1.1.11

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
I am working on a financial simulation (financial_life), in which I would like to collect my timeseries data in a DataFrame during simulation. However, while looking through several posts on StackOverflow and experimenting with timeit, I noticed that appending data to a Dataframe (e.g. via append or via loc-expansion) is far more inefficient than the append-function for a simple list and then transforming everything to a dataframe, if requested. The latter one is, what I am doing now.

So I was wondering, whether there is any performant way of creating a DataFrame in an iterative manner?
Issue 1:
Describe what you were doing when the bug occurred:

Go to profile tag

Click to record

After stop recording, click on any commits.

Please do not remove the text below this line

DevTools version: 4.9.0-75726fadfd

Component stack: CommitFlamegraphAutoSizer@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:33986:50

div

div

div

SettingsModalContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:28047:1

Profiler_Profiler@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:35614:50

ErrorBoundary_ErrorBoundary@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29061:5

PortaledContent@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29178:27

div

div

ProfilerContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:32775:1

TreeContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:24163:1

SettingsContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:24652:1

ModalDialogContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29245:1

DevTools_DevTools@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:36048:1

Issue 2:
mergeObjectsWithNoDuplicateKeys(): Tried to merge two objects with the same key: %s

Understandably general given that this is used to merge a couple things, but the actual use case is when getIntialState or getDefaultValue (or getChildContext but shh) is used in a mixin and the component and both return an object with the same key.

We should make this error mention something about those methods so people have an idea of where to look instead of them coming to IRC and being (rightfully) confused.
Issue 1:
I came across this while trying to see the English analyzer, but I forgot to change tokenizer to analyzer.

GET /_analyze
{
"tokenizer" : "english",
"text" : "whatever"
}

The only error that comes out of Elasticsearch (tested on 2.2.0 and 2.1.1) is an obscure one:

[2016-03-15 14:52:11,050][ERROR][transport ] [Jessica Drew] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@4ffecb71]
java.lang.NullPointerException
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799)
at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Worse still, it never actually closes the connection so the request hangs, awaiting a response (probably indicating a secondary bug in this code path).

Issue 2:
This is basically the opposite of how the histogram currently acts: fixed interval and dynamic number of buckets.

My use case is that I would like to build a price range style aggregation for filtering products:

$0 - $100

$101 - $200

$201 - $300

$301 - $400

$401 - $500

While you can do this with the range agg. if you know in advance the lower and upper bounds of all your prices, I can't see a way to do this dynamically based off the current query. The range agg also suffers from other shortcomings such as generating buckets that may contain no documents.

Ideally, I'd like to be able to specify the number of ranges / buckets I want (eg. 5) with a dynamic interval calculated by the aggregation.

min_doc_count could also come into affect here to ensure that either we don't generate buckets that don't contain any products (eg min_doc_count: 0) and in which case the number of buckets just becomes a maximum number of potential buckets, rather than a guaranteed amount.
Issue 1:
I took this example navbar from the Bootstrap docs page (http://getbootstrap.com/components/#navbar-default) but I'm using an input-group instead of a form-group inside navbar-form.

See example: http://jsfiddle.net/kaiku/DZQjR/

In Firefox 24, the search box displays at it should, but in Chrome 30 the search box expands to the full width of the navbar.

Setting width: auto on .input-group-btn seemed to solve the problem in Chrome and had no effect in FF, but this seems more like a hack.

Here's the line in question:

bootstrap/less/input-groups.less

Line 52
in
3f87bf4

width: 1%;

Issue 2:
When you have an input-group (I've only tested it with a button) inside a navbar the form doesn't align and makes the navbar height way longer.
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.6.6

Operating System version: MacOS 10.14.3

Java version: 1.8.0_171

Steps to reproduce this issue

When I try to use RpcContext.getServerContext to pass data from provider to cusumer，if the method runs in sync mode, it works（ Provider uses RpcContext.getServerContext().setAttachment to set Key-Value data，then Consumer uses RpcContext.getServerContext().getAttachment to get the Key-Value Data.). But if the method runs in async mode, it doesn't works. Consumer can't get the Key-Value by RpcContext.getServerContext().getAttachment.

xxx

xxx

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

Operating System version: Ubuntu 18.04

Java version: 1.8

Steps to reproduce this issue

Call base642bytes(String, char[]) with a random String and C64.toCharArray().

import org.apache.dubbo.common.io.Bytes;

public class Testing {

private static final String C64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

public static void main(String[] args) {
Bytes.base642bytes("ZHViYm8=", C64.toCharArray());
}
}

Expected Result

No crash.

Actual Result

What actually happens?

IndexOutOfBoundsException

Stack trace:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:752)
at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:692)
at Testing.main(Testing.java:8)
Issue 1:
Bug Report

Current Behavior

A clear and concise description of the behavior.

Input Code

REPL or Repo link if applicable:

https://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=FACgZgrgdgxgLgSwPZRADwDQAIxYLxYgCU-AfFmiQN7BZYBuAhgE4UDctDLWAnvu5zT8ATBzrMApnAjMoWANqZe2MMQC6HAL5EQARiJA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=6.26.0&envVersion=

Expected behavior/code

A clear and concise description of what you expected to happen (or code).

chrome69 &FF61 [2, 1, 1]

babel [2,1,2]

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

{
"your": { "config": "here" }
}

Environment

Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34]

Node/npm version: [e.g. Node 8/npm 5]

OS: [e.g. OSX 10.13.4, Windows 10]

Monorepo [e.g. yes/no/Lerna]

How you are using Babel: [e.g. cli, register, loader]

Possible Solution

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue 2:
The following snippet:

(function(x, f = () => x) {
var x;
var y = x;
x = 2;
return [x, y, f()];
})(1)

gives [2, null, 1] in Babel. Aside from x shadowing behavior (and what f should resolve to — 1 or 2 (which Babel and FF disagree on)), y definitely shouldn't be null here (as far as I can tell), so this looks like a bug?
Issue 1:
TypeScript Version: 1.8.10

Code

export default new class Foo {
@someDecorator
someMethod() {}
}

Will result in an error on @someDecorator:

error TS1206: Decorators are not valid here.

It can be worked around via

class Foo {
@someDecorator
someMethod() {}
}
export default new Foo();

Issue 2:
Not sure if this is by design or not, but the following gives a compile error of "Decorators are not valid here" with TypeScript 1.8:

let testClass = new class {
testMethod(@myDecorator date: Date): any {
return date;
}
}();
Issue 1:
np.argsort([7,4,5])

array([1, 2, 0])

Expected behaviour should be array([2,0,1])

Issue 2:
The argsort function seems to be broken. Looking at the code provided, the argsort for rows [0, 1] is correct but it's messed up for rows [2, 3].

I tested this on different NumPy installations and versions 1.11.0 and 1.12.0

import numpy as np

vec = np.array([
[-1.4, -1.2, 1.3],
[-3.6, 3.9, -3.7],
[-2.3, 1.5, -2. ],
[-2.6, 2.4, -1.6]
])

In [1]: np.argsort(-vec, axis=1)
Out[1]:
array([[2, 1, 0],
[1, 0, 2],
[1, 2, 0],
[1, 2, 0]])
Issue 1:
zoom rectangle can't work in 3d

Issue 2:
Chances are, this will probably fall on me to address, but I am documenting it here in case someone else realizes the issue.

When creating 3d axes in the old manner (ie, ax = Axes3D(fig)), the panning and zooming features are completely useless and often produces incomprehensible results. Axes created in the newer manner (ie, ax = fig.gca(projection='3d')) has somewhat better behavior, but still quite useless.

While pan and zoom has never really been properly supported in mplot3d, the current behavior is significantly worse than before. I suspect that there might be some interactions with a variety of changes. First, there were some changes to figure object itself, which may have not been properly tested with non-subplotted axes (which would explain differences in behavior between the old style and new style). Second, I suspect that some changes to the clipping logic for Agg might be causing some of the issues with zooming and panning.

I think I will temporarily address this issue by disabling pan and zoom for Axes3D objects. I also want to make the Home button capable of returning the figure view back to normal. It does not appear to do this right now.
Issue 1:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @jbaldwin @DefinitlyTyped

I'm currently getting the following errors when using @types/node and @types/requirejs simultaneously:

ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/node/module.d.ts(57,14): TS2300: Duplicate identifier 'mod'. ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/requirejs/index.d.ts(38,11): TS2300: Duplicate identifier 'mod'. ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/requirejs/index.d.ts(422,13): TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.

Issue 2:
I tried using the @types/sequelize package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @samuelneff @CodeAnimal @drinchev @babolivier @kukoo1 @oktapodia @MorpheusXAUT @TitaneBoy @zjy01 @nidzov @Raigen @todd @nrschultz

A new property duplicating (boolean) is added on include when quering.

when false the join can only produce one row per parent row.

Can this property be added in the IncludeOptions
Issue 1:
In sagaconfigurationloader.loadconfigurationproperties method of distributed transaction saga, sagaconfigurationloader. Class. Getclassloader(). Getresource (configuration_file) is used to read saga.properties. When the project runs as a jar package, it will report the wrong path and cannot find the file. A policy can be added to use sagaconfiguration when it cannot be read. Load. Class. Getclassloader(). Getresourceasstream (configuration file); to read

Issue 2:
Please answer these questions before submitting your issue. Thanks!

开源不易，我们希望将精力放在完成新功能和解决有价值的问题上，为了让大家的配合更具有效率，请填写以下列出的全部问题

Which version of Sharding-Jdbc do you using?（您使用的Sharding-Jdbc版本为？）

2.0.3

Expected behavior （您预期的结果是）

support show table structure expresses like "SHOW TABLES LIKE 'table_name'" or "SHOW CREATE TABLE table_name"

Actual behavior （实际运行的结果是）

io.shardingjdbc.core.parsing.parser.exception.SQLParsingUnsupportedException: Not supported token 'SHOW'

Steps to reproduce the behavior （可重现问题的操作步骤）

private static boolean isTableExists(Connection connection, String tableName) throws SQLException{

String sql = "SHOW TABLES LIKE '" + tableName + "'";

logger.debug("check if the table is exists: {}", sql);

Statement statement = connection.createStatement();

try {

ResultSet resultSet = statement.executeQuery(sql);

return resultSet.next();

}

catch (SQLException exp) {

logger.debug("table {} is not exits.", tableName);

}

finally {

statement.close();

}

return false;

}

Please provide the reproduce example codes (such as github link)，otherwise we will label the issue as Invalid and close it.（为了节省复现问题的时间，请务必提供可重现的代码，否则我们会将issue直接标记为invalid并关闭）

Code should based on https://github.com/shardingjdbc/sharding-jdbc-example

（代码请基于 https://github.com/shardingjdbc/sharding-jdbc-example）
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.

In master branch,code of getAuthority() is just like this:

public String getAuthority() {
if (StringUtils.isEmpty(username)
&& StringUtils.isEmpty(password)) {
return null;
}
return (username == null ? "" : username)
+ ":" + (password == null ? "" : password);
}

if username is 'admin' and password is null，the return value will be 'admin:'。Is it right?Also I think null check of username is unnecessary.

Is the below code is better?

public String getAuthority() {
if (StringUtils.isEmpty(username)
&& StringUtils.isEmpty(password)) {
return null;
}
return username + (password == null ? "" : ":" + password);
}

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

Spring boot version: 2.1.8.RELEASE

Java version: 1.8

Steps to reproduce this issue

项目启动过程中，扫描到Service注解的类；

在export()的过程中，在2.6.5版本新加了publishExportEvent();的操作；

内部的方法是ServiceBeanExportedEvent的事件监听；

4.applicationEventPublisher.publishEvent(exportEvent);这个方法的applicationEventPublisher为null，抛出了空指针异常；

5.ServiceBean方法实现了ApplicationEventPublisherAware接口，但是却没有调用其中的方法setApplicationEventPublisher方法；

Message

萌新一个，最近在学习Dubbo，遇到这个问题，自己查了很多资料没有解决，还请各位大佬帮忙看一下，感谢。
Issue 1:
hi, guys, i wrote a Filter whice extends ActionFilter.Simple , and override the method : apply(String action, ActionResponse response, ActionListener listener). when i invoke method: client.prepareSearch, the apply method was invoked twice whice is not i wanted, once is enough. is there sth i missed ? here is my code :

public static class LoggingFilter extends ActionFilter.Simple {

@Inject
public LoggingFilter(Settings settings) {
super(settings);
}

@Override
public int order() {
return 999;
}

@Override
protected boolean apply(String action, ActionRequest request, ActionListener listener) {
return true;
}

@Override
protected boolean apply(String action, ActionResponse response, ActionListener listener) {
if ("indices:data/read/search".equals(action)) {
System.out.println("=========" + action + "======" + listener);
System.out.println("=========" + response.hashCode() + "======" );
}

return true;
}
}

public class ActionInvokeModule extends AbstractModule implements PreProcessModule {

@Override
protected void configure() {
bind(LoggingFilter.class).asEagerSingleton();
}

@Override
public void processModule(Module module) {
if (module instanceof ActionModule) {
((ActionModule)module).registerFilter(LoggingFilter.class);
}
}
}

public class ActionInvokePlugin extends AbstractPlugin {

@Override
public Collection<Class<? extends Module>> modules() {
Collection<Class<? extends Module>> modules = new ArrayList<Class<? extends Module>>();
modules.add(ActionLoggingModule.class);
System.out.println("==========loaded log plugin");
return modules;
}

}

this is my client :

@test

public void testSimpleSearch() {

SearchResponse response = client.prepareSearch("twitter2")

.setTypes("tweet2")

.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)

.setQuery(QueryBuilders.termQuery("user", "wangwu")) // Query

.setFrom(0).setSize(60).setExplain(true)

.execute()

.actionGet();

for (SearchHit hit : response.getHits().getHits()) {

System.out.println("======" + hit.getSource());

}

}

Issue 2:
A standard GET by ID results in a single log entry in the audit log. Search (_search) results in two identical log entries. Every time.

Default ES 1.6.0 installation.

Added latest Shield.

Added "search_admin" user.

Everything works great out of the box except I get _search audits duplicated in the log. ONLY "SearchRequest" audits. I haven't found any other api yet which results in this strange behavior.

[2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest]
[2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest]
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-target-elements-by-class-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

You'll see where <script></script> should be there's that funky fcss-thing. It happened last page too.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine has an issue.

The four Javascript slot machine exercises all display the JS section of the code incorrectly. Presumably fccss is supposed to be <script>, and likewise fcces is supposed to be </script>.
Issue 1:
When adding something like the following to pubspec.yaml:

flutter:
assets:
- ../../../../some_file

The flutter tool appends that full path to the flutter_assets directory path and ends up writing the file outside of the flutter_assets directory(e.g to flutter_assets/../../../../some_file).

Loading the asset at runtime fails.

Issue 2:
This was specifically happening with font assets. A font folder was unexpectedly being created as a sibling to the build directly.