WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This happens only in 6.0.0-canary.x releases. If you go back to 5.10.0 it works fine.

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

Expected Behavior

Should load scss in pages even if there are styles set in _error.js.

Current Behavior

It doesn't load scss in pages if therea are styles set in _error.js,

Steps to Reproduce (for bugs)

git clone https://github.com/PaulRBerg/next.js-broken-scss

cd next.js-broken-scss

npm install

npm run dev

Context

If you try to load other scss in any file from pages, it doesn't load and it defaults to the scss used in the custom _error.js file. If you comment that out, you lose the styles for the error page, but it works on the normal ones.

I spent one full day on this, and I think it's an important bug. It's really confusing, hard to track and reproduce, as you'd normally question the configuration of babel, next-sass, next-compose-plugins & so on.

Your Environment

Tech
Version

next
6.0.0-canary.4

node
9.4.0

OS
OSX Sierra 10.13.3

browser
Chrome 65.0.3325.181

Issue 2:
Hi. I'm kind of new to ReasonML and wanted to start it with Next.js. After trying to reproduce the with-reasonml example I've noticed that each time a link is clicked, the page is reloaded (like on a regular site with server generated content), which defeats the whole purpose of a single-page app.

Besides, docs for the example say:

An app with two pages which has a common Counter component. That Counter component maintain the counter inside its module. This is used primarily to illustrate that modules get initialized once and their state variables persist in runtime.

And hence I presume that it is not the expected behavior.

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

Expected Behavior

Links are followed SPA-style, without the full page refresh.

Current Behavior

Steps to Reproduce

$ yarn create next-app --example with-reasonml with-reasonml-app

$ cd with-reasonml-app

$ yarn build && yarn start

Your Environment

Tech
Version

next
5.0.0

node
9.2.0

OS
macOS 10.13.3

browser
any, basically

bs-platform
2.2.3

babel-plugin-bucklescript
0.3.1

reason-react
0.3.4
Issue 1:
Bug report

Describe the bug

We had a working worker file prior to the update to canary, afterwords we get a 'window is undefined' error and the functionality of our worker is never fired or fulfilled. We are already on the canary of next-workers which has a similar bug fix.

To Reproduce

add next-workers@canary to next.config.js

import a worker file

see that it loads correctly

upgrade to next@canary

visit the page that loads the worker and see window is undefined error.

Expected behavior

Expect the worker to load correctly

System information

OS: MacOS

Browser: Firefox and Chrome tested

The version of Next.js: Canary

Additional context

Didn't know whether to report here or next-plugins

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

Expected Behavior

Use new Next.js plugin for Preact.

Current Behavior

Manually change React for Preact.

Context

With the release of Next.js v5 the current example with Preact is outdated and can be simplified with the new next-preact plugin.
Issue 1:
by jonas@pfenniger.name:

It seems that the go syslog package emits syslogs in a different way than other programs
creating variations in the output format.
The problem is that there is some duplication in the output that's not necessary.

Here are outputs on different machines. The first lines comes from my go socketmaster
project ( https://github.com/pandastream/socketmaster ) and the second line is just
something else for comparison:

On Ubuntu Precise amd64 (ryslog 5.8.6-1ubuntu8.4 with default config):

2013-06-27T22:03:18.480508+00:00 i-5954eb33 2013-06-27T22:03:18Z i-5954eb33 socketmaster[15089]: Listening on tcp://:8080
2013-06-27T22:26:22.306421+00:00 i-5954eb33 nginx: - 10.198.69.201 - - [27/Jun/2013:22:26:22 +0000] "-" 400 0 "-" "-" "-"

On OSX 10.8.4:

27/06/2013 22:57:58.000 2013-06-27T22[-1]: 57:58+01:00 Big-Whoop.local socketmaster[4807]: Listening on tcp://:8080
27/06/2013 22:46:25.576 GitX[82631]: Loaded 5287 commits in 0.100447 seconds (52634.723275/sec)

Go 1.0 and 1.1 produce the same output.

After looking around a bit in the code it seems that:
* Go uses /dev/log or /var/run/syslog instead of the syscall that the other programs use
* Go writes a full network-formatted syslog line even for localhost
* It seems that the system logger then prepends it's own info which explains the duplication

So I guess my question is, would it be possible to change the go runtime to use the
syscall like everyone ?

Cheers,
Jonas

Issue 2:
by seth.bunce:

In the "An I/O Package" section there is a bug in the "Open"
function.

The function is currently:
func Open(name string, mode int, perm int) (file *File, err os.Error) {

However, it should be:
func Open(name string, mode int, perm uint32) (file *File, err os.Error) {

-Seth
Issue 1:
Bug report

Bug summary

When storing plots as pdf, the colorbar is at the wrong position, off by a small amount:

Code for reproduction

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

print(matplotlib.__version__)

rng = np.random.default_rng(0)
image = rng.normal(size=(40, 40))

# only happens at this exact figure size....
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(2.976338729763387, 1.4881693648816936), constrained_layout=True)
img1 = ax1.imshow(image)
img2 = ax2.imshow(image)
fig.colorbar(img1, orientation='horizontal', ax=ax1)
fig.colorbar(img2, orientation='horizontal', ax=ax2)
plt.savefig('colorbar.pdf')

Actual outcome

png converted from pdf output using pdftoppm -r 600 -png -singlefile colorbar.pdf colorbar:

Matplotlib version

Operating system: Manjaro Linux

Matplotlib version (import matplotlib; print(matplotlib.__version__)): 3.4.2

Matplotlib backend (print(matplotlib.get_backend())): pdf (since plot saved as pdf)

Python version: 3.9.5

Issue 2:
Hi all,

I could not find a similar issue so forgive me if its a duplicate. We are trying to get a couple of our tests suites to execute on mpl 1.x and 2.0 without having to duplicate the baseline images. The classic style helps a lot but there are still many small issues mainly related to text positioning. Is there a way I can force it to behave the same on mpl 1.x and 2.0?

A simple example demonstrating the problem:

import matplotlib.pyplot as plt
plt.style.use("classic")
plt.plot([1, 2, 3, 4])
plt.savefig("out.png")

The difference is subtle but enough to cause issues when testing - the text baseline (or center line I guess) is different for both. This was run for mpl 1.5.3 and mpl 2.0.0.
Issue 1:
Hi there!

I was trying to tweak the fliers (outliers) of a letter-value plot I am generating with seaborn (e.g. using properties of matplotlib for the traditional boxplot -- for instance: https://matplotlib.org/2.0.2/examples/statistics/boxplot_demo.html), but without success.

I have a huge plot with several boxenplots side-by-side and I wanted to change the face color of my outliers so they match the body of the boxenplot. Since they are pretty tucked together, sometimes it's hard to differentiate which outliers belong to which distribution.

Please, let me know if there is an obvious solution for this that I am not catching.

Thanks so much!

Issue 2:
I want to draw a barplot facetted for different cateogories in a data frame.

Each sub0barplot shows has as a y-axis another categorical variable. I expect the the y-axes to be shared across facets. If a specific y-category doesn't exist for a specific facet I expect seaborn to either throw an error or properly draw the bars only for those y-cateogories that are present and not draw any bars for those categories that are not present.

However, what actually happens is seaborn just fills the bars from index 0 to whatever the maxum length of unique y-categories exists in a specific facet. Hence this producses false and wrong plots, as bars appear in the wrong places.

Please consider either throwing an error or not drawing a bar when a y-category is not present for all facets.

Example

iris = sns.load_dataset('iris')
iris['flowerID'] = np.tile(np.arange(0,50), 3)

tmp = iris.loc[iris.flowerID<10].iloc[4:]
tmp['flowerID'] = [str(i) for i in tmp['flowerID']]
g = sns.FacetGrid(tmp, col="species", height=8)
g.map_dataframe(sns.barplot, y='flowerID', x='sepal_length')

Result is the following plot:

However for setosa flowers bars should only appear at the IDs 4-9. The seabor bar chart makes you belief the sepal lengths are assigned to IDs 1-5.
Issue 1:
Output of node_modules/.bin/electron --version: v3.0.0-beta.8

Operating System (Platform and Version): Windows 10 10.0.16299 Build 16299 / MacOS High Sierra 10.13.4

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

Expected Behavior

The Chromium PDF Viewer plugin should be loaded as a Browser Plugin in a Browser Window.

Actual behavior

The Chromium PDF Viewer plugin is not loaded in a Browser Window.

To Reproduce

Just open a BrowserWindow e.g.:

new BrowserWindow({ webPreferences: { plugins: true } });

Then type in Developer Console: window.clientInformation.plugins

Screenshots

Before (v.2.0.8):

After (v3.0.0-beta.8):

Additional Information

Note: options.webPreferences.plugins = true; is set on all BrowserWindow instances. So this should not be an issue, since it is working correctly in electron@2.0.8

Issue 2:
Mac OS 10.14

Electron v3.0.6

Expected Behavior

A frameless, transparent window with no shadow should have no borders.

Actual behavior

There is a border not being generated by my HTML file wrapping around the top of the browser window. It's small and white but quite obvious on certain backgrounds.

To Reproduce

$ git clone git@github.com:kkitay/terra.git
$ npm install
$ npm run dev
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4-SNAPSHOT

Operating System version: Mac

Java version: java11

Steps to reproduce this issue

config in xml like (other config keep the same as the previous version)

<dubbo:registry address="zookeeper://127.0.0.2:2181"/>

<dubbo:config-center address="zookeeper://127.0.0.1:2181"/>

start the provider application

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

Expected Result

The application can log exception and exit

Actual Result

it will hang the main thread in the method of ZookeeperRegistry.java

@Override
public void doRegister(URL url) {
try {
zkClient.create(toUrlPath(url), url.getParameter(DYNAMIC_KEY, true));
} catch (Throwable e) {
throw new RpcException("Failed to register " + url + " to zookeeper " + getUrl() + ", cause: " + e.getMessage(), e);
}
}

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

Java version: 1.8

Steps to reproduce this issue

泛化调用，consumer端把如下json转为map泛化调用provider。

{"flg":0,"name":"name1","age":1}

provider端接口参数类型如下：

public class User {
private String name;
private int age;
private boolean flg;
}

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

Expected Result

Provider端能正常反序列化解析出User对象。

PojoUtils的反序列化应该支持把数字类型转化为Boolean，fastjson、jackson等反序列都支持此特性。这样做可以更好支持跨语言调用，比如c没有bool型，只能用int表示bool。

Actual Result

实际Provider端无法序列化抛出异常

com.alibaba.dubbo.remoting.RemotingException: java.lang.RuntimeException: Failed to set pojo NameAuthApi property isDefault value 0(class java.lang.Integer), cause: java.lang.ClassCastException@3a4a8341 java.lang.RuntimeException: Failed to set pojo NameAuthApi property isDefault value 0(class java.lang.Integer), cause: java.lang.ClassCastException@3a4a8341
at com.alibaba.dubbo.common.utils.PojoUtils.realize0(PojoUtils.java:452)
at com.alibaba.dubbo.common.utils.PojoUtils.realize(PojoUtils.java:204)
at com.alibaba.dubbo.common.utils.PojoUtils.realize(PojoUtils.java:90)
at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:69)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke$sentryProxy(EchoFilter.java:38)
Issue 1:
Is it possible to merge a mesh with a line? My problem currently is that I need to draw thousands of 3D objects with outline. Since the wireframe draws triangles I'm handling the outline myself with a Line for each element. The problem is that this way I'm duplicating the elements on the scene which has a negative impact on the performance. If I could merge these elements after creating them there would be no impact on performance (after the initial load). Is it possible?

Thanks!

Issue 2:
R60: Seems that the wireframe is shown for the actual triangles that are rendered.

R59: Meshes with quad faces are rendered as quad faces in wireframe mode.

So I'm hoping this is an issue, not a changing in the behaviour of this wireframe parameter for materials. Since I want to draw cubes with their edges shown.

Test Code:

var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);
camera.position.z = 5;

var renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

var geometry = new THREE.CubeGeometry(1,1,1);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00,wireframe: true});
var cube = new THREE.Mesh(geometry, material);
scene.add(cube);

var render = function () {
requestAnimationFrame(render);

cube.rotation.x += 0.01;
cube.rotation.y += 0.01;

renderer.render(scene, camera);
};

render();
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible --version

ansible 2.0.0

Environment:

Ubuntu 15.04

Summary:

I have a role with tasks/main.yml like this:

include: packages.yml

include: config-cluster.yml

include: config.yml

include: service.yml

include: cluster.yml

include: rabbitmq.yml

include: queues.yml

tags: queues

meta: flush_handlers

When I use this role from my playbook only first include is executed.

hosts: serverdev

user: root

roles:

role.rabbitmq

Expected Results:

Run all includes

Actual Results:

This is the output of command "ansible-playbook serverdev.yml":

PLAY ***************************************************************************

TASK [setup] *******************************************************************

ok: [trr-rabbit-dev2]

ok: [trr-rabbit-dev1]

TASK [tierra.rabbitmq : include] ***********************************************

included: packages.yml for trr-rabbit-dev1

included: packages.yml for trr-rabbit-dev2

TASK [tierra.rabbitmq : Ensure Epel is installed] ******************************

ok: [trr-rabbit-dev2]

ok: [trr-rabbit-dev1]

TASK [tierra.rabbitmq : Ensure Erlang repo is installed] ***********************

ok: [trr-rabbit-dev2]

ok: [trr-rabbit-dev1]

TASK [tierra.rabbitmq : Ensure RabbitMQ RPM key is present] ********************

ok: [trr-rabbit-dev2]

ok: [trr-rabbit-dev1]

TASK [tierra.rabbitmq : Ensure RabbitMQ is installed] **************************

ok: [trr-rabbit-dev2]

ok: [trr-rabbit-dev1]

PLAY RECAP *********************************************************************

trr-rabbit-dev1 : ok=6 changed=0 unreachable=0 failed=0

trr-rabbit-dev2 : ok=6 changed=0 unreachable=0 failed=0

Issue 2:
There is no reason with_items can't use inventory scoped variables anymore.

It used to generate tasks per object but this is not the case, so it looks like it just needs to template variables using some better context.

Example:

with_items: $foos

where $foos is defined in groupvars/webservers
Issue 1:
Waypoint: Create a Form Element

When working on this challenge I was prompted to move onto the next challenge. Then I noticed that the text input box disappeared from the app.

So I looked back at what I input and noticed that I forgot to close the opening form tag

http://i.imgur.com/s5r5Zoq.png

I'm glad I didn't move along thinking I did it correctly, but also wondered how many others may have made the same mistake thinking they were correct.

Issue 2:
I tested this out in several lessons and in several different places.

Most of the time if you type </ it doesn't have any affect on the list of tasks down the left hand side.

If you put it at the end of the html editor then it breaks the testSuite sidebar.

Tested it on 15 randomly selected waypoint lessons and seems to affect all pages.
Issue 1:
Problem

When you have long lines in a JS file with single line comments at their end strange things happen. The issues happen to me twice today but only in specific cases (each time I was coding a concatenation of variables and strings) so I put examples that only need to be copy and paste.

Configuration

Atom version 0.165.0

Mac OS X version 10.10.2.

File in JS language and encoded in UTF-8.

Examples

1) Second line commented

$("#answer-" + (maxAnswers + 1)).html("<h1 class=\"help-title\">" + term.substring(0, wordPos) + "<span class=\"match\">" + term.substr(wordPos, this.help.val().length) + "</span>" + "test".substring(this.help.val().length) + "</h1>"); // Put the answer in the appropriate div.
$("#answer-" + (maxAnswers + 1)).html("<h1 class=\"help-title\">" + term.substring(0, wordPos) + "<span class=\"match\">" + term.substr(wordPos, this.help.val().length) + "</span>" + "test".substring(this.help.val().length) + "</h1>" ); // Put the answer in the appropriate div.

This code in Atom will put the second line in comment:

The second line has only one comment at its end but the entire looks commented. If you run this code the second line will be executed as it should.

2) No comment

$("#answer-" + (maxAnswers + 1)).html("<h1 class=\"help-title\">" + term.substring(0, wordPos) + "<span class=\"match\">" + term.substr(wordPos, this.help.val().length) + "</span>" + term.substring(wordPos + this.help.val().length) + "</h1>" + result); // Put the answer in the appropriate div

The comment is not correctly displayed:

Issue 2:
I opened a Python file with the following line (#963):

PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
Code Sample, a copy-pastable example if possible

https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.is_copy.html#pandas.DataFrame.is_copy

Problem description

It isn't clear what this property tells -- there's no documentation. When does it become true, and when does it become false?

Expected Output

Output of pd.show_versions()

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

Problem description

I find the behavior of SettingWithCopyWarning quite surprising, but I guess that's just what it is.

It would be great if you could document is_copy and how to use it, though.

Whenever any function returns a dataframe, it seems like it should make sure that is_copy is set to False (or None?) so the user doesn't get a warning if they change it - if you're returning a dataframe, it's unlikely that the user expects this to be a view, and you're not doing chained assignments.

The is_copy attribute has an empty docstring in the docs and I couldn't find any explanation of it on the website (via google). The only think that told me that overwriting this attribute is actually the right thing to do (again, which is pretty weird to me), was #6025 (comment)
Issue 1:
📝 Provide a description of the new feature

There is currently a feature for shortcuts to move between zones in a customized layout. I would like to see a feature that allows shortcut keys to SWITCH between customized layout rather than clicking Win+N and then selecting which zone I would want.

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

Currently, the shortcut to see all zone (Win+N) can get tiring and may not be the easiest way to switch between many customised zones. So maybe shortcuts through which I can automatically switch between many layouts instead of seeing a pop-up and select one of them.

A simpler shortcut without this reoccurring pop-up would be great!

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

Issue 2:
Environment

Windows build number: Microsoft Windows [version 10.0.18363.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Auto update

Steps to reproduce

Expected behavior

Receive the update notification, and by clicking on it, update PowerToys.

In PowerToys settings, when I search for updates, just tells me there is none.

Actual behavior

When I was still in version 0.18.0, I got a notification telling me I could update, but when I clicked on update, it launched my browser to the Release page of the PowerToys Github.

When I click on Search for updates in the settings of PowerToys, it opens my browser to the latest release on Github.

Important to note : as far as I recall, auto updating from 0.17 to 0.18 worked perfectly.

Sorry, I didn't think of taking screenshots when it happened.

Hope it still helps to fix this.
Issue 1:
I've come across a strange bug on 64-bit Windows where instanceof does not behave correctly in the browser frame when using it against an object whose prototype inherits from a function defined in a different module under node_modules.

Example

For example, let's say there are two functions B and D and these files:

test.js

d.js (contains the D function)

node_modules/b_module/b.js (contains the B function)

If D's prototype points to an instance of B and both B and D are required into test.js, then on Windows, if test.js uses instaneof to check whether D inherits from B, it will return false.

Code samples

I've gone ahead and created a sample project with the code here to see the bug in action:

https://github.com/jameslk/electron-instanceof-bug

Here's some screenshots showing the discrepency:

Running NodeJS:

Running ElectronJS on Windows (from the browser frame dev tools):

Running ElectronJS on Mac

This bug only appears to happen under Windows. I tried it on Mac and got the expected results.

I have not tested Linux yet.

Issue 2:
Minimal test case for this issue is here: https://github.com/KamilSzot/atom-shell-windows-bash-problem

Windows bash attempts to use slashes instead of backslashes and that probably interferes somehow with path calculations. Maybe there's some point there is a relative path calculated between directory where atom-shell lies and where the application lies?