WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have a bunch of pages with antd components and others without. In production, when I initially load (by clicking on a Link) a page with antd components it takes forever to load. If I type the URL directly in the address bar, then the page with antd components loads fine. Every second or third time I click on the Link the navigation works correctly. The only issue I am having is when I click on a Link the first time. FWIW, the size of the pages that contain antd components is 647 kB. I do not knows if this is because of server resources or because of a bug in Next.js. I also know that this happens in production as well as development. I also had to do a workaround to get antd styles working, as shown in the following code snippets.

next.config.js

/* eslint-disable */
const withLess = require('@zeit/next-less')
const lessToJS = require('less-vars-to-js')
const fs = require('fs')
const path = require('path')

// Where your antd-custom.less file lives
const themeVariables = lessToJS(
fs.readFileSync(path.resolve(__dirname, './assets/style.less'), 'utf8')
)

module.exports = withLess({
compress: false,
lessLoaderOptions: {
javascriptEnabled: true,
modifyVars: themeVariables, // make your antd custom effective
},
webpack: (config, { isServer }) => {
if (isServer) {
const antStyles = /antd\/.*?\/style.*?/
const origExternals = [...config.externals]
config.externals = [
(context, request, callback) => {
if (request.match(antStyles)) return callback()
if (typeof origExternals[0] === 'function') {
origExternals[0](context, request, callback)
} else {
callback()
}
},
...(typeof origExternals[0] === 'function' ? [] : origExternals),
]

config.module.rules.unshift({
test: antStyles,
use: 'null-loader',
})
}
return config
},
})

.babelrc

{
"presets": ["next/babel"],
"plugins": [
[
"import", {
"libraryName": "antd",
"style": true
}
]
]
}

Next.js version: 9.0.8
antd version: 3.24.3
@zeit/next-less version: 1.0.1

Issue 2:
This is bug report

Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:

https://github.com/standy/next-css-error

Bug appears in next@7.0.0 + next-css@1.0.1,

Older next@6.1.2 + next-css@0.2.0 works fine
Issue 1:
I find that when setting the y-axis to log-transformed coordinates, it seems that only the upper limit is plotted.

(
so.Plot(x=[1,2,3], y=[10, 100, 1000])
.add(so.Bar())
) # original

(
so.Plot(x=[1,2,3], y=[10, 100, 1000])
.add(so.Bar())
.scale(y='log')
) # log-transformed

fig = (
so.Plot(x=[1,2,3], y=[10, 100, 1000])
.add(so.Bar())
.plot()._figure
)
ax = fig.axes[0]
ax.set_yscale('log')
fig # expected

Issue 2:
When specifying a log y scale for a Bar plot the bars are not drawn correctly.

Example code:

df = pd.DataFrame.from_dict(
{
'x_values': [1,2,3,20],
'frequency': [10000,100,10,1]
}
)
plot = (
so.Plot(df, x="x_values", y = "frequency")
.add(so.Bars(edgecolor="C0", edgewidth=2))
.scale(y="log")
)

plot.show()

result:
Issue 1:
Duplicate: http://stackoverflow.com/questions/9762685/using-the-requests-python-library-in-google-app-engine

Google App Engine is used by a lot of developers. I use the python environment myself. It's sandboxed and can't rely on any non-Python code. It also has other restrictions (for example, you need to use this patched version of urllib3 urllib3/urllib3#61.)

I can successfully

import requests

but then

response = requests.get('someurl')

fails with the following traceback. Does anyone know what's going on?

Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/admin/init.py", line 317, in post exec(compiled_code, globals()) File "", line 6, in File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/api.py", line 52, in get return request('get', url, *_kwargs) File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/api.py", line 40, in request return s.request(method=method, url=url, *_kwargs) File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/sessions.py", line 208, in request r.send(prefetch=prefetch) File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/models.py", line 458, in send self.auth = get_netrc_auth(url) File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/utils.py", line 43, in get_netrc_auth for loc in locations: File "/Users/Rohan/Dropbox/MuktiTechnologiesINC/MuktiTechnologies/GAE/humanmictweet/GAE/libraries/requests/utils.py", line 40, in locations = (os.path.expanduser('~/{0}'.format(f)) for f in NETRC_FILES) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 260, in expanduser userhome = pwd.getpwuid(os.getuid()).pw_dir AttributeError: 'module' object has no attribute 'getuid'

Issue 2:
After upgrading to 1.1.0, I now get this error when trying to pickle the Session object:

File "/Library/Python/2.6/site-packages/requests/sessions.py", line 397, in getstate

return dict((attr, getattr(self, attr, None)) for attr in self.attrs)

AttributeError: 'Session' object has no attribute 'attrs'
Issue 1:
This is possibly a duplicate of 3573, but is logged since the problem does not appear to
be completely fixed at tip, so it was suggested that I relog.

$ go version
go version weekly.2012-03-27 +d8e47164f8dd

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Run one of the variations of the program at:
http://play.golang.org/p/wG8AK7AAQl

Variations include changing const id = ... to var id = ... and also changing the values
assigned to id. The struct sp can also be defined as a struct { string int string int }
to the same effect as presented in the linked code.

What is the expected output?
The numbers 0-499 on separate line.

What do you see instead?
The numbers 0-81 on separate lines followed by any of (variable results for any given
program):
1. 'throw: hashmap assert'
when id is const or var "", var or const "a", var ~>
"naaa" (4-words checked only)

2. 'invalid memory address or nil pointer dereference'
when id is var ""

3. 'unexpected fault address'
when id is const or var "a" or ~< "naaa" (4-words checked)

4. no termination with 100% CPU usage.
when id is const or var ~> "naaa" (4-words checked only)

NB 4-words not exhaustively checked.

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')
go version weekly.2012-03-27 +d8e47164f8dd

Please provide any additional information below.
Using sf with only the int field or the string field results in normal behaviour.

Issue 2:
I feel like I saw this issue discussed somewhere already, but now I can't find an issue or golang-dev discussion. Apologies if this is a duplicate.

The instructions at https://golang.org/doc/install/source say

Go will install to a directory named go. Change to the directory that will be its parent and make sure the go directory does not exist. Then clone the repository and check out the latest release tag:

$ git clone https://go.googlesource.com/go
$ cd go
$ git checkout go1.4.1

but of course this is out of date and should be 1.4.2.

It would be even better if this could be updated automatically for new releases, or at least if there were some list of all references to be updated.
Issue 1:
In Deno 1.10.1 using the Plugin Extension API, I get a sporadic Access violation resulting a silent crash.

Attaching the Visual Studio debugger gets me this:

Stack trace

plugin.dll!v8::internal::tracing::TraceEventHelper::GetTracingController() Line 20	C++
plugin.dll!v8::internal::Heap::DevToolsTraceEventScope::DevToolsTraceEventScope() Line 1526	C++
plugin.dll!v8::internal::Heap::CollectGarbage() Line 1558	C++
plugin.dll!v8::internal::Heap::AllocateRawWithLightRetrySlowPath() Line 5098	C++
plugin.dll!v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath() Line 5113	C++
plugin.dll!v8::internal::Factory::AllocateRaw() Line 258	C++
plugin.dll!v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString() Line 561	C++
plugin.dll!v8::internal::Factory::NewStringFromUtf8() Line 654	C++
plugin.dll!v8::String::NewFromUtf8() Line 6457	C++
plugin.dll!v8__String__NewFromUtf8() Line 843	C++
>	plugin.dll!rusty_v8::string::{{impl}}::new_from_utf8::{{closure}}(rusty_v8::string::{{impl}}::new_from_utf8::closure-0 sd, rusty_v8::scope::data::ScopeData *) Line 104	Unknown
plugin.dll!rusty_v8::scope::HandleScope<tuple<>>::cast_local<rusty_v8::data::String,closure-0>(rusty_v8::string::{{impl}}::new_from_utf8::closure-0 self) Line 224	Unknown
plugin.dll!rusty_v8::data::String::new_from_utf8(slice<u8> scope, rusty_v8::string::NewStringType new_type) Line 103	Unknown
plugin.dll!rusty_v8::data::String::new(str scope) Line 173	Unknown
plugin.dll!serde_v8::ser::{{impl}}::serialize_str(serde_v8::ser::Serializer self, str) Line 413	Unknown
plugin.dll!serde::ser::impls::{{impl}}::serialize<serde_v8::ser::Serializer>(alloc::string::String * self, serde_v8::ser::Serializer serializer) Line 60	Unknown
plugin.dll!serde_v8::ser::{{impl}}::serialize_value<alloc::string::String>(serde_v8::ser::MapSerializer * self, alloc::string::String * value) Line 336	Unknown
plugin.dll!serde::ser::SerializeMap::serialize_entry<serde_v8::ser::MapSerializer,str,alloc::string::String>(serde_v8::ser::MapSerializer * self, str value, alloc::string::String *) Line 1823	Unknown

The observation here is that the String in Rust is correct, meaning the data that is converted to the V8 equivalent is not corrupted.

Issue 2:
As discussed with @AaronO, passing a serde_json::Value to an op in some situations (eg. in plugin api) seems to crash the program.

➜ ../target/debug/deno --version
deno 1.9.2 (debug, x86_64-apple-darwin)
v8 9.1.269.5
typescript 4.2.2

steps to reproduce are here https://github.com/denoland/deno/pull/10536/files:

➜ cd test_plugin
➜ cargo build && ../target/debug/deno run --allow-plugin --unstable tests/test.js debug
Finished dev [unoptimized + debuginfo] target(s) in 0.32s
Plugin rid: 3
[1] 4574 segmentation fault ../target/debug/deno run --allow-plugin --unstable tests/test.js debug
Issue 1:
Issues with styling when using JSS expand syntax like padding: [40, 40].

Beta 21

Beta 24

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

Expected Behavior

JSS expanded syntax should affect styling in the same manner as regular styles. I would expect that both red and blue boxes render exactly the same given that they're technically applying the same styles.

Current Behavior

In both beta 21 and beta 24 part (or all) of the styling doesn't apply properly. Notice the differences in padding between the red (JSS expand) and blue (regular styles) boxes

Steps to Reproduce (for bugs)

Beta 24 example: https://codesandbox.io/s/mq76424onx

Beta 21 example: https://codesandbox.io/s/myznn5lmk9

Context

This impacts both material UI components, or custom components using JSS expand.

Issue 2:
Problem description

When loading a fresh SelectField component and giving it the list of options, the browser renders and shows the first item as selected. If you inspect the actual value, it still null.

Steps to reproduce

http://www.material-ui.com/#/components/select-field

Take a look at the Floating Label Text example

Versions

Material-UI: 0.15.3

React: 15.3.0

Browser: 52.0.2743.82 (64-bit)

Screenshot:
Issue 1:
Challenge Say Hello to HTML Elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<h1>Hello World</h1>

Uncaught TypeError: Cannot read property 'join' of null

vendor-main-00eff8238f.js:30

Issue 2:
I cann't press the button "Submit and go to my next challenge (ctrl + enter)". But if I clicked I only see the infinite loading. How to solve this problem?
Issue 1:
In with-firebase-hosting I got 404 page once I run npm run serve and go to localhost:5000/

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

Expected Behavior

See the next server running, home page

Current Behavior

404 page

Steps to Reproduce (for bugs)

Clone the repo

Install dependencies then add my firebase project name

npm run serve

Issue 2:
Hi,

I want create a web app with redux-saga and firestore.

I have created a repo based on with-firebase-hosting here => https://github.com/Bolket/next-firebase-functions/tree/withSaga.

My next.config.js

module.exports = { distDir: '../../build/functions/next' };

If i remove next.config.js it works fine but with a different distDir I have this message in console => Warning: Expected server HTML to contain a matching <h1> in <div>. and the server send a 404 error.

Steps to Reproduce (for bugs)

Clone this repo => https://github.com/Bolket/next-firebase-functions/tree/withSaga

yarn

yarn next

Your Environment

Tech
Version

next
4.4.0-canary.3

node
8.9.3

OS
MacOS

browser
Chrome 63.0.3239.132
Issue 1:
Challenge Name

Issue Description

Browser Information

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

// If relevant, paste all of your challenge code in here

Screenshot

Issue 2:
We're getting scattered reports of users getting 522(timeout) errors when trying to reach the site.

If you've encountered it, please list your locations (city/state/country), whether it is still happening, if it's consistent, and whether you can access the site now.

I have a pretty good idea of the cause and I'm trying to verify it.
Issue 1:
by ianremmler:

What does 'go version' print?

go version go1.3 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

http://play.golang.org/p/gQM33-crSr

Running go build will, about 15% of the time, produce a seemingly spurious error.

What happened?

ian@tau:~/devel/go/src/github.com/ianremmler/foobar% go build
# github.com/ianremmler/foobar
./foobar.go:31: cannot use f (type *C.foo) as type *C.struct_foo in argument to toGo
./foobar.go:32: cannot use gf.toC() (type *C.struct_foo) as type *C.foo in argument to
_Cfunc_foofunc

What should have happened instead?

No error.

Please provide any additional information below.

This is a pared down example based on a wrapper for the chipmunk physics library that I
forked and have been (mildy) maintaining:

https://github.com/ianremmler/chipmunk

The error did not occur in earlier Go versions. The cyclically dependent C structs seem
to be implicated as the error goes away if the bar pointer is removed from foo, or vice
versa.

Issue 2:
by ninkendo:

This is on a University server (I'm the admin) and I'm trying to get Go
working on an NFS mount so all our Ubuntu servers can have the go compiler
on it (so students can play around with it.)

I can consistently compile Go from a directory like /tmp or /usr/src, but
cloning the hg tree to a NFS-mounted direcory always results in a segfault.

What steps will reproduce the problem?
1. Clone the mercurial tree to an NFS filesystem
2. Set GOBIN to any directory, on or off NFS
3. cd to $GOROOT/src and run ./all.bash

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

Expected build to perform the same as it does on non-nfs filesystems.

Instead, get the following:

gopack grc _obj/runtime.a _go_.6 asm.6 cgocall.6 chan.6 closure.6 float.6
hashmap.6 iface.6 malloc.6 mcache.6 mcentral.6 mem.6 mfixalloc.6 mgc0.6
mheap.6 mheapmap64.6 msize.6 print.6 proc.6 reflect.6 rune.6 runtime.6
rt0.6 sema.6 signal.6 slice.6 string.6 symtab.6 sys.6 thread.6 traceback.6
make[1]: *** [_obj/runtime.a] Segmentation fault
rm reflect.c string.c sema.c malloc.c
make[1]: Leaving directory `/nfs/apps/go/src/pkg/runtime'
make: *** [runtime.install] Error 2

I can reliably reproduce the segfault from $GOROOT/src/pkg/runtime and
running the above gopack command.

What is your $GOOS? $GOARCH?
linux, amd64

(Ubuntu 8.04.3 LTS, kernel 2.6.24-24-server)

Which revision are you sync'ed to? (hg log -l 1)

changeset: 3975:b51fd2d6c160

Please provide any additional information below.

strace dump is included. It looks like it's segfaulting trying to talk to
winbind for user authentication? Not sure if gopack is doing any of this,
or if it's library code... but it reliably works when $GOROOT is on a local
filesystem.

Attachments:

strace.txt (9011 bytes)
Issue 1:
https://github.com/sindresorhus/atom-jshint/issues/70

I was hoping to toggle packages in command + shift + p menu because its handy and easy. Maybe adding a quick package menu using a different hotkey just to toggle them?

Issue 2:
Inspired by steelbrain/linter#496

Currently there is no way to enable / disable any package from the command palette, which can lead to some clunky workflows and packages adding enablement commands when they shouldn't have to.

(Sublime's Package Control also allows for this behavior from the command palette.)
Issue 1:
I am not an advanced user of CSS so forgive me if this issue is due to my misunderstanding.

I am using the latest (v2.0.3) bootstrap Hero example to show this issue. When I create a single_long_word of text greater than about 1/2 the column size (due to a large font or simply a large number of characters in a single word), the text extends past the column before the layout adjusts as I make the browser window smaller

All I had to do was change the text in the column to make a large or long word and then reduce the window size of the browser. The column layouts do eventually adjust to allow for more width, but not before the long word exceeds the boundary of the column it is in.

This happens for both normal and fluid containers in with a responsive grid.

It is easy to duplicate in Chrome by just going to this page and editing the text after inspecting a column element.

http://twitter.github.com/bootstrap/examples/hero.html

I have also posted the issue to http://stackoverflow.com/questions/10778699/bootstrap-grid-not-adjusting-before-text-flows-outside-of-container but have not yet received any suggestions.

Issue 2:
I'm mostly interested in only the @twbs/team's feedback, so this is locked to just us for now.

Do we need to add a FAQs section to the docs? Most of the time, I think duplicate issues stem from bugs that don't last very long. However, I have noticed a decent amount of how-to type things. Some FAQ-like docs might help a lot of folks out. The idea isn't to reproduce what's in the docs, but to build on them.

A few ideas popped into my head (some better than others):

How do you change the font-size?

How do you override something?

How do you change or remove the grid gutters?

Why don't you use Stylus? Or the Sass syntax and HAML?

What are the .map files?

What are the typeahead options?

How do I add submenus to dropdowns?

How can I enable JavaScript form validation?

Other icon font options?

Things that shouldn't be FAQs and should be clearly stated in the docs (perhaps?):

How do you enable the theme?

What's box-sizing: border-box; and why do you use it? Kind of already addressed

Adding another grid tier

What's mobile-first?

Maybe that distinction isn't clear, but I'm curious if folks think it's helpful to have a separate thing or just implement this stuff into the docs where appropriate.
Issue 1:
Is there any plan to extend axe-core(https://www.deque.com/axe/) support for Playwright Java?

I am currently using Playwright Java for functional automation testing and realized that there is no support for accessibility testing in Playwright java. However, it's there with Playwright Node.js.

Issue 2:
I think accessibility testing is equally important to functional and visual testing for a web application.

I am currently using Playwright-Java as an automation tool for functional testing and there is no support for accessibility testing with Playwright-Java. However, there is support available for Playwright-Node.js.

Could you please consider extending accessibility testing support to Playwright Java as well?
Issue 1:
Call me crazy but.

What if I need to create a highly consuming task I don't want to be runned by Deno? Is there any way to program Rust code inside Deno?

Or do I have to set up a completely new Rust server to do it and call it as an API?

I honestly don't see a way to do this without making a hole in the whole Deno structure, but being able to use Rust as more than just the interpreter looked like an idea that's worth giving a shot.

Issue 2:
I know that using protobufs simplifies the writing of native modules, but how does importing them work?

What's the structure of it supposed to be?

How do we specify how the native module should be built?
Issue 1:
by mschlimp:

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.
type ViewStruct struct {
Func struct{Html HtmlSnippet}
Data map[string] interface{}
}

type HtmlSnippet func(arg string) string

func print(s string) string {
return s
}

func (s HtmlSnippet) Stylesheet_link_tag(arg string) string {
return s("<link type='text/css' rel='stylesheet' media='all' href='/stylesheets/"+arg+".css'>")
}

2.

Inside of the template I use the following code to get acess to the function:

...
{{.Func.Html.Stylesheet_link_tag "/stylesheets/jquery-ui-1.8.9.custom.css" }}
...

What is the expected output?

<link type='text/css' rel='stylesheet' media='all'
href='/stylesheets/stylesheets/jquery-ui-1.8.9.custom.css.css'>

What do you see instead?

template: parent:9: wrong number of args for Html: want 1 got 0I

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

Which operating system are you using?
MacOS: 11.2.0 Darwin Kernel Version 11.2.0

Which revision are you using? (hg identify)
1f5208fb59ff tip

Issue 2:
This CL broke the linux-arm-luitvd builder:

cgo: adjust return value location to account for stack copies.
https://code.google.com/p/go/source/detail?r=b4a82354d4003e8d8df025500916c6a99b5a7598

with:

...
# ../misc/cgo/test
--- FAIL: Test8694 (0.00s)
issue8694.go:23: C.complexFloatSquared((2+3i)) = (0+0i), want (-5+12i)
FAIL
exit status 1
FAIL _/tmp/gobuilder/linux-arm-luitvd-8f36a32a9d03/go/misc/cgo/test 3.989s
Build complete, duration 55m37.194876138s. Result: error: exit status 1
....

I don't know the hardware details of the luitvd. It's not listed at
https://code.google.com/p/go-wiki/wiki/DashboardBuilders
Issue 1:
by jcowgar:

What steps will reproduce the problem?
1. Create a source file:

package main

import "io"

func main() {
fmt.Printf("Hello")
}

What is the expected output?
$ govet hello.go
hello.go:3 io package imported but not used
hello.go:6 fmt package is unknown/not imported

What do you see instead?
$ govet -v=true hello.go
Checking file hello.go
$

Which operating system are you using?
Linux (ArchLinux)

Which revision are you using? (hg identify)
95d2ce135523 (release-branch.r57) release/release.r57.1

Please provide any additional information below.

Issue 2:
by cgmurray:

What steps will reproduce the problem?
run "go test -x ROOT_PACKAGE/..." with go 1.0.3 and tip (13e00572ed0b)

What is the expected output?
working directory is changed for every package with go 1.1, "cd ... or
equivalent"

What do you see instead?
working directory is not changed for every package as with go 1.0.3

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

Which operating system are you using?
osx

Which version are you using? (run 'go version')
go version devel +13e00572ed0b Thu Apr 18 17:37:21 2013 -0700 darwin/amd64

Please provide any additional information below.
This might break backwards compatibility. In the specific use-case a relative
library-path is set with -L