WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
fn main() {
let mut a = [0, 1, 2, 3];
let b = vec::filter(a) {|c|
a = [];
true
};
}

==18087== Thread 8:
==18087== Invalid read of size 8
==18087== at 0x4012C6: vec::filter1::_6a4a1114ba818cf3 (in /home/banderson/Dev/rust2/build/x86_64-unknown-linux-gnu/test/run-pass/test.stage1-x86_64-unknown-linux-gnu)
==18087== by 0x400FBE: main::_843f8e32b1779b32 (in /home/banderson/Dev/rust2/build/x86_64-unknown-linux-gnu/test/run-pass/test.stage1-x86_64-unknown-linux-gnu)
==18087== by 0x4010E9: _rust_main (in /home/banderson/Dev/rust2/build/x86_64-unknown-linux-gnu/test/run-pass/test.stage1-x86_64-unknown-linux-gnu)
==18087== by 0x54C3E3A: task_start_wrapper(spawn_args*) (rust_task.cpp:176)
==18087== Address 0x67ec620 is 16 bytes inside a block of size 48 free'd
==18087== at 0x4C282ED: free (vg_replace_malloc.c:366)
==18087== by 0x54D82B8: ??? (in /home/banderson/Dev/rust2/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==18087==

Issue 2:
Running this program:

use std;
import std::io;

fn iter(&&v: [uint], f: fn(uint)) {
for i in v { f(i) }
}

fn main(args: [str]) {
let v = vec::enum_uints(0u, 10u);
iter(v) { |i|
v = [];
io::print(#fmt["i=%?\n", i]);
}
}

yields this output

i=0
i=2
i=171048973
i=1979117988610105
i=4122818071364057393
i=3978138846657458487
i=3979273541751617588
i=51
i=17293822612877934602
i=17293822569102704640
i=9

I expected a compile error.
Issue 1:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/

Issue 2:
Tested on both iOS 5+ and android 4.0.4.. Menu items in dropdown from btn in navbar not clickable

div class=btn group

a class=btn dropdown-toggle data-toggle=dropdown

ul class=dropdown-menu

li

a
Issue 1:
with-firebase-hosting example is giving error when upgrading Next to version 6. I tried it with v6.0.0 and 6.0.1-canary.1. Problem occurs when running deploy command.

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

Expected Behavior

Project should deploy succesfully

Current Behavior

It gives the error below

C:\projects\with-firebase-hosting>yarn deploy
yarn run v1.6.0
warning package.json: No license field
$ firebase deploy

=== Deploying to '****-app'...

i deploying functions, hosting
Running command: npm run build-funcs && npm run build-app && npm run copy-deps && npm run install-deps

> with-firebase-hosting@3.0.0 build-funcs C:\projects\with-firebase-hosting
> babel "src/functions" --out-dir "dist/functions"

Error: Error: Cannot find module 'babel-preset-env' from 'C:\projects\with-firebase-hosting\src\functions'
- Did you mean "@babel/env"?
at C:\projects\with-firebase-hosting\node_modules\@babel\cli\lib\babel\dir.js:185:22
at C:\projects\with-firebase-hosting\node_modules\@babel\cli\lib\babel\dir.js:148:23
at C:\projects\with-firebase-hosting\node_modules\@babel\cli\lib\babel\dir.js:120:23
at C:\projects\with-firebase-hosting\node_modules\@babel\cli\lib\babel\dir.js:82:23
at C:\projects\with-firebase-hosting\node_modules\@babel\cli\lib\babel\util.js:126:16
at C:\projects\with-firebase-hosting\node_modules\@babel\core\lib\transform-file.js:49:14
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:188:16)

Your Environment

Tech
Version

next
6.0.0 & 6.0.1-canary.1

node
8.11.1

OS
Windows 10

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

Expected Behavior

Calling app.render(req, res, pathname, query) should not cause any issues.

Current Behavior

If app.render(req, res, pathname, query) is called and query is not an object, there will be a nasty error that will happen when calling Router.push (or any other router method that internally calls change).

Steps to Reproduce (for bugs)

Set up a custom Next.js server

Call app.render while passing an undefined value for query.

Call Router.push with the same pathname and a query.

Context

I was trying to move from a dynamic server to using static exports and had to deal with this bug for about two hours. I've gone deep into Next.js's source code so I can help pinpoint the exact path the bug follows. Basically, it's something like app.render -> renderToHTML -> doRender -> new Router.

To solve this issue it's as simple as modifying the shallow comparison function to be a bit more safe. It should check that both inputs are objects and if not return false. For now, I'm just doing the following:

server.get('*', (req, res, n) => {
const { pathname } = parse(req.url, true)
const route = routes[pathname]
if (route) return app.render(req, res, route.page, route.query || {})
n()
})

This example in the wiki should be updated.

Your Environment

Tech
Version

next
3.2.2

node
8.4.0

OS
macOS 10.12.6

browser
Chrome 60.0.3112.113
Issue 1:
Version

2.6.14

Reproduction link

codesandbox.io

Steps to reproduce

打开链接 直接在页面中的 输入框输入内容即可复现该错误

What is expected?

name 的值应该正确的被设置

What is actually happening?

报错 TypeError: _vm.$set is not a function

我发现是因为 _vm 没有 $set 方法导致的，此时 _vm.$set 如果被渲染成 _vm.injections.rootNode.$set 就没有问题了

Issue 2:
Vue.js version

2.0 rc

Reproduction Link

http://codepen.io/anon/pen/xEqbmN?editors=1010#0

What is Expected?

Not sure if this is what is expected in Vue 2.0. Tried to search but couldn't find anything.

e.g:

data: {
model: {
a: ''
}
}

<input v-model="model.a" />
<input v-model="model.b" />

If you pass an uninitialized property (model.b) to v-model, it's obviously not reactive so bindings won't update or a deep watch on this.model won't fire off either.

Any chance that v-model could use Vue.set internally if it detects a binding with value undefined to automatically create reactive properties? (like Vue 1.0)

Or failing that, it should warn when an uninitialized property is passed to v-model
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

package-lock.json uses private verdaccio endpoint for the resolved field as opposed to the NPM registry.

One work around for this is to do a find all and replace in the package-lock.json whenever you run npm i. But that is a real hassle.

Expected Behavior

There to be an option to not use the private verdaccio endpoint for the resolved field so when other users run npm i they don't run into errors.

Steps To Reproduce

Set .npmjs to registry=http://thisismyprivateverdaccioendpoint.com/

Create a project (npm init)

Run npm i --save express (or any package)

Notice how package-lock.json will have the resolved property set to the registry set in .npmjs

Send project to someone else without node_modules folder

Have them run npm i

Notice that there is an error

Environment

OS: macOS 12.0 Beta (21A5268h)

Node: v16.4.2

npm: 7.18.1

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

When installing a scoped modules using a private registry that returns resolved URLs that point at the public registry, npm 7 rewrites the resolved url to point at the private registry.

For example:

npm i --registry=http://localhost:8080 --cache=empty @babel/helper-validator-identifier

results in

npm ERR! code E404
npm ERR! 404 Not Found - GET http://localhost:8080/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz

Despite the fact that:

npm v --registry=http://localhost:8080 --cache=empty @babel/helper-validator-identifier dist.tarball

shows

https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz

This happens with and without lockfiles but only happens with scoped modules and an empty cache (as having the content hash in the cache means that network requests are skipped).

Expected Behavior

I would expect npm to not rewrite resolved urls.

If it were to rewrite resolved urls is intended, I would expect it the same for scoped and unscoped packages. (But I would much prefer that it didn't.)

Steps To Reproduce

git clone https://github.com/iarna/repro-resolved-rewrite

cd repro-resolved-rewrite

npm it

Environment

Tested on:

OS: Debian

node: 16.4.2

npm: 7.18.1, 7.19.1
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report

Current behavior

File type input ngModel's value isn't updating after file upload.

Expected behavior

File type input ngModel's value should be updated after file upload.

Minimal reproduction of the problem with instructions

Steps to reproduce:

Bind component's class property to file type input via ngModel directive.

Output ngModel's value to a view.

Upload a file.

Demo: http://plnkr.co/edit/WC8lnvkUnOw1wxeZ0P7M.

Environment:

OS: Windows 10.

IDE: WebStorm 2016.3.2.

Angular version: 4.0.0-beta.1.

Browser: Chrome 55. Surprisingly, bug isn't reproducible at least in IE 11.

Language: TypeScript 2.0, ES6.

Issue 2:
I notice there is no control value accesor for inputs of type "file"
Issue 1:
Code Sample, a copy-pastable example if possible

# Your code here

Problem description

Hello I am new to python pandas and i am having a problem figuring out how i can merge multiple values inside a single cell into a one line.

Incorrect:

1644107,"Delete stub zones

map.com

map.net",completed

Correct format:

1644107,Delete stub zones map.com map.net,completed

[this should explain why the current behaviour is a problem and why the expected output is a better solution.]

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

Issue 2:
When reading a csv, generated by Microsoft SQL Server management studio in UTF-8 encoding by following line of code:

df = pd.read_csv(file.csv)

gives problems when specific data frame columns are addressed.

Reading the csv itself doesn't give any problem or warning. And it is possible to view the data frame (showing the proper header names). But when you want to address a specific column by its header name, the following error occurs:

KeyError: 'no item named header name'

When opening the file with a text editor and saving it in ANSI format, the issue isn't there anymore. This workflow helped to overcome this issue by accident, since I was not aware of any encoding issues at all.

It would be a big time saver for a user when he is made aware of possible encoding issues at the moment of reading a file. If a column is shown properly and when you address this column by its name resulting in a KeyError is confusing and not helpful.
Issue 1:
Hi, i'm running gofmt on every save and observed something odd after running it on my code:

package test

func F1(s string, path string, config Config) string {
r2 := regexp.MustCompile("http://(asset-[^.].)" + replaceString)
return s
}

func F2(s string, path string, config Config) string {
r := regexp.MustCompile("https?://([^ '\"]*)bla.foo")
s = r.ReplaceAllString(s, "http://${1}"+replaceString)
return s
}

Why is there a space around "+" in the first func and no space around "+" in the second?

Issue 2:
by zippoxer:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem. Thanks.

What steps will reproduce the problem?
1. Installing gomingw installer for build of release r60.1
2. Running goinstall.exe, even with no parameters.

What is the expected output?
You know that ;-)

What do you see instead?
throw: runtime: cannot reserve arena virtual address space

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

Which operating system are you using?
Windows 7

Which revision are you using? (hg identify)
I ran "Installer for Win32 (experimental) build of release.r60.1"
(hd identify doesn't cooperate, sorry)

Please provide any additional information below.
Issue 1:
At the moment when none of the contributed completion processors returns any proposals, the textual completion processor starts adding proposals.

That's fine for languages where we have no sophisticated completion processor, but looks bad for languages that pretend to have a 'smart' completion processor.

Issue 2:
Don't try to content assist / perform intellisense when writing a comment. Really really annoying, when every other word pops up suggestions. Don't want it.

Dupe of #538 that got closed but not fixed really though.
Issue 1:
I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

i have done all this

import { LOCALE_ID } from '@angular/core';

{ provide: LOCALE_ID, useValue: 'en-ca' }

but console.log(new Date().toLocaleDateString()); is yyyy-m-d

Expected behavior

i want the locale change to 'en-ca'

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/ulSNTMTMZmORzvkVTvch?p=preview

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

change the locale for Date

Please tell us about your environment:

win10

Angular version: 2.0.X

angular 4.1.3

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

chrome 58.0.3029.110

Language: [all | TypeScript X.X | ES6/7 | ES5]

typescript 2.3.1

Node (for AoT issues): node --version =

node v6.10.1

Issue 2:
I'm submitting a ... (check one with "x")

[X] bug report

Current behavior

Setting LOCALE_ID via providers passed to bootstrapModule doesn't work. Locale is en-US. There is a hack that aimed to fix this issue, but it is not working (application_module.ts - provider of LOCALE_ID). It is not working, because the factory doesn't get LOCALE_ID injected, so it cannot forward it.

This problem is only in JiT mode. AoT mode works well.

Expected behavior

Overriding LOCALE_ID should work in JiT mode.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/4FK0VfJzJtrf5uzEDNfa?p=preview

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

This usage is described in official i18n guide.

Please tell us about your environment:

Angular version: 4.1.3

Browser: all | Chrome

Language: TypeScript 2.*
Issue 1:
Hi Github Fam,

I am now successfully able to configure new Postgres database and able to connect to SuperSet via it but I am still not able to use upload CSV option, it gives me error that "ERROR: Failed to fetch schemas allowed for csv upload in this database! Please contact your Superset Admin!". I have already selected "allowed CSV upload" option from EXTRA tab. Please suggest.

Alternate solution - I created dummy data in database and then pulled it via SQL in Superset.

Warm Regards,

Gaurang M

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

/home/ubuntu/code/superset/local/lib/python2.7/site-packages/flask_appbuilder/fields.py:152: UserWarning: allow_blank=True does not do anything for QuerySelectMultipleField.

warnings.warn('allow_blank=True does not do anything for QuerySelectMultipleField.')

I have checked the superset logs for python stack traces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.23.3

Expected results

superset should work

Actual results

dashboard blank

/home/ubuntu/code/superset/local/lib/python2.7/site-packages/flask_appbuilder/fields.py:152: UserWarning: allow_blank=True does not do anything for QuerySelectMultipleField.

warnings.warn('allow_blank=True does not do anything for QuerySelectMultipleField.')

Steps to reproduce

/home/ubuntu/code/superset/local/lib/python2.7/site-packages/flask_appbuilder/fields.py:152: UserWarning: allow_blank=True does not do anything for QuerySelectMultipleField.

warnings.warn('allow_blank=True does not do anything for QuerySelectMultipleField.')
Issue 1:
I have the following code which runs fine by NodeJS (save in a file called error.js):

'use strict';
var arr = [];
function a (b, c)
{
arr.push ({ e: "RESERVED",
arguments,
c })
}
a("hi1", "hi2")
a("hi3", "hi4")
console.log(arr)

<OUTPUT>
[ { e: 'RESERVED',
arguments: { '0': 'hi1', '1': 'hi2' },
c: 'hi2' },
{ e: 'RESERVED',
arguments: { '0': 'hi3', '1': 'hi4' },
c: 'hi4' } ]

However, if I transform this with babel by using the code, I get an error:

const babel = require('babel-core');
const fs = require('fs')
const code = fs.readFileSync('error.js', 'utf8');
babel.transform(code, {retainLines: true, presets: ['es2017', 'es2015']});

SyntaxError: unknown: arguments is a reserved word in strict mode (8:5)
6 | {
7 |	arr.push ({	e: "RESERVED",
> 8 |	arguments,
|	^
9 |	c })
10 | }

I need to get babel to work on this kind of examples by tomorrow... Is there an easy way to make babel work?

Issue 2:
Issue originally made by @Strate

Bug information

Babel version: 6

Node version: 4

npm version: 3

Options

presets=['react','es2015']
plugins=['transform-runtime']

Input code

// file.js
export function some() {}

// module.js
export * from "./file"

// index.js
import * as Module from "./module"

Description

Babel compilation fails with

Unexpected token
You may need an appropriate loader to handle this file type.
| "use strict";
|
| import _Object$defineProperty from "babel-runtime/core-js/object/define-property";
| Object.defineProperty(exports, "__esModule", {
| value: true
@ ./module.js 8:13-42

disabling transform-runtime plugins definetely fixes the problem
Issue 1:
Hello there,

I'm attempting to integrate react-notification-system with next.

react-notification-system requires you to have this component at the root of the app. Given that next.js apps are organised in pages it seems to be impossible to do this. If react-notification-system is initialised on each individual page then you lose the notifications when routing between pages.

I attempted to initialise this within pages/_document.js but it appears that this is only used server side for the initial render.

Is there any way to hook into the App or Container component at the root?

For now i've had to add a rather hacky ReactDOM.render which is less than ideal...

Issue 2:
Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with react-motion etc). As I understand it, one would need to modify the top-level App component.

The client entry file seems to look for a globally assigned __NEXT_DATA__.app variable but I can't find any documentation on that.
Issue 1:
http://pr-test.k8s.io/22807/kubernetes-pull-build-test-e2e-gce/32271/build-log.txt

STEP: Destroying namespace "e2e-tests-services-1ymgz" for this suite.
STEP: Destroying namespace "e2e-tests-services-kdrdp" for this suite.
Mar 10 11:15:17.444: INFO: Pod e2e-tests-services-kdrdp mutability-test-r7zn3 on node e2e-gce-builder-3-3-minion-gt43 remains, has deletion timestamp <nil>
Mar 10 11:15:17.444: FAIL: Couldn't delete ns "e2e-tests-services-kdrdp": pods remained within namespace e2e-tests-services-kdrdp after deletion: [mutability-test-r7zn3]

â€¢ Failure in Spec Teardown (AfterEach) [417.838 seconds]
Services
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service.go:902
should be able to change the type and ports of a service [AfterEach]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service.go:716

Mar 10 11:15:17.444: Couldn't delete ns "e2e-tests-services-kdrdp": pods remained within namespace e2e-tests-services-kdrdp after deletion: [mutability-test-r7zn3]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework.go:177

Issue 2:
It seems there is some bug around namespace controller. What happened is:

08:05:39 STEP: Collecting events from namespace "e2e-tests-density-b5lqr".
08:05:39 STEP: Destroying namespace "e2e-tests-density-b5lqr" for this suite.
09:05:40 Feb 25 09:05:40.322: FAIL: Couldn't delete ns "e2e-tests-density-b5lqr": namespace e2e-tests-density-b5lqr was not deleted within limit: timed out waiting for the condition, pods remaining: []

So basically, namespace wasn't deleted for the whole hour.

Then the next test actually timed out

09:05:40 Feb 25 09:05:40.997: INFO: >>> testContext.KubeConfig: /jenkins-master-data/jobs/kubernetes-kubemark-gce/workspace/kubernetes/test/kubemark/kubeconfig.loc
09:05:40
09:05:41 Feb 25 09:05:41.182: INFO: Waiting for terminating namespaces to be deleted...
09:46:36
Build timed out (after 120 minutes). Marking the build as failed.

So in total, namespace wasn't deleted for more than 90 minutes (note that usually it takes ~2-3 minutes for density test).

https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-kubemark-gce/5970/build-log.txt

The problem is that we can't really debug it, since we don't have logs from k8s components if build times out. - @ixdy @spxtr @kubernetes/goog-testing