WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
after update to Version 0.189.0, atom editor can't display Chinese character。

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:
VSCode Version: 1.0.0

OS Version: osx 10.11.1

Steps to Reproduce:

1 write #region & #endregion

2 inside code write in same level

3 #region can't fold

Issue 2:
From @SamVerschueren on October 30, 2015 6:9

I might have seen a post regarding styling of the OutputChannel, but not sure though.

I think it would be a nice feature to support ANSI colors. This way libraries like chalk can be used to style the output. Another benefit is that if you develop a plugin like Yeoman, who outputs to the console, the output can be directly passed to the OutputChannel.

Not sure if this is possible, but I think it would be a nice feature. No need to implement our own styling stuff in the channel, just use libraries that already exist.

Copied from original issue: Microsoft/vscode-extensionbuilders#69
Issue 1:
Example: http://plnkr.co/edit/MVGtfe8LL8RyPoI6PaOc?p=preview

If any element has a binding on the class property, it will blindly overwrite the existing element classes. ngClass will intelligently add and remove its given class (or classes).

Should Angular keep this behavior for basic class bindings, or should the default behavior match ngClass?

(@mhevery asked me to open this issue for discussion)

Issue 2:
The angular 2 router currently does not allow more than one level of nesting.

If you have a structure like:

/users/profile/detail

you cannot link to /users/profile since the router config doesnt allow creating/linking to non-terminal routes.Thus more than 1 level of nesting is not possible.

This is a huge flaw and makes angular 2 unsuitable for anything more than a toy application.
Issue 1:
Using Postgresql dialect uses psycopg2 postgresql+psycopg2://scott:tiger@localhost/mydatabase , I was able to connect to redshift, however, I was not able to fetch any tables in schema other than public! Is there any way we get fetch tables from schema other than public.

Issue 2:
when I try to upgrade my superset, I use superset db upgrade, I ran into the error:

sqlalchemy.exc.IntegrityError: (pymysql.err.IntegrityError) (1062, "Duplicate entry 'xxxx' for key 'uq_saved_query_uuid'")
[SQL: ALTER TABLE saved_query ADD CONSTRAINT uq_saved_query_uuid UNIQUE (uuid)]
(Background on this error at: http://sqlalche.me/e/13/gkpj)

Environment

Mysql-5.7.25

Additional context

I went back to commit d7eb1d4: on 96e99fb176a0_add_import_mixing_to_saved_query.py, there is a line of code, which is obviously written for acceleration:

# Add uuids directly using built-in SQL uuid function
add_uuids_by_dialect = {
MySQLDialect: """UPDATE %s SET uuid = UNHEX(REPLACE(uuid(), "-", ""));""",
PGDialect: """UPDATE %s SET uuid = uuid_in(md5(random()::text || clock_timestamp()::text)::cstring);""",
}

I tried this line of code on my table with couple rows, it gives exact same uuid for each row. After I deleted this line of code, everything goes on well.
Issue 1:
In the latest releases of atom-shell when I add code for a BrowserWindow. It loads the window my code has requested but then also loads an additional blank one.

So for example I have this code:

mainWindow = new BrowserWindow({
"width": 800,
"height": 600,
"fullscreen":false,
"kiosk": false,
"resizable":false,
"frame":true,
"web-preferences":{
"web-security":false
},
"show":true
});

But I get an empty white window (that is resizeable, and note that my code has this set to false) in addition to my own window that I have requested.

What's really interesting is that if I set frame to false, this doesn't happen! And if I delete the code above then it doesn't happen either. So it's like calling a browserwindow with a frame in the latest versions causes a duplicate window to be created.

I can confirm this bug happens in 0.19.5 and 0.20.3 but DOES NOT in 0.18.1, so it seems a recent fix in the later versions causes this issue. I'm testing on Windows 7.

Issue 2:
Have one window opened by electron that opens a child window using window.open

the parent does a postMessage to the child

window.opener does not equal evt.source since evt.source is a BrowserWindow, but window.opener is not

Electron 0.36.0, windows x64
Issue 1:
http://jsfiddle.net/tianhai/7906445s/

Click on "Add" the first time, the value of the original radio button will disappear although v-model value is still there.

Click on "Add" the second time, no dom is added at all although the array is changed.

Issue 2:
Version

2.6.10

Reproduction link

https://codepen.io/fasteel/pen/qBBZbgO

Steps to reproduce

Create a set in the object data, and try to delete an item via the delete method.

What is expected?

When the text "DELETE" clicked, the item should disappear.

What is actually happening?

Nothing
Issue 1:
Version

2.6.10

Reproduction link

https://jsfiddle.net/mpqx6y8r/2/

Steps to reproduce

Run the JSFiddle with the browser console open.

A created hook on the Vue component will attempt to log to the console the return value of this.Pet.getSpecies() and this.WaitingList.frontPerson().

However, Vue will fail the second call since this array method (class ExtendArray extends Array) has been stripped during data registration. The same does not happen with plain Objects (class ExtendObject extends Object).

What is expected?

Console output:

'Pet: Dog',

'WaitingList: Jack'

What is actually happening?

Console output:

'Pet: Dog',

'TypeError: this.WaitingList.frontPerson is not a function'

Issue 2:
Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-gg2gj

Steps to reproduce

Create two functional components, OuterComponent and InnerComponent.

Use InnerComponent in OuterComponent.

Use OuterComponent in your app somewhere.

What is expected?

InnerComponent should be recognized, as it's registered in OuterComponent's component option.

InnerComponent should render.

What is actually happening?

A unknown custom element error is thrown, and InnerComponent isn't rendered.

It will work if all the functional components used are registered in app.vue, even though they aren't used in app.vue's template.
Issue 1:
Description

Log_loss uses LabelBibarizer to transform only original y_true, but not to transform y_pred.

Hence array y_true=[1,1,1] is transformed into [0,0,0], while y_pred is unchanged. This makes the result to be quite different from expected.

Sample code

from sklearn.metrics import log_loss
y_true = [1,1,1]
y_pred = [0,0,0]
print(log_loss(y_true,y_pred)) # incorrect, because y_true is transformed into [0,0,0]
print(log_loss(y_pred,y_true)) # correct

Expected Results

34.5395759923

34.5395759923

Actual Results

9.99200722163e-16

34.5395759923

Versions

Windows-7-6.1.7601-SP1

Python 3.4.4 |Anaconda 2.3.0 (64-bit)| (default, Feb 16 2016, 09:54:04) [MSC v.1600 64 bit (AMD64)]

NumPy 1.10.4

SciPy 0.16.0

Scikit-Learn 0.16.1

Issue 2:
When there is only one class, such as :

y_true = np.array(['class1', 'class1', 'class1'])

y_predict = np.array([[0.1],[0.7],[0.5]])

log_loss(y_true, y_predict)

The result would be wrong, which is not the logloss of y_predict but the logloss of 1-y_predict

The code in log_loss:

if Y.shape[1] == 1:
Y = np.append(1 - Y, Y, axis=1)

should be change to :

if Y.shape[1] == 1:
Y = np.append(Y, 1 - Y, axis=1)
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-add-placeholder-text-to-a-text-field has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Not 100% sure if its designed like this but it jumps from UL to forms skipping OL challenge...

Also brought to my attention was the fact that there is no way back to your previous challenge (besides browser back button)

-Goran

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-create-a-bulleted-unordered-list has an issue. Please describe how to reproduce it, and include links to screenshots if possible. This issue I noticed can occur on ANY page and its not applicable to only this page, however on this page I decided to report it. If You press the back button to repeat a lesson or just review the information. And you then click on the Run Code button again on that lesson, instead of taking you to the next lesson, it acts as if you completed that next lesson ( since you were on that page last when you pressed the back button ) and takes you to the lesson after that one, even though you never completed the previous page.. for example. on the page http://freecodecamp.com/challenges/waypoint-create-a-bulleted-unordered-list which is waypoint 26, I did not do this lesson and instead pressed the back button to go to the waypoint 25 again. I completed 25 again, press Run Code and am then taken directly to Waypoint 27. To try and get back to 26 , i press back again and it goes to Waypoint 25 again, I complete and press run code ,and this time it takes me to Waypoint 28, thus skipping both 26 AND 27 in this next attempt .
Issue 1:
hi, i'm getting this error on default project after "php app/console server:run"

im using php7

https://s15.postimg.io/54yaz6ty3/Se_im_001.png-

Neither the property "ip" nor one of the methods "ip()", "getip()"/"isip()" or "__call()" exist and have public access in class "Symfony\Component\HttpKernel\Profiler\Profile" in @WebProfiler/Profiler/layout.html.twig at line 30

Thanks

Issue 2:
I tried to add a new custom validation to the password property of my User object in two different ways: in validation.xml and assert. In both cases the property was validated by the FOSUser's validation and my custom validation, so I got two error messages if it is common in the two validations (e.g.: the default minLength=2, in my case the minLength=8).

I am using Symfony 2.7 and the newest FOSUser.
Issue 1:
Version

2.6.10

Reproduction link

https://codepen.io/meekohi/pen/jjgezj

Steps to reproduce

Use @click.prevent= along with a :checked='booleanComponentProp' on a checkbox. Clicking the checkbox correctly updates all data, but the checkbox visually remains in whatever the original state was.

What is expected?

Checkbox should update based on the :checked property.

What is actually happening?

Checkbox does not update.

This bug did not exist in Vue 2.5.22 -- it seems like Vue 2.6 started relying on the native click event to change the state of the box for the simple case, but if the underlying property changes via some other mechanism (for example a prop updating) then the checkbox visual appearance gets out of sync with the underlying data.

Issue 2:
Version

2.6.6

Reproduction link

https://jsfiddle.net/s4ub8dnc/3/

Steps to reproduce

I have a checkbox which needs to get it's checked state from a VueX store, but I also need to be able to determine whether or not shift was being held when the checkbox was clicked. To do this I'm using @click.prevent on the checkbox (so that I have the event being passed to the method) and then using v-model to determine the checked state.

However, regardless of whether or not the v-model value is true or false, the checkbox never gains the checked state if the click is prevented. It seems that there is still a reliance on the click event in order to set the state.

What is expected?

I would expect the checkbox to be checked if the v-model value is set to true, regardless of how the checkbox arrived at that state - by something else setting it to true, or by the click handler setting it.

What is actually happening?

The click binding having .prevent on it stops the checkbox from receiving it's checked state, even when the v-model value is true

The reason why I haven't just used a setter in the computed is because the setter doesn't get given the click event, so I can determine whether or not shift was being held at the point of clicking the checkbox.
Issue 1:
I have to load the data to the cache, but I find that I didn't find such a method that I want to find the cache source path by using the url, like this: File file = .get(url);

Only find that:

future = Glide.with(mContext).downloadOnly().load(sticker.getPictureUrl()).submit();

File cacheFile = future.get();

How i do it?

Issue 2:
I am new in glide and want to migrate my app from universalimageloader to glide.

I want to convert cached image from the disk into image file, and show it into an ImageView.

When I use universalimageloader, I can do it easily with this way:

File imageFile = DiskCacheUtils.findInCache(image_url, ImageLoader.getInstance().getDiscCache());
//then show it into image view
String file_target = "file://"+imageFile.getPath();
ImageLoader.getInstance().displayImage(target, imageView);

However I have not found a way from documentation to do that in Glide.

Is it possible?
Issue 1:
Output of node_modules/.bin/electron --version: 3.0.2

Operating System (Platform and Version): macOS 10.14

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable):

Expected Behavior

There should be no grey line rendered at the top of the window area in frameless window.

My conclusion is that Electron uses some obscure combination of window styles that cause this behaviour. I was able to reproduce the same appearance when using Cocoa API in the same fashion on a sample Xcode project.

Actual behavior

On macOS Mojave the grey line is rendered at the top of the window area even when the contents are transparent and the window is configured to be frameless.

To Reproduce

Fork and run https://github.com/pronebird/electron-mojave-titlebar-bug

If you provide a URL, please list the commands required to clone/setup/run your repo e.g.

$ git clone https://github.com/pronebird/electron-mojave-titlebar-bug.git
$ npm install
$ npm start

Screenshots

( The dark background is the standard wallpaper on Mojave)

Additional Information

Add any other context about the problem here.

Issue 2:
Electron Version: ???

Operating System (Platform and Version): macOS 10.14 Mojave

Last known working Electron version: ???

Expected Behavior

No white lines

Actual behavior

There is a thin white line at the top border of Discord

To Reproduce

Download Discord and run.

Screenshots

Additional Information

May be related to dark theme.

I am aware macOS Mojave is not exactly accessible to everyone yet, but I'm reporting this just in case.
Issue 1:
Example below. While we don't support ops between different dtype tensors, we should consider changing this behavior. In numpy, this would return a floating tensor.

>>> import torch
>>> a = torch.tensor([1,2,3], dtype=torch.long)
>>> b = torch.tensor([3,2,1], dtype=torch.long)
>>> a/b

0
1
3
[torch.LongTensor of size (3,)]

Issue 2:
PyTorch version: current master (10fd27)

How you installed PyTorch (conda, pip, source): from source

Python version: 3.6

When dividing two ints in pure Python, the result is always a float, e.g.

>>> x = 5 / 3
>>> print(x)
1.6666666666666667
>>> print(type(x))
<class 'float'>

NumPy shares this behavior:

>>> import numpy as np
>>> x = np.array([5], dtype=np.int64) / np.array([3], dtype=np.int64)
>>> print(x)
[1.66666667]
>>> print(x.dtype)
float64

PyTorch uses floor division if both operands have integer types:

>>> from torch import LongTensor
>>> x = torch.LongTensor([5]) / torch.LongTensor([3])
>>> print(x)

1
[torch.LongTensor of size (1,)]
>>> print(x.type())
torch.LongTensor

I find it confusing that PyTorch uses different division semantics than NumPy and Python. It is a potential source of bugs for users coming from a NumPy background and for users who want to port their code from NumPy to PyTorch.

For floor division that keeps the integer type, Python already has the dedicated // operator (which is also understood by NumPy). I would propose that PyTorch changes its handling of division so that the / operator always performs true division and introduces the // operator that explicitly means floor division.

I see two potential problems with changing PyTorch's division behavior like this:

This is quite a fundamental change that can break exisiting code.

There is still the open question on how to behave on Python 2 with/without from __future__ import division. NumPy also respects this future import, so depending on the future imports, Python 2 code can either cause the old floor-division behavior (where dividing two np.*int* types results in a floor division) or the new one (always perform true division). I don't know how hard it would be to mimic this behavior and if it's worth the effort.

Despite these problems, I still believe this change is important in the long run. What do you think?
Issue 1:
Instance a FlutterViewController with initWithEngine and push from native page,

after pop it the memory not released. How to release the engine?

- (void)handleShowAction {
if(_engine == nil) {
_engine = [[FlutterEngine alloc] initWithName:@"io.flutter" project:nil];
[_engine runWithEntrypoint:nil];
}

FlutterViewController *feedVC = [[FlutterViewController alloc] initWithEngine:_engine nibName:nil bundle:nil];
[(UINavigationController *)self.window.rootViewController pushViewController:feedVC animated:YES];
}

- (void)handleDismissAction {
[(UINavigationController *)self.window.rootViewController popViewControllerAnimated:YES];
_engine = nil;
}

[✓] Flutter (Channel faceu_dev_1.0.0, v1.0.1-pre.5, on Mac OS X 10.13.6 17G65,
locale zh-Hans-CN)
• Flutter version 1.0.1-pre.5 at
/Users/arnold/Documents/study/flutter/flutter
• Framework revision 0fd43583b8 (3 days ago), 2018-12-09 19:12:32 +0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME
to that location.
You may also want to add it to your PATH environment variable.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 2.0.0
• CocoaPods version 1.5.3

[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).

[!] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

Issue 2:
Initial experiments are showing that there's a significant bit of memory still in use after the activity that has a Flutter view has finished. E.g. we should be able to drop down to near 0 memory usage once there isn't any active Flutter views.

The methodology of experiment and results are detailed in an internal document that was shared with Flutter team.
Issue 1:
React version: 17.0.1

Steps To Reproduce

Open codesandbox with Mozilla Firefox

Select a user from users list

The value is not selected on first time, need to click second time on list to get event.target.value

Link to code example: https://codesandbox.io/s/stupefied-newton-lz134

The current behavior

The expected behavior

Issue 2:
I want to use a controlled <select multiple={true} /> component in React. In addition to the value I also want to keep the focused state of the select in the state. To do this, I update the state with setState in the onChange, onFocus and onBlur event handlers. Unfortunately there is an issue in Firefox: Firefox will only update the value on a change event after the select has gained focus. This means that a user has to click twice on the select element to change its value when it does not have focus. I would expect the select to gain focus and change the value at the same click.

I created a jsFiddle to demonstrate the prolem: React select multiple issue in Firefox demonstration

I only see this problem in Firefox and with select multiple. In IE and Chrome it is working as expected, and in Firefox it is working as expected for other form elements (simple select, checkbox, radio, text input, textarea).

My environment:

Firefox 46.0.1 under Win7 x64

React 15.1.0
Issue 1:
scipy.stats.kendalltau([], [])

fails with an maximum recursion depth exceeded RuntimeError. It should check for invalid input.

(via http://stackoverflow.com/questions/30841262/)

Issue 2:
I have encountered a RuntimeError when using the kendall tau correlation function on empty arrays. Obviously a correlation of empty data is meaningless, but I have code that uses randomization so therefore I may find in certain instances that "a" and "b" are sometimes empty (see below). I think it would be more elegant if stats.kendalltau would check for empty arrays (so I don't have to).

In [14]: import numpy as np
In [15]: from scipy import stats
In [16]: a = np.array([]) # in actual code 'a' is not statically defined like this
In [17]: b = np.array([]) # in actual code 'b' is not statically defined like this
In [18]: stats.kendalltau(a, b)
...
/mnt/hn03_disk001/HN03_HOMES/ctokheim/envs/python2.7.5/lib/python2.7/site-packages/scipy/stats/stats.pyc in mergesort(offs, length)
2858 def mergesort(offs, length):
2859 exchcnt = 0
-> 2860 if length == 1:
2861 return 0
2862 if length == 2:
RuntimeError: maximum recursion depth exceeded in cmp

I noticed when the lengths of the arrays are 1 then stats.kendalltau returns NaN's.

In [11]: a = np.array([1])
In [12]: b = np.array([1])
In [13]: stats.kendalltau(a, b)
Out[13]: (nan, nan)

Perhaps stats.kendalltau could return (nan, nan) in the case of zero-length? I'm using version 0.14.0 but I had the same problem on 0.12.0.

In [19]: import scipy as sp
In [20]: sp.__version__
Out[20]: '0.14.0'
Issue 1:
symfony/website-skeleton: 4.1.2.3

Description

When installing website-skeleton, the following error is displayed:

...
- Configuring symfony/phpunit-bridge (>=4.1): From github.com/symfony/recipes:master
- Configuring symfony/web-server-bundle (>=3.3): From github.com/symfony/recipes:master
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In ArrayNode.php line 311:
!!
!! Unrecognized option "validator" under "framework"
!!
!!
!!
Script @auto-scripts was called via post-install-cmd

The error is repeated on two different servers.

First server: composer 1.6.5 and PHP 7.2.7

Second server: composer 1.6.5 and PHP 7.1.19

How to reproduce

composer create-project symfony/website-skeleton .

Issue 2:
Composer version 1.6.5

linux debian 9.4

PHP 7.2.7-1stretch~1.gbpfd8e2e (cli)

run: composer create-project symfony/website-skeleton my-project

returns error

Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In ArrayNode.php line 311:
!!
!! Unrecognized option "validator" under "framework"
!!
!!
!!
Script @auto-scripts was called via post-install-cmd