WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Issue Type:

Bug Report

Ansible Version:

v1.6.7+, devel

Environment:

Debian, Ubuntu

Summary:

Recent security fix prevents me from using Jinja2 {% if %}{% else %}{% endif %} syntax in a task. This prevents me from creating more flexible roles that can be easily customized using inventory lists. Basically 80% of my playbook is based around this... :-(

Steps To Reproduce:

---
# An example play which lets you customize the directory names using variables from inventory
- hosts: all
vars:
dir_list:
- name: 'directory'
prefix: 'my_'
- name: 'other_directory'
tasks:
- name: Create example directories
file: state=directory
{% if item.prefix is defined and item.prefix %}
dest=/tmp/{{ item.prefix + item.name }}
{% else %}
dest=/tmp/{{ item.name }}
{% endif %}
with_items: dir_list

Expected Results:

Two directories are created, /tmp/my_directory/ and /tmp/other_directory/.

Actual Results:

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [winterfell]

TASK: [Create example directories] ********************************************
fatal: [winterfell] => a duplicate parameter was found in the argument string (dest)

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/home/drybjed/test_dest.retry

winterfell : ok=1 changed=0 unreachable=1 failed=0

Issue 2:
Hi! Let's have a playbook like these:

- hosts: all
sudo: yes
tasks:
- name: Reproduce items bug
yum: name=nagios-plugins-{{ item }} state=present
with_items:
- dhcp
- disc
- dummy

and if you run this playbook, you can see an error:

failed: [mylovelyhost] => (item=dhcp,disc,dummy) => {"changed": false, "failed": true, "item": "dhcp,disc,dummy", "rc": 0, "results": ["nagios-plugins-dhcp-1.4.16-10.fc20.x86_64 providing nagios-plugins-dhcp is already installed"]}

msg: No Package matching 'disc' found available, installed or updated

So, string concatenation with {{ item }} variable in with_items cycle will only work for the first step. For next steps only pure {{ item }} will sended.
Issue 1:
The current web profiler displays all the dispatched listeners ordered by its executions. Some times I need to attach a listener in a specific priority in order to be dispatched before or after another listener. Would be good if the web profiler displays the listener priorities also. That way I don't need to inspect the source code of that listener to see which priority was assigned to it.

Issue 2:
it would be really useful if we could have the weight of listeners in the profiler panel, eks:

Event name
Listener
Weight

kernel.request
ErrorsLoggerListener::injectLogger
xxx
Issue 1:
Hello folks, I have a really irritating bug in Visual Studio 2015 Update 2 using TypeScript. The auto complete dialog in combination with generics works a little bit fuzzy. It treats it like a greater than comparison. Look at the code below.

TypeScript Version:

1.8.30.0

Code

// Function declaration
function invoke<T>(methodName: string, ...args: any[]) {
}
// Call the function, Type first letter of the generic T.
invoke<M
// Auto complete window pops up, which is expected.
// I choose Model from the auto complete window using "enter".
invoke < Model
// Notice the inserted spaces, the compiler thinks its a greater than comparison. While its actually a generic.

Expected behavior:

// I expect Model to be inserted without spaces.
this.invoke<Model

Actual behavior:

// I actually inserts it with spaces.
this.invoke < Model

Issue 2:
Input > key on a following code.

<T

expected:

<T>

actual:

<TemplateStringsArray>

experience:

// writing an arrow function with generics
let f = <TemplateStringsArray>
Issue 1:
I'm observing the following behaviour with workspace() on julia v0.3.0+6 on Ubuntu 14.04

julia> eval(parse("1+1"))
2

julia> workspace()

julia> eval(parse("1+1"))
ERROR: eval not defined

I opened a thread on julia-users and was advised the behaviour was probably a bug and to report it here.

-Colin

Issue 2:
julia> eval
eval

julia> workspace()

julia> eval
ERROR: eval not defined

julia> LastMain.eval
eval

julia> versioninfo()
Julia Version 0.3.0
Commit 7681878 (2014-08-20 20:43 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Issue 1:
If I have created a geometry and then I update all vertex coordinates over time.

What´s the best way to get those changes to show in my mesh?

(trying to do vertex animation)

Issue 2:
Moved the discussion from #5728 to a separate issue.

The idea is to add THREE.Image as an additional class which is used by THREE.Texture. An instance of THREE.Image is directly mapped to an instance of WebGLTexture (the raw WebGL texture object). That means multiple textures can refer to the same instance of THREE.Image and not causing redundant texture uploads anymore (related issues #5728, #5821, #7223)

Ideally, THREE.Image will make the handling of image objects transparent (e.g. the difference in HTMLImageElement, ImageBitmap or the image stub in DataTexture is encapsulated in this new class).
Issue 1:
The Codecov number on https://github.com/scipy/scipy is 76%. There are a number of issues with this:

setup.py files are measured, they should be excluded

test_* files should probably be excluded

There may be other random files that should be excluded, e.g. scipy/special/_precompute/*.

The number is low because of parts of vendored C and Fortran libraries that we simply don't use but did not remove. Not sure what the best solution is there, perhaps more trouble than it's worth. Would be good to have a Python-only coverage number though, to see where there are actual gaps.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1262 on 2010-08-13 by trac user pozharski, assigned to @pv.

The problem is clear from the summary. I get

scipy.stats.maxwell.ppf(0.2499999999999999) = 1.1011507176793141

scipy.stats.maxwell.ppf(0.25) = 0.0

scipy.stats.maxwell.ppf(0.2500000000000001) = 1.1011507176793145

I looked in the distributions.py and scipy.stats.maxwell.ppf is calculated used scipy.special.gammaincinv, which shows the same behavior of returning zero when the argument is exactly 0.25.

I found this bug report

[http://projects.scipy.org/scipy/ticket/299]

which says

''This should be fixed in a32d434. I use false position to find the root of gammainc(a,x)-y=0 for y < 0.25.

''

This led me to scipy/special/c_misc/gammaincinv.c which produces the artifact. With y=0.25 you get fhi=0.0 which results in false_position returning FSOLVE_NOT_BRACKET and the return value of gammaincinv being set to 0.0.

I guess the remedy would be to change line 28 to this

if (a <= 0.0 || y <= 0.0 || y >= 0.25) {

It is also possible that false_position harbors a bug in line 63. If f1*f2==0, shouldn't it return the solution (either left or right side of the interval depending on which of f1 and f2 is zero). It seems that gammaincinv/maxwell bug wouldn't exist if false_position were to exhibit such (presumably correct) behavior.
Issue 1:
I have an enhancement request to shared_preferences plugin. On occasion the native side of a Flutter app (e.g. Java side on Android) needs to access shared preferences set in Flutter, or maybe set them for Flutter side as well. It is necessary for example when communicating with other native apps on a platform.

Currently what I have to do in Java to accomplish this is:

SharedPreferences prefs = getSharedPreferences("FlutterSharedPreferences", MODE_PRIVATE);

and later when I want to read e.g. "myValue" key, I have to add "flutter." prefix:

String value = prefs.getString("flutter."+key, null);

This does not feel right though, spying on package private values and using them elsewhere. A better way should be provided by the SharedPreferencesPlugin instead.

Issue 2:
Attempting to use a plugin in the context of a background isolate spawned by another plugin will cause failures when making calls over method channels. On Android, the PluginRegistrant interface is used to allow for plugins to register the application's plugins with a FlutterNativeView but no equivalent is available on iOS.
Issue 1:
Describe the bug

I use axios.get method with custom httpsAgent and httpAgent in node.js. The node_internals _http_client.js emit a warn when the server response http statue code 302 and headers location's protocol is different with the initiator url's protocol.

To Reproduce

Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question

// Example code here
const axios = require("axios");
const https = require("https");
const http = require("http");
const httpsAgent = new https.Agent({keepAlive: true})
const httpAgent = new http.Agent({keepAlive: true})
const url = 'https://xxxxx';
axios
.get(url, {
httpsAgent,
httpAgent
})
.then(() => {
console.log("success");
})
.catch(() => {
console.error("error:");
});

I had read the axios' code , the httpFollow and httpsFollow's options should includes customer's agent

Expected behavior

axios use a new agent adapter the redirect url protocol

Environment:

Axios Version: 0.19.0

Node Version: v12.14.0

Additional context/Screenshots

Issue 2:
Description

I try to setup HTTPS-session using Axios which works fine through Fiddler.

This fails by the way on the current stable release v0.18.0, I guess this is issue #925, fixed in #959.

As soon as I remove Fiddle, it no longer works. I suspect that it is, because the connection is pooled by Fiddler. So in order to make it work without the Fiddler proxy, I inject httpsAgent to keep the connection alive e.g.:

import * as http from 'https';
import * as https from 'https';

const Fiddler = {
host: '127.0.0.1',
port: 8888
};

this.axios = Axios.create({
proxy: Fiddler
httpAgent: new http.Agent({keepAlive: true}),
httpsAgent: new https.Agent({keepAlive: true, rejectUnauthorized: false})

I can't get it work with the https-agent assigned, not with a proxy:

Stacktrace:

TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
at new ClientRequest (_http_client.js:118:11)
at Object.request (http.js:41:10)
at RedirectableRequest._performRequest (node_modules\follow-redirects\index.js:186:24)
at new RedirectableRequest (node_modules\follow-redirects\index.js:69:8)
at Object.wrappedProtocol.request (node_modules\follow-redirects\index.js:363:14)
at dispatchHttpRequest (node_modules\axios\lib\adapters\http.js:180:25)
at new Promise (<anonymous>)
at httpAdapter (node_modules\axios\lib\adapters\http.js:20:10)
at dispatchRequest (node_modules\axios\lib\core\dispatchRequest.js:59:10)

Not without a proxy.

Context

axios version: e.g.: (v0.19.0-beta.1)[https://github.com/axios/axios/releases/tag/v0.19.0-beta.1]

Environment: e.g.: node v10.13.0, Windows 10

Related issues

#1885 (that one using a socks proxy, therefor I consider this one to be different)
Issue 1:
Currently debug adapter user errors are treated like fatal exceptions on the VS Code side and show up in the dev console because "developers should understand what is going on". This does not make a lot of sense for this type errors because no developer needs to know them or is interested in them.

The errors reporting through this mechanism are conceptually equivalent to errors reported by the TypeScript transpiler but it would be strange if we would send TypeScript errors to the dev console.

I suggest that we only show errors on the dev console that have the "sendTelemetry" flag set. The errors that have the "showUser" flag set are forwarded to the Notification service without sending them to the dev console.

Issue 2:
Flagging important just to catch your attention.
Issue 1:
Context:

Playwright Version: 1.27.1

Operating System: Linux and Mac

Node.js version: v16.17.0

import {test, expect, Page} from '@playwright/test';

test.describe("Sample test", () => {
let page: Page

test.beforeAll(async ({ browser }) => {
page = await browser.newPage()
})

test.afterAll(async () => {
await page.close()
})

test('homepage has Playwright in title and get started link linking to the intro page', async () => {
await page.goto('https://playwright.dev/');
await expect(page).toHaveTitle(/Playwrights/);
})
})

Describe the bug

such code ( note "shared" page used as mentioned here ) doesn't create a video ( also on failure ) - video: 'retain-on-failure' / video: 'on' doesn't create a file

A shorter code (below) works well

import { test, expect } from '@playwright/test';

test.describe("Sample test", () => {
test('homepage has Playwright in title and get started link linking to the intro page', async ({page}) => {
await page.goto('https://playwright.dev/');
await expect(page).toHaveTitle(/Playwrights/);
})
})

Issue 2:
Context:

Playwright Version: 1.22.2

Operating System: Windows 11

Node.js version: v 17.7.1

Browser: chromium

Extra: [any specific details about your environment]

System:

OS: Windows 10 10.0.22000

Memory: 1.24 GB / 15.79 GB

Binaries:

Node: 17.7.1 - C:\Program Files\nodejs\node.EXE

Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD

npm: 8.5.2 - C:\Program Files\nodejs\npm.CMD

Languages:

Bash: 5.0.17 - C:\Windows\system32\bash.EXE

Code Snippet

playwright.config.ts

const config: PlaywrightTestConfig = {
reporter: [['dot'],['html']],
use: {
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video:'retain-on-failure',
},
};

export default config;

broke.spec.ts

(sourced from https://playwright.dev/docs/test-retries#reuse-single-page-between-tests)

import { test, Page } from '@playwright/test';

test.describe.configure({ mode: 'serial' });

let page: Page;

test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
});

test.afterAll(async () => {
await page.close();
});

test('a failing test', async () => {
await page.click('text=Get Started fail', {timeout: 1000}); // << deliberate fail
});

Describe the bug

Videos are not generated when reusing a single page between tests

Set the following configuration:

use: {
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video:'retain-on-failure',
},

Run a failing test

Expected Result:

The spec above should successfully generate a screenshot, test steps, trace file and a video within the HTML result.

Actual Result:

The video is not being generated:
Issue 1:
Describe the issue:

When using np.floor_divide() on long integers the results are sometimes wrong.

Reproduce the code example:

import numpy as np

print(np.mod(10888869450418352160,10))
>>8.0

Error message:

No response

NumPy/Python version information:

numpy version 1.22.2

Issue 2:
running build

running config_cc

unifing config_cc, config, build_clib, build_ext, build commands --compiler options

running config_fc

unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

running build_src

build_src

building py_modules sources

building library "npymath" sources

error: don't know how to compile C/C++ code on platform 'posix' with 'gcc' compiler
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.200.0

System: Mac OS X 10.10.4

Thrown From: Atom Core

Stack Trace

Uncaught JS-YAML: missed comma between flow collection entries at line 50, column 19:

"babel-eslint": "^3.0.1",

^

At /Users/fill/Documents/work/funnel_wap/node_modules/eslint/lib/config.js:76

undefined

Commands

3x -1:10.1.0 core:undo (atom-text-editor.editor.is-focused)
3x -1:07.1.0 core:cut (atom-text-editor.editor.is-focused)
3x -1:04.2.0 core:save (atom-text-editor.editor.is-focused)
-0:48.2.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
-0:47.4.0 core:paste (atom-text-editor.editor.mini.is-focused)
-0:46.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
4x -0:38.9.0 core:cut (atom-text-editor.editor.is-focused)
-0:35.4.0 core:save (atom-text-editor.editor.is-focused)
2x -0:29.1.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
-0:27.1.0 core:paste (atom-text-editor.editor.mini.is-focused)
-0:18.2.0 core:copy (atom-text-editor.editor.is-focused)
3x -0:16.8.0 core:cut (atom-text-editor.editor.is-focused)
-0:10 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:10 editor:newline (atom-text-editor.editor.is-focused)
2x -0:04.0 core:move-right (atom-text-editor.editor.is-focused)
-0:02.7.0 core:save (atom-text-editor.editor.is-focused)

Config

{
"core": {
"themes": [
"isotope-ui",
"seti-syntax"
],
"disabledPackages": [
"Zen",
"esformatter"
]
},
"editor": {
"fontSize": 13,
"invisibles": {},
"softWrap": true,
"fontFamily": "Menlo"
}
}

Installed Packages

# User
Stylus, v1.0.0
color-picker, v1.7.0
emmet, v2.3.9
git-log, v0.3.0
isotope-ui, v2.3.0
keybinding-cheatsheet, v0.0.9
linter, v0.12.6
linter-eslint, v0.5.8
project-manager, v1.15.7
seti-syntax, v0.4.0

# Dev
No dev packages

Issue 2:
2-3 times per day, when switching between tabs, I get this error. Atom 0.136.0 on Ubuntu 14.04.

Here's the stack dump that comes up in the console when the system crashes:

TypeError: undefined is not a function

at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14)

at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24

at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11)

at /opt/atom/resources/app/src/pane-container.js:321:34

at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11)

at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22)

at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21)

at /opt/atom/resources/app/src/workspace.js:446:16

at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54)

at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30)

at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13)

at /opt/atom/resources/app/node_modules/q/q.js:557:44

at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17)

at process._tickCallback (node.js:378:11)
Issue 1:
The Deno repl is very... well, unhelpful I'd say. Aside from the fact I can't actually run typescript in it, it also doesn't allow very basic values:

> {"foo":"bar"}
error: Uncaught SyntaxError: Unexpected token ':'
► <unknown>:1:7
at evaluate ($deno$/repl.ts:84:34)
at replLoop ($deno$/repl.ts:175:13)

Valid javascript, valid typescript. Why is this a syntax error?

Issue 2:
Error / Panicked:

thread 'main' panicked at 'called Option::unwrap() on a None value', ext/flash/lib.rs:1316:42

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Platform: macos aarch64

Version: 1.25.0

Args: ["deno", "run", "--unstable", "--allow-all", "--watch", "main.js"]

import express from "npm:express";
const app = express();

app.get("/", function (req, res) {
res.send("Hello Express");
});

app.listen(3000);
console.log("listening on http://localhost:3000/");

On changing a bit of code (as its watching) the error happens.
Issue 1:
Hi,

I just wanted to bring this up, many of the tutorial pages in the current website are showing an error as follows:

[Math Processing Error]

This is showing instead of the formulas and make the learning processed a little bit more complicated.

Example affected page:

https://www.tensorflow.org/versions/r0.7/tutorials/word2vec/index.html#vector-representations-of-words

Issue 2:
The website tries to load,

https://www.tensorflow.org/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?rev=2.6.1

and fails. Someone needs to fix the path to get the right version of mathjax, and have all the LaTeX symbols show up.

Thanks.
Issue 1:
Uncaught Error: spawn /usr/local/bin/rebar ENOENT

Atom Version: 0.158.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /usr/local/bin/rebar ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
Uncaught Error: spawn \usr\local\bin\rebar ENOENT

Atom Version: 0.162.0

System: Unknown Windows Version

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn \usr\local\bin\rebar ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
TypeScript Version:

1.8.0-beta (Visual Studio 2015 Community)

Code

// A self-contained demonstration of the problem follows...
export interface Configuration {
debug?: boolean;
}

Expected behavior:

Visual Studio's tsc should be able to tell that the module option is set to system.

Actual behavior:

Visual Studio tells me to do something I've already done.

Issue 2:
Hi all, I have vs 2015 update 1 with ts 1.8. I just tried to reopen an asp.net 5 application with angular 1 and the usual angular.d.ts files.

After the installation of the installation of 1.8 beta I cannot compile it anymore:

with 1.8 beta installed I received a lot of errors: Build: cannot find namespace 'ng':

uninstalling it (I have both 1.8 beta and 1.7.6 installed I have a single error: Unable to get property 'compilerOptions' of undefined or null reference.

repairing the ts 1.7 installation I obtain this error message: Option 'project' cannot be mixed with source files on a command line.

I worked with another asp.net 4 project and angular without problems.

this is my tsconfig.json

{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"target": "es5",
"outFile": "wwwroot/js/application.js",
"inlineSourceMap": true,
"inlineSources": true
},
"exclude": [
"node_modules",
"wwwroot"
]
}

Am I misiing something about the changes in ts 1.8?
Issue 1:
Issue originally reported by @andy-ms in babel/babylon#768

Input Code

export type T = ({x, y}: any) => void;

(from #6065 (comment))

Babylon/Babel Configuration

{
"presets": ["typescript"]
}

Expected Behavior

Parse succeeds

Current Behavior

{ SyntaxError: src\a.ts: Unexpected token, expected ) (1:23)

Your Environment

software
version

Babylon
7.0.0-beta.29

node
8.7.0

npm
5.5.1

Operating System
Windows 10 Enterprise

(would assign myself if I could)

Issue 2:
Bug Report

Current Behavior

Code fails with Babel, works with TSC.

Input Code

Babel REPL (ps: needs to install the @babel/plugin-transform-typescript plugin)

TypeScript Playground

This code fails on Babel but not on TSC:

type MyType = ({ theme }: { theme: string }) => string

const x: MyType = {}

This code works on both:

type MyType = (param: { theme: string }) => string

const x: MyType = {}

Expected behavior/code

Support this syntax, because tsc supports it.

Babel Configuration (.babelrc, package.json, cli command)

The one inside Create React App v2, plus typescript preset. (file)

Environment

Babel version(s): 7.1.0

Node/npm version: 5.6.0

OS: macOS 10.14

Monorepo yes (yarn workspace)

How you are using Babel: CRA

Additional context

Possibly related: #8365