WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Version

2.6.11

Reproduction link

https://jsfiddle.net/cdzos023/

Steps to reproduce

See fiddle.

Since upgrading to Vue 3 is not currently a viable option, I perform a small hack to make my class (which is a subclass of Array) reactive while maintaining its identity. This, however, results in an error when I try to call sort on it.

A simple fix could be checking if ob is defined before attempting to access any of its members.

vue/src/core/observer/array.js

Line 40
in
e7cf063

if (inserted) ob.observeArray(inserted)

vue/src/core/observer/array.js

Line 42
in
e7cf063

ob.dep.notify()

Issue 2:
Version

2.5.21

Reproduction link

https://codepen.io/AmrIKhudair/pen/NevxML

Steps to reproduce

1- create a class extending Array and add a custom method

2- instantiate a new instance of the class and add it to data

3- try to call the method on the instance in the template

What is expected?

The method is successfully executed

What is actually happening?

Error not a function
Issue 1:
I did a goinstall of a command and it installed it in (and created!) $GOROOT/bin instead
of using my $GOBIN setting.

Issue 2:
by beyondmj0.student@sina.com:

go version go1.3 darwin/amd64

when reuse stmt struct to do "Query", "Exec", "QueryRow"
seems has bug.

mysql:
show global status like '%stmt%';
| Prepared_stmt_count | 7598 |
| Prepared_stmt_count | 7600 |
| Prepared_stmt_count | 7603 |
| Prepared_stmt_count | 7607 |

can't reuse prepared statement, the prepared_stmt_count increment till exceed
max_prepare_stmt in mysql.

http://golang.org/src/pkg/database/sql/sql.go?s=32373:33023#L1338
if all connection busy, then
http://golang.org/src/pkg/database/sql/sql.go?s=32373:33023#L1358
get a connection from pool, then call prepareLocked the prepare a new stmt .

but!!!!
if the connection in pool was just released by a another goroutine with a prepared stmt
stored in dc.openStmt,
then
http://golang.org/src/pkg/database/sql/sql.go?s=32373:33023#L251
create a duplicate one....

codes:
http://play.golang.org/p/hxq1tyHS4e
Issue 1:
I'm submitting a ... (check one with "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

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

Node (for AoT issues): node --version =

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

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

Current behavior

With route reuse strategy that is supposed to not reuse a route (shouldReuseRoute returns false) a route is reloaded only if navigated URL is different (e.g. route param).

Currently route component is refreshed only when another route link is navigated. It is not clear if it is a bug or a missing feature.

Expected behavior

Route component is expected to be refreshed when any route link is navigated, including the current one.

Minimal reproduction of the problem with instructions

A plunk shows that route component is refreshed only when another route link is clicked.

What is the motivation / use case for changing the behavior?

Restore $route.reload() functionality from Angular 1. Apparently, the only way to achieve it at this moment is to navigate to temporary route and back. See also #9105

Angular version: 2.4.2

Browser: [all]

Language: [all]
Issue 1:
Description

Because of usage of realpath in Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension, entities from Phar-packages can't be loaded.

Steps to reproduce

Pack whole the framework with entities in Phar-package or just pack only own code into Phar.

Try to clear the cache or somehow use the entities-related features.

Say "hello" to Doctrine\Common\Persistence\MappingException with message File mapping drivers must have a valid directory path, however the given path seems to be incorrect!

Issue 2:
I was using https://github.com/BorisMorel/LdapBundle before Symfony 2.8, but now with Symfony 3.1 I am using the built-in LDAP mechanism.

One of the things I miss is the ability to pull in custom user fields from LDAP. For example I was pulling in email and fullname.

Is there a way to do this with Symfony's LDAP component already? I looked at the documentation:

http://symfony.com/blog/new-in-symfony-2-8-ldap-component

http://symfony.com/components/Ldap (this is blank!!! linked to from the above)

http://symfony.com/doc/current/cookbook/security/ldap.html

and couldn't find either an easy way to do it, or a guide on how to implement this myself if that is the desired way to do it.

I propose two things:

a) that the ldap component provide an easy way to configure additional fields to pull in

b) that the documentation reflect this, or a cookbook is made on how to do it ourselves

Thanks!
Issue 1:
Bug Report

I would like to work on a fix!

Current behavior

REPL

According to https://github.com/tc39/proposal-class-static-block

A class may have any number of static {} initialization blocks in its class body.

static {} initialization blocks are evaluated in document order interleaved with static field initializers.

Input Code

class C {
static f = 1
static { console.log(this.f, this.ff) }
static ff = 2
static { console.log(this.ff, this.fff) }
static fff = 3
}

Expected behavior

Multiple block works fine. And the evaluate order follow the document order.

But currently:

Duplicate static block in the same class (5:2)

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

Filename: babel.config.js

{
"your": { "config": "here" }
}

Environment

Babel version(s): [e.g. v7.12.0]

Node/npm version: [e.g. Node 12/npm 7]

OS: [e.g. macOS 10.15.4, Windows 10]

Monorepo: [e.g. yes/no/Lerna]

How you are using Babel: [e.g. webpack, rollup, parcel, babel-register]

Possible Solution

Additional context

Issue 2:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let

Redeclaration of the same variable in the same block scope raises a TypeError.

if (x) {
let foo;
let foo; // TypeError thrown.
}

However, function bodies do not have this limitation!

function do_something() {
let foo;
let foo; // This works fine.
}

Babel

function do_something() {
let foo;
let foo; // Duplicate declaration "foo"
}

https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=true&spec=false&code=function%20do_something%28%29%20{%0A%20%20let%20foo%3B%0A%20%20let%20foo%3B%20%2F%2F%20This%20works%20fine.%0A}
Issue 1:
I'm submitting a "feature request"

FEATURE REQUEST: enable support "ngForIn"

currenly, *ngFor can only support "of" keyword which loops array like iterables. "in" keyword will throw a parsing error.

What is the motivation / use case for changing the behavior?

"in" keyword is supported natively in JavaScript to iterate own (not inherited) property in objects.

for example:

for(let key in object){
console.log( object[key] );
}

Using object key to store information rather than array will achieve O(1) lookup time. If the order of the information does not matter, object is arguably better data structure in many cases. However, if we return JSON that stores data purely in object format, we cannot use ngFor to iterate it, at least not before we convert.

This concept has been found in firebase

e.g.

{
countries:["USA", "Canada"]
}

*ngFor="let country of countries"

{{country }}

.......(current support)

==>>

{
countries:{
USA:true,
Canada: true
}
}

*ngFor="let country in countries"

{{ country }}

..... (requested feature)

These 2 will print exactly the same thing.

Issue 2:
I am trying to iterate over Map values with the built in ng-for, but I can see that for some reason it is not working.

In the specs, you can iterate over a Map iterable with:

let map = new Map();
let values = map.values();
for (let item of values) {
console.log(item);
}

And none of the ES5 standard for (...)/for (... in ...) will work with that.

Does the built in ng-for actually support iterating over maps?
Issue 1:
Is your feature request related to a problem? Please describe.

New MeshPhysicalMaterial properties are not documented.

Describe the solution you'd like

I'd like them to be documented 😁 I'd do it myself but I don't know enough about the properties or implementation to describe them effectively. I'm particularly interested in how the attenuation color and implementation relates to the diffuse color and transmission properties.

Describe alternatives you've considered

😭

Additional context

--

Issue 2:
0.137.5

math/Quaternion

multiplyQuaternionsFlat

animation/PropertyMixer

cumulativeWeightAdditive

accumulateAdditive

audio/Audio

setDetune

getDetune

extras/ImageUtils

sRGBToLinear

lights/RectAreaLight

width

height

materials/MeshPhysicalMaterial

thickness

thicknessMap

attenuationDistance

attenuationColor

math/Matrix3

scale

rotate

translate

math/Triangle

isFrontFacing

getUV

renderers/webxr/WebXRManager

getFoveation

setFoveation
Issue 1:
(?<!throw )Throwables.propagate\( gives 40 occurrences in the codebase. Although most of them seem to be benign, I found only one that is buggy, in HadoopConverterJob.

Issue 2:
(?<!throw )Throwables.propagate\( regex gives 39 places in the Druid source code. See https://github.com/google/guava/wiki/Why-we-deprecated-Throwables.propagate#propagate-is-magic. Solution: refactor the code to not use Throwables.propagate().
Issue 1:
I came about this when using the sum function and DataFrames(). Consider the following short example.

Df = DataFrame()
M = reshape(rand(1:20, 16), (4, 4))
Msum = sum(M, 2)
Df[:c1] = Msum

Main> Df[:c1] = Msum
ERROR: ArgumentError: setindex!(::DataFrame, ...) only broadcasts scalars, not arrays
Stacktrace:
[1] setindex!(::DataFrames.DataFrame, ::Array{Int64,2}, ::Symbol) at /Users/abmlab/.julia/v0.6/DataFrames/src/dataframe/dataframe.jl:372
[2] eval(::Module, ::Any) at ./boot.jl:235

but if I do this

tarr = zeros(Int64, 4)
Df[:c1] = tarr

It works. Both are one dimensional arrays with 4 elements, so what gives? I think its a problem with dimensions. See following

Main> Msum = sum(M, 2)
4×1 Array{Int64,2}:
29
29
35
41

so the sum function produces a one dimensional array but the type is set to Array{Int64, 2}. This is further seen by

Main> size(Msum)
(4, 1)

Main> size(tarr)
(4,)

Is this a bug or is this expected behaviour. How can I change the dimension from the sum function to 1? The reshape function dosn't work.

edit: reshape does work by running reshape(Msum, (15, ))

Issue 2:
Following this discussion on julia-users: https://groups.google.com/forum/#!topic/julia-users/V-meqUZtb7k

I find the fact that sum(A,1) and A[1,:] have different shapes in 0.5 counter intuitive. I am not aware of other languages for which the equivalent expressions have different shapes. It leads to unexpected results when computing e.g. A[1,:] ./ sum(A,1). At least in the case of sum, it seems like sum(A,1) should be equivalent to A[1,:] + A[2,:] + A[3,:] + ...

However, as @timholy pointed out, this behavior can be useful for broadcasting with expressions like A ./ sum(A,1).

For me, having the default slicing and array reduction behavior be consistent seems the natural choice, meaning that sum(A,1) should drop the first dimension. But I understand the attractiveness of not dropping dimensions for broadcasting. What are others' thoughts?
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:

10.1.5

Operating System:

Windows 10

Last Known Working Electron version:

9.2.1

bug appear from 9.3.0

Expected Behavior

when i hide the window and turn my screen off and on again, I expect the application to remain hidden

Actual Behavior

when I hide (win.hide) my application (close the window, app reduce inside the system tray), and I turn off my screen and turn it back on, the window reappears, nothing is clickable. inside the window only the window buttons responds, no event is emitted on the win.on (' show ', function (event)

To Reproduce

run app

maximise window

close window

off your computer screen (i have 3 screen on my computer), on your screen

the electron window reappears :(

for reproduce :

use this code inside main.js (electron quick start)

const electron = require('electron')
const {app, BrowserWindow} = require('electron');

let win;

function createWindow() {

win = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true,
},
show: false,
title: "test",
fullscreenable : false,
fullscreenWindowTitle : true,
autoHideMenuBar: true,
backgroundColor: '#000000',
'minHeight': 600,
'minWidth': 800,
});
win.setMenu(null);

app.win = win;
win.loadFile('index.html')
win.once('ready-to-show', function (e) {
win.show()

})
win.on('close', function (event) {
event.preventDefault()
win.hide();
return false;
});
}

function appReadyLaunch() {
console.log("BB");
createWindow();

}

app.on('ready', () => {
appReadyLaunch()

});

Screenshots

Additional Information

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:

10.1.1

Operating System:

Windows 10

Last Known Working Electron version:

8

Expected Behavior

The window should hide

Actual Behavior

The window stays visible but appears blank, if the window is restored from the maximized state it gets black

To Reproduce

let browserWindow = new BrowserWindow({
show: true
});
browserWindow.maximize();
browserWindow.hide();

browserWindow.loadURL("http://www.google.com").then(() => {
});

Screenshots
Issue 1:
I had an interesting idea for a new mode for FancyZones. Not sure if i'd use it all the time, but it could be useful in some situations.

Imagine a "flow mode" that works sort of like the way a browser "flows" elements. When you open new windows it would resize the current windows and re-layout the windows to fit them all.

Obviously there would have to be some limit or it would become unusable after a point, but the idea would be to dynamically resize the zones to fit content.

Anyone else find this a useful idea? Or just an annoying hinderance?

Issue 2:
The "Window-Tiling" PowerToy

Here's an idea, add the ability to tile windows automatically. What I mean by that is when a window would open, it'll cover the whole screen but when another window would open, it'll cover the half of the screen automatically and the first app would also resize to the half of the screen. If the third window opens it'll open below the second window, resizing the second window to half vertically. And the new window would take place under the second window.

It has been done before in some Linux window managers like "i3". And a lot of people really appreciate the ability to do that.

Concept Shots

I've prepared some concept shots to show that:

In the image above, a single window is opened. When the user wants open another window, they would need to click the start button or hit the start key on the keyboard. The Start Menu would be replaced with Power Run. The user would be able to select the desired app by typing it's name and selecting one of the results by using the arrow keys. Or just type the name and hit enter

And when more than two apps are opened:

And when more than three apps are opened, the third app would be resized to half of it's size and the fourth window would appear in the empty space created by the third app.

There are better explanations of tiling window managers (than what I've done here) online

Conclusion

The window tiling feature is inspired by some window managers in Linux (like i3). I think it'll help with productivity stuff. I've posted these concept shots on Twitter and many people wanted this feature to be in PowerToys. Maybe integrate it in FancyZones by adding a toggle for this feature. What do you think? :)
Issue 1:
One of the biggest annoyances with using the fantastic host_callback.id_tap as a logging solution is its behaviour in a jax.remat (making a call to id_tap for every remat). When you have a codebase with multiple layers of nested remats, you get spammed with calls to host_callback.id_tap, which both increases the chances of a slowdown due to Python callback overhead, but also makes it hard to efficiently get rid of spurious duplicated logs coming from remats.

Is there any way of implementing an option to id_tap to avoid calling it multiple times in a remat, or some other workaround?

@mattjj , @gnecula

Issue 2:
To support modern packaging standards (aka PEP 518) for wheel building, specify the build requirements and backend in pyproject.toml.

I've tested following the instructions in the setuptools documentation (adding the build-system table), and installation from sdist works perfectly.

This will fix installation when there are no wheels provided and setuptools is not yet installed.
Issue 1:
it doesn't show my recent file history like sublime does.

Issue 2:
I would like to be able to find files or folders that I have recently opened in previous editing sessions. On Windows this is usually done under the File menu. For example: File > Recent Files > (displays a sub menu of top 10 most recently used files in descending order).

File

Recent Files

> (top 10 most recent files)

Recent Folders

> (top 10 most recent folders)
Issue 1:
now that barrel reorg is done and bundle reorg is almost done, it is time to remove the angular2/angular2 barrel (entry point) and force everyone to import from the correct location.

We are doing this because of the rule to export each symbol only via one public entry point to prevent confusion and code portability issues due to duplicate/platform-specific/bundle-specific imports.

This change will affect the following:

remove angular2.ts

remove angular2.dart - requires fixing g3, so we should just fix ts side and leave this item open if we need more time to fix g3 #4027

update all internal imports that depend on angular2/angular2

update System.register bundle config

update UMD bundle config

update all api docs

update all dev guide docs

update all dgeni (doc generation) entry points

update cli blueprints

update seed

// @pkozlowski-opensource @vsavkin @robwormald @wardbell @yjbanov @petebacondarwin

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

Current behavior

With aot enabled site, templateUrl fails to download in debug build

Expected behavior

The templateUrl should download without issue

Minimal reproduction of the problem with instructions

Following the docs for setting up an aot enabled app I made templateUrl a relative path, set the moduleId on the component, set an id on the module and adding the window.module to the index.html page. When loading the component the site tried to load the template url from ~/templateUrl.

See plunker: http://plnkr.co/edit/M4yogzUSJDnQxojAUVpc?p=preview

What is the motivation / use case for changing the behavior?

Need to debug the application

Please tell us about your environment:

My dev environment is Windows 10 using VS2015

Angular version: 2.2.4

Browser: [all ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

Node (for AoT issues): node --version =

v6.9.1
Issue 1:
Does it support simultaneous requests from multiple users? That is, multi user login (second times with cookie login).

Issue 2:
I have the following scenarios:

1, user login (multiple users may log in at the same time, what should I do? )

2, get data after login success (get)

3, according to the data obtained in the second step, post request data again (support post request?)

The third step has two results, success or failure, if the successful completion of this user's task, otherwise continue to take the third step.

The above is my usage scenario. Can I make an API instead of shutting down the crawler every time I crawl data, and how to support multiple users crawling data at the same time?
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.0-SNAPSHOT

Steps to reproduce this issue

Source code Fragment:

for (int i = 0; i < forks; i++) {
// TODO. Add some comment here, refer chinese version for more details.
Invoker<T> invoker = select(loadbalance, invocation, invokers, selected);
if (!selected.contains(invoker)) {
//Avoid add the same invoker several times.
selected.add(invoker);
}
}

When selected list contains invoker, it will continue loop, it may result in the size of selected list less than forks.

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.6.2

Operating System version: mac os

Java version: 1.8

Steps to reproduce this issue

com.alibaba.dubbo.common.Constants#DEFAULT_SERVER_SHUTDOWN_TIMEOUT，

I think this number is too big，2~3 second is enough。

Expected Result

make a small default value 。

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:
Issue 1:
The following variable definition gives an erroneous highlight.

var scheduleOptions = {
minutes: ['*', '0', '1', '2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59'],
hours: ['*', '0', '1', '2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23'],
days: ['*', '1', '2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'],
months: ['*', '1', '2','3','4','5','6','7','8','9','10','11','12'],
weekdays: ['*','0', '1','2','3','4','5','6']
};

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.