WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug report

Describe the bug

When i create default layout component for my nextjs pages and import it with next/dynamic i see duplicate commons link(in head) and script(in body).

To Reproduce

I created the repository for reproduction.

https://github.com/narek1993x/duplicate_commonjs_script

Go to localhost:3000.

Open inspect element on the page.

You can see commons script is duplicated.

Expected behavior

See only one commons script.

Screenshot

https://ibb.co/X4d3KvK

System information

OS: Linux

Browser Chrome

Version of Next.js: 9.0.0

Issue 2:
Bug report

Describe the bug

The final generated HTML contains multiple references of the same script when using dynamic(() => import("XXX")) feature.

<script async="" data-next-page="/_rendr" src="/_next/static/-QRY2dlf37nt2x4YyPE4t/pages/_rendr.js"></script>
<script async="" data-next-page="/_app" src="/_next/static/-QRY2dlf37nt2x4YyPE4t/pages/_app.js"></script>
<script async="" src="/_next/static/chunks/commons.2e47dd92dd81134f73ae.js"></script>
<script async="" src="/_next/static/chunks/7.08bfb698f640f0ab437a.js"></script>
<script async="" src="/_next/static/chunks/11.b15a7a54832e0f86eb5f.js"></script>
<script async="" src="/_next/static/chunks/12.300ea2b94b09addb1f7a.js"></script>
<script async="" src="/_next/static/chunks/9.9fad9003200f003586d9.js"></script>
<script async="" src="/_next/static/chunks/8.d50c138bb6c1512ea7a0.js"></script>
<script src="/_next/static/runtime/webpack-0f37fb1d4bd42a96e0fc.js" async=""></script>
<script src="/_next/static/chunks/commons.2e47dd92dd81134f73ae.js" async=""></script>
<script src="/_next/static/runtime/main-dbac27a7acba993626ba.js" async="">

Firefox downloads twice commons.2e47dd92dd81134f73ae.js, I guess the async flag presents in the first reference, and not present in the second reference make a difference. Chrome does not behave the same.

To Reproduce

You can download the example here https://github.com/ekino/rendr/blob/master/examples/nextjs-with-remoteapi/.

The dynamic declarations are there: https://github.com/ekino/rendr/blob/master/examples/nextjs-with-remoteapi/pages/_rendr.js#L12-L18

There is also a live demo here: https://nextjs-with-remoteapi.rande.now.sh/

Expected behavior

No duplicate references.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

OS: linux or now.sh env.

Browser: Firefox and Chrome

Version of Next.js: 9.0.5

Additional context

Add any other context about the problem here.
Issue 1:
What problem does this feature solve?

Trying to build an SSR application w/ vue-ssr while using the somewhat newly introduced module federation plugin in webpack 5 (https://webpack.js.org/concepts/module-federation/) won't work currently. It does when focusing only on the client build but is not when trying to prerender. The webpack plugin is not working out of the box while building for node. In order to make this work, one can use a package from telenko (https://github.com/telenko/node-mf), which will hook into the process and allow for module federation to work in node. Nevertheless, due to the adjustments, namely relying on URL, vue-server-renderer will fail to build.

What does the proposed API look like?

To make this work it basically only requires to add nodes URL to the sandboxed node environment.

function createSandbox (context) {
var sandbox = {
Buffer: Buffer,
URL: URL, // add URL
console: console,
process: process,
setTimeout: setTimeout,
setInterval: setInterval,
setImmediate: setImmediate,
clearTimeout: clearTimeout,
clearInterval: clearInterval,
clearImmediate: clearImmediate,
__VUE_SSR_CONTEXT__: context
};
sandbox.global = sandbox;
return sandbox
}

Issue 2:
What problem does this feature solve?

This feature removes boilerplate-ish code to forward events, making the coding experience feel more vue-ish.

In a parent-child-grandchild scenario where the grandchild needs to pass information to the parent, it currently has to emit an event which is then captured by the child who forwards it to the parent.

This feature would remove the need to write the function in the child that forwards the event from the grandchild to the parent.

FYI: This has been implemented in Svelte:

https://svelte.dev/tutorial/event-forwarding

But that's a lot of code to write, so Svelte gives us an equivalent shorthand — an on:message event directive without a value means >'forward all message events'.

What does the proposed API look like?

For Instance:

"[at]click.forward"

simply "[at]click"
Issue 1:
I am the author of https://github.com/s-panferov/awesome-typescript-loader and I have a problem with my async loader:

Pseudo-code:

let callback = this.async();

/* inside promise handler */
try {
callback(null, result.text, sourceMap);
} catch(e) {
console.error('Caught', e)
// I'm here! What I need to do in that case?
}

Console output:

Caught { [ModuleParseError: Module parse failed: /Users/panferov-s/Workspace/arui/node_modules/react-hot-loader/index.js!/Users/panferov-s/Workspace/awesome-typescript-loader/dist/index.js?compiler=ntypescript&rewriteImports=arui&module=commonjs!/Users/panferov-s/Workspace/arui/src/popup/common/popup.ts Line 112: Unexpected token ,
You may need an appropriate loader to handle this file type.
| || nextAttachment !== attachment) {
| this.setState({
| attachment: ,
| targetAttachment: ,
] });

/** stripped */

Versions:

"webpack": "^1.10.1",
"webpack-dev-server": "^1.10.1"

The big problem here is that compilation freezes in webpack-dev-server

Issue 2:
Bug report

What is the current behavior?

When the definitions by webpack.definePlugin are being used in any module, It's not accessing the definitions from the reference but importing and duplicating them for each module. Also, increasing garbage collection load cumulatively according to definition size. (Assume that, a big json file used for global definition)

If the current behavior is a bug, please provide the steps to reproduce.

I created a minimum reproducible repo. You can check the output -main.js- and it's content. Clearly visible that, the settings object is duplicated.

https://github.com/tugayilik/webpack-defineplugin

What is the expected behavior?

Not to duplicate values for each module and decreasing the garbage collection load.

Other relevant information:

webpack version: 5.31.2

Node.js version: 15.13.0

Operating System: macOS

Additional tools: -
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-examples/16634/

Failed: Up {e2e.go}

error running up: exit status 2

Previous issues for this test: #33357 #33377 #33993 #34033 #34796 #35306 #35315

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/

Failed: Up {e2e.go}

error running up: exit status 1

Previous issues for this test: #33357 #33377
Issue 1:
Many old rooms such as /helpBonfires are now deprecated, but campers still join them. We need a contributor who's earned write access to this repo to go through and update the topic of these rooms by running:

/topic This room is inactive, and only exists for archival purposes. Join some active rooms - here's the full list: https://www.freecodecamp.com/wiki/en/official-free-code-camp-chat-rooms/

Issue 2:
Challenge Name

Issue Description

Browser Information

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">
CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Screenshot
Issue 1:
by Ostsol:

What steps will reproduce the problem?

Given the following files, compile and link with the following steps.

// p.go
package p

type T int

// main.go
package main

import "fmt"
import "./p"

func main () {
i := p.T (1);
fmt.Printf ("%v\n", i)
}

6g p.go
6g main.go
6l main.6

What is the expected output? What do you see instead?

Based on the discussion on the golang-nuts group:

http://groups.google.com/group/golang-nuts/tree/browse_frm/
thread/66466cc48d4a3ce1/51028e84ef8e345f?rnum=1&_done=%2Fgroup%2Fgolang-
nuts%2Fbrowse_frm%2Fthread%2F66466cc48d4a3ce1%2Fe1e40ca5389faf1a
%3F#doc_797953fae50b1017

. . . this should compile and link successfully. Compilation does in fact
occur without error, however, linking results in many
'MHeapMap_Preallocate: multiple initialization' errors.

What is your $GOOS? $GOARCH?

linux amd64

Which revision are you using? (hg identify)

bdfc3faa253a tip

Please provide any additional information below.

One might decide to use gopack to produce p.a given main.6 and p.6 from
the previous steps.

gopack grc p.a p.6
6l main.6

This produces similar errors to the above. It appears that without p.a
already produces, 6g had compiled main.go in a manner incompatible with
p.a. Recompiling main.go will allow successful linking.

Issue 2:
by beoran:

This bug report is due to the discussion at:

http://groups.google.com/group/golang-nuts/browse_thread/thread/34d6a5b928242d25

What steps will reproduce the problem?
1. Write a .go file for cgo with a syntax error in some line
2. Compile using the standard makefile

What is the expected output?

The error message refers to the right line number.

What do you see instead?
The error message may refer to the wrong line number.

What is your $GOOS? $GOARCH?
Linux 386

Which revision are you using? (hg identify)
f776656df34c+ release.2010-06-09/release

Please provide any additional information below.

This is kind of annoying since it makes it hard to find back the syntax error. In the
discussion it was stated that this should be solved using a //line comment that corrects
the line number. It would be nice if this could be fixed. :)
Issue 1:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.3.0-3e0967783

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159833

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159779)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160302)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:322998)

at ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59363)

at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:67999)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:108660)

at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99973)

at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99898)

Component stack: in Sl

in div

in div

in div

in vo

in Unknown

in n

in Unknown

in div

in div

in Qi

in Ve

in nn

in Da

in Yc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
The present update API has option to upsert document when it does not exist. The result is something like:

{"ok":true,"_index":"metadata","_type":"load","_id":"ind1","_version":1}

It does not tell us whether the document existed, or was upserted or fields were updated. If in the result we can have the following tunable via the update api:

Difference between old and new values

Whether document was upserted or updated

List of fields that were updated, or that existed before

I'm not sure if this feature could be implemented as a plugin or by some other way.

Issue 2:
Hi,

I'm testing my cluster and cycling in new nodes and cycling out old ones however after waiting a couple of hours shards and replicas haven't sorted themselves out. When listing the status of all shards via GET /cat/_shards I receive...

{

"error": {

"root_cause": [

{

"type": "illegal_argument_exception",

"reason": "Multiple entries with same key: [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@7968034a and [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@49422abd"

}

],

"type": "illegal_argument_exception",

"reason": "Multiple entries with same key: [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@7968034a and [cloudtrail-2015.10.16][0], node[2yaILlgNTX24_lrlf77gIg], [P], v[25], s[STARTED], a[id=wtXiTTw9T4C9KHucOIQKGA]=org.elasticsearch.action.admin.indices.stats.CommonStats@49422abd"

},

"status": 400

}

Any ideas?
Issue 1:
Python 3.9.13

Flask 2.2.2

Werkzeug 2.2.2

The docs, in more than one place:

https://flask.palletsprojects.com/en/2.2.x/quickstart/#debug-mode

https://flask.palletsprojects.com/en/2.2.x/server/#command-line

say to run flask run --debug but that doesn't actually work:

Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: No such option: --debug (Possible options: --debugger, --no-debugger)

You need to run flask --debug run

Issue 2:
In most other web frameworks static file caching would be disabled when the app is running in development mode. Since FLASK_ENV is something we have available to then maybe we can set SEND_FILE_MAX_AGE_DEFAULT = 0 when we're in development mode. If FLASK_ENV isn't the correct variable to hook into maybe it could be set when DEBUG is set to true instead.

I've seen this question pop up on IRC about 50 times in the last few years where someone wonders why after changing their CSS or JS in development they don't see the changes in their browser. The "fix" is to do a hard reload in your browser (CTRL+F5 on Windows / Linux) which forces browsers to serve an un-cached copy of the file.

I know in my Flask course, this question has come up dozens of times as well until I mentioned setting this config value to 0.

I can't think of a use case where you would want static file caching enabled in development and if you did you could always explicitly set the max age to whatever value you want.

What do you think?
Issue 1:
If you use one single or double quote without closing it, syntax highlighting breaks (even with ES6 enabled as the target). Heres' an example:

My jsconfig.json:

{
"compilerOptions": {
"target": "ES6"
}
}

Edit: In retrospect this may simply be that template strings aren't highlighted, which causes this weird behavior.

Issue 2:
Right now, those keywords like import class from are all plain white.
Issue 1:
Describe the issue:

I have an array of float numbers. Numpy fails to calculate the standard deviation while the manual calculation is okay. There is no nan or inf in the array.

If default parameters (ddof=0) are used, no warning is shown, but the warning appears if ddof=1 is used.

The array can be downloaded from here.

Reproduce the code example:

np.std(arr, ddof=1)

Error message:

Actually, it is a warning:

C:\Users\***\miniconda3\envs\py38\lib\site-packages\numpy\core\_methods.py:212: RuntimeWarning: overflow encountered in reduce
arrmean = umr_sum(arr, axis, dtype, keepdims=True, where=where)

### NumPy/Python version information:

numpy>=1.22.4
Python==3.8.13

### Context for the issue:

_No response_

Issue 2:
#8222 raised the numerical precision in float16 of numpy.mean.

As per comment #8222 (comment), this can also be done for numpy.std and numpy.var

Summary 2019-04-26 by @stefanv:

Float16 operations are implemented in software; as such intermediate computations can be done in float32 without loss of speed

For numpy.mean, the intermediary type is modified here.

A similar change can be made in the same file for _var and _std
Issue 1:
I am using TypeScript in an Electron app and trying to use the Chip component in material-ui-next and it does not recognize the onDelete prop, but the API indicates it should.

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

Expected Behavior

I should not receive error

Current Behavior

Receiving error: TS2339: Property 'onDelete' does not exist on type 'IntrinsicAttributes & ChipProps & { children?: ReactNode; }'.

Steps to Reproduce (for bugs)

Context

Tying to use Chip component in material-ui-next

Your Environment

Tech
Version

Material-UI
1.0.0

React
16.2.0

browser
Chromium (Electron)

TypeScript
2.6.2

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

Expected Behavior

Sometimes the value for the 'title' could be calculated and may be set to null. In this instance the tooltip should not be shown.

Current Behavior

Tooltip is shown regardless of whether there is a value for 'title' or not

Steps to Reproduce

https://codesandbox.io/s/z65pow4773

I believe putting the following code here would resolve the issue:

if(this.props.title === null || this.props.title === undefined || this.props.title === "")
return;
Issue 1:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-verify-master/4646/

Run so broken it didn't make JUnit output!

Issue 2:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-verify-master/3998/

Run so broken it didn't make JUnit output!
Issue 1:
What / Why

When

Happens all the time

n/a

Where

I am behind a corporate firewall

How

Current Behavior

n/a

Steps to Reproduce

Try importing packages from npm

Expected Behavior

n/a

Who

n/a

References

n/a

Issue 2:
What / Why

I get error cb() never called! error when trying to install typescript of angular

n/a

When

npm install -g typescript

Where

Windows cmd

How

Current Behavior

npm install -g @angular/cli

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

Steps to Reproduce

run npm install -g @angular/cli

Expected Behavior

should install angular/typescript

Who

2020-03-06T14_50_38_986Z-debug.log

2020-03-06T14_53_22_051Z-debug.log

n/a

References

n/a
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

"electron": "^4.1.4",

Operating System:

Ubuntu 18.04 x64

Expected Behavior

[ LOG ] , "hora"

[ LOG ] , 9

[ LOG ] , "campo hora do horaro"

[ LOG ] , 9

Actual Behavior

To Reproduce

const timeStamp={"seconds":1574079167,"nanoseconds":901462000} const valueInDate = timeStamp.toDate() const brTime= new Date(valueInDate) //2019-11-18T12:12:47.901Z const hour = brTime.getHours() // 10 EXPECTED TO BE 9 PROBLEM HERE

Screenshots

Additional Information

This year Brasil lost his summerTimezone, from octuber to feburary brasil was -2UTC(from te last 7 years) but this year its -3UTC.

This problem occurs only when i running in Electron, if i open in the browser works fine

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

12.0.9

What operating system are you using?

Windows

Operating System Version

Windows 10 19042.985

What arch are you using?

x64

Last Known Working Electron version

11.0.0

Expected Behavior

We should be able to get the number of copies printed which have been passed via options

Header and Footer Strings passed to be added to each pages printed along with the page number

Specifying a page range should only print that range of pages not the entire document

Actual Behavior

Only one copy is generated

Header and Footer not added to the printed page.

Entrire document is printed instead of the range specified.

I am not sure if this is the same case with Collate and other properties, those needes to be checked.

Testcase Gist URL

No response

Additional Information

In version 11 as well, only the footer is customisable, even though if we pass the header it is not reflecting. It shows the date and title.
Issue 1:
When creating variable inside tasks(using set_fact), even using "|int" filter, result passed to jinja is still string.

I've created full Proof Of Concept bug in github repo : https://github.com/rafaltrojniak/ansible-jinja-casting

Issue Type:

��Bug Report

Ansible Version:

ansible 1.4.5

Environment:

Debian 6.0.8

Summary:

When creating variable inside tasks(using set_fact), even using "|int" filter, result passed to jinja is still string.

Steps To Reproduce:

I've created full Proof Of Concept bug in github repo : https://github.com/rafaltrojniak/ansible-jinja-casting. To reproduce :

Clone the repo and "cd" into it

Set ssh access to localhost, so ansible could run

Run ansible-playbook site.yml -i hosts

Expected Results:

I expect all templates to be generated sucessfully.

All multiplication results in templates should equal 10

All additions results in templates should equal 11

Actual Results:

Variables in jinja seams to be string objects

Multiplication of strings result in repetitions of string, not mathematical multiplication

Addition to string result in fatal error

Issue 2:
Here's the playbook with the problem:

- name: Setup some config
template: src=some.j2 dest=/vagrant/some
register: some

- name: Setup boolean fact
set_fact: it_is_so={{some.changed}}

- name: Setup other config
template: src=other.j2 dest=/vagrant/other

Here's the other.j2 template:

Say...
{% if it_is_so %}
it is so
{% else %}
it isn't so
{% endif %}

The issue I'm having is that the other.j2 template has a check which assumed that the it_is_so variable is a boolean. As it turns out, that's not the case, instead, it's a string. So even if it_is_so was set to "False" it would still be considered true when parsing the template.

I do want to note that it is treated as a boolean if I changed it up to:

- name: Setup boolean fact
set_fact:
it_is_so: ${some.changed}

I couldn't get away with {{some.changed}}, because it's a YAML syntax error. This works, which is nice, but the syntax is deprecated.

EDIT:

Also, the when statement is able to treat the "False" string as a false boolean value.