WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Arik Kfir opened SPR-7451 and commented

If one wants to customize AnnotationMethodHandlerAdapter by subclassing it, it would be very useful to be able to also subclass ServletHandlerMethodResolver.

Affects: 3.0.3

Issue Links:

#10433 Make ServletHandlerMethodResolver top level type

3 votes, 4 watchers

Issue 2:
Bruno Navert opened SPR-5087 and commented

It would be useful to expose ServletHandlerMethodInvoker and ServletHandlerMethodResolver as public classes, rather than private inner classes. This would allow application code to call this directly to mimick the behaviour of Spring when calling handler methods.

I have one such use case in my application, and ended up copy/pasting the invoker class, which is far from ideal.

Affects: 2.5.4

Sub-tasks:

#14048 expose ServletHandlerMethodResolver AnnotationMethodHandlerAdapter.getMethodResolver(Object handler) to application code

7 votes, 11 watchers
Issue 1:
We don't currently expose any way of getting the PID of a child process. Arguably, this is a system-level detail that we may not want people to program to, but it should be possible to get. Currently, on a 64-bit system you can do this:

function pid(proc::Base.Process)
proc.handle != C_NULL || error("process not running")
int(unsafe_load(convert(Ptr{Uint32}, proc.handle + 72)))
end

Obviously not ideal. This also errors if the process has already finished when you call it, which can be unpredictable. What's a good API to this? Should we fold getpid into it as a zero-argument version?

Issue 2:
Right now I don't see an easy way to obtain the process id of something I've stared through spawn, readsfrom, etc. There does exist a getpid(), I think it should be extended.
Issue 1:
I think there should be a way to access all the entity constraints in Form class so that we can pass those information to client side without manually entering those constraints all over again in form class.

For example if we have code like this.

class User implements UserInterface, \Serializable
{
/**
* @var string
*
* @ORM\Column(name="first_name", type="string", length=64)
* @Assert\NotBlank(message="First name cannot be blank")
* @Assert\Length(max=64, maxMessage="First name cannot more than {{ limit }} characters long")
*/
private $firstName;
}

I would like to access these constraints with messages in form class so that we pass down these information to twig. Like this

<input type="text" required="required" data-required-msg="First name cannot be blank" name="firstname" data-max-length="64" data-max-length-msg="First name cannot be more than 64 characters long">

Here data attribute should be customizable.

Currently this cannot be achieved without code duplication in either twig or in form class directly.

Issue 2:
Description

My request is about the possibility of adding a paginator component to quickly create pagination for entities without requiring third party bundle. Other framework like Laravel, CakePHP or ZF have their own build in pagination system so, why not Symfony ?

I know there is some great community bundle to do that, like KnpPaginatorBundle but i think a framework like Symfony should not depend on a third bundle for this kind of feature, even if this bundle is actively maintain.

Finally, when i was searching for informations about pagination in Symfony, i was quiet surprised to see there is nothing about that in the official documentation, except some references to EasyAdminBundle which is not really related to the topic. Maybe it could be usefull to add a note about that in the doc ? Even if it's to redirect developers to community bundles. But this should probably be discussed in a new issue on the documentation repository.

Example

Here is a quick example for what i have in mind

<?php

namespace App\Controller;

use App\Repository\BlogRepository;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;

class BlogController extends Controller
{
/**
* @Route("/blog/{page}", name="blog_list", requirements={"page"="\d+"})
*/
public function index(int $page = 1, BlogRepository $blogRepository)
{
$query = $articleRepository->findAll();
$maxResult = 10;

return $this->render('blog/index.html.twig', [
'articles' => $this->paginate($query, $page, $maxResult)
]);
}
}
Issue 1:
A lot of times you want to look at a file for reference e.g the generated js while you modify ts.

The working files tend only only keep files with modification. It should behave like sublime where it stays open

Issue 2:
There is a desire to configure preview editors via settings:

allow to always pin an editor when it opens

allow to always pin a file when it opens from quick open

Original Post:

I would expect Ctrl+P opening a new editor (which it does) and then adding that file to working files (which it doesn't). Instead the file is just revealed in the tree view and I have to double click on it to add it.

Surely Ctrl+P should be viewed as a "I mean to edit" action and not "Just a quick glance"? Does anybody else share my view?
Issue 1:
Description

sklearn.metrics.precision_score gives 0.0 when class is 0 only.

Steps/Code to Reproduce

Example:

from sklearn import metrics

y = [0,0,0]
y_pred = [0,0,0]
print(metrics.precision_score(y, y_pred)) # returns 0.0

Expected Results

The expected result should be 1.0 because all the values are the same.

Actual Results

The actual result is 0.0

Versions

/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:

Atlas (http://math-atlas.sourceforge.net/) libraries not found.

Directories to search for the libraries can be specified in the

numpy/distutils/site.cfg file (section [atlas]) or by setting

the ATLAS environment variable.

self.calc_info()

/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:

Blas (http://www.netlib.org/blas/) libraries not found.

Directories to search for the libraries can be specified in the

numpy/distutils/site.cfg file (section [blas]) or by setting

the BLAS environment variable.

self.calc_info()

/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:

Blas (http://www.netlib.org/blas/) sources not found.

Directories to search for the sources can be specified in the

numpy/distutils/site.cfg file (section [blas_src]) or by setting

the BLAS_SRC environment variable.

self.calc_info()

System

python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision
259383]]
executable: /usr/local/bin/python
machine: Linux-4.4.0-17763-Microsoft-x86_64-with-Ubuntu-18.04-bionic

BLAS

macros:
lib_dirs:
cblas_libs: cblas

Python deps

pip: 18.0

setuptools: 39.2.0

sklearn: 0.20.0

numpy: 1.15.2

scipy: 1.1.0

Cython: 0.28.3

pandas: 0.23.1

I would be happy to help fix this if folks want. For now, I'm just going to check if all values are zero and if they are, I'll return 1.0 Thanks!

Issue 2:
Description

precision_score shows incorrect value

Steps/Code to Reproduce

A=np.array([[0,0,1],[0,1,0],[0,0,1]])

B=A

precision_score(A,B, average=None)

array([ 0., 1., 1.])

Expected Results

array([ 1., 1., 1.])

Actual Results

array([ 0., 1., 1.])

Versions

import platform; print(platform.platform())

Darwin-14.5.0-x86_64-i386-64bit

import sys; print("Python", sys.version)

('Python', '2.7.10 (default, Jul 14 2015, 19:46:27) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]')

import numpy; print("NumPy", numpy.version)

('NumPy', '1.13.3')

import scipy; print("SciPy", scipy.version)

('SciPy', '1.0.0')

import sklearn; print("Scikit-Learn", sklearn.version)

('Scikit-Learn', '0.18.1')
Issue 1:
Vue.js version

2.1.10

Reproduction Link

http://jsfiddle.net/mattoconnell408/df4Lnuw6/137/

Steps to reproduce

Use PhantomJS 2.1.1

Set up a checkbox within a component.

Bind a handler function to the change event on the checkbox

Bind a data value to the v-model attribute

What is Expected?

The expected behavior is shown in the fiddle.

The value bound to v-model should change to true when the checkbox is clicked. The handler method should emit the new v-model value.

What is actually happening?

Possible incompatibility issue with Phantom. An initial click on the checkbox should change the value bound in the v-model to true. Instead, it reports false. The v-model value is changing with each click. It appears the handler bound to the @change event is being called before the v-model value is being updated. This is only happening with Phantom, but works as expected everywhere else.

Issue 2:
Vue Version

2.1.10

Issue Description

Based on other examples I've seen, when embedding a checkbox in a custom component a 'proxy' value has to be used to emulate the native v-model behaviour for a checkbox or radio input.

This is particularly important when binding v-model on the custom component to an array as opposed to a boolean.

This technique works fine in Firefox and Webkit-based browsers but fails in IE and Edge.

Demonstration of Issue

http://jsfiddle.net/andrewcourtice/jgxzbbvv/

Steps to Reproduce

Open the above fiddle in a Firefox or a Webkit-based browser

Check the checkboxes and note the array of selected items being updated correctly

Open the above fiddle in IE or Edge

Check the checkboxes and note the difference in behaviour to step 2

Expected Outcome

The array of selected items (and the raw output) should be updated as each item is checked.

Actual Outcome

In IE and Edge the raw output is displaying a boolean value and the checked state of the checkboxes is inconsistent.

Thanks!
Issue 1:
I'm finding when I link my program with -mwindows, it will crash instantly

when run

Issue 2:
Some static functions may only make sense for certain constrained typarams, but this is disallowed. For example:

type A<T> = ~[T];

impl<T> A<T> {
static fn new() -> A<T> { ~[] }
}

impl<T: Copy> A<T> {
static fn new_copyable() -> A<T> { ~[] }
}

fn main() {}

However, rust errors with this message:

test.rs:7:0: 9:1 error: duplicate definition of type A
test.rs:7 impl<T: Copy> A<T> {
test.rs:8 static fn new_copyable() -> A<T> { ~[] }
test.rs:9 }
test.rs:3:0: 5:1 note: first definition of type A here:
test.rs:3 impl<T> A<T> {
test.rs:4 static fn new() -> A<T> { ~[] }
test.rs:5 }
error: aborting due to previous error
Issue 1:
If the path to the OpenCV source code contains a "+" character (common scenario: code is extracted into folder named like opencv-3.4.1+0dfsg1), generation of the headers.txt used in python bindings generation fails silently during configuration. Building off this configuration fails spectacularly, but without any indication that this is the culprit. This seems to be caused by the call to ocv_list_filter on line 23 of modules/python/bindings/CMakeLists.txt, as the output of the command is empty in this situation.

While an easy solution might be "don't put opencv in a folder with a plus in it", I suspect this will interfere with some debian package building software.

Issue 2:
If the source or binary path in cmake contain the character sequence "++" (without quotation marks) I get a cmake error when trying to create a project for OpenCV 3.1:

CMake Error at cmake/OpenCVUtils.cmake:76 (if):
if given arguments:

"G:/Desktop/C++ projects/project" "MATCHES" "^G:/Desktop/C++ projects/sources" "OR" "G:/Desktop/C++ projects/project" "MATCHES" "^G:/Desktop/C++ projects/project"

Regular expression "^G:/Desktop/C++ projects/sources" cannot compile
Call Stack (most recent call first):
CMakeLists.txt:437 (ocv_include_directories)

Apparently this line inside OpenCVUtils causes the problem:

if("${__abs_dir}" MATCHES "^${OpenCV_SOURCE_DIR}" OR "${__abs_dir}" MATCHES "^${OpenCV_BINARY_DIR}")

I noticed the problem because I have a folder called "C++ Projects" where I keep C++ projects and libraries.
Issue 1:
Not sure if this is the right place for an 404 error...

The link to CIFAR-10 source code on Tensorflow webpage reports 404 since yesterday afternoon (08/May/2017), kindly help to fix it.

This is the page found contains error:

https://www.tensorflow.org/tutorials/deep_cnn

This is the link found to reports 404:

https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow_models/tutorials/image/cifar10/

Thanks

Issue 2:
I am learning about Convolutional Neural Networks from the tutorial:

https://www.tensorflow.org/tutorials/deep_cnn

Inside it there is a link for getting the code but it is not working:

https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow_models/tutorials/image/cifar10/

how can I get the code?
Issue 1:
I am now developing for a new app, and I need to update the progress bar manually when loading an image. However, glide's api seems unfriendly when I try to get the current progress.

In UIL lib, I can easily set an ImageLoadingListener to do this . I try to do the same thing but not modify the glide core lib, but I found it's hard for me.

So in glide lib , how can i listen to the progress of image's loading.

If there's no good answer, i think i had to use rxjava or modify the glide core lib(it's terrible).

Thank goodness for reading my aweful English

Issue 2:
Could tell me which api can get the progress when loading the image?thanks!
Issue 1:
Background

I am trying to make a popup window (child frameless BrowserWindow) appear at a specific position related to a DOM element of another window. I managed to get the child window located [almost] appropriately using getContentBounds() on the main window, adding the DOM element position given from element.getBoundingClientRect(), and setting the window position using setPosition().

What goes wrong

When the DPI scaling factor is not 100%, on Windows (for example 125%, configured in the display settings), the child window position is off by a few pixels. Obviously, this is because the window position must be given in CSS pixels units (and not actual physical pixels), and the getContentBounds / setPosition / etc... methods all return and take integral numbers as parameters. The window position is therefore rounded arbitrarily and we loose accuracy.

Solution ?

A possible solution could possibly be for the getContentBounds / setPosition /etc... methods to allow the use of floating point numbers, and only round them after translating them to physical pixel units.

Note: this would also probably solve this problem: #9477

Issue 2:
I have tried using a number of Electron apps on Ubuntu 18.10 (which is not released yet) , e.g. VS Code, Atom, Skype, and none of them work - they all segfault immediately after launch with the similar stack traces:

Atom (1.30.0):

#0 0x0000000000b87650 in ()
#1 0x00007ffff7d833e2 in node::http2::Http2Session::Callbacks::Callbacks(bool) () at /usr/share/atom/libnode.so
#2 0x00007ffff7d834a5 in () at /usr/share/atom/libnode.so
#3 0x00007ffff7fe398a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe008, env=env@entry=0x7fffffffe018)
at dl-init.c:72
#4 0x00007ffff7fe3a89 in call_init (env=0x7fffffffe018, argv=0x7fffffffe008, argc=1, l=<optimized out>) at dl-init.c:30
#5 0x00007ffff7fe3a89 in _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffe008, env=0x7fffffffe018) at dl-init.c:119
#6 0x00007ffff7fd40ca in _dl_start_user () at /lib64/ld-linux-x86-64.so.2
#7 0x0000000000000001 in ()
#8 0x00007fffffffe41c in ()
#9 0x0000000000000000 in ()

VS Code (package version: 1.27.1-1536226049):

#0 0x0000000000ab6fd0 in ()
#1 0x00007ffff7d839a2 in node::http2::Http2Session::Callbacks::Callbacks(bool) () at /usr/share/code/libnode.so
#2 0x00007ffff7d83a65 in () at /usr/share/code/libnode.so
#3 0x00007ffff7fe398a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe108, env=env@entry=0x7fffffffe118)
at dl-init.c:72
#4 0x00007ffff7fe3a89 in call_init (env=0x7fffffffe118, argv=0x7fffffffe108, argc=1, l=<optimized out>) at dl-init.c:30
#5 0x00007ffff7fe3a89 in _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffe108, env=0x7fffffffe118) at dl-init.c:119
#6 0x00007ffff7fd40ca in _dl_start_user () at /lib64/ld-linux-x86-64.so.2
#7 0x0000000000000001 in ()
#8 0x00007fffffffe4d9 in ()
#9 0x0000000000000000 in ()

Output of node_modules/.bin/electron --version:

Operating System (Platform and Version): Ubuntu 18.10 amd64

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable):
Issue 1:
When running integration tests in v1beta1 mode, I'm observing a bunch of errors like that in logs:

E0407 10:20:06.094687 741 reflector.go:143] Failed to watch *api.Node: field label not supported: metadata.name

This might be related to #6423.

cc @lavalamp @fgrzadkowski

Issue 2:
My #6423 broke it for v1beta3, then #6442 fixed it for v1beta3 and broke it for v1beta1. I'm working on a fix.
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu14.04

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.8

Python version: 2.7.5

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version: 9.0 / 7.0.5

GPU model and memory:

Exact command to reproduce:

Describe the problem

When using tf.contrib.trt.create_inference_graph, I meet the following error, it seems that dense layer is not support because the input tensor is not rank 4 ? Why has this request on dense layer ?

subgraph conversion error for subgraph_index:9 due to: "Unimplemented: Require 4 dimensional input. Got 2 dense/MatMul" SKIPPING

Source code / logs

Need not to code, clear above ...

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu14.04

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.8

Python version: 2.7.5

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version: 9.0 / 7.0.5

GPU model and memory:

Exact command to reproduce:

Describe the problem

When using tf.contrib.trt.create_inference_graph, I meet the following error, it seems that dense layer is not support because the input tensor is not rank 4 ? Why has this request on dense layer ?

subgraph conversion error for subgraph_index:9 due to: "Unimplemented: Require 4 dimensional input. Got 2 dense/MatMul" SKIPPING

Source code / logs

Need not to code, clear above ...
Issue 1:
define(function (require, exports, module) {
var Test = {
test: function() {
console.log(this); // print the Test object
require([], function(){
console.log(this); // print the global/window object
}.bind(this));
}
};
return Test;
});

require('./test').test();

As the above code, the bind operation to the amd require callback is useless. It prints the global context instead of the parameter passed to the bind function.

Tested in webpack 1.12.13 and 2.0.7-beta.

Issue 2:
When using Webpack to package a file containing an AMD-style require() with a bound expression callback like:

require(['dependency'], function (dependency) {
...
}.bind(this));

The this context within the callback fails to match the expected because the call is wrapped in an outer function expression:

__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(1)]; (function (dependency) {
...
}.bind(this).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});

Example of the issue:

https://github.com/bregenspan/webpack-amd-require-issue

https://rawgit.com/bregenspan/webpack-amd-require-issue/master/index.html

One quick remedy that solves this particular case (but needs further testing) is the following patch:

https://gist.github.com/bregenspan/6cb090011fafe428fc97 . But I wanted to make sure this is indeed an issue and there isn't already a configuration option I'm missing somewhere that would solve this, before submitting any PR.

-Ben

PS: thank you for releasing + maintaining this great tool!
Issue 1:
sklearn.metrics.mutual_info_score [Source] does not calculate the mutual information correctly. For example: mutual_info_score([0, 0, 1], [0, 1, 1]) yields 0.17442 while it should have been 0.25163.

Blame: Commit a3dacb6 replaced np.log2 with np.log.

Fix: replacing the log_e with log2 repairs sklearn.metrics.mutual_info_score

Issue 2:
In Scikit-learn page, "Python 3.x support" in Coding guidelines section is written twice.

http://scikit-learn.org/stable/developers/index.html#python-3-x-support
Issue 1:
🚀 Feature request

Enable multilabel classification mode and regression mode for the widgets in the model repo.

Create the corresponding tags that can be read from the model card.

Motivation

Models for sequence classification by default support three modes: binary/multiclass classification, multilabel classification, and regression. However, the widgets in the model repository support only multiclass mode (where probabilities of classes sum to 1). This can be misleading for the users who taste the models using the widgets. For example, my model https://huggingface.co/cointegrated/rubert-tiny-toxicity, which is intended for multilabel classification, but the widget normalizes the predicted probabilities to sum to 1, which leads to confisuion of the potential users of the model.

Your contribution

If you show me where to start, I could start working on implementing this feature. However, currently I don't know what part of the Huggingface repository is responsible for widgets and underlying computations.

Issue 2:
🚀 Feature request

There seem to be differences between S2T and Wav2Vec2 which are hard to understand reason about that may be fixable.

Motivation

Adding something like AutomaticSpeechRecognitionPipeline might be desirable and would be hard to do in current state. If/When new multimodal models are added it is going to add more and more complexity. Aiming for consistent API is desirable IMO.

Description

There are no AutoProcessor.from_pretrained.

Wav2Vec2 cannot use skip_special_tokens for the decode variant (because it skips <pad> tokens early leading to removing all duplicate letters from the output. IMO it's a "bug" as <pad> in the context of CTC is not a special_tokens (at least until letters are resolved).

Wav2Vec2 uses 1 forward pass, where S2T uses generate function. It would be nice, if there could be 1 interface only. (maybe just overload the Wav2Vec2ForCTC.generate ?

S2T overloads input_ids with float tensors when generating, which works in practice but does seem like a piggy-back of the generate function and is definitely confusing to use. If generate is generic enough maybe then input_ids should be renamed to reflect that (input_ids are IDs everywhere in the rest of transformers. It could be a simple internal variable rename, I don't imply we should change any function signature anywhere, just that the variable is not necessarily IDs. Isn't it a bit like inputs_embed ?

Wav2Vec2Processor returns 'input_values' where S2TProcessor returns 'input_features'. They seem (at least in appearance) to be the same. Would it be better to use only 1 name if they do ?

Your contribution

Happy to contribute with PRs but I lack the more general view to be sure about what direction to take, and where are the "better" fixes.