WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This code anywhere in next page

<img src="/static/" />

will cause node to freeze after rebuild. Page cannot be reloaded and node CPU and memory usage continue to rise until I terminate the task.

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

Expected Behavior

It should probably throw error and crash.

Current Behavior

There's a memory leak that causes node to freeze.

Steps to Reproduce (for bugs)

Create minimal next app

Add this code to index.js page

export default () => (
<div>
Hello
<img src="/static/" />
</div>
)

npm run dev

Load the page

Context

Your Environment

Tech
Version

next
3.0.1-beta.8

node
v8.1.1

OS
Windows 10

browser
Chrome

Issue 2:
When using the .jsx extension for pages the development workflow (node server.js) breaks.

The browser prints an error in the console.

Components on this page will not work.

React DevTools won't work.

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

Expected Behavior

There should be no difference in behavior, as when I am using the .js extension for pages.

Current Behavior

Browser prints the following error in the console:

index:1 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED
index:14 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED

NOTE: If I try to open these files in a new tab I am getting a regular 404.

React Components on this page won't execute a bit of code.

React DevTools can not connect to react.

Steps to Reproduce (for bugs)

Fire up a new nextjs project

Create a index.jsx with some dummy components

Start your dev env with next

Open the page in the browser

Context

I like having my files that actually contain jsx to be also named with the corresponding extension.

Your Environment

Tech
Version

next
4.4.0-canary3

node
9.4.0

OS
windows 10 1709 (build 16299.192), osx 10.13.2

browser
chrome 63.0

etc
linux subsystem for windows, same issue happens with cmd, tho

EDIT: Verified the same behavior on a mac.
Issue 1:
e.g rust run "folder name"

Issue 2:
To replicate:

% mkdir /tmp/iss5806_dir ; \
echo '#[path = "iss5806_dir"] pub mod iss5806_mod;' > /tmp/iss5806.rs ; \
echo 'pub fn main() { println("Hello World"); }' >> /tmp/iss5806.rs ; \
RUST_LOG=rustc=1 rustc /tmp/iss5806.rs
rust: task failed at 'explicit failure', /Users/fklock/Dev/Mozilla/rust.git/src/libstd/io.rs:928
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/fklock/Dev/Mozilla/rust.git/src/librustc/rustc.rc:398
rust: domain main @0x7fd1c1814210 root task failed

(Original report follows:)

I had code like this:

#[cfg(target_os="macos")]
#[path = "linux"]
pub mod font;

This causes rustc to spin forever. Here's the interesting part of the stack trace:

https://gist.github.com/metajack/5347891
Issue 1:
All Challenges: Especially in the Javascript where I feel I am not learning anything and guessing at the answers. Why are the solutions not saved??!! I was hoping to have them saved so that I could go back and reference them now that I have to create the code for the harder challenges. Sorry but I am having a hard time with Javascript - it is probably why I have avoided it for 20 years!! No solutions saved, umm yeah not cool.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-find-the-longest-word-in-a-string has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The code editor does not update with the code changes.

The editor retains the code I originally entered, which is not correct. I corrected my code, and passed the challenge. It gave me the success message, and incremented my task counter, but when I return to this page, it still has my original, incorrect code.
Issue 1:
The following program, http://play.golang.org/p/92JZyQQ-Gr, fails because an err value is shadowed.

This error cropped up a few times in the standard library (and more times in user code).

@robpike thinks the compiler should catch this.

Discussion: https://groups.google.com/forum/#!topic/golang-nuts/MdDLbvOjb4o

Issue 2:
This block

{

x := 0

_ = x

x = 1

}

compiles without error, whereas I would expect an error on the "x=1" line. Something like "x assigned and not used".

For precedent we have the existing "x declared and not used" error. This is essentially the same error.

For someone bitten by the lack of this error, see http://www.qureet.com/blog/golang-beartrap/
Issue 1:
Code Sample, a copy-pastable example if possible

>>> idx = pd.CategoricalIndex(['low', 'low', 'hi', 'hi'])
>>> idx.reindex(idx)[0].values
[low, low, low, low, hi, hi, hi, hi]
Categories (2, object): [hi, low]

I'm not sure that it is unexpected behavior, but it seems to be one of the reasons for #21809

Expected Output

Output of pd.show_versions()

INSTALLED VERSIONS

commit: 0a0b2b9

python: 3.6.6.final.0

python-bits: 64

OS: Linux

OS-release: 4.13.0-46-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.24.0.dev0+333.g0a0b2b9fc

pytest: 3.6.2

pip: 10.0.1

setuptools: 39.2.0

Cython: 0.28.3

numpy: 1.14.5

scipy: 1.1.0

pyarrow: 0.9.0

xarray: 0.10.7

IPython: 6.4.0

sphinx: 1.7.5

patsy: 0.5.0

dateutil: 2.7.3

pytz: 2018.4

blosc: None

bottleneck: 1.2.1

tables: 3.4.4

numexpr: 2.6.5

feather: 0.4.0

matplotlib: 2.2.2

openpyxl: 2.5.4

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 1.0.5

lxml: 4.2.2

bs4: 4.6.0

html5lib: 1.0.1

sqlalchemy: 1.2.8

pymysql: 0.8.1

psycopg2: None

jinja2: 2.10

s3fs: 0.1.5

fastparquet: 0.1.5

pandas_gbq: None

pandas_datareader: None

gcsfs: 0.1.0

Issue 2:
I have tried to find related issue but failed... so pardon me if it is a duplicate:

ATM if groupping doesn't result in actually all possible combinations, the pandas spits out non-informative

/home/yoh/deb/gits/pkg-exppsy/pandas/pandas/core/groupby.py in _aggregate_series_pure_python(self, obj, func, ngroups)
431 raise ValueError('function does not reduce')
432
--> 433 counts[label] = group.shape[0]
434 result[label] = res
435

IndexError: index out of bounds
> /home/yoh/deb/gits/pkg-exppsy/pandas/pandas/core/groupby.py(433)_aggregate_series_pure_python()
432
--> 433 counts[label] = group.shape[0]
434 result[label] = res

imho there could be an option to still handle those but place NaNs for those entries, OR at least spit out an informative exception something like "combination f1='x', f2='y' doesn't have data entries in the original data, or smth like that
Issue 1:
$ flutter test test/
At least one of --debug or --release must be set, to specify the local build products to test.

Specifying --debug or --release gives me this:

flutter --debug test test/
Unable to detect local Flutter engine build directory.
Either specify a dependency_override for the sky_engine package in your pubspec.yaml and
ensure --package-root is set if necessary, or set the $FLUTTER_ENGINE environment variable, or
use --engine-src-path to specify the path to the root of your flutter/engine repository.

Perhaps I missed a step somewhere for setting this up, but the getting started page doesn't mention anything about setting up sky_engine and flutter doctor doesn't indicate any issues. I suspect it's an OSX specific issue.

Issue 2:
We just don't upload the binaries to google storage, but we could.

For now I'm disabling running flutter test tests on our new mac infra.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The numbers go into the right spots on the image and the 2nd checkmark still says its wrong even when i use other people's code and theirs works for them it doesnt for me.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue.

The second condition for this challenge:

You should have used the the selector given in the description to select each slot and assign it the value of slotOne, slotTwo and slotThree respectively

The selector in the description:

$($(".slot")[0]).html(slotOne);

The condition passes when you use double quotes in the selector per the description:

$($(".slot")[0]).html(slotOne);
$($(".slot")[1]).html(slotTwo);
$($(".slot")[2]).html(slotThree);

It fails with single quotes:

$($('.slot')[0]).html(slotOne);
$($('.slot')[1]).html(slotTwo);
$($('.slot')[2]).html(slotThree);

Maybe we are trying to conform to the jQuery JavaScript Style Guide? Still, both seem to be valid JavaScript. Indeed, the challenge immediately following this one uses single quotes for the selector in the description and passes with either single or double quotes.

Waypoint: Give your JavaScript Slot Machine some stylish images

$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');
Issue 1:
Migrated issue, originally created by Chris Withers (@chrisw)

I added some custom DDL to a table definition as follows:

event.listen(
Observation.__table__,
'after_create',
DDL(
'alter table observation add constraint observation_best ...'
)
)

...but it wasn't firing, not even an exception when I deliberately misspelled the table name ;-)

Tracked it down to this class I use to allow one schema to be managed by multiple python packages:

https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L59

This line in particular:

https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L81

It appears that call isn't carrying the event handlers across to the table created in the new metadata object. For my use case, it needs to, but I appreciate my use case may well be a bit of an edge case.

Issue 2:
Migrated issue, originally created by Anonymous

After executing table.tometadata(metadata), the new table's new column's info dictionaries are references to the original columns' dictionaries instead of a copy of the dictionary.

If this is by design for some reason, no hard feelings, close ticket, but seems bad design to me to have the new instances of the columns referencing the original columns' info dictionaries.
Issue 1:
It seems that importing scipy.optimize adds at least "constants" to sys.modules which will cause overshadowing of a local constants.py further up sys.path if imported after scipy.optimize (in this case it was imported by sklearn).

I did not try/think it through, but I guess that the setup.py is incorrect and:

ext = config.add_extension(
'constants',
sources=['cython/src/constants.cxx'],
include_dirs=[
'cython/src/',
'src/',
'src/io/',
'src/lp_data/',
'src/simplex/',
],

should not be 'constants' but rather 'scipy.optimize._highs.constants'?

Reproducing code example:

Python 3.8.6 (default, Sep 25 2020, 09:36:53)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import sys

In [2]: "constants" in sys.modules.keys() # as expected, not already imported
Out[2]: False

In [3]: from scipy import optimize

In [4]: sys.modules["constants"] # Now it is the scipy module!
Out[4]: <module 'scipy.optimize._highs.constants' from '.../python3.8/site-packages/scipy/optimize/_highs/constants.cpython-38-x86_64-linux-gnu.so'>

In [5]: import scipy

In [6]: scipy.__version__
Out[6]: '1.6.0'

Issue 2:
If you have a module named constants in your project, then if you try to use that module while at the same time using scipy.signal (and it seems any module that uses scipy.optimize), you'll get an exception. It seems to be related to https://github.com/scipy/scipy/blame/master/scipy/optimize/_highs/cython/src/constants.pyx

Reproducing code example:

#!/bin/sh

# Don't run this in a place where you have an existing file named `constants.py`
echo "MY_IMPORTANT_CONSTANT = 1" > constants.py
python3 -c "from scipy import signal; import constants; print(constants.MY_IMPORTANT_CONSTANT)"
rm constants.py

Error message:

Traceback (most recent call last):
File "<string>", line 3, in <module>
AttributeError: module 'scipy.optimize._highs.constants' has no attribute 'MY_IMPORTANT_CONSTANT'

Scipy/Numpy/Python version information:

1.6.0 1.19.4 sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0)
Issue 1:
Currently "[1:5]" represents "[1, 2, 3, 4, 5]".

But ranges are not the same as arrays!

"[1:5]" should not equal "[1, 2, 3, 4, 5]"!

I believe we need to be able to create array of ranges in a concise way. For example, "[1:5, 1:3]" should be an array of two ranges: "1 to 5" and "1 to 3".

Range(s) between "[" and "]" should still be range(s).

We could convert range to array: "convert(Array, 1:5)" would give "[1, 2, 3, 4, 5]".

It is clear that it is not a must-do for "[1:5]" representing "[1, 2, 3, 4, 5]".

So, why not consider "a..b" ?

Related issue: #8949

Issue 2:
With Julia 1.6, Artifacts.jl isre now a stdlib. However, it is not listed in the manual, https://docs.julialang.org/en/v1.7-dev/stdlib/Artifacts/ gives a 404. IMHO there really should be something here, even if it's just a few lines that point elsewhere (e.g. to the Pkg.jl manual). Right now, searching the Julia manual for "artifacts" gives zero hits.

So the de-facto canonical place for documentation on artifacts is still Pkg.jl, specifically https://julialang.github.io/Pkg.jl/dev/artifacts/. But that does not (yet?) reflect the fact that Artifacts are now a stdlib (perhaps deliberately, but I think at least a callout pointing out this change in Julia 1.6 would be nice.

And then there is LazyArtifacts.jl about which I learned by pure chance a few days ago when I chanced upon a random conversation about it on Slack. The entire documentation for this seems to be an entry in HISTORY.md. While admittedly error messages kinda guide you to it when you need it, I think the documentation for artifacts should also mention this stdlib package.
Issue 1:
System info

Playwright Version: 1.32.3

Operating System: macOS 13.3.1

Browser: N/A

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/OliverJAsh/playwright-ts-paths-issues/tree/base-url-ignored

Test file (self-contained)

import * as Foo from "Foo";
console.log(Foo);

tsconfig.json:

"baseUrl": ".",
"paths": {
"shared/*": ["./shared/*"]
}

Steps

$ yarn
$ rm -rf .cache && tsc
$ rm -rf .cache && playwright test

Expected

playwright test should resolve all modules correctly, as per the behaviour of tsc.

Actual

playwright test results in the following error:

Error: Cannot find module 'Foo'
Require stack:
- /Users/oliverash/Development/playwright-ts-paths-issues/tests/example.spec.ts

Workaround

diff --git a/tsconfig.json b/tsconfig.json
index 0eaedd8..89c2a6f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,6 +5,7 @@
"rootDir": ".",
"baseUrl": ".",
"paths": {
+ "*": ["./*"],
"shared/*": ["./shared/*"]
}
},

This shouldn't be necessary because Playwright should use the baseUrl to resolve the import specifier.

Issue 2:
System info

Playwright Version: "@playwright/experimental-ct-react": "^1.35.1"

Operating System: Windows 11

Browser: All

Other info: Yarn v3.6 with PnP, Node v20.3.0

I followed https://playwright.dev/docs/test-components#how-to-get-started in order to add Playwright Component Testing support to my project. While all of the initialization steps seemed to succeed, running the test command fails.

Source code

Steps

Unzip provided source code

Run yarn

Run yarn test:components

Expected

Playwright test suite runs and denotes that the App.spec test failed as it's looking for different text than what's being rendered within App

Actual

Playwright test suite fails to start with the following error:
Issue 1:
Page(s) affected: http://www.freecodecamp.com/challenges/Waypoint:%20Say%20Hello%20to%20HTML%20Elements

The buttons for "More information" from the very first coding task onwards ("Hello World" in h1 tags) do not work and completing the tasks required does not allow progression to the next task. The buttons and page elements worked perfectly in previous tasks but cannot progress in the coding tasks.

Using Up-to-date Chrome on Android smartphone.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-say-hello-to-html-elements has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

I was unable to access the instructions for this module because the button labeled "More Information" was unresponsive on my mobile devices (both iPhone & iPad). For both, I'm running iOS v 8.3.

The editor and display both seem to be working fine. It would be extremely useful to be able to use my mobile devices in addition to my laptop because it's easier to integrate into my daily routine.
Issue 1:
Adding RCall stalls with the last output being:

INFO: Cloning cache of DataFrames from git://github.com/JuliaStats/DataFrames.jl.git

This can be circumvented using:

Pkg.clone("git://github.com/JuliaStats/DataFrames.jl.git")

and Pkg.add("RCall") proceeds to completion. The problem is that after the Pkg.clone step completes, Pkg.update() now stalls permanently. I observe this behavior on both Linux and Mac OS X 10.10 systems. The version of julia this happens on is:

Version 0.4.0-dev+5287 (2015-06-09 22:19 UTC)

Commit c7e2b33* (0 days old master)

I've been observing this behavior in the master branch for a couple of weeks, now.

Issue 2:
I am experiencing a very confusing behavior (bug?) when redefining a function. A minimal example can be described in the following way:

julia> f(x) = x
f (generic function with 1 method)

julia> [f(x) for x in 1:3]
3-element Array{Int64,1}:
1
2
3

Now redefine the function

julia> f(x) = 2*x
WARNING: Method definition f(Any) in module Main at REPL[2]:1 overwritten at REPL[4]:1.
f (generic function with 1 method)

and try it

julia> [f(1) for x in 1:3]
3-element Array{Int64,1}:
2
2
2

julia> f(2)
4

julia> [f(x)+0 for x in 1:3]
3-element Array{Int64,1}:
2
4
6

So far so good. BUT:

julia> [f(x) for x in 1:3]
3-element Array{Int64,1}:
1
2
3

julia> [f(x) for x in 1:7]
7-element Array{Int64,1}:
1
2
3
4
5
6
7

In these cases the old version of f is probably being called...

Output of versioninfo:

julia> versioninfo()
Julia Version 0.5.1
Commit 6445c82* (2017-03-05 13:25 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libm
LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)

It looks like this bug does not affect 0.5.0 or 0.6.0-pre.alpha.52.
Issue 1:
I'm attempting to create a stripplot with empty circles as markers. #520 includes such an example The OP uses the following code to achieve the image beneath:

import seaborn as sns
df = sns.load_dataset("tips")
ax = sns.stripplot(x="sex", y="tip", hue="day", data=df, jitter=True, edgecolor=sns.color_palette("hls", 4), facecolors="none", split=False, alpha=0.7)

Using the same code and seaborn 0.8.1 and matplotlib 1.5.3 (ipykernel.pylab.backend_inline), I cannot reproduce empty circle markers (same goes for seaborn = 0.7.1, matplotlib = 2.0.2 ). Instead, I get:

Is it still possible to set the marker facecolor using the current seaborn release?

Issue 2:
Seaborn kdeplot does not return handles or labels from legend, and it does not allow any customization whatsoever of legend.

Try for yourself with the iris flower dataset using the kdeplot function with the hue set by species.

Here is my simple code:

sns.kdeplot(data=afrisar_df_ha, x="Ndens, hue="Site", ax=ax[0])
ax[0].legend(loc="upper left", title=None)

Error message returned is:

"No handles with labels found to put in legend."

Thanks,

Alex
Issue 1:
I was planning to use some C++ code with Deno, and i was wondering how would i make Deno use C++?

Issue 2:
requested by @bartlomieu following our chat on the deno/lobby i'm opening an issue concerning, how can we do to write a plugin in pure C code ?

for exemple:

-- hello.c

#include <stdio.h>

void deno_plugin_init(void){
puts("Welcome in the deno land !");
}

void dino(void){
puts("[OK]");
}

gcc -c -Wall -fpic hello.c

gcc -shared -o libhello.so hello.o

and the following deno code:

hello.ts

const libhello = Deno.openPlugin("./libhello.so")
const funct_hello = libhello.ops
// this thing work correctly and call deno_plugin_init from my ".so" library
funct_hello.dino()
// Type 'PluginOp' has no call signatures.

so how can we do ?
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 a feature request that matches the one I want to file, without success.

Electron Version

13.4.0

What operating system are you using?

Windows

Operating System Version

Windows 10.0.19042 Build 19042

What arch are you using?

x64

Last Known Working Electron version

12.x

Expected Behavior

When the title option is omitted when calling showMessageBox, the title should be the name of the app.

Actual Behavior

The dialog title contains random unicode characters at the beginning (see screenshot):

Testcase Gist URL

https://gist.github.com/andycreeth/1e614739b49a29447a651b962df37f1b

Additional Information

The linked gist has a minimal reproduction case that is broken on all 13.x version on Windows 10.

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

13.1.6

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

ia32

Last Known Working Electron version

12.0.15

Expected Behavior

Window alert() and prompt() dialogs titles should be name field specified in package.json

Actual Behavior

The first 4 characters of the title are always randomised as seen in image below.

Testcase Gist URL

https://gist.github.com/CiaranCarroll1/c4e9fdc2db23a649c7f506dc9ac9b411

Additional Information

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

Just put your stack trace here!

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

When load balance choosing, we would like to use local instances at first, if no local services available, then use round robin load balance strategy.