WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
From @slash3g on 2016-04-10T16:37:22Z

ISSUE TYPE

Bug Report

COMPONENT NAME

lxc_container

ANSIBLE VERSION

ansible 2.0.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

(bug still present in devel branch)

CONFIGURATION

Default Ansible configuration.

OS / ENVIRONMENT

N/A

SUMMARY

lxc_container handles container configuration via the container_configuration parameter. Unfortunately, the logic behind the configuration update is broken, as it duplicates the key and never replaces old values. Morever, when the configuration file contains duplicated keys, the script can fail to make any changes.

STEPS TO REPRODUCE

Exec the following playbook

---
- hosts: myhost
tasks:
- name: fist config update
lxc_container:
name: mycontainer
container_config:
- "lxc.start.auto = 0"
- name: second config update
lxc_container:
name: mycontainer
container_config:
- "lxc.start.auto = 1"

EXPECTED RESULTS

$ grep start mycontainer/config
lxc.start.auto = 1

ACTUAL RESULTS

$ grep start mycontainer/config
lxc.start.auto = 0
lxc.start.auto = 1

Copied from original issue: ansible/ansible-modules-extras#1998

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

Conditionals

ANSIBLE VERSION

ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]

CONFIGURATION

OS / ENVIRONMENT

Have discovered this with Ubuntu 17.04 managing Centos 7.3.

Reproduced for this report with Ubuntu 17.04 targeting itself.

SUMMARY

is defined works as expected when the variable it is used against is not defined.

However, when the variable exists, but depends on an undefined variable, it fails, instead of returning false.

STEPS TO REPRODUCE

Will upload a minimal test case role.

Run:

ansible-playbook -i inventory playbook.yml

EXPECTED RESULTS

The role def has 2 conditional steps. Since the variables are (directly or indirectly) not defined, they should both be skipped.

ACTUAL RESULTS

The 2nd task makes the playbook fail.

TASK [def : Problematic step.] **********************************************************************************************************************************************************************
fatal: [thismachine]: FAILED! => {"failed": true, "msg": "The conditional check 'dependent is defined' failed. The error was: error while evaluating conditional (dependent is defined): I use {{ variable }}.: 'variable' is undefined\n\nThe error appears to have been in '/home/xalkina/tmp/defined/roles/def/tasks/main.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Problematic step.\n ^ here\n"}
to retry, use: --limit @/home/xalkina/tmp/defined/playbook.retry
Issue 1:
[ x ] I tried using the @types/jquery package and had problems.

[ x ] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript (3.1.6)

[ x ] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

[ x ] Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @leonard-thieu @borisyankov @Steve-Fenton @Diullei @tasoili @jasonswearingen @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @JoshStrobl @johnnyreilly @DickvdBrink @King2500 @terrymun

I'm getting multiple errors when building a project that depends on @types/jquery@3.3.22, using TypeScript 3.1.6:

node_modules/@types/jquery/JQuery.d.ts:6356:141 - error TS2344: Type 'TReturn' does not satisfy the constraint 'Node'.

6356 map<TReturn>(callback: (this: TElement, index: number, domElement: TElement) => JQuery.TypeOrArray<TReturn> | null | undefined): JQuery<TReturn>;
~~~~~~~

node_modules/@types/jquery/JQueryStatic.d.ts:172:27 - error TS2344: Type 'T' does not satisfy the constraint 'Node'.

172 <T>(selection: JQuery<T>): JQuery<T>;
~

node_modules/@types/jquery/JQueryStatic.d.ts:172:39 - error TS2344: Type 'T' does not satisfy the constraint 'Node'.

172 <T>(selection: JQuery<T>): JQuery<T>;
~

node_modules/@types/jquery/JQueryStatic.d.ts:192:93 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'.
192 <TElement = HTMLElement>(callback: ((this: Document, $: JQueryStatic) => void)): JQuery<TElement>;
~~~~~~~
node_modules/@types/jquery/JQueryStatic.d.ts:199:55 - error TS2344: Type 'T' does not satisfy the constraint 'Node'.
Type 'PlainObject<any>' is not assignable to type 'Node'.
Property 'baseURI' is missing in type 'PlainObject<any>'.

199 <T extends JQuery.PlainObject>(object: T): JQuery<T>;
~

node_modules/@types/jquery/JQueryStatic.d.ts:206:40 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'.

206 <TElement = HTMLElement>(): JQuery<TElement>;
~~~~~~~~

Issue 2:
https://github.com/borisyankov/DefinitelyTyped/blob/master/pickadate/pickadate.d.ts

https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery.pickadate/jquery.pickadate.d.ts
Issue 1:
Currently, GLTFParser and constants in GLTFLoader are scoped and cannot be used in user-land.

However, sometimes it is needed.

Usecases:

glTF-ish file may need special parsing using modified(extended) GLTFParser.

glTF models may be supplied in JSON or JSONP format from a WebApp API rather than files and need GLTFParser directly.

Also, WEBGL_CONSTANTS and other constants would be useful if available under THREE or somewhere

What I would like to have is:

THREE.GLTFParser

and maybe:

gltfLoaderInstance.gltfParser

THREE.WEBGL_CONSTANTS.FLOAT = 5126 and so on

Issue 2:
Description of the problem

If you have multiple threejs objects on a page that each use LoadingManager only one of the objects will fire the LoadManager onLoad call back.

The problem is in the FileLoader in its load call. In the broken case all we do in the FileLoader load is:

if ( loading[ url ] !== undefined ) {

loading[ url ].push( {

onLoad: onLoad,
onProgress: onProgress,
onError: onError

} );

return;

}

The above code causes a return without ever telling the different manager itemStart. Not exactly sure how you want to fix but the above needs to identify if different load requests come from different managers and if it is the first time for a particular manager trigger its itemStart then when the file is done we also need to trigger all the different managers itemEnd.

Three.js version

Dev

r103

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

example html to reproduce problem

<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/103/three.js"></script>
<style>
#test1 {
width: 200px;
height: 200px;
}
#test2 {
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div id="test1"></div>
<div id="test2"></div>
</body>
<script>
class word {
constructor(target) {
this.scene = new THREE.Scene();
this.camera = new THREE.PerspectiveCamera( 75,
target.offsetWidth/target.offsetHeight, 0.1, 1000 );
this.camera.position.z = 100;
this.renderer = new THREE.WebGLRenderer({antialias:true});
this.renderer.setSize( target.offsetWidth, target.offsetHeight );
target.appendChild( this.renderer.domElement );

this.scene.background = new THREE.Color(0xFFFFFF);
var light = new THREE.AmbientLight(0xFFFFFF);
this.scene.add(light);

var manager = new THREE.LoadingManager();
manager.onLoad = this.draw.bind(this);
new THREE.FontLoader(manager).load("https://threejs.org/examples/fonts/optimer_bold.typeface.json",this.savefont.bind(this));
}

savefont(font) {
this.font = font;
}

draw() {
var geometry = new THREE.TextGeometry("Test",{
font: this.font,
size: 50,
height: 1,
curveSegments: 4
});
geometry.center();
var material = new THREE.MeshLambertMaterial( { color: 0x0000EE } );
var word = new THREE.Mesh( geometry, material );
this.scene.add( word );
this.render();
}

render() {
requestAnimationFrame( this.render.bind(this) );
this.renderer.render(this.scene,this.camera);
}
}
new word(document.getElementById("test1"));
new word(document.getElementById("test2"));
</script>
</html>
Issue 1:
When using CircularProgressIndicator as a loading screen, Google Play console pre-launch report complains "This item may not have a label readable by screen readers.".

It's not clear from the documentation how to force Semantics for CircularProgressIndicator or to have some hidden label to pass such accessibility tests.

Steps to Reproduce

return new Scaffold(
body: new Center(
child: new CircularProgressIndicator(),
),

);

Result

[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
• Flutter version 0.9.4 at /home/flutter/flutter_v0.9.4-beta
• Framework revision f37c235c32 (4 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /home/android/sdk
• Java binary at: /home/android/src/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] Android Studio (version 3.1)
• Android Studio at /home/android/src/android-studio
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Issue 2:
Render invalid in Thai
Issue 1:
Bug report

Bug summary

Artifacts appear when plotting periodic data with discontinuities, i.e. something like x mod 1.0

The bug appears at when render resolution is relatively small comparing to the real resolution of the data (downsampling problem?).

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

xx, yy = np.meshgrid(np.linspace(-5, 5, 201), np.linspace(-5, 5, 201))
psi = xx % 1.0

plt.figure()
plt.imshow(psi, cmap="twilight")
plt.savefig("small.png", dpi=100)
plt.savefig("large.png", dpi=200)

Outcome

(large.png, small.png)

Matplotlib version

The issue is repeatable locally and in CoLab:

Operating system: Linux

Matplotlib version: 3.3.3, 3.2.2

Matplotlib backend (): TkAgg, ipykernel.pylab.backend_inline

Python version: 3.8.5, 3.7

Issue 2:
After updating matplotlib version from 1.3.1 to 2.0.2, when I want to use plot_trisurf to generate a TIN by 3d-points, I got an incomprehensible result.

I just want to know the difference of plot_trisurf between matplotlib 2.0.2 and matplotlib 1.3.1. And how i can get the similar result?

the details about this issue are referred to https://stackoverflow.com/questions/44244297/plot-trisurf-of-matplotlib-2-0-2
Issue 1:
Something like gofmt is really useful.

Issue 2:
It would be really nice to have the pretty printer be good enough to use it as a code formatter, ala gofmt. It still has some issues (I've been working on it), but it is reasonably close to being usable in that way.

But, the commandline invocation is kind of unwieldy (and feels redundant). It seems like --pretty should just pretty print, and other stuff should be handled secondarily, ie with:

--pretty-expanded

--pretty-typed

--pretty-expanded-identified

--pretty-identified

Alternatively, perhaps it would make more sense to actually split it into a separate binary, called rustfmt (or, in longer-keyword land, rustformat).

Thoughts?
Issue 1:
Daniel Fernández opened SPR-8928 and commented

org.springframework.context.support.PropertySourcesPlaceholderConfigurer is overriding the "postProcessBeanFactory" method defined in org.springframework.beans.factory.config.PropertyResourceConfigurer in order to register the required chain of PropertySource objects that will be use for resolving properties. This makes sense and is OK.

But the problem is that the PropertySource object for the local properties (those coming from the "location" attribute and also from the "properties" property) is being created like this:

PropertySource<?> localPropertySource =

new PropertiesPropertySource(LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME, this.mergeProperties());

...whereas in the original "postProcessBeanFactory" method in PropertyResourceConfigurer these merged properties are post-processed by executing the "convertProperties" method:

Properties mergedProps = mergeProperties();

// Convert the merged properties, if necessary.

convertProperties(mergedProps);

// Let the subclass process the properties.

processProperties(beanFactory, mergedProps);

This means that the new PropertySourcesPlaceholderConfigurer class never calls "convertProperties", and so disables one of the extension mechanisms of the old pre-3.1 PropertyPlaceholderConfigurer class: overriding the "convertProperty(...)" and "convertPropertyValue(...)" methods.

I am jasypt's author http://www.jasypt.org and I am creating a Spring3.1-compatible EncryptedPropertySourcesPlaceholderConfigurer, but this bug doesn't allow me to transparently apply property decryption at the "convertProperty" method :-(

Affects: 3.1 GA

Issue Links:

#18574 convertPropertyValue (for reading encrypted values) not working ("is duplicated by")

#13603 Allow the use of custom PropertySource annotations in @Configuration classes

SEC-3123 Encrypted property value support

#15294 Add encryption support for PropertyPlaceholderConfigurer

#17236 Backport encrypted property functionality from spring-cloud-config environment work

8 votes, 18 watchers

Issue 2:
Marten Deinum opened SPR-4238 and commented

The prop tag doesn´t support a value attribute. It would be nice if it did so we can use the short hand notation. There was some discussion about this in this thread. http://forum.springframework.org/showthread.php?p=155337#post155337

Issue Links:

#8917 less verbose xml binding of java.lang.Properties ("duplicates")
Issue 1:
Currently, when exporting markdown to html, all html special characters are escaped:

using Markdown
a = Markdown.parse("This is *important* text with <i>html</i> in it");
# parsed as
Markdown.Paragraph(Any["This is ", Markdown.Italic(Any["important"]), " text with <i>html</i> in it"])
# then exporting to html
Markdown.html(a)
# output below
"<p>This is <em>important</em> text with &lt;i&gt;html&lt;/i&gt; in it</p>\n"

and there is no way of getting such an output:

<p>This is <em>important</em> text with <i>html</i> in it</p>

So, this issue is a feature request.

It could even be the default behavior for all markdown blocks except code block.

(similar to #34042)

Issue 2:
I noticed Markdown.parse doesn't parse HTML tags properly while writing docs with Documenter.jl (xref: JuliaDocs/Documenter.jl#176).

Most Markdown parsers support this feature, so I think Base.Markdown should do as well.

For example, two consecutive hyphens are recognized as an em dash as follows:

julia> Markdown.parse("<!-- comment -->")
<!– comment –>

CC: @MichaelHatherly

julia> versioninfo()
Julia Version 0.5.0-rc1+0
Commit cede539* (2016-08-04 08:48 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
Issue 1:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc

Issue 2:
I get three warnings when React DevTools is installed in Chrome. Other people have reported this but I have not seen a good solution. (I dont use an ad blocker)

DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/contentScript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Google Chrome Version 86.0.4240.111 (Official Build) (64-bit)

React version:

"react": "^16.13.1",

"react-dom": "^16.13.1",

"react-router-dom": "^5.2.0",

"react-scripts": "3.4.3"

Also using Apollo Client

The current behavior

The above warnings are generated on every render for every page.

The expected behavior

No warnings

Files

----index.js file ----

import React from "react";

import { render } from "react-dom";

import { BrowserRouter } from "react-router-dom";

import {

ApolloClient,

InMemoryCache,

createHttpLink,

ApolloProvider,

} from "@apollo/client";

// Top level view. Does the setup of the Apollo Provider and renders the App

import App from "./App";

const link = createHttpLink({

uri: "http://localhost:4000",

headers: { authorization: localStorage.getItem("token") },

});

const cache = new InMemoryCache();

const client = new ApolloClient({

link: link,

cache: cache,

});

render( <ApolloProvider client={client}> <BrowserRouter> <div> <App /> </div> </BrowserRouter> </ApolloProvider>,

document.getElementById("root")

);
Issue 1:
Source: https://discord.com/channels/684898665143206084/684898665151594506/1022408024725405698

The following code throws an error in Deno versions 1.17 and upwards:

const { instance, module } = await WebAssembly.instantiateStreaming(
fetch("https://wpt.live/wasm/incrementer.wasm"),
);

const increment = instance.exports.increment as (input: number) => number;
console.log(increment(41));

deno run -A wasm.ts

Deno 1.16:

42

Deno 1.17:

error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
at async Object.pull (deno:ext/fetch/26_fetch.js:104:24)

Deno 1.25:

error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
at async Object.pull (deno:ext/fetch/26_fetch.js:119:24)

Issue 2:
If I install a program

deno install catj https://deno.land/std/examples/catjson.ts --allow-read

I want to be able to use flags like --reload or -L=info with the newly installed program:

catj --reload

^-- does not work as intended.
Issue 1:
Calling .popover('hide') on an element does nothing in IE8, and works fine in other browsers. Here's a demo: http://jsfiddle.net/QaHkV/1/

This also didn't work when I tried it locally with all the shims/hacks suggested for IE8.

Issue 2:
Using toggle popover hidden and ok. When using hide command, popover is hidden, but button inside popover still trigering mouse over.

http://jsfiddle.net/conx/n8FYQ/4/
Issue 1:
I tried using the @types/superagent@3.5.5 package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @NicoZelaya @mxl @paplorinc

I'm using superagent in the browser environment (not Node). Importing superagent loads type definitions @types/superagent which unconditionally imports @types/node which injects global type definitions for Node environment. After that, the TypeScript compiler tells me that setTimeout returns NodeJS.Timer while I expect it to return number because there should be no NodeJS in the browser.

I'm not using the latest tsc because I'm building a React+TypeScript app via https://github.com/zhenwenc/create-react-app https://www.npmjs.com/package/zc-react-scripts –

typescript@2.4.2 is bundled with the latest version zc-react-scripts@1.1.1 at the time of writing.

Issue 2:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @GlenCFL

Since different emitters can have different 'emissions', having a global interface, especially one defining 'catch-all' string index is not helpful at all. Adding Emissions as a generic parameter to Emitter itself would work much better. Example:

/**
* Utility class to be used when implementing event-based APIs that allows
* for handlers registered via ::on to be invoked with calls to ::emit.
*/
export class Emitter<Emissions = { [key: string]: any }> implements DisposableLike {
/** Construct an emitter. */
constructor();

/** Clear out any existing subscribers. */
clear(): void;

/** Unsubscribe all handlers. */
dispose(): boolean;

// Event Subscription
/** Registers a handler to be invoked whenever the given event is emitted. */
on<T extends keyof Emissions>(eventName: T, handler: (value?: Emissions[T]) => void):
Disposable;

/**
* Register the given handler function to be invoked the next time an event
* with the given name is emitted via ::emit.
*/
once<T extends keyof Emissions>(eventName: T, handler: (value?: Emissions[T]) => void):
Disposable;

/**
* Register the given handler function to be invoked before all other
* handlers existing at the time of subscription whenever events by the
* given name are emitted via ::emit.
*/
preempt<T extends keyof Emissions>(eventName: T, handler: (value?: Emissions[T]) => void):
Disposable;

// Event Emission
/** Invoke the handlers registered via ::on for the given event name. */
emit<T extends keyof Emissions>(eventName: T, value?: Emissions[T]): void;
}