WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
If I do the following:

$ add-apt-repository 'deb http://example.com/ubuntu precise main'
$ add-apt-repository 'deb http://example.com/ubuntu precise-updates main'

I'll see the following in the sources.list:

deb http://example.com/ubuntu precise main
deb-src http://example.com/ubuntu precise main
deb http://example.com/ubuntu precise-staging main
deb-src http://example.com/ubuntu precise-staging main

Yet, if I apply the following playbook:

# Setup dependencies

---
- hosts: localhost
user: root

tasks:
- apt_repository: repo='deb http://example.com/ubuntu precise main'
- apt_repository: repo='deb http://example.com/ubuntu precise-updates main'

then only the first deb-line is added. The output shows that ansible determines (in ...) that the second one already exists based on the url onl:

PLAY [localhost] **************************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [apt_repository repo='deb http://example.com/ubuntu precise main'] ******
changed: [localhost]

TASK: [apt_repository repo='deb http://example.com/ubuntu precise-updates main'] ***
ok: [localhost]

PLAY RECAP ********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0

Looking at packaging/apt_repository:repo_exists seems to confirm that it's only checking the url of the debline.

Issue 2:
From @abergman on November 15, 2014 15:49

Issue type: Bug report

Ansible version: 1.7.2

Component Name:

vsphere_guest module

Summary:

vm_nic option in vsphere_guest does not reconfigure the networks a VM is connected to

Steps To Reproduce:

Have an existing VM connected to "VM Network".

Run an ansible-playbook which reconfigures the VM to connect it to VM Network 2.

Expected Results:

The VM should be connected to VM Network 2.

Actual Results:

The VM is still connected to VM Network. Modifications to CPU/memory seem to work, but I am unable to use the vsphere_guest module to reconfigure a VM's networking.

Thoughts:

It looks like the entire code for adding a NIC to an existing VM is missing in vm_reconfigure, line 491.

Copied from original issue: ansible/ansible-modules-core#335
Issue 1:
Is there any way to prevent Visual Studio form auto-formatting html onto one line?

For example

<div ng-repeat="item in items"
ng-class="item.classes"
ng-init="i = $index">
</div>

Gets auto-formatted to:

<div ng-repeat="item in items" ng-class="item.classes" ng-init="i = $index">
</div>

This seems unreasonably opinionated, especially since many frameworks these days take advantage of element attributes. It's not nice to have 5+ attributes on one line and is the reason I've avoided auto-formatting my html, as much as I would REALLY like to be able to.

Issue 2:
HTML Formatting ideally should have a feature to separate attributes on new lines when using format code.

e.g.

<my-hero-list [heroes]="heroes" (selectHero)="onSelect($event)" class="nav"></my-hero-list>

When using format code should be formatted as:

<my-hero-list [heroes]="heroes"
(selectHero)="onSelect($event)"
class="nav">
</my-hero-list>
Issue 1:
when FLASK_DEBUG set to 1

debugger will report

No module named flask.flask

error

when i revert back flask version to 1.0.4, the error disappear.

I think this error is related new version.

please fix it, thank you.

Environment

Python version: 3.7.2

Flask version: 1.1.0

Issue 2:
My colleague said 'get Flask'.

I said 'Okay! ... wow, looks cool, and it installs so easily! ... and this site is even built on it—how delightful! ... and I can download the docs as a zipped HTML—how convenient! ... and... the link's broken—how sloppy!' ;-)

Since the site's supposed to be built on Flask, I thought this would be the place to report this. Please excuse me if this assumption is incorrect.

At http://flask.pocoo.org/, which Google took me to, clicking either of the latter links in 'Read the documentation or download as PDF and zipped HTML' took me to http://flask.pocoo.org/docs/flask-docs.pdf and http://flask.pocoo.org/docs/flask-docs.zip, respectively. Both 404ed.
Issue 1:
Hi guys,

First of all, thanks for the lib. It's very very handy and useful.

I found an issue about loading images from web. There are some URLs when I hit them with Glide then it didn't show the image. For example:

http://2.bp.blogspot.com/_wOtGwObrPyI/SgbEunh78vI/AAAAAAAAAx4/UAk7SuQkUu8/s320/s%C3%BCt%C3%A9s+1146.jpg

The URL is UTF-8 encoded.

Usage of Glide:

Glide.with(this.context).load(currentRecipe.getRecipeThumbnailUrl()).into(categoryIcon);

A part of the layout of the ImageView:

<ImageView
android:id="@+id/categoryPic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

Device: Xiaomi Redmi 1S

Android version: 4.4.4

Glide version: 3.7.0

UPDATE:

I found this entry in the console:

SkImageDecoder::Factory returned null

I've searched around but hadn't found any useful solution.

Thanks for any help! :)

Issue 2:
Noticed that some of the URIs we are trying to load that contain a % sign in the filename end up not getting loaded, the exception being:

java.io.FileNotFoundException: No such file or directory

Example URI name:

file:///storage/emulated/0/Tumblr/https%3A%2F%2F40.media.tumblr.com%2Fe14acf4122fcff3ccd312b606e4edd6d%2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg

However, if the same uri was renamed to be

file:///storage/emulated/0/Tumblr/https3A2F2F40.media.tumblr.com2Fe14acf4122fcff3ccd312b606e4edd6d2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg

Glide has no problem loading the image.

Is this expected or no? Any other symbols to watch out for in the filepath? Thanks!
Issue 1:
I wonder if you guys know how we can test a custom server with express using supertest

Issue 2:
I didn't find an integration test with a custom server, I think it would be useful to add that. I'd like to see in particular how the babel config should be set up to avoid transpiling the server files as they aren't transpiled when started the normal way with "start": "node server", but they will if I simply require the server file from within Jest.
Issue 1:
I tried using the @types/lodash package and had problems.

Compiled with tsc v2.1.1

@bczengel , @Sheeo

received the following errors:

node_modules/@types/lodash/index.d.ts(11444,21): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,22): error TS1005: ';' expected.
node_modules/@types/lodash/index.d.ts(11444,23): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,33): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,34): error TS1005: ')' expected.
node_modules/@types/lodash/index.d.ts(11444,35): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,37): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(19441,1): error TS1128: Declaration or statement expected.
~$ tsc -v
Version 2.1.1

Issue 2:
[ x] I tried using the @types/lodash package and had problems.

Using @types/lodash 4.14.50 tslint (Using the default tsconfig from angular-cli) runs without problems, when updated to version @types/lodash 4.14.51 I get consistently the following tslint error:

`

node_modules/tslint/lib/runner.js:91

throw new Error(messages.join("\n"));

^

node_modules/@types/lodash/index.d.ts:245:25: Cannot find name 'Partial'.

at Runner.run (/opt/atlassian/pipelines/agent/build/node_modules/tslint/lib/runner.js:91:27)

at Object. (/opt/atlassian/pipelines/agent/build/node_modules/tslint/lib/tslint-cli.js:138:6)

at Module._compile (module.js:570:32)

at Object.Module._extensions..js (module.js:579:10)

at Module.load (module.js:487:32)

at tryModuleLoad (module.js:446:12)

at Function.Module._load (module.js:438:3)

at Module.require (module.js:497:17)

at require (internal/module.js:20:19)

at Object. (/opt/atlassian/pipelines/agent/build/node_modules/tslint/bin/tslint:3:1)

`
Issue 1:
I have tried opening .php and .html files from a NAS drive and while Atom recognizes the file, its type, and sets the syntax checker accordingly, the contents of the file do not display.

Issue 2:
OS: Windows 7

Atom Version: 0.95.0-3f0640f

Hosting files on a network drive (i.e. \network\private\myfiles) and opening files in atom does not show anything. Files list on left pane and a tab opens up in editor, but tab is empty and shows nothing.

Additional Note: I tested using a mapped drive and it worked. It appears there's an issue running atom in Windows and trying to open files on a network path.
Issue 1:
Describe the bug

content-encoding header is ignored if content-length is not set on response. For connect compression middleware, the returned response appears to have Transfer-Encoding, content-encoding, but no content-length header, so axios request returns uncompressed value.

I believe content-length is an optional header?

Related to commit: a3d9017

To Reproduce

No response

Code snippet

const responseLength = +res.headers['content-length'];
...
// if no content, but headers still say that it is encoded,
// remove the header not confuse downstream operations
if ((!responseLength || res.statusCode === 204) && res.headers['content-encoding']) {
delete res.headers['content-encoding'];
}

Expected behavior

This was working in 1.2.x

Axios Version

1.2.0

Adapter Version

HTTP

Browser

No response

Browser Version

No response

Node.js Version

16

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response

Issue 2:
Describe the bug

`

var axios = require('axios');

var data = JSON.stringify({

"production_status": "",

"package_status": [],

"extra_status_reason": [],

"page": 1,

"limit": 1

});

var config = {

method: 'post',

url: 'https://example.com/',

headers: {

'Authorization': 'Bearer token',

},

data: {

"production_status": "",

"package_status": [],

"extra_status_reason": [],

"page": 1,

"limit": 1

}

};

axios(config)

.then(function (response) {

console.log(response.data);

})

.catch(function (error) {

console.log(error);

});

`

When i send API this response

I want respose must be json like that

To Reproduce

No response

Code snippet

No response

Expected behavior

No response

Axios Version

1.2.0

Adapter Version

No response

Browser

No response

Browser Version

No response

Node.js Version

14.20.1

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version (if applicable): 0.5.2661.0

Steps to reproduce

Create three tabs

Use the CTRL+ALT+{1,2,3} short cut to quickly jump between tabs in random order

I've had the problem occur under more normal usage, but the above steps reproduce it consistently.

Expected behavior

Tabs continue to change and apply focus.

Actual behavior

At least one tab will forget it's focused pane, causing:

a) The tab's title to go blank

b) The keyboard bindings to stop responding

Clicking inside the tab's terminal restores the focus, title, and binding responsiveness.

Issue 2:
Environment

Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 0.6.2911.0

Any other software?
Windows vim 8.1.1006

Steps to reproduce

Open a file in vim and type Ctrl+b repeatedly. The 3 screenshots below are each after typing Ctrl+b once.

Expected behavior

No weird blank diagonals while using vim.

Actual behavior
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.3

Operating System version: MAC_OS

Java version: 1.8.0_181

Steps to reproduce this issue

URL.getColonSeparatedKey() 正常结果应该是{interface}:[version]:[group]

在获取{interface}时，是直接通过INTERFACE_KEY从parameters中获取的，在registry.simplified=true 时：

final URL registeredProviderUrl = getRegisteredProviderUrl(providerUrl, registryUrl);

registeredProviderUrl 的 parameters中是没有INTERFACE_KEY的。

导致NacosRegistry在获取serviceName时不完整。

在append时对INTERFACE_KEY进行特殊处理可以解决

String parameterValue = INTERFACE_KEY.equals(parameterName)?getServiceInterface():this.getParameter(parameterName);

`

public String getColonSeparatedKey() {
StringBuilder serviceNameBuilder = new StringBuilder();
append(serviceNameBuilder, INTERFACE_KEY, true);
append(serviceNameBuilder, VERSION_KEY, false);
append(serviceNameBuilder, GROUP_KEY, false);
return serviceNameBuilder.toString();
}

private void append(StringBuilder target, String parameterName, boolean first) {
String parameterValue = INTERFACE_KEY.equals(parameterName)?getServiceInterface():this.getParameter(parameterName);
if (!StringUtils.isBlank(parameterValue)) {
if (!first) {
target.append(":");
}
target.append(parameterValue);
} else {
target.append(":");
}
}`

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.8

Operating System version: deepin 15.11

Java version: 1.8.0_261

Steps to reproduce this issue

no step

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

Involved documents

1.dubbo-common/src/test/java/org/apache/dubbo/common/config/configcenter/ConfigChangedEventTest.java

2.dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/MockRegistryFactory.java

Actual Result

What actually happens?

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

Just put your stack trace here!
Issue 1:
Flask's automatic redirects to add a trailing slash don't appear to work for the root view. This isn't noticeable when the application is mounted at the root of a domain, but mine is mounted in a subdirectory using mod-wsgi:

WSGIScriptAlias /myapp /path/to/myapp/modwsgi/stub.py

The result is that when someone visits http://mysite/myapp, none of the application's relative urls work. (This is expected if the trailing slash is missing, because a relative url like static/image.png means something different depending on whether the current page is http://foo/bar or http://foo/bar/)

Issue 2:
Given the following HTTP request from client

GET /somescript HTTP/1.1

Host: www.example.com

SCRIPT_NAME='/somescript'

PATH_INFO=''

MapAdapter.match should raise a RequestRedirect to http://www.example.com/somescript/ other than take it as if client issued a GET request to http://www.example.com/somescript/
Issue 1:
How to reproduce this issue:

Apply transform: scale(0.8) style on a <webview> element, and then resize the screen. The webview contents take up an area smaller than the expected size based on the CSS transform. The issue also also occurs when a script changes the style attribute of the webview or its ancestor elements.

Example:

For this example I used a webview with style="height: 100%; width: 100%;", but I've experimented with webviews with different style configurations and the issue seems to occur regardless of how the page is set up.

Before scaling:

After scaling, before resize:

After resize:

Issue 2:
This is what's happening:

http://github.com/pakastin/electron-bug
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Ubuntu 18.04 Bionic Beaver

AMD Phenom x4 II 965

TensorFlow installed from (source or binary): binary; docker image tensorflow-1.8.0-gpu-py3

TensorFlow version (use command below): 1.18.0

Python version: 3.5

Bazel version (if compiling from source):N/A

GCC/Compiler version (if compiling from source):N/A

CUDA/cuDNN version:

CUDA 9.0

CuDNN 7.0.5

GPU model and memory:

Geforce GTX 760 (compute capability 3.0) 2GB

Exact command to reproduce:

import tensorflow as tf on tensorflow-gpu on system without AVX

Describe the problem

Jupyter Kernel crashes when doing import tensorflow as tfusing a system that does not have AVX.

Similarly if i enter a python shell and do import tensorflow as tf i get an Illegal Instruction (core dumped) error and it exits the shell.

I have confirmed this is due to the AVX instruction because when i use the docker image Tensorflow-1.15.0-gpu-py3 I am able to successfully import tensorflow.

Unfortunately, tensorflow 1.15.0 requires compute capability 3.5 or higher which is extremely frusterating because i cannot find a build of tensorflow online that supports compute capaibility 3.0 but does not use AVX instructions.

Why do i need a CPU that supports AVX just to import tensorflow when i dont actually need the AVX instruction since i have a supported GPU (at least it is supported on all tensorflow versions other than 1.15.0).

Is there a way around this or do i need to build tensorflow from source to not use AVX but to allow compute capability 3.0? I tried using tensorflow-gpu-1.18.0-devel-py to build a new version from source but it did not even ask me what compute capabilities i wanted to build for and so i just let it build but it took over 24 hours and it was still going.

Can someone either provide a tensorflow-gpu release with CUDA 9.0 and CuDNN 7 support that does not use AVX and supports compute capability 3.0 or at least tell me the best way to obtain such a build (since apparently building using the docker-devel image wont work).

Issue 2:
As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:

ImportError: DLL load failed:

A crash with return code 132

Our recommendation is to build TF from sources on these systems.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu/windows/macos

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.6 and up

Python version: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: any

GPU model and memory: any

Exact command to reproduce: python -c "import tensorflow as tf"
Issue 1:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.5-5441b09

Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:275512)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:4368)

Component stack: in bi

in div

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

Issue 2:
Please do not remove the text below this line

DevTools version: 4.0.2-2bcc6c6

Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)

at Ai (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:274200)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in Ai

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ua

in le

in ve

in ko

in Fl
Issue 1:
Migrated issue, originally created by Priit Laes (@plaes)

Postgres full text search with query strings that are not in proper format fails. Example from documentation:

Following SQLAlchemy code (taken from "Full Text Search" section under PostgreSQL dialect docs):

select([sometable.c.text.match("search string")])

should emit following SQL:

SELECT text @@ to_tsquery('search string') FROM table

But when executing that (using real column name and table name) ends up with:

ERROR: syntax error in tsquery: "search string"

There's plainto_tsquery function that should be used instead, when query string is not in proper format:

SELECT text @@ plainto_tsquery('search string') FROM table

My idea would be to use plainto_tsquery with column.match and introduce column.match_tsquery which ends up emitting to_tsquery SQL.

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

I recently realized some implementation details of to_tsquery that are incompatible with the docs I drafted and how sqlalchemy integrates it.

Not sure how to handle this.

I based the docs/examples on existing tests and text. So we have this as the first bit of "Full Text Search" ( http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html#full-text-search )

select([sometable.c.text.match("search string")])
SELECT text @@ to_tsquery('search string') FROM table

well, if we put this into psql...

badsql=> select to_tsquery('search string') ;
ERROR: syntax error in tsquery: "search string"

that's because tsquery has a rigid enforcement of input. text must either be tokenized and joined with acceptable operators :

select to_tsquery('cat & rat');

be quoted :

select to_tsquery('''search string''');

or use the alternate function

select plainto_tsquery('search string');

So, these are acceptable:

select to_tsquery('search & string');
select to_tsquery('''search string''');
select plainto_tsquery('search string');

but this is not:

select to_tsquery('search string');

I'm not sure the best way to handle this nuance in the docs.

As far as the implementation detail goes...

this creates issues with Column.match, because that generates (invalid) sql like this:

table.column @@ to_tsquery('search string')

not valid sql like:

table.column @@ to_tsquery('''search string''')
table.column @@ plainto_tsquery('search string')

This is an annoying implementation detail , but the content/type of string will affect the function or format t search on.

i thought about just regexing this into submission, but the multitude of possible operators and edge cases suggests that the text would need to be parsed for tokenization instead -- otherwise throwing in a bit of text that has an operator will function as a real operator and probably trigger an invalid syntax.

i think the easiest scenario would be to replace match's to_tsquery with plainto_tsquery
Issue 1:
const camelCase = (s: string) => s.charAt(0).toUpperCase().concat(s.slice(1));
// error: The module's source code could not be parsed: Expected ',', got ':' at <file-name>

const camelCase = (s) => s.charAt(0).toUpperCase().concat(s.slice(1));
OK

Issue 2:
From #929 and #1226, I believe that the intended behaviour is that extension-less shebang scripts are seen as TypeScript files, but that does not seems to be the case?

Minimal example:

#!/usr/bin/env -S deno run --allow-all
// filename: hi
interface Foo {
bar: string;
}
console.log("Hi");

Running ./hi or deno run hi yields error: Unexpected token `interface`.