WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Possibly related to #2751, #2725 and #2686, but I do not think it's a duplicate, since this bug only appears when default parameters are used. Also, I tried asking in slack, but didn't recieve an answer and I think the question got burried now.

I'm using a fresh setup with node v5.0.0, npm v3.3.11, babel-cli 6.0.15 (with babel-core 6.0.20), babel-preset-es2015 (which includes babel-plugin-transform-regenerator and babel-plugin-transform-es2015-parameters).

$ babel --version
6.0.15 (babel-core 6.0.20)

.babelrc (I've tried manually specifying the above-mentioned plugins as well)

{
"presets": ["es2015"]
}

index.js

export class Test {
*memberGenerator(arg = 0) {
console.log(arg);
}

start() {
this.memberGenerator(1).next();
}
}

babel index.js --module-id Test -o out.js

out.js

"use strict";

(function (global, factory) {
if (typeof define === "function" && define.amd) {
define("Test", ["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.Test = mod.exports;
}
})(this, function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
var _arguments = arguments;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

var Test = exports.Test = (function () {
function Test() {
_classCallCheck(this, Test);
}

_createClass(Test, [{
key: "memberGenerator",
value: regeneratorRuntime.mark(function memberGenerator() {
var arg = _arguments.length <= 0 || _arguments[0] === undefined ? 0 : _arguments[0];
return regeneratorRuntime.wrap(function memberGenerator$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
console.log(arg);

case 1:
case "end":
return _context.stop();
}
}, memberGenerator, this);
})
}, {
key: "start",
value: function start() {
var gen = this.memberGenerator(1);
gen.next();
}
}]);

return Test;
})();
});

test.js

require('babel-polyfill');

var Test = require('./out').Test;

var test = new Test();

test.start();

expected result

1

actual result

{ Test: [Function: Test] }

From what I can tell, it is the combination of exporting a class with the use of default parameters that causes this. If i export Test { ... } as an object instead of a class, or remove the default parameter, *memberGenerator(arg) it works as expected. Also, if i run this in the online babel editor, http://goo.gl/koJrnZ, (no export) it works as expected.

Thanks for your help.

Issue 2:
Issue 1:
Fancy Zones does not work on applications which have their own sub-windows ?

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Create FancyZone layout, use mouse to drag-and-drop "Solution Explorer" or any other window from Visual Studio (except main window) into a zone.

Expected behavior

The window resizes to the zone accordingly, works in v0.13 of PowerToys.

Actual behavior

The window does not resize to the zone.

In version 0.14 it is still possible to arrange the window by activating the "Override Windows snap hotkeys..."-option and using hotkeys to arrange it into place. Drag-and-drop does not work.

In version 0.15+ there is no option to arrange these windows into a zone.
Issue 1:
Describe the bug

If I use react hooks inside a page or component

import Comp from '../../comp

in nextjs everything work fine, if I use react hooks inside a component in an external library

import { Comp } from 'my-components

I get this error:

Hooks can only be called inside the body of a function component

this is my nextjs.config:

// next.config.js
const path = require('path');
const withTM = require('next-transpile-modules');

module.exports = withTM({
useFileSystemPublicRoutes: false,
transpileModules: ['ui-components'],
webpack: (config, options) => {
config.resolve.alias = {
...config.resolve.alias,
'styled-components': path.resolve(__dirname, '.', 'node_modules', 'styled-components'),
'react-dom': path.resolve(__dirname, '.', 'node_modules', 'react-dom'),
'react': path.resolve(__dirname, '.', 'node_modules', 'react'),
};
return config;
},
});

thie is the babelrc in my app:

{
"presets": [
"next/babel"
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true
}
]
]
}

this is the babelrc of my library:

{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
[
"babel-plugin-styled-components",
{
"ssr": true,
"displayName": true
}
],
"@babel/proposal-object-rest-spread"
],
"env": {
"module": {
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
],
"@babel/preset-react"
]
}
}
}

and this is how I build the library:

babel src --out-dir lib --extensions '.js,.jsx' --source-maps inline --watch

in my library I also have peerdep in my package.json

"peerDependency": {
"styled-components": "4.4.1",
"react-dom": "16.8.3",
"react": "16.8.3"
}

Also, if I comment the imported component and I reload I don't see any error, if I remove the comment the page is reloaded with hot reload and I can see the component without error and it works fine....if I reload the page I get the error again

System information

OS: macOS,

Version of Next.js: 9.1.3

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

Would it be possible to have an example that uses uses Rematch (2500+ stars) as the state management / store?

Just a random request haha

https://github.com/rematch/rematch/blob/master/docs/purpose.md
Issue 1:
When import external module, we should have a completion list for names of external modules.

Issue 2:
Hi,

Visual Studio (2013 Ultimate) provides intellisense for the src attribute for script elements, by reading the file system and displaying available files or folders.

It will be quite useful if similar functionality can be provided for <reference> and import statements:

<reference path="foo/ <--- here

import foo = require('foo/ <--- and here
Issue 1:
On a fresh Julia 0.3 install on windows 8.1, I get this odd behaviour, where size(A) indicates that the 3rd and 4th dimensions are of size 0, when A is an array of dimension 3 or 4. This is illustrated below:

julia> size(ones(2))
(2,)

julia> size(ones(2,3))
(2,3)

julia> size(ones(2,3,4))
(2,3,0)

julia> size(ones(2,3,4,5))
(2,3,0,0)

julia> size(ones(2,3,4,5, 6))
(2,3,4,5,6)

Interestingly, the correct result is returned when an axis is specified:

julia> size(ones(2,3,4))
(2,3,0)

julia> size(ones(2,3,4), 3)
4

Issue 2:
$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+3908 (2014-06-26 23:41 UTC)
_/ |\__'_|_|_|\__'_| | Commit 8f99257 (0 days old master)
|__/ | x86_64-w64-mingw32

julia> x = tuple(1,2,3)
(1,2,0)

julia> x
(1,2,0)

julia> x[3]
3

julia>
julia> versioninfo()
Julia Version 0.3.0-prerelease+3908
Commit 8f99257 (2014-06-26 23:41 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm

julia>
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10984/

Failed: [k8s.io] Job should fail a job {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:133
Jul 11 05:31:16.288: Couldn't delete ns "e2e-tests-job-0hlz2": namespace e2e-tests-job-0hlz2 was not deleted within limit: timed out waiting for the condition, pods remaining: []

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/9800/

Failed: [k8s.io] Job should delete a job {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:133
Jun 23 22:05:43.977: Couldn't delete ns "e2e-tests-job-vueky": namespace e2e-tests-job-vueky was not deleted within limit: timed out waiting for the condition, pods remaining: []
Issue 1:
After the configuration is completed, there is basically no need to modify the configuration. This is a low-frequency operation. The tray icon has only one setting option, which is a waste of tray space. I hope to provide the option to hide the tray icon.

Issue 2:
Hello,

could FancyZones have such possibility to alt-tab over windows snapped to the same zone?

Let's say I have 3 zones on my monitor and for example each zone has three different applications snapped into it. Could for example shortcut alt+tab+1 switch just between apps snapped into zone 1 and alt+tab+2 into zone 2 etc? With many monitor setup and lots of apps open at once it's hard to do normal 'alt+tab' - but I always keep the same apps snapped to the same zones so just cycling through apps of the same zone would get me quicker to what I need.

Or maybe there's another way of doing it?

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

Hi there! I'd love the ability to fuzzy search for Control Panel tasks like I can in the Start Menu. For instance, if I search for "partition", I see Create and format hard disk partitions which takes me to Disk Management, or if I type "users", I get Add, edit, or remove other users.

Issue 2:
Sometimes the usual way of pasting from clipboard doesn't work (I'm looking at you, vSphere client..).

A perfect addon would be to paste Clipboard content as keystrokes with a special keyboard shortcut - CTRL+SHIFT+V for example.
Issue 1:
Bug report

What is the current behavior?

When I use webpack to bundle code that includes a Web Worker which contains a dynamic import, the resulting code erroneously duplicates the file path of the chunk that it's trying to load. Instead of requesting something like foo/bar/abc.[a1b2c3d4].chunk.js, it requests foo/bar/foo/bar/abc.[a1b2c3d4].chunk.js.

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

I encountered this in the context of create-react-app, so that's how I reproduce it. I don't know enough about webpack config to be able to distill it down to the absolute minimum. The issue may be with create-react-app or webpack.

My steps to reproduce are described in this bug report:

Duplicate path segment error in dynamic imports in Web Worker (react-scripts 5, webpack 5)

What is the expected behavior?

The path to the dynamically imported chunk should not have the duplicated path in front of the file name.

Other relevant information:

webpack version: 5.74.0

Node.js version: 16.15.0

Operating System: Windows 10

Additional tools:

Issue 2:
Bug report

I have import some of my modules dynamically based on button click, i have used like below"

import { Button } from '@syncfusion/ej2-buttons';

// Initialize Button component.
let button: Button = new Button({ content: 'Button' });

// Render initialized Button.
button.appendTo('#element');

document.getElementById('element').addEventListener("click", function(){
check();
});

async function check() {
import("@syncfusion/ej2-grids").then((Grid) => {
debugger
console.log(Grid);
});
}

my webpack config file:

const path = require("path");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");

module.exports = {
mode: "development",
entry: {
"src/app/bundle": "./src/app/index.ts"
},
output: {
publicPath: "/js/",
filename: "src/app/bundle.js"
},
devtool: "none",
module: {
rules: [
{
loader: "ts-loader",
exclude: /node_modules/
}
]
},

resolve: {
extensions: [".ts", ".js"]
}
};

when i compile and ru my application it throws below error

What is the current behavior?

Throws error

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

clone sample - https://github.com/kumaresan-subramani/dynamic-import/blob/master/webpack.config.js

run npm i

gulp compile

gulp start

Then click button in browser, you will see reported error in my console.

What is the expected behavior?

Dynamic module should load properly

Other relevant information:

webpack version:

"typescript": "3.7.5",
"uglifyjs-webpack-plugin": "^2.0.1",
"webpack": "^4.29.6",
"webpack-cli": "*",
"webpack-stream": "^5.2.1"

Node.js version: 10.15.1

Operating System: windows 10

Additional tools:
Issue 1:
Q
A

Bug report?
maybe

Feature request?
yes/no

BC Break report?
no

RFC?
no

Symfony version
3.3.8

I have an issue with validator component. I have a base class and a child. Base class defines a property and a set of constaints. Child must redefine one of the constraints - it must modify its options.I am using StaticMethodLoader for both classes because I am in control and I can work with constraints. The problem is that I get two violations instead of one when validating child object. Constraint is validated twice - with child options first and then with base class options. I tried to investigate why but I still don't know why its happening. And I am a bit lost in all the loaders and caching.

However, the result is quite unexpected for me. I thought that validator honors inheritance.

Thanks for any help.

Issue 2:
A simple example—

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Validation;
use Doctrine\Common\Annotations\AnnotationRegistry;

AnnotationRegistry::registerAutoloadNamespace('Symfony\Component\Validator\Constraints', __DIR__);

class Parent
{
/**
* @Assert\EqualTo(0)
*/
public $example = 0;
}

class Child extends Parent
{
/**
* @Assert\EqualTo(1)
*/
public $example = 1; // overrides parent property of same name
}

echo Validation::createValidatorBuilder()
->enableAnnotationMapping()
->getValidator()
->validate(new Child());

The validation fails because the constraint that was defined on Parent::$example has been merged with that for Child::$example (and, in this case, they are mutually exclusive).

This cannot be right—the child property has completely replaced that of the parent and all of the latter's metadata (including validation constraints) should be discarded.

For the time being, I have added the following two lines after AnnotationLoader.php:61:

unset($metadata->members[$property->name]);
unset($metadata->properties[$property->name]);

However, I acknowledge that this is horrible—at very least, ClassMetadata should provide a method for resetting a property, but even if one could use that I'm not familiar enough with the code to be certain that this approach doesn't break something else. Grateful for your thoughts!
Issue 1:
Bug report

The direction="column" setting appears to break the label_mode="L" option for AxesGrid.

Code for reproduction

import matplotlib.pyplot as plt
import mpl_toolkits

fig = plt.figure()
grid = mpl_toolkits.axes_grid1.AxesGrid(fig, 111, nrows_ncols=(2,3),
axes_pad=.3, direction="column", label_mode="L")
plt.show()

Actual outcome

Expected outcome

Matplotlib version

Operating system: MacOS 10.15.7

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

Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline

Python version: 3.8.6

Jupyter version (if applicable): 6.1.5

Other libraries:

Installed with conda

Issue 2:
Bug report

Bug summary

Axes of mpl_toolkits.axes_grid1.axes_grid.Grid (and ImageGrid) are not positioned correctly when direction='column'. This affects, e.g., the tick labels (see figures).

Code for reproduction

import matplotlib.pyplot as plt
import mpl_toolkits.axes_grid1 as axg1
fig = plt.figure()
g = axg1.Grid(fig, 111, (2, 3), direction='column', axes_pad=0.5)

Actual outcome

Expected outcome

Obtained appending

import numpy as np
g.axes_all = np.reshape(g.axes_all, g.get_geometry()).ravel(order='F')
g._init_locators()

I believe the culprit is

matplotlib/lib/mpl_toolkits/axes_grid1/axes_grid.py

Line 169
in
89ce4fb

self.axes_all = axes_array.ravel().tolist()

When direction='column', axes_all are not sorted by creation order; as I think is expected by _init_locators and as likely indicated by the sentence "This also affects the order in which axes are accessed using indexing" in the description of direction in the ImageGrid (but not Grid) documentation.

Matplotlib version

Operating system: Debian 10 (on WSL2)

Matplotlib version: 3.4.2 (conda-forge)

Matplotlib backend: any

Python version: 3.9.2 (conda-forge)
Issue 1:
plt.plot([1,2,3,8,6,4,3,1],'o-',label='राष्ट्र')
plt.xlabel('निवृत्ति प्रतिशत')
plt.ylabel('चक्रीय ब्याज')
plt.legend()

Devanagari font rendering is incorrect. For example: निवृत्ती प्रतिशत should be displayed as

but is instead displayed as:

In matplotlibrc I have specified

font.family : sans-serif
font.sans-serif : Lohit Devanagari

Lohit devanagari has the required glyphs, in fact the correct rendering example is using Lohit Devanagari font.

Issue 2:
Bug report

Bug summary

Title sums it up all I guess.

Related:

Issue #3517 on Github

This and this on stack exchange

Here I used sinhala as Indic Script instance.

I think the font family has to do something with this issue since output to different font families are different. I'm not an expert in these stuff. Help appreciated to to get this work even with a different font family.

An example is given below for which I've tried with 3 different font families.

Code for reproduction

from matplotlib import rc
families = ['WARNA','LKLUG','Arial']
for familyname in families:
rc('font', family=familyname)
from matplotlib import pyplot as plt
import numpy as np
r = np.linspace(0.1,5,100)
A = 3*2/(r*2)+np.pi*r**2
fig = plt.figure()
axes = fig.add_axes([.1,.1,.8,.8])
axes.plot(r,A)
axes.set_ylabel(u'වර්ගඵලය')
axes.set_xlabel(u'අරය')
axes.set_title(familyname)

Actual outcome

Expected outcome

Result 1 looks fine but it has 2 problems:

Accents not been placed in the correct location. ("්" in "වර්ගඵලය" is placed after "ර" not before)

Letter "A" is not renderd in the title "WARNA"

Issues in result 2:

Same previous accent issue

Axis values or title not shown at all

Issues in result 3:

No Sinhala script shown.

Versions

Software
Version

Python
2.7.13 64bit [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

IPython
5.1.0

OS
Linux 4.4.0 78 generic x86_64 with debian jessie sid

matplotlib
1.5.1

(Matplotlib from anaconda bundle)

Wed Jun 14 22:54:11 2017 +0530
Issue 1:
<div><span>Get</span> the Best Price</div> // Text in one lineline

In case i want to make the word hidden on xs it brakes the text with display:block !important and span loose its inline behavior.

<div><span class="hidden-xs">Get</span> the Best Price</div>

Even bootstrap at first mobile I dodo

<div><span class="visible-sm visible-md visible-lg">Get</span> the Best Price</div>

the same result.

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
What steps will reproduce the problem?
This simple code reveals an infinite print loop:
package main
import "fmt"
import "log"
import "runtime/debug"
var count = 0
type foo struct {
i int
}

func (f foo) String() string {
count++
if count > 10 {
debug.PrintStack()
panic("call stack too large")
}
return fmt.Sprintf("foo@%p value: %d", f, f.i)
}

func main() {
f := foo{i: 3}
// ok
log.Println(fmt.Sprintf("foo@%p value: %d", &f, f.i))
// inf loop
log.Printf("foo@%p, value: %d\n", f, f.i)
}

If you take out the loop protection in the code, you will end up crashing with no system
memory left.

What is the expected output?
There should be a callstack protection so that the program wouldn't chew up all the
system memories.

What do you see instead?
hang and eat up all the memories.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g, 8g

Which operating system are you using?
Linux 386/amd64

Which revision are you using? (hg identify)
tip

Please provide any additional information below.

Ian's comment:

I think we should use the depth we are already passing down to catch
this kind of loop before we eat all of memory.

Issue 2:
by mddkpp:

1. What is a short input program that triggers the error?

package main

import "fmt"

type A [10]int

var a A

func main() {
a.pp()

b := &a
c := &b

c.pp() // or just use (&(&a)).pp()
}

func (a A) pp() { fmt.Printf("%#v \n", a) }

2. What is the full compiler output?

bb.go:15: internal compiler error: method mismatch: A for **A

Please file a bug report including a short program that triggers the error.
http://code.google.com/p/go/issues/entry?template=compilerbug

3. What version of the compiler are you using? (Run it with the -V flag.)

8g version release.r60.3 9516

(Note the program should return an error)