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

2.5.17

Reproduction link

https://haodaking.github.io/demos/vue/2.html

Steps to reproduce

1、移动端浏览器打开https://haodaking.github.io/demos/vue/2.html

2、页面滑动到底部点击“跳转”链接

3、点击浏览器后退按钮

What is expected?

页面跳转后，浏览器后退，滚动条恢复原来位置。

正常页面：

https://haodaking.github.io/demos/vue/1.html

What is actually happening?

数据异步渲染，页面跳转后，浏览器后退，滚动条滑到了最顶部。

设备：iPhone XS；

系统：IOS 12.1；

浏览器：Safari；

Issue 2:
Version

2.3.3

Reproduction link

https://jsfiddle.net/ianpatel/3bs145u7/

Steps to reproduce

var eventHub = new Vue()

Vue.component('foo', {
template: `<div>I'm foo <button @click="emit">Emit {{ value }}</button></div>`,
data: function() {
return {
value: 22
}
},
methods: {
emit() {
var newVal = eventHub.$emit('makeTwice', this.value)
// I'm expecting newVal will be 44 but it is object of Vue$3
alert(newVal)
// Please check into Console log
console.log(newVal)

this.value = newVal // Check console log, can not Convert
}
}
})

new Vue({
el: '#app',
data: function() {
return {}
},
mounted() {
eventHub.$on('makeTwice', this.makeTwice)
},
methods: {
makeTwice(val) {
return val * 2
}
}
})

What is expected?

I'm trying to Call other component method using single event hub var eventHub = new Vue(), but I would like to get a return value from other component method.

https://vuejs.org/v2/guide/migration.html#dispatch-and-broadcast-replaced

What is actually happening?

Currently eventHub.$emit('makeTwice', this.value) returning object of Vue$3. but component method return a value.

Vue$3 {_uid: 0, _isVue: true, $options: Object, _renderProxy: Proxy, _self: Vue$3…}

Am I missing something in https://vuejs.org/v2/api/#vm-emit.

vm.$emit( event, […args] ) do not have any return; It may possible, I'm expecting return value but $emit do not return method's return value.
Issue 1:
More about this in -> microsoft/pylance-release#1737 (comment)

vscode autocompletion

Issue 2:
Mypy requires public API of a package being exported using either __all__ or import ... as ... syntax.

python3 -m venv env
source env/bin/activate
pip install -U pip mypy jax
python -m mypy --install-types --non-interactive --strict -c "from jax import numpy as jnp; xs = jnp.zeros(1)"

<string>:1: error: Module has no attribute "zeros"
Found 1 error in 1 file (checked 1 source file)

Currently, projects that are using jax need to set--no-implicit-reexport=False.

There are some references on that matter.

PEP-0484

Modules and variables imported into the stub are not considered exported from the stub unless the import uses the import ... as ... form or the equivalent from ... import ... as ... form.

However, as an exception to the previous bullet, all objects imported into a stub using from ... import * are considered exported.

MyPy docs

--no-implicit-reexport always treated as enabled for stub files.

Is it possible to add a little boilerplate to __init__.py to make it working? :-)
Issue 1:
As a companion issue to #27538 with tensorflow 2.0.0a. Script fails with

ValueError: Input 0 of layer dense is incompatible with the layer: its rank is undefined, but the layer requires a defined rank.

in the line

layers.Dense(image_data.num_classes, activation='softmax')

System information

TensorFlow version:

('v1.12.0-9492-g2c319fb415', '2.0.0-alpha0')

using an updated script

which also works for tensorflow 1.

Doc Link: https://www.tensorflow.org/tutorials/images/hub_with_keras

Describe the documentation issue

The downloaded .py script (see #27538) fails to run (it's not clear-cut if this is a documentation issue or simply a bug) at

model = tf.keras.Sequential([
feature_extractor_layer,
layers.Dense(image_data.num_classes, activation='softmax')
])

We welcome contributions by users. Will you be able to update submit a PR (use the doc style guide) to fix the doc Issue?

If it's a doc issue, I'd love to. It could go deeper than that. The same issue appears for the MCVE at stackoverflow: https://stackoverflow.com/questions/55490885/error-converting-keras-model-to-tfjs-duplicate-weight-name-variable

Issue 2:
System information

OS Platform and Distribution : MacOS 10.13 High Sierra

TensorFlow installed from (source or binary): binary

TensorFlow version: 1.12

Python version: 3.6.x

Installed using : Anaconda 3, version 5.3.1

Describe the problem

Actually, my program meet a issue as #23999

I try to deep into the reason which cause the issue,

and found that when I create a env (name 'py36' in my case) in Anaconda3 with Python 3.6 and install TensorFlow 1.12 ,

there are duplicate files libiomp5.dylib & libmklml.dylib under path

~/anaconda3/envs/py36/lib/python3.6/site-packages/_solib_darwin/_U@mkl_Udarwin_S_S_Cmkl_Ulibs_Udarwin___Uexternal_Smkl_Udarwin_Slib/

which are same files under path

~/anaconda3/envs/py36/lib

No matter I delete which one, the program cannot run well.

Provide the exact sequence of commands / steps that you executed before running into the problem

Step 1. Install Anaconda 3 (Version 5.3.1)

Step2. Create env using Python 3.6

Step3. Install TensorFlow 1.12 and relative package.

BTW, If I create env (name 'py35' ) using Python 3.5, this issue is gone.

There are no folder _solib_darwin be created under ~/anaconda3/envs/py35/lib/python3.5/site-packages/ and no duplicate files libiomp5.dylib & libmklml.dylib

Any other info / logs
Issue 1:
Maybe Deno can make web apps more cloud native via a loader option

deno.json

{
"loaders": {
"*.vue": "https://deno.land/x/aleph@1.0.0-alpha.66/loaders/vue.ts",
"*.vue!react": "https://deno.land/x/vue-loader/vue-react.ts",
"*.(css|scss)": "./style-loader.ts"
}
}

style-loader.ts

import { ModuleLoader, someHelperFunciton } from "https://deno.land/std@0.143.0/loader/mod.ts"

export default class StyleLoader implements ModuleLoader {
// ...
}

declare module "*.css" {
// ...
}

SomeComponent.tsx

import style from "https://esm.sh/some-lib/SomeComponent.css"

// or even import a vue component to react component via a specific loader
import Button from "https://esm.sh/some-ui-lib/Button.vue!react"

What loaders do is transform a non js/ts module to a ts modlue

Deno can provide a cache API for loaders

Issue 2:
example: 0ceb554#diff-b9d53e20d7eb637f2c93606fc9b689b4L36
Issue 1:
Bug Report

Input Code

REPL

const arr1 = [...Array(2)]
const arr2 = Array(2);
const arr3 = [...arr2];

Current Behavior

var arr1 = _toConsumableArray(Array(2)); // [undefined, undefined]
var arr2 = Array(2); // [empty × 2]
var arr3 = [].concat(arr2); // [empty × 2]

Expected behavior/code

var arr1 = _toConsumableArray(Array(2)); // [undefined, undefined]
var arr2 = Array(2); // [empty × 2]
var arr3 = _toConsumableArray(arr2); // [undefined, undefined]

Babel Configuration (.babelrc, package.json, cli command)

{
"presets": ["@babel/preset-env"]
}

Environment

Babel version(s): v7.6.4

Issue 2:
bug report

Input Code

N/A

Babel Configuration (.babelrc, package.json, cli command)

// .babelrc, applicable code only
// using babel-preset-env v1.6.0
// using browserslist 2.5.1
{
"presets": [["env", {
"modules": false,
"debug": true,
}]]
}

// code in package.json
"browserslist": [
"last 2 Chrome versions",
"last 2 Opera versions",
"last 2 Firefox versions",
"last 2 Edge versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 ChromeAndroid versions"
]

Expected Behavior

The babel-preset-env should be able to use the settings from the browserslist config in package.json. This does not seem to work, though.

Current Behavior

babel-preset-env: `DEBUG` option

Using targets:
{}

Modules transform: false

Using plugins:
check-es2015-constants {}
transform-es2015-arrow-functions {}
transform-es2015-block-scoped-functions {}
transform-es2015-block-scoping {}
transform-es2015-classes {}
transform-es2015-computed-properties {}
transform-es2015-destructuring {}
transform-es2015-duplicate-keys {}
transform-es2015-for-of {}
transform-es2015-function-name {}
transform-es2015-literals {}
transform-es2015-object-super {}
transform-es2015-parameters {}
transform-es2015-shorthand-properties {}
transform-es2015-spread {}
transform-es2015-sticky-regex {}
transform-es2015-template-literals {}
transform-es2015-typeof-symbol {}
transform-es2015-unicode-regex {}
transform-regenerator {}
transform-exponentiation-operator {}
transform-async-to-generator {}
syntax-trailing-function-commas {}

Possible Solution

Context

Your Environment

software
version(s)

Babel
6.26.0

node
8.6.0

npm yarn
1.2.1

Operating System
Windows 10 Fall Creators Update
Issue 1:
Joris Kuipers opened SPR-7706 and commented

ServletWebRequest#checkNotModified will set a 304 response code, but doesn't set the Content-Length header to 0. This leads to exception on WebLogic, which gets all worked up about the fact that there's no response body even though the Content-Length headers claims there is:

<Error> <HTTP> <BEA-101104> <Servlet execution in servlet context "ServletContext@26118573[app:MP24MotorPrototype module:MP24 path:/MP24 spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '3291' bytes..

java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '3291' bytes.

at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:425)

at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1451)

at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1494)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1441)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

Affects: 3.0.5

Issue Links:

#12668 ResourceHttpRequestHandler status code 304 setting Content-Length header ("is duplicated by")

Referenced from: commits db3634f

1 votes, 2 watchers

Issue 2:
Mike Youngstrom opened SPR-3279 and commented

Cglib appears to be a poorly maintained and dying project. It would be nice to replace it with a more actively maintained project like javaassist for library dependency reasons. Newer versions of asm are not compatibly with the asm included in cglib-nodep which can cause problems.

Spring already provides all the abstraction needed to replace cglib with javaassist. a system property can be used initially while the javaassist aop provider is tested and then perhaps later could replace cglib as the default. Just a thought.

Mike

Affects: 2.0.3

Issue Links:

#12840 Support for ByteBuddy as an alternative to CGLIB ("duplicates")

9 votes, 8 watchers
Issue 1:
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

2.1.0 version does not include @angular/forms/src/directives/number_value_accessor in generated factories

2.1.1 include it but in genDir/node_modules/@angular... this file is missing

Expected behavior

Compiling as was

Angular version: 2.1.1

Language: Typescript 2.03

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

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

When running ngc the compiler doesn't codegen components inside node_modules when the component isn't exported (export * from './my.component';) from the module. There are no errors emitted and all the *.metadata.json files for the libraries exist.

Expected behavior

For ngc to successfully codegen all 3rd party components without having to export the components publicly

Reproduction of the problem

Checkout this repo: https://github.com/mattlewis92/angular2-tv-tracker

npm install
npm run ngc

You will then see that only one ngfactory.ts module file is emitted for each 3rd party module inside of the aot/module_modules folder, but none of the other components are codegen'd. As you can see from the screenshot, the reference to the './directives/calendarTooltip.directive.ngfactory' file is created but the file itself doesn't exist.

If you need any more info let me know!

Please tell us about your environment:

OSX

Angular version: 2.0.X

2.0.1

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 ]

N/A

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

Typescript

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

v5.11.0
Issue 1:
Electron Version:

5.0.0-beta

Operating System:

Ubuntu 16.04 on WSL Windows 10 Enterprise 1809 + Xming 6.9.0.31

Last Known Working Electron version::

4.0.5

Expected Behavior

Launching and working as it should with export DISPLAY=:0 && npm test

"test": "electron . -d --remote-debugging-port=9229",
"test-no-sandbox": "electron . -d --no-sandbox --remote-debugging-port=9229 --disable-gpu",
"test-no-gpu": "electron . -d --disable-gpu --remote-debugging-port=9229"
...

Actual Behavior

While Electron does do that, Electron 5 throws an error and exits:

[2894:0310/125857.514560:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

Launching with --no-sandbox opens up a window and after a second crashes:

[3122:0310/130304.279934:FATAL:gpu_data_manager_impl_private.cc(892)] The display compositor is frequently crashing. Goodbye.

To Reproduce

Run any Electron app

Screenshots

Additional Information

I heard and saw similar problems earlier, but this one seems to be different.

Issue 2:
electron: 5.0.0-beta.1

platform: linux x64

Actual behavior

https://github.com/electron/electron-quick-start app fails to start with the following error:

[3937:0131/003107.790938:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

To Reproduce

git clone https://github.com/electron/electron-quick-start.git

cd electron-quick-start

npm install

npm add --only=dev electron@5.0.0-beta.1

any of the following commands fail:

npm start

node_modules/.bin/electron --version

Additional Information

Worth to mention that event just node_modules/.bin/electron --version execution fails with the same error.

CC @nornagon
Issue 1:
Describe what you were doing when the bug occurred:

1.viewing profiler commits

Please do not remove the text below this line

DevTools version: 4.11.0-39713716aa

Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20505:53)

at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20397:26)

at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20951:11)

at CommitRankedAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35713:33)

at Rh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13245:7)

at Ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13944:7)

at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16725:86)

at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)

at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)

at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)

Component stack: at CommitRankedAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35696:34)

at div

at div

at div

at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)

at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37243:34)

at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)

at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)

at div

at div

at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)

at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)

at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)

at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)

at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)

Issue 2:
Briefly spoke to @petehunt about this. Tracking it with an issue.

There are times when having multiple insertion points would be useful. The old Web Components spec was looking to do this with the select attribute of content - http://www.w3.org/TR/components-intro/#insertion-points. I'm not sure what the current W3C plans are.

Pete said that this could be done for now by passing other children in as props. But it feels like a hack.

Riffing on that old spec's idea, something vaguely like this:

<div>
<div class="header">
{ select(this.props.children, '.title') }
</div>
{ this.props.children }
</div>

Where the .title string is a CSS selector, and any matching elements are removed from the children to avoid duplicate insertion.
Issue 1:
I've been using HoverProvider to quickly display the origin file of a user function in Lua.

I'm using the Markdown syntax for creating a clickable link, which opens the file in the editor:

[c:\temp\file.lua](file:c:\temp\file.lua) -> c:\temp\file.lua

I'm wondering if this link syntax also supports line number, and if it does, what is the syntax of it?

I believe this question is also generally related to all places where an extension can display text formatted with Markdown.

Issue 2:
Hi,

At the moment the virtual documents created by TextDocumentContentProvider can contain links to external resources, but I would expect it to work with links that use the same scheme that was registered with registerTextDocumentContentProvider. Here's an example to show what I mean:

"use strict";
var vscode = require('vscode');

function activate(context) {

let initUri = vscode.Uri.parse('link-test://authority/page1');

const provider = {
provideTextDocumentContent: function(uri) {
if (uri.path === "/page1") {
return `<a href="link-test://authority/page2">Page 2</a>`;
} else {
return `<a href="link-test://authority/page1">Page 1</a>`;
}
}
};

let registration = vscode.workspace.registerTextDocumentContentProvider('link-test', provider);

let disposable = vscode.commands.registerCommand('extension.testLinks', () => {
return vscode.commands.executeCommand('vscode.previewHtml', initUri, vscode.ViewColumn.Two).then((success) => {
}, (reason) => {
vscode.window.showErrorMessage(reason);
});

});
context.subscriptions.push(disposable, registration);
}
exports.activate = activate;

When I click the link Page 2 I would expect the provideTextDocumentContent callback to be called with the URI specified in the link.
Issue 1:
const array: Uint8Array = new Float32Array(0);

This is difference types, but typescript not see errors =\

Issue 2:
All typed arrays are assignable in our present dts.

let arr = new Uint8Array(20);
let arr2 = new Int16Array(20);
arr = arr2; // Valid.

The same is true of specific errors:

let err = new SyntaxError();
let err2 = new RangeError();
err = err2; // Also valid

We should fix this, as both of these sets of types are sets whose members are meant to be distinguished by type rather than by structure. This is really important in the case of typed arrays, as the following happens:

let arr = new Uint8Array(20);
let arr2 = new Int16Array(20);
arr = arr2; // Valid.
let sliced = arr.slice(0, 10); // Typed as a Uint8Array (really an Int16Array at runtime)
Issue 1:
I find that .last() does not perform as expected.

Example:

df = pd.DataFrame([[179293473,'2016-06-01 00:00:03.549745','http://www.dr.dk/nyheder/',39169523],[179293473,'2016-06-01 00:04:22.346018','https://www.information.dk/indland/2016/05/hvert-tredje-offer-naar-anmelde-voldtaegt-tide', 39125224],
[179773461, '2016-06-01 22:13:16.588146', 'https://www.google.dk', 31658124],
[179773461, '2016-06-01 22:14:04.059781', 'https://www.google.dk', 31658124],
[179773461, '2016-06-01 22:16:37.230587', np.nan, 31658124],
[179773461, '2016-06-01 22:23:09.847149', 'https://www.google.dk', 32718401],
[179773461, '2016-06-01 22:23:55.158929', np.nan, 32718401],
[179773461, '2016-06-01 22:27:00.857224', np.nan, 32718401]],
columns=['SessionID', 'PageTime', 'ReferrerURL', 'PageID'])

Problem description

When I run:

df.groupby('SessionID').last()

I get:

SessionID
PageTime
ReferrerURL
PageID

179293473
2016-06-01 00:04:22.346018
https://www.information.dk/indland/2016/05/hve...
39125224

179773461
2016-06-01 22:27:00.857224
https://www.google.dk
32718401

Expected Output

When, in fact, I was expecting the same result as obtained from:

df.groupby('SessionID').nth(-1)

SessionID
PageID
PageTime
ReferrerURL

179293473
39125224
2016-06-01 00:04:22.346018
https://www.information.dk/indland/2016/05/hve...

179773461
32718401
2016-06-01 22:27:00.857224
NaN

And while we are at .nth(), why does it mix up my column order?

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.4.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 79 Stepping 1, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0

pytest: 3.3.2

pip: 9.0.3

setuptools: 38.4.0

Cython: 0.27.3

numpy: 1.14.0

scipy: 1.0.0

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.6.6

patsy: 0.5.0

dateutil: 2.6.1

pytz: 2017.3

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.4

feather: None

matplotlib: 2.1.2

openpyxl: 2.4.10

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 1.0.2

lxml: 4.1.1

bs4: 4.6.0

html5lib: 1.0.1

sqlalchemy: 1.2.1

pymysql: None

psycopg2: 2.7.4 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
This is incorrect, as this is applied column by column (as they are different dtypes)

so _first_compat should first compute the mask then use it.

from SO

In [18]: df = pd.DataFrame([{'id':"a",'val':np.nan, 'val2':-1},{'id':"a",'val':'TREE','val2':15}])

In [19]: df
Out[19]:
id val val2
0 a NaN -1
1 a TREE 15

In [20]: df.groupby('id').first()
Out[20]:
val val2
id
a TREE -1