WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Example .gitignore:

/components/
!/components/foo/
!/components/bar/

Ideally, only components/foo and components/bar would be visible in tree view when "Exclude VCS Ignored Paths" is enabled

Issue 2:
Let's say I add the following rules to my .gitignore to ignore everything in the root except the wp-content directory:

/*
!.gitignore
!wp-content/

So far this works correctly (only .gitignore and wp-content/ are shown in the tree view). Now I add the following rules to ignore everything in the wp-content directory, except the plugins and themes directories

wp-content/*
!wp-content/plugins/
!wp-content/themes/

Before Atom 0.116.0, the plugins and themes directories were shown correctly in the tree view, but now the wp-content directory disappears completely. My machine's git (v2.0.0) parses the .gitignore correctly and sees changes in plugins and themes.

I see that 0.116.0 moved to libgit2 0.21.0. If this is what's causing this behavior I'll open an issue with them.
Issue 1:
Hi all,

I tried to install scikit-learn on my Mac with Lion 10.7.2 (Python 2.7, numpy 1.6.1). At first I tried easy_install and got scikit-0.9 but cannot import due to some 'Don't forget to 'make' first' error and then I searched online, finding that this issue should be fixed in the newer version in github. So I checked out the code and build from source using the following two commands:

python setup.py build

sudo python setup.py install

Now I've got scikit-0.10 in /Library/Python/2.7/site-packages. However, when I tried to run the tests, similar error shows up:

Traceback (most recent call last):

File "", line 1, in

File "sklearn/init.py", line 30, in

""" % e)

ImportError: No module named _check_build

It seems that the scikit-learn has not been built correctly.

If you have installed the scikit-learn from source, please do not forget

to build the package before using it: run python setup.py install or

make in the source directory.

If you have used an installer, please check that it is suited for your

Python version, your operating system and your platform.

I didn't see errors in my build and build is finished with 'running scons'. I don't know where I am doing wrong. If you need to know more, please let me know. Any help would be very appreciated. Thanks!

Issue 2:
Hi all,

I tried to install scikit-learn on my Mac with Lion 10.7.2 (Python 2.7, numpy 1.6.1). At first I tried easy_install and got scikit-0.9 but cannot import due to some 'Don't forget to 'make' first' error and then I searched online, finding that this issue should be fixed in the newer version in github. So I checked out the code and build from source using the following two commands:

python setup.py build

sudo python setup.py install

Now I've got scikit-0.10 in /Library/Python/2.7/site-packages. However, when I tried to run the tests, similar error shows up:

Traceback (most recent call last):

File "", line 1, in

File "sklearn/init.py", line 30, in

""" % e)

ImportError: No module named _check_build

It seems that the scikit-learn has not been built correctly.

If you have installed the scikit-learn from source, please do not forget

to build the package before using it: run python setup.py install or

make in the source directory.

If you have used an installer, please check that it is suited for your

Python version, your operating system and your platform.

I didn't see errors in my build and build is finished with 'running scons'. I don't know where I am doing wrong. If you need to know more, please let me know. Any help would be very appreciated. Thanks!
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Normal inputs have 32px in height. disableUnderline removes the 2 px at the bottom, resulting in a component of 30px height. This has a few issues:

A disableUnderline component doesn't align well alongside a row of underlined components

30px breaks vertical rhythm, as it's not a multiple of the theme unit.

I'm willing to submit a PR to add the missing 2px if this change is ok.

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Just use disableUnderline components alongside normal underlined components.

https://codesandbox.io/s/l9xryo62x7

Context

I'm trying to use a <Select disableUnderline> alongside a list of underlined components and they don't align.

Your Environment

Tech
Version

Material-UI
v1-beta11

React
15

browser
Chrome latest

etc

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

Expected Behavior

Use a label tag to check a Checkbox using a htmlFor prop.

Current Behavior

Id isn't rendered in Checkbox, so when I click in a label the checkbox don't get marked.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/v1m6jxwmo7

Your Environment

Tech
Version

Material-UI
1.0.0-beta.29

React
16

browser
Chrome 16
Issue 1:
From @prencher on December 3, 2015 20:0

When formatting the following snippet:

ReactDOM.render(
<Router history={createHistory() }>
<Route path='/' component={App}>
<IndexRoute component={SplashView} />
<Route path='home' component={HomeView} />
<Route path='chat' component={ChatView} />
<Route path='/chat/:contact' component={ChatView} />
</Route>
</Router>,
document.getElementById('app')
);

The closing tags are not properly unindented, and outputs the following:

ReactDOM.render(
<Router history={createHistory() }>
<Route path='/' component={App}>
<IndexRoute component={SplashView} />
<Route path='home' component={HomeView} />
<Route path='chat' component={ChatView} />
<Route path='/chat/:contact' component={ChatView} />
</Route>
</Router>,
document.getElementById('app')
);

Copied from original issue: microsoft/vscode#985

Issue 2:
Right now formatting is supported or not right.

As you see below it just removes all indentation from JSX, i would prefer that we leave jsx code out of formatting if can't be supported right now, this makes formatting completely useless in TSX files.

If i understand this correctly then typescript has formatting capability and which is being used by atom-typescript in the sample below.

Original Code

Formatted Code
Issue 1:
Challenge Bonfire: Drop it has an issue.

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

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

My code:

function drop(arr, func) {
// Drop them elements.
arr = arr.filter(func);

return arr;}

drop([1, 2, 3], function(n) {return n < 3; });

The last test case has a function showing n>2, however, the result set has a 2 in it.

Issue 2:
Link: http://www.freecodecamp.com/challenges/bonfire-drop-it

Here is the 5th test case:

drop([1, 2, 3, 9, 2], function(n) {return n > 2}) should return [3, 9, 2].

From the description alone you can see what is wrong. It should return [3, 9], it cannot include "2" in the result array if the function is n > 2.

If code you write is correct and actually returns [3, 9], you will still not pass the test.

If code you write has hardcoded the wrong answer returned quoted in the test case, then the test will pass. So it is expecting the wrong answer.
Issue 1:
If you have a dataframe with a multiindex, and use groupby and then shift, using the frequency argument, the shifting fails, resulting in an empty result. For example:

import numpy as np
import pandas as pd

dates1 = pd.date_range('2015-10-01', '2015-10-03')
df1 = pd.DataFrame(dict(grp='A', blah=[1,2,3]), index=dates1) .set_index('grp', append=True)

dates2 = pd.date_range('2015-10-02', '2015-10-04')
df2 = pd.DataFrame(dict(grp='B', blah=[10,np.nan,30]), index=dates2) .set_index('grp', append=True)

df = pd.concat([df1, df2])

In [ ]: df
Out[ ]:
blah
grp
2015-10-01 A 1
2015-10-02 A 2
2015-10-03 A 3
2015-10-02 B 10
2015-10-03 B NaN
2015-10-04 B 30

# This works:
In [ ]: df.groupby(level='grp').shift(1)
Out[ ]:
blah
grp
2015-10-01 A NaN
2015-10-02 A 1
2015-10-03 A 2
2015-10-02 B NaN
2015-10-03 B 10
2015-10-04 B NaN

# This fails:
In [ ]: df.groupby(level='grp').shift(1, freq='D')
Out[ ]:
Empty DataFrame
Columns: []
Index: []

I'm not sure why, however using 'grp' as a column, it works fine:

In [ ]: df.reset_index('grp').groupby('grp').shift(1, freq='D')
Out[ ]:
blah
grp
A 2015-10-02 1
2015-10-03 2
2015-10-04 3
B 2015-10-03 10
2015-10-04 NaN
2015-10-05 30

Issue 2:
#10063 doesn't appear to have been completely fixed. While the exact example I gave now works (the resample), what if instead of a resample I had wanted to do a tshift? I would have wanted to be able to do df.groupby(level='symbol').tshift(1, 'D'), which still returns an empty DataFrame. Here, there's no aggregating in the time dimension so the TimeGrouper syntax that was the proposed solution wouldn't make sense.

I also don't understand why the df.groupby([pd.Grouper(level='symbol'), pd.Grouper(level='dt', freq='M')]).mean() syntax is necessary instead of simply being able to do df.groupby(level='symbol').resample('M', how='mean')? The latter seems like much better design.

df = DataFrame({'A' : 1 },index=pd.MultiIndex.from_product([list('ab'),date_range('20130101',periods=80)],names=['one','two']))
df.groupby([pd.Grouper(level='one'),pd.Grouper(level='two',freq='M')]).tshift(-1,'M')
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Issue Details

Electron Version:

"electron": "^4.2.12",

Operating System:

Windows 10 home Chinese

Last Known Working Electron version:

6.0.0 +

Expected Behavior

Reduce the window to the minimum and click to maximize. In the Restore window, the size of the window is the same as the original size, and the window cannot be reduced

Actual Behavior

Reduce the window to the minimum, and click to maximize it. In the Restore window, the window size is larger than the original size, and the window can be reduced

To Reproduce

Reduce the vscode editor to the smallest window, click to maximize and restore the window. The size of the window is larger than the original size, and the window can be reduced

Screenshots

Additional Information

In the borderless windows of windows computers, the minimum window width is 800. Drag it to the place where the minimum window cannot be dragged, that is, the window width is 800. Click our customized maximize button. Does the maximize button change the restore button? Click the restore button. It is found that the window has not been restored. The window width may be 814 instead of 800. You can still drag it to the left. Wechat pin can do it, vscode can't.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Issue Details

Electron Version:

7.1.2 - 9.0.0-beta.3 (and presumably later versions until this bug is fixed)

Operating System:

Windows 10 pro (1909)

Last Known Working Electron version:

7.1.1

Preconditions

Window is frameless

Window has minimum size

Window size is minimum size

Expected behavior

Window is maximized

Window is unmaximized

Window has the same size as before the maximization

Actual Behavior

Window is maximized

Window is unmaximized

Window is slightly higher and wider than before the maximization

To Reproduce

git clone -b frameless-minsize-maximize-unmaximize-bug https://github.com/christian-judt/electron-quick-start.git
cd electron-quick-start
npm install
npm start

Additional Information

This seems to be a reappearing problem. (for the last occurence see #13533)

A similar problem with "minimize-restore" instead of "maximize-unmaximize" has appeared in Electron Version 7.1.10. (see #22393)

Other maybe related issues

[Windows] Frameless window size increase on a maximize, unmaximize sequence #2498

Windows: Restore (after minimize) to wrong window size #7951

maximize, minimize, restore incorrect size #15702

Electron 6 - restore after minimize has wrong window size #19816
Issue 1:
For https://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html :

Anchor
Lines

method.extend
740, 741

assoc_type.IntoIter
731, 734, 737

assoc_type.Item
730, 733, 736

method.into_iter
732, 735, 738

examples
85, 218, 229, 243, 273, 296, 315, 330, 354, 382, 410, 439, 476, 509, 528, 549, 585, 608, 631, 654, 678, 708

Issue 2:
When two items in the same documentation page have the same name, rustdoc generates duplicate HTML id attributes for them. This makes the HTML invalid, but more importantly, it makes it impossible to link to anything but the one that shows up first in the source.

For example, Vec's page contains multiple impls of IntoIterator, and therefore multiple HTML elements that have an id attribute of assoc_type.Item, assoc_type.IntoIter, and method.into_iter.

This is not limited to impls of the same trait, as different traits (and inherent impls) could define methods or associated types with the same name.
Issue 1:
Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0

Any other software?
Powershell 6.2.1 or Powershell 5.1
R 3.6.1

Steps to reproduce

Open a R session then type any expression and evaluate it. Then the up arrow should retrieve older commands in the history.

Expected behavior

The up arrow should retrieve older commands in the history.

Actual behavior

The up arrow does nothing, even if the R history is in an expected state as showed by the history() function.

This bug occurs only in "Windows based" terminal, such as powershell and cmd, executed by Windows Terminal. This bug does not exist if R is run inside the old terminal. This bug does not exist either if R is running inside a ssh session inside powershell.

Windows Terminal -> Powershell -> R -> Bug

Windows Terminal -> CMD-> R -> Bug

Windows Terminal -> WSL Ubuntu 18.04 -> R -> Bug

Old terminal -> Powershell -> R -> No bug

Old terminal -> CMD -> R -> No bug

Windows Terminal -> Powershell -> SSH into a linux host -> R -> No bug

Issue 2:
Environment

Windows build number:[Version 10.0.18362.295]
Windows Terminal version (if applicable): 0.4.2382.0

PowerToys: 0.11.0

Steps to reproduce

Hold down the SHIFT key and drag the Windows Terminal window.

Expected behavior

The FancyZone function in PowerToys should react and resize&put the window to where I want it to be, just like other windows like explorer.exe and firefox.exe.

Actual behavior

The FancyZone does not react. It just seems to be that I am dragging the window without holding down SHIFT key.
Issue 1:
I am trying to use Atom to edit contents in Polish language. The default and preferred keyboard bindings, so called "programmers keyboard", uses AltGr (right Alt) to enter Polish letters: ą, ć, ę, ł, ń, ó, ś, ż, ź.

The problem is that the Atom editor (or perhaps MS Windows 7 Home Pro) represents AltGr-o, which is used to enter 'ó' character, as Ctrl-Alt-o... which keybinding is taken by Atom as application:add-project-folder. This makes it hard to use Atom for content in Polish language...

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
Certain svg attributes are camelcased, such as viewBox. However, [viewBox] would be recognized by browsers as [viewbox] since it is not a standard SVG attribute, and so the important camelcasing information is lost.

There should be a convention in Angular 2 for supporting bindings to SVG attributes.

Issue 2:
I'm submitting a ... (check one with "x")

[ X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Note: Related to #13614 and #13853

Although arguably a duplicate, I filed this separate because it could be easily fixed by changing the signature to unblock unit tests separate from the underlying issue. Also, I believe this shows that the unifying issue is ES6 implementation.

Current behavior

ES6 distributions will result in certain syntax of anonymous functions to not have a prototype. The JIT compiler here uses a signature for useFactory that fails all unit tests here.

Expected behavior

First, to unblock ES6 unit tests. Second, to handle factories without prototypes.

Minimal reproduction of the problem with instructions

Plunk here

Shows failure in es6. Change everything to es5 distributions and it works.

Angular version: 4.0.0-rc.1

Browser: [Chrome@latest, edge]

Language: [ES6]
Issue 1:
I think it would be helpful UX wise to see an incremental hot-reload build version bottom right of the app when you are hot-reloading.

Many times you are hot-reloading non-ui stuff and looking at your device and you dont quite sure if the app hot-reloaded and have to look back at the IDE to see if the hot-reload message is updated in the console

Issue 2:
Hello there

I wanted to know if you're interested into a barcode scanner plugin for flutter. I'm working on one and as it will use most of the camera plugin will be nice to be able either to merge it a make it an official plugin or have a way to extends the camera plugin from an external plugin instead of duplicate everything ^^

What do you think ?
Issue 1:
Problem Description

I faced an issue when upgrading my elasticsearch 2.3.3 to elasticsearch 5.1.1 by upgrading from apt repository. When elasticsearch 5.1.1 was upgraded and I tried to start it, Elasticsearch did not start but in the STDOUT it never gave a failure. Instead, in STDOUT it gave an OK message wwhich signifies that elasticsearch has started succesfully.

Problem Issue Identification

After debugging it, I found the issue causing it by traversing through the /var/log/elasticsearch/elasticsearch.log file. The issue was caused by using elasticsearch-head plugin which was installed in ES-2.3.3 but as it is not supported in ES-5.1.1, elasticsearch failed to start.

Actual Behaviour

As an end-user I think we should not get an OK message if elasticsearch fails to start and it should be mentioned in the Installation of Elasticsearch documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html).

Note: This issue will occur for every plugins which were earlier supported prior to ES-5.0.x version.

Steps To Reproduce:

Install any ES version prior to ES-5.x.x

Install Elasticsearch-head in previous ES version (Validate its installation as it will be listed under $ES_HOME/plugins directory)

Upgrade ES to ES-5.1.1

Add ES as a service

Run ES as a service. You will get following STDOUT console on command line:-

root@ubuntu:/home/yuvraj# sudo service elasticsearch start

Starting Elasticsearch Server [2016-12-11T12:07:50,609][WARN ][o.e.c.l.LogConfigurator ] ignoring unsupported logging configuration file [/etc/elasticsearch/logging.yml], logging is configured via [/etc/elasticsearch/log4j2.properties]

[ OK ]

Please find required details as mentioned below -

Elasticsearch version: Elasticsearch-5.1.1

Plugins installed: elasticsearch-head

JVM version: Oracle java version "1.8.0_91"

OS version: Ubuntu 14.04

Provide logs (if relevant): elasticsearch-error-captured.txt

Issue 2:
In the current implementation of zen discovery the cluster state broadcasting by the master does not scale too well as every change in the cluster state results in the cluster state being sent to every single node by the master.

This can lead to quite some traffic, in an cluster with 500 nodes and 15000 shards, even when the cluster state by itself has only 1MB, the master node will sent a total of 500MB per cluster state update.

So it should be possible to only send a diff of the changes to the nodes instead of the full cluster state. In case the nodes recognize that they missed an update, they could query the master node to resend the full cluster state to them.

Another possibility would be a tiered distribution of the state, where the master node does not directly send the updates to every single node, but through other nodes which forward the state to the other nodes in the cluster. A gossipping protocol could here be used.

If the clusterstate does not need to be distributed in realtime, one could also throttle the propagation of the state, so that when changes come in rapid succession, the changes can be merged before the state has been sent out to every node.

Any ideas?
Issue 1:
http://flask.pocoo.org/docs/flask-docs.pdf and http://flask.pocoo.org/docs/flask-docs.zip return 404 errors.

Issue 2:
Hi, I was following the tutorial on Flask at this.

And I tried to return json data so I use jsonify

I found out that jsonify use dict() to convert params into a dict. But this will remove items with duplicate key.

In my case, I querried the data using this query

cur = g.db.execute('SELECT title, text from entries order by id desc')

The data was:

[(u'Nope', u'hi, this is anoooother things'), (u'Nope', u'This is another'), (u'Hi', u'This is a sample entry')]

So the jsonify just return:

{ "Hi": "This is a sample entry", "Nope": "This is another" }

The code work correctly, but I don't know if this is intended or not?
Issue 1:
Date.toLocaleString always returns in the same format, no matter what options are given to it. I'm sure this isn't intentional, but it bugs me a bit, and i couldn't find another issue on the subject

Issue 2:
As seen in #1952 / #1636 ICU needs to be added in Deno build.

Switching this flag to true maybe: https://github.com/denoland/deno/blob/master/.gn#L50 ?

ref: https://v8.dev/docs/i18n
Issue 1:
Hi, I am trying to install packages for Atom but almost every single time NPM throws an error. Look below. Thank you very much.

Installing “autocomplete-clang@0.6.0” failed.Hide output…

npm http GET https://registry.npmjs.org/atom-space-pen-views

npm http GET https://registry.npmjs.org/underscore-plus

npm ERR! not found: git

npm ERR!

npm ERR! Failed using git.

npm ERR! This is most likely not a problem with npm itself.

npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.2.9200

npm ERR! command "c:\Users\Rafi\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "c:\Users\Rafi\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\npm-cli.js" "--globalconfig" "c:\Users\Rafi\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager.apmrc" "--userconfig" "c:\Users\Rafi.atom.apmrc" "install" "C:\Users\Rafi\AppData\Local\Temp\d-115015-992-1xp8dy5\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"

npm ERR! cwd C:\Users\Rafi\AppData\Local\Temp\apm-install-dir-115015-992-16a707u

npm ERR! node -v v0.10.35

npm ERR! npm -v 1.4.4

npm ERR! code ENOGIT

npm http 304 https://registry.npmjs.org/atom-space-pen-views

npm http 304 https://registry.npmjs.org/underscore-plus

npm

Issue 2:
Many beginners to apm are flummoxed when they get errors because git is not available. See https://discuss.atom.io/t/sync-settings-wont-install/13701 as one example.

APM should check and see if git works and install git if it doesn't. Git is a real dependency and should be treated as such.
Issue 1:
/_cat/indices currently allows returning an explicit set of headers in its output, such as health, status, index name, shard counts, etc. I'd love to see this endpoint support an additional header parameter: ?h=creation_date.

This would be useful for enumerating indices by age.

Issue 2:
Would be nice to provide an additional option for admins to return index.creation_date (from the index metadata) for the indices that are returned from the _cat/indices api.