WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
We should expect this to work, but currently we get an inappropriate error message.

>>> from sklearn import *
>>> model_selection.cross_validate(linear_model.LogisticRegression(), np.random.rand(10, 2), ['no'] * 3 + ['yes'] * 7, scoring='roc_auc')
...
ValueError: Data is not binary and pos_label is not specified

_binary_clf_curve is assuming that pos_label=1 if not specified. But it should be assuming the same ordering as the classifier, i.e. the greater string is the positive class label.

Ping @qinhanmin2014

Issue 2:
to reproduce:

import numpy as np
np.random.seed(13)
classes = np.array(['yes', 'no'])
y = classes[np.random.randint(2, size=10)]
t = classes[np.random.randint(2, size=10)]
from sklearn.metrics import roc_auc_score
from sklearn.metrics import accuracy_score
roc_auc_score(t, y)

ValueError: Data is not binary and pos_label is not specified
Issue 1:
All my use cases would work better if each operator would execute everything in one transaction. Two examples:

I want to GenericTransfer a set of rows from one DB to another, and I have to create the table first in the destination DB. I feel like it'd be a lot more clean if I didn't have empty tables lying around if the insertion fails for some reason later on.

I want to GenericTransfer all rows from an entire table periodically to sync it from one DB to another. To do this correctly I want to clear the destination table first to make sure I end up with no duplicate rows, so I'd have a DELETE * FROM dst_table preoperator. If the insertions fail afterwards, I'd end up with no data (it would be better in most cases to fall back to the old data), and even if everything is working correctly, I'll have an empty table while the insertions as still executing.

To fix this, the relevant DbApiHook methods could support a new kwarg to set whether it should commit at the end.

Thoughts?

Issue 2:
def _execute(self):
command = self.task_instance.command(
raw=True,
ignore_dependencies=self.ignore_dependencies,
force=self.force,
pickle_id=self.pickle_id,
mark_success=self.mark_success,
task_start_date=self.task_start_date,
job_id=self.id,
pool=self.pool,
)
self.process = subprocess.Popen(['bash', '-c', command])
return_code = None
while return_code is None:
self.heartbeat()
return_code = self.process.poll()

Here we need to check the return_code of the process, otherwise it's possible that a process is killed externally but LocalTaskJob think it suceeds
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.17134.1069]
PowerToys version: 0.13.0

# Steps to reproduce

• Ensure that FancyZones is already setup on the remote computer (connecting to)
• Initiate a remote connection using Remote Desktop Connection - Native windows application-
• Attempt to move the windows with keyboard shortcuts

# Expected behavior

• FanzyZones should recognize the mstsc

# Actual behavior

Win+Arrow buttons do not move windows to the pre-configured zones

Issue 2:
Environment

Windows build number: FancyZones is Running - [Version 10.0.18362.295] RemoteApp connection running [Version 6.3.9600]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Press Shift key while dragging a RemoteApp window.

Expected behavior

Pressing Shift key allows all windows to be resized and placed in zones via FanceyZones.

Actual behavior

Pressing Shift key does not initiate FanceyZones zones.

Screenshots

Actual behavior

Expected behavior
Issue 1:
The default Deno NotFound error:

error: Uncaught NotFound: No such file or directory (os error 2)

Is supremely unhelpful. Yes, I probably should have added more logging or whatever, but I would really have preferred to see what file my script was expecting to find and was missing, diagnose the issue and continue, than that I have to guess at it or add console.log()s to find out.

Is it that hard to put the missing path in the error message? It would really help a lot.

Issue 2:
Running a simple oak server to illustrate deno-react-example using deno 1.0.3 on Ubuntu results in: "error: No such file or directory (os error 2)"

Would anyone know how to debug this?

Thanks
Issue 1:
Issue Type:

Bug Report

Feature Idea

Documentation Report

Ansible Version:

<!--- Paste verbatim output from “ansible --version” here -->

Ansible Configuration:

Environment:

Summary:

Steps To Reproduce:

<!--- Paste example playbooks or commands here -->

Expected Results:

Actual Results:

<!--- Paste verbatim command output here -->

Issue 2:
Issue Type:

Bug Report

Ansible Version:

$ ansible --version
ansible 2.0.0.2
config file = /usr/local/etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

Environment:

Ansible Installed on OSX and manage Amazon Linux

Summary:

Ansible is unable to use variables in register

Steps To Reproduce:

### WORKS
- wait_for: host=0.0.0.0 port={{ item.port }}
ignore_errors: true
register: nginx
with_items:
- { name: 'nginx', port: '80' }

- debug: var=nginx

### DOES NOT WORKS
- wait_for: host=0.0.0.0 port={{ item.port }}
ignore_errors: true
register: "{{ item.name }}"
with_items:
- { name: 'nginx1', port: '80' }

- debug: var=nginx1

Expected Results:

Variable nginx1 should have been interpolated in register

Actual Results:

## Error in play
TASK [debug] *******************************************************************
ok: [my_server] => {
"nginx1": "VARIABLE IS NOT DEFINED!"
}
Issue 1:
In pull request name, there is [WIP], [MRG] and in commit, there is ENH, FIX, TST, DOC, MAINT, ...

Issue 2:
The documentation for this project looks fantastic. I'm new to ML but I'd love to have a PDF copy of the docs which I can read along with text books on the subject.

I just spend half a day trying to do 'make latexpdf' only to find out that pdf functionality hasn't worked in over a year.

Can you please just provide a pdf copy of the manual and save lots of people lots of time and frustration. Even the sourceforge email lists are full of people asking for the pdf.
Issue 1:
The referenced control is Select Field:

http://www.material-ui.com/#/components/select-field

Select Field is a great component, but it lacks a feature that would be useful for a lot of use cases. It would be great to be able to select more than one item from the dropdown list.

For example, if "multiselect" mode is enabled, dropdown could be rendered as a list of checkboxes and the dropdown value would be an array of currently selected items.

Optionally, it would be nice to show comma-separated list of currently selected items as the text of closed SelectField. (Tolerating the current width of the control and showing all values in tooltip)

Issue 2:
Hello,

I am utilizing select fields and auto complete a lot in my app and I'd like to know if there are plans for adding multi-select for these fields. I think multi-select is widely required feature that a lot of developers can benefit from.

Thanks!
Issue 1:
When I split my view horizontally, I find the duplicate status bars to be somewhat wasteful of real estate. I'm wondering if it wouldn't be better to have a single status bar at the bottom that changes its display depending on the active editor, like Sublime has. We already have the filename in the tab bar. Although this may be sad for Emacs people who like to disable the tabs.

Issue 2:
Since upgrading to 0.123 (or maybe 0.124) I have been experiencing very high CPU usage from Atom Helper. Running on Macbook Pro with OSX 10.9.4. Have been using Atom for several months and have not experienced this problem before. Unsure how to troubleshoot more.
Issue 1:
Context: http://127.0.0.1:3999/flowcontrol/13

Hi, just going through the Golang tour (very cool, btw) and was confused by the sentence "To learn more about defer statements read this blog post." because there was no link to a blog post. Then I realized that "blog post" was an undecorated link. It would be clearer if the link were underlined or somehow called out.

Issue 2:
Context: https://tour.golang.org/

Links in the slides are black, as the text, and it's hard to differentiate them.
Issue 1:
Hello Typescipters,

I'm using the Q library with its typings installed via tsd.

In a module I'm using

/// <reference path="../typings/q/Q.d.ts"/>
// ...

compiled with

tsc -m commonjs --out test.js test.ts
tsc --version
message TS6029: Version 1.4.1.0

and would like test.js to contain a line like

var Q = require("path/to/q"); // to be executed by nodejs

where path/to/q points to the javascript file and has nothing to do with ../typings/q/Q.d.ts.

Using import Q = require("path/to/q"); won't work as it probably expects a typescript module.

builder.ts(5,32): error TS2307: Cannot find external module './../bower_components/q/q'.

I haven't found how to achieve this without rolling out some hackish ad-hoc source markup/parse/replace. Have I overlooked something?

In a way I'm trying to "link" to the library code (in the C meaning) with node's require after having included the declarations (references to the d.ts).

If this is not currently possible, may I suggest a pass-through version of require() which kicks in when -m commonjs is used? Perhaps js_require("blabla") which would be emitted as node's require("blabla"). This would make it a lot easier to leverage other tools which analyze require statements.

Greetings

Issue 2:
After seeing #4884, I'd like to ask about this. Having diagnosticInformationMap.generated.ts in the repo seems fine since it's part of the build, but since we want to check if for duplicate IDs we should consider incorporating the generation of the code into the standard build process, rather than a script run by hand as-needed.

The only downsides I can see are that editor intellisense for the Diagnostic object won't work after a clean clone until after a build or pre-build is run, and we'll lose the ability to simply run tsc over the compiler folder and get a functioning compiler (you have to generate the generated code first).

As far as upsides go, adopting this strategy should result in fewer merge conflicts in diagnostic messages and, additionally, will add a warning in the form of a failed build in a PRs when someone tries to add a message with an identical message id to one in master.

To do this, we should remove the generated code file from the repo, add the filename to the .gitignore, and make the script to rebuild it run as part of the build process.

Does anyone feel strongly about this?
Issue 1:
Exception when using some colors in custom pallete

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

At least: No exception.

Current Behavior

TypeError
Cannot read property 'charAt' of undefined
decomposeColor
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:80:13
lighten
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:226:11
createPalette
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createPalette.js:144:51
createMuiTheme
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createMuiTheme.js:71:45

Steps to Reproduce (for bugs)

https://codesandbox.io/s/1325w0wqk7

See demo.js

Try purple - it works

Try orange, deepOrange, lightBlue (and maybe some other) - it throws TypeError

Context

Your Environment

See package.json

Tech
Version

Material-UI
next

React
latest

browser
Chrome

Issue 2:
In certain screen width scroll appears even when it shouldn't, when the number of lines is less then the defined number of maxRows.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I expect scroll to appear only when the number of lines in a multiline text field is bigger then the defined maxRows.

Current Behavior

I defined maxRows to be 8. When I make the screen narrow scroll can appear when there are only 7 rows, giving a viewport of only 6 rows.

Steps to Reproduce (for bugs)

1.Define max rows of 8.

2. define width by percentage.

3.add text,

4.and change the width of the window.

Context

I'm trying to make a to do app with some multiline text fields. The app is responsive.

Your Environment

Tech
Version

Material-UI
next

React
16

browser
chrome

etc
windows 10
Issue 1:
I think the issue is self explanatory when looking at the code below. The second boolean should be False.

Is this intended? If so, should there be some kind of Warning for the user? I couldn't figure why my code wasn't working until I realized that I have to convert my numpy array to a normal list.

Reproducing code example:

import numpy as np
>>> a = np.array([['a','b','c'], ['d','e','f']])
>>> ['a','b','c'] in a
True
>>> ['c','b','a'] in a
True```

### Numpy/Python version information:
1.18.1 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0]

Issue 2:
The __contains__ method is written to be used for a single array element. However for example in list of list, __contains__ does a check more equivalent to subarrays. in must return a single boolean.

After some discussion on the list (nabble), there are three main possibilities:

The first item must be an element. That means that an array a for a in b will normally be a simple error. (As nathaniel mentioned on the list).

Do a list of list like comparison. I.e. in operates on the first dimension.

Do some kind of subarray matching (there are many different versions of this allowing different things)

Point 2. seems wrong, since arrays are not list of lists. Point 3. has some merit, it can go as far as allowing things similar to strings 'a' in 'cat', however there are some problems with the details. Point 1. is the simplest and safest solution. One problem with 2. is that for object arrays it can be not quite clear how to interpret for example a tuple/list.

At this time (there was not much discussion yet though), it seems that the best solution is to just raise an error (i.e. solution 1.). Finding subarrays is better suited for a dedicated function.
Issue 1:
Describe the issue

I was curious as to why the regex looks for 'on' in the get parameters. I had a parameter called 'onSiteTestComplete=false' but I had to change it to 'isOnSiteTestComplete=false'. Thanks!

https://github.com/axios/axios/blob/master/lib/helpers/isValidXss.js

Environment:

Axios Version 0.19.0

OS: OSX 10.15.2 Catlina

Browser Chrome Version 79.0.3945.117 (Official Build) (64-bit)

Issue 2:
It seems that axios v0.19.1 introduced a new bug.

The bug comes from #2464

All urls containing javascriptkeyword is throwing XSS error. So, all following urls cannot be used in axios any more:

https://www.javascript.com

https://stackoverflow.com/questions/tagged/javascript

https://www.google.com/search?q=javascript

Here is a link to regexp: https://regexr.com/4rsst

Expected behavior: axios should accept javascript in urls
Issue 1:
It is either very hard (I don't know how to do it) or impossible to create an unboxed closure that takes a mutable reference. Here are my attempts, with the resulting error messages inline:

#![feature(unboxed_closures)]
#![feature(overloaded_calls)]

// test.rs:4:23: 4:31 error: missing lifetime specifier [E0106]
// test.rs:4 fn doit<T, F: FnOnce<(&mut int,), T>>(f: F) -> T {
// ^~~~~~~~
// error: aborting due to previous error
fn doit<T, F: FnOnce<(&mut int,), T>>(f: F) -> T {
let x = 4;
f(&mut x,)
}

fn main() {
let r: int = doit(|: i: &mut int| i + 1);
println!("x = {}", r);
}

/////////////////////////////////////////////////////////////////////////

#![feature(unboxed_closures)]
#![feature(overloaded_calls)]

fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
let x = 4;
// test.rs:26:10: 26:11 error: `x` does not live long enough
// test.rs:26 f(&mut x,)
// ^
// test.rs:24:57: 27:2 note: reference must be valid for the lifetime 'a as defined on the block at 24:56...
// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
// test.rs:25 let x = 4;
// test.rs:26 f(&mut x,)
// test.rs:27 }
// test.rs:24:57: 27:2 note: ...but borrowed value is only valid for the block at 24:56
// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
// test.rs:25 let x = 4;
// test.rs:26 f(&mut x,)
// test.rs:27 }
// error: aborting due to previous error
f(&mut x,)
}

fn main() {
let r: int = doit(|: i: &mut int| *i + 1);
println!("x = {}", r);
}

Issue 2:
This is on the 1.0 schedule, but there is no issue and no RFC.
Issue 1:
Please:

Check for duplicate requests.

Describe your goal, and if possible provide a code snippet with a motivating example.

PyTorch will soon add bf16 support on GPUs. Where is JAX on that?

Will JAX soon add support for bf16 precision on GPUs?

Issue 2:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

import jax
import jax.numpy as jnp

f = lambda x: jnp.square(x).mean()
jf = jax.jit(f)

x = jax.random.uniform(jax.random.PRNGKey(0), shape=(8, 4))

# Start monitoring memory with htop
while True:
try:
# let this run for a bit, notice memory usage doesn't increase
y = jax.hessian(f)(x)
except KeyboardInterrupt:
pass

while True:
# let this run, notice memory usage starts increasing immediately
# also, the memory usage doesn't appear to stop increasing ever
y = jax.hessian(jf)(x)

Also, note that the equivalent code with jax.grad (or jax.jacfwd for multidimensional functions) replacing jax.hessian does not cause a memory leak.

As a result of this leak, my python process ends up getting killed by my OS (due to OOM), so I don't ever see any python or jax traces.
Issue 1:
Hi,

I am sure this will not be for 2.x series. Somethings that I like if you are making the 3.0 move.

I have been looking the https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38

and the method

public function matchRequest(Request $request)
{
$this->request = $request;

$ret = $this->match($request->getPathInfo());

$this->request = null;

return $ret;
}

defined in https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38

for the request is made to null. And the only functionality is to get the path and pass to the match method.

Why not remove the matchRequest itself ?

So it can be made like

$parameters = $matcher->match($request->getPathInfo());

Also I am seeing the Request from Context can be moved out to make a bundle to wrap the Router and Http rather than keeping inside the class.

I would like to see Symfony 3.0 as much more better standalone components. And bundles which wraps the components so they can use Symfony/RouterHttpFoundationBundle/Router or something like that for easy usage. So others who make use of standalone don't need to bother too much.

Thank you for hearing.

Issue 2:
this will make it possible to do content type negotiation inside the Routing.

will try to implement this on todays train ride :)

/cc @couac @liuggio
Issue 1:
I use react-with-addons in a RequireJS enviroment. If I try to use React.addons.Perf, I get a ReferenceError: ReactDOM is not defined from https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26.

This is a regression from 15.3.x.

Issue 2:
If I try to load react-dom with RequireJS, I get an error: "Mismatched anonymous define()".

Looking at the react-dom from the 15.4.0 distribution (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.0/react-dom.js), I notice that there seem to be two UMD wrappers at the top.

This is probably related to the change in the packaging structure (#7164 and #7168).
Issue 1:
I'm using TS 1.6.3 and JSPM. I jspm install-ed moment and then import it like so

import * as moment from 'moment'

This compiles to

....
function(moment_1) {
moment = moment_1;
}
....

Using Babel this compiles to

....
function(_moment) {
moment = _moment['default'];
}
....

At runtime the moment_1 or _moment variable refers to an object which actually has a default property which is the MomentJS's factory. So, to me, it looks like Babel is correct.

As a result of the way the TS compiler compiles it, it's not possible, in TypeScript code, to simply do var x = moment() because at runtime that will fail as moment will be an object, not a function. You also can't do moment.default() because in the d.ts file there is no default function. At the moment I'm doing a hack (moment as any).default().

I would appreciate it if someone could shed some light on whether I'm doing something wrong or it's a bug.

Thanks!

Issue 2:
I was recently running into some trouble with getting SystemJS to load jQuery using the ES6-style syntax.

import * as $ from 'jquery';

The above code worked fine with RequireJS and AMD format, and when using SystemJS as the loader when my code was emitted by TypeScript in AMD format.

However I noticed odd behavior when emitting this code using the system format and using SystemJS. I was getting all of the static functions of $, but $ itself was an inert object (not a function). So at runtime, $.isArray([]); would work, but $('#myDiv') would throw "$ is not a function".

Here's my original issue on the SystemJS repo: systemjs/systemjs#844

I kept digging around in the SystemJS documentation and eventually noticed that it referenced using a default ES6 import with jQuery:

import $ from 'jquery';

Sure enough when I tried this, it worked, even though jQuery itself does not export a property default.

After more research, I found this on the SystemJS site:

https://github.com/systemjs/systemjs/blob/master/docs/module-formats.md#inter-format-dependencies

When loading CommonJS, AMD or Global modules from within ES6, the full module is available at the default export which can be loaded with the default import syntax.

So when using SystemJS, the "is a" is made available through a virtual default export.

However, this is a problem since there's not currently a way to model this in TypeScript without breaking existing code using import $ = require('jquery') syntax.

Current jQuery definition on Definitely Typed:

declare module "jquery" {
export = $;
}

Proposal

In light of the documented behavior of SystemJS, I'd like to propose a change to TypeScript to allow ES6-style default import syntax to work with an ambient external module declaration that uses export = syntax, as long as the module format is "system".

With this change, this code would compile cleanly if TypeScript is set to "system", but would still error using "amd", "commonjs" or "umd" with "Module 'my-module' has no default export":

my-module.d.ts

declare module "my-module" {
var doStuff : () => void;
export = doStuff;
}

test.ts

import ds from "my-module";
ds();

Related:

#4337

#2719

CC: @vvakame @basarat @johnnyreilly @jbrantly @guybedford