WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I found that the unit test of the serialization module has serious code duplication problems.

I recommend adding a dubbo-serialization-test module to centralize unit tests for other serialization modules.

Issue 2:
Copied from nacos#1396, @mercyblitz has confirmed this is a bug of Dubbo.

服务列表里可以查询到，但是日志报错。

报错内容如下：

[19/06/19 04:21:36:036 CST] com.alibaba.nacos.client.naming.updater ERROR client.naming: [NA] failed to update serviceName: DEFAULT_GROUP@@configurators:org.apache.dubbo.samples.basic.api.DemoService::
java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/list after all servers([127.0.0.1:8848]) tried: failed to req API:http://127.0.0.1:8848/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@configurators:org.apache.dubbo.samples.basic.api.DemoService::
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)
at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217)
at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273)
at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.4

When using multiple bundles (using the "old" structure from before the AppBundle / bundle-less usage) which use the services.yml convention to describe the services, and using anonymous services in multiple of these services files the dumped container doesn't work. This is because every anonymous service gets assigned an id based on a counter and the hash of the filename (YamlFileLoader line 691: $id = sprintf('%d_%s', ++$this->anonymousServicesCount, hash('sha256', $file));). But the $file is only the services.yml (as specified in the ->load call), and the anonymousServicesCount is an instance variable and resetted in the ->load call. This leads to duplicate ids for these anonymous services and will override the previous anonymous service.

A simple test case for this is an Extension which uses two file loaders (which works the same as using multiple bundles each with its own extension using a single loader):

$loader = new YamlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config/foo')
);
$loader->load('services.yml');

$loader = new YamlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config/bar')
);
$loader->load('services.yml');

As services files the following can then be used:

services:
AppBundle\Hello:
arguments:
- !service {class: AppBundle\World}

and

services:
AppBundle\Foo:
arguments:
- !service {class: AppBundle\Bar }

The dumped container will then contain just one anonymous service, being 1_21ea027d6c8c91cadbe51f665e92e08366c04a3d9e7e6eb94ba265237673a195 (in a proper setup there will be two more from the Config component), while there should be two (one to create the AppBundle\World instance and another to create the AppBundle\Bar instance).

Further inspection then of course also reveals that both the AppBundle\Hello and AppBundle\Foo creation methods also reference the same service id, being that 1_21ea027d6c8c91cadbe51f665e92e08366c04a3d9e7e6eb94ba265237673a195 service.

Issue 2:
Given the following example:

--parent.html.twig
<div id="container">
{% block body %}
{% endblock body %}
</div>
{% block modals %}
{% endblock modals %}

--child.html.twig

{% extends "parent.html.twig" %}

{% block body %}
{% block modals %}
<div id="childModal"></div>
{% endblock modals %}
{% endblock body %}

childModal will appear twice in the rendering of child, once inside #container, and another one after it. Is this expected behaviour? It's a special case of nested blocks not reflected on the manual
Issue 1:
Forked from #12143

Now that we have deployment resource, we should use that in kubectl rolling-update, instead of maintaining duplicate client side logic.

cc @ironcladlou @janetkuo @bgrant0607

Issue 2:
cc @smarterclayton

As I understand it, the nickname for each operation should be unique[1]. I searched the open issues, and could not find an open issue relating to this, however my apologies if this is a duplicate.

Since the introduction of 'namespaced' apis (/api/v1/services v.s./api/v1/namespaces/{namespaces}/services), there are operations with duplicate nicknames [2][3].

This means when we try to consume APIs via their swagger definition, the client overwrites the namespaced version of the API with the non-namespaced version.

Maybe listService and listServiceByNamespace might be the convention to go by?

Thanks @webron for the help in IRC confirming this

[1] OAI/OpenAPI-Specification#64

[2] https://github.com/GoogleCloudPlatform/kubernetes/blob/master/api/swagger-spec/v1.json#L9961

[3] https://github.com/GoogleCloudPlatform/kubernetes/blob/master/api/swagger-spec/v1.json#L10863
Issue 1:
When using styled-jsx in the latest beta, CSS animation keyframes are missing in production. I only noticed this happening today.

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

Expected Behavior

A production build should include CSS animation keyframes.

Current Behavior

CSS animation keyframes do not appear in the production build, causing a loss of all animations on the front end.

Your Environment

Tech
Version

next
4.0.0-beta.3

node
v8.6.0

Issue 2:
I am using styled-jsx throughout my app and I am getting a flicker when the server loads the initial page.

This only happens when I use a custom _document.js, so it must be something with that page.

This is the code:

import Document, { Head, Main, NextScript } from 'next/document'
import GoogleTagManager from '../utils/GTM'
import flush from 'styled-jsx/server'

export default class MyDocument extends Document {
static async getInitialProps ({ renderPage }) {
const { html, head } = renderPage()
const styles = flush()
return { html, head, styles }
}
render () {
console.log('styles: ', this.props.styles)
return (
<html>
<head>
<script src={`https://maps.googleapis.com/maps/api/js?key=${GOOGLE_KEY}`} />
<meta charSet="utf-8" />
{this.props.styles}
</head>
<body className="body">
<GoogleTagManager gtmId='GTM-xxx' />
<div id="fb-root" />
<Main />
<NextScript />
</body>
</html>
)
}
}

Output:

styles: []
styles: []

The console output for props.style is always empty arrays. Should this be done in a different way? I'm unsure what to do as the docs seem to say this is all that is needed.

Your Environment

Tech
Version

next
2.4.6

node
7.7.4

OS
w10/macos/centos

browser
all

etc
Issue 1:
Environment

Windows build number: 10.0.18362
Windows Terminal version (if applicable): 0.4.2382.0

Any other software?

Steps to reproduce

Open Terminal.

Open new tab of powershell.

Run VS Code as a child process of the tab (just code . as long as no other VS Code windows are open).

Close tab with GUI child process.

Expected behavior

Tab is closed, child process is killed.

Actual behavior

WindowsTerminal.exe is not responding.

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.4.2382.0

Steps to reproduce

Resize the window (or maximize or unmaximize it) and drag the scrollbar.

Expected behavior

The terminal is scrolled when dragging the scrollbar

Actual behavior

Dragging moves the scrollbar but doesn't scroll the terminal. Also the scrollbar sometimes changes size when i start dragging it. Moving the scrollbar completely to the bottom and releasing it makes scrolling work again.
Issue 1:
Is there a way to configure VSCode, so that it always shows a fixed number of pane? Or keep the pane even when there is no open file.

Something like

Issue 2:
When a JavaScript function is defined and committed to git, vscode takes further changes to the file and incorrectly notifies the user of a duplicate function implementation because of the older git version of the code and the edited version are thought to be different functions by vscode. After the change to the file is committed to git, the incorrect error underlining goes away.
Issue 1:
I'm creating a server in Deno that will be able to run user submitted scripts as "applications".

The script/application will be imported dynamically (first time running the script) and cached by deno for subsequent requests.

The script/application should by default have read access to its folder and only that specific folder. (It needs this permission so that it can run in the first place since its dynamically imported).

To make sure that the foreign scripts/applications don't violate the read permission, (bear in mind that permissions granted apply to the whole server, not just the module/script that requested it), I have only one foreign script/application running at any given time. Once it's done, i revoke its permissions in-case i need to call another foreign script/application during the same request.

Seeing that for each script that I ran I have to grant and deny permissions per request, and I know the permission each script needs ahead of time, is there a way to programaticaly Grant a permission?

Here is a portion of my entry point to load the scripts/apps:

this.router.get("/:application", composeMiddleware([err, setPermissions]), async (context, next) => {

let application = await import(`./Applications/${context.params.application}/${context.params.application}.ts`)

new application.default(context, next, this.router)
})

Here is my script to set permissions on each request per script:

async setPermissions(context: Record<string, any>, next: Function):Promise<void> {
const desc = { name: "read", path: "./Applications/Preferences/Preferences.ts" } as const
await Deno.permissions.request(desc)
await next()
}

A way to grant the above permission without having to go to the terminal for every request after its reset would be welcome.

Note: I have to revoke the permissions after each script is done just to enforce a type of module level permission

Issue 2:
Sorry if this has been asked or discussed before. Can't seem to find it.

Can I make sure imported scripts are in Sandbox mode even if my own script isn't.

// I'd like to make sure this imported script doesn't have access to disk or network even though my code is networking

import { SomeFeature} from "https://url.com/some-small-library.ts";
Issue 1:
Build failure here: http://build-us-00.elastic.co/job/es_g1gc_master_metal/20291/

If you call toString() of a python exception, jython tries to "render" it in a pythonisque way, but it seems to have localization problems, if the default locale uses a different number system.

As a workaround we can remove the toString in the assert of PythonSecurityTests.assertFailure() - that will stop build failures, until we have time to dig into jython's problems here.

Issue 2:
We've written some pretty complex queries and have had success with sort, until we recently attempted to sort by multiple fields on the same results. The following is only sorting on Field1. The data has several hundred records return with unique numbers on each of these two fields. No matter how we sort Field2, the records return in the same order (sorted only by Field1) every time.

"sort": [
{
"Field1": {
"order": "desc"
}
},
{
"Field2": {
"order": "asc"
}
}
]
Issue 1:
Bruno Thomas opened SPR-1352 and commented

Would it be possible to add a macro in spring.vm taking into account parameters for messages. For now we defined it in another macro file with :

#macro(springMessageWithArgs $code $args)$springMacroRequestContext.getMessage($code, $args)#end

Affects: 1.2.5

Issue 2:
Mark Vickers opened SPR-1116 and commented

Recent change to AbstractBeanFactory getType() causes all beans of the form <bean factory-method=""/> to be instantiated as soon as the container encounters a bean using autowiring.

This leads to an unpredictable (or at least, unexpected) order of bean instantiation. Applications working under 1.2rc1 may fail under 1.2.2.

Just want to make sure the implications of this change to the getType() method are fully thought through. Those of us using factory-method to make legacy code amenable to IOC could have a tough time with this change.

Is the run-time type returned by the factory-method really necessary here? Couldn't we reflectively get at the return type of factory-method instead, and wouldn't that be good enough? Or, could we not overload the class attribute of the bean?

More details at:

http://forum.springframework.org/viewtopic.php?t=6937

Note: #5819 outlines a (somewhat) related concern.

Affects: 1.2.2

Issue Links:

#5812 Autoproxy problems upgrading from 1.2.1 to 1.2.2 ("is duplicated by")

#5833 Property expansion broken by 1.2.2 ("is duplicated by")
Issue 1:
Bug Report

Current Behavior

As the documentation describes, the @babel/plugin-proposal-decorators can be configured through the parameters: decoratorsBeforeExport and legacy.

Somehow the combination of decoratorsBeforeExport: true & legacy: true throws an error.

Line of Code:

babel/packages/babel-plugin-proposal-decorators/src/index.js

Line 25
in
eac4c5b

"'decoratorsBeforeExport' can't be used with legacy decorators.",

Issue 2:
Bug Report

Current Behavior

In a recent v7 release (maybe even the final?), the parser decorators plugin option decoratorsBeforeExport no longer defaults as it used to.

const { parse } = require('@babel/core')

const result = parse(code, {
parserOpts: {
plugins: [
'decorators'
]
}
})

Results in an error:

/Users/jaydenseric/Sites/demo/node_modules/@babel/core/lib/transformation/normalize-file.js:209
throw err;
^

Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.

This is unexpected, as the decoratorsBeforeExport option is meant to default to false. Manually providing the same value as the supposed default works:

const result = parse(code, {
parserOpts: {
plugins: [
- 'decorators'
+ ['decorators', { decoratorsBeforeExport: false }]
]
}
})

Expected behavior/code

A clear and concise description of what you expected to happen (or code).

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

N/A.

Environment

Babel version(s): v7.0.0

Node/npm version: Node.js v10.9.0, npm v6.4.0

OS: macOS

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

How you are using Babel: [e.g. cli, register, loader]: API

Possible Solution

Additional context/Screenshots
Issue 1:
Seems like later version of Atom (.130+) have enabled the Services menu on OS X; however, I only see two service (see image) and have many installed (see second image). Use many of Terpstra's markdown services, including SearchLink, within other editors, but have not been able to get several to work in Atom. Anyone else experiencing this issue? Current version is .135.

Issue 2:
Looks like Atom disables the native Services menu on OS X. Any chance of enabling it? I have loads of useful services that I don't want to have to reimplement/replace as packages.
Issue 1:
import matplotlib.pyplot as plt

ax = plt.axes()
ax.axhline(5)
plt.plot(pd.date_range('2020-01', '2020-01-03'), [10, 15, 20])
plt.tick_params(labelcolor='white')

I expect the start to be 2020-01, not 2000-01.

Without date times, it works as expected (start = 10):

ax = plt.axes()
ax.axhline(5)
plt.plot([10, 15, 20], [10, 15, 20])
plt.tick_params(labelcolor='white')

Issue 2:
If I plot an axhline first, and then two points with plot_date, the x-axis is not rescaled to the two new data points:

import matplotlib.pyplot as plt
from datetime import datetime

fig, axs = plt.subplots(2, 1)

axs[0].axhline(1.5)
axs[0].plot([datetime(2016, 1, 1, 0, 0, 0), datetime(2016, 1, 2, 0, 0, 0)], [1, 2])

axs[1].plot([datetime(2016, 1, 1, 0, 0, 0), datetime(2016, 1, 2, 0, 0, 0)], [1, 2])
axs[1].axhline(1.5)

plt.show()

I would expect the two plots to be the same, and the plotting order not to matter.

Present on current master (2.0.0rc2.post2912+g015d8d5) and on 1.5
Issue 1:
I posted this question on stackoverflow a few days ago. Essentially, I'm trying to perform a one hot encoding for multiple features:

data = [['a', 'dog', 'red']
['b', 'cat', 'green']]

The OneHotEncoder only accepts integer features. But to produce the integer features, you would use a LabelEncoder for each feature. And after this process, you have to store each individual LabelEncoder, as well as a mapping to the index of the feature they encoded.

We should have a class in scikit-learn to perform the entire LabelEncoding on the entire feature matrix.

Issue 2:
According to documentation:

The order of the columns in the transformed feature matrix follows the order of how the columns are specified in the transformers list. Columns of the original feature matrix that are not specified are dropped from the resulting transformed feature matrix, unless specified in the passthrough keyword. Those columns specified with passthrough are added at the right to the output of the transformers.

However retrieving the ordered column names of the transformed matrix from the ColumnTransformer is not straightforward (my use case is to match the trained coefficients with the produced features).

My suggestion would be to add a get_transformed_matrix_feature_names (name can be improved) to retrieve the ordered column names of the transformed matrix.
Issue 1:
I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

The latest version of @types/pino is 5.17.0 which is similar to pino@5.17.0.

For an unknown reason, there's a @types/pino@5.20.0 that is present on NPM and that holds a last commit dating Last updated: Thu, 23 Aug 2018 17:24:04 GMT.

I wonder if this isn't the possible source of error I stumbled upon, when @types/pino@* is required as peerDep.

cc @amcasey @AdamVig

Issue 2:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/pino 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. (Please ask any appropriate questions there).

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

Authors: @psnider @BendingBender @screendriver @paambaati @alferpal @mortiy

There seems to be an issue with the versioning of the @types/pino package. The latest is listed as 5.8.5, however there was a release of 5.20.0 about 6 months ago which takes precedence versioning wise, so if users are using "@types/pino": "*" they're getting the 5.20.0 version. Anyway that the latest can just be bumped to something higher. Thanks.

Richard
Issue 1:
The current implementation of Matrix on a CholeskyPivoted object returns the wrong result if the factorization is of low rank.

A = randn(3,1)
B = A*A'
C = cholesky(B, Val(true), tol = 1e-8, check=false)

Then B != Matrix(C).

If we instead defined

function Matrix(C::CholeskyPivoted)
ip = invperm(C.p)
U = C.U[1:C.rank, ip]
U'U
end

We would get the correct result. Other functions, like det already implement the correct behavior in this case, by using the rank field. Therefore, I think this change would make the behavior consistent for low rank factorizations.

Issue 2:
I am trying to call gmtime from <time.h>.

The expected return struct can be modelled according to the following type:

type Date sec::Int min::Int hour::Int mday::Int mon::Int year::Int wday::Int yday::Int isdst::Int end

Calling ccall(:gmtime, Ptr{Date}, (Ptr{Int32},), &t) returns a pointer of the right type. But I have found no way to convert the pointer back to the original type.

base/pointer.jl has a function for converting objects to pointers, but not the other way around. This is essential for interacting with c-code, though.
Issue 1:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
Terminals: Ubuntu WSL, git-bash, cygwin

Steps to reproduce

Copy and paste the command below into the terminal:

echo \
'backslash test'

Expected behavior

Be interpreted as a single command.

Actual behavior

It is being interpreted as two commands.

More Information

If you copy and paste the code below, it works fine.

echo 'line 1' && \
echo 'line 2'

Issue 2:
You can only open a pane with the default profile

I left space for adding support for opening a specific pane, but it didn't really seem like there was a good keychord for doing this currently. Maybe if we added support for multi-key keychords, then it'd make more sense.

EDIT:

With #3391 merged, this is pretty possible now.

I'd really like for this to work like the following:

{ "command": "splitHorizontal", "keys": [ "alt+shift+-" ] },
{ "command": "splitVertical", "keys": [ "alt+shift+plus" ] },

{ "keys": [ "alt+1" ], "command": { "action": "split", "style": "horizontal" } },
{ "keys": [ "alt+2" ], "command": { "action": "split", "style": "vertical", "profile": "{some-guid}" } },
{ "keys": [ "alt+3" ], "command": { "action": "split", "style": "horizontal", "type": "duplicate" } },
{ "keys": [ "alt+4" ], "command": { "action": "split", "style": "vertical", "type": "prompt" } },

The first two entries are the legacy style keybindings for panes.

The next four represent 4 different ways of opening a new pane:

alt+1: Open a new pane with the default profile. This is the current behavior.

alt+2: Open a new pane with the profile with guid "{some-guid}". (this issue)

alt+3: Open a new pane with the same profile as the currently focused pane. (this is tacked in #1756)

alt+4: Open a new pane by prompting the user first. (this is tacked in #3586)

This issue will track just that second option.
Issue 1:
I never encountered this feature outside vim. But then I used Sublime and then Atom, and found this awesome feature, and have been using it a lot recently. Can this be added to vscode?

Ref: atom/atom#5806

Issue 2:
I upgraded my vccode to 0.10.5, but I can not use it.

Every time I start the app, it will be like:

I tried restarting the app, but no help.

However I can run vscode from source.

Maybe something is wrong in Visual Studio Code.app
Issue 1:
Hi guys,

I have a hard time struggling with parameter tuning for most of the models in the scikit. I'm a machine learning student and I'm using scikit at various projects. I know in theory how each ML technique works and what is its goal but still I have a hard time figuring out what most of the parameters a model takes in the constructor means. I think a more detailed documentation should be available. The names of the parameters are rarely self explaining and most of the time the details covered on their explanation is tautological. Parameter and hyper-parameter tuning for ML models is tricky. But I find it more obscure when I cannot apply my intuition because I have no idea what a parameter is actually doing/meaning.

I think most of new comers and users will find your platform more easy to understand and efficiently use if there is a detailed explanation for the parameters and the models / algorithm / objective functions that are used under the hood of scikit.

Thanks

Issue 2:
Here is an overview of the work done so far relating to plotting:

#8425 - Decision Regions of Classifiers

#9173 - Confusion matrix and grid search

#8425 - Calibration curve

#12599 - Partial Dependence

To help control the scope of sklearn.plot, I propose we only do plotting on the axes level and not the figure level. The user would pass in the axes as a keyword. As a convenience, the default of axes will be None. Only in this case, will the plotting function generate a axes/figure to plot on.