WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi there,

Just noticed that when writing ruby code in atom there seems to be a bug regarding syntax highlighting after %{}

eg if you write the line

object.something(%{(default: $FIlE, or "/asd")})

every thing is highlighted green afterwards?

Atom Version 0.103.0 (0.103.0)

Mac OSX 10.9.3

Issue 2:
Consider the following code fragment, when inserted into the editor the syntax highlighitng shows all the code below the closed string as a string. This is not the case in sublime2 and other text-editors.

email.header = "[[\"Received\", \"by luna.mailgun.net with SMTP mgrt 8788212249833; Fri, 26 Apr 2013 18:50:30 +0000\"], [\"Received\", \"from [10.20.76.69] (Unknown [50.56.129.169]) by mxa.mailgun.org with ESMTP id 517acc75.4b341f0-worker2; Fri, 26 Apr 2013 18:50:29 -0000 (UTC)\"], [\"Message-Id\", \"<517ACC75.5010709@app22735278.mailgun.org>\"], [\"Date\", \"Fri, 26 Apr 2013 11:50:29 -0700\"], [\"From\", \"Bob <bob@app22735278.mailgun.org>\"], [\"User-Agent\", \"Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4\"], [\"Mime-Version\", \"1.0\"], [\"To\", \"Alice <alice@app22735278.mailgun.org>\"], [\"Subject\", \"Re: Sample POST request\"], [\"References\", \"<517AC78B.5060404@app22735278.mailgun.org>\"], [\"In-Reply-To\", \"<517AC78B.5060404@app22735278.mailgun.org>\"], [\"X-Mailgun-Variables\", \"{\\\"my_var_1\\\": \\\"Mailgun Variable #1\\\", \\\"my-var-2\\\": \\\"awesome\\\"}\"], [\"Content-Type\", \"multipart/mixed; boundary=\\\"------------020601070403020003080006\\\"\"], [\"Sender\", \"bob@app22735278.mailgun.org\"]]"
email.content_type = params['Content-Type']
Issue 1:
julia repl v 1.5.2 crashes when you enter a char ('x')

crash.log

Issue 2:
uname -a

Linux odie 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

cpuinfo.txt

errjulia-1.4.txt
Issue 1:
Andrew Swan opened SPR-8922 and commented

from the following URL, it seems as though the reference docs have not yet been updated to reflect the new schema locations of the Spring XML schemas:

http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/xsd-config.html

They all seem to reference the 3.0 schemas...

Issue Links:

#14644 Remove xsd versions from reference samples ("duplicates")

Issue 2:
Phil Webb opened SPR-10010 and commented

The current reference docs include a lot of older xsd links. We should probably replace these with 3.2 versions.

Affects: 3.1.3

Issue Links:

#13562 Update reference documentation regarding 3.1 schema versions ("is duplicated by")

Referenced from: commits d3f4528, 2b6d724, a52396b
Issue 1:
During writing container attach node e2e test, I found this.

Docker attach has an option called Logs (see Docker Remote API).

With this on, before each container attach docker will print the container log first (see code)

The Logs option is supported in go-dockerclient (see code), while it is not supported in engine-api yet (see code).

Before switching to engine-api, the Logs option is true (see old code). While because engine-api doesn't support it, we don't set it now (see code)

What is the expected behavior here? If needed, we could send a PR to engine-api to support it.

@ncdc

/cc @kubernetes/sig-node @kubernetes/rh-ux

Ref #23563

Issue 2:
When running a command via kubectl run -it that immediately prints something, we might lose some lines of the log due to a race of the execution of the container and the kubectl attach used by kubectl run to attach to the terminal (compare comment #16670 (comment)).

As a workaround for running an interactive shell we have this ugly Hit enter for command prompt now. The actual root problem though is that docker attach does not replay the logs. It looks like docker run is the only way to actually synchronously run a command, get all the output and attach to the process.
Issue 1:
I discovered that the following does not work:

julia> muladd!(_, ::Nothing, _; kwargs...) = nothing
ERROR: syntax: all-underscore identifier used as rvalue around REPL[2]:1
Stacktrace:
[1] top-level scope at REPL[2]:1

whereas without kwargs, it's fine:

julia> muladd!(_, ::Nothing, _) = nothing
muladd! (generic function with 1 method)

Issue 2:
julia> f(_, a) = 10
f (generic function with 1 method)

julia> f(_, a=1) = 10
ERROR: syntax: all-underscore identifier used as rvalue around REPL[0]:1

The second form seems legitimate, no? The same issue arises with keyword arguments (f(_; x=1) = ...)
Issue 1:
Hi,

I am using Superset 0.19.0 to connect Spark Sql. I need to query my temp tables in spark. The database is created and connection is OK. I also was able to create a table by selecting my database connection and giving the table name and empty schema name ( Spark temp tables don't have a database/schema ). I am able to load data from my table and visualize it.

Now I want to query my tables from SQL Lab, but I can't access the tables. The reason is that If I don't select any schema, I can't see or search my table names.

Is it possible to make SQL Lab view and query tables which are NOT in any database/schema?

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.19.0

Expected results

To be able to see the tables in SQL LAB and if I select one of them see a short summary of the selected table and its columns. Another expectation would be to autosuggest the table names and columns in the SQL LAB editor.

Actual results

I can't see any Temporary Table names in the dropdown menu plus there is no suggestion about the created Temporary Tables or their columns in the query editor. However I'm able to query the tables and getting the appropriate results in the results tab.

Additional information that connecting to Spark SQL via beeline command line tool shows that all the Temporary Tables were created and registered (show tables command) and their columns can be seen as well (show columns from sometable command).

Steps to reproduce

Start a Spark Context and set spark.sql.hive.thriftServer.singleSession to true.

Start a Spark Thrift Server in the already created and started Spark context.

Create some Temporary Tables in the Spark context.

Connect to Spark SQL with Pyhive SQLAlchemy URI.
Issue 1:
Seems fixing the bug from #4521 created a new bug for :checked="" binding when using in combination with vuex states for maintaining checkbox states.

<template>
<ul>
<li v-for="option in visibleOptions" :key="option.value">
<input
type="checkbox"
:name="filter.key"
:value="option.value"
:checked="inArray(option.value, filter.active)"
@change="updateFilter">
</li>
</ul>
</template>

In this code example is :checked set to true or false whenever it's in the active filter array.

It seems when this component is updated (via vuex) the :checked stated doesn't get's updated like in 2.1.6. In my application is the state managed almost totally by Vuex.

Vue.js version

2.1.7+

Reproduction Link

http://vroom.automotivated.nl/

Howto reproduce

When selecting several checkboxes (like brands) and use your browser back button to fallback to previous states. (it's managed by the popstate event and uses vuex actions to update actively the new state)

What is expected

The checkbox should go on or off depending on the previous action or new current state.

What is actually happening?

Everything get's correctly updated (value wise), except the checkbox isn't honored to update (checked true/false). It keeps in a previous state. When selecting multiple after eachother and navigating back and forward is looks like is off a beat and missing the last changed checkbox.

Code that goes with it:

https://github.com/Automotivated/vroom/blob/master/src/views/elements/filters/Multiple.vue

Full github repo:

https://github.com/Automotivated/vroom/

While reading the docs in Vuex, it seems to be best practise to do it like I did.

When did it work

It worked like a charm in 2.1.6. Seems really that fixing this bug triggered this bug to be created.

Issue 2:
Example: https://jsfiddle.net/vfmxxzeb/3/

What the example does:

Resets values to an array of values every one second

Each line has two checkboxes, both of which are bound to the same value

Steps to reproduce:

Click on the enabled checkbox on any line

Expected behaviour:

After one second, the value should be reset. Both checkboxes should reflect the same value

Actual behaviour (tested on Chrome):

The disabled checkbox correctly reflects the value, but the enabled checkbox does not reflect the value. The enabled checkbox will reflect the correct value only after blurring from the checkbox
Issue 1:
Context:

Playwright Version: 1.7.1

Operating System: MacOS 10.15 Catalina

Node.js version: 12.18.4

Browser: Chromium

Extra: None

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and

that we can run and debug locally. For example:

const { chromium } = require('playwright');

(async () => {
const browser = await chromium.launch()
const page = await browser.newPage()
const URL = 'https://the-internet.herokuapp.com/key_presses'
await page.goto(URL)

const handles = await page.evaluateHandle(() => document.querySelectorAll('input'))

if (handles) {
const properties = await handles.getProperties()
for (const property of properties.values()) {
const elementHandle = property.asElement()
if (elementHandle) {
await elementHandle.focus()
}
}
handles.dispose()
}

await browser.close()
})();

Describe the bug

When I get the array of ElementHandle by page.evaluateHandle() and call any API of each ElementHandle (focus() for an example), an error elementHandle.focus(): dispatcher[method] is not a function is thrown. Reproducible example here: https://try.playwright.tech/?s=i1th62g

Issue 2:
playwright version 1.7.1

Failed to run the example

REF: https://playwright.dev/docs/api/class-page#pageexposebindingname-playwrightbinding-options

await page.exposeBinding('clicked', async (source, element) => {

console.log(await element.textContent());

}, { handle: true });

await page.setContent(`

<script>
document.addEventListener('click', event => window.clicked(event.target));
</script>

Click me

Or click me

`);

Google Chrome console reports error :

Uncaught (in promise) elementHandle.textContent: dispatcher[method] is not a function
Issue 1:
On testing #2994

In this snippet range select both 'foo' and 'bar' methods and then perform 'Fold' operation.

class xyz {
foo() {
hello
}
bar() {
world
}
}

Observe: only 'foo' is collapsed.

I would expect that all regions overlapping with the text selection are collapsed.

Issue 2:
Testing #2994

It seems to only work on the main cursor currently.
Issue 1:
David Thexton opened SPR-9405 and commented

I noted when trying to diagnose BATCH-1852 (which was making use of JdbcTemplate) that there were no options to enable logging JDBC query parameters or query results. I recalled this was possible for Hibernate (see http://www.seamframework.org/Documentation/EnablingJDBCBindParameterLoggingWithHibernateAndLog4j) and wanted the same feature for Spring JdbcTemplate. I could have used P6Spy (see http://sourceforge.net/projects/p6spy/), although that approach seemed inconvenient.

As this logging can be very verbose I used separate classes (and thus loggers). Continue to set logger "org.springframework.jdbc.core.JdbcTemplate" to debug to see the queries being executed and simple results. Additionally set logger "org.springframework.jdbc.core.PreparedStatementValueLogger" to debug for query parameter logging and logger "org.springframework.jdbc.core.PreparedStatementResultLogger" to debug for further query result logging.

I've implemented the change in a style that will hopefully be seen to fit and I'll issue a pull request as soon as I've completed testing and committed to my spring-framework fork. I'm happy to make further changes for this issue if necessary. Please let me know.

Affects: 3.2 M1

Issue Links:

#12438 Logging of SQL Params and Query when using JdbcTemplate ("duplicates")

Issue 2:
Abhishek Gupta opened SPR-7782 and commented

In production applications it is imperative that SQL statements and bind parameters be logged at a configurable level for support purposes.

When using the JdbcTemplate spring does currently log both, but sql statements are logged at debug level and parameters are logged in the 'o.s.j.c.StatementCreatorUtils' class at trace level. It is impractical to keep trace level on in a critical (or any) production system - even for a single class. There are other non-important (or non-functional) debug/trace logs that might be in the class that are not required to be logged. Or new ones might be introduced in future versions.

We would want the query/params to be logged at info level but again that might not be suitable for others, so ideally it should be something that is configurable.

The work-around today is ugly, in that we wrap the JdbcTemplate just to be able to log the parameters. Ideally, if there could be a property in the JdbcTemplate that accepts the log level for functional logs (query, params in this case) it would be most helpful. Given that JdbcTemplate is now a total replacement for using any low level jdbc api, and is so popular, it makes sense to have this feature that will give users more control and contribute to the completeness of such a widely used Spring offering.

I am happy to use any other solution you might have that addresses this use-case.

Thanks,

Abhi

P.S. This really applies to other classes too like in the jdbc.object package

Affects: 3.0.5

Issue Links:

#14041 JdbcTemplate parameter and result logging ("is duplicated by")

#12774 Revisit subsystem-oriented logging

6 votes, 14 watchers
Issue 1:
System Info

I'm using LayoutLMv3Processor to encoding.

when I input (1, 82, 4) as boxes, the processor will extends the boxes to (1, 512, 4), but some boxes of input is dropped by processor as I can't find them in the encoding;

seems the last n boxes is dropped.

tokenizer = LayoutLMv3TokenizerFast.from_pretrained('microsoft/layoutlmv3-base')

processor = LayoutLMv3Processor(LayoutLMv3FeatureExtractor(apply_ocr=False), tokenizer)

boxes of before encoding (512, 4)

boxes of after encoding (82, 4)

boxes of before encoding without duplicated (58, 4)

boxes of after encoding without duplicated (82, 4)

Who can help?

No response

Information

The official example scripts

My own modified scripts

Tasks

An officially supported task in the examples folder (such as GLUE/SQuAD, ...)

My own task or dataset (give details below)

Reproduction

import numpy as np

from PIL import Image

from transformers import LayoutLMv3Processor, LayoutLMv3TokenizerFast, LayoutLMv3FeatureExtractor,

LayoutLMv3ForTokenClassification, AutoModelForTokenClassification, AutoConfig

from inference_util import prepare_annotation,load_original_dataset

image_paths,bboxes,ner_tags=load_original_dataset("cro_vl_fr/","test")

tokenizer = LayoutLMv3TokenizerFast.from_pretrained('microsoft/layoutlmv3-base')

processor = LayoutLMv3Processor(LayoutLMv3FeatureExtractor(apply_ocr=False), tokenizer)

item = image_paths[0]

image = Image.open( item).convert("RGB")

get word-level annotations

image,words,boxes=prepare_annotation(image,bboxes[0])

boxes_2_points= np.hstack((np.array(boxes)[:,0:2],np.array(boxes)[:,4:6])).astype(int)

encoding = processor(image, words, boxes=boxes_2_points,

padding="max_length", truncation=True,

return_tensors="pt")

for k,v in encoding.items():

encoding[k] = v.squeeze()

token_boxes = encoding['bbox'].numpy()

print("boxes of before encoding",np.shape(token_boxes))

print("boxes of after encoding",np.shape(boxes_2_points))

token_boxes=[tuple(a) for a in token_boxes]

token_boxes=np.array(list(set(token_boxes)))

boxes_2_points=[tuple(a) for a in boxes_2_points]

boxes_2_points=np.array(list(set(boxes_2_points)))

print("boxes of before encoding without duplicated ",np.shape(token_boxes))

print("boxes of after encoding without duplicated",np.shape(boxes_2_points))

Expected behavior

original boxes should not be drop.

Issue 2:
The link to the example/summarization folder in the-big-table-of-tasks is broken because the folder's name has been changed to seq2seq
Issue 1:
The rules for struct identity require that two identical structs have identical tags.

This plays into the rules for assignments and conversions of structs in unfortunate ways:

There appears to be no way to assign or even convert a struct with tags to another struct with different or no tags, wether that other struct is named or unnamed:

http://play.golang.org/p/6FZcWSIc9w

I think we're overly restrictive here. For instance, if I wanted to convert a struct with json tags to a struct with tags for some other encoding (to convert from one encoding to another), I actually have to copy all the fields by hand.

This seems counter-intuitive. I would have expected that I could go via an unnamed struct, or at the very least use an explicit conversion.

I'm thinking that perhaps we should relax the rules here. One might be to remove again the requirement of identical tags for struct identity (simplest); or perhaps to relax the rules for assignments and conversions of structs.

Issue 2:
Run this:

package main

type Message struct {
Id int `db:"id"`
Text string `db:"text"`
}

type Message2 struct {
Id int `json:"id" xml:"id,attr"`
Text string `json:"text"`
}

func main() {
msg := Message{1, "Hello"}
msg2 := Message2(msg)
_ = msg2
}

What is the expected output?

[no output]

What do you see instead?

cannot convert msg (type Message) to type Message2

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which version are you using? (run 'go version')

go version devel +d744da8c8cbf Wed Sep 25 16:18:33 2013 -0400 darwin/amd64

Please provide any additional information below.

I'm trying to decouple my database layer from my service layer into separate packages.
Tags in one package are only relevant to that package. What I'd like to do is re-define
the struct in my service layer and cast it from the database layer. The fields inside
the struct are otherwise exactly the same, besides the tags.

Unfortunately it won't cast unless the tags are also exactly the same. The only solution
I have at this point is put the structs in a "common" package that both the
database and service layers share. But then I'm mixing tags...
Issue 1:
Mousewheel click for opening a new tab in background doesnt't work for me in Firefox (19.0.2, Win7 64Bit). In Chrome it works fine for me. Seems that is something wrong with bootstrap.js.

Example: http://twitter.github.com/bootstrap/

Steps to reproduce: Try to click with the mousewheel on a link.

Issue 2:
Issue: middle mouse click on a link in Firefox, nothing happens.

Expected behavior: middle mouse click on a link, open in new browser tab.

Live example: http://twitter.github.com/bootstrap/

Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.

Notice it when I upgrade to bootstrap v2.3.1.

Switch back to v2.3 and the middle button works again.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1688 on 2010-11-29 by @gerritholl, assigned to @pierregm.

When a MaskedArray's data are a record array,, string representation fails with a ValueError as the mask does not contain the mapping of field names that the data does.

It appears the records are not carried on to the mask.

$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> Z = np.empty((5,), dtype=[('A', np.float32), ('B', np.uint32)])
>>> M = np.ma.masked_where(np.array([True, False, True, False, True]), Z)
>>> print M
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py", line 3558, in __str__
_recursive_printoption(res, m, f)
File "/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py", line 2292, in _recursive_printoption
(curdata, curmask) = (result[name], mask[name])
ValueError: field named A not found.
>>> print np.version.version
2.0.0.dev-12d0200

Issue 2:
I'm trying to create a mask for a structured array. When I try to access a field from the array or simply represent it, numpy throws a ValueError: field names A not found, as illustrated below.

>>> R = numpy.empty(10, dtype=[("A", "<f2"), ("B", "<f4")])
>>> Rm = numpy.ma.masked_where(R["A"]<0.1, R)
>>> Rm["A"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 3014, in __getitem__
dout._mask = _mask[indx]
ValueError: field named A not found.
>>> print(Rm)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 3583, in __str__
_recursive_printoption(res, m, f)
File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 2294, in _recursive_printoption
(curdata, curmask) = (result[name], mask[name])
ValueError: field named A not found.
>>> print(numpy.version.version)
1.8.0.dev-b8bfcd0
>>> print(numpy.version.git_revision)
b8bfcd02a2f246a9c23675e1650c3d316d733306

I tested it with the stable version 1.6.2 and the bleeding-edge version obtained directly from git.

It also fails in earlier stable versions (tested with 1.6.2).

Note: if I instead create directly a masked array with numpy.ma.empty, I get a different error:

>>> R2 = numpy.ma.empty(10, dtype=[("A", "<f2"), ("B", "<f4")])
>>> Rm2 = numpy.ma.masked_where(R2["A"]<0.1, R2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 1810, in masked_where
cond = mask_or(cond, a._mask)
File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 1627, in mask_or
raise ValueError("Incompatible dtypes '%s'<>'%s'" % (dtype1, dtype2))
ValueError: Incompatible dtypes 'bool'<>'[('A', '?'), ('B', '?')]
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Mini variant version of the drawer should not be horizontally scrolled when collapsed

Current Behavior

It is scrollable

Steps to Reproduce (for bugs)

Go to the component demo and try scrolling it (I tried with an android phone phone)

Your Environment

Tech
Version

Material-UI
latest beta I assume

React
n/a

browser
chrome 61 for Android

etc

Issue 2:
I'm trying to re-style the Switch component, but having trouble finding a way to style the bar in the background the button.

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

Expected Behavior

N/A

Current Behavior

N/A

Steps to Reproduce (for bugs)

N/A

Context

When the Switch component is checked the following styling is applied:

.MuiSwitch.checked-1 + .MuiSwitch.bar-1 {
opacity: 0.5;
backgroud-color: #3f51b5;
}

When creating an theme, how does one override the background color in the style above?

const theme = createMuiTheme({
overrides: {
checked: {
color: lightBlue['A700'] // changes switch handle
},
bar: {
// changing the backgroundColor here changes it for disabled & checked
}
}
});

I can change it by overriding palette.primary.500. I'm wondering if it's possible in the override section?

Your Environment

Tech
Version

Material-UI
1.0.0-beta.11

React
15.6.1

browser
chrome