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

In some devices (Moto X) do not download correctly, like the screenshot attached.

When i skipMemoryCache(true) it works, because Glide download the image again.

I already use asBitmap() with imageDecoder() and the problem still occur.

But, in my other device (Nexus 4) this problem doesn't occur. Glide works perfectly

I tried to config listener() to log Exceptions but never called onException() method. In other words, no Exceptions occurs. Its weird.

Best,

Thiago Luis.

Issue 2:
I load picture with the code

Glide.with(mContext).load(caseDetail.getPicInfo().getImage()).crossFade(250).placeholder(R.color.pic_load).error(R.color.pic_load).into(holder.ivPic);

but it sometimes happe ton black block, some the like the picture , how can I fix the problem?
Issue 1:
Migrated issue, originally created by Johnathon Hege

It appears that insert().from_select(), when passed a CTE, doesn't generate syntactically valid MS SQL code. The code it generates (using the recursive "parts" example in the CTE documentation) looks like:

INSERT INTO destination (part, sub_part, quantity) WITH anon_1(part, sub_part, quantity) AS
(SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity
FROM parts
WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity
FROM parts AS parts_1, anon_1 AS anon_2
WHERE parts_1.part = anon_2.sub_part)
SELECT anon_1.part, anon_1.sub_part, anon_1.quantity
FROM anon_1

But SQL Server requires the INSERT below the CTE definition, as below:

WITH anon_1(part, sub_part, quantity) AS
(SELECT parts.sub_part AS sub_part, parts.part AS part, parts.quantity AS quantity
FROM parts
WHERE parts.part = ? UNION ALL SELECT parts_1.sub_part AS sub_part, parts_1.part AS part, parts_1.quantity AS quantity
FROM parts AS parts_1, anon_1 AS anon_2
WHERE parts_1.part = anon_2.sub_part)
INSERT INTO destination (part, sub_part, quantity)
SELECT anon_1.part, anon_1.sub_part, anon_1.quantity
FROM anon_1

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

apparently its all possible now. might as well make a new syntax bonanza out of it:

WITH upsert AS (
UPDATE metric k SET k.count = k.count + 5
WHERE event = "foo" AND interval = "D" and date = "whatever"
RETURNING k.*
)
INSERT INTO metric (event, interval, date, count)
SELECT ("foo", "D", "whatever", 5)
WHERE NOT EXISTS (
SELECT 1 FROM upsert
);

http://www.postgresql.org/docs/9.1/static/sql-insert.html

Attachments: ticket_2551.patch | CTE.sqlalchemy
Issue 1:
Question

Upgrade 4.1.1 to 5.2.1, I got an error

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestController': Unsatisfied dependency expressed through method 'setMyTestService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestServiceImpl': Unsatisfied dependency expressed through method 'setMyTestDao' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myTestDao' defined in file [/Users/waylon/Project/fjld/test/server/account/target/classes/com/fjld/test/server/account/dao/MyTestDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw exception; nested exception is org.yaml.snakeyaml.error.YAMLException: Unable to find getter for property 'tenantColumn' on object com.alibaba.druid.wall.WallFilter@60df7989:java.lang.reflect.InvocationTargetException

Issue 2:
Bug Report

Which version of ShardingSphere did you use?

v5.2.0

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Create a druid datasource, and then add some filters.

DruidDataSource druidDataSource = new DruidDataSource();
// ...
druidDataSource.setProxyFilters(buildFilters());

Create a shardingsphere datasource by ShardingSphereDataSourceFactory

Exception occurs: Can't construct a java object for tag:yaml.org,2002:com.alibaba.druid.filter.stat.StatFilter; exception=Class is not accepted: com.alibaba.druid.filter.stat.StatFilter.

Example codes for reproduce this issue (such as a github link).

https://github.com/caol64/sharding-test
Issue 1:
Aggregations, Filters, Builders all have some form of a Bounding Box implementation. This task is to consolidate all of these duplicate "rogue" classes into one (possibly in GeoUtils).

Note: this consolidation could eventually be replaced w/ an integration of the Apache SIS geometry package and using the Envelope geometry.

Issue 2:
Validation of index templates has proven difficult to get right due to how multiple templates that might be invalid on their own can result in a valid template in the end, for instance if two templates match a given index name and one of them is providing analysis index settings while the other one is providing mappings that make use of these analyzers. (#20479)

The fact that we cannot validate index templates is not good, so I think we need to think about how we could validate them all the time without false positives. We were discussing this issue yesterday and the following options have been suggested:

Require that templates are valid on their own. In that case we might also want to remove the ability for several templates to match an index, as several templates could be merged into an invalid one (#20988).

Make the inheritance of templates explicit: instead of merging templates together based on order, a template could refer to other templates that should be included in order to not have to repeat the same bits over multiple templates. And again, we would probably only allow one template to be applied per index.
Issue 1:
A binary compiled with the recent master (or possibly much older master) and extern mod native; fails to run in Windows XP due to the missing symbols including CreateSymbolicLinkW, which are supported since Windows Vista. I don't have a working Windows XP environment at the moment so there might be more missing symbols. (I've received the report via some user with Windows XP.)

I'm not sure if it is intentional or not, but given that libuv has a check for the support, we at least need to determine whether to fix or not.

Issue 2:
I've made some investigation recently, and found that, there are only two APIs which are not supported by Windows XP, throughout the repo tree. There are:

CreateSymbolicLinkW, only used by native::io::file::symlink()

GetFinalPathNameByHandleW, only used by native::io::file::readlink()

And native::io::file::{symlink,readlink} are never used throughout the repo tree, except std::io::fs::{symlink,readlink} (which are really never used).

Do we really need including symlink/readlink functionality inside std? How other languages do?

Currently Windows XP is still wildly used in the world, especially in Asia. Its installed volume is much more than Mac OS + Linux + Unix. We give up supporting XP just because of two api absent? Maybe it's wrong.

cc #11950

update: readlink is used by rustc::metadata::filesearch.

update: This is my branch: https://github.com/liigo/rust/tree/xp

I just commented out the usage of CreateSymbolicLinkW and GetFinalPathNameByHandleW. This make the new rustc.exe run successfully in Windows XP, ant it works mostly OK (see my latest comment below).
Issue 1:
I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request

Current behavior

Two oddities when using microsyntax to set variables on structural directives:

An unused @input named exactly like the selector is required on structural directives.

@Directive({
selector: '[aDirective][aDirectiveFoo]',
...
})
export class ADirective {
@Input() aDirective: any; // Required, but explicitly set to "undefined".
@Input() aDirectiveFoo: string;
}

An extraneous character followed by a space is required at the beginning for it to work.

Doesn't work:

<a-component *aDirective="foo:'bar'">
<a-component *aDirective=" foo:'bar'">

Works:

<a-component *aDirective="z foo:'bar'">
<a-component *aDirective="config; foo:'bar'">

Expected behavior

Don't require or automatically insert the extraneous @input.

Allow variable assignment without the required character and space.

Minimal reproduction of the problem with instructions

Plunker example here

What is the motivation / use case for changing the behavior?

Allow richer initialization and use of structural directives.

Issue 2:
See example: http://plnkr.co/edit/9GdLbXM0mh5zHPKhcwCL?p=info

Both of these should parse correctly:

<div *bsPane="title exp"></div>
<div *bsPane="title: exp"></div>

Given:

@Directive({
selector: '[bsPane]'
})
class Foo {
@Input() bsPaneTitle: string;
}

instead get error:

Can't bind to 'bsPane' since it isn't a known native property ("
Demo:
<div [ERROR ->]*bsPane="title 'Overview'"></div>
<div *bsPane="title 'Summary'"></div>"): DiDemo@2:9
Property binding bsPane not used by any directive on an embedded template ("
Demo:
[ERROR ->]<div *bsPane="title 'Overview'"></div>
<div *bsPane="title 'Summary'"></div>"): DiDemo@2:4
Can't bind to 'bsPane' since it isn't a known native property ("
Demo:
<div *bsPane="title 'Overview'"></div>
<div [ERROR ->]*bsPane="title 'Summary'"></div>"): DiDemo@3:9
Property binding bsPane not used by any directive on an embedded template ("
Demo:
<div *bsPane="title 'Overview'"></div>
[ERROR ->]<div *bsPane="title 'Summary'"></div>"): DiDemo@3:4```

and

EXCEPTION: Template parse errors:
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Overview'] in DiDemo@2:9 ("
Demo:
<div [ERROR ->]*bsPane="title: 'Overview'"></div>
<div *bsPane="title: 'Summary'"></div>"): DiDemo@2:9
Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Summary'] in DiDemo@3:9 ("
Demo:
<div *bsPane="title: 'Overview'"></div>
<div [ERROR ->]*bsPane="title: 'Summary'"></div>"): DiDemo@3:9
Issue 1:
julia> a=zeros(1,1); b = reshape(a,1); push!(b,1); b[1]=-1; a,b
([0.0], [-1.0, 1.0])

Expected behavior:

julia> push!(b,1)
ERROR: cannot resize array with shared data

Not really sure whether this is a bug or intended, but it is surprising and weird (I would have expected reshape to lock further resizing on either both the source and the target, or on neither).

Issue 2:
Consider the following example:

xmat = randn(5,5)
xvec = reshape(xmat, 25)
push!(xvec, 3)
xvec[1] = 0.0
xmat[1] # not zero

Here push! has decoupled xmat and xvec, though one would expect that a reshaped array always point to the same memory as the original array. I think the push! here should raise an error.

Contrast the example above with the following (source: https://discourse.julialang.org/t/puzzling-reshape-and-push/28326/2):

xvec = rand(4)
xmat = reshape(xvec, 2, 2)
push!(xvec, 1.0) # ERROR: cannot resize array with shared data

To be consistent it seems to me that my first example above should also be an error.
Issue 1:
Uncaught Error: EACCES, open '/home/eduardo/.atom/compile-cache/cson/5af7724b023a6274b520f79f04fb798a67319ca7.json'

Atom Version: 0.153.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Issue 2:
When I open files of UTF-16LE, ATOM magically decodes only 7-bit ASCII characters but no other characters are decoded. I think there are many \0 characters on the file so that ATOM can detect UTF-16 in better way.

Furthermore, even with UTF-16LE files with BOM could not be loaded correctly :(
Issue 1:
What I'm doing

Trying to estimate the emotion of tweets using https://huggingface.co/cardiffnlp/twitter-roberta-base-emotion

The error

RuntimeError: The expanded size of the tensor (601) must match the existing size (514) at non-singleton dimension 1. Target sizes: [1, 601]. Tensor sizes: [1, 514]

Does anyone what the problem might be? I tried truncating=True as well

Code and data to reproduce

View only

https://deepnote.com/project/Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-ZfBSsqbKQ7-XWrir593tKQ/%2Fnotebook.ipynb

Interactive (can run and/or make changes)

https://deepnote.com/project/Interactive-Code-to-reproduce-error-RuntimeError-The-expanded-size-of-the-tensor-601-must-match-the-existing-size-514-at-non-singleton-dimension-1-Duplicate-qJTy9jxRTPWhXhwytQjU4Q/%2Fnotebook.ipynb

Environment

"Deepnote projects run in containers on Debian Buster with Python 3.7"

Issue 2:
System Info

transformers==4.20.1

torch==1.11.0+cu113

Python 3.9.13

Who can help?

@patrickvonplaten @Narsil @ola13 @gante

Information

The official example scripts

Reproduction

Hello everyone,

I am using BART and I have enabled return_scores = True with beam_size = 4.

The shape of the Scores vector is (seq_len, batch_size * beam_size * num_returned sequence, vocab_size).

I would like to know how I can subdivide the vector obtaining the shape

(seq_len, batch_size, beam_size, num_returned_sequence, vocab_size).

Because at the moment it is not possible to map the input sentences in a batch with the output.

Kind regards,

Andrea

ps: I also opened a blog post, I did not know which was the most appropriate place, sorry for the duplicate.

outputs = model.generate(
input_ids=source_ids,
max_length = 500,
return_dict_in_generate=True,
output_scores=True,
num_beams=4
)

print(len(outputs.scores)) # seq_len
print(outputs.scores[0].shape) # (batch_size * beam_size * num_returned sequence, vocab_size)

Expected behavior

a score vector with a shape of (seq_len, batch_size, beam_size, num_returned_sequence, vocab_size)
Issue 1:
I have noticed on several websites, that exposed functions are not working. Below is a working example of this issue on one URL. If you need more URLs where this occurs, just comment and I'll provide.

System info

Playwright Version: Version 1.32.3

Operating System: Tested on Ubuntu 22.04

Browser: Chromium

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

// repro.js
const { chromium } = require('playwright');

(async () => {
function testInitScript(){
if(window !== window.top) {
return; // only run init script on root
}

setTimeout(function(){
window.TestExposedFunction('This is a test');
}, 2000);

}
const browser = await chromium.launch({ headless: false });
const page = await browser.newPage();
await page.exposeFunction("TestExposedFunction", (text) => console.log('TestExposedFunction', text));
await page.addInitScript(testInitScript);

await page.goto("https://essen.vienna.at/"); // ⬅️ This will cause an exception in the browser when calling the TestExposedFunction
//await page.goto("https://www.google.com/"); // ⬅️ This will work just fine, and console.log the TestExposedFunction text

await new Promise(resolve => setTimeout(resolve, 10000)); // Poor man's way of being able to wait a bit with the browser open

await browser.close();
})();

Steps

Run the repro.js (node repro.js) with each page.goto()

Expected

Both URLs should give the same result (logging 'TestExposedFunction' with the text)

Actual

essen.vienna.at does not console.log, but instead throw below exception:

google.com correctly outputs: TestExposedFunction This is a test

Issue 2:
In Playwright's doc, there is great mentioning on Page Object Model. However, when I try to follow this model (using TypeScript), I encounter a problem. For common page components, like menu or navigation bar, which appreas on every page on my website, if I create web elements for them in each page object, there will be lots of duplications.

So what's a good way to implement such common components to avoid duplications?
Issue 1:
Failed to format x-axis as Timestamp

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
plt.plot(ts.index,ts)
plt.show()

x-axis is show as raw number of epoch time in nanoseconds (~1.5e18). However, if we call ts.plot() once before calling plt.plot, x-axis is correctly formatted and the correct behavior will persist for the entire python session, even if we're creating new Series or DataFrame.

I recently upgraded from pandas 0.17.1 to 0.21.0 and the older version did not have this issue.

Installed Versions

pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-642.11.1.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.21.0
pytest: None
pip: 9.0.1
setuptools: 20.1.1
Cython: None
numpy: 1.13.3
scipy: 0.17.0
pyarrow: None
xarray: None
IPython: 4.1.1
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: 2.6.4
feather: None
matplotlib: 2.1.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

Issue 2:
Given the feedback we have got (#18153, #18192, #18212, #18283, matplotlib/matplotlib#9577, matplotlib/matplotlib#9610, matplotlib/matplotlib#9771, pydata/xarray#166), it seems we underestimated the impact and we should consider (partly) reverting this change to properly deprecate it instead.

This should also give matplotlib the time to implement basic datetime64 support (matplotlib/matplotlib#9610, matplotlib/matplotlib#9779)

Depending on how we can do this, this might have the consequence that have to undo temporarily the lazy import of matplotlib (affecting the import time). See also discussion in #18283

Opening this issue to keep track of it, should be decided/done for 0.21.1
Issue 1:
Challenge Waypoint: Create a Form Element has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>

Issue 2:
I think I wrote correctly but it doesn't work like I thought :(
Issue 1:
As with today's command line or powershell, it is possible to go to the address bar in the file explorer and type 'cmd' or 'powershell' and it would open in the current directory location.

This feature request is about allowing the same behavior by typing 'terminal' - which will open the terminal with the default profile in the directory location.

In addition please also allow a context menu entry for terminal that would also open the default profile in the current directory.

Issue 2:
Summary of the new feature/enhancement

This might be related to #1133

When creating a new profile there should be an option to runas ... I have seen mention of security issues... My current workstation I have a CLI as standard, then I have one that was launched As Administrator and then another CLI that runs as a different user, a user that has elevated privileges in the domain. I have a sudo like function I can use once the tab starts but that seems to fail. I thought using a GUID that correlates to Admin or the domain admin type account but that does not seem to work.

Proposed technical implementation details (optional)

Include an option to run elevated or provide a credential object in the profile

{

"acrylicOpacity" : 0.30000001192092896,

"background" : "#12456",

"backgroundImage" : "C:\users\johnk\Pictures\powershell-wmi1.jpg",

"backgroundImageOpacity" : 0.34999999403953552,

"closeOnExit" : true,

"colorScheme" : "Campbell",

"commandline" : "powershell.exe",

"AsAdmin": true,

"credObject" : <notsurehow to grab PSCredential but it would be my FeatureRequest",

"cursorColor" : "#FFFFFF",

"cursorShape" : "underscore",

"fontFace" : "ProFontWindows Nerd Font",

"fontSize" : 12,

"guid" : "{d5e8489d-3400-4ea9-9eb7-d723fb4f19f5}",

"historySize" : 9001,

"icon" : "ms-appdata:///roaming/powershell-wmi1.jpg",

"name" : "Windows PowerShell",

"padding" : "0, 0, 0, 0",

"snapOnInput" : true,

"startingDirectory" : "%USERPROFILE%",

"useAcrylic" : false

}
Issue 1:
Deno: v0.35.0

.d.ts file can't be compiled when it is executed from CLI.

$ deno empty.d.ts
Compile file:///Users/keroxp/src/deno/empty.d.ts
No such file or directory (os error 2)

Import without declaration cause same error.

some.ts

import "./empty.d.ts"

$ deno some.ts
Compile file:///Users/keroxp/src/deno/some.ts
Compile file:///Users/keroxp/src/deno/empty.d.ts
No such file or directory (os error 2)

With declaration, no error.

import * as empty from "./empty.d.ts"

Issue 2:
❯❯❯ cat types.d.ts
export interface HelloWorld {}
❯❯❯ cat mod.ts
export * from "./types.d.ts";
❯❯❯ deno info mod.ts
error: Failed to get compiled source code of file:///mnt/f9/Projects/github.com/denoland/deno_registry2/types.d.ts.
Reason: No such file or directory (os error 2)

Try it out locally: $ deno cache https://git.io/JJsqz

The quick hacky fix is to forcefully emit an empty file when when tsc skips emitting the file. We know which files we are expecting to be emitted because they should map 1:1 to the input (source) files.

cc @bartlomieju
Issue 1:
I created a form without labels and tried to use the optional success/warning/error icons and noticed that they were not positioned correctly:

http://jsfiddle.net/9DSQZ/

It seems as though the positioning of these is determined by a label of 25px height being above the form input.

.has-feedback .form-control-feedback {
position: absolute;
top: 25px;
...
}

This means if we style, move or hide form labels, the icon positioning needs to be adjusted.

Issue 2:
When using the has-feedback class on a form and if the label on the form group is not specified then it does not render correctly.

<form>
<div class="form-group has-success has-feedback">
<input type="text" class="form-control" id="inputSuccess2">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
</form>

The above code renders like this.