WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11418/

Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should scale a replication controller [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:223
Expected error:
<*errors.errorString | 0xc820288b10>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:
Command stdout:

stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

error:
exit status 1

not to have occurred

Previous issues for this test: #28437

Issue 2:
error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. appears in a lot of flakes. Speculation is that the metadata server is slow to respond.

So far, these are the issues where this message has popped up:

#28569

#28565

#28523

#28507

#28493

#28439

#28437

#28429

#28426

#28420

#28293

#27976

#27839

#27715

#27156

#26715

#26490

Sample failed run: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664

@cjcullen since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

An error page is shown when the react rendering tree throw an error in production

Current Behavior

A blank page is shown when the react rendering tree throw an error in production

Steps to Reproduce (for bugs)

Render a page server side with no errors

Render a page client side with no errors

Navigate to a page that throw inside the render method.

Context

I'm not 100% sure, but I think that such logic was present with v3.

It could have been removed with d19cc97#diff-1858c8296dd2b642c74271609cf701e7L40.

Your Environment

Tech
Version

next
v4.0.2

node
v8.1.4

OS
MacOs

browser
Chrome

Issue 2:
It's a good idea to create immutable static assets, such as images, and set the cache to never expire. It appears that Next.js does a good job of this for the JavaScript files, but it would be great to document a solution for CDN static assets.

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

Expected Behavior

Next.js build assets get served from _next/<some uuid>/<asset path>. Perhaps a similar solution could work for static assets as well? We could supply instructions for setting up common reverse proxies to serve the static assets properly (nginx, haproxy).

Current Behavior

Static assets always get served from the same URL, which forces users to roll their own cache-invalidation solution for static content, even though perfectly usable cache-invalidation is already built-in to Next.js.

Context

We recently rolled a new version of one of our apps into production. Everything worked great, but it served up the old image assets, which may cause a lot of confusion.

Presumably, a solution to this problem is needed for every application ever made. We should make sure it's covered in the Next.js documentation.

Your Environment

No bug. Just requesting documentation.
Issue 1:
Environment

Windows build number: 10.0.18956.0
Windows Terminal version (if applicable): 0.3

Steps to reproduce

Install FiraCode NF or another ligature font

Type ligatures

Expected behavior

Ligatures when typed, the console will move back appropriately.

Actual behavior

Issue 2:
Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
19000.1000.amd64fre.vb_release_base.191007-1444

Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2762.0

Any other software?

WSL2

Ubuntu 18.04

kind setup using https://kind.sigs.k8s.io/

Steps to reproduce

Set up WSL2

Setup kind

and create cluster using "kind create cluster"

Expected behavior

Windows Terminal should render symbols and fonts correctly

Actual behavior

Windows Terminal renders image icon at the end of 1st line small and with big ?
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.5-SNAPSHOT

Operating System version: Max OS 10.14.5

Java version: Oracle jdk 1.8.0_131

Steps to reproduce this issue

checkout master branch

checkout HEAD 15d8084

run command: ./mvnw clean install -DskipTests=false & ./mvnw clean test-compile failsafe:integration-test

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

Expected Result

What do you expected from the above steps？

The build should run successfully

Actual Result

What actually happens?

Unit test failing

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

[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ServiceConfigTest.testDelayExport:173
Expected: a collection with size <1>
but: collection size was <0>
[ERROR] ServiceConfigTest.testExport:155
protocol.export(
<any org.apache.dubbo.rpc.Invoker>
);
Wanted 1 time:
-> at org.apache.dubbo.config.ServiceConfigTest.testExport(ServiceConfigTest.java:155)
But was 2 times:
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)

[INFO]
[ERROR] Tests run: 557, Failures: 2, Errors: 0, Skipped: 2

Issue 2:
https://github.com/apache/incubator-dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationBeanPostProcessor.java

这个java类里面的private void registerServiceBean 这个方法, 下面这几行

if (scanner.checkCandidate(beanName, serviceBeanDefinition)) { // check duplicated candidate bean

registry.registerBeanDefinition(beanName, serviceBeanDefinition);

if (logger.isInfoEnabled()) {
logger.warn("The BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean has been registered with name : " + beanName);
}

} else {

if (logger.isWarnEnabled()) {
logger.warn("The Duplicated BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean[ bean name : " + beanName +
"] was be found , Did @DubboComponentScan scan to same package in many times?");
}

}

请问, 为什么在检查没有重复的bean定义的时候, 还要打印一条警告信息? 不是应该是info信息吗?
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1321 on 2009-12-09 by @FrancescAlted, assigned to unknown.

After some discussion in the list, we felt that the dtype should be immutable. Currently this is not the case, as the names attribute can be changed:

In [19]: t = np.dtype("i4,f4")

In [20]: t
Out[20]: dtype([('f0', '<i4'), ('f1', '<f4')])

In [21]: hash(t)
Out[21]: -9041335829180134223

In [22]: t.names = ('one', 'other')

In [23]: t
Out[23]: dtype([('one', '<i4'), ('other', '<f4')])

In [24]: hash(t)
Out[24]: 8637734220020415106

[although the change of the hash seems to depend on the Python version]

As a bonus, an immutable dtype would render this ticket #1725

without effect.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1127 on 2009-06-05 by @FrancescAlted, assigned to unknown.

The dtype object seems to be shared after a copy of a structured array is done. This is inconvenient when you change properties in one of arrays and these are propagated to the other.

The next snippet exposes the problem:

In [21]: dt = np.dtype('f4,f8')

In [22]: ra = np.empty(1, dt)

In [23]: ra.dtype
Out[23]: dtype([('f0', '<f4'), ('f1', '<f8')])

In [24]: rb = ra[:]

In [25]: ra.dtype.names = ('float', 'double')

In [26]: ra.dtype
Out[26]: dtype([('float', '<f4'), ('double', '<f8')])

In [27]: rb.dtype
Out[27]: dtype([('float', '<f4'), ('double', '<f8')]) # not the original!
Issue 1:
Uncaught Error: Atom can only handle files < 2MB for now.

Atom Version: 0.158.0

System: linux 3.13.0-37-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At /usr/share/atom/resources/app/src/project.js:461

Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app/src/project.js:461:15)
at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app/src/project.js:438:63)
at Project.module.exports.Project.open (/usr/share/atom/resources/app/src/project.js:392:19)
at Workspace.module.exports.Workspace.openUriInPane (/usr/share/atom/resources/app/src/workspace.js:482:29)
at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app/src/workspace.js:409:19)
at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:118:17)

Issue 2:
Uncaught Error: Atom can only handle files < 2MB for now.

Atom Version: 0.153.0

System: linux 3.13.0-40-generic

Thrown From: tree-view package
Issue 1:
I'd like to be able to have multiple instances of a model in a scene, each using different materials.

If I have a mesh with only one material, I can just create multiple THREE.Mesh objects that all use the same mesh geometry and then apply different materials to each THREE.Mesh. No problem.

However, if I have geometry that has multiple materials, I need to use the MeshFaceMaterial for the THREE.Mesh and assign an array of materials to the geometry object. So, my question is, is there any way to have multiple instances of that geometry that also have different materials without duplicating the geometry data?

If this functionality doesn't exist, I'd be interested in adding it to Three.JS.

Up until now, I've actually been splitting this type of geometry into pieces (one for each material) and then creating a separate THREE.Mesh for each but I'm not sure this is the best way (and it seems like it might cause a fair bit more overhead since there are potentially many more transformations being processed for a single model).

Issue 2:
The aClockwise option in arc / absarc / absellipse on THREE.Path has some strange behavior.

Here's a test that plots the curve on a canvas context:

function test(ctx) {
var path = new THREE.Path();

path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise

var pts = path.getSpacedPoints();

pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});

ctx.stroke();
}

This produces: https://cloudup.com/cqjdrH4C1T8

Changing anti-clockwise to true produces the exact same ellipse instead of following the other path of the circle to the same destination.

It also has some strange effects when you introduce other actions into the path.

If I add a lineTo after absarc:

function test(ctx) {
var path = new THREE.Path();

path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise

path.lineTo(100, 50);

var pts = path.getSpacedPoints();

pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});

ctx.stroke();
}

I get https://cloudup.com/c8yYMvgAx3T

and if I change anti-clockwise to true: https://cloudup.com/cinzkh2Oj75
Issue 1:
There was a fix made in 2.2.2 to address 0 font size for popovers within a btn group:

#5939

I don't think the fix was comprehensive as it still happens in other situations. Here's an example within an input-append form element:

http://jsfiddle.net/YUS87/

Issue 2:
<div class="btn-group">
<a class="btn" rel="popover" data-content="Lorem ipsum dolor sit amet.">Click me!</a>
</div>

Clicking the button results in a blank popover appearing. Am I doing something wrong or is this an issue? If so, is there any workaround in the meantime?

Thanks in advance.
Issue 1:
I tried using the latest angular-ui-router/angular-ui-router.d.ts file in this repo and had problems.

angular-ui-router isn't working when using @types/angular-ui-router.

"Module 'angular' has no exported member 'ui'"

every file now is red, and won't compile

Looks like having a <reference types="angular" /> alongside a import * as angular from 'angular'; won't work

Same thing happens with angular-ui-bootstrap

The modules that depend on @types/angular are outright broken. I'm not using angular global variable and when I do import * as angular from 'angular' then try to access a module namespace, such as angular.ui.bootstrap, angular.translate, angular.ui, they all give the error Module 'angular' has no exported member 'ui'

the code below fails:

'use strict';

import * as angular from 'angular';

class Config {
static $inject = ['$stateProvider', '$urlRouterProvider'];

constructor($stateProvider: angular.ui.IStateProvider, $urlProvider: angular.ui.IUrlRouterProvider) {
/*...*/
}
}

angular.module('Module', []).config(Config);

Issue 2:
I tried using the @types/node package and had the problems below .

`node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.

56 export = assert;

~~~~~~

node_modules/@types/node/ts3.7/assert.d.ts:56:14

56 export = assert;

~~~~~~

'assert' was also declared here.

node_modules/@types/node/ts3.5/globals.global.d.ts:1:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'global' must be of type 'Global', but here has type 'Global & typeof globalThis'.

1 declare var global: NodeJS.Global & typeof globalThis;

~~~~~~

node_modules/@types/node/globals.global.d.ts:1:13

1 declare var global: NodeJS.Global;

~~~~~~

'global' was also declared here.

node_modules/@types/node/ts3.7/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.

56 export = assert;

~~~~~~

node_modules/@types/node/assert.d.ts:56:14

56 export = assert;

~~~~~~

'assert' was also declared here.`

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

I fixed this error by removing the assert.d.ts file in the node/ts3.7 folder ,seems it was conflicting with the existing assert.d.ts in the root @types/node folder

@https://github.com/blog/821-mention-somebody-they-re-notified

Authors: @kamal @tdreyno @jonmagic @farcaller
Issue 1:
I decide to improve my site performance with angular 2 AoT compiler.

As some requirements issue, i need loading my components dynamically in my ng2 app, when i start to build my app with AoT compiler, everythings goes well, but if i open the url, i got an error: "Runtime compiler is not loaded", after i doing some researches on the Internet, it's look like that Aot could not works with runtime compiler defaultly. Is there any workaround? Any input will be appreciated.

Thanks.

Issue 2:
I'm trying to create component similar to this https://github.com/michaelbromley/angularUtils/tree/master/src/directives/uiBreadcrumbs

What I'm doing at the moment is this https://gist.github.com/fxck/108dccf4529becf9bc92

The problem is, that I can't really access route name from instruction, so I can't really create links for the crumbs, workaround was to duplicate name in data(https://gitter.im/angular/angular?at=564a3e5daca9bb7c6e508203) which is not ideal, but there seems to be no other way at the moment.

Check #5180 , #5335 as well.
Issue 1:
Describe the issue:

Before version 1.24, numpy.masked_invalid was converting its input to a numpy array, which allowed to pass array-like input.

Changes in #22046 breaks this, which makes for instance some function in matplotlib fails with pandas series (for instance fill_betweenx.

I don't know if this is an intended change to only support np.array here, but I just wanted to document this.

I will also report to the matplotlib developpers.

Reproduce the code example:

import numpy as np
import pandas as pd

np.ma.masked_invalid(pd.Series([1, 2, 3]))

Error message:

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[3], line 1
----> 1 np.ma.masked_invalid(pd.Series([1, 2, 3]))

File ~/.local/miniconda/envs/test_benchopt/lib/python3.11/site-packages/numpy/ma/core.py:2360, in masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 """
2334 Mask an array where invalid values occur (NaNs or infs).
2335
(...)
2357
2358 """
-> 2360 return masked_where(~(np.isfinite(getdata(a))), a, copy=copy)

TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

NumPy/Python version information:

This starts to fail with numpy 1.24. Working with previous version.

Context for the issue:

No response

Issue 2:
Describe the issue:

Hello, this just popped up in my tests with the 1.24.0 release:

Reproduce the code example:

import numpy as np, pandas as pd
np.ma.masked_invalid(pd.Series([1., 2.]))

Error message:

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In [35], line 2
1 import numpy as np, pandas as pd
----> 2 np.ma.masked_invalid(pd.Series([1., 2.]))

File ~/miniconda/envs/py310/lib/python3.10/site-packages/numpy/ma/core.py:2360, in masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 """
2334 Mask an array where invalid values occur (NaNs or infs).
2335
(...)
2357
2358 """
-> 2360 return masked_where(~(np.isfinite(getdata(a))), a, copy=copy)

TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

NumPy/Python version information:

1.24.0 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:38:29) [Clang 13.0.1 ]

Pandas is 1.5.2

Context for the issue:

The issue seems to be with getdata, which is pulling out the index block manager rather than the values:

np.ma.getdata(pd.Series([1., 2.]))

SingleBlockManager
Items: RangeIndex(start=0, stop=2, step=1)
NumericBlock: 2 dtype: float64

Reporting to numpy rather than pandas as the error emerged with the numpy 1.24.0 update; perhaps it's an issue on the pandas side though.
Issue 1:
I think we attempted this before, but didn't get through. Is there any code left?

Master has a bunch of errors again :-/

Issue 2:
We should fix the remaining sphinx warnings here:

https://circleci.com/gh/scikit-learn/scikit-learn/1629

and then make circle IO error if there are any warnings (grep'ing for WARNINGS I guess?).

This way we immediately see if someone broke anything in the docs.
Issue 1:
ERROR in ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js
Module not found: Error: Can't resolve 'react-dom/server' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo'
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js 3:15-42
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/index.js
@ ./packages/next-apollo/withData.js
@ ./pages/map.js
@ multi ./pages/map.js

See https://github.com/zeit/next.js/blob/f9b52cfcb6cba5f2af93caf3cc8bc3636571323f/server/build/webpack.js#L155

This aliasing seems to prevent require sub-paths.

PS. I am using pnpm. Maybe this could be related...

Workaround

Add this to your next.config.js:

delete config.resolve.alias['react-dom']

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

Your Environment

Tech
Version

next
5

node
8

OS
macOS

browser
Chrome

etc

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

This is an issue for v5, I didn't test v6 yet, but I believe from some other ticket that it is still happening (e.g. requiring call to app.prepare())

Expected Behavior

When shipping an app bundled for production, we shouldn't require development/build dependencies with the whole app.

Current Behavior

Right now this is required because the server always tries to load next.config.js in production mode and the config decorator approach (withSourceMaps = require('@zeit/next-source-maps')) makes it inconvenient to exclude webpack plugins from production bundle.

Context

Having small bundles helps save server and storage space - and is a requirement to run on serverless environment.

Your Environment

Tech
Version

next
5

node
8

OS
docker (ubuntu), serverless
Issue 1:
Steps:

Open http://getbootstrap.com/components/

Browse the glyphicons. Specifically limited to:

-bell

-bookmark

-briefcase

-calendar

-camera

-fire

-lock

-paperclip

-pushpin

-wrench

Expected Result:

See glyphicons similar to browser on Windows.

Actual Result:

Missing character rectangles.

OS:

Android 2.3.3, default browser.

Issue 2:
The glyph font icons are somehow broken on some devices. For example on my android phone (android 2.1) some of the icons are broken, but others look OK. See attached screenshot.

I'm not sure what is cause of that, yet if it is possible to show some of the icons properly on my device, it should be possible to fix it to show all of them properly. If you need more information, let me know. Thank you.
Issue 1:
implement:

console.log("你好，世界")

output:

浣犲ソ锛屼笘鐣?

Deno:1.21.2

OS:Windows 11

Issue 2:
Hi! This is my first time looking at Deno, and it seems to be very exciting :)

I was playing around with the examples from the tutorial and noticed this inconsistency: (using powershell and windows terminal):

> deno run https://deno.land/std/examples/welcome.ts
Welcome to Deno 🦕
> deno run --allow-net https://deno.land/std/examples/curl.ts https://deno.land/std/examples/welcome.ts
console.log("Welcome to Deno ­ƒªò");

I found that editing curl.ts to add the line

import { decode } from "https://deno.land/std/encoding/utf8.ts";

and replacing the Deno.stdout.write line with

console.log(decode(body));

seems to make the downloaded file print out correctly.