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

Bug Report

Ansible Version:

ansible 1.9.3

Ansible Configuration:

nothing special

Environment:

run from: OS X 10.11

managing: OracleLinux 7.1

Summary:

Playbook with this task fail:

- name: Upgrade
yum: name=* state=latest update_cache=yes

Actual Results:

TASK: [packages-yum | Upgrade] ************************************************
<192.168.x.x> ESTABLISH CONNECTION FOR USER: root
<192.168.x.x> REMOTE_MODULE yum name=* state=latest update_cache=yes
<192.168.x.x> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/wicommander/.ansible/cp/ansible-ssh-%h-%p-%r" -o IdentityFile="/Users/wicommander/.ssh/id_rsa_java" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 192.168.x.x /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839 && echo $HOME/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839'
<192.168.x.x> PUT /tmp/tmpiCqSFi TO /root/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839/yum
<192.168.x.x> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/wicommander/.ansible/cp/ansible-ssh-%h-%p-%r" -o IdentityFile="/Users/wicommander/.ssh/id_rsa_java" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 192.168.x.x /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python -tt /root/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839/yum; rm -rf /root/.ansible/tmp/ansible-tmp-1444204659.82-210310868168839/ >/dev/null 2>&1'
failed: [ns2] => {"changed": false, "errors": "unexpected state", "failed": true, "results": ""}
msg: we should never get here unless this all failed

FATAL: all hosts have already failed -- aborting

Issue 2:
Updating YUM packages is broken in Ansible 1.9.3.

env:

Ubuntu 15.04 vivid

Ansible version: 1.9.3-1ppa~vivid (deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu)

Snippet of my playbook:

- name: YUM upgrade
yum: name=* state=latest update_cache=yes

Unexpected result:

TASK: [centos | YUM upgrade] **************************************************
failed: [centos_host] => {"changed": false, "errors": "unexpected state", "failed": true, "results": ""}
msg: we should never get here unless this all failed

Debugging showed that the value state is 'latest', which is an expected state.

Expected result (was working in 1.9.2):

TASK: [centos | YUM upgrade] **************************************************
ok: [centos_host]
Issue 1:
I get an output like this, why? :

E
======================================================================
ERROR: Failure: ImportError (No module named scipy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose-1.3.0-py2.7.egg/nose/loader.py", line 402, in loadTestsFromName
module = resolve_name(addr.module)
File "/Library/Python/2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py", line 311, in resolve_name
module = __import__('.'.join(parts_copy))
File "/Library/Python/2.7/site-packages/sklearn/__init__.py", line 32, in <module>
from .base import clone
File "/Library/Python/2.7/site-packages/sklearn/base.py", line 10, in <module>
from scipy import sparse
ImportError: No module named scipy

Ran 1 test in 0.001s

FAILED (errors=1)

Issue 2:
Not sure if this is properly filed with scikit-learn or pip, but this is what I found. I assumed that pip would install all necessary dependencies upon running

pip install scikit-learn

However, pip did not install scipy. This lead to a traceback with a very vague error message from the file sklearn/init.py,

ImportError: cannot import name __check_build

It seems reasonable that scikit-learn would instead alert the user to the fact that there is a missing dependency, and is not actually installed incorrectly.
Issue 1:
insertRow(index?: number): HTMLElement;

insertRow(index?: number): HTMLTableRowElement ;

insertCell(index?: number): HTMLElement;

insertCell(index?: number): HTMLTableCellElement;

also HTMLTableElement.rows is not a collection of HTMLTableRowElements!?

Am I mistaken here?

Issue 2:
A couple of html table related methods in lib.d.ts return HTMLElement, but they could return a more precise type:

HTMLTableElement.insertRow should return HTMLTableRowElement instead of HTMLElement

HTMLTableElement.createTHead should return HTMLTableSectionElement instead of HTMLElement

HTMLTableElement.createTBody should return HTMLTableSectionElement instead of HTMLElement

HTMLTableElement.createTFoot should return HTMLTableSectionElement instead of HTMLElement

HTMLTableElement.createCaption should return HTMLTableCaptionElement instead of HTMLElement

HTMLTableSectionElement.insertRow should return HTMLTableRowElement instead of HTMLElement

HTMLTableRowElement.insertCell should return HTMLTableCellElement instead of HTMLElement
Issue 1:
There appears to be a regression in scipy.integrate.dblquad:

from scipy.integrate import dblquad
f = lambda y,x,a: a*x*y
dblquad(f, 0, 1, lambda y: 0, lambda y: 1, args=(1,))

works in 0.17.1, but in 0.18 causes the error:

.../python3.4/site-packages/scipy/integrate/quadpack.py in integrate(self, *args, **kwargs)
747 ind = -(depth + 1)
748 fn_range = self.ranges[ind]
--> 749 low, high = fn_range(*args)
750 fn_opt = self.opts[ind]
751 opt = dict(fn_opt(*args))

TypeError: <lambda>() takes 1 positional argument but 2 were given

Changing the call to

dblquad(lambda y,x,a: 1, 0, 1, lambda x,a: 0, lambda x,a: 1,args=(1,))

does not fix the problem. Version info:

Python 3.4.3 (default, Oct 14 2015, 20:28:29)

Type "copyright", "credits" or "license" for more information.

IPython 5.0.0 -- An enhanced Interactive Python.

In [3]: print( scipy.version)

0.18.0

Issue 2:
Similar to #5452, dblquad fails when called with args because the args get passed to the range function in nquad, even though the range functions are supposed to not have additional arguments (as per the documentation):

>>> from scipy.integrate import dblquad
>>> g= lambda x: x
>>> h= lambda x: 2 * x
>>> args = 1, 2
>>> func = lambda x0, x1, t0, t1: x0 + x1 + t0 + t1
>>> dblquad(func, 1, 2, g, h, args=args)
TypeError: <lambda>() takes exactly 1 argument (3 given)

This example works in 0.16.0 (the version I have installed) and I think the changes in #5906 are to blame.

I would suggest fixing this in a way that restores the old dblquad API. tplquad likely has the same issue, but I haven't checked.
Issue 1:
hi, I just use babylon && babel-traverse && babel-generator doing something. but after generating, the result has unicode.

Choose one: is this a bug report or feature request?

Bug report

Input Code

const fs = require('fs');
const babylon = require('babylon');
const generator = require('babel-generator').default;

const str = `
import React, { Component } from 'react';
class ListBase extends Component {
render() {
return <p title="中国">杭州</p>
}
}
`
function parse(str) {
return babylon.parse(str, {
plugins: ['jsx', 'classProperties'],
sourceType: 'module',
});
}

const ast = parse(str);
const result = generator(ast);
fs.writeFileSync('./new.js', result.code);

Expected Behavior

new.js should be:

import React, { Component } from 'react';
class ListBase extends Component {
render() {
return <p title="中国">杭州</p>
}
}

Current Behavior

import React, { Component } from 'react';
class ListBase extends Component {
render() {
return <p title="\u4E2D\u56FD">杭州</p>;
}
}

the property title shoud be 中国, but after generating , the result is \u4E2D\u56FD

Your Environment

software
versions

babylon
6.18.0

babel-generator
6.26.0

Issue 2:
After #4478 PR I discovered that Cyrillic text inside a jsx tag transpiled to \uXXXX-style escape sequences. This leads to issues in debug and growing output bundle size. But if I have JSXExpression with StringLiteral all works as expected and text stay unescaped.

Input Code

<div>
<Foo>Привет</Foo>
<Foo>{"Привет"}</Foo>
</div>

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

{
"presets": [
"react",
["es2015", { "loose": true, "modules": "commonjs", "spec": true }],
"es2016",
"es2017"
]
}

Expected Behavior

React.createElement(
"div",
null,
React.createElement(
Foo,
null,
"Привет"
),
React.createElement(
Foo,
null,
"Привет"
)
);

Current Behavior

React.createElement(
"div",
null,
React.createElement(
Foo,
null,
"\u041F\u0440\u0438\u0432\u0435\u0442"
),
React.createElement(
Foo,
null,
"Привет"
)
);

Possible Solution

Add option to disable generating ASCII-safe code or fix escaping behavior.

Your Environment

software
version

Babel
6.17.0

node
6.9.1

npm
3.10.8

Operating System
OS X 10.12.1
Issue 1:
I started noticing a white trail when resizing the Atom window if a medium-sized file is loaded (or larger). This GIF was made with a file that has 1000 lines and This is a test text in every other line:

(sorry for the quality! still learning how to create GIFs)

The trail is shown only when the resizing increases the size of the window, not when the size is decreased.

Atom version 31.0. OSX 10.8.5

Issue 2:
This is odd:

I can't advance by arrow keys towards the end of the line I am in.

I also can't click there or select (my frantic mouse movements are indicating that I'm trying).

I'm running:

OS X 10.9.3

Atom 0.103.0

2 Panes at the same time

softwrap fixed at 80

not sure which other package might be relevant.

This might be a duplicate/related to #1894 and also atom/markdown-preview#92
Issue 1:
Entering negative values for the first argument of scipy.special.mathieu_a yields NaN

from scipy.special import mathieu_a
mathieu_a(-1,1)

Whereas it should be well defined according to Mathematica.

See evaluation of the function at this link:

http://functions.wolfram.com/webMathematica/FunctionPlotting.jsp?name=MathieuCharacteristicA&ptype=1&r=-1&q=2&type=0&line=0&free=q&xMin=-5&xMax=5

Scipy/Numpy/Python version information:

1.2.1 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)

Issue 2:
The order parameter in Mathieu functions need not be positive, integer or even complex valued, but that is the only type of input that scipy.special handles without resulting in NaN.

Although the GSL implementation is also restricted to integers, it is not restricted to positive integers. This could be easily handled in scipy as well by using the symmetry properties of Mathieu functions.

Mathematica handles real and complex order without a problem.

Handling real and complex orders requires different algorithms, such as the ones described in this article, that also includes C++ source, although it has a restrictive license.
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
3.*

i think the functions from Intl/ResourceBundle should be awailable as twig functions or filter.

like doing " val | language_name" should do "Intl::getLanguageBundle()->getLanguageName(val)"

I Think Filter is better than Function?

but i don't know if they should be added to Symfony/Bridge/Twig, or be an extra bundle.

what should it be use for?

like when creating an view of a Model or Entity and you get "de" as value it should be turn it into "German".

Issue 2:
Tell me if it would be a good idea to add a extension/twig folder, containing a IcuExtension.php with those functions :

public function getFunctions()
{
return array(
new \Twig_SimpleFunction('languageName', array($this, 'getLanguageName')),
new \Twig_SimpleFunction('scriptName', array($this, 'getScriptName')),
new \Twig_SimpleFunction('countryName', array($this, 'getCountryName')),
);
}

public function getLanguageName($language, $region = null, $displayLocale = null)
{
return Intl::getLanguageBundle()->getLanguageName($language, $region, $displayLocale);
}

public function getScriptName($script, $language = null, $displayLocale = null)
{
return Intl::getLanguageBundle()->getScriptName($script, $language = null, $displayLocale = null);
}

public function getCountryName($country, $displayLocale = null)
{
return Intl::getRegionBundle()->getCountryName($country, $displayLocale = null);
}

So we can use them in twig like that for ex

{{ languageName('en') }}
{{ languageName('en', null, 'de') }}

If it's a good idea, I'll make a PR.

K.
Issue 1:
I'm currently writing a webserver application using hapijs (nodejs). I have a bunch of plugins which I want to write in Typescript. A Hapijs plugin needs a function called register() and an attributes function property with a name and version:

register(server, options, next) {
}
register.attributes = {
name: 'plugin',
version: '0.1.0'
};

When I want to compile this code, I always get

lib/plugins/plugin.ts(2,5): 2300 Duplicate identifier 'register'.
lib/plugins/plugin.ts(8,12): 2300 Duplicate identifier 'register'.

I don't know the specs very well but I'm wondering whether it should be allowed or not?

Edit: hapijs plugin docs

Issue 2:
This used to be on codeplex and I cannot find a reference here.

https://typescript.codeplex.com/workitem/917

The problem is that I have project.d.ts and lets say that it has a Point class with simple {x,y} properties.

project-plugin-coolvector.d.ts might come along tomorrow, and that Plugin JS might add a z property to the existing Point class.

If project-plugin-coolvector.d.ts attempts to export a Point class with a z property. You get a duplicate error. I looked at the JQuery plugins example on DT but project.d.ts must contain classes, since Point has a constructor.

I see no way of being able to support the direction of the project in this instance.
Issue 1:
When Support on Windows?

Issue 2:
Rough TODO list:

Make //flutter/snapshotter work on Windows.

Make the flutter command line tool work on Windows.

Teach the flutter.ps1 where to get the Dart SDK and how to bootstrap into Dart.

Teach the tool about Windows as a host platform (e.g., where to find the snapshotter)

Teach the tool how to control Android devices via adb on Windows.

Infrastructure for continuously building and testing the Windows toolchain.

Issue by Scorpiion

Sunday Aug 23, 2015 at 18:18 GMT

Originally opened as https://github.com/flutter/engine/issues/771

I understand that Windows support is not prio 1 atm, but in the future, as a platform for developing Android apps (and maybe iOS apps), would it be possible to add Windows support? I understand that it would be some work, but basically what I'm asking is if it's part of the long term plan or simply ignored on purpose for some reason (other than maybe no devs on the team are using Windows..).

Even if I myself only use Linux (close to 10 years Linux only) I think it can be good for the project to support Windows in the long run, at Stackoverflow's latest developer survey Windows developers was still a little bit more that 50% (Mac and Linux at ~21% each):

http://stackoverflow.com/research/developer-survey-2015#tech-os

The only reference of Windows I could find was this old comment in an old readme:

https://github.com/domokit/sky_engine/pull/165/files#r35055666

And just to be extra clear and avoid any confusion, this issue is about developing Android and iOS apps on Windows, not deploying Sky to Windows Phone.
Issue 1:
In React 0.12.0 if you attempt to use this.key inside a react component, it is undefined

Simple test case here: http://jsfiddle.net/jg2pd4ob/2/

In 0.11.x you could access this value via this.props.key which has been removed.

Issue 2:
React version: 18.0.0

Root Component App.tsx

import React from 'react';
import theme from './theme';
import {ThemeProvider} from '@mui/material/styles';

interface AppProps {

}

const App: React.FC<AppProps> = () => {

console.log("is load");

return (
<ThemeProvider theme={theme}>
<>
Hello world!
</>
</ThemeProvider>
);
}

export default App;

config webpack:

const path = require('path');

module.exports = {
entry: "./src/index.tsx",
output: {
filename: "bundle.js",
path: path.join(__dirname, "./dist")
},

resolve: {
extensions: [
".ts", ".tsx", ".js", ".jsx", ".json"
]
},

devtool: "eval",

module: {
rules: [
{
test: /\.tsx?$/,
use: "babel-loader",
exclude: /node_modules/
},
{
test: /\.css/,
use: [
"style-loader",
"css-loader"
]
}
]
}
}

I've try render root component from index.tsx with:

import * as React from 'react';
import {render} from 'react-dom';

import App from './App'
import "normalize.css";

render(
<App />,
document.querySelector("main")
);

I've get error at browser console:

Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

Also i've read switch-to-createroot and i've try render root component with:

import * as React from 'react';
import {createRoot} from 'react-dom/client';

import App from './App'

import "normalize.css";

const container = document.querySelector("main");
const root = createRoot(container!);

root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

This work but in my browser console for my App.tsx component now i get two times log is load

and if i add local state at component and update state render are duplicate.

By going back to the old way of rendering the root component, the problem of multiple renders is solved, but I keep the error message.

How fix it?

Browser Microsoft Edge:

Version 100.0.1185.39 (Official build) (64-bit)

package.json:

{
"name": "assets",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build:prod": "webpack --config ./webpack.config.js --mode production",
"build:dev": "webpack --config ./webpack.config.js --mode development --watch"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/icons-material": "^5.6.1",
"@mui/material": "^5.6.1",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.2.4",
"css-loader": "^6.7.1",
"normalize.css": "^8.0.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"style-loader": "^3.3.1",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
}
}
Issue 1:
This is the same issue with #5071, but still not solved. :(

func in GroupBy.apply(func, *args, **kwargs)[source] have DataFrame as an input, while

func in Rolling.apply(func, args=(), kwargs={}) have ndarray as an input.

Is this project still actively working to find solution?

Also, it would be better if it support parallel processing.

Code Sample

import pandas as pd

df = pd.DataFrame({'g':[1,1,1,1,2,2,2,3,3,3,3,3],
'A':[1,4,2,5,3,5,3,2,1,2,3,6],
'B':[1,5,2,3,1,5,7,3,5,2,8,4]})
print(df.groupby('g').apply(lambda x:str(type(x))))
print(df.rolling(3).apply(lambda x:str(type(x))))

g
1 <class 'pandas.core.frame.DataFrame'>
2 <class 'pandas.core.frame.DataFrame'>
3 <class 'pandas.core.frame.DataFrame'>
dtype: object

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-497-2f7f95b2a358> in <module>()
----> 1 df.rolling(3).apply(lambda x:str(type(x)))

~/anaconda3/lib/python3.6/site-packages/pandas/core/window.py in apply(self, func, args, kwargs)
1205 @Appender(_shared_docs['apply'])
1206 def apply(self, func, args=(), kwargs={}):
-> 1207 return super(Rolling, self).apply(func, args=args, kwargs=kwargs)
1208
1209 @Substitution(name='rolling')

~/anaconda3/lib/python3.6/site-packages/pandas/core/window.py in apply(self, func, args, kwargs)
854
855 return self._apply(f, func, args=args, kwargs=kwargs,
--> 856 center=False)
857
858 def sum(self, *args, **kwargs):

~/anaconda3/lib/python3.6/site-packages/pandas/core/window.py in _apply(self, func, name, window, center, check_minp, how, **kwargs)
797 with np.errstate(all='ignore'):
798 if values.ndim > 1:
--> 799 result = np.apply_along_axis(calc, self.axis, values)
800 else:
801 result = calc(values)

~/anaconda3/lib/python3.6/site-packages/numpy/lib/shape_base.py in apply_along_axis(func1d, axis, arr, *args, **kwargs)
130 except StopIteration:
131 raise ValueError('Cannot apply_along_axis when any iteration dimensions are 0')
--> 132 res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs))
133
134 # build a buffer for storing evaluations of func1d.

~/anaconda3/lib/python3.6/site-packages/pandas/core/window.py in calc(x)
793 def calc(x):
794 return func(x, window, min_periods=self.min_periods,
--> 795 closed=self.closed)
796
797 with np.errstate(all='ignore'):

~/anaconda3/lib/python3.6/site-packages/pandas/core/window.py in f(arg, window, min_periods, closed)
851 minp = _use_window(min_periods, window)
852 return _window.roll_generic(arg, window, minp, indexi, closed,
--> 853 offset, func, args, kwargs)
854
855 return self._apply(f, func, args=args, kwargs=kwargs,

pandas/_libs/window.pyx in pandas._libs.window.roll_generic (pandas/_libs/window.c:36065)()

TypeError: must be real number, not str

Issue 2:
Returning a Series: http://stackoverflow.com/questions/19121854/using-rolling-apply-on-a-dataframe-object

Returning a Scalar: http://stackoverflow.com/questions/21040766/python-pandas-rolling-apply-two-column-input-into-function/21045831#21045831
Issue 1:
See Jenkins job kubernetes-upgrade-1.0-1.1-gke-step3-e2e-old's last few runs.

07:52:26 Validates MaxPods limit number of pods that are allowed to run. [It]
07:52:26 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/max_pods.go:158
07:52:26
07:52:26 Expected
07:52:26 <[]api.Event | len:0, cap:0>: []
07:52:26 not to be empty
07:52:26
07:52:26 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/max_pods.go:156

The relevant line is max_pods.go:156. Note that this is running e2e tests off of the release-1.0 branch.

It's possible that this is also caused by #15123, but it's not clear to me.

Issue 2:
This is a problem we're going to run into as we're running 1.0 e2e tests against 1.1 clusters, (which we do because we need to make sure that 1.1 clusters still operate the way 1.0 clusters did). If a test fails, but the failure is due to a bad test rather than a problem in 1.1, what do we do?

For example, Services/Nodeport e2es are failing on upgrade due to change in error message. They fail when running 1.0 e2es against a HEAD master (in jobs kubernetes-upgrade-gke-step3-e2e-old and kubernetes-upgrade-gke-step5-e2e-old):

Kubernetes e2e suite.Services should check NodePort out-of-range

Expected
<string>: Service "nodeport-range-test" is invalid: spec.ports[0].nodePort: invalid value '53127', Details: provided port is not in the valid range
to equal
<string>: Service "nodeport-range-test" is invalid: spec.ports[0].nodePort: invalid value '53127': provided port is not in the valid range

Kubernetes e2e suite.Services should prevent NodePort collisions

Expected
<string>: Service "nodeport-collision2" is invalid: spec.ports[0].nodePort: invalid value '31641', Details: provided port is already allocated
to equal
<string>: Service "nodeport-collision2" is invalid: spec.ports[0].nodePort: invalid value '31641': provided port is already allocated

@ixdy @quinton-hoole Any ideas about how to fix this? This definitely isn't a regression, but it's probably not a good idea to just disable these tests. My best thought is to cherry-pick the 1.1 test changes into 1.0, and somehow pull these tests HEAD of the 1.0 branch. That's a lot of mucking around though, and I'm not sure it's worth it.

For now, I think we should punt on these specific tests until we have a better idea of how widespread this kind of version-skew problem is going to be.