WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
by consalus:

With weekly.2011-03-15 (and tip) on darwin and linux 6g, when I try to compile the
"gotcl" project, the compiler segfaults, apparently due to stack overflow.
When run in gdb, it looks like the issue occurs in sinit.c. The stack frames show
bouncing back and forth between init2 and init2list, though the eventual segfault
appears to happen in init1. My guess would be a cycle in the Node tree.

This issue doesn't appear to happen with the "release" branch or the
"weekly.2011-03-07.1" branch, so I assume it was introduced sometime between
the 7th and the 15th. I haven't gotten a chance to narrow the change range further.

Steps to duplicate:

hg clone https://gotcl.googlecode.com/hg/ gotcl
cd gotcl
make

For me on two machines, that results in a segfault.

Interestingly enough, if one changes "chans.go" by commenting out line 136,
there is no segfault and everything compiles normally and tests pass. This phenomenon
doesn't appear to be dependent on the position of "forchan". When
"forchan" is added to the map by other means (in init), everything compiles
and it works fine.

Issue 2:
by gregory.tseng@moovweb.com:

Attached example program: regression.go

Environment: Windows 7 x64

Go versions: 1.0.3 and 1.2 (i386)

Assumptions:
Port 80 is occupied by another process.. Skype, Apache, etc.

Observations:
With go1.0.3, the example program will error out.

With go1.2, the example program (successfully?) binds to the port

Edge case:
If the first process that binds port 80 is a go program, the go1.0.3 example program
will not error out either.

If an additional instance of the compiled example program (in either go version) is run,
it will correctly error out.

Additional notes:
I tested the program on Ubuntu 12.04 x64 and in both go versions, it errors out
correctly.

I tried testing on Mac OSX (Mountain Lion and Mavericks), but did not end up with
conclusive results, so please check this out as well.

Attachments:

regression.go (178 bytes)
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Text: "Let's try getting a for loop to work by pushing values to an array."

Should probably say "...while loop to work..."

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-the-parent-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

"Your left-well element should have a red background." is not completed until you make it with #target1 as well.
Issue 1:
Electron version:0.37.2

Operating system: Windows 7 Pro 64 Bits

node: 4.4.2

I'm working on a Kiosk App and i use my Macbook to do it, but, the soft will run on Windows, so, i did everything on my macbook, and everything works fine, but, when i was on the windows machine and build the release for windows, it doesn't print, and don't show any error, so idk how to debug it.

I'm using the Printer Api included in Electron, and like i said, in osx it works !, i'm doing this:

var window = BrowserWindow.getFocusedWindow();
window.webContents.print({
silent:true
});

The thing is, if i use the print with silent:false and i select some printer it send the task, but it's never printed (i can saw just for a sec the print queue but it disappear immediately). So, i tried to do a printToPDF() and it works, it saves the PDF, i can see it.

I tried to send the task to a "PDFGenerator printer" and it generates a PDF but, it says that it's "not a pdf or corrupt"

I hope this make sense to anyone.

Related issue #5093

PD: I just make the same question on Stackoverflow and atom.discuss

Issue 2:
Electron version: 0.37.2

Operating system: Windows 7 64-bit

I have tried to call mainWindow.webContents.print, which showed the printer dialog but when I choose the printer, it just does nothing. Not even an error.

I have tried with multiple printers such as physical and virtual one (like print to XPS/PDF).

I suspect its my code, so I tried this this example as well but I got same result.

After that I tested it on another computer (Microsoft surface 4) and still nothing.

Then I run the same code on Mac OS, and it was working ok.

So I'm confusing right now and wondering if anybody else have same issue or not...

PS: webContents.printToPDF was also okay on windows since I guess has nothing to do with OS printing functionality.
Issue 1:
I have a package like repository path_to_A/A.jl

push!(LOAD_PATH, "path_to_A") would make A available for using

However, Pkg.test("A") to run the test doesn't work.

Currently I have to do:

# Change pwd to the correct folder.
cd("path_to_A/A.jl/test")
include("runtests.jl")

Issue 2:
it works fine if the package is in .julia/v0.x, but if it is somewhere else then it claims there is no test/runtests.jl even if my LOAD_PATH is set such that i can using it. i know that the recommended dev cycle is to keep packages in .julia, but would it make sense to make Pkg.test() work otherwise?
Issue 1:
Bug Report

Current Behavior

an exception occurs when instrumenting valid JavaScript syntax.

Input Code

function apple() {}
apple.prototype.foo = function foo () {
let foo = 99
console.info(foo)
}
apple.prototype.foo()

☝️ the above code results in the following exception:

TypeError: Cannot read property 'file' of undefined
at Scope.checkBlockScopedCollisions (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/scope/index.js:398:22)
at Scope.registerBinding (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/scope/index.js:592:16)
at Scope.registerDeclaration (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/scope/index.js:496:14)
at Object.BlockScoped (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/scope/index.js:244:28)
at Object.newFn (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/visitors.js:318:17)
at NodePath._call (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/path/context.js:44:14)
at NodePath.visit (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitMultiple (/Users/benjamincoe/oss/node/node_modules/nyc/node_modules/babel-traverse/lib/context.js:103:17)

Expected behavior/code

no exception occurs during instrumentation.

Environment

Babel version(s): [e.g. v6]

Node/npm version: [e.g. Node 8/npm 5]

OS: [e.g. OSX 10.13.4, Windows 10]

Monorepo [e.g. yes/no/Lerna]

How you are using Babel: [e.g. programmatically]

Possible Solution

var duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && (kind === "let" || kind === "const");

if (duplicate) {
throw this.hub.file.buildCodeFrameError(id, messages.get("scopeDuplicateDeclaration", name), TypeError);
}

☝️ this logic seems a little bit wonky in general, why is "let" being checked for in the left-hand-side of the OR and not "const" for starters.

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

@rollup/plugin-babel

Input code

Cannot find module './data/corejs3-shipped-proposals.json'

Configuration file name

No response

Configuration

No response

Current and expected behavior

Cannot find module './data/corejs3-shipped-proposals.json'

Environment

7.21.5

Possible solution

No response

Additional context

No response
Issue 1:
Object Oriented Waypoints, and many other http://www.freecodecamp.com/challenges/waypoint-condense-arrays-with-reduce are missing the instructions,

I (as 99% of all other campers that completed it) am just deducing the instructions from the 'assert test error messages'. But, thinking on behalf of future campers, I'm just letting you know (and I believe you already do).

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-use-appendto-to-move-elements-with-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Several of the jQuery Waypoint challenges don't show the checkmarks unless you hit the run code, so you don't always have the instructions on what to code unless you hit the run code box and then they they are gone again.
Issue 1:
File a bug.

This problem is caused in Firefox version 20.

The error is thrown by core.js in file es6.symbol.js at line

10583: var D = gOPD(it, key);

var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
it = toIObject(it);
key = toPrimitive(key, true);
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
var D = gOPD(it, key);
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
return D;
};

This is a blocking issue.

Issue 2:
Same as #254

firefox version 20
Issue 1:
Hi everyone, I was wondering whether anyone knows why t-SNE results into memory errors when reducing the dimension of the data to the default number, which is 2.

I have the mnist dataset and I apply some transformation on it. Resulting in a reduced mnist dataset.

Original: 60000x784

After transformation: 60000x200

When I apply t-SNE on transformed mnist 60000x200, I always get a memory error. Also I was wondering why doesn't the multicore option of n_jobs=-1 exist?

Issue 2:
The barnes-hut implementation of t-SNE currently uses a dense matrix representation for the distances, but should be using a sparse matrix.

Discussion see #4025
Issue 1:
Context:

GOOD Playwright Version: 1.31.2

BAD Playwright Version: 1.32.0

Operating System: Linux

After update playwright. My test.ts(name of file) with fixtures is compiling with other test nested in other folder.

Error: test file "tests/foo/save.test.ts" should not import test file "test.ts"

Describe the bug

Before version 1.32.0 works fine

Issue 2:
System info

Playwright Version: Version 1.32.0

Operating System: OS X Ventura 13.2.1

Browser: Chrome

This is the same issue as reported in #21979 except that my path structure is applications/kb-articles/tests/e2e/fixtures/test.ts and I have to rename test.ts to any other name for this work without throwing the error.

The fixture

// @ts-check
import { test as base } from '@playwright/test';

exports.test = base.extend({
page: async ({ page, playwright }, use, testInfo) => {
...
},
});

Using it

import { test } from '../fixtures/test';
Issue 1:
Martin Caslavsky opened SPR-6229 and commented

Submitting form with radiobutton(s) tag:

<form:radiobuttons path="myenumproperty"/>

fails with:

Failed to convert property value of type java.lang.String[] to required type MyEnum for property myenumproperty;
nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String[]]
to required type [MyEnum] for property myenumproperty: no matching editors or conversion strategy found

Works well in M3

Affects: 3.0 RC1

Issue Links:

#10858 Binding Enum values to beans broken in Spring 3 RC1 ("duplicates")

Issue 2:
Matthew Sgarlata opened SPR-465 and commented

The spring:message tag does not work when using Struts as the web tier instead of Spring. Basically, the MessageTag extends the RequestContextAwareTag, which delegates to RequestContextUtils. RequestContextUtils looks up items stored in the request by the DispatcherServlet. So, if you're coming from some other servlet (your own, Struts, etc) you are out of luck.

I think the best solution would probably be to move some methods in RequestContextUtils to WebApplicationContext (e.g. - getLocaleResolver, getLocale). This approach seems reasonable considering the WebApplicationContext interface already implements the ThemeSource interface.

I was going to try to submit a patch but it looks like the needed changes are a little more involved than I initially supposed, and it looks like there are several potential implementation strategies.

Affects: 1.1.2

Issue Links:

#5350 spring:* tags are not usable outside a dispatcher servlet request ("duplicates")
Issue 1:
I do not have an answer, so I post it again. I will delete it if there is a problem.

I use React and Elextron together.

Output of node_modules/.bin/electron --version:

[ I have verified the package.json file. ]

"electron": "2.0.2",

"electron-builder": "19.31.1",

"electron-prebuilt": "^1.4.13",

"electron-rebuild": "^1.5.11",

Operating System (Platform and Version): [ window10 ]

Expected behavior

[ jpeg type images must be saved to the clipboard.]

Actual behavior

[ An image of type png is saved to the clipboard. ]

The store can not be attached due to security reasons. Attach react source code instead.

copyClipboard(){
let that = this;
var xhr = new XMLHttpRequest();
xhr.onload = function() {
var reader = new FileReader();
reader.onloadend = function() {

let image = nativeImage.createFromDataURL(reader.result);
clipboard.writeImage(image, 'jpeg');

}
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', imgURL);
xhr.responseType = 'blob';
xhr.send();
}

Issue 2:
Output of node_modules/.bin/electron --version:2.0.8

Operating System (Platform and Version):MacOS

Expected behavior

Actual behavior

ipcMain.on("copy",(event, arg) =>{
const imagePath = "1.png"
const image = nativeImage.createFromPath(imagePath)
const { width, height } = image.getSize()
clipboard.writeImage(nativeImage.createFromBuffer(image.toPNG()),'png')
console.log("复制成功",width,height,clipboard.availableFormats())
})
Issue 1:
Glen Mazza opened SPR-2030 and commented

The samples/petclinic/war/WEB-INF/classes/messages_de.properties file should be removed or actual German translations provided.

Currently only "welcome" has been translated.

(Contents of file):

welcome=Willkommen

required=is required

notFound=has not been found

duplicate=is already in use

nonNumeric=must be all numeric

duplicateFormSubmission=Duplicate form submission is not allowed

typeMismatch.date=invalid date

typeMismatch.birthDate=invalid date

I suspect Joergen can handle this without too much difficulty.

(Also, in JIRA, would you please add a new "SpringSAMPLES" component or otherwise let me know which component I should place samples issues under?)

Thanks,

Glen

Affects: 2.0 M4

Issue 2:
Kenny MacLeod opened SPR-6856 and commented

The types SimpleJdbcDaoSupport (which extends JdbcDaoSupport), SimpleJdbcTemplate and SimpleJdbcOperations were introduced in Spring 2.0 to make life easier for Java 5 users.

Now that Spring 3.0 is Java5+ only, would it be worthwhile moving the methods and code from the SimpleJdbcXYZ types into the corresponding JbcXYZ types, and then deprecating the SimpleJdbcXYZ versions? Assuming that this can done in a backwards-compatible way, then the reasons for the separation are now purely historical.

Affects: 3.0 GA

Issue Links:

#11524 Push the Java 5 simplifications in SimpleJdbcTemplate up to JdbcTemplate ("duplicates")
Issue 1:
Elasticsearch version: 1.7.5

Description of the problem including expected versus actual behavior:

The following is a scenario where the allocation algorithm today can leave shards unassigned and requires manual intervention to reroute/swap shards between nodes for it to fully allocate the shards for an index: https://gist.github.com/ppf2/9a005e26e156c7e0face9c4b3d27c4d9

It will be great if there is a way for the allocation algorithm to be able to "look ahead" and try moving a different shard away to see if it helps with the allocation until it is able to fully allocate the shards - without requiring manual intervention by admins.

Issue 2:
This test uses a similar setup as 14010 (also using ES 1.7.2), the only difference is that for this use case, only 1 of the attributes (updateDomain) is set to be forced, the other attribute (faultDomain) is not set to be forced.

With this configuration, you will see from the video that the first issue I ran into is 14010 where I have to prod it by forcing a cluster reroute in order for it to complete its allocation. Except that even after prodding, one of the shard is not at the right place. If I use a manual reroute command to move it, it actually gets moved successfully and does not violate any routing rules. Given that it does not violate any routing rules, it seems like there is another bug here where it is not moving the shard to the right place automatically as part of awareness.

Repro video:

https://drive.google.com/file/d/0B1rxJ0dAZbQvd3p5Y3F0QzItMWs/view?usp=sharing

Node setup:

https://docs.google.com/document/d/1ktYSzaZh_FlhloSextzCNh3HYYS0OEE8wPU4jhHGPTo/edit?usp=sharing
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt] 10.0.18941.1001
Windows Terminal version (if applicable): commit 9d36b08b82c67c6965263c63bb83b024c15f3474

Any other software?

I know it is not a supported scenario, but with #2043 we can now run Terminal unpackaged.

And some people might prefer it this way.

Steps to reproduce

Run WindowsTerminal.exe directly, outside of app package.

Click about in the drop down menu.

Expected behavior

The about dialog show up as normal.

Actual behavior

The app crashes.

Issue 2:
Environment

Windows build number:
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

Connect on azure cloud shell

Run pwsh

if you run any command in bash mode and after running PowerShell clear output

freezing cursor and I can`t interact in the terminal.

Expected behavior

Actual behavior
Issue 1:
in other editor ,ctrl+ drag can copy the selected text, drag the selected text can move it

Issue 2:
I was sure an issue was already opened for this, but can't find it now.

Halp ticket:

support/5124ebc4cfa211e3871387e11a229b02

Would be cool if it was possible to select some text and then drag-and-drop it to some other place.
Issue 1:
fn main() {
let x : f32 = 1.0;
let y = x / 10; //error: the trait `core::ops::Div<_>` is not implemented for the type `f32`
}

The error message is confusing because it reads as though you cannot divide f32s at all when the real issue is that you can't divide a f32 by any other numeric type. The error message should at least say something about the different numeric types involved. Ideally it would suggest changing 10 to 10.0 or casting the term.

Issue 2:
spawned off of #24728 (comment)

In an example like:

fn main() {
let vs = vec![1, 2, 3, 4];

for v in &vs {
match v {
1 => {}
_ => {}
}
}
}

which yields the error message:

<anon>:4:5: 9:6 error: type mismatch resolving \ (linebreak solely for presentation here)
`<core::slice::Iter<'_, _> as core::iter::Iterator>::Item == _`:
expected &-ptr,
found integral variable [E0271]
<anon>:4 for v in &vs {
<anon>:5 match v {
<anon>:6 1 => {}
<anon>:7 _ => {}
<anon>:8 }
<anon>:9 }

i find it frustrating that the first line prints the integral type variable as just _.

It is not a completely unconstrained type; it must be some kind of integer.

(It is true that one should be able to figure this out from the third line. But I think we can still do better on the first line itself.)

I am thinking something like this could suffice:

error: type mismatch resolving \
`<core::slice::Iter<'_, _> as core::iter::Iterator>::Item == iN`

Another slightly more verbose option (but less prone to misinterpretation when e.g. unsigned integers are involved, or when the user has defined a type named iN) would be:

error: type mismatch resolving \
`<core::slice::Iter<'_, _> as core::iter::Iterator>::Item == <int type>`

Yet another option, which is both succinct but will not collide with user definitions (at least not today):

error: type mismatch resolving \
`int? == <core::slice::Iter<'_, _> as core::iter::Iterator>::Item`

and likewise one would imagine for the FloatVar case

error: type mismatch resolving \
`float? == <core::slice::Iter<'_, _> as core::iter::Iterator>::Item`

I forced the int? and float? to be on the left-hand side to ensure that they did not get mistaken for a question mark ending the error message itself. (I did consider ?int and ?float but I worry a little that those would get confused with the generalization marker ?Sized ... maybe that is a small price to pay...)
Issue 1:
Encountered an error on upgrading 3.1.4:

Franks-MacBook-Pro:tornado frankdu$ celery worker --app=celery_tasks --loglevel=debug --beat

ConnectionError on getting default connection!

Traceback (most recent call last):

File "/usr/local/bin/celery", line 8, in

load_entry_point('celery==3.1.4', 'console_scripts', 'celery')()

File "/Library/Python/2.7/site-packages/celery/main.py", line 29, in main

main()

File "/Library/Python/2.7/site-packages/celery/bin/celery.py", line 80, in main

cmd.execute_from_commandline(argv)

File "/Library/Python/2.7/site-packages/celery/bin/celery.py", line 723, in execute_from_commandline

super(CeleryCommand, self).execute_from_commandline(argv)))

File "/Library/Python/2.7/site-packages/celery/bin/base.py", line 298, in execute_from_commandline

argv = self.setup_app_from_commandline(argv)

File "/Library/Python/2.7/site-packages/celery/bin/base.py", line 436, in setup_app_from_commandline

user_preload = tuple(self.app.user_options['preload'] or ())

AttributeError: 'module' object has no attribute 'user_options'

Franks-MacBook-Pro:tornado frankdu$

Issue 2:
there is a bug in 3.1.4

please resolve

Traceback (most recent call last):

File "/usr/local/bin/celery", line 9, in

load_entry_point('celery==3.1.4', 'console_scripts', 'celery')()

File "/usr/local/lib/python2.7/dist-packages/celery/main.py", line 29, in main

main()

File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 80, in main

cmd.execute_from_commandline(argv)

File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 723, in execute_from_commandline

super(CeleryCommand, self).execute_from_commandline(argv)))

File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 298, in execute_from_commandline

argv = self.setup_app_from_commandline(argv)

File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 436, in setup_app_from_commandline

user_preload = tuple(self.app.user_options['preload'] or ())

AttributeError: 'module' object has no attribute 'user_options'