WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
1: go version go1.5.1 darwin/amd64

2: OSX 10.11 MacPro6,1Quad-Core Intel Xeon E5

3: Minimal program to create an invalid go binary on OSX using codesign tool.

package main

import "C" // Delete this line and codesign'd binary works.

func main() {
println("Hello OSX.")
}

~/code/src/ttt: go build
~/code/src/ttt: ./ttt
Hello OSX.
~/code/src/ttt: codesign -s "Developer ID Application: Name" ttt
~/code/src/ttt: ./ttt
Killed: 9

4: The program should run successfully after code signing. This used to work prior to OSX 10.11.

5: All of my OSX Go products depend on Cgo. Still looking for a workaround.

Possibly related to issue #12700

Issue 2:
Using the Go 1.5 compiler toolchain and compiling a binary that uses CGO and then codesigning that binary, upon attempting to execute the program it will be killed immediately by the system. Codesigning a non-cgo binary works just fine, as expected.

Given the following small program:

package main

/*
int
cfunc() {
return 2;
}
*/
import "C"
import "fmt"

func main() {
fmt.Println("cfunc says:", C.cfunc())
}

and building simply with go build and running codesign -f -s my_cert ./myprog, when attempting to execute the program in a shell the response is "killed: ./myprog".

The system log reports:

$ taskgated[92]: no signature for pid=1991 (cannot make code: UNIX[No such process])

Tested against Go1.5beta2 and:

$ go version devel +765cea2 Mon Jul 27 18:03:45 2015 +0000 darwin/amd64
Issue 1:
While porting an Android app to Flutter, here is my drawable-xxhdpi folder on android

Declaring all these assets in the pubspec is going to be a pain, I should be able to just point it to a folder, or perhaps have a standardized folder "assets" where I can throw all my images in.

Issue 2:
I'd like to be able to add an entire folder of assets without having to enumerate each one in my flutter.yaml.
Issue 1:
Steps

Set "SELENIUM_REMOTE_CAPABILITIES" as documented here

Selenium Grid connection is starting up

Selenium Grid reports request to use custom capabilities

Capabilities passed in are not what the Selenium connection reports to be using

Expected

Expected the Documentation on this to be much more detailed

The /wd/hub should be removed or at least mentioned that this URL will ONLY be used when the docker image is passed this URL (/wd/hub could be omitted)

What is "MyGrid:options"

What are the Capabilities to be used (WebDriver or selenium names, is it "browser_version" or "browserVersion")

Can you please in the very near future update the documentation on this, I need to pass in some capabilities and am trying to figure out how to pass in for e.g. browswerVersion

Actual

Trial and error on how to pass capabilities through playwright to selenium grid and in what sepcific format they need to be in without prevail.

Issue 2:
System info

Playwright Version: [v1.XX]

Operating System: [Windows 11]

Browser: [All, Chromium]

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/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

import { test, BrowserContext, Page, expect } from '@playwright/test';

test.describe.configure({ mode: 'serial', timeout: 180000 });

let context: BrowserContext;
let page: Page;

test.beforeEach(async ({ playwright, browserName }, testInfo) => {
try {
context = await playwright[browserName].launchPersistentContext('', {
headless: false,
channel: "msedge"
});
page = context.pages()[0];
test.skip();
} catch(e) {
console.log(e)
}

});

test('Dummy test', async ({ }) => {
try {
await page.waitForLoadState('networkidle');
await page.goto('https://www.example.com');
expect(page).toHaveTitle('Example Domain');
} catch (e) {
throw e;
}
});

Steps

[Run the test]

[...]

Run test in VSCode

Expected

Test should be skipped without any error messages.

Actual

Test is skipped but throws an error: Error: No tests found

[Describe actual behavior]
Issue 1:
Code Sample, a copy-pastable example if possible

# Your code here

In [8]: pd.to_timedelta('1', unit='h')
Out[8]: Timedelta('0 days 00:00:00.000000')

Problem description

I would expect all the following to return Timedelta('0 days 01:00:00'). pd.to_timedelta(1, unit='h') does not. I must first cast the string '1' to a int or float then to a timedelta.

In [6]: pd.to_timedelta(1.0, unit='h')

Out[6]: Timedelta('0 days 01:00:00')

In [7]: pd.to_timedelta(1, unit='h')

Out[7]: Timedelta('0 days 01:00:00')

In [8]: pd.to_timedelta('1', unit='h')

Out[8]: Timedelta('0 days 00:00:00.000000')

In [9]: pd.to_timedelta('1 H')

Out[9]: Timedelta('0 days 01:00:00')

Expected Output

Output of pd.show_versions()

# Paste the output here pd.show_versions() here

INSTALLED VERSIONS

commit: None

python: 3.6.1.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: None.None

pandas: 0.20.2

pytest: 3.1.2

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

xarray: None

IPython: 6.0.0

sphinx: None

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: None

tables: 3.2.2

numexpr: 2.6.2

feather: None

matplotlib: 2.0.0

openpyxl: None

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: 4.5.3

html5lib: 0.999999999

sqlalchemy: 1.1.5

pymysql: None

psycopg2: None

jinja2: 2.9.4

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
So, I don't know if this is by design, but it sure confused me. to_timedelta() operates differently on the number 1000 compared to the string '1000':

In[3]: pd.to_timedelta(1000, unit='ms')
Out[3]: Timedelta('0 days 00:00:01')
In[4]: pd.to_timedelta(1000.0, unit='ms')
Out[4]: Timedelta('0 days 00:00:01')

and

In[6]: pd.to_timedelta('1000ms')
Out[6]: Timedelta('0 days 00:00:01')

while

In[5]: pd.to_timedelta('1000', unit='ms')
Out[5]: Timedelta('0 days 00:00:00.000001')

I've tried my best to come up with a reason for why this behaviour would be desirable, but I can't think of any.
Issue 1:
This is a weird bug that I have not been able to test, due to the unusual circumstances it appears. I also haven't been able to find mention of it elsewhere, so I'm stuck reporting it.

I was teaching a class where the projector screen was being used as a second monitor, and not duplicating the laptop screen. When I plot anything with matplotlib, it works just fine when it appears on the laptop screen. When I move the plot to the projector screen, the plot disappears... at about 75% on the projector screen, you can see the plot... but any more than that, the plot disappears. What's left is a blank window (i.e. what it looks like when you clear a plot). It has happened on every plot I've tried the past two weeks, at two different institutions.

To reproduce this bug, you'll need a second monitor. I've had overhead projectors only, but will try a second monitor shortly. I have seen the bug using matplotlib 2.0.0, python 2.7.13, and macOS Sierra 10.12.3. Any plot works, so plot(x) should do it, when you drag the plot onto the second monitor. Displaying a plot worked as expected previously, however, this is my first attempt displaying a plot using a second monitor with sierra. I installed matplotlib with macports, if that matters, and I'm using the MacOSX backend.

If I see the same effect on a second monitor (an actual monitor, not a projector), then I can test some variants. I have the opportunity today to try some other combinations of python and backend, and will update this issue accordingly.

Issue 2:
Bug report

Bug summary

A figure created on Mac with the MacOSX backend on one screen gets blank when the figure window is dragged to another screen attached to the same computer.

Code for reproduction

import matplotlib as mpl
mpl.rcParams["backend"] = "MacOSX"
from matplotlib import pyplot as plt

plt.figure()
plt.plot([0,1],[0,1]) # to have some content
plt.show()
# now drag figure from one screen attached to the computer to another screen attached to the computer

Actual outcome

Matplotlib version

System: MacOS El Capitan

Matplotlib version: 2.0.0

Python version: 2.7.10 (System Python)

Matplotlib was installed with pip.
Issue 1:
Lenovo G550. 4gb ram. Intel graphics.

Atom 0.999.

Opening small html 41kb. On opening html editor freeze for for few minutes and showing one popup()

Issue 2:
May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).

Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.
Issue 1:
Stuart Gunter opened SPR-9226 and commented

In certain circumstances, the response is committed before the Interceptor postHandle method is invoked. This appears to be caused when the HandlerMethod is annotated with @ResponseBody.

Steps to reproduce:

Create a Controller method annotated with @ResponseBody.

Configure an Interceptor for this path (or all path mappings)

Submit a request to the path above, with a breakpoint set in the Interceptor's postHandle method.

Check the value of response.isCommitted()

Expected:

Response should not be committed

Actual:

Response is committed.

Implications:

Interceptors are unable to modify the response for @ResponseBody HandlerMethods. This prevents Interceptors from being able to add headers to the response.

Affects: 3.1.1

Issue Links:

#20595 StringHttpMessageConverter flush out response immediately before execute posthandler ("is duplicated by")

#14614 Make @RequestMapping inject the negotiated MediaType

#15486 Provide better intercepting model for controllers returning @ResponseBody ("is superseded by")

2 votes, 7 watchers

Issue 2:
Guillaume Bilodeau opened SPR-3817 and commented

As discussed here: http://forum.springframework.org/showthread.php?p=139502

Given the following context:

. an application built with compile-time weaving using AspectJ 1.5.x,

. use of Spring 2.0.x

. a class annotated with @Transactional - not its methods,

. the same class containing one or more setters for dependency injections,

. a Spring application context declaring the above class with a singleton scope and its dependencies through property references

. the same application context using the <tx:annotation-driven /> tag

Upon loading the application context and instantiating the annotated class, the container tries to begin a transaction but fails with the following message:

java.lang.IllegalStateException: Property 'transactionManager' must be set on transaction aspect

The current behavior is understandable: the class was annotated in such a way that all its public methods should be transactional, which includes the DI setters. However this doesn't seem to be desirable, given the thrown exception.

One possible workaround is to annotate only the transactional methods (and so not the DI setter methods) instead of the class itself. The main drawback is that this leads to the duplication of the annotation and its list of rollback exceptions. It also requires that all unit tests which operate on the annotated class should provide the AnnotationTransactionAspect a mock PlatformTransactionManager on setUp().

One possible solution would be to activate the transactional aspect only after the application context is loaded. Another one would be to introduce a @NotTransactional annotation that would override the class annotation and that could be used on DI setter methods.

Affects: 2.0.6

2 votes, 7 watchers
Issue 1:
It looks like Angular 2 tries to load files in a path called 'rxjs/operators/*' (like here). But it seems the path should be called 'rxjs/operator/*' (without s).

Webpack error:

ERROR in ./~/angular2/src/facade/async.js
Module not found: Error: Cannot resolve module 'rxjs/operators/toPromise' in

Issue 2:
In angular2@2.0.0-alpha.48:

facade/async.js line 19 calls require('rxjs/operators/toPromise');

As of rxjs@5.0.0-alpha.12 this folder was renamed to operator/toPromise.js.

The result is that a jspm install of angular 2 without bundling gets the following error:

GET http://localhost:8080/jspm_packages/npm/rxjs@5.0.0-alpha.12/operators/toPromise.js 404 (Not Found)

The rxjs version should either fixed at version alpha.10 or this reference udpated to operator/toPromise.js
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: v2.7.1

Operating System version: OSX 10.14.4

Java version: 1.8.0_202

Steps to reproduce this issue

@Test
public void testSerializeTimestamp() throws IOException, ClassNotFoundException {
Timestamp originTime = new Timestamp(System.currentTimeMillis());
this.protostuffObjectOutput.writeObject(originTime);
this.flushToInput();

Timestamp serializedTime = protostuffObjectInput.readObject(Timestamp.class);
assertThat(serializedTime, is(originTime));
}

// output
java.lang.AssertionError:
Expected: is <2019-04-23 19:01:37.31>
but: was <1970-01-01 08:00:00.31>
Expected :is <2019-04-23 19:01:37.31>
Actual :<1970-01-01 08:00:00.31>

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.

Environment

Dubbo version: 2.6.7

Operating System version:windows 7

Java version: 1.8

Steps to reproduce this issue

<dubbo:reference id="demoService" interface="com.demo.service.DemoService"

protocol="hessian">

<dubbo:method name="orderData" async="true"/>

</dubbo:reference>

2.

demoService.orderData(paramsMap);

Future<List> future = RpcContext.getContext().getFuture();

List list = future.get();

3. future is null

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

Expected Result

Can get the result.

Actual Result

What actually happens?

future.get() throw null pointer exception，Because the future object is null.
Issue 1:
Neo4j version: 4.4.2

OS: Ubuntu 20.04

When running neo4j-admin import the :ID fields are not being imported correctly. A handful of them seem to become duplicated for some reason.

Here's the CSV file:

hash:ID,height:INT,version:INT,prevblock:STRING
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f,0,1,0000000000000000000000000000000000000000000000000000000000000000
00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048,1,1,000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd,2,1,00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048
0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449,3,1,000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd
000000004ebadb55ee9096c9a2f8880e09da59c0d68b1c228da88e48844a1485,4,1,0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449
000000009b7262315dbf071787ad3656097b892abffd1f95a1a022f896f533fc,5,1,000000004ebadb55ee9096c9a2f8880e09da59c0d68b1c228da88e48844a1485
000000003031a0e73735690c5a1ff2a4be82553b2a12b776fbd3a215dc8f778d,6,1,000000009b7262315dbf071787ad3656097b892abffd1f95a1a022f896f533fc
0000000071966c2b1d065fd446b1e485b2c9d9594acd2007ccbd5441cfc89444,7,1,000000003031a0e73735690c5a1ff2a4be82553b2a12b776fbd3a215dc8f778d
00000000408c48f847aa786c2268fc3e6ec2af68e8468a34a28c61b7f1de0dc6,8,1,0000000071966c2b1d065fd446b1e485b2c9d9594acd2007ccbd5441cfc89444

And this is the command I'm using:

neo4j-admin import --database neo4j --nodes=block=file.csv

The import works correctly if I remove :ID from the CSV header. But if you assign :ID to the first field they do not get imported as expected (some get duplicated for some reason).

This CSV file worked on Neo4j 4.3, so I think it may be an issue with Neo4j 4.4.2.

Issue 2:
It will be great if there will be ability to fast edit nodes and relationships properties on the fly from browser interface.
Issue 1:
Dear dev,

I like combining box and strip plots, I also like making optimal use of seaborn categorical plotting features, i.e. like this:

sns.catplot(kind='point', data=alldata_long, x='gene_id', y='TPM', hue='Exp condition', row='Lib prep', height=3, aspect=4)

I would like to be able to combine both approaches, would the command from the title of this post be an option? At the moment I am having difficulties combining the two plots in a row and col split catplot...

Highest regards,

Freek.

Issue 2:
With recent shift in the docs to emphasize the figure-level plots, it raises the challenge that layering multiple plots (i.e. a swarmplot on top of a violinplot) this way is not obvious. For a single axes grid, you can plot directly onto it using the axes-level function you want. For multi-plot grids, you can use .map_dataframe, but synching the order of the semantics between the two plots is a challenge.

An option for a better API might be to accept a sequence in kind, i.e.

sns.catplot(x="total_bill", y="tip", kind=("violin", "swarm"), data=tips)

This would be straightforward, except what about additional keyword arguments?
Issue 1:
I downloaded Julia 0.3.9 Windows self-extracting archive latest release (2015-05-30 11:24UTC) onto my Windows 8.1 64-bit Lenovo Thinkpad, and it didn't run. It gave me the splash screen and then hung for 5 minutes (no prompt) until I killed it. Can anyone replicate this?

Issue 2:
I have noticed that Julia 0.3.3 REPL sometimes hangs at startup on windows se:

I have seen this on my own computer and some of my colleagues.
Issue 1:
I get the following error

julia> x=[1,2]
2-element Array{Int64,1}:
Evaluation succeeded, but an error occurred while showing value of type Array{Int64,1}:
ERROR: premature end of integer: "24"
in error at error.jl:21
in parseint_nocheck at string.jl:1486
in parseint_nocheck at string.jl:1523
in parseint at string.jl:1526
in writemime at repl.jl:21
in display at multimedia.jl:117
in display at multimedia.jl:119
in display at multimedia.jl:151

The premature end of integer: "24" appears to be somewhat arbitrary. The error message above was obtained in the shell that opens upon double-clicking the julia application. However, when I call julia from emacs (using ESS) the ERROR-line reads

ERROR: premature end of integer: "25"

Otherwise the error message is the same.

Issue 2:
julia> versioninfo()
Julia Version 0.3.0-prerelease+1358
Commit cb26338* (2014-02-01 14:56 UTC)
Platform Info:
System: Windows (i686-w64-mingw32)
CPU: Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
WORD_SIZE: 32
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm

julia> a=[1:5]
5-element Array{Int32,1}:
1
2
3
4
5

Then calling a[a.>3] crashes the REPL on 32-bit Vista.

I have also tried this win32-prerelease on 64-bit Win7 and it works fine.
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.DataFrame({'y': [3.5, 4.5, 6.5]}, index=[2.5, 1.5, 3.5])
df.plot(style='o')

Problem description

This above may or may not be expected behaviour, but it did catch me by surprise: The range of the horizontal axis will be [2.5, 3.5], even though one of the data points has an index value outside that range.

Expected Output

Instead, I would have expected the output currently obtainable through df.sort_index().plot(style='o'):

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.2.final.0

python-bits: 64

OS: Windows

OS-release: 8.1

machine: AMD64

processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.20.3

pytest: 3.2.1

pip: 9.0.1

setuptools: 34.1.0

Cython: 0.26

numpy: 1.13.1

scipy: 0.19.1

xarray: None

IPython: 6.1.0

sphinx: 1.6.2

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: 3.2.2

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: 2.4.8

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.8

lxml: 3.8.0

bs4: 4.6.0

html5lib: 0.9999999

sqlalchemy: 1.1.13

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: 0.5.0

Issue 2:
Compare these 2 plots below, this is not expected behavior:

import pandas as pd
from numpy.random import rand
testarr1=rand(100)
testarr2=rand(100)
pd.DataFrame(testarr2,index=testarr1).plot(style='.')
pd.DataFrame(testarr2,index=testarr1).sort().plot(style='.')
Issue 1:
When installing some git dependencies using the Docker image node:10-alpine via npm ci, attempts to npm prune --production result in an error like:

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q https://github.com/nodecraft/ampify.git /root/.npm/_cacache/tmp/git-clone-6573274f/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-6573274f/.git'

To help replicate the issue, I have a directory that contains a package.json and package-lock.json. I then have a Dockerfile which when building, illustrates the issue.

I've created a repository at https://github.com/Cherry/npm-prune-ci-bug detailing this, including commands to run to replicate the issue.

Last known working version: 6.10.3. This issue does not occur if I use npm version 6.10.3 or earlier.

Tested versions that throw the above error:

6.11.0
6.11.1
6.11.2
6.11.3
6.12.1
6.13.1

It appears this regression was introduced in 6.11.0, and exists through to the latest version.

If I can provide any further information, please let me know.

Issue 2:
What / Why

This bug is related to #476 (comment) and #514

When

npm install packages from git in docker

Where

packages from public git repositories

How

Current Behavior

# npm i
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-23T09_49_05_990Z-debug.log

Steps to Reproduce

Create simple package.json with git dependency

{
"name": "test-npm",
"dependencies": {
"mockdate": "git://github.com/boblauer/MockDate.git#v2.0.5"
}
}

run docker run --network=host -it -v $(pwd):/var/work/test -w /var/work/test node:12.14.0 /bin/bash

ls -l shows that files are owned by unknown user and unknown group (this is typical behaviour on build agents like teamcity, teamcity clones git repo and mounts it inside docker container)

# ls -l
-rw-r--r-- 1 20857 115755 114 Dec 23 09:46 package.json

run npm install

# Depends on environment you can get

npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!

# or

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@<private server>/admin-template.git
npm ERR!
npm ERR! No user exists for uid 1000
npm ERR! fatal: Could not read from remote repository.

run npm i -g npm@6.10 (downgrade to npm 6.10.X)

run npm install

# all works well!

updated 1 package and audited 1 package in 1.355s
found 0 vulnerabilities

Expected Behavior

npm install / npm ci works well like npm@6.10