WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
With option "Use Preview Tabs" single click and double click on file in tree view open preview mode.

Double click in tree view as I understand must open normal tab.

Tested on Ubuntu 15.04 & Windows 8

Issue 2:
Using Atom v0.206.0-4941229 on Mac OS X 10.10.3.

Repro Steps

Open Atom

Open Settings View

Navigate to Tabs package settings

Ensure "Use Preview Tabs" is checked

Close Settings View

Double-click any file in Tree View

Expected: Tab's title to not be italic (italic is the indicator that it is temporary)

Actual: Tab's title is italic

Double-click another file in Tree View

Expected: Second tab to open

Actual: New file overwrites the tab of the original file
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

I have a binary in /usr/local/bin/, which is not related to JavaScript. When I upgrade some package which has a global binary via npm, like typescript or npm itself, the SUID bit on that binary is reset, and I have to set it manually again.

Expected Behavior

npm shouldn't touch foreign files in /usr/local/bin/ at all.

Steps To Reproduce

sudo npm i -g npm

Environment

OS: Debian GNU/Linux 12

Node: 14.17.6

npm: 7.6.3

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

After running sudo npm i -g foo files under /usr/bin that were owned by root are now owned by the current user.

I ran sudo npm i -g typescript and it was installed correctly I think. Then I ran sudo npm i -g vscode-langservers-extracted and I got sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set.

I think the packages I installed are irrelevant because I still get the same errors after installing other packages globally with sudo.

This looks similar to #19883 but as far as I can see, only /usr/bin/ files are affected.

Expected Behavior

npm should not change ownership of files under /usr/bin

Steps To Reproduce

In this environment...

Linux

npm v8.1.3

With this config...

Default

Run 'sudo npm i -g typescript' (the package doesn't matter)

See: files under /usr/bin changing ownership

In this video, you can see what happens. When I stop writing is because I'm going to another tty as root to execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo. The video also shows npm with version v8.0.0 but I updated to v8.1.3 and the same thing happens.

2021-11-07.14-39-43.mov

Environment

npm: 8.1.3

Node: 16.11.0

OS: Linux 5.10.70-1-MANJARO

platform: Desktop amd64

npm config:

; node bin location = /usr/bin/node
; cwd = /home/emi2k01/Documents/facu/tecmul/proyectofinal
; HOME = /home/emi2k01
; Run `npm config ls -l` to show all defaults.
Issue 1:
why 992px is always there for bootstrap even if i changed it on customize page?

btw only ONE 992px are there on bootstrap css file the other is already 1024px:

@media (min-width: 992px) {

.container {

width: 990px;

}

}

i already changed it on customize page to 1024px(@screen-md-min)

Issue 2:
When customizing bootstrap (e.g. http://getbootstrap.com/customize/?id=7880081) and setting

@screen-md-min = 1280px

@screen-lg-min = 1900px

@container-md = ((1220px + @grid-gutter-width))

@container-lg = ((1860px + @grid-gutter-width))

it will generate the default @screen-md-min 992px instead of 1280px bootstrap.css (line 700)

@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {// WRONG
.container {
width: 1250px;
}
}
@media (min-width: 1900px) {
.container {
width: 1890px;
}
}
Issue 1:
Greetings

I am using atom v0.145.0 in Linux x64 and when trying to use keyboard shortcuts, I discovered that atom itself recognizes shift + 7 as & character, not / as it is recognized inside the editor itself. This seems like an issue with the module recognizing key inside atom.

If maybe it is only some configuration error, any feedback is well received

Kind regards

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
From @joaomoreno on March 29, 2016 13:31

JS outline always shows duplicate entries for top level functions.

Copied from original issue: microsoft/vscode#4741

Issue 2:
On Unixy platforms, tsc should by default not attempt to compile files that begin with a dot (hereafter called "hidden files"). These files are intended to be hidden, and in practice any file that has a name like .foo.ts is always a temporary file written by an editor while saving.

Currently, when you run tsc --watch in a directory and hit save in emacs, tsc picks up the hidden temporary file and attempts to compile it, resulting in duplicate definition errors (between the temporary file and the real source file). And it's surprisingly annoying to work around this problem -- you can't use a glob in your tsconfig.json excludes section, so you instead must enumerate each source file in a files section.

It is pretty standard on Unixes to ignore hidden files. For example the shell "*" ignores hidden files by default, as seen in the output of commands like ls * .

I cannot think of any circumstance where someone would want to bring in a hidden file to their compilation, but if they did perhaps they could do so manually via the files section -- it's definitely the sort of thing you ought to need to opt in to.
Issue 1:
PT Run will learn your most used search results and display those before others.

PT Run will learn which search results you use the most. If I have 10 search results all more relevant to my input, then what I really want I must input the whole search criteria. An example of this is:

If I go and search for "Rider" using the normal windows search I only must write "Ri" before it shows up. If I do the same in PT Run I have to write "Rid" before it even shows up, and "Rider" before it becomes the top most result.

So the feature I am proposing is that PT Run will learn that when I input "R" I am most likely looking for "Rider" because that is the search result I use most often when I input anything with "R"

Issue 2:
Just an option to hide the system tray icon directly in the settings of the app.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
Describe your issue.

It seems like there is a bug when we try to use stats.zscore with a masked array that has a masked nan value at index 0, and with nan_policy='omit'. In such cases, the function returns an array filled with nan values.

It seems to be caused by the following line, which checks whether the array is constant:

isconst = (_first(a, axis) == a).all(axis=axis, keepdims=True)

In this specific case, isconst is evaluated to True (when in reality it should be evaluated to False), and the outputs are set to nan (when in reality they shouldn't)

Reproducing Code Example

from scipy.stats import zscore
import numpy as np

# With a masked array
A = np.array([np.nan, 1,2,3])
masked_A = np.ma.masked_array(A, np.isnan(A), copy=False, fill_value=np.nan)
z = zscore(masked_A, axis=0, nan_policy='omit').filled()
print(z) # [nan nan nan nan] : z is filled with nan (this is a bug?)

# Without a masked array
z = zscore(A, axis=0, nan_policy='omit')
print(z) # [nan -1.22474487 0 -1.22474487] nan values are omitted (as expected)

Error message

No error message

SciPy/NumPy/Python version information

1.9.3 1.23.5 sys.version_info(major=3, minor=10, micro=8, releaselevel='final', serial=0)

Issue 2:
Note from @mdhaber: This is a deep issue that is slated to be addressed as part of this project. Before composing a PR related to this issue, please comment below or - even better - consider resolving another open issue!

This is the general case for #8108

#8108 (comment)

currently there is no special handling of nans.

AFAICS, trimming functions trim1, trimboth treat nan as an extreme observation.

Reproducing code example:

>>> stats.zscore([1,1,1,1,1.1, 5, np.nan])
array([ nan, nan, nan, nan, nan, nan, nan])

>>> stats.sigmaclip([1,1,1,1,1.1, 5, np.nan])
<several RuntimeWarning: invalid value encountered in ...>
SigmaclipResult(clipped=array([], dtype=float64), lower=nan, upper=nan)

>>> stats.trimboth([1,1,1,1,1.1, 5, -5, np.nan], 0.25)
array([ 1. , 1. , 1. , 1.1])
Issue 1:
Damien Raude-Morvan opened SPR-7352 and commented

I'm Debian Maintainer of SpringFramework package [1].

I'm working on integrating Spring Framework 3.0.3 into Debian and replace our libspring-2.5-java package.

Right now, I'm reviewing source code of Spring Build (aka Ivy-overlay spring build system) and I'm a bit disapointed to see that :

There is no copyright / global licence file [1]

All files are missing a licence header (like other Spring project does)

Could you please have a look at this issue and update this project ?

In current state, Spring Build is a non-free module and cannot be considered free software.

[1] https://src.springframework.org/svn/spring-build/trunk/

Regards,

Damien Raude-Morvan

Issue Links:

#12010 Please provide a LICENSE file for spring-build subproject ("is duplicated by")

Issue 2:
Nilesh Kapadia opened SPR-1219 and commented

I have an application that registers JMX beans using MBeanExporter. If I deploy this application twice I get org.springframework.beans.factory.BeanCreationException caused by javax.management.InstanceAlreadyExistsException because the MBeans are already registered under the given name, which causes the second app to fail to start. I have worked around this by making the name configurable at deploy time.

MBeanExporter could be improved by having a way to either recover from this (and not even bother to register the JMX beans), or to dynamically generate the names somehow to avoid a conflict?

In reference to this thread: http://forum.springframework.org/viewtopic.php?t=7783

Also I was able to workaround this issue by extending MBeanExporter and overriding registerBeans() to catch the exception (and continue so that deployment will succeed, even though JMX bean registration fails).

Affects: 1.2.3

Issue Links:

#5918 MBeanExporter attempts to register duplicate MBeans causing javax.management.InstanceAlreadyExistsException ("duplicates")
Issue 1:
If we press any button (Flat as well as Raised) via "Enter Key", events are fired twice

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

Expected Behavior

Events should be fired only once just as on mouse click

Current Behavior

Events are fired twice

Steps to Reproduce (for bugs)

Create any flat or raise button.

For onClick event add event handler for showing logs.

Click button.

All events are fired twice

Context

Your Environment

Tech
Version

Material-UI

React

browser

etc

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

Expected Behavior

Inline datepicker renders imidiatly near field.

Current Behavior

Inline datepicker at start renders dialog at position [0,0] then re render it at field.

Steps to Reproduce (for bugs)

https://we.tl/pEGKtz4EfO

Context

Your Environment

Tech
Version

Material-UI
0.19.4
Issue 1:
Environment info

transformers version: 3.4.0

Platform: macOS-10.15.7-x86_64-i386-64bit

Python version: 3.8.5

PyTorch version (GPU?): 1.7.0 (False)

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

Using GPU in script?: N/a

Using distributed or parallel set-up in script? N/a

Who can help

examples/seq2seq: @sshleifer

-->

Information

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

The problem arises when using:

the official example scripts: (give details below)

[X ] my own modified scripts: (give details below)

The tasks I am working on is:

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

[ X] my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

from transformers import T5Tokenizer
input = "word <pad> <unk> 
 
"
t5tokenizer = T5Tokenizer.from_pretrained('t5-small')
tokenized = t5tokenizer.batch_encode_plus([input], max_length=10, padding="longest", return_tensors="pt").input_ids
print(t5tokenizer.batch_decode(tokenized, skip_special_tokens=False, clean_up_tokenization_spaces=False))

IDs output: _word <pad> <unk> 
 


decode output: word ⁇

Expected behavior

The tokens should be shown in the decoded output, but everything except for the unknown token is dropped (no pad or EOS).

convert_ids_to_tokens followed by convert_tokens_to_string also drops the tokens.

Issue 2:
The docs recommend adding the special eos_token <\s> to the end of each string when encoding/decoding with T5Tokenizer. However, this (and the other special tokens e.g. unk_token, pad_token aren't assigned unique ids in the lookup vocabulary (they are mapped to {0,1,2}, which are indices for other common words in the vocab). In practice, I find my model fails to properly produce the eos_token since it is associated with blank spaces, so the model produces run-ons during generation

To reproduce

>>> from transformers import T5Tokenizer
>>> tokenizer = T5Tokenizer.from_pretrained('t5-base')
>>> tokenizer.pad_token
'<pad>'
>>> tokenizer.pad_token_id
0
>>> tokenizer.eos_token
'
'
>>> tokenizer.eos_token_id
1
>>> tokenizer.unk_token
'<unk>'
>>> tokenizer.unk_token_id
2

>>> tokenizer.decode([0])
''
>>> tokenizer.decode([1])
''
>>> tokenizer.decode([2])
' ⁇ '

Expected behavior

>>> tokenizer.decode([0])
'<pad>'
>>> tokenizer.decode([1])
'
'
>>> tokenizer.decode([2])
'<unk>'

Environment info

transformers version: 2.9.1
Issue 1:
In the tensorflow API doc: https://www.tensorflow.org/versions/master/api_docs/python/nn.html#max_pool3d, it states:

ksize: A list of ints that has length >= 5. 1-D tensor of length 5. The size of the window for each dimension of the input tensor. Must have ksize[0] = ksize[1] = 1.

ksize[0] = ksize[1] = 1 must be ksize[0] = ksize[4] = 1 for both average and max pooling 3d layers as detailed here:

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/kernel_tests/pooling_ops_3d_test.py#L48

Issue 2:
In file:

tensorflow/g3doc/api_docs/python/functions_and_classes/shard0/tf.nn.avg_pool3d.md

tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.nn.max_pool3d.md

Original:

ksize: A list of ints that has length >= 5.

1-D tensor of length 5. The size of the window for each dimension of

the input tensor. Must have ksize[0] = ksize[1] = 1.

I think

ksize[0] = ksize[1] = 1. should change to ksize[0] = ksize[4] = 1, according to the test file

tensorflow/tensorflow/python/kernel_tests/pooling_ops_3d_test.py

Line 48
in
712e41c

ksize=[1, window[0], window[1], window[2], 1],
Issue 1:
Like my title, in the future could Deno use NodeJS module or developer have to rewrite NodeJS module for Deno?

Issue 2:
We've resisted considering Node compatibility as Deno was under initial development so that those considerations didn't influence the design. But now Deno has a relatively established API and the URL module system is deeply baked in. It is unlikely, at this point, that considering compatibility with existing Node modules will compromise Deno's design goals.

It's unlikely we can make Node code work 100% of the time. But we can do a lot to make porting modules over easier. Let's discuss how make Deno work with existing Node code. Here are some ideas:

One direction could be a transpilation program that takes a CommonJS node file, and translates it into ES modules.

Node has core APIs like file system and networking which are different (sometimes subtly so) in Deno. For example, require('fs').readFileSync() in Node supports encoding to strings, Deno.readFileSync() does not. I suggest we implement a compatibility layer in deno_std/node to match the semantics. (There has been some effort to do this already in https://github.com/denolib/node, but progress is slow, I think it makes sense to do it in deno_std.)

We should attempt a require() implementation. It should probably be in deno_std rather than deno itself. It might make sense to base this on top of dynamic import #1789 (which will land very soon - see #2516).

Existing work

https://github.com/denolib/node-to-deno

https://github.com/denolib/node
Issue 1:
Hi this is an error that for some people must be confusing, when you dont add in a controller using annotations route the correct namespaces like:

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

and then you use :

* @Method({"GET"})

In some anotattion in a controller Symfony throw an Exception that says:

Whoops, looks like something went wrong.
1/1 FileLoaderImportCircularReferenceException in FileLoader.php line 97:
...

witch is wrong and confusing, thanks

Issue 2:
I was struggling to debug why I got a circular reference error trying to add my controller to a new application. The controller below with the config in routing.yml should be able to reproduce this. I found out that the error is triggered by a missing use statement: use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; as I used @Template(). I get the same error if the @Route use statement is missing.

This error is very unclear and should be able to get a better message.

FileLoaderImportCircularReferenceException in FileLoader.php line 97:
Circular reference detected in "/home/ivanderberg/projects/login/www/app/config/routing.yml" ("/home/ivanderberg/projects/login/www/app/config/routing.yml" > "/home/ivanderberg/projects/login/www/src/App/Controller" > "/home/ivanderberg/projects/login/www/app/config/routing.yml").

// routing.yml
app:
resource: "@App/Controller"
type: annotation
prefix: /

<?php
namespace App\Controller\Auth;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

/**
* @Route(service="app.controller.auth.login")
*/
class LoginController
{
/**
* @Route("/", name="app.auth.login")
* @Template()
*/
public function loginAction()
{
return [];
}
}
Issue 1:
If a helper function is added by a plugin to the top of a file, and that helper function uses a babel-runtime function like Object.keys, the import does not always get converted.

This only seems to happen if the helper is added from within a class.

Input Code

const assert = require('assert');
const foo = {a: true};
class MyClass {
static query = getKeys(foo);
}
assert.deepEqual(MyClass.query, ['a']);

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

const buildHelper = template(`
function GET_KEYS(obj) {
return Object.keys(obj);
}
`);

writeFileSync(
__dirname + '/output.js',
transformFileSync(__dirname + '/fixture.js', {
babelrc: false,
plugins: [
({types: t}) => {
return {
visitor: {
Identifier(path) {
if (path.node.name === 'getKeys') {
const identifier = this.file.scope.generateUidIdentifier('getKeys');
const helper = buildHelper({
GET_KEYS: identifier,
});
this.file.path.unshiftContainer("body", helper);
path.replaceWith(identifier);
}
},
},
};
},
require("babel-plugin-transform-class-properties"),
require("babel-plugin-transform-es2015-classes"),
require("babel-plugin-transform-es2015-modules-commonjs"),
require("babel-plugin-transform-runtime"),
],
}).code
);

Expected Behavior

The output code should have the import statement transformed into a require call.

Current Behavior

The import statement is left in the output code.

Possible Solution

Ensure that transform-modules always detects imports, regardless of when they are added.

Context

I'm attempting to maintain a couple of plugins that add helper functions to the top of files when they detect certain code.

Your Environment

software
version(s)

Babel
6.24.1

node
6.4.0

npm
3.10.3

Operating System
OSX

I've uploaded a complete demonstration of this bug to https://github.com/ForbesLindesay/demo-transform-runtime-and-es2015-modules-commonjs-order-bug so you can easily reproduce it.

Issue 2:
I'm currently maintaining the 6to5-loader for webpack and I got an issue where @zxcabs suggests to create an extra runtime file, since my loader was generating duplicated code.

For debugging purposes, I created a repository where I use several 6to5 runners (6to5-loader, grunt-6to5, gulp-6to5 and the 6to5 cli itself, to convert some example classes.

If you ran the scripts on that example, you'll notice that every runner, including the 6to5 cli, will repeat the _extend function in all files that extend a class.

My question is, am i doing something wrong? If not, is this a problem?

I reckon that gzip should to solve the duplication problem for browsers, but repeating the same code for every file seems a little bit wrong.
Issue 1:
I thought this was worth a separate issue.

In #12981 @mb1234 posted a short comparison script to benchmark few methods on sparse matrices between Julia, Octave and Matlab. The script to perform the table below can be seen in #12981 (comment) except I added an explicit call to gc() between method invocations. The average of 5 runs is shown with the standard deviation in parenthesis.

Func
Julia
Octave
Matlab (single thread)

sparse:
2.478101 (0.161879)
1.233007 (0.098839)
2.678221 (0.104867)

2*A :
0.052062 (0.000805)
0.120093 (0.042131)
0.070358 (0.001547)

A' :
1.131908 (0.010331)
0.810197 (0.075346)
1.159815 (0.246967)

A+B :
0.246413 (0.001277)
0.487021 (0.088988)
0.202465 (0.000276)

A*x :
0.169672 (0.003784)
0.340456 (0.009046)
0.162381 (0.016590)

A'*x :
0.146576 (0.003835)
1.191680 (0.099767)
0.135291 (0.003267)

In general, we are doing really well! However, we can see that for sparse and transpose we have a bit to go to match Octave. Right now, for sparse we are making a CSR-matrix and transposing it in the end. It should be possible to directly construct the CSC-matrix and avoid the transpose.

For transpose I looked at the code and I am not sure what could be done. Anyone have any ideas here?

Issue 2:
This can be done for arguments whose types can be inferred. It will make things more convenient in general, but the cost is that it won't be easy to predict when an explicit conversion needs to be written. At the very least it will improve the situation with literals, so you don't need to write int32(0).
Issue 1:
The current orphan rules in the coherence check are stricter than they need to be. For example, if I have

struct Foo

then I cannot have an impl like the following

impl ToStr for @Foo

The goal of the orphan rules is to guarantee that we can detect duplicate trait implementations so as to enforce coherence. To this end, it is only necessary to ensure that we could find any potentially conflicting impl. If we enforce the rule that the "for" type must "involve" some nominal type from the current crate, that is adequate for this purpose. For example @Foo should be ok but also Option<Foo>.

Issue 2:
"is_whitespace" and "maybe_digit" should be implemented using the libicu binding in module "std::unicode::icu".

libicu is battle tested, we should not replicate their effort.

See #1370
Issue 1:
Image Resizer has default Image Size names Small, Medium, Large and Phone, which are localized. However, since these Image Sizes are stored in the settings.json file, if the sizes already exist in the profile in one language, the same language will be retrieved irrespective of the current OS language.

For example in the scenario below a user has used Image Resizer for the first time while their OS language was English, and later they switch to French. Since the profile names have already saved the English names to JSON, opening Settings or Image Resizer in French will show the English names for the profile.

After deleting the settings file ImageResizer/settings.json, if the user opens Image Resizer directly from the context menu, the correct localized names will be loaded. If you open Settings first however, it will still load the English strings. This is because the default sizes in Settings are hardcoded strings.

Screenshot from French after deleting settings.json and opening Resize Pictures before Settings.

Issue 2:
After installing latest Power Toys ALT + Space

Environment

Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Expected behavior

Actual behavior

Screenshots