WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I think the impl is just necessary to get Rust to try to instantiate it (otherwise it assumes it's unused). This may be a duplicate of issue #4363.

use std::sync::Mutex;

struct Foo {
foo: Mutex<Option<Foo>>,
}

impl Foo {
fn bar(self) {}
}

fn main() {}

task 'rustc' has overflowed its stack

Issue 2:
A struct inside an enum generates a type identifier (as it does outside when used outside an enum).

enum S { C {a:int, b:int}};
enum C {};

t.rs:10:4: 10:13 error: duplicate definition of type `C`
t.rs:10 enum C {};
^~~~~~~~~
t.rs:9:13: 9:29 note: first definition of type `C` here
t.rs:9 enum S { C {a:int, b:int}};
^~~~~~~~~~~~~~~~

In particular the following declaration doesn't typecheck.

enum S { S {a:int, b:int}};

t.rs:6:13: 6:29 error: duplicate definition of type `S`
t.rs:6 enum S { S {a:int, b:int}};
^~~~~~~~~~~~~~~~
t.rs:6:4: 6:30 note: first definition of type `S` here
t.rs:6 enum S { S {a:int, b:int}};

This is inconsistent with the general case in which such is allowed. E.g., both declarations below type check, despite type and value constructors having the same identifier:

enum S { S(int, int) }
struct S {a:int, b:int};

As a sidenote, we can't create values of these generated types even if wished to do so for some reason, since the value constructor associated with the struct field is set to create values of the enum type.

enum S { C {a:int, b:int} };
let k : C = C{a:0, b:0};

t.rs:10:12: 10:13 error: found value name used as a type: DefVariant(syntax::ast::DefId{crate: 0, node: 7}, syntax::ast::DefId{crate: 0, node: 14}, true)
t.rs:10 let k : C = C{a:0, b:0};

My tests were performed on v0.8, but the bug was confirmed to be present in 0.9pre. Using Linux, OpenSUSE 13.1
Issue 1:
Apologies in advance if this is a duplicate.

This is more about the aesthetics of the notifications (functionally, no problems). Even when I try to create them manually with new Notification("abc"), I get an alert box instead of the notification one.

This does not seem like an OS issue as $ notify-send abc xyz and other applications give notifications as expected.

Issue 2:
Notifications on Ubuntu are shown as alerts instead of regular notification.

Is this how notifications are supposed to look on ubuntu ?
Issue 1:
Right now, this is not supported, but I'm not yet sure if there's a reason behind that. TODO(julie): investigate

Issue 2:
After a9b1270 landed, http no longer imports Observable from @reactivex but rather uses one exported by angular2/angular2. This is good since it limits http dependency.

Unfortunately we still got a place where Rx is dependent upon directly: in mock_backend.ts

mock_backend imports Subject and ReplaySubject. While we re-exporting Subject on angular2\angular2 this is not the case for ReplaySubject. The current situation means that we need to either bundle entire RxJS with http or approach it as an external dependency: neither of the 2 is ideal.

@robwormald do you see any quick-wins here?
Issue 1:
Description

Unfortunately, I am not 100% sure, that this is a bug, but the LeaveOneOut cross-validation is at least not behaving as I'd expect.

Steps/Code to Reproduce

I use this matrix:

R A B C D E F G H

0 149 1 0 0 0 0 0 1 0

1 98 0 1 0 0 0 0 1 0

2 72 0 0 1 0 0 0 1 0

3 74 0 0 0 1 0 0 1 0

4 124 1 0 0 0 0 0 0 1

5 71 0 1 0 0 0 0 0 1

6 53 0 0 1 0 0 0 0 1

7 64 0 0 0 1 0 0 0 1

8 186 1 0 0 0 1 1 1 0

9 127 0 1 0 0 1 1 1 0

10 121 0 0 1 0 1 1 1 0

11 104 0 0 0 1 1 1 1 0

12 98 1 0 0 0 0 1 1 1

13 64 0 1 0 0 0 1 1 1

14 38 0 0 1 0 0 1 1 1

15 17 0 0 0 1 0 1 1 1

and this code to fit R by using A-H:

import pandas as pd

import numpy as np

import sklearn

from sklearn.cross_decomposition import PLSRegression

from sklearn.metrics import mean_squared_error

from math import sqrt

from sklearn.model_selection import LeaveOneOut

from sklearn.model_selection import cross_val_score

df = pd.read_csv('PSLR.csv', delimiter=';') # I read the matrix from file. This is the matrix given above

y = df['R']

X = df[['A','B','C','D','E','F','G','H']]

pls2 = PLSRegression(n_components=3)

num_folds = 3

num_instances = len(X)

loocv = LeaveOneOut()

results = cross_val_score(pls2, X, y, cv=loocv)

print("Accuracy: %.3f%% (%.3f%%)" % (results.mean()*100.0, results.std()*100.0))

print(results)

Expected Results

I expected to get a numerical result from the cross validation

Actual Results

Accuracy: 0.000% (0.000%)

[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]

Versions

System:

python: 3.7.0 (default, Oct 2 2018, 09:18:58) [Clang 10.0.0 (clang-1000.11.45.2)]

executable: /usr/local/opt/python/bin/python3.7

machine: Darwin-18.2.0-x86_64-i386-64bit

BLAS:

macros: NO_ATLAS_INFO=3, HAVE_CBLAS=None

lib_dirs:

cblas_libs: cblas

Python deps:

pip: 18.1

setuptools: 40.4.3

sklearn: 0.20.1

numpy: 1.15.4

scipy: 1.1.0

Cython: None

pandas: 0.23.4

Issue 2:
from sklearn.datasets import make_regression
from sklearn.cross_validation import cross_val_score, LeaveOneOut
from sklearn.linear_model import Ridge

X, y, coef_ = make_regression(random_state=42, noise=1, n_samples=200, coef=True)
cross_val_score(Ridge(), X, y, cv=LeaveOneOut(len(X)))

array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,

0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,

0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,

0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,

0., 0., 0., 0., 0., 0., 0., 0.])

Maybe the single sample in the LOO is not interpreted correctly? :-/
Issue 1:
The FancyZones zone editor should show the dimensions of each zone in pixels.

FancyZones is a tool for perfectionists and my OCD was seriously triggered, when I just had to eyeball the dimensions of the zones.

Issue 2:
Summary of the new feature/enhancement

Sizing of custom zones in editor by dragging mouse is a little bit coarse (hit and miss) in terms of getting close to edges of screen symmetrically and allowing window edges of multiple zones to line up neatly. Some possible solutions are suggested for consideration.

Proposed technical implementation details (optional)

Perhaps have an option for the editor to snap to a grid of user specified n pixels.

Perhaps have optional ability to input window dimension and position directly in both absolute terms (n x n pixels) and in terms of percentage of screen width and height.
Issue 1:
Hi,

I know this an already open/closed issue but I think bootstrap MUST have a convenient way to load ajax content into modals (and popovers).

At the moment I use https://github.com/Nikku/jquery-bootstrap-scripting (even done some minor recently merged modifications into it).

Could it be the starting point for a further and better integrated work into bootstrap ?

A markup driven ajax content loading into modals is definitively a good user experience and an unobtrusive way to do the work without writing pain in the ass javascript code.

Please, let's discuss that.

Issue 2:
Hello,

Tabs do not seem to be working for me when used within Popover.

What happens is following:

Popover opens

Active tab on click changes

Tab content is not changing <-- PROBLEM

Tabs are created correctly and if you try them outside of popover they work fine.

Here's live demo: http://jsfiddle.net/iboros/nCfBf/

What seems to happen is that elements get duplicated, however it is not clear to me how to effectively eliminate this issue. What I was doing in past is cloning content and changing ids and hrefs but this is ineffective if you want to apply select2.js or something similar on the elements within tab content.

I hope somebody provides a solid and effective workaround.
Issue 1:
Check-boxes in that picture establish CategoryGroupAttr relation. that mean if attr 3 is checked than new entity CategoryGroupAttr should be created with category where we currently in and group 1 and attr 3. what's the best way to create that form. right now i do that in CategoryType:

$builder->addEventListener(FormEvents::BIND, function(FormEvent $event) {

$data = $event->getData();

if(null == $data) return;

$form = $event->getForm();

$data->removeAllGroupedAttrs();

foreach ($form->get('categorilizedGroups') as $categorilizedGroup)
{

$group = $categorilizedGroup->get('group');

foreach ($group->get('groupedAttributes') as $groupedAttr)
{
$attr = $groupedAttr->get('attribute');

if($attr->get('actived')->getData())
{
// estabilish relation
$categoryGroupAttrReference = new CategoryGroupAttributeRef();
$categoryGroupAttrReference->setAttribute($attr->getData());
$categoryGroupAttrReference->setGroup($group->getData());
$categoryGroupAttrReference->setFiltered((bool)$attr->get('filtered')->getData());
$data->addGroupedAttribute($categoryGroupAttrReference);
}
}

}
});

what's the best way to save that form

Issue 2:
Check-boxes in that picture establish CategoryGroupAttr relation. that mean if attr 3 is checked than new entity CategoryGroupAttr should be created with category where we currently in and group 1 and attr 3. what's the best way to create that form. right now i do that in CategoryType:

$builder->addEventListener(FormEvents::BIND, function(FormEvent $event) {

$data = $event->getData();

if(null == $data) return;

$form = $event->getForm();

$data->removeAllGroupedAttrs();

foreach ($form->get('categorilizedGroups') as $categorilizedGroup)
{

$group = $categorilizedGroup->get('group');

foreach ($group->get('groupedAttributes') as $groupedAttr)
{
$attr = $groupedAttr->get('attribute');

if($attr->get('actived')->getData())
{
// estabilish relation
$categoryGroupAttrReference = new CategoryGroupAttributeRef();
$categoryGroupAttrReference->setAttribute($attr->getData());
$categoryGroupAttrReference->setGroup($group->getData());
$categoryGroupAttrReference->setFiltered((bool)$attr->get('filtered')->getData());
$data->addGroupedAttribute($categoryGroupAttrReference);
}
}

}
});

what's the best way to save that form
Issue 1:
Gowrishankar V opened SPR-5719 and commented

In my webapp I have multiple PPC configured in different context files. The primary context file is initialized through ContextLoaderListener and others are imported into the primary context xml file.

In the primary context file, I have a PPC, which is initializing. Then there are other PPC in context files that are in jars which are initialized through imports. The PPC in those context files are not being initialized. If I remove the PPC from the primary context file, then one of the other PPC is being initialized. From my meddling around the code, it seems like only one PPC would be initialized per Application context, with or without imported context xml files.

Currently I am including all the files though the PPC in my primary context file.

I am wondering if this is a bug or is this how it is supposed to work?

Affects: 2.5.6

Issue Links:

#11094 Placeholders not resolved when using multiple PropertyPlaceHolderConfigurers ("duplicates")

#11094 Placeholders not resolved when using multiple PropertyPlaceHolderConfigurers

3 votes, 4 watchers

Issue 2:
Gisbert van Rossum opened SPR-6428 and commented

When using 2 PropertyPlaceHolderConfigurers, placeholders declared (and given a value) in the first PPC are not resolved in the second PPC.

<bean id="configurer1" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

<property name="properties">

<bean class="java.util.Properties">

<constructor-arg>

<map>

<entry key="resourceDirPlaceHolder">

<value>myResourceDir</value>

</entry>

</map>

</constructor-arg>

</bean>

</property>

<property name="order" value="1"/>

<property name="ignoreUnresolvablePlaceholders" value="true"/>

</bean>

<bean id="configurer2" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

<property name="locations">

<list>

<value>classpath:${resourceDirPlaceHolder}/props.properties</value>

</list>

</property>

</bean>

this configuration results in:

java.io.FileNotFoundException: class path resource [${resourceDirPlaceHolder}/props.properties] cannot be opened because it does not exist

Affects: 2.5.6

Attachments:

multiplePPCs.zip (4.84 kB)

Issue Links:

#10389 only the first PropertyPlaceHolderConfigurer is initialized. Others are not ("is duplicated by")

#10389 only the first PropertyPlaceHolderConfigurer is initialized. Others are not

Referenced from: commits spring-attic/spring-framework-issues@09aea36

2 votes, 2 watchers
Issue 1:
I installed Superset 2.0.0 via pip. I get the following error when running superset after installation:

$ superset
...
ModuleNotFoundError: No module named 'werkzeug.wrappers.etag'

How to reproduce the bug

I installed Superset via pip in a clean Python 3.8 virtual environment on Linux:

$ mkdir superset-2.0.0
$ cd superset-2.0.0
$ python3.8 -m venv venv
$ source ./venv/bin/activate
$ pip install --upgrade setuptools pip wheel
$ pip install apache-superset==2.0.0
$ pip install pillow mysqlclient gevent
$ vim superset_config.py
$ export PYTHONPATH=/home/superset/superset-2.0.0
$ export FLASK_APP=superset
$ superset
...
ModuleNotFoundError: No module named 'werkzeug.wrappers.etag'

Expected results

Superset runs without error.

Actual results

Superset crashes with Python ModuleNotFoundError.

Environment

superset version: Superset 2.0.0

python version: Python 3.8.10

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional Information

I notice that requirements/base.txt lists werkzeug==2.0.3 so I installed that manually and superset runs fine after.

Issue 2:
Is your feature request related to a problem? Please describe.

My problem arises when I want to create a chart that responds to filters in the dashboard in a customized way, making use of the templating engine and the filter_values() function.

I usually know what SQL query I need, so I go to SQL Lab, write the query with the filter_values() function already included, and... no values are returned. I can't "explore" the results and create my chart!

What I usually do (which is what frustrates me) is: I create a version of the query which returns some results (with placeholder values for the filters), and then in the chart I edit my datasource and add all the filter_values() lines.

Describe the solution you'd like

I would like it to be possible to add datasources directly from SQL code, with a better interface for changing these datasources (currently it's a tiny text box when I click the grey Datasource box in the Chart tab).

I would also like to be able to name these datasources something other than null.my_username-query_name-random_string.

Describe alternatives you've considered

An alternative would be allowing the user to "explore" queries that return no results directly from SQL Lab, because queries with the filter_values() function can only ever return results when inside a dashboard with the respective filters.

Additional context

None.
Issue 1:
font family is :

Monaco,Droid Sans Mono, Droid Sans Fallback

Issue 2:
My OS openSUSE 13.2 (Harlequin) (x86_64) 64 位 with GNOME 3.14.2

Atom is 0.190.0

markdown-preview 0.148.0

#ymsWebClient

###build dist
1. 手工删当前的额dist文件夹

2. 项目根目录下执行命令
`
gulp build
`

<h1 id="ymswebclient">ymsWebClient</h1>
<h3 id="build-dist">build dist</h3>
<ol>
<li><p>手工删当前的额dist文件夹</p>
</li>
<li><p>项目根目录下执行命令
<code style="font-family: DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei;">gulp build</code></p>
</li>
</ol>

But privew is

config.cson

"*":
"exception-reporting":
userId: "3c3323ae-d7b7-8749-bdce-32c65bf202da"
welcome:
showOnStartup: false
core:
disabledPackages: [
"welcome"
"language-r"
"javascript-snippets"
"git-diff-details"
]
themes: [
"atom-dark-ui"
"solarized-dark-syntax"
]
projectHome: "/home/mingjunyang/git"
editor:
invisibles: {}
showIndentGuide: true
tabLength: 4
zoomFontWhenCtrlScrolling: false
softWrap: true
fontFamily: "DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei"
fontSize: 22
"atom-beautify":
_analyticsUserId: "9821831b-a2aa-4903-a52f-3599aea0f6c0"
js_keep_function_indentation: true
css_newline_between_rules: true
css_selector_separator_newline: true
minimap:
plugins:
"git-diff": false
"language-context-free":
variation: "A"
"todo-show":
ignoreThesePaths: [
"/node_modules/"
"/.git/"
"/app/bower_components/"
"/app/dist/"
]
"tree-view":
hideVcsIgnoredFiles: true
"css-color-highlight": {}
"atom-color-highlight": {}
"autocomplete-plus": {}
"autocomplete-clang":
preCompiledHeaders: {}
std: {}
"markdown-preview": {}
Issue 1:
Description of the problem

#12458 "Fix FileLoader duplicate request issues" seems to have introduced a new problem. When the same file is loaded with high frequency and ArrayBuffers are used then this message is likely to appear:

Uncaught DOMException ... ArrayBuffer at index 0 is already neutered.

You can reproduce this easily with example webgl_loader_obj2_run_director. Select a high worker count; minimum 4 better 8 or 12. Watch the log for the appearance of the error. Due to the DOMException the worker feed gets stalled.

When I revert to r87 the issue is gone. I have a potential fix, but I am not 100% sure why it works:

https://github.com/kaisalmen/three.js/blob/FileLoaderRegression/src/loaders/FileLoader.js

I made loading a member of FileLoader and I think due to the now existing dependency memory of the two objects is no longer released independently. @takahirox do you mind have a look?

Kai

Three.js version

Dev

r89

r88

Browser

All of them

OS

All of them

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
ConvexGeometry appears to be generating extra internal faces.

There are calls to Math.random() in the algorithm, so the output is not deterministic. Several refreshes may be required to see the issue.

Only tested on macOS.

Three.js version

Dev

r82 and later

...

/ping @Mugen87 Maybe this problem would interest you? ;-)
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.19.0

Expected results

Want the ability to filter the dashboard with an array rather than string values only. Example:

Actual results

Only able to filter based on set string values

Steps to reproduce

As shown above

Issue 2:
It is difficult to find any meaningful information about the deckgl charts.

Would it please be possible to add at least rudimentary documentation providing a brief overview of the accepted geospatial formats (e.g. GeoJSON) and any requirements such as coordinate reference system (e.g. epsg 4326?), geometry types (e.g. do Multipolygons work or only Polygons?) etc.

Thanks.
Issue 1:
This is a bit newbie-unfriendly:

>>> def f(params, data):
... return (...)
>>> minimize(f, x0, args=mydata)
...
TypeError: can only concatenate tuple (not "list") to tuple

This could use similar logic as in scipy.integrate.quad, which has

if not isinstance(args, tuple):
args = (args,)

Issue 2:
I was a bit unexpected behavior using gaussian_filter, especially on image boundaries - corners. I have generated a noisy image with a Gaussian distribution and that I was expecting that using a Gaussian filter with sufficient sigma I get an image with zeros. But I got high positive values in top-left, and bottom-right corner and negative values in top-right and bottom-left corner; and this values go up to 0.5 of initial sigma used for generating.

Reproducing code example:

import numpy as np
import matplotlib.pyplot as plt
from scipy import ndimage

np.random.seed(0)
im = np.random.normal(loc=0, scale=0.3, size=(300, 250))
im_blur1 = ndimage.gaussian_filter(im, sigma=50, order=0, mode='nearest')

plt.figure(figsize=(12, 5))
plt.subplot(121), plt.title('image')
plt.imshow(im, plt.cm.gray), plt.colorbar()
plt.subplot(122), plt.title('scipy')
plt.imshow(im_blur1, plt.cm.gray), plt.colorbar()

Output

Scipy/Numpy/Python version information:

Scipy - 0.18.1

Numpy - 1.12.1

Python - 2.7.13

('Linux', 'knuth', '4.9.0-6-amd64', '#1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)', 'x86_64')
Issue 1:
Environment info

transformers version: 4.4.2

Platform: Linux-5.4.0-1041-aws-x86_64-with-debian-buster-sid

Python version: 3.7.10

PyTorch version (GPU?): 1.7.1 (True)

Tensorflow version (GPU?): not installed (NA)

Using GPU in script?: no

Using distributed or parallel set-up in script?: no

Who can help

@LysandreJik @sgugger @patrickvonplaten

Information

Model I am using (Bert, XLNet ...): ProphetNet

The problem arises when using:

the official example scripts: (give details below)

my own modified scripts: (give details below)

The tasks I am working on is:

an official GLUE/SQUaD task: (give the name)

my own task or dataset: (give details below)

To reproduce

I am using ProphetNet for some question generation work. I ran into a bug where I sampled from ProphetNet to generate a question generation using the generate function. I then took the outputted question and tokenized it and saw that the token_ids produced were different than the ones returned by the generate function. Here is a sample of the example I found to be inconsistent.

>>> from transformers import ProphetNetTokenizer
>>> tokenizer = ProphetNetTokenizer.from_pretrained("microsoft/prophetnet-large-uncased-squad-qg")
>>> tokenizer.decode([2054, 2828, 1997, 6922, 2003, 1037, 12702, 5054, 17119, 1037, 2828, 1997, 1029, 102])
'what type of component is a microsencer a type of? [SEP]'
>>> tokenizer.decode([2054, 2828, 1997, 6922, 2003, 1037, 12702, 3366, 5897, 2099, 1037, 2828, 1997, 1029, 102])
'what type of component is a microsencer a type of? [SEP]'
>>> tokenizer.decode([3366, 5897, 2099])
'##sencer'
>>> tokenizer.decode([5054, 17119])
'##sencer'
>>> tokenizer.decode([5054, 17119]) == tokenizer.decode([3366, 5897, 2099])
True
>>> tokenizer("what type of component is a microsencer a type of? [SEP]")["input_ids"]
[2054, 2828, 1997, 6922, 2003, 1037, 12702, 5054, 17119, 1037, 2828, 1997, 1029, 102, 102]

It seems odd there are these two different sets of token_ids that reproduce the same sentence. I am having trouble reproducing the second sequence of tokens. I was training the model when it produced this second sequence through sampling but I didn't save the model at that exact time.

Expected behavior

I would expect the tokenizer to always return the same sequence of tokens. I am not too familiar with how the tokenizers work, so I might be wrong in this assumption. Is this behavior expected and should I just try to avoid re-tokenizing whenever possible?

Issue 2:
I have used BERT NextSentencePredictor to find similar sentences or similar news, However, It's super slow. Even on Tesla V100 which is the fastest GPU till now. It takes around 10secs for a query title with around 3,000 articles. Is there a way to use BERT better for finding similar sentences or similar news given a corpus of news articles?
Issue 1:
Go Version: go version go1.4 windows/amd64

I was editing a file with Windows line endings, and I was unable to make it work.

It seems like the \r character is added as part of the last parameter, which makes commands fail.

It should be re-producible with all files using \r\n as line endings, but here is the actual command I used.

//go:generate ffjson $GOFILE

Using quoting also makes it fail.

//go:generate ffjson "file.go"

Will exit with "expect space after quoted argument", because the next character check in the following code fails:

// Check the next character is space or end of line.
if len(line) > 0 && line[0] != ' ' && line[0] != '\t' {
g.errorf("expect space after quoted argument")
}

line[0] is '\r'

Issue 2:
Just tested the new "go generate" command. I'm using a windows machine and so my line endings are \r\n and not just \n.

so if I put "//go:generate dosomething" in my source code and run "go generate" it executed "dosomething\r" which can not be found. (Tested with go1.4.windows-amd64 release)

Sorry for submitting if this is expected behavior...