WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
import (
- // "bytes";
- "fmt";
- // "strings";
- "time";
+ "fmt" // "bytes";
+ ;
+
+ "time" // "strings";
+ ;
"testing";

What steps will reproduce the problem?
1. comment out a few line items in an import statement
2. run gofmt on the file, my incantation:

gofmt -w -spaces -tabwidth=2 `find . -name '*.go'`

3. attempt to compile - i get syntax errors

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

gofmt generates this:

package cache

import (

"fmt" // "bytes";
;

the compiler says:
perf_test.go:5: syntax error near uint8

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

Which revision are you using? (hg identify)
683ed10f7832 tip

This was introduced within the last 2 calendar days.

Issue 2:
by kballard@apple.com:

When attempting to compile Go on OS X 10.7 Developer Preview 3 (11A459e), on a Mac Pro
running the 64-bit kernel, with an appropriate version of the pre-release Lion dev tools
installed, go fails to compile the net package.

INSTALL FAIL net
CGOPKGPATH= cgo -- cgo_bsd.go cgo_unix.go
touch _obj/_cgo_run
6g -o _go_.6 dial.go dnsmsg.go fd_darwin.go hosts.go ip.go ipsock.go iprawsock.go
lookup.go net.go parse.go pipe.go sock.go tcpsock.go udpsock.go unixsock.go
dnsclient.go dnsconfig.go fd.go file.go newpollserver.go port.go sendfile_stub.go
sock_bsd.go _obj/cgo_bsd.cgo1.go _obj/cgo_unix.cgo1.go _obj/_cgo_gotypes.go
6c -FVw -I/Volumes/Greenholm/Users/kevin/go/pkg/darwin_amd64 -I . -o
"_cgo_defun.6" _obj/_cgo_defun.c
gcc -m64 -I . -g -fPIC -O2 -o _cgo_main.o -c _obj/_cgo_main.c
gcc -m64 -I . -g -fPIC -O2 -o cgo_bsd.cgo2.o -c _obj/cgo_bsd.cgo2.c
gcc -m64 -I . -g -fPIC -O2 -o cgo_unix.cgo2.o -c _obj/cgo_unix.cgo2.c
gcc -m64 -I . -g -fPIC -O2 -o _cgo_export.o -c _obj/_cgo_export.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o cgo_bsd.cgo2.o cgo_unix.cgo2.o
_cgo_export.o
cgo -dynimport _cgo1_.o >_obj/_cgo_import.c_ && mv -f _obj/_cgo_import.c_
_obj/_cgo_import.c
6c -FVw -I . -o "_cgo_import.6" _obj/_cgo_import.c
cgo_bsd.go:5[_obj/cgo_bsd.cgo1.go:8]: undefined: _Cconst_AI_MASK
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_ALL
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_V4MAPPED
cgo_unix.go:69[_obj/cgo_unix.cgo1.go:72]: undefined: _Cconst_AI_CANONNAME
make[1]: *** [_go_.6] Error 1
make: *** [net.install] Error 1

I've attached the output of

cd $GOROOT/src/pkg/net
make
tar c . | gzip >net.tgz

Oddly enough, on my iMac running the same build of 10.7 with the 32-bit kernel with a
different version of the dev tools installed, go builds without a problem.

Attachments:

net.tgz (73959 bytes)
Issue 1:
I built a browser-like app, every tab is made by webview tag, when the users click any anchor in tab pages, i listened to the 'new-window' event and then will create a new tab to perform that link, and i tried to make a menu for every tab page by "preload script", normal tab page works fine, but when showing a image (like png) link, the menu will not slide out.

BUT, if i opened the devtool of that webview (the one that it's menu not shown), the menu can be shown by right click!

here goes the capture:

And i was considered to not creating menus in "preload script", but found that there is no way to access the webContents of webview (my purpose is to use the webContents.savePage function to act as "Save As", and, if in "preload-script", it's easy to trigger savePage by require('remote').getCurrentWebContents()).

So, i'm stucked, any suggestions?

Issue 2:
I have a very little demo like this:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<webview src="https://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>

When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>console.log("Hello World");</script>
<webview src="http://www.baidu.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>
Issue 1:
Migrated issue, originally created by Anonymous

Test Case

from sqlalchemy import create_engine
from sqlalchemy import Table
from sqlalchemy import MetaData

import os
os.environ['INFORMIXSERVER']('INFORMIXSERVER') = 'myserver'

engine = create_engine("informix://user:pass@libname/db")
metadata = MetaData(bind=engine)

table = Table( 'mytable', metadata, autoload=True)

results in the following stack trace.

python sqlalchemyinformixtestcase.py
Traceback (most recent call last):
File "sqlalchemyinformixtestcase.py", line 11, in <module>
table = Table( 'mytable', metadata, autoload=True)
File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/schema.py", line 113, in __call__
return type.__call__(self, name, metadata, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/schema.py", line 241, in __init__
_bind_or_error(metadata).reflecttable(self, include_columns=include_columns)
File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py", line 1265, in reflecttable
self.dialect.reflecttable(conn, table, include_columns)
File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/databases/informix.py", line 256, in reflecttable
if table.owner is not None:
AttributeError: 'Table' object has no attribute 'owner'

I have a patch that I will post up after I make sure it all works.

Attachments: informix.py

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

should apply quoting rules inside of has_table(), reflecttable(), etc.
Issue 1:
Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):
10.0.19025.1051
Any other software?
none

Steps to reproduce

there's a white line below this window , no matter when I use dark theme or light theme

Expected behavior

it is a small bug... i hope it can be fixed in next version... thx

Actual behavior

Issue 2:
Environment

Windows build number: 10.0.18995.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

Open Terminal app.

Expected behavior

Should not show a white border on the bottom of the window.

Actual behavior

Shows a 1 pixel thin white border on the bottom of the window.
Issue 1:
I've found a duplicate line in the TermControl::Create function, either its missing to initialize the vertical alignment or it's just double setting the horizontal one.

https://github.com/microsoft/Terminal/blob/1e478ae99d53a5f54483becfb6c3b379077b8fd9/src/cascadia/TerminalControl/TermControl.cpp#L80

I would have filed a PR but I don't have the environment to do this currently, I hope it's helpful anyway.

Issue 2:
In this case，when I press Ctrl+C，I can not copy the selected words。
Issue 1:

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
I found an issue while using solvePnPRansac with useExtrensicGuess=True with other default parameters. With default parameters solvePnPRansac uses EPNP algorithm during RANSAC iterations and refinement is done using ITERATIVE algorithm.

When useExtrensicGuess is set to True I found that rvec and tvec obtained from EPNP is not set to the best model obtained by RANSAC. It picks the model from last iteration for refinement which is not guaranteed to be good. Because of this issue final model obtained is bad. Has anyone faced this issue?

Issue 2:
System information (version)

OpenCV => master

Detailed description

See the code

opencv/modules/calib3d/include/opencv2/calib3d.hpp

Lines 692 to 695
in
ee1e1ce

CV_EXPORTS_W bool solvePnP( InputArray objectPoints, InputArray imagePoints,

InputArray cameraMatrix, InputArray distCoeffs,

OutputArray rvec, OutputArray tvec,

bool useExtrinsicGuess = false, int flags = SOLVEPNP_ITERATIVE );

rvec and tvec are of type OutputArray indicating that they are used only for ouput.

But the code

opencv/modules/calib3d/src/solvepnp.cpp

Line 58
in
ee1e1ce

OutputArray _rvec, OutputArray _tvec, bool useExtrinsicGuess, int flags )

opencv/modules/calib3d/src/solvepnp.cpp

Lines 71 to 79
in
ee1e1ce

if( useExtrinsicGuess )

{

int rtype = _rvec.type(), ttype = _tvec.type();

Size rsize = _rvec.size(), tsize = _tvec.size();

CV_Assert( (rtype == CV_32F || rtype == CV_64F) &&

(ttype == CV_32F || ttype == CV_64F) );

CV_Assert( (rsize == Size(1, 3) || rsize == Size(3, 1)) &&

(tsize == Size(1, 3) || tsize == Size(3, 1)) );

}

treats them as input when useExtrinsicGuess==true.

Suggestions

The prototype should be decalared as InputOutputArray.
Issue 1:
Currently we have two different dispatch mechanism implemented:

minimal - used for io ops (op_read and op_write)

JSON - used for all other ops

Each of these mechanism has separate promise table that is used to store promises awaiting response from Rust.

Duplication should be removed and only promise table should be managed by Deno.core namespace.

Issue 2:
Can it be useful to add importer informations on import.meta for better logs (and errors) ? For instance, a multiple times imported module can log contextualized messages (eg.: in version checker to indicate which module require a specific version ).

import.meta.importer = {
url: 'importer/url',
main: true
}

Maybe it can be recursive to get imports chain for some usages

import.meta.importer = {
url: '...',
main: ... ,
importer: { ... }
}

For main module, importer should be set to null

Maybe Deno.mainModule should be moved (or duplicate since import.meta is not accessible outside of modules, eg: REPL) to

import.meta.mainModule = {
url: '...',
main: true,
importer: null //maybe undefined or refers to itself
}
Issue 1:
by pcrosby:

In database/sql/sql.go, all the calls to db.putConn that use a defer will always pass
nil for the error.

For example, assuming the following exec function gets to the "defer db.putConn(ci,
err)" line, err will always be nil, no matter what happens to err after the
"defer..." line (since the arguments to the deferred function are evaluated
when the defer executes, not when the call executes).

I know putConn only cares if err is a driver.ErrBadConn, but it seems to me like that is
a possible error in many of the functions in sql.go that use this defer db.putConn(ci,
err) pattern.

func (db *DB) exec(query string, sargs []driver.Value) (res Result, err error) {
ci, err := db.conn()
if err != nil {
return nil, err
}
defer db.putConn(ci, err)

if execer, ok := ci.(driver.Execer); ok {
resi, err := execer.Exec(query, sargs)
if err != driver.ErrSkip {
if err != nil {
return nil, err
}
return result{resi}, nil
}
}

sti, err := ci.Prepare(query)
if err != nil {
return nil, err
}
defer sti.Close()

resi, err := sti.Exec(sargs)
if err != nil {
return nil, err
}
return result{resi}, nil
}

Issue 2:
d, _ := publicsuffix.EffectiveTLDPlusOne("foo.bar.golang.org")
fmt.Printf("%s\n", d)

d, _ = publicsuffix.EffectiveTLDPlusOne("foo.bar.golang.org.")
fmt.Printf("%s\n", d)

prints

golang.org
org.

In the 2nd example, the domain has a trailing dot. This is valid, as it indicates this is unambiguous FQDN. I was passing output from DNS records into EffectiveTLDPlusOne when I noticed this issue.

I suggest the EffectiveTLDPlusOne ignores the trailing dot if one exists.

$ go version
go version go1.4.2 darwin/amd64
Issue 1:
System info

Playwright Version: v1.34.1, v1.34.2

Operating System: macOS

Browser: Chromium

Other info:

Repro Steps:

Run a failed case locally with this command: npx playwright test --workers 1 --trace on

Open the trace file with the Trace viewer;

Expected

The trace viewer should be able to show detailed step and related page screenshots;

Actual

Can't find any page screenshots/detailed steps in the trace view;

This issue is reproducible reproducible since Playwright version to v1.34.1. It's not reproducible on v1.33.0. Pls check the trace files I attached in below(Same failed case on different Playwright version):

trace_v1.34.1.zip

trace_v1.33.0.zip

Issue 2:
All traces appear without imagery. The window just says about:blank.

Example trace:

https://trace.playwright.dev/?trace=https://playwright-tests.contra.dev/a2571050-e086-46ad-8ebd-2e62eb9b309a.zip

Versions tried:

@playwright/test 1.34.0

@playwright/test 1.34.1

Our configuration:

projects.push({
name: 'Rate-Limited',
testMatch: /.*rate-limited.spec.ts/,
use: {
baseURL,
channel: 'chromium',
headless: true,
screenshot: 'on',
trace: 'on',
video: 'off',
viewport: { height: 1_080, width: 1_440 },
...disableWebSecurity,
},
});

projects.push({
name: 'Not-Rate-Limited',
testIgnore: /.*rate-limited.spec.ts/,
use: {
baseURL,
channel: 'chromium',
headless: true,
screenshot: 'on',
trace: 'on',
video: 'off',
viewport: { height: 1_080, width: 1_440 },
...disableWebSecurity,
},
});

const config: PlaywrightTestConfig = {
expect: {
toHaveScreenshot: { maxDiffPixelRatio: 0.05 },
},
forbidOnly: Boolean(process.env.CI),
fullyParallel: false,
// This is the timeout for the entire test run, not individual tests.
// Adding 15 minute timeout ensures that we crash playwright with useful information.
// Test runner timeout has to be greater than this timeout.
globalTimeout: 15 * 60 * 1_000,
outputDir: 'tests/__generated__/playwright-artifacts',
projects,
reporter: [
['./contra-playwright-reporter.ts'],
[
'html',
{
open: process.env.CI ? 'never' : 'on-failure',
outputFolder: 'tests/__generated__/playwright-report',
},
],
['list'],
[
'junit',
{ outputFile: 'tests/__generated__/playwright-report/junit/results.xml' },
],
],
retries: 0,
testDir: 'tests/e2e/',
// This is the timeout for individual tests.
timeout: 60 * 1_000,
use: {
trace: 'on',
video: 'off',
},
};
Issue 1:
Environment

Windows build number: 10.0.19041.329
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerRun

Steps to reproduce

PowerRun running for a week or so.

Expected behavior

Consume less memory

Actual behavior

Task Manager reporting PowerRun is consuming 830MBs (active working private set)

Issue 2:
Summary of the enhancement

While Wox runs in the background it uses around 80 MB of RAM. To identify the cause of this and if this could be reduced.
Issue 1:
So when you want to find more about a particular package, it is not possible.

For example:

If I want to know what "color-picker" is, I can't since it won't allow me to go into the pane to find out more. This also does not work for many other packages and means I have to sometimes install them, to find out more.

This is on Windows.

Issue 2:
From @gfarrell on January 9, 2015 12:14

When trying to find out more about a package, in the Install view of the Settings page in Atom 0.169.0, clicking the title does nothing, but clicking the author opens the author page in a browser.

Copied from original issue: atom/atom#4947
Issue 1:
Just recently updated to 0.209 on Ubuntu 14.04. Since then atom starts empty every time. It opened all my files, panes, project tree and so on before the update (I think, I was using 0.201 then).

I also tried re-installing the old version, but neither this nor a complete un-install works in Ubuntu...

Then I tried installing a fresh atom on a different machine (also Ubuntu 14.04), it shows the same behaviour (not saving the session) - so it is definitely due to the core as I do not yet have any other packages installed on this machine.

What happened there?

Issue 2:
Atom 0.209.0 doesn't save open files and folders on exit (0.208.0 made this). After restart, there is only empty "untitled" file.

Here's my config:

"*":
"exception-reporting":
userId: "480b20de-e736-263e-a240-4205e8c90e87"
welcome:
showOnStartup: false
core:
themes: [
"one-dark-ui"
"solarized-dark-syntax"
]
editor:
fontFamily: "'M+ 1mn regular'"
invisibles: {}
minimap:
plugins:
"git-diff": true
bookmarks: true
selection: true
"color-highlight": true
"find-and-replace": true
"atom-beautify":
_analyticsUserId: "13adc827-7ceb-4c02-bdb7-7a6d1b173567"
c_configPath: "/usr/share/uncrustify/defaults.cfg"
cpp_configPath: "/usr/share/uncrustify/defaults.cfg"
cs_configPath: "/usr/share/uncrustify/defaults.cfg"
objectivec_configPath: "/usr/share/uncrustify/defaults.cfg"
java_configPath: "/usr/share/uncrustify/defaults.cfg"
tabs:
usePreviewTabs: true
linter: {}
"git-plus":
wordDiff: false
"merge-conflicts": {}
"linter-clang":
clangDefaultCFlags: "-Wall -Wextra -std=c99"
clangDefaultCppFlags: "-Wall -Wextra -std=c++11"
"atom-color-highlight": {}
"autocomplete-clang": {}
"open-recent": {}

0.209.0 built from sources.
Issue 1:
[Enter steps to reproduce below:]

... Open any file.

or

... Open any file.

... Type any charactor

Atom Version: 0.166.0

System: Mac OS X 10.10

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open 'undefined//Users/[project dir]/project.json'

At fs.js:75

Error: ENOENT, open 'undefined//Users/[project dir]/project.json'
at Error (native)

Commands

-1:05.2 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-1:05.1 refactor:done (atom-text-editor.editor.is-focused)
-1:05.1 editor:newline (atom-text-editor.editor.is-focused)
3x -1:02.8 core:backspace (atom-text-editor.editor.is-focused)
-1:01.7 autocomplete-plus:cancel (input)
3x -0:59.0 core:backspace (atom-text-editor.editor.is-focused)
-0:39.0 pane:show-previous-item (button.btn.btn-default.icon.icon-playback-play)
-0:38.4 pane:show-next-item (atom-text-editor.editor.is-focused)
-0:37.9 core:close (div.settings-view.pane-item)
-0:05.1 core:save (atom-text-editor.editor.is-focused)
-0:00.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
"core": {
"disabledPackages": [
"symbols-view",
"atom-ternjs",
"autocomplete-paths"
],
"themes": [
"atom-light-ui",
"monokai-light"
]
},
"editor": {
"fontFamily": "SourceCodePro-Light",
"fontSize": 12,
"showInvisibles": true,
"showIndentGuide": true,
"autoIndentOnPaste": false,
"tabLength": 4,
"useShadowDOM": true,
"invisibles": {}
}
}

Installed Packages

# User
Stylus, v0.4.0
atom-beautify, v0.21.1
autocomplete-plus, v1.1.0
coffee-refactor, v0.6.2
color-picker, v1.2.6
docs-snippets, v0.8.0
emmet, v2.3.0
file-icons, v1.4.4
js-refactor, v0.3.0
language-jade, v0.3.0
linter, v0.9.1
linter-javac, v0.1.3
linter-php, v0.0.11
monokai-light, v0.1.0
refactor, v0.4.1
save-session, v0.11.2

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

start an atom editor with save-session plugin on

save action might cause this error

Atom Version: 0.166.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json'

At fs.js:75

Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json'
at Error (native)

Commands

Config

{
"core": {
"disabledPackages": [
"npm-install",
"save-session"
],
"themes": [
"atom-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"fontSize": 14,
"invisibles": {}
}
}

Installed Packages

# User
color-picker, v1.2.6
linter, v0.9.1
minimap, v3.5.0
save-session, v0.11.2
npm-install, v2.0.0

# Dev
No dev packages
Issue 1:
Currently I get an update notifications often. This is a great feature, but I would like to check only manually since I try to keep my system as stable as possible and do feature updates only in larger intervals with a system image done before. Never change a running system - besides it's a security fix.

Off-topic, but it would be great when Windows 10 pro would respect this too, the latest changes that it's not possible anymore to prevent feature updates 356 days is annoying.

Therefore, this automatic check with the following notification is rather spam for me than helpful.

Therefore I would like to have an option to control whether PowerToys are checking for updates at all.

Currently there is only an option to disable automatic updates.

Actually, I'm not sure what's best from a security point of view. Maybe it's better to just suppress regular update notifications, but show them in case of important security updates? But this might introduce too much complexity. Just speaking for myself. I'm fine to take this risk and check manually from time to time.

Issue 2:
As discussed in the issue #2688 we could add a new setting for disable the automatic update check and notifications. (In addition to the setting we have which disable the automatic download and installation.)

Technical details

Name: Check for updates automatically

Type: on/off switch

Section: General > Update (see #2688)

Setting available: only admins should be able to change

Usecases

For example if PT is installed in companys on clients or terminal servers, where the user had no rights to install software and the software gets updated by SCCM or other tools. (For this scenario normal users shouldn't be able to change the sitting.)

An other scenario would be an user who wants to check only manually every x days.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1501 on 2011-08-23 by trac user gertjan, assigned to unknown.

I noticed that some of my objects were not destructed in time, and, tracking down the origin of the problem, narrowed in on the following import statement:

class A:
def __init__( self ):
import scipy
def __del__( self ):
print 'DELETED'

The import is postponed to the first instantiation of A. This is something I do quite often if it is not trivial that A is going to be instantiated at all, or if importing the particular module takes a long time. This does not usually (and AFAIK should not) cause any trouble. In this case, however, it does:

a = A()
print '1.'
del a
print '2.'

#1.
#2.
# DELETED

In (other) words the import statement causes the object to persist even when all references should have gone. I assume that this is unintentional, if perhaps not unknown, but I couldn't find earlier mention of it.

Besides seeing this fixed I would be very interested to learn what causes this problem, as I cannot think of any plausible mechanism myself and I would like to understand the implications. Before delving into SciPy's enormous code base myself I thought better to turn here where one might have the answer ready.

I'm running Python 2.7.1 with SciPy 0.8.0.

Thanks!

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1104 on 2010-01-28 by trac user stephaned, assigned to unknown.

Hi,

With the following code:

class App:
def __init__(self):
import scipy
##scipy.pkgload.parent_frame = None

def __del__(self):
print "app deleted"

app = App()
print "Deleting app"
del app
print "Leaving Python"

Here is the output:

Deleting app
Leaving Python
app deleted <-- WRONG

The app object is not deleted by "del app" but when Python leaves.

This is because "app" has a refcount of 2.

Going further, I found that "scipy.pkgload.parent_frame = None" solves the issue.

I also tried to transform "scipy.pkgload.parent_frame" to a "weakref.proxy", but got "cannot create weak reference to 'frame' object".

Cheers.

Stephane