WhereIsAI/github-issue-similarity huggingface dataset:
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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

open the "http://dubbo.apache.org/zh-cn/docs/user/demos/consumer-threadpool.html" on the browser.

the url of "消费端线程池新.png" is incorrect.

Steps to repair the issue.

1.change the url of "消费端线程池新.png" to "/img/docs/consumer-threadpool1.png"

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: 27.0

Operating System version: linux

Java version: jdk1.8+

generic invoker occure:

java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListener
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-the-parent-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I solved the whole thing and the error is still there saying "Your left-well element should have a red background." when it is red already and the code is correct too, please check it!!

Issue 2:
Challenge global-scope-and-functions has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.

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

// Declare your variable here
var myGlobal = 10;

function fun1() {
// Assign 5 to oopsGlobal Here
oopsGlobal = 5;
}

// Only change code above this line
function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}

The first time I attempted to submit my code it said I had not assigned 5 to oopsGlobal. After a refresh it said that I had used var oopsGlobal =5; Neither of these is the case.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Expecting fullWidth to make the input take up the full width of its container, even when it has the startAdornment property.

Current Behavior

Adornment overwrites the width property.

Steps to Reproduce (for bugs)

<Input
fullWidth
startAdornment={<InputAdornment position="start"><SearchIcon /></InputAdornment>}
placeholder="Input"
disableUnderline
/>

This component would provide us an input where the width is set to auto by InputAdornment class.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
16

browser
Chrome

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

Expected Behavior

CircularProgress animation should be smooth and predictable under load

Current Behavior

The animation is okay but the dynamic length of the line only updates once a while under load. Maybe my understanding of Promise is wrong? I thought it would move the load away from the main UI thread?

Steps to Reproduce (for bugs)

generate some load inside a promise

observe CircularProgress animation, it still runs but the length of the circle stays constant

demo: https://codesandbox.io/s/j4xvnvv8nv (warning, Chrome pls, firefox crashes under this artificial load)

Context

My app uses canvas to resize a bunch of user selected files. I tried CircularProgress but to my surprise the animation is semi broken. My workaround: animated Gif.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.33

React
16.3

browser
Chrome
Issue 1:
The range query support 'lte/lt/gt/gte', will the range aggregation support too?

For price of goods, I want to use range [0,50], [50,100], ...

Issue 2:
Problem

Right now to prevent duplicates in index you have two options:

generate id based on document content in your application. Problems:

simple methods (md5 checksum of field or fields for example) work only with 1:1 matches

more complex methods require document processing and that forces you to duplicate parts of ES in your app (stemming, stopwords etc) and even then you only detect a duplicate if end result matches 1:1 whatever you have in ES

search for each document in ES before inserting it. Problems:

doesn't work with bulk inserts (and is unusable in many places just because of this)

at least doubles item-by-item insert time (2 separate requests)

isn't atomic

Possible solution

Feature similar to Solr de-duplication https://cwiki.apache.org/confluence/display/solr/De-Duplication

but instead of simple signatures offered by Solr, something using https://github.com/larsga/Duke (or parts of it)

There is already a plugin doing this for search https://github.com/YannBrrd/elasticsearch-entity-resolution
Issue 1:
sklearn 0.18.1

numpy 1.12.0rc1,

scipy 0.18.1

sklearn 0.18.1

python 3.5.2

from sklearn.metrics import confusion_matrix

File "lib\sklearn_init_.py", line 57, in

from .base import clone

File "lib\sklearn\base.py", line 12, in

from .utils.fixes import signature

File "lib\sklearn\utils_init_.py", line 11, in

from .validation import (as_float_array,

File "lib\sklearn\utils\validation.py", line 18, in

from ..utils.fixes import signature

File "lib\sklearn\utils\fixes.py", line 406, in

if np_version < (1, 12, 0):

TypeError: unorderable types: str() < int()

File: sklearn\utils\fixes.py, line 406 if the 'if' statement

if np_version < (1, 12, 0):

class MaskedArray(np.ma.MaskedArray):

# Before numpy 1.12, np.ma.MaskedArray object is not picklable

# This fix is needed to make our model_selection.GridSearchCV

Issue 2:
There is a new bug in master brunch, scikit-learn/sklearn/utils/fixes.py

in line 406: if np_version < (1, 12, 0): , an error occured, TypeError: unorderable types: str() < int().

It's because in the function :

def _parse_version(version_string):
version = []
for x in version_string.split('.'):
try:
version.append(int(x))
except ValueError:
# x may be of the form dev-1ea1592
version.append(x)
return tuple(version)

However， my numpy version is：1.12.0b1, this funciotn return a tuple(1,12,'0b1') , but in line 406, It is compared with integer type, so the error occured.

I just in a simple way to solve it. I change the code to if np_version < (1, 12, '0'): in line 406, just change the third tuple index to string type.

Of course, this is not a common method.
Issue 1:
I'm trying to add a new grammar to spell-check, and I see this:

There's no easy way that I know of to append to that list of defaults. Instead I have to track down what the defaults are, paste them in, and append my own grammar. Then I have to hope that the defaults don't change in a future version of Atom, making my copied list of defaults stale.

Issue 2:
Just installed atom. Being a python developer I wanted to hide *.pyc from tree view, but I also wanted to maintain the default ignored names. The problem is ".git, .hg, .svn, .DS_Store, Thumbs.db" dissapears when the textbox is clicked, and the user has to type it all again
Issue 1:
Requiring a package in bundle e.g. import camelcase from 'camelcase' resolves to <root_dir>/node_modules/next/node_modules/camelcase before <root_dir>/node_modules.

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

Expected Behavior

Requiring a package that's a direct dependency resolves project's node_modules

Current Behavior

Webpack looks in next's nested node_modules

Steps to Reproduce (for bugs)

yarn add camelcase@3.0.0

add import to a pages/index.js import camelcase from 'camelcase'

next build

Build bundles package/chunk using next's camelcase which is version 4

Which leads to an uglifyJS error because camelcase v4 is published as es2015.

Your Environment

Tech
Version

next
4.2

node
8

Note: I know camelcase is not a browser module, but it's just an example.

Issue 2:
Hello! I'm just now getting started with next (using version 1.2.3), and I have the following folder structure:

package.json

pages

index.js

lib

components

Test.js

I have a symlink: node_modules/lib -> ../lib.

I import my Test component with import Test from 'lib/components/Test'.

This works fine, but it seems to not be transpiled: if I import anything from my Test component, I get the following error: SyntaxError: Unexpected token import.

Any guidance here? I'd be fine having my /components under /pages but I don't want them to be able to be served up standalone.

Thanks!
Issue 1:
Do you want to request a feature or report a bug?

feature

What is the current behavior?

React is published to NPM only as ES5 code

What is the expected behavior?

Publish react also in es2015, with es2015 entry point in the package.json

Motivation: Performance. leverage the targeted client native ES features

Its part of the angular 4 package format

https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.jt2mvxhyrshv

http://2ality.com/2017/04/setting-up-multi-platform-packages.html

Issue 2:
Do you want to request a feature or report a bug?

Request a feature

What is the current behavior?

React ecosystem was promoting ES6 classes and modules since 2014 and many packages like react-router, redux and so on, have an "es" folder in the npm package with source code in ES2015 modules. Unless I am missing something, it is strange that React itself does not offer that option.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).

Install react and try to import it in a browser with native modules enabled.

What is the expected behavior?

Have an "es" folder in the npm package with ES2015 modules source code, like most React ecosystem projects do. Allow to import react from ES2015 native modules to make developer workflow more simple.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

All versions
Issue 1:
Challenge Name : Add a Submit Button to a Form

https://www.freecodecamp.com/challenges/add-a-submit-button-to-a-form#?solution=%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%3E%0A%3C%2Fform%3E%0A

Issue Description

Load page

From line 47 to 49, the caret doesn't appear for text input

Arrow keys would not move the caret across the existing text

Cannot highlight line 47 and 48

Browser Information

Browser Name, Version: Chrome Version 49.0.2623.112 m

Operating System: Windows 7

Mobile, Desktop, or Tablet: Laptop and Desktop

Your Code

// If relevant, paste all of your challenge code in here

Screenshot

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Code Sample, a copy-pastable example if possible

# Your code here

Problem description

[this should explain why the current behaviour is a problem and why the expected output is a better solution.]

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

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

When localizing a Timestamp vs timeseries/index, the timezones look similar

In [21]: ts = pd.Timestamp('2012-01-01').tz_localize('US/Eastern')

In [22]: dtidx = pd.to_datetime(['2012-01-01']).tz_localize('US/Eastern')

In [23]: ts
Out[23]: Timestamp('2012-01-01 00:00:00-0500', tz='US/Eastern')

In [24]: dtidx
Out[24]: DatetimeIndex(['2012-01-01 00:00:00-05:00'], dtype='datetime64[ns, US/Eastern]', freq=None)

In [25]: dtidx[0]
Out[25]: Timestamp('2012-01-01 00:00:00-0500', tz='US/Eastern')

but under the hood the tz attributes of the DatetimeIndex is actually different as the tz attribute of the actual Timestamps (even when accessing a single element of the DatetimeIndex as a Timestamp):

In [26]: ts.tz
Out[26]: <DstTzInfo 'US/Eastern' EST-1 day, 19:00:00 STD>

In [27]: dtidx.tz
Out[27]: <DstTzInfo 'US/Eastern' LMT-1 day, 19:04:00 STD> <-- note the difference here

In [28]: dtidx[0].tz
Out[28]: <DstTzInfo 'US/Eastern' EST-1 day, 19:00:00 STD>

In [29]: ts.tz == dtidx.tz
Out[29]: False

In [30]: ts.tz.zone
Out[30]: 'US/Eastern'

In [31]: dtidx.tz.zone
Out[31]: 'US/Eastern'
Issue 1:
If a text field is focused by the user when it is disabled via props, the input has its focused visual style retained (label and line under the text remain highlighted in primary color). I tried to work around the issue by calling .blur() on the underlying input element before setting disabled={true}, but it appears that calling .blur() on the input also does not cause the visual styling for TextField to be updated and the input looks like it is still focused. I am not sure if this is the same or a different issue.

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

Expected Behavior

I'd expect an input to blur when disabled is set to true if it is focused. Additionally, I'd expect the visual styling to not appear focused when the input is no longer focused.

Current Behavior

Setting disabled=true or calling blur on a focused input does not update the visual styling while the input is focused.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/pp0jl9jzq

Type two characters in the first input to cause it to be disabled.

Click/type in the second input. Notice that both inputs are focused.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
15.6.x

browser
Chrome

Issue 2:
If I download an external component (say, something like https://github.com/glittershark/reactable) - how can I theme it or give it material styles?

What if I create my own custom component, how can I pluck mui styles and apply them? (I read the CodeExample section of the docs, but I didn't really follow it. Where does CodeBlock come from? You pass it styles.codeBlock but afaict that's not even defined? There also seems to be a lot of duplication of original styles, which doesn't seem very DRY?)

With CSS (well, SASS or Less), of course, this was no problem. But now we've got this theme object? I'm confused. Certainly there is a way, right? You wouldn't shut the door on the entire github/npm ecosystem of other react components?
Issue 1:
Bug summary

Changing the parameter 'levels' when using contourf and a colorbar with norm=colors.LogNorm has no effect on the final figure. '

Code for reproduction

This code is inspired from the Colormap Normalizations example from https://matplotlib.org/stable/gallery/userdemo/colormap_normalizations.html#sphx-glr-gallery-userdemo-colormap-normalizations-py adding the norm=colors.LogNorm parameter.

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors

N = 100
X, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)]

Z1 = np.exp(-X**2 - Y**2)
Z2 = np.exp(-(X * 10)**2 - (Y * 10)**2)
Z = Z1 + 50 * Z2

fig, ax = plt.subplots(1, 2)

pcm = ax[0].contourf(X, Y, Z, levels=10,
norm=colors.LogNorm(vmin=Z.min(), vmax=Z.max()),
cmap='PuBu_r')
fig.colorbar(pcm, ax=ax[0], extend='max')

pcm = ax[1].contourf(X, Y, Z, levels=20,
norm=colors.LogNorm(vmin=Z.min(), vmax=Z.max()),
cmap='PuBu_r')
fig.colorbar(pcm, ax=ax[1], extend='max')

plt.tight_layout()

Actual outcome

The number of levels do not change even if the parameter 'levels' in contourf is changed.

Expected outcome

I expected to see that changing the 'levels' parameters in contourf actually change the number of levels in the plot (to obtain the figures below: same code has before but remove the norm=colors.LogNorm(vmin=Z.min(), vmax=Z.max()) parameter and plot X^2+Y^2 rather than Z).

Additional information

No response

Operating system

Windows 10

Matplotlib Version

3.5.0

Matplotlib Backend

Qt5Agg

Python version

3.10.1

Jupyter version

No response

Installation

No response

Issue 2:
Bug report

Bug summary

It does not seem possible to use LogLocator to generate a specific number of log-spaced tick locations without a live axis.

Code for reproduction

import matplotlib as mpl
ticker = mpl.ticker.LogLocator(numticks=2)
ticker.tick_values(1, 10)

array([ 0.1, 1. , 10. , 100. ])

Expected outcome

array([ 1. , 10. , ])

Matplotlib version

Matplotlib version: 2.2.2

Python version: 3.6
Issue 1:
See this SO question:

Apparently (for a DataFrame with DatetimeIndex) drop requires a Timestamp object (this is different from ix/loc which can cunningly work out you meant a timestamp, if fed a string).

In [11]: df1
Out[11]:
Price1 Price2 Price3
Date_Time
2012-01-01 00:00:00 63.05 41.40 68.14
2012-01-01 01:00:00 68.20 42.44 59.64
2012-01-01 02:00:00 61.68 43.18 49.81

In [12]: df1.drop(pd.Timestamp('2012-01-01 01:00:00'))
Out[12]:
Price1 Price2 Price3
Date_Time
2012-01-01 00:00:00 63.05 41.40 68.14
2012-01-01 02:00:00 61.68 43.18 49.81

In [13]: df1.drop('2012-01-01 01:00:00')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-13-334d00239c8b> in <module>()
----> 1 df1.drop('2012-01-01 01:00:00')

/Users/234BroadWalk/pandas/pandas/core/generic.pyc in drop(self, labels, axis, level)
373 new_axis = axis.drop(labels, level=level)
374 else:
--> 375 new_axis = axis.drop(labels)
376 dropped = self.reindex(**{axis_name: new_axis})
377 try:

/Users/234BroadWalk/pandas/pandas/core/index.pyc in drop(self, labels)
1296 mask = indexer == -1
1297 if mask.any():
-> 1298 raise ValueError('labels %s not contained in axis' % labels[mask])
1299 return self.delete(indexer)
1300

ValueError: labels ['2012-01-01 01:00:00'] not contained in axis

Compare to ix/iloc which don't care:

In [21]: df1.loc['2012-01-01 01:00:00']
Out[21]:
Price1 68.20
Price2 42.44
Price3 59.64
Name: 2012-01-01 01:00:00, dtype: float64

In [22]: df1.loc[pd.Timestamp('2012-01-01 01:00:00')]
Out[22]:
Price1 68.20
Price2 42.44
Price3 59.64
Name: 2012-01-01 01:00:00, dtype: float64

Perhaps worth investigating where else this could work/not.

Issue 2:
Needs to coerce:

e.g.

In [1]: import pandas.util.testing as tm

In [2]: pan = tm.makePanel()

In [3]: pan
Out[3]:
<class 'pandas.core.panel.Panel'>
Dimensions: 3 (items) x 30 (major_axis) x 4 (minor_axis)
Items axis: ItemA to ItemC
Major_axis axis: 2000-01-03 00:00:00 to 2000-02-11 00:00:00
Minor_axis axis: A to D

In [4]: pan.drop('2000-01-03', axis=1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-4-11e47d7c99f1> in <module>()
----> 1 pan.drop('2000-01-03', axis=1)

../pandas/core/generic.pyc in drop(self, labels, axis, level)
1112 new_axis = axis.drop(labels, level=level)
1113 else:
-> 1114 new_axis = axis.drop(labels)
1115 dropped = self.reindex(**{ axis_name: new_axis })
1116 try:

../pandas/core/index.pyc in drop(self, labels)
1614 mask = indexer == -1
1615 if mask.any():
-> 1616 raise ValueError('labels %s not contained in axis' % labels[mask])
1617 return self.delete(indexer)
1618

ValueError: labels ['2000-01-03'] not contained in axis
Issue 1:
I saw the relevant PR, and verified some of the performance improvements, but it has not been merged into this. Can the official support VAO? Or when will it be ready to support VAO?

Issue 2:
What is the current position of THREE.renderer concerning the usage of VAO's?

OES_vertex_array_object extension is supported on majority of devices and is going to be in core of WebGL 2.0 (According to WebGL Stats and WebGL 2.0 Spec).

I've found #5849 issue on that topic, but it seems to have no continuation.

Could it be something like mentioned in that issue emulation level? (renderer acts like VAO is always available and interacting with it through THREE.VertexArrayObjectSomething which handles cases). Or should it be done by a separate renderer somehow? Or if the case is THREE doesn't need it, why it is so?

Thanks in advance.
Issue 1:
Summary of the new feature/enhancement

Proposed technical implementation details (optional)

Issue 2:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

--- I'm currently running version 0.15.2 because that is the only one I've gotten to successfully install without admin rights using the provided msi installer. Would it be possible to provide an msi installer along with the regular exe? Or even just instructions to install without admin rights (if one exists).

If you'd like to see this feature implemented, add a 👍 reaction to this post.