WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

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

Environment

Dubbo version: 2.7.4.1

Operating System version: xxx

Java version: 1.8

because invocation.getMethodName() is $invoke

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

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

Environment

Dubbo version: 2.7.3

Operating System version: windows

Java version: 1.8

Steps to reproduce this issue

dubbo-spring-boot-starter: 2.7.3

application.properties

dubbo.registrys.cob1.address=zookeeper://127.0.0.1:2181

dubbo.registrys.cob2.address=zookeeper://127.0.0.1:2181

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

Expected Result

What do you expected from the above steps？

how to solve the problem

Actual Result

What actually happens?

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

No registry config found or it's not a valid config! the registry config is<dubbo:registry valid ="false" zookeeperprotocol="false" prefix="dubbo.registry"
Issue 1:
julia> using OffsetArrays, LinearAlgebra

julia> convert(OffsetArray{ComplexF64,2, Diagonal{ComplexF64,Vector{ComplexF64}}}, OffsetArray(zeros(ComplexF64,3,3), 0,0))
ERROR: MethodError: Cannot `convert` an object of type
OffsetArray{Complex{Float64{}},2,Matrix{ComplexF64}} to an object of type
OffsetArray{Complex{Float64{}},2,Diagonal{ComplexF64, Vector{ComplexF64}}}
Closest candidates are:
convert(::Type{T}, ::Factorization) where T<:AbstractArray at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/LinearAlgebra/src/factorization.jl:58
convert(::Type{T}, ::T) where T<:AbstractArray at abstractarray.jl:16
convert(::Type{T}, ::T) where T at essentials.jl:228
...
Stacktrace:
[1] top-level scope
@ REPL[16]:1

julia> VERSION
v"1.7.0-DEV.1025"

The eltype in the error message is displayed as Complex{Float64{}} instead of Complex{Float64}. This only happens for some combinations of types.

Issue 2:
julia> typealias SelfDict{T} Dict{T,T}
Dict{T,T}

julia> isself(d::Dict) = false
# methods for generic function isself
isself(d::Dict{K,V}) at none:1

julia> isself(d::SelfDict) = true
# methods for generic function isself
isself(d::Dict{T,T}) at none:1

julia> isself([1=>2])
true

julia> isself([1=>"foo"])
true
Issue 1:
One project I'm working on has three different places where I need to pass options to 6to5. There's the test suite that runs ES6 code with 6to5/register, the Gulpfile that builds ES5 code that I can npm publish, and the REPL.

Keeping all three in sync is not easy, especially when configurations change (e.g. just released 3.0). What about having all three reading their configuration from the same file?

Issue 2:
Issue originally made by Jon Moss (maclover7)

Description

It seems like we are double testing Babel on both CircleCI and TravisCI. The only purpose of Circle appears to be to run tests on Node.js version [[ https://github.com/babel/babel/blob/master/circle.yml#L4 | 0.10.0 ]], which is already [[ https://github.com/babel/babel/blob/master/.travis.yml#L14 | duplicated ]] in the Travis build configuration. I propose that we remove the Circle integration, as this wastes resources, and also also slows down PR build times.

Happy to send in a PR to take care of this, although may require a repo admin to go to Circle's site and manually turn off the integration. :-)
Issue 1:
I've been checking values in Scipy's implementation of hyp1f1 against other implementations and I noticed some discrepancies where Scipy's solution seems to be off.

scipy.special.hyp1f1(a,b,c) vs M(a,b,c) from (http://keisan.casio.com/exec/system/1349143651).

In particular, take small values of a, b, and c, say a = 1, b = 5, and c = 0.01.

Both equal: 1.002003338101197 (with differences in the remaining digits)

However change a to 50 and b to 100. a = 50, b = 100, and c = 0.01.

scipy.special.hyp1f1(a,b,c) = 1774259915037.1118

M(a,b,c) = 1.005012645242146341004

I've double checked on Matlab and the latter is correct. In general, higher values of a and b give the scipy implementation greater trouble. This is using scipy version 0.13.3. There was an earlier report similar in nature (#946) which has since been closed.

Issue 2:
Mathematica gives 0.999737 for the following, but in scipy we get -1.87e8:

In [22]: scipy.special.hyp1f1(0.01, 150, -4)
Out[22]: -187159708.75814998

In [23]: scipy.__version__
Out[23]: '0.14.0b1'
Issue 1:
if we can support the selector policy thinking browser as blackbox, the user experience will more awesome.

https://github.com/getgauge/taiko#smart-selectors

https://docs.taiko.dev/api/relativeselector/

these feature can improve the productivity of producting command when user interacting web application in auth script mode.

Issue 2:
Let us know what functionality you'd like to see in Playwright and what is your use case.

A special locator to visually locate an element.

In taiko, browser automation library by thoughtwork, you could locate element visually like the following:

click(checkbox(near("Username")))

Taiko calls it proximity locator

Refer: https://docs.taiko.dev/#smart-selectors

This locator will reduce the flakiness of the script and the maintenance cost because the locator doesn't rely on html structure that may be changed from time to time. Even we can assign data-testid attribute but this is very useful in some cases as well.

Do you think others might benefit from this as well?

Yes, it is.
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy as np

df = pd.DataFrame({ 'A' : 1.,
'B' : [2, 2, 4, 4],
'C' : ['T1', 'T2', 'T1', 'T2'],
'D' : 3.,
'E' : np.nan})
#df

tablea = pd.pivot_table(df, values='D', index=['A', 'B'],
columns=['C'], aggfunc=np.sum)
#tablea

tableb = pd.pivot_table(df, values='D', index=['E', 'B'],
columns=['C'], aggfunc=np.sum)
#tableb

Problem description

One is not able to use np.nan as a pivot value.

The ouput for the first pivot table (tablea) as expected is

C	T1	T2
A	B
1.0	2	3.0	3.0
4	3.0	3.0

The output for the second table (tableb) is which is completely blank.

E | B
-- | --

Expected Output

I was hoping for

C	T1	T2
E	B
np.nan	2	3.0	3.0
4	3.0	3.0

This behavior is not necessarily a problem but I'm just trying to get clarity on if this is expected.

I know that groupby excludes NaN by design and I expect that this is related to that. Is that the case?

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.20.3

pytest: 3.2.2

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.26.1

numpy: 1.13.1

scipy: 0.19.1

xarray: None

IPython: 6.1.0

sphinx: 1.3.1

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.2

feather: 0.4.0

matplotlib: 2.0.2

openpyxl: 2.5.0a3

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.8

lxml: 3.8.0

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: 1.1.11

pymysql: 0.7.9.None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
ENH: maybe for now just provide a warning if dropping the nan rows when pivotting...

rom ml

http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans

This is effectivly trying to groupby on a NaN, currently not allowed

In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]]

In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e'])

In [15]: df.groupby(['a','b']).sum()
Out[15]:
c d e
a b
a b 13.00 13 13
b a 123.23 123 1

Workaround to fill the index with a dummy, pivot, and replace

In [31]: df2 = df.copy()

In [32]: df2['dummy'] = np.nan

In [33]: df2['b'] = df2['b'].fillna('dummy')

In [34]: df2
Out[34]:
a b c d e dummy
0 a b 12.00 12 12 NaN
1 a dummy 12.30 233 12 NaN
2 b a 123.23 123 1 NaN
3 a b 1.00 1 1 NaN

In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum)
Out[35]:
a b c d e
0 a b 13.00 13 13
1 a dummy 12.30 233 12
2 b a 123.23 123 1

In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan)
Out[36]:
a b c d e
0 a b 13.00 13 13
1 a NaN 12.30 233 12
2 b a 123.23 123 1
Issue 1:
Does anyone know why this isn't working?

I'd like Webpack to load one directory of.scss files with sass-loader, and the rest to use postcss-loader. I figured I could just have two sections in my Webpack config that would test for /\.scss$/, using exclude: [...bootstrap folder...] in the one that uses postcss and include: [...bootstrap folder...] in the one that uses Bootstrap. But webpack seems to completely ignore my second definition.

The motivation for this is I've found that the PostCSS Sass loader isn't able to load Bootstrap v4, due to circular dependencies in its mixins (see my issue on their project and numerous conversations with that group on Gitter.im). So I'm trying to isolate the Bootstrap .scss files to load with the Sass loader, which can do this. Webpack doc seems to suggest it's supported.

Here are my Scss loader sections:

{
test: /\.scss$/,
exclude: [
path.resolve(__dirname, '../node_modules/bootstrap/scss'),
path.resolve(__dirname, '../node_modules/bootstrap/scss/mixins'),
],
loaders: [
'isomorphic-style-loader',
'css-loader?' + (DEBUG ? 'sourceMap&' : 'minimize&') +
'modules&localIdentName=[name]_[local]_[hash:base64:3]',
'postcss-loader?parser=postcss-scss&pack=compile',
'postcss-loader?pack=import',
],
}, {
test: /\.scss$/,
include: [
path.resolve(__dirname, '../node_modules/bootstrap/scss'),
path.resolve(__dirname, '../node_modules/bootstrap/scss/mixins'),
],
loaders: [
'isomorphic-style-loader',
'css-loader?' + (DEBUG ? 'sourceMap&' : 'minimize&') +
'modules&localIdentName=[name]_[local]_[hash:base64:3]',
'sass-loader',
],
}

And the errors are, for example:

ERROR in ./~/css-loader?sourceMap&modules&localIdentName=[name]_[local]_[hash:base64:3]!./~/postcss-loader?parser=postcss-scss&pack=compile!./~/postcss-loader?pack=import!./src/components/App/App.scss
Module build failed: Error: C:\path\to\project\node_modules\bootstrap\scss\_mixins.scss:18:1: Failed to find 'mixins/breakpoints' from C:\path\to\project
in [
C:\path\to\project\node_modules\bootstrap\scss,
C:\path\to\project\src\components,
C:\path\to\project\src\components\App
]

Issue 2:
The webpack.config.js looks like:

...
entry: {
polyfill: 'client/polyfill',
head: 'client/head',
tutorial: 'tutorial/client',
profile: 'profile/client',
footer: 'client/footer'
},
plugins: [
new CommonsChunkPlugin("head", "head.js"),
]

Do I get it right that CommonsChunkPlugin looks for common modules in at least two entries? So that if there's a common chunk in head and tutorial, it will extract it even if it's not used anywhere else?

And if there's a common require in profile and footer (but nowhere else), will it also go to head?

...And if there's a require in head, then the module will remain in head, and never duplicated? (that's important, cause I initialize it in head).

To my understanding, the answer is 'Yes' for all 3 questions, but I tried to check the source, in CommonsChunkPlugin.js the line compilation.plugin(["optimize-chunks", "optimize-extracted-chunks"], function(chunks) { ... } provides the initial chunks, and I couldn't find the documentation about what "optimize-chunks" and "optimize-extracted-chunks" give.

Thank you very much :)
Issue 1:
From @nampdn on November 21, 2017 1:56

Hi, It would be great if we can make this plugin work with Apple FPS natively.

Can we work on this ?

Copied from original issue: sigurdm/video_player#8

Issue 2:
Hello Everyone,

First of Thanks for such a beautiflu Framework. I really loved working in flutter and found it fast and to be much reactive as comared to native Andriod and iOs based application.

I am creating a VOD platform/ like testing to port out the existing application to Flutter.

The main issue which I am facing is Playing of DRM (.mpd format with a License URL) content in Flutter using video_player widget.

Has anybody ttried playing Protected DRM content in Flutter?
Issue 1:
Transparent window will not fill screen when max.

It will keep a gap between window border and screen edge.

This is a top-right corner of my test window,

the white and light gray border is gap.

OS: Windows 8.1

electron: v0.26.0

Code:

index.html

<!DOCTYPE html>
<html>
<head>
<title>test</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #000;
}
</style>
</head>
<body style="-webkit-user-select:none;-webkit-app-region:drag"></body>
</html>

app.js

var app = require("app");
var browserWindow = require("browser-window");

var window = null;

app.on("window-all-closed", function () {
if (app.listeners("window-all-closed").length == 1)
app.quit();
});

app.on("ready", function () {
window = new browserWindow({
"width": 600, "height": 400,
"frame": false, "transparent": true,
"node-integration": true
});
window.loadUrl("file://" + __dirname + "/index.html");
window.on("closed", function () {
window = null;
});
});

run the code, and set the window max:

Issue 2:
On Windows 8.1 the transparency feature works fine until the moment when a window becomes maximized. After that it become to look like this(notice the frame style and also it looks like the additive blending mode is applied):

Is this bug related to the specific version of Windows(haven't checked it on earlier versions)? I've tried to look into the Electron sources but can't find entry points where it works with DWM...

P.S.

I have just checked this on Windows 7, same behaviour.
Issue 1:
Scott Andrews opened SPR-5367 and commented

Hard coded request mapping values should take precedence over path variables. Wild card patterns in a path are currently inferior to explicit values. Path variables should be applied after explicit paths and before wild cards.

For example:

@RequestMapping(value = "/resources/new/", method = RequestMethod.GET)

is currently trumped by

@RequestMapping(value = "/resources/{resourceName}/", method = RequestMethod.GET)

@RequestMapping(value = "/resources/new/", method = RequestMethod.GET)

currently trumps

@RequestMapping(value = "/resources/*/", method = RequestMethod.GET)

@RequestMapping(value = "/resources/new/", method = RequestMethod.GET)

should trump

@RequestMapping(value = "/resources/{resourceName}/", method = RequestMethod.GET)

should trump

@RequestMapping(value = "/resources/*/", method = RequestMethod.GET)

Affects: 3.0 M1

Issue Links:

#10035 @RequestMapping best match gives wrong Controller method when using wildcards ("is duplicated by")

#10401 @Controller method order effects @RequestMapping behavior in ways not expected

#10593 REOPENED -PathVariable mappings are greedy over hard coded mappings

#12183 Synchronization in AnnotationMethodHandlerAdapter

Referenced from: commits 4108927, c7d1d3c

Issue 2:
John Newman opened SPR-3542 and commented

Hi,

given this config:

<bean id="parent" scope="prototype" abstract="true">

<property name="prop" ref="prop" />

.....

</bean>

<bean id="child1" parent="parent" class="X" />

<bean id="child2" parent="parent" class="X" />

<bean id="child3" parent="parent" scope="singleton" class="X" />

the prototype attribute on the abstract parent does not carry down to any child beans. So child1 & 2 here are scoped singleton, wouldn't it make sense to inherit that? I am not sure, just throwing this out there for someone to consider. If it does, the child beans could also override scope and the similar attributes.

If it doesn't make sense, abstract="true" & scope="*" should probably generate an xml error since they will be a waste of typing.

Affects: 2.1 M2

Issue Links:

#10523 Method lookup facility doesn't work properly with scope defined in parent bean ("is duplicated by")

#17171 Update documentation after SPR-3542

Referenced from: commits a884a40, d0b6891

8 votes, 9 watchers
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow.

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @FDIM @kolodny (didn't know who to pick and it seemed a bit excessive to mention all, so I picked two random names out of the list, hope that's appropriate)

I have a freshly updated Angular project with the latest TypeScript 3.5.2 and jasmine 3.3.13. During testing, I got an error with one of my mock objects.

export class AuthServiceMock {
constructor() {
spyOn(this, 'logoff');
}

logoff() { }
}

This test code used to work, but now using spyOn() gives an error:

Argument of type '"logoff"' is not assignable to parameter of type 'this["logoff"] extends Function ? "logoff" : never'.ts(2345)

It's easily circumventable using as:

spyOn(this as AuthServiceMock, 'logoff');

But this shouldn't be necessary, so I thought I'd share my findings.

Issue 2:
const x = _.chain([1]).value();

Type of x is ArrayLike<number>. But it should be number[];

/cc @aj-r
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

The developer needs to think on three different options (imports, declares or providers) for deciding where to put the related code.

@NgModule({
imports: [ CommonModule, FormsModule ],
declarations: [ ContactComponent, HighlightDirective, AwesomePipe ],
exports: [ ContactComponent ],
providers: [ ContactService ]
})
export class ContactModule { }

Expected/desired behavior

Use a single attribute (e.g.: 'imports') to simplify the way things should be imported by a module. The framework should be smart enough to detect (at runtime) the type of each imported entry (if required).

Reproduction of the problem

If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

@NgModule({
imports: [ CommonModule, FormsModule,
ContactComponent, HighlightDirective, AwesomePipe,
ContactService]
exports: [ ContactComponent ]
})
export class ContactModule { }

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

Simplify. Less code to think about, less code to write, and less code to maintain.

Please tell us about your environment:

Angular version: 2.0.0-rc.5

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]

TypeScript

Issue 2:
i have tried

import template from "./home.html"

but it makes some misstakes when i compiled with browserify,what the errors are:

TypeScript error: src/app/pages/home/home.ts(8,22): Error TS2307: Cannot find module './home.html'.

how to solve it ?thanks
Issue 1:
Potential Duplicate

This may overlap with #20067 but I'm not sure, as that issue does not contain screenshots. Please feel free to delete if this is already tracked elsewhere.

Issue Details

Electron Version: 4.2.10

Operating System: Windows 10 18362

Last Known Working Electron version: N/A

Description

Window renders incorrectly. Generally shows a blank space at the top of the screen that results in being unable to see the top menu bar and the area just below it.

Screenshot:

Same issue, but using a different theme so that it's clearer to see what's going on:

To Reproduce

Open an Electron app (occurs in the latest versions of Slack and VSCode)

Move it to the other monitor by dragging with the mouse and let it snap to fullscreen OR move to other monitor with Windows + Left key and then Windows + Up

Workaround

Press the Windows + Left or Windows + Right key to display the app in only half of the screen

OR

Keep the app windowed and drag it to an "almost fullscreen" size

Issue 2:
NOTE: I previously reported this at #21229 which was closed after someone was unable to reproduce it. I insist that this bug is present, and is an Electron bug, because it occurs on Caprine, Slack, WhatsApp, VS Code, and my own home-built Google Photos desktop app. After the issue was closed, @nielsvandepas was able to reproduce the bug, but the issue was not reopened after commented. I'm not sure why this issue couldn't be reproduced using the steps I've given, so I'm attaching screenshots. Sorry for duplicate - I don't have permissions for reopening the other issue.

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:

7

Operating System:

Mac OS X

Last Known Working Electron version:

N/A

To Reproduce

Connect MacBook to a non-retina display - in my case, a 40" 4k display connected via DisplayPort with standard scaling (i.e. full resolution, not retina-like 1080p scaled up to 4k).

Close the MacBook lid.

Open an Electron app.

Unplug the display.

Open the MacBook lid. Electron app is blurry.

Screenshots
Issue 1:
Bug Report

Current Behavior

according to https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html, It says that top-level exports is immutable. so I test it on babel and node esm module loader, but it generates different results.

Input Code

the demo is here https://github.com/hardfist/babel-module

npm run esm and npm run cjs generates different result.

// main.mjs
import * as lib from './lib';

lib.name = 'lib';
console.log('lib:',lib);

// lib.mjs
export const foo = 'bar';

esm results

(node:70216) ExperimentalWarning: The ESM module loader is experimental.
TypeError: Cannot add property name, object is not extensible

babel results

lib: { foo: 'bar', name: 'lib' }

Expected behavior/code

same behavior for babel and node esm module loader

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

module.exports = {
presets: [
[
'@babel/env',
{
modules: 'commonjs',
targets: {
node: 'current',
},
},
],
],
};

Environment

Babel version(s): 7.1.6

Node/npm version: 10.13.0

OS: 10.12.4

How you are using Babel: cli

Possible Solution

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue 2:
export.js

export var value = 0;

import1.js

import {value} from "./export";
value++; // SyntaxError: import.js: Line 2: "value" is read-only

import2.js

import * as export from "./export";
export.value++; // No error

If I understand the specification properly, both of these should throw an error as all the properties of export should be immutable bindings