WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The orient method in countplot does not work. Pass a list like:

['Rose', 'Teal', 'Teal', 'Orange', 'Orange', 'Orange'] and try to adjust the orientation to see the issue.

Issue 2:
Hi,

The code in IPython notebook:

%matplotlib inline
import pandas as pd
import seaborn as sns
df = pd.DataFrame([[2], [2], [1], [1], [1], [3]])
sns.countplot(x=0, data=df, orient='v')
sns.countplot(x=0, data=df, orient='h')

produces exactly the same output plots. This means that the option for orienting is not working.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

When using the Chip element, behavior differs in browser. While in Chrome it has width calculated based on label and avatar, in MS Edge the element is 100% width. I did a CodeSandbox snippet to reproduce it.

Expected Behavior

The Chip should be as narrow as its content, like it does in Chrome

Current Behavior

On MS Edge (versions: Microsoft Edge 41.16299.15.0; Microsoft EdgeHTML 16.16299) the Chip element is full width

Steps to Reproduce (for bugs)

CodeSandbox snippet

Add a Chip element to App

The rendering differs in Chrome and Edge

Wrapping Chip with inline-flex container (e.g. Badge or custom div) fixes an issue.

Context

I'm rendering a statistic page, where Avatar shows ID and label displays aggregation data. I show each chip on new line (in a narrow Grid element) so it's not a big problem, but in this case Avatar is not left-most.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.24

React
16.2

browser
Edge

Microsoft Edge
41.16299.15.0

Microsoft EdgeHTML
16.16299

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

Expected Behavior

When passing a function as the theme prop to MuiThemeProvider the first parameter of that function is outerTheme. outerTheme should contain the actual theme properties.

Current Behavior

outerTheme is null. Trying to access any property gives an error (of course): Cannot read property 'whatever' of null.

Steps to Reproduce (for bugs)

Even the official example from the docs doesn't work:

function theme(outerTheme) {
return createMuiTheme({
typography: {
fontFamily:
'-apple-system,system-ui,BlinkMacSystemFont,' +
'"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif',
body1: {
fontWeight: outerTheme.typography.fontWeightMedium, // <-- Cannot read property 'typography' of null
},
button: {
fontStyle: 'italic',
},
},
});
}

Check it out on CodeSandbox.

Context

I wanted to overwrite the line height of body2 with the line height of body1

Your Environment

Tech
Version

Material-UI
1.0.0-beta.23

React
16.2.0

browser
Chrome 63.0.3239.84
Issue 1:
console.log(process.argv)

> node index.js --help
[ '/usr/local/bin/node',
'/tmp/index.js',
'--help' ]

> babel-node index.js --help
Usage: node [options] [ -e script | script.js ] [arguments]
node debug script.js [arguments]

Options:
-v, --version print Node.js version
-e, --eval script evaluate script
-p, --print evaluate script and print result
-i, --interactive always enter the REPL even if stdin
does not appear to be a terminal
-r, --require module to preload (option can be repeated)
--no-deprecation silence deprecation warnings
--throw-deprecation throw an exception anytime a deprecated function is used
--trace-deprecation show stack traces on deprecations
--trace-sync-io show stack trace when use of sync IO
is detected after the first tick
--track-heap-objects track heap object allocations for heap snapshots
--v8-options print v8 command line options
--tls-cipher-list=val use an alternative default TLS cipher list
--icu-data-dir=dir set ICU data load path to dir
(overrides NODE_ICU_DATA)

Environment variables:
NODE_PATH ':'-separated list of directories
prefixed to the module search path.
NODE_DISABLE_COLORS set to 1 to disable colors in the REPL
NODE_ICU_DATA data path for ICU (Intl object) data
NODE_REPL_HISTORY path to the persistent REPL history file

Documentation can be found at https://nodejs.org/

> babel-node index.js -- --help
[ 'node', '/tmp/index.js', '--', '--help' ]

It is annoying because I cannot put those -- in the shebang (limited to 1 command and 1 arg -- /usr/bin/env babel-node for portability), so all my CLIs are screwed up.

Issue 2:
Bug Report

Current Behavior

Throws this exception:

TypeError: undefined: Duplicate declaration "i"
1 |
2 | for (let i of 'foo') {
> 3 | let i = 'a';
| ^
4 | console.log(i);
5 | }
6 |

Input Code

for (let i of 'foo') {
let i = 'a';
console.log(i);
}

Expected behavior/code

Should prints 'a' three times instead of throws this exception.

This is the behaviour in Node and Safari, for example.

Babel Configuration (CLI command)

const output = require('@babel/core').transform(`
for (let i of 'foo') {
let i = 'a';
console.log(i);
}
`, {
presets: ['@babel/preset-env']
});

Environment

Babel version(s): lastest

Node/npm version: Node 9

OS: macOS High Sierra

Monorepo: yes

How you are using Babel: cli
Issue 1:
Version 1.8.9 succeeds but when updating to 1.8.10 I get an error:

ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk

The bundle js is not output.

My build output from deploying to Heroku (this error is on line 514):

https://gist.github.com/bdefore/838bbe5be65dcb114014

Issue 2:
Bug report

What is the current behavior?

Webpack randomly fails to bunle which causes Uncaught SyntaxError: Unexpected token '}' error message and broken code:

It seems like it adds the following segment twice, which causes the problem:

/******/ })()
;

If the current behavior is a bug, please provide the steps to reproduce.

The issue occurs randomly, the same codebase might fail without any code change.

cross-env NODE_ENV=production webpack --config ./webpack.config.js is being used here.

What is the expected behavior?

The build shouldn't fail randomly, the last 2 duplicate lines shouldn't be added at the end of the file.

Other relevant information:

webpack version: 5.72.0 (this started happening after we've upgraded Webpack from v4 to v5)

Node.js version: 14.0

Operating System: Ubuntu 20.04

Additional tools: gulp, tailwind v1.2, react v16.8
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.6

Operating System version: linux

Java version: 1.8

Steps to reproduce this issue

ServiceNameMapping publish config to config conter,it make config manger being confusion,how can i do to avoid this situation

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

Operating System version: any

Java version: any

Steps to reproduce this issue

no steps

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

Expected Result

private void doExportUrlsFor1Protocol(ProtocolConfig protocolConfig, List<URL> registryURLs) {
......
for (MethodConfig method : methods) {
.....
List<ArgumentConfig> arguments = method.getArguments();
for (ArgumentConfig argument : arguments) {
.....
Method[] methods = interfaceClass.getMethods();
for (int i = 0; i < methods.length; i++) {
String methodName = methods[i].getName();
if (methodName.equals(method.getName())) {
Class<?>[] argtypes = methods[i].getParameterTypes();
// one callback in the method
1. if (argument.getIndex() != -1){
......
}else{
if (argclazz.getName().equals(argument.getType())) {
2. if (argument.getIndex() != -1 && argument.getIndex() != j){

}
}
}
}
}
}

}

上面第二个标记处的判断是否多余呢？因为此时 argument.getIndex() == -1，这个判断是肯定不会执行的，并且此时已经执行了appendParameters（map,argument）

What do you expected from the above steps？

remove above unnecessary code

Actual Result

What actually happens?

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

Just put your stack trace here!
Issue 1:
In order to make orchestration simpler and efficient, it is necesary to consider that we can get changed data from DataChangedEvent instead of getting them directly from registry in Orchestration module.

Issue 2:
In the process of investigating #24053, I found that there are still many functions that are not supported by the parser engine, and I think we can improve it gradually.

Here are some references:

MySQL

Document: https://dev.mysql.com/doc/refman/8.0/en/functions.html

PR: #24396

Tasks

REPEAT https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_repeat

EXTRACT https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_extract

CAST https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_cast

Optimize MySQLStatementSQLVisitor#visitCastFunction
Issue 1:
Summary of the new feature/enhancement

If you decide to not use the "Relaunch as administrator" when administrative privileges are needed but instead need decide to use the alternative method "Always run as administrator", you need to click yes on every system boot up to grant permissions for powertoys admin privileges. On every single Windows boot up.

Proposed technical implementation details (optional)

Is it technically possible to create a kind of silent mode for granting the admin privileges? A kind of one-time approval to start with admin privileges from now on, so that there isn't an admin prompt on every boot?

Issue 2:
Environment

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

Steps to reproduce

Freshly install PowerToys

Make sure the checkbox "Automatically start PowerToys at logon" is selected

Finish installing

Open PowerToys settings

Expected behavior

"Run at startup" should be activated in General settings

Actual behavior

"Run at startup" is not activated.

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

Bug.

What is the current behavior?

React 15.6.0 generated input DOES NOT fire onchange event when programmatically filled. (DEMO)

What is the expected behavior?

React 15.5.4 generated input DOES fire onchange event when programmatically filled. (DEMO)

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

The reported bug has been tested in Chrome 61.0.3163.100 and Safari 11.0 on macOS 10.13. Both experience the bug.

The bug was not present in React 15.5.4.

My core goal is to create a browser bookmarklet that auto-fills a form within my React app.

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

bug

What is the current behavior?

The dispatchEvent method has no effect on input/textarea elements.

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/).

v. 15.5.4: https://jsfiddle.net/c8tp5mqf/ (working)

v. 15.6.1: https://jsfiddle.net/6bv1581z/ (not working)

What is the expected behavior?

The dispatchEvent method results in an event being handled.

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

I'm using the latest Chrome browser. This has worked in 15.5.x, stopped working in 15.6.0 and is still not working in 15.6.1.

Usecase for this: some old tests that I'd happily remove, but have to support for now.
Issue 1:
Hello,

I am using sns.lineplot for time-series data. I realize that lineplot automatically fills in missing data and I want to avoid this. Is there a way of avoiding this in sns.lineplot.

I attach some screenshots that briefly explain my issue.

Thanks,

Issue 2:
I've tried to visualize my data with Seaborn line plot. My series had lots of Nans and a generated line plot was quite misleading.

using code below I managed to solve this issue:

fig, ax = plt.subplots(figsize=(10, 5))

plot = sns.lineplot(
ax=ax
, data=df, x="Date", y="Data"
, hue=df["Data"].isna().cumsum()
, palette=["blue"]*sum(df["Data"].isna())
, legend=False, markers=True
)

ax.set_xticklabels([])
plt.show()

However - it would be very nice to add a parameter to line plot which would make it easy to specify the desired way to treat Nones.

Thank you for your attention.
Issue 1:
Hi there,

I'm looking for atrous (dilated) transposed convolutions, but did not find much.

There is a brief section in the tf.nn.atrous_conv2d doc

Used in conjunction with bilinear interpolation, it offers an alternative to conv2d_transpose in dense prediction tasks such as semantic image segmentation, optical flow computation, or depth estimation.

But it is not quite clear how to proceed from there, it looks like tensorflow does not implement the transposed atrous convolution, yet?

Issue 2:
Can we have a atrous_conv2d_transpose() function, just like the existing conv2d_transpose() function? Or is there some simple way to get what I am looking for using other existing functions?

I had a look at the conv2d_transpose() code, and it seems shouldn't be too difficult to adapt it to get a atrous_conv2d_transpose().

Thanks.
Issue 1:
When using the class form-stacked on a form it gets pushed 20 pixels to the left. When this is done it is not possible to put 2 span8's next to each other without breaking the lay-out.

A work-a-round is to change form-stacked padding left to 0; Doing this will brake the div.actions because it has a negative left-margin of 20px and padding-left 20px to align with the inputs and labels above when there is no modification made in form-stacked.

When you zero out the margin and padding the first button positions to the most left position in the actions div.

Is there a better work-a-round to use spans for the divs inside a form with the class of form-stacked?

Issue 2:
Any text found in a .form-horizontal .controls element is a few pixels above center. Adding

.form-horizontal .controls{ line-height:28px; }

fixes the problem.

My apologies if this is a duplicate. I doubt I'm the first to notice this, but I couldn't find an existing issue.
Issue 1:
Taking a look at https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B14F_FSUCc01emlGOWRnRkpMOVk/GoodTransition_QuickDo-v4.webm

On iOS build of gallery, it looks like image is popping out and drawing above the app bar and then animating in. When animated back to the homescreen of Shrine, the image animates over the app bar before popping back down.

For a slow-mo video of the behavior, see https://drive.google.com/open?id=0B-w2rH1ryIJdRW5VUHgwMVNyM1E

(protip, watch the slow-mo video at .5 speed to really see the effect in action)

Issue 2:
Open Gallery, open pesto, scroll up enough to minimize the app bar. Tap a recipe.

Notice how the app bar immediately disappears, before the recipe begins its motion up. This is a jarring effect that the user could notice.

We could try something more subtle, like animating or fading the app bar away as the recipe opens?
Issue 1:
Bug report

Bug summary

When using both title and suptitle with constrained_layout, titles overlap.

Code for reproduction

import matplotlib.pyplot as plt
plt.rcParams = plt.rcParamsDefault
plt.rcParams['figure.constrained_layout.use'] = True
plt.title('Test with b')
plt.suptitle('Test with p')

Other possibility is the exact demonstration that is used to work by @jklymak here, hence the “Regression?” tag in the title. I don’t have time to bisect currently though…

Actual outcome

test.pdf

Expected outcome

Titles are spaced correctly.

Matplotlib version

Operating system: ArchLinux

Matplotlib version: 3.1rc2

Matplotlib backend (print(matplotlib.get_backend())): multiple

Python version: 3.7.3

Python and matplotlib are distro packages.

Issue 2:
I want to add a title to a matplotlib figure. Using the newer constrained_layout the title is nicely aligned with the axis.

Unfortunately under certain circumstances the layout still overlaps as shown in the following examples in the Jupyter notebook (with different backends):

%matplotlib notebook
import numpy as np
from matplotlib import pyplot as plt

# example with low height
fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(6, 3), constrained_layout=True)
axes[0,0].plot([0,1,2], label='test')
axes[1,0].plot([0,1,2], label='test 2')
fig.suptitle('a longer title')

This results in

But now increasing the plot height using the modified example

[...]
fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(6, 12), constrained_layout=True)
[...]

shows the following overlapping title:

Is there anything that can be done here to find out why this is not taking into account the larger plot dimensions?

Originally posted by @asteppke in #5355 (comment)
Issue 1:
As it's clear for us that Deno caches the deps in a cache folder (as I have in my GNU/Linux box), it'd be much nicer to have the control over deleting a specific version of any cached module with it's deps from the cache folder with a Deno SUBCOMMAND than deleting it manually.

Issue 2:
Remove the cache files corresponding to the given targets.

deno clean src/mod.ts ≈ rm -f $DENO_DIR/gen/file$PWD/src/mod.ts.{js,map,meta}

deno clean dir1 dir2 ≈ rm -rf $DENO_DIR/gen/file$PWD/{dir1,dir2}

deno clean https://deno.land ≈ rm -rf $DENO_DIR/{deps,gen}/https/deno.land

deno clean --remote ≈ rm -rf $DENO_DIR/{deps,gen}/!(file)

deno clean --history ≈ rm -f $DENO_DIR/deno_history.txt

deno clean --web-storage=<URLs> ≈ rm -rf $DENO_DIR/web_storage/{<URLs>} refs #1657, #4981

deno clean --all ≈ rm -rf $DENO_DIR

Due to the current cache structure, cleaning for remote modules can only be done per-domain or coarser.
Issue 1:
Electron 1.7.9

OS - macOS 10.12.6 Windows 10

Calling fs.readdirSync in recursive manner from renderer process freezes the application.

STR:

Run following function from devtools and try to click via electron application

change dir with some large directory which contains many files, so function run for some time

var fs = require('fs')
var path = require('path')

var dir = '/Users'
var totalFiles = [0]
var filesArray = []
var sizesArray = []

function getFilesRecursively(dir, totalFiles, filesArray, sizesArray){

try { var files = fs.readdirSync(dir); }
catch(err) { } // 'fs.readdirSync(dir) -', console.warn(err.message) }

for(var i in files){

var name = path.join(dir, files[i])

try {

let stats = fs.lstatSync(name) // track symlink as link, but not as file

if (stats.isDirectory())
getFilesRecursively(name, totalFiles, filesArray, sizesArray)

// filtering out symlinks, sockets etc
else if (stats.isFile()) {

// we can't use regular counter, since incrementing a primitive value doesn't change the value back in the caller function's scope.
// https://stackoverflow.com/a/48378462/4537590
totalFiles[0]++

// filtering out 0 size files
if (stats.size > 0) {
sizesArray.push(stats.size)
filesArray.push(name)
}
}

} catch(err) { } // console.warn('fs.lstatSync(name) -', err.message) }

}

console.log(filesArray.length) // console logging to see function progress
return { "files" : filesArray, "sizes" : sizesArray, "total_files" : totalFiles }
}

getFilesRecursively(dir, totalFiles, filesArray, sizesArray)

I've tested this on Electron API Demos app as well which uses "electron": "~1.6.2" It also freezes.

Kindly help

Issue 2:
Electron version: 1.6.x, 1.7.x

Operating system: macOS 10.12.5, Windows 10

Expected behavior

Doing blocking (10ms or higher) node operations in main process or in renderer process shouldn't freeze CSS animations in an entirely different BrowserWindow/renderer processes (that only contains HTML/CSS, no JS/node, but has noteIntegration: true).

Actual behavior

Long blocking node operations (from 10ms to higher) in the main process or in a renderer process will freeze CSS animations in ALL renderer processes.

How to reproduce

Create one BrowserWindow with nodeIntegration: true, and rotate a green square div using CSS animation.

In main process or a different BrowserWindow, do anything that is blocking.

Even if nothing is happening in the BrowserWindow with the animation (pure html/css, no JS), the square rotating animation will be jerky when the blocking operation is happening in the main process or other renderer.

This is pretty annoying because even extremely small blocking operations will still make a fluid animation (like a infinite rotating loader) jerky.

Also, doing the same operation in another BrowserWindow will have the same effect (I'm assuming all node operations, in main or renderer process, are all in the same node thread?).
Issue 1:
Description of the problem

Migrated to v118.1, gltf model with compressed textures stopped rendering it's material, here's the error:

I suspect it's related to #16287

here's what that looks like:

just to be clear, the black things are the models with compressed textures. Here's a snippet of what those look like in gltf (only relevant parts):

{
"extensionsUsed":[
"MSFT_texture_dds"
],
"images" : [
{
"name" : "diffuse",
"uri" : "props1_512.png"
},
{
"name" : "normal",
"uri" : "props1_n_512.png"
},
{
"name" : "metalness",
"uri" : "props1_arm_512.png"
},
{
"uri": "props1_512_dtx5.dds"
},
{
"uri": "props1_n_512_dtx5.dds"
},
{
"uri": "props1_arm_512_dtx5.dds"
}
],
"textures" : [
{
"source" : 0,
"extensions": {
"MSFT_texture_dds": {
"source": 3
}
}
},
{
"source" : 1,
"extensions": {
"MSFT_texture_dds": {
"source": 4
}
}
},
{
"source" : 2,
"extensions": {
"MSFT_texture_dds": {
"source": 5
}
}
}
],
"materials" : [
{
"name" : "Props1",
"normalTexture" : {
"index" : 1,
"scale" : 1,
"texCoord" : 0
},
"pbrMetallicRoughness" : {
"baseColorFactor" : [
1,
1,
1,
1.0
],
"baseColorTexture" : {
"index" : 0
},
"metallicRoughnessTexture" : {
"index" : 2
}
}
}
]
}

Three.js version

Dev

r118

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Description of the problem

Due to the recently added usage of BitmapLoader in GLFTLoader (#19518), using handlers for specific file formats will be overwritten from the BitmapLoader.

In r117 to support basis textures for gltf files you would just need to add

var basisLoader = new BasisTextureLoader();
basisLoader.setTranscoderPath( 'js/libs/basis/' );
basisLoader.detectSupport( renderer );
THREE.DefaultLoadingManager.addHandler( /\.basis$/, basisLoader );

This is not possible anymore, since the resolve will be overwritten here:

three.js/examples/jsm/loaders/GLTFLoader.js

Lines 2077 to 2093
in
7df06a0

return new Promise( function ( resolve, reject ) {

var onLoad = resolve;

if ( useImageBitmap ) {

onLoad = function ( imageBitmap ) {

resolve( new CanvasTexture( imageBitmap ) );

};

}

loader.load( resolveURL( sourceURI, options.path ), onLoad, undefined, reject );

} );

I'm getting the following error:

THREE.WebGLState: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': No function was found that matched the signature provided.
at Object.texImage2D (three.module.js:21828)
at uploadTexture (three.module.js:22749)
at setTexture2D (three.module.js:22274)
at WebGLTextures.safeSetTexture2D (three.module.js:23169)
at SingleUniform.setValueT1 [as setValue] (three.module.js:17755)
at Function.WebGLUniforms.upload (three.module.js:18260)
at setProgram (three.module.js:26406)
at WebGLRenderer.renderBufferDirect (three.module.js:25441)
at renderObject (three.module.js:25994)
at renderObjects (three.module.js:25966)

demo

code

Three.js version

Dev

r118

r117

Browser

All of them

Chrome

Firefox

Edge

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)