WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
add random_state parameter to SVC.predict_proba() to allow reproducibility.

this is needed since SVC.predict_proba() uses cross validation

Issue 2:
From one run to another sklearn.metrics.tests.test_metrics.test_precision_recall_curve failed. Any ideas @jnothman ?

======================================================================
FAIL: Test Area under Receiver Operating Characteristic (ROC) curve
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/ajoly/git/scikit-learn/sklearn/metrics/tests/test_metrics.py", line 353, in test_roc_curve
assert_array_almost_equal(roc_auc, 0.90, decimal=2)
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/numpy/testing/utils.py", line 812, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 2 decimals

(mismatch 100.0%)
x: array(0.09919999999999998)
y: array(0.9)
>> raise AssertionError('\nArrays are not almost equal to 2 decimals\n\n(mismatch 100.0%)\n x: array(0.09919999999999998)\n y: array(0.9)')

======================================================================
FAIL: sklearn.metrics.tests.test_metrics.test_precision_recall_curve
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/ajoly/git/scikit-learn/sklearn/metrics/tests/test_metrics.py", line 866, in test_precision_recall_curve
_test_precision_recall_curve(y_true, probas_pred)
File "/Users/ajoly/git/scikit-learn/sklearn/metrics/tests/test_metrics.py", line 888, in _test_precision_recall_curve
assert_array_almost_equal(precision_recall_auc, 0.85, 2)
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/numpy/testing/utils.py", line 812, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/Users/ajoly/.virtualenvs/sklearn/lib/python2.7/site-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 2 decimals

(mismatch 100.0%)
x: array(0.3218346431373276)
y: array(0.85)
>> raise AssertionError('\nArrays are not almost equal to 2 decimals\n\n(mismatch 100.0%)\n x: array(0.3218346431373276)\n y: array(0.85)')
Issue 1:
It cost me quite some time to figure out that if I want to have a structured representation of my underlying decision tree I can use the tree_ attribute of the DecisionTreeClassifier at the bottom of the attribute list. Further down the bottom there is also an example 'Understanding the decision tree structure'.

However it personally took me days to figure all of this out. Mainly because I was under the assumption that tree_ is intended as a private member.

It is my humble opinion that the documentation is improved significantly if it is extended with sklearn.tree.Tree API reference together with an additional small treatise on the decision tree info page similar as how the export_graphviz usage is discussed.

Issue 2:
Description

(Motivated by some questions in the mailing list)

I couldn't find a place where the attributes of the underlying tree_ objects of DecisionTree<Classifier/Regressor> were documented. They're fairly useful for getting basic information about a built tree, and many people don't know where to look in the code base to find info about them (here in _tree.pyx).

Is it worth linking to the file or having a page that documents all the properties?
Issue 1:
System information (version)

OpenCV = 4.5.0

Operating System / Platform => Raspbian 32 Bit

Compiler => Visual Studio 2017

Detailed description

This is my program:

import cv2

img = cv2.imread('test.png',1)

cv2.imshow('Camera Capture', img)

When i run this program, it will prompt "error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'"

Issue 2:
System information (version)

OpenCV => 3.4

Operating System / Platform => aarch64 (debian based OS)

Compiler => g++ 8.3.0

Detailed description

I have opencv as an external dependency that I compile from source like this:

ExternalProject_Add(opencv
GIT_REPOSITORY https://github.com/opencv/opencv
GIT_TAG "3.4"
SOURCE_DIR opencv
BINARY_DIR opencv-build
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=RELEASE
-DFORCE_VTK=ON
-DWITH_TBB=ON
-DWITH_V4L=ON
-DWITH_QT=OFF
-DWITH_GTK_2_x=ON
-DWITH_OPENGL=ON
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/opencv_install
)
set(OPENCV_INCLUDE_DIR ${CMAKE_BINARY_DIR}/opencv_install/include/)
set(OPENCV_LIBRARY_DIR ${CMAKE_BINARY_DIR}/opencv_install/lib/)
set(OPENCV_LIBRARIES opencv_imgproc opencv_core opencv_highgui opencv_video opencv_videoio opencv_imgcodecs opencv_features2d)
if(EXISTS "${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake")
include(${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake)
add_custom_target(rerun)
else()
add_custom_target(rerun ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} DEPENDS opencv)
endif()

Everything compiles just fine until I run the program, an error like this appears:

terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.12-pre) /media/sd/nam-detect/edgetpu-detection-camera/build/opencv/modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'

Aborted

libgtk2 is definitely installed:

$ sudo apt search libgtk2.0-dev
Sorting... Done
Full Text Search... Done
libgtk2.0-dev/eagle,now 2.24.32-3 arm64 [installed]
development files for the GTK+ library

Steps to reproduce

This code, which used to works without issue: https://github.com/Namburger/edgetpu-detection-camera

We are only seeing this behavior on one of the system o_0

Any suggestion would be highly appreciated!
Issue 1:
Code:

macro_rules! macro_ {
($t:ty) => {
#[test]
fn test() { }
}
}

struct Foo;
struct Bar;
macro_!(Foo);
macro_!(Bar);

Error:

a.rs:4:9: 4:22 error: duplicate definition of value `test` [E0428]
a.rs:4 fn test() { }
^~~~~~~~~~~~~
a.rs:1:1: 6:2 note: in expansion of macro_!
a.rs:11:1: 11:14 note: expansion site
a.rs:4:9: 4:22 help: run `rustc --explain E0428` to see a detailed explanation
a.rs:4:9: 4:22 note: first definition of value `test` here
a.rs:4 fn test() { }
^~~~~~~~~~~~~
a.rs:1:1: 6:2 note: in expansion of macro_!
a.rs:10:1: 10:14 note: expansion site
error: aborting due to previous error

Issue 2:
TaskBuilder::spawn() is causing a "conditional jump or move depends on uninitialized values(s)" error in valgrind.

fn main() { spawn(proc() {}) }

Is the absolute minimum required to reproduce, and the error message is still present if a TaskBuilder is created and TaskBuilder::spawn() is called directly. Tested on 18c451f (most recent master as of this post).
Issue 1:
I am testing the latest VS Code insiders build (Version 0.10.10-insider (0.10.10-insider)). With the introduction of the new Salsa JS language service, "Goto symbol" no longer works for JS files with old module pattern (anonymous closure) or with AMD modules. I understand that, as documented, Salsa can't resolve AMD references, but it should recognise the symbols inside the file.

Here's an example how it works in the latest stable build:

and here's with Salsa:

Issue 2:
From @warpdesign on February 17, 2016 11:21

I have activated salsa and when activated, some symbols cannot be found anymore in ES5 files.

For example, if I have a a file with only:

function toto() {
}

Typing @totowill work and highlight the toto function.

But if I wrap the code into a closure, it doesn't work anymore:

Without salsa, it works as expected, highlighting the toto function even if it is wrapped into a closure.

Code 0.10.8

Windows 10

Copied from original issue: microsoft/vscode#3079
Issue 1:
Environment

Windows build number: [Versión 10.0.18363.900]
PowerToys version: V0.19.2 (and V0.19.1)
PowerToy module for which you are reporting the bug (if applicable):Keyboard Manager

Steps to reproduce

Map keys:

[Play/Pause Media(Fn+F6)] -> [F6]

[F6] -> [Play/Pause Media(Fn+F6)]

Expected behavior

Play and pause media with a single click on the F6 key =)

Actual behavior

The map works just fine while inside the powertoys setting window. When change the window to another one or close de powertoys setting the [Play/Pause Media] don't trigger, the [F6(Fn+F6)] works fine instead.

Issue 2:
Summary of the new feature/enhancement

I want to map 'Print Screen' single button to run a shortcut 'Win Key + Print Screen'. To take screenshot with single key.

Remap keys only allow one key as source and target.

Remap shortcuts doesn't allow source to be one key which is in my example 'Print Screen'

Either add a new section for map key to shortcut. Or allow the Remap shortcuts to have source doesn't start by a modifier key.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/2004 on 2011-12-23 by @charris, assigned to unknown.

To wit:

In [13]: x = ones(5, maskna=1)

In [14]: x[2] = NA

In [15]: x.astype(double)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/charris/<ipython-input-15-c95438174230> in <module>()
----> 1 x.astype(double)

ValueError: Cannot assign NA to an array which does not support NAs

I suspect the easiest thing to do here is propagate the MASKNA flag.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1973 on 2011-11-04 by @bsouthey, assigned to @pierregm.

I get an error when displaying a masked array that contains the new missing value, np.NA under 64-bit Linux. But the operations seem to work as expected.

>>> import numpy as np
>>> np.__version__
'2.0.0.dev-7297785'
>>> b=np.ma.array([3,5,np.NA,6], mask=[0,0,1,0])
>>> b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3551, in __repr__
data=str(self), mask=str(self._mask),
File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3534, in __str__
res = self._data.astype("O")
ValueError: Cannot assign NA to an array which does not support NAs
>>> b._data
array([3, 5, NA, 6])
>>> b.sum()
14
>>> b.mask=[0,0,0,0]
>>> b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3551, in __repr__
data=str(self), mask=str(self._mask),
File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3534, in __str__
res = self._data.astype("O")
ValueError: Cannot assign NA to an array which does not support NAs
>>> b.sum()
NA(dtype='int64')
Issue 1:
Hi,

I followed the new instructions for the CMake build on Windows.

The C++ example program tf_tutorials_example_trainer.exe build and run successfully.

But the build of the PIP package exited with the following error:

ld_pip_package.vcxproj" (Standardziel) (1) ->
"C:\Users\jonas\projects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensor flow.vcxproj" (Standardziel) (3) ->
(ClCompile Ziel) ->
C:\Users\jonas\projects\tensorflow\tensorflow\python\lib\core\py_func.cc(165):
error C2466: cannot allocate an array of constant size 0 [C:\Users\jonas\projec ts\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj]

2398 Warnung(en)
1 Fehler

Issue 2:
(Copied from @laudney's comment on #17)

I've tried to follow your instructions. All seem to work flawlessly (for about 45min) until it failed with:

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Done Building Project "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default targets) -- FAILED.

"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default target) (1) ->
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj" (default target) (3) ->
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj" (default target) (4) ->
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj" (default target) (5) ->
(CustomBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [H:\PycharmProjects\t
ensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj]

30 Warning(s)
1 Error(s)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

There shouldn't be a warning when importing an svg icon. Or if there should be, please update docs to reflect the correct way of rendering the SVG icon in our code. Currently the docs don't show if any fontSize attribute needs to be passed in.

Current Behavior

When importing any svg icon, I get a warning saying:

Warning: Received true for a non-boolean attribute fontSize. If you want to write it to the DOM, pass a string instead: fontSize="true" or fontSize={value.toString()}.

I don't set a fontSize attribute in the tag, like how the docs show. This is part of what my code looks like:

import IconButton from 'material-ui-next/IconButton';
import DeleteIcon from 'material-ui-icons/Delete';

<IconButton onClick={() => this.setState({ openDialog: true })}>
<DeleteIcon />
</IconButton>

Steps to Reproduce (for bugs)

Import any icon from material-ui-icons package.

Render it.

See warning in console.

NOTE: I tried this in codesandbox but did not see the warning. But here is the link regardless:

https://codesandbox.io/s/qvo302329q

Context

I'm currently in the processing of migrating all Button components from Material-UI v.0.20 to v.1 in my application at work. Currently, the way I'm avoiding getting this warning is by actually not using SVG icons at all and using, for instance <Icon>delete</Icon> instead.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.31

material-ui-icons
1.0.0-beta.17

React
16.2.0

browser
Chrome v63.0.3239.84

Issue 2:
Is there any possibility that as part of the release process, the ES2015 Components can be included as part of the published NPM artifacts?

I'm working in a large React app, which is already doing transpiling and I don't want the babel transform-runtime as part of every component (babel-polyfill is already in the bundle). My primary motivation is reducing bundle size. In other libraries (react-router the ES2015 is built into an es folder, which assumes you're using a bundler that can understand these modules.

This might be as easy as writing a copy task from src to es although I haven't look into your build process too deeply.
Issue 1:
I dragged in an XML file (with the extension .config) into Atom and it tried to render it in the browser. Running v. 0.209.0 on Windows Server 2008 R2.

Issue 2:
Atom's drag&drop feature seem quite buggy. Sometimes it just won't open a dragged file, but even worse bug is when decides to open the file as if it was a real browser, efectively replacing the entire editor with the content of the file.

Video: http://youtu.be/EPRRFs9SQbs
Issue 1:
Hi.

I like this project very much. Please note that I have troubles to change the program's settings (see below), so that, it is possible that some of my comments/ideas may already be available.

I use Visual Studio and every time I select settings option, a window with Visual Studio code opens. What about having a nice Window to edit the program settings being open by default?

What about Ctrl+C and Ctrl+V to copy and paste selected text?

What about an option to copy selected text automatically immediately after selection?

What about an option to open by default a different terminal (e.g. UBUNTU) that PowerShell?

Regards CESBER

Issue 2:
I installed the terminal from the windows app store, created a powershell tab, ran a command.

I then wanted to copy that command text, so I highlighted it, then pressed ctrl + c but it doesn't appear to have copied the command text. I also tried ctrl + shift + c. Getting desperate I right clicked on the tab item itself, looking for a menu where I could select "copy" but no such menu seems to exist. I also tried right clicking with the text selected hoping for a menu where I could select "copy selection" but again no such menu exists. In desperation I gave up - copying text does not appear possible. What am I doing wrong?
Issue 1:
Hi,

We are currently implement b3dm (a format that encapsulates glTF) support in our project and have encountered a few problems with the current GLTFLoader implementation.

We need to support addition attribute (batchid, used to identify the different objects packed in the geometry), extensions (CESIUM_RTC) and potentially additional uniforms. However, there does not seem to be any way to add these new features without modifying the GLTFLoader file itself.

So my question is: how to support the extensible nature of glTF? Do we contribute directly to the source and add the attributes/extensions/uniforms that we need? Or does the loader need to be modified so extensions can be "plugged in" without changing the source?

Related question: when loading glTFs in a scene rendered using a logarithmic depth buffer, the model's shader are not modified to account for it, resulting in depth issues: http://jsfiddle.net/x6ufnz3y/. I implemented a small hack to fix the problem. Should this process be added to the loader natively? Or could Three provide a helper function to patch the materials?

Issue 2:
After introducing support for texture repeat and offset in #21852, the ambient occlusion map is repeated many times, despite the fact that we are setting the scale separately for each texture:

float2 inputs:scale = ${ buildVector2( texture.repeat ) }

To Reproduce

Steps to reproduce the behavior:

Have a model with tiled diffuse map and (obviously not tiled) AO map.

Export to USDZ

unzip USDZ archive and open USDA file

notice different scaling for each textures, diffuse texture may have scale major/minor from (1,1) and AO map should have a scale of (1,1)

Transfer USDZ file to iPhone/iPad

Open it in QuickLook and see AO map being tiled multiple times (probably as many as diffuse)

Expected behavior

AO map should not be tiled/repeated.

Screenshots

from #21871

Platform:

Device: [Desktop, Mobile]

OS: [Windows, MacOS, Linux, iOS]

Browser: [Chrome, Firefox, Safari, Edge]

Three.js version: [dev, r129]
Issue 1:
I've upgraded from Symfony 2.3 to Symfony 2.5 and encountered a problem.

Before I had the following code (entity with: Assert\Callback(methods={"isEmailCollectionValid", "isCompanySelected"}))

// this worked fine in Symfony 2.3 but stopped working properly in 2.5
public function isEmailCollectionValid(ExecutionContextInterface $context)
{
foreach ($this->getEmails() as $id => $email) {
$context->validateValue($email->getValue(), array(
new Assert\Email(array(
'message' => "'{{ value }}' is not a valid email.",
))
), 'emails['.$id.'].value');
}
}

Now I have the following code:

// this doesn't work properly (at least as I expect) in 2.5
public function isEmailCollectionValid(ExecutionContextInterface $context)
{
$validator = $context->getValidator();
$contextValidator = $validator->inContext($context);

foreach ($this->getEmails() as $id => $email) {
$contextValidator->atPath('emails['.$id.'].value')->validate($email->getValue(), array(
new Assert\Email(array(
'message' => "'{{ value }}' is not a valid email.",
))
));
}
}

I'm unable to add all the violations to the correspondent fields. Instead the path is being appended (i.e.: 1. "data.emails[0].value", 2. "data.emails[0].emails[1].value", and so on). And it seems (according to the sources), no way exists to overcome it. Older code works the same as the newer one in 2.5.

Moreover, if I have more validators in the same entity (in this entity I have two of them), then the first error path is appended to the second one, which also produces wrong error path.

Is it a bug or how can I fix it? Thanks.

Issue 2:
Hello,

When using Validator 2.5 to validate an array of scalars, the propertyPath of the returned violations has really strange values.

Consider the following script:

<?php

require 'vendor/autoload.php';

use Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Validation;

$constraints = array(
'foo' => array(
new Constraints\NotBlank(),
new Constraints\Date()
),
'bar' => new Constraints\NotBlank()
);

$collectionConstraint = new Constraints\Collection(array('fields' => $constraints));

$validator = Validation::createValidatorBuilder()
->setApiVersion(Validation::API_VERSION_2_5)
->getValidator();

$value = array(
'foo' => 'bar'
);

$violations = $validator->validate($value, $collectionConstraint);

foreach ($violations as $violation) {
var_dump($violation->getPropertyPath());
}

Output:

string(11) "[foo].[foo]"
string(17) "[foo].[foo].[bar]"

If I set Validation::API_VERSION_2_4 and call the old validateValue method, it outputs:

string(5) "[foo]"
string(5) "[bar]"

Is this something expected ?
Issue 1:
VSCode Version:0.10.13 insiders

OS Version:Windows 10

Steps to Reproduce:

Open a file with characters without indenting

Set cursor to the right and try to column select moving mouse to the left

You can't select the first characters on lines.

You can select the first characters if you start on the first character and move the mouse to the right.

Issue 2:
VSCode Version: 0.10.13-insider

OS Version: Windows 10

I am properly enjoying the new insider release - it offers so much! - and it is with great regret that I must file this first bug...

Steps to Reproduce:

Create a block of text such as this one:

var gulp = require('gulp');
var path = require('path');
var rimraf = require('rimraf');
var isarray = require('isarray');
var merge = require('merge-stream');
var concat = require('gulp-concat');
var newer = require('gulp-newer');

Place the caret on the first line, on the left of the var keyword.

Hold alt + shift and left-click on the right hand side of the var keyword on the last line to make a column selection.

Observe that if the mouse was even a few pixels overlapped with the space character, the column of spaces will also be included in the selection - the selection is biased towards the right.

Now repeat step two and make a single-line selection by holding shift and clicking on the right hand side of the var keyword on the first line - observe that the selection is biased to the left - i.e. you have to be almost completely past the space character or else it is excluded from the selection.

Clearly, column-select's behaviour is non-traditional in this regard.

Personally, I prefer to "draw" my column selections like you can in full-fat Visual Studio when you hold down alt. This shift-select style is fine but it should at least be consistent with U.I. norms.