WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Using this regular expressions to test json breaks syntax highlighting for the last regex on the line and if it's part of an if statement it breaks syntax highlighting for the rest of the file.

/^[\],:{}\s]*$/.test( text.replace( /\\["\\\/bfnrtu]/g, '@' ).replace( /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']' ).replace( /(?:^|:|,)(?:\s*\[)+/g , ''))

if ( /^[\],:{}\s]*$/.test( text.replace( /\\["\\\/bfnrtu]/g, '@' ).replace( /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']' ).replace( /(?:^|:|,)(?:\s*\[)+/g , ''))){
// do sth
}else{
// do someotherthing
}

This seems to be some edge case since trying to simplify the regexes to narrow down the problem failed because the problem just disappeared when removing any substantial part from any regex.

By the way, I also tested it in safe mode with the standard dark syntax highlighting, it happens there as well.

Atom 0.112.0

Arch Linux

Issue 2:
I opened a Python file with the following line (#963):

PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
3.3.10

After upgrading from 3.2 to 3.3. Files collection is now just empty in controller when updating entity without selecting new files. So it just removes the file entities. It used to work before 3.3 now it fails.

Maybe I missed something and it's planned changes in form file type behavior?

Here is a demo which shows the issue https://github.com/skornev/vichbundle-sandbox-not-cp-symfony3.3

This issue was raised here dustin10/VichUploaderBundle#776.

Issue 2:
Q
A

Bug report?
no

Feature request?
no

BC Break report?
possibly

RFC?
no

Symfony version
3.3.10

Hello,

The change introduced in #24198 broke our file upload bundle. Our flow looks like this:

We use a form to create an entity with a file, using a form field which is not actually persisted. From it, we create a copy of the upload locally and only the file path is persisted to the database.

On post load event, we recreate the file object from the file path in the database and then put it in the non-persisted entity field.

When editing the entity through a form, we do not initially pass the file to the field, but instead do it if none was sent. This prevents the current value being treated as a new one and overwriting itself in the process (current file being deleted and being replaced with the same file, with a suffixed name).

The problem we face now is that the form fields are being completely removed from the request and we have no hook for our functionality. Is there a possibility to revert this change? From what I can tell, it does not actually fix anything, but provides an easier way to deal with empty uploads.
Issue 1:
Electron version: v1.3.2

Operating system: win10

hello dear:

I use the "depends.exe" tool to view the electron, I did not find the dependent msvcp140.dll. I update electron to the latest. Also found no msvcp140.dll,But my electron application can run normally, I don't know what's the reason.

I opened this link and found electron dependent msvcp140.dll。

https://github.com/electron/electron/pull/5538/files

I want to make it clear.

thanks very much

Issue 2:
Electron version: v1.3.2

Operating system: win10

hello dear:

I use the "depends.exe" tool to view the v1.0.2 version of the electron, electron will rely on MSVCR120.dll, MSVCP120.dll. In the electron1.3.2 version does not rely on MSVCR120.dll, MSVCP120.dll. I don't know why, I guess it's a static link. I want to make it clear。

thanks very much
Issue 1:
Steps to Reproduce (for bugs)

https://codesandbox.io/s/7jox7jylj6

select a value

click it again, to unselect it

then the option doesn't lose the selected background until the select menu is closed and reopened

So we can't know if we have unselect it

Expected Behavior

It should toggle selection on a item after each click

This happens with multiple option at least

edit: actually the font-weight is slightly changing (400 / 500), but I believe this background should be cleared is the pointer leaves hover, I guess there's an :active rule that still make it with this background

Current Behavior

Unselected items stay visually selected

Your Environment

Tech
Version

Material-UI
1.0.0-beta.24

React
16.2.0

browser
chrome, firefox

Issue 2:
Problem description

After initial open of menu, first item remains highlighted even after hovering off.

Steps to reproduce

next branch, menus demo http://localhost:3000/#/component-demos/menus

click to open

hover to a lower item

Versions

next branch a38068f

Browser: Mac Chrome 52.0.2743.116

Browser: Mac Firefox 48.0.2

Browser: Mac Safari 9.1.2

Images
Issue 1:
Input Code

Demo repo

// Core
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actions } from '../../actions/navigation';

const mapStateToProps = ({ navigation }) => ({ // eslint-disable-line arrow-body-style
menuStatus: navigation.get('menuStatus')
});

const mapDispatchToProps = (dispatch) => ({ // eslint-disable-line arrow-body-style
actions: bindActionCreators({ ...actions }, dispatch)
});

@connect(mapStateToProps, mapDispatchToProps)
export default class Home extends Component {
render () {
return (
<section>
<h1>Home container!</h1>
</section>
);
}
}

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

All config files are in demo repository.

Expected Behavior

Decorator should be top of default export

Current Behavior

Decorator placed after after default export

Possible Solution

?

Context

I'm trying to parse js file with babylon. Make some modifications with babel-traverse (for example add a new import declaration) and generate js file back.

Your Environment

software
version

Babel
6.23.1

node
7.5.0

npm
4.1.2

Operating System
Ubuntu 16.04

Issue 2:
Input Code

@Decorator()
export class MyClass {}

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

{
"plugins": [
"syntax-decorators"
]
}

Expected Behavior

@Decorator()
export class MyClass {}

Current Behavior

export @Decorator()
class MyClass {}

Possible Solution

What I'm currently doing to circumvent this:

export let MyClass = @Decorator()
class MyClass {}

¯\_(ツ)_/¯

Context

I've got a project where I'm trying to parse ES6 code with Flow types, and just take the types out. This minimal case reproduces the same issue, though.

Your Environment

software
version

Babel
babel-cli@6.14.0

node
6.5.0

npm
3.10.3

Operating System
Win 10 x64
Issue 1:
Compressing our debug info might offer a significant, cheap file size win.

Things to do:

Figure out which targets to compress debug info for by default.

Provide a linker flag to control compression on/off.

Teach the linker to compress debug info.

Teach the Go packages how to read compressed debug info.

@ianlancetaylor commented off-list:

Compressed debug info is supported by gdb and the GNU binutils.

Yes, we should do it in our toolchain for relevant targets.

Related: #11773

Issue 2:
by jeff.allen:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. here is a program that makes a call to a predicate:

package main

func eq(a,b string) bool {
return len(a) == len(b)
}

func main() {
a := ""
b := ""
if eq(a,b) {
println("ok")
}
}

Inlining the predicate results in assembly with duplicate initialization of temporaries
on the stack and jumps forward and back.

Is this really correct behavior? It seems suspiciously ugly.

What is the expected output?

This is the assembly from manually inlining the code (i.e. replacing a call to eq(a,b)
with the expression len(a)==len(b))

--- prog list "main" ---
0010 (streq.go:7) TEXT main+0(SB),$16-0
0011 (streq.go:8) LEAQ go.string.""+0(SB),BX
0012 (streq.go:8) MOVQ (BX),BP
0013 (streq.go:8) MOVQ 8(BX),CX
0014 (streq.go:9) MOVQ (BX),BP
0015 (streq.go:9) MOVQ 8(BX),AX
0016 (streq.go:10) CMPQ CX,AX
0017 (streq.go:10) JNE ,26
0018 (streq.go:11) LEAQ go.string."ok"+0(SB),BX
0019 (streq.go:11) LEAQ (SP),BP
0020 (streq.go:11) MOVQ BP,DI
0021 (streq.go:11) MOVQ BX,SI
0022 (streq.go:11) MOVSQ ,
0023 (streq.go:11) MOVSQ ,
0024 (streq.go:11) CALL ,runtime.printstring+0(SB)
0025 (streq.go:11) CALL ,runtime.printnl+0(SB)
0026 (streq.go:13) RET ,

What do you see instead?

This is the assembly from 6g with inlining. Note the useless MOVB $0,.anon2, which after
two jumps (!), is overwritten by MOV AX,.anon2, then compared to $0.

--- prog list "main" ---
0010 (streq.go:7) TEXT main+0(SB),$24-0
0011 (streq.go:8) LEAQ go.string.""+0(SB),BX
0012 (streq.go:8) MOVQ (BX),SI
0013 (streq.go:8) MOVQ 8(BX),DX
0014 (streq.go:9) MOVQ (BX),CX
0015 (streq.go:9) MOVQ 8(BX),BP
0016 (streq.go:10) MOVB $0,.anon2+-1(SP)
0017 (streq.go:10) JMP ,20
0018 (streq.go:10) MOVQ $1,AX
0019 (streq.go:10) JMP ,23
0020 (streq.go:10) CMPQ DX,BP
0021 (streq.go:10) JEQ ,18
0022 (streq.go:10) MOVQ $0,AX
0023 (streq.go:10) MOVB AX,.anon2+-1(SP)
0024 (streq.go:10) MOVBQZX .anon2+-1(SP),BX
0025 (streq.go:10) CMPB BX,$0
0026 (streq.go:10) JEQ ,35
0027 (streq.go:11) LEAQ go.string."ok"+0(SB),BX
0028 (streq.go:11) LEAQ (SP),BP
0029 (streq.go:11) MOVQ BP,DI
0030 (streq.go:11) MOVQ BX,SI
0031 (streq.go:11) MOVSQ ,
0032 (streq.go:11) MOVSQ ,
0033 (streq.go:11) CALL ,runtime.printstring+0(SB)
0034 (streq.go:11) CALL ,runtime.printnl+0(SB)
0035 (streq.go:13) RET ,

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

Linux

Which version are you using? (run 'go version')

14893:591fc8a0131a
Issue 1:
pkg/client/record failed, but afaict didn't give useful output

http://pr-test.k8s.io/23285/kubernetes-pull-test-unit-integration/19655/

ok k8s.io/kubernetes/pkg/client/leaderelection 1.110s

FAIL k8s.io/kubernetes/pkg/client/record 2.569s

ok k8s.io/kubernetes/pkg/client/restclient 1.282s

Issue 2:
WARNING: DATA RACE

Write by goroutine 32:

testing.(_common).log()

/usr/local/go/src/testing/testing.go:353 +0x1e6

testing.(_common).Logf()

/usr/local/go/src/testing/testing.go:366 +0x82

testing.(_common).Logf-fm()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event_test.go:351 +0x5f

k8s.io/kubernetes/pkg/client/record.(_eventBroadcasterImpl).StartLogging.func1()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event.go:216 +0x2a7

k8s.io/kubernetes/pkg/client/record.(*eventBroadcasterImpl).StartEventWatcher.func1()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event.go:237 +0x14e

Previous read by main goroutine:

runtime.convT2E()

/usr/local/go/src/runtime/iface.go:128 +0x0

testing.(_T).report()

/usr/local/go/src/testing/testing.go:538 +0xa18

testing.RunTests()

/usr/local/go/src/testing/testing.go:591 +0xbdf

testing.(_M).Run()

/usr/local/go/src/testing/testing.go:515 +0x11d

main.main()

k8s.io/kubernetes/pkg/client/record/_test/_testmain.go:70 +0x210

Goroutine 32 (running) created at:

k8s.io/kubernetes/pkg/client/record.(_eventBroadcasterImpl).StartEventWatcher()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event.go:239 +0x8f

k8s.io/kubernetes/pkg/client/record.(_eventBroadcasterImpl).StartLogging()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event.go:217 +0xa5

k8s.io/kubernetes/pkg/client/record.TestEventf()

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/record/event_test.go:351 +0x3034

testing.tRunner()

/usr/local/go/src/testing/testing.go:473 +0xdc

https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/23527/kubernetes-pull-test-unit-integration/19502/build-log.txt
Issue 1:
Apache Airflow version: 2.0.2

Kubernetes version:

Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.17-gke.1901", GitCommit:"b5bc948aea9982cd8b1e89df8d50e30ffabdd368", GitTreeState:"clean", BuildDate:"2021-05-27T19:56:12Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}

Environment: Kubernetes setup where the schedule component ran its own pod.

What happened:

Scheduler memory crept up for no apparent reason given a deployment with two simple DAGs.

What you expected to happen:

I expect the scheduler memory usage to not build up over time and should remain relatively flat throughout the scheduler process lifetime.

How to reproduce it:

Start a scheduler process in a pod and watch the memory usage over time.

These are the scheduler configurations

1 CPU and 3.75 GB memory

CeleryExecutor

2 parsing processes

2 simple DAGs

Issue 2:
Hey @ashb - following your request of observing the self-hosted behavior.

I believe the current scale-in settings are slightly too aggressive - especially when the traffic is low (weekends).

I pushed a number of builds here (and @turbaszek as well):

https://github.com/apache/airflow/actions/workflows/build-images-workflow-run.yml

And quite a number a lot of them failed without logs indicating the scale-in event happened. some of them with 'git' failed, some of them with explicitly lost communication

Some examples here:

https://github.com/apache/airflow/actions/runs/651685483

https://github.com/apache/airflow/actions/runs/651569791

https://github.com/apache/airflow/actions/runs/651571502

https://github.com/apache/airflow/actions/runs/651550722

https://github.com/apache/airflow/actions/runs/651642721

https://github.com/apache/airflow/actions/runs/651688017

(maybe some of those were cancelled as duplicates - but at most 1 or 2)

At the same time a number of those jobs succeeded, so I think the scale-in events are the ones to blame.

The previous setting was much more stable (but more costly as well) - however I think I will merge the #14531 which should sigificantly decrease the time needed from the runners so hopefully we will be able to tune up the scale-in settings so that they are more stable.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/2194/

Failed: [k8s.io] DaemonRestart [Disruptive] Kubelet should not restart containers across restart {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Sep 3 14:40:48.396: Couldn't delete ns: "e2e-tests-daemonrestart-hzwrs": namespace e2e-tests-daemonrestart-hzwrs was not deleted with limit: timed out waiting for the condition, namespace is empty but is not yet removed (&errors.errorString{s:"namespace e2e-tests-daemonrestart-hzwrs was not deleted with limit: timed out waiting for the condition, namespace is empty but is not yet removed"})
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338

Previous issues for this test: #27502 #28722

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

Failed: [k8s.io] DaemonRestart [Disruptive] Kubelet should not restart containers across restart {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:133
Jul 8 17:10:18.307: Couldn't delete ns "e2e-tests-daemonrestart-p29h1": namespace e2e-tests-daemonrestart-p29h1 was not deleted within limit: timed out waiting for the condition, pods remaining: []

Previous issues for this test: #27502
Issue 1:
If we add "pull-right" in navbar-nav class ul tag for right align links.

Then when we expand and collapse navbar menu once then it does not get open again on clicking the navbar-toggle in mobile device.

here is the bootply example:

http://bootply.com/70846#

but if we don't keep pull right in navbar-nav it works fine.

if we have 2 navbar-nav class ul tag one with pull-right (2nd ul tag) and other without it (1st ul tag) then it works again. Here is bootply version of that too:

http://bootply.com/70855#

Browser: Firefox 22.0

Update-1 : In Chrome, it does collapse and expand as many times as we want but it collapse abruptly ( without animation)

Issue 2:
$('body').on(....) does not work with something like https://github.com/rails/turbolinks. If you change it to $(document).on(...) it does work. Document is the top most element where events bubble up to.
Issue 1:
Steps to Reproduce

flutter upgrade 0.2 to 0.3

flutter doctor in my project folder

got things like below:

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Downloading package sky_engine...(cached)
Downloading common tools... 7.0s
Downloading windows-x64 tools... 9.9s
Downloading android-arm-profile/windows-x64 tools...
Could not authenticate download server. You may be experiencing a man-in-the-middle attack,
your network may be compromised, or you may have malware installed on your computer.
URL: https://storage.flutter-io.cn/flutter_infra/flutter/06afdfe54ebef9168a90ca00a6721c2d36e6aafa/android-arm-profile/windows-x64.zip

Each time I run flutter doctor, I got different logs. After several times, I got one log like below:

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Downloading package sky_engine...(cached)
Downloading common tools...(cached)
Downloading windows-x64 tools...(cached)
Downloading android-arm-profile/windows-x64 tools...(cached)
Downloading android-arm-release/windows-x64 tools...(cached)
Downloading android-arm64-profile/windows-x64 tools...(cached)
Downloading android-arm64-release/windows-x64 tools...(cached)
Downloading android-x86 tools... 116.9s
Downloading android-x64 tools... 42.0s
Downloading android-arm tools... 45.0s
Downloading android-arm-profile tools...
Could not authenticate download server. You may be experiencing a man-in-the-middle attack,
your network may be compromised, or you may have malware installed on your computer.
URL: https://storage.flutter-io.cn/flutter_infra/flutter/06afdfe54ebef9168a90ca00a6721c2d36e6aafa/android-arm-profile/artifacts.zip

After many many times, it become a normal flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.4.4, on Microsoft Windows [Version 10.0.17134.81], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected devices (1 available)

• No issues found!

I'm from China, and add the environment variable like wiki article said.

Issue 2:
Working on issues with the Firestore plugin, specifically #13043, and the need to have support for additional types that are specific to the Firestore plugin, led to the creation of flutter/plugins#343 .

This solution works, but introduces code duplication and additional maintenance needs.

A more permanently correct solution would be to allow for StandardMessageCodec to be extended somehow. The particulars of how to do so are why I opened this for discussion.
Issue 1:
my directory structure has the pages folder inside a src root and the static folder is on the same level as the src folder,how do i configure webpack so as i can be able to access the files inside the assets folder from the src/pages/index.js

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

Current Behavior

Steps to Reproduce (for bugs)

1.create src folder

2.move pages into src

3.try accessing static/xyz.png from src/pages/index.js

Context

directory structuring tryin to move all dynamic code into src

Tech
Version

next

node

OS

browser

etc

Issue 2:
I am trying to use nextjs with express by loading the nextjs app as an express router. I am mostly following the express example in the example folder but when the server starts up, I can only access the index page. All the other pages aren't loaded into the build folder. Not sure why that's happening as everything works perfectly if I load the next app directly rather than loading it as an express router.

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

Expected & Current Behavior

I expected all the pages to load normally but that's not happening as only the index page loads

Steps to Reproduce (for bugs)

The project can be access here. It's very similar to the express example in the nextjs repo other than splitting out the rendering into an express router file, which is what I am trying to accomplish

index.js(main project entry)

import express from 'express'
import next from 'next'

import { apiRouter, nextRouter, app } from './server/router'

const start = async () => {
const server = express()
await app.prepare()

server.use('/api', apiRouter)

server.use('*', nextRouter)

server.listen(3000, (err) => {
if (err) throw err
console.log('> Ready on http://localhost:3000')
})
}

start()

nextRouter.js

import express from 'express'
import next from 'next'

import conf from '../../client/next.config'

const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev, dir: './client', conf})
const handle = app.getRequestHandler()
const nextRouter = express.Router()

nextRouter.get('*', (req, res) => {
return handle(req, res)
})

export {
app,
nextRouter
}

Context

I am trying to use nextjs with backpackjs and I have been mostly successful. I am trying to separate out the nextjs app rendering into a separate express router file as that would allow me to better define route rendering on the server side

Your Environment

Tech
Version

next
latest

node
8.2.1

OS
macOS 10.12.5

browser
chrome
Issue 1:
I am not able to push to GitHub from inside VS Code? The git output looks like this:

git push
remote: Anonymous access to rmaclean/Website_DevConf.git denied.
fatal: Authentication failed for 'https://github.com/rmaclean/Website_DevConf.git/'

​The anonymous part is odd, since I am prompted for my credentials and they are correct (I can use the command line tools fine). I am not using credential helper at the moment.

Issue 2:
I have scm git installed and GitHub for Windows.

When I try to push I get prompted for username/password then get "Authentication failed on the git remote."

I am able to push from GitHub for Windows and command line using same credentials
Issue 1:
All other bits come out 0:

In [2]: a=numpy.array([0x1,0x3])

In [3]: numpy.bitwise_and.reduce(a)
Out[3]: 1

In [4]: a=numpy.array([0x2,0x3])

In [5]: numpy.bitwise_and.reduce(a)
Out[5]: 0

Surely this is because bitwise_and.identity is 1, when it should be -1 (i.e. all bits set).

Issue 2:
In numpy 1.9.0 I get the following

>>> numpy.bitwise_and.identity
1

But the correct identity should be a pattern of all 1's (for whatever the operation type is). This leads to bizarre results like the following:

>>> numpy.bitwise_and.reduce([4])
0