WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

with_sequence

ANSIBLE VERSION

ansible-playbook 2.3.2.0

CONFIGURATION

OS / ENVIRONMENT

3.10.0-514.6.2.el7.x86_64

SUMMARY

This is my playbook.

hosts: all

tasks:

name: sequence check

debug:

msg: "sequence is {{ item }}"

with_sequence: start=1 end=5

I'm expecting the order 1,2,3,4,5 in order , but this prints the item in random fashion.

ok: [web01] => (item=3) => {

"item": "3",

"msg": "sequence is 3"

}

ok: [web01] => (item=2) => {

"item": "2",

"msg": "sequence is 2"

}

ok: [web01] => (item=1) => {

"item": "1",

"msg": "sequence is 1"

}

ok: [web01] => (item=5) => {

"item": "5",

"msg": "sequence is 5"

}

ok: [web01] => (item=4) => {

"item": "4",

"msg": "sequence is 4"

}

EXPECTED RESULTS

expected order - print sequence from 1 to 5 in order

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

ansible 2.2.1.0
ansible 2.3.0

CONFIGURATION

OS / ENVIRONMENT

CentOS Linux 7

SUMMARY

List order is lost using with_items

STEPS TO REPRODUCE

---
- hosts: localhost
vars:
with_dict_test:
- { key: 'one', value: 1 }
- { key: 'two', value: 2 }
- { key: 'three', value: 3 }
- { key: 'four', value: 4 }
- { key: 'five', value: 5 }
- { key: 'six', value: 6 }
tasks:
- name: with_dict test
debug: msg="{{item.key}} --> {{item.value}}"
with_items: "{{ with_dict_test}}"

EXPECTED RESULTS

ok: [localhost] => (item={u'value': 1, u'key': u'one'}) => {
"item": {
"key": "one",
"value": 1
},
"msg": "one --> 1"
}
ok: [localhost] => (item={u'value': 2, u'key': u'two'}) => {
"item": {
"key": "two",
"value": 2
},
"msg": "two --> 2"
}
ok: [localhost] => (item={u'value': 3, u'key': u'three'}) => {
"item": {
"key": "three",
"value": 3
},
"msg": "three --> 3"
}
ok: [localhost] => (item={u'value': 4, u'key': u'four'}) => {
"item": {
"key": "four",
"value": 4
},
"msg": "four --> 4"
}
ok: [localhost] => (item={u'value': 5, u'key': u'five'}) => {
"item": {
"key": "five",
"value": 5
},
"msg": "five --> 5"
}
ok: [localhost] => (item={u'value': 6, u'key': u'six'}) => {
"item": {
"key": "six",
"value": 6
},
"msg": "six --> 6"
}

ACTUAL RESULTS

ok: [localhost] => (item={u'key': u'one', u'value': 1}) => {
"item": {
"key": "one",
"value": 1
},
"msg": "one --> 1"
}
ok: [localhost] => (item={u'key': u'six', u'value': 6}) => {
"item": {
"key": "six",
"value": 6
},
"msg": "six --> 6"
}
ok: [localhost] => (item={u'key': u'five', u'value': 5}) => {
"item": {
"key": "five",
"value": 5
},
"msg": "five --> 5"
}
ok: [localhost] => (item={u'key': u'four', u'value': 4}) => {
"item": {
"key": "four",
"value": 4
},
"msg": "four --> 4"
}
ok: [localhost] => (item={u'key': u'three', u'value': 3}) => {
"item": {
"key": "three",
"value": 3
},
"msg": "three --> 3"
}
ok: [localhost] => (item={u'key': u'two', u'value': 2}) => {
"item": {
"key": "two",
"value": 2
},
"msg": "two --> 2"
}
Issue 1:
Migrated issue, originally created by Adrian (@thiefmaster)

Probably a bit early since 9.5 isn't out yet, but once it's out this would be pretty useful.

https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.5#INSERT_..._ON_CONFLICT_DO_NOTHING.2FUPDATE_.28.22UPSERT.22.29

This could be a table arg, e.g. postgres_onconflict='nothing|update' (or maybe even in a less db-specific way if other databases also support this feature). When set it would automatically add it to INSERTs involving that table.

Issue 2:
Migrated issue, originally created by jek (@jek)

Implement generic MERGE, aka 'upsert'. In ANSI, it looks like:

MERGE INTO table_name1 USING table_name2 ON (condition)
WHEN MATCHED THEN UPDATE SET column1 = value1 [column2 = value2 ...](,)
WHEN NOT MATCHED THEN INSERT columns VALUES (values)

Dialect support differs pretty widely. A quick & likely inaccurate poll:

Oracle 9+ has a MERGE

t-sql 2008 has a MERGE, earlier can maybe do IF EXISTS(SELECT ...)

MySQL is limited to a key violation condition, and can do either INSERT ... ON DUPLICATE KEY UPDATE or REPLACE INTO, INSERT being preferable

SQLite is limited to a key violation condition, and has INSERT .. ON CONFLICT REPLACE
Issue 1:
Hi everybody,

I’ve tried using BART summarisation code, and I had a question about finetune.py

Can SummarisationTrainer checkpoint be loaded as a BartForConditionalGeneration model from the evaluation script?

Issue 2:
❓ Questions & Help

Details

I fine-tuned the BART model on a custom summarization dataset using the transformers/examples/summarization/bart/finetune.py and transformers/examples/summarization/bart/run_train.sh files in the repository for training (which generated three checkpointepoch=*.ckpt files) and prediction (which generated a .txt file with the test loss scores).

I have two questions on using this model for prediction:

How can I modify finetune.py to generate predictions for the test set, in addition to the loss scores? I see some test functions in finetune.py, but I'm not sure how to use these for generating a .txt file with the predictions.

How can I load the generated .ckpt files into BartForConditionalGeneration()? A config.json file was not generated along with the checkpoint files; there doesn't seem to be a TFBartForConditionalGeneration; and the convert_tf_checkpoint_to_pytorch.py script in the repo doesn't seem to support BART yet.

Thank you for your time!
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1015 on 2009-02-20 by @wesm, assigned to unknown.

This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.

In [15]: arr = np.random.randn(100).astype(object)

In [16]: np.log(arr)

AttributeError Traceback (most recent call last)

H:\workspace\Python\src in ()

AttributeError: log

Same AttributeError is raised for other ufuncs

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1013 on 2009-02-20 by @wesm, assigned to unknown.

This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.

In [15]: arr = np.random.randn(100).astype(object)

In [16]: np.log(arr)

AttributeError Traceback (most recent call last)

H:\workspace\Python\src in ()

AttributeError: log

Same AttributeError is raised for other ufuncs
Issue 1:
As discussed here, it may be the time to think about refactoring the Request and the Response classes to follow the php-fig standards.

You can see this interfaces here.

Message from @iltar:

Actually, I've been thinking of converting the current Request/Response objects to builders. Parameter converters etc are all working by setting values and the same goes for response listeners. By converting the ResponseBuilder and RequestBuilder into a "frozen" variant, it can also be compliant with PSR. This means that when modifying the request > builder but your action > PSR request. Same goes for the response, you can return a Response(Builder), which gets converted to a PSR Response if not already.

Issue 2:
Naïve list gathered with grep. Let's make using each of these usable, standalone, in a PSR-7 centric app, or just check if there is something to do, or decide to not do it.

May handle PSR-7:

Bridge/Doctrine (see #15414 (comment))

Bridge/Monolog

Bridge/Swiftmailer (see #15414 (comment))

Bridge/Twig

Component/Asset

Component/Debug (see #15415 and #15418)

Component/Form

Component/Routing

Component/Security/Core

Component/Security/Csrf (see #15414 (comment))

Component/Security/Http

Component/Translation (see #15414 (comment))

Component/Validator (see #15421)

May not handle PSR-7:

Component/HttpFoundation

Component/HttpKernel

Bundle/DebugBundle

Bundle/FrameworkBundle

Bundle/SecurityBundle

Bundle/TwigBundle

Bundle/WebProfilerBundle
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: 2.7.1-SNAPSHOT

Operating System version: all

Java version: all

Steps to reproduce this issue

1.config a reference using generic invoke

2.config method of the reference with a name that is not contained by the interface(not the GenericService, but the real service that is invoked)

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

What do you expected from the above steps？

report error of no such method

What actually happens?

no error reported

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.

Environment

Dubbo version: 2.7.5

Operating System version: xxx

Java version: 1.8

Steps to reproduce this issue

添加一个可以抛出java.lang.NoClassDefFoundError 的

配置两个协议

启动服务提供者,正常启动没有任何error或warn.

测试接口调用(接口无法访问,查日志发现该接口第二个协议没有注册信息)

问题分析:

经过多次debug ,发现在调用 InMemoryWritableMetadataService.publishServiceDefinition(providerUrl) 中,执行ServiceDefinitionBuilder.build(interfaceClass) 时,抛出了 java.lang.NoClassDefFoundError,导致该接口doExport失败,且不再继续进行该接口的其它协议export.

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

Expected Result

异常正常抛出或打印错误日志.

建议:

catch (Throwable t){ //catch java.lang.NoClassDefFoundError
logger.error("publishProvider getServiceDescriptor error. providerUrl: " + providerUrl.toFullString(), t.getCause());
}

Actual Result

provider没有正常暴露完成,但没有任何提示,导致异常无法发现和定位.

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

Just put your stack trace here!
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6557/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 0 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Sep 19 03:49:34.643: Memory usage exceeding limits:
node jenkins-e2e-minion-group-5uqi:
container "runtime": expected RSS memory (MB) < 131072000; got 171597824, container "kubelet": expected RSS memory (MB) < 73400320; got 82259968
node jenkins-e2e-minion-group-7sff:
container "runtime": expected RSS memory (MB) < 131072000; got 132644864
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153

Previous issues for this test: #26784 #28384

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gke/8553/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 0 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:277
Sep 1 13:37:16.682: Memory usage exceeding limits:
node gke-jenkins-e2e-default-pool-8cc0a277-uewx:
container "runtime": expected RSS memory (MB) < 89128960; got 93290496
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153

Previous issues for this test: #26784 #28384
Issue 1:
Electron version: 1.2.6

Operating system: Windows 7

In the API demos, when moving around the error dialog, it leaves a trail. Curiously, the information dialog does not leave such a trail. Furthermore, you can see that the Start Menu also left an imprint on the left side of the window!

Issue 2:
Log on to a Windows 7 machine

Switch your theme to Windows Basic or Windows Classic (this has the side-effect of disabling Aero's DWM composition)

Launch an Electron app

Switch to another app window

The other window fails to repaint:

This occurs with almost every app that I've tried, so it seems like something funky with the Electron window. It may or may not require the presence of a webview tag; I haven't isolated that yet. Until now we've been advising users to switch to an Aero theme (this fixes the problem, but is undesirable for many).
Issue 1:
I'm using Atom on Linux Mint 17. Whenever I open Atom, I noticed my HDD led blinking like crazy. iotop shows atom is doing a lot of disk reads:

5241 be/4 jfsantos 6.48 M/s 0.00 B/s 0.00 % 37.54 % atom --ev~trap.js');
5242 be/4 jfsantos 5.75 M/s 0.00 B/s 0.00 % 36.67 % atom --ev~trap.js');
5244 be/4 jfsantos 4.75 M/s 0.00 B/s 0.00 % 32.67 % atom --ev~trap.js');
5243 be/4 jfsantos 3.83 M/s 0.00 B/s 0.00 % 30.87 % atom --ev~trap.js');

As soon as I close Atom, everything gets back to normal (iotop shows 0.00 B/s as total disk reads, as opposed to something around 12 M/s with atom running). I tried disabling all 3rd party plugins I downloaded but it did not help. Is there anything I could do to help investigating this issue?

Issue 2:
When I start atom for the first time I have a very high disc io. I've started iotop and found 4 apps running:

2288 be/4 user 717.17 K/s 0.00 B/s 0.00 % 98.51 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2291 be/4 user 679.23 K/s 0.00 B/s 0.00 % 97.91 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2290 be/4 user 694.40 K/s 0.00 B/s 0.00 % 97.41 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');
2289 be/4 user 599.54 K/s 0.00 B/s 0.00 % 96.19 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');

its running for about a minute with 4 times almos 100% disc write usage. After a minute they are finished and no disc io

atom 0.180.0-ac7057b

Dell M4500 Notebook

Fedora 21
Issue 1:
It would be nice if Symfony core provide Javascript bundle to inject common javascript library e.g. jQuery to make the standard way for common use.

My idea, If we can just include javascript library (global modular) to our project with just config in our config file (app/config/config.yml or any place) it will be nice for download and use public bundles from any vendors who required same javascript library with out conflict or duplicate.

This's same composer idea and may use in this case.

https://github.com/caolan/jam

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3

This is some kind of re-opening of #20673.

The implementations done in 3b4a8f3 missed the point.

Getting a runnable query like the following one:

SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = 'Object(Ramsey\\Uuid\\Uuid): \"363dd322-488e-4a60-8caf-c3cfe51f9d7c\"' LIMIT 1;

is pretty useless, because it's obviously not runnable at all.

What I expect is a query like this one:

SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = '363dd322-488e-4a60-8caf-c3cfe51f9d7c' LIMIT 1;

that is really runnable (e.g. I can copy&paste in some database client)
Issue 1:
The linux/arm64 port has been broken since March 20. Now that I have access to hardware, here is a minimal reproduction:

package main

func main() {
text := "abc"
s := &s{text}
println(text[2] == s.text[2])
}

type s struct {
text string
}

On linux/arm64 (tip f8fd550), bootstrapped with 11dba2e, this prints false.

/cc @davecheney @4ad @rsc

Issue 2:
Distilled from one of the failures in go test strings, a small-ish test case looks like this:

mwhudson@am2:~/go/src$ cat s5.go
package main

import "fmt"

type stringFinder struct {
pattern string
}

var f = &stringFinder{pattern: "He"}

func next() int {
i := 1
for i < 6 {
// Compare backwards from the end until the first unmatching character.
j := 1
for j >= 0 && "xHello"[i] == f.pattern[j] {
i--
j--
}
if j < 0 {
return i + 1 // match
}
i += 1
}
return -1
}

func main() {
fmt.Println(next())
}
mwhudson@am2:~/go/src$ ~/go/bin/go run s5.go
-1
mwhudson@am2:~/go/src$ ~/go1.4/bin/go run s5.go
1

This assembles to https://gist.github.com/mwhudson/41bbb7f10f6eda55ad86, which is as hard to read as any page of assembly, but single stepping through in gdb shows the problem: line 25 loads "xHellox"[i] into w0 and line 32 stomps on it, before line 39 does the comparison.
Issue 1:
Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

Go tip.

What operating system and processor architecture are you using (go env)?

OS X and Linux on Travis

What did you do?

Build Hugo (https://github.com/spf13/hugo).

If possible, provide a recipe for reproducing the error.

A complete runnable program is good.

A link on play.golang.org is best.

See https://travis-ci.org/spf13/hugo/builds/121437210

What did you expect to see?

All green.

What did you see instead?

Build fails on Go tip, both OS X and Linux.

I tried to see if this is a duplicate of an already reported issue, but it's hard to tell.

There is a test failure that I haven't looked into, but then there are these build failures:

19.35s$ go build -race

# github.com/pkg/sftp

../../pkg/sftp/client.go:829: internal error: (*File).WriteTo autotmp_781 (type *[]byte) recorded as live on entry, p.Pc=10248

# github.com/russross/blackfriday

../../russross/blackfriday/html.go:932: internal error: (*Html).ensureUniqueHeaderID autotmp_747 (type *int) recorded as live on entry, p.Pc=15486

Not sure when these failures started to happen ...

Issue 2:
This was first reported here russross/blackfriday#251, but it looks like a Go compiler issue.

What version of Go are you using (go version)?

go version devel +59fc42b Fri Apr 1 22:23:13 2016 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/gyuho/go"
GORACE=""
GOROOT="/home/gyuho/go-master/go"
GOTOOLDIR="/home/gyuho/go-master/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build999228004=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?

I just run go build -race to reproduce:

package sample

type Html struct {
headerIDs map[string]int
}

func (options *Html) header(id string) string {
for count, found := options.headerIDs[id]; found; count, found = options.headerIDs[id] {
_ = count
}
return ""
}

What did you expect to see?

No error message.

What did you see instead?

./sample.go:7: internal error: (*Html).header autotmp_3 (type *int) recorded as live on entry, p.Pc=0

Thank you all!
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 an issue that matches the one I want to file, without success.

Issue Details

Electron Version: 9.0.0

Operating System: macOS 10.14.6

Last Known Working Electron version: 8.3.0

To Reproduce

Create any page with an <input>, <textarea>, or other control, open it in Electron, and focus it.

Expected Behavior

The control should have a blue outline, as it does in Chrome 83:

Actual Behavior

The control has an orange outline:

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 an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.0.0

Operating System:

macOS 10.15.4

Last Known Working Electron version:

8.3.0

Expected Behavior

checkboxes should use the accent color that is set in System Preferences > General

Actual Behavior

checkboxes remain blue

To Reproduce

using electron fiddle:

https://gist.github.com/e27800f409182981352b68a90690c4a6

Screenshots

### Additional Information
Issue 1:
How about building a crypto module entirely implemented in WebAssembly?

Benefits would include: good performance, optimal portability

Luckily, we could also get timing safety for WebAssembly by patching V8 to implement CT-Wasm.

Issue 2:
Some applications like handling password will require hashing and encryption. These operations could be implemented in js/ts, but It really needs to be handled from a trusted environment to be secure. It looks like there have been some attempts to get this one rolling before recently with #1461.
Issue 1:
For example when you apply ".hidden-xs" to a , it turns into a block, rather than an inline element, when visible.

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
This was a recent regression.

Issue 2:
extern "C" fn main() {}

gives

extern-rust.rs:1:0: 1:23 error: main function expects type: `fn()`: expected "Rust" fn but found "C" fn
extern-rust.rs:1 extern "C" fn main() {}
^~~~~~~~~~~~~~~~~~~~~~~

but changing the "C" to a "Rust" as the error message implies might work gives

extern-rust.rs:1:0: 1:26 error: main function expects type: `fn()`: expected impure fn but found extern fn
extern-rust.rs:1 extern "Rust" fn main() {}
^~~~~~~~~~~~~~~~~~~~~~~~~~

which is peculiar because it doesn't pass the entry-point-type-checker (although it'd hit #10763 even if it did), and it mentions impure fn even though this is now essentially a historical implementation detail of the AST (after the removal of pure fn).
Issue 1:
Let's say that you have a JSON document similar to this:

{
"value": 5,
}

And the value of value can be either a number or a string.

There is currently no way to write a generic implementation of Decodable that can handle this. Attempting to read the value of value will remove it and throw it away, even if the read triggers an error. You can't try to read a number and then read a string if it fails.

The element is returned in the DecoderError, so it should be possible to write an implementation of Decodable specifically for Json, but if you do so you can't put the object within another object that has #[deriving(Decodable)].

Issue 2:
Now it's impossible to implement Decodable for a map with different value types

because read_* methods lose the stack head anyway.

Decodable doesn't have a method returning the stack head as-is without any type casting.

Let's look a case where Json dictionary has values with int and String types.

extern crate serialize;
use serialize::{Decodable, Decoder};
use serialize::json::{Json, Boolean, String, Null, I64, U64, F64};
use serialize::json;

#[deriving(Show)]
struct Primitive(Json);

impl<S: Decoder<E>, E> Decodable<S, E> for Primitive {
fn decode(decoder: &mut S) -> Result<Primitive, E> {
match decoder.pop() {
n @ I64(_) => Primitive(n),
n @ U64(_) => Primitive(n),
n @ F64(_) => Primitive(n),
s @ String(_) => Primitive(s),
bad => fail!("bad {}", bad)
}
}
}