WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

This is for the Fancy Zones module. This feature would let users assign shortcuts to move the active window to a specific zone of a layout.

For example: If a layout has four zones that are divided right at the center of the screen, and having assigned four shortcuts,

for example:

ctrl + alt + 9 for top right

ctrl + alt + 7 for top left

ctrl + alt + 3 for bottom right

ctrl + alt + 1 for bottom left

pressing any of the above shortcut would move the active window the zone specific to that shortcut.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Add the option to toggle SHOW/HIDE the desktop icons when hitting a hotkey or combo. Shift+click / double click / double right click on the desktop may be a good option as it doesn't do anything at the present.

Windows looks so much cleaner when the icons are hidden, yet the desktop is a useful place. I think it could really power up the desktop if you could have widgets and icons hidden and toggled by a power toys hotkey.

The desktop really doesn't have many features, so if you wanted to you could run with this idea and probably come up with some more Power options. I don't find that virtual desktops are well utilized, so maybe something could be added there too.
Issue 1:
Bug Report

Current Behavior

The babel-cli in --watch mode does not output any messages following the first compilation. It seems as though the CLI is not doing anything even though files are compiling.

Input Code

babel src -d lib --watch

Expected behavior/code

The CLI should display an output summary after every --watch mode compilation.

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

N/A.

Environment

Babel version(s): v7.0.0-beta.41 - v7.0.0-beta.46

Node/npm version: Node 10/npm 6

OS: macOS v10.13.4

Monorepo: No

How you are using Babel: cli

Possible Solution

Additional context/Screenshots

This issue began with #7439 in v7.0.0-beta.41. The babel-cli has a new a new --verbose flag for seeing exactly what files were compiled, but even with the verbose output of what files are being compiled there are no subsequent summary messages. An output summary should be displayed every compilation, regardless of the --verbose flag.

Issue 2:
Issue originally made by @jimfb

Description

A JSX element like <div ref="foo" ref="noise"> is not technically legal/valid. Babel should do something reasonable (throw, pick one value and warn, etc). The bug report below seems to indicate that it currently produces illegal javascript when this happens.

Came up in: facebook/react#6024 (comment)
Issue 1:
I am using Visual Studio 2015 Update 1 and Typescript for VS2015 1.8.4.

I have a project that contains TypeScript files.

Here's my tsconfig.json

{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"noEmitOnError": true
},
"exclude": [
"node_modules",
"typings"
]
}

When I write incorrect TypeScript, let's say i have file1.ts and write foo , I obtain the error message

Cannot find name 'foo'

If I try to build the project, it will result in a build failure. When the file1.ts file is correct, it generates the file.js file next to it and I can build successfully. So far so good.

Now, if I change once again file1.ts , it will show Cannot find name 'foo' in the error list but building the project succeeds.

What I expect is for the project build to fail.

The project build will fail again when I remove the generated file1.js file.

Shouldn't the TypeScript compiler try to recompile all the *.ts files that are newer than their output when I perform a build, or have the compileOnSave option to remove the output?

Issue 2:
TypeScript Version:

1.8.2

When building a Visual Studio solution using a tsconfig.json file, the CompileTypeScriptWithTSConfig task reports "Skipping target "CompileTypeScriptWithTSConfig" because all output files are up-to-date with respect to the input files.", even though I have indeed modified my .ts files since the last build. I see this behavior both building from the command line and from within the IDE. If I select "Rebuild Solution" from within the IDE, the files get compiled correctly. Also, if I remove the tsconfig.json file (thus using the properties in the .csproj file), the files also get compiled correctly.

FWIW, I would actually prefer to use the .csproj file rather than a tsconfig.json file, but as it stands now I cannot specify certain options (such as --noImplicitReturns and --noFallthroughCasesInSwitch) in the .csproj file.
Issue 1:
$ uname -a
Darwin users-MacBook-Air.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
$ go version
go version devel +c468957 Sun Sep 27 01:04:59 2015 +0000 darwin/amd64

# The only thing the program does is fmt.Print("Hello\n")
$ cd hello
$ go build -ldflags -w
$ hexdump -C hello | grep -c `basename $HOME`
58

Issue 2:
by awreece:

This is a feature request for an additional flag for compilation to create a sanitized
or hardened binary.

This binary could include a number of features, espescially including:
- fake paths (ala /go/root/<pkgname> instead of the real filename)
- doesn't have stack tracing on panic
- doesn't print faulting instruction, address on segfault

The existing pack tool allows you to strip prefixes from paths, but there's no option to
pass that through the go build tool chain. Furthermore, this doesn't disable printing
stack traces, etc.
Issue 1:
🐛 Bug

I installed PyTorch via conda in a Windows 10 machine, Python 3.6 environment.

I get this error:

ImportError: cannot import name 'caffe2_pb2'

When trying to execute this tutorial:

https://pytorch.org/tutorials/advanced/super_resolution_with_caffe2.html

Specifically when importing the Caffe2 ONNX Backend

Traceback

Traceback (most recent call last):

File "onnxLoader.py", line 9, in

import caffe2.python.onnx.backend as onnx_caffe2_backend

File "C:\Users\alejo\AppData\Local\conda\conda\envs\pyTorchEnv\lib\site-packages\caffe2\python_init_.py", line 2, in

from caffe2.proto import caffe2_pb2

ImportError: cannot import name 'caffe2_pb2'

Environment

PyTorch Version (e.g., 1.0): 1.0

OS (e.g., Linux): Windows 10

How you installed PyTorch (conda, pip, source): conda

Python version: 3.6.8

CUDA/cuDNN version: 9.0

GPU models and configuration: GeForce GTX 960M

Issue 2:
🐛 Bug

Reported by @m3rlin45

from caffe2.python import workspace

Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import workspace
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\m3rlin45\Documents\foo\env\lib\site-packages\caffe2\python\__init__.py", line 2, in <module>
from caffe2.proto import caffe2_pb2
ImportError: cannot import name 'caffe2_pb2'

To Reproduce

Repro on a VM:

Spin up fresh windows server 2016 VM on azure

install python 3.6.7 from python.org

disable path limit during install

install virtualenv

install vs15 redist to help virtualenv work

set up a virtualenv and activated it

install torch via instructions on pytorch.org, windows, python 3.6, no cuda

open python

run: from caffe2.python import workspace
Issue 1:
I'm using ansible 2.0.0.1 and while excuting any command on the remote server or local server, I'm getting following error

[root@wautomation-tst01 ansible]# ansible werindbalajil01 -l ping

ERROR! need more than 2 values to unpack

I trying reinstalling, but still getting the same issue

anybody help?

Issue Type:

Can you help us out in labelling this by telling us what kind of ticket this this? You can say:

Bug Report

Ansible Version:

Ansible 2.0.0.1

Ansible Configuration:

Nothing, i just finished installing the ansible in Oracle Linuc 6.4 (same kernal as RHEL 6), after the installation when i try to execute any ansible core commands (such as Ping, file or Setup) are showing following error

Environment:

OEL 6.3

[root@wautomation-tst01 ansible]# uname -a

Linux wautomation-tst01.us.int.rci.com 2.6.39-400.109.4.el6uek.x86_64 #1 SMP Mon Jul 22 11:44:00 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux

Python version

[root@wautomation-tst01 ansible]# python --version

Python 2.6.6

Summary:

When i try to use the basic ansible command it coming with following error

ERROR! need more than 2 values to unpack

Steps To Reproduce:

running any ansuble core commands. E.g

[root@wautomation-tst01 ansible]# ansible 127.0.0.1 -m ping

ERROR! need more than 2 values to unpack

[root@wautomation-tst01 ansible]# ansible -vvv 127.0.0.1 -m ping

Using /etc/ansible/ansible.cfg as config file

ERROR! need more than 2 values to unpack

Expected Results:

ping command output

Actual Results:

[root@wautomation-tst01 ansible]# ansible -vvv 127.0.0.1 -m ping

Using /etc/ansible/ansible.cfg as config file

ERROR! need more than 2 values to unpack

Issue 2:
Issue Type:

Bug Report

Ansible Version:

2.0.0.2

<=1.9.4 is not affected

Ansible Configuration:

Default (no ansible.cfg)

Environment:

Gentoo amd64

Summary:

After upgrading to ansible 2.0 (2.0.0.2) it began to give me an error

"ERROR! need more than 2 values to unpack"

when I have spaces in group names in my inventory files. It was ok when I have ansible 1.9.4.

Steps To Reproduce:

Install ansible 2.0.

Make test inventory file:

$ cat hosts
[test group]
localhost

Expected Results:

ansible -m ping -i hosts all

should start successfully

Actual Results:

$ ansible -i hosts -m ping all -vvv
No config file found; using defaults
ERROR! need more than 2 values to unpack
Issue 1:
When running the latest julia (0.3.0-prerelease+2494) inside emacs, julia either crashes (shell, eshell):

$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+2494 (2014-04-04 23:25 UTC)
_/ |\__'_|_|_|\__'_| | Commit 7d495c0* (0 days old master)
|__/ | x86_64-linux-gnu

�[?2004h�[0G�[0Kjulia> �[?2004lERROR: integer division error
in div at promotion.jl:172

$

or the prompt is double printed (eterm-color):

julia> 1+1julia> 1+1
2

julia> julia> 2+2julia> 2+2
4

This issue should perhaps be retitled something like "allow use with limited terminals".

Somewhat related: #5271

Issue 2:
EDIT: "August 2018 Update: xoroshiro128+ fails PractRand very badly. Since this article was published, its authors have supplanted it with xoshiro256**. It has essentially the same performance, but better statistical properties. xoshiro256 is now my preferred PRNG**." I previously quoted: "The clear winner is xoroshiro128+"

https://nullprogram.com/blog/2017/09/21/

Nobody ever got fired for choosing Mersenne Twister. It’s the classical choice for simulations, and is still usually recommended to this day. However, Mersenne Twister’s best days are behind it. ..

Ultimately I would never choose Mersenne Twister for anything anymore. This was also not surprising.
Issue 1:
Context:

Playwright Version: 1.16.3

Operating System: macOS 12.0.1 (21A559)

Browser: WebKit

Extra: ARM64

System:

OS: macOS 11.6

Memory: 2.85 GB / 32.00 GB

Binaries:

Node: 16.3.0 - /usr/local/bin/node

Yarn: 1.22.10 - /usr/local/bin/yarn

npm: 7.7.6 - /usr/local/bin/npm

Languages:

Bash: 5.1.4 - /usr/local/bin/bash

Code Snippet

import { expect, test } from '@playwright/test';

async function delay(ms: number) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
test('twitter', async ({page}) => {
await page.goto('https://twitter.com/dan_abramov/status/1086215004808978434');

await delay(5000);

const title = await page.evaluate(() => document.title);
const text = await page.evaluate(() => document.body.textContent);

console.log('[trace] title:', title);
expect(title.startsWith('Dan on Twitter')).toBeTruthy();
console.log('[trace] text:', text);
});

Describe the bug

➜ demo_project yarn playwright test src/t.spec.ts --browser webkit
yarn run v1.22.11
$ /Users/username/Downloads/202111/temp/demo_project/node_modules/.bin/playwright test src/t.spec.ts --browser webkit

Running 1 test using 1 worker

✘ [webkit] › src/t.spec.ts:6:1 › twitter (5s)

1) [webkit] › src/t.spec.ts:6:1 › twitter ========================================================

browserContext.newPage: Target closed

1 failed
[webkit] › src/t.spec.ts:6:1 › twitter =========================================================
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ demo_project

Also tested both headless / non-headless webkit on Ubuntu 20.04 (amd64), it worked well.

Issue 2:
Fix: npm i -D @playwright/test@1.17.0-next-alpha-nov-5-2021.

It gets included in version 1.17.0.

Context:

Playwright Version: 1.16.1

Operating System: MacOS Monterey 12.0.1

Node.js: 14.18.0

Browser: Webkit

Code Snippet

const myContext = await browser.newContext();

Describe the bug

Since latest upgrade of MacOS (Monterey 12.0.1) all my tests fail with webkit browser (headless or not).

The fail is detected when instantiating browser.newContext() with the following error: browser.newContext: Target closed

This is only with webkit, everything was ok before the MacOS upgrade, and everything is ok with Firefox and Chromium.
Issue 1:
When making themes with themestrap, I often end up making new variables for a number of hardcoded things in bootstrap.

Most often these are the border-widths of a lot of elements.

How are you guys thinking about addings more variables in general, and especially in the border-width-case? I would follow up with a Pull Request if you approve.

I think I would go about like this:

@border-width-default: 1px;
@hr-border-width: @border-width-default;
[…]

Inspired by the @border-radius declarations, we could also go about it like this:

@border-width-default: 1px;
@border-width-large: 3px;
@hr-border-witdh: @border-width-default;
@btn-border-witdh: @border-width-large;
[…]

Issue 2:
Navbar.less file has the following definition of the .navbar-fixed-... styles:

.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0; // override .navbar defaults
border-width: 1px 0 0;
}

It would be better if the border width (1px) was defined via a variable. With the fixed 1px value. to override it, I need to create a duplicate entry for the styles in a CSS file. It would be easier to use a variable, which could be overwritten by a custom LESS file (the preferred approach for style customization).
Issue 1:
Numpy tried to convert an infinite list to numpy.ndarray and I never stopped.

This problem occurs when an array appended with itself more than once.

Example:

from numpy import asarray as ar
#from numpy import array as ar
a = []
#Range must be more than 1.
for i in range(2):
a.append(a)

#This line does not stop.
print(ar(a))

Numpy/Python version information:

np.version: 1.16.5

Python: 3.7.4

Issue 2:
I grant that this one is quite abusive, but bugs that lead to this problem can happen:

$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!

In [1]: L = []

In [2]: L.append(L)

In [3]: L.append(L)

In [4]: X = asarray(L)
^C^C^\Quit (core dumped)

Ergo, numpy gets into an infinite loop using 100% CPU and hangs. Interestingly, the following variant does not lead to the same problem:

$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!

In [1]: L = []

In [2]: L.append([L,L])

In [3]: X = asarray(L)

In [4]: print(X.ndim)
32 # huh?

In [6]: print(X)
# lots of ASCII-art
Issue 1:

Issue 2:
Hi guys,

There seems to be an issue with the way Twig load templates. I know it has been mentioned in the tread below that this is related to the fact that you must follow the naming convention name.format.engine.

#3150

However, the stand alone version of Twig doesn't trigger the same issue. I can for instance name the template flash.en.twig and it will find it no problem. If the loading issue is related to a "format" exception, then it shouldn't allow formats that are invalid IMO. Therefore, an appropriate exception message should be put in place (I will share the fix once I'm done).

The error I get:

Unable to find template "FiveTeaserBundle:Flash:flashs.twig".

/Users/simon/Projects/Five/Poison14.com/www/src/Five/TeaserBundle/Resources/views/Flash/flashs.twig

My Controller Method

public function showNoFlashAction()
{
return $this->render( 'FiveTeaserBundle:Flash:flash.twig' );
}

At the end of the day, I know SF2 is FREE and I really admire all the efforts and time that have been put together.

Anyhow, I just wanted to point it out as other people might be wasting a lot of time around this.

Thumbs up for the awesome work! :-)

Thanks,

Simon
Issue 1:
System information

Script can be found below

MacBook Pro M1 (Mac OS Big Sir (11.5))

TensorFlow installed from (source)

TensorFlow version (2.5 version) with Metal Support

Python version: 3.9

GPU model and memory: MacBook Pro M1 and 16 GB

Steps needed for installing Tensorflow with metal support.

https://developer.apple.com/metal/tensorflow-plugin/

I am trying to train a model on Macbook Pro M1, but the performance is so bad and the train doesn't work properly. It takes a ridiculously long time just for a single epoch.

Code needed for reproducing this behavior.

import tensorflow as tf
from tensorflow.keras.datasets import imdb
from tensorflow.keras.layers import Embedding, Dense, LSTM
from tensorflow.keras.losses import BinaryCrossentropy
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.preprocessing.sequence import pad_sequences

# Model configuration
additional_metrics = ['accuracy']
batch_size = 128
embedding_output_dims = 15
loss_function = BinaryCrossentropy()
max_sequence_length = 300
num_distinct_words = 5000
number_of_epochs = 5
optimizer = Adam()
validation_split = 0.20
verbosity_mode = 1

# Disable eager execution
tf.compat.v1.disable_eager_execution()

# Load dataset
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=num_distinct_words)
print(x_train.shape)
print(x_test.shape)

# Pad all sequences
padded_inputs = pad_sequences(x_train, maxlen=max_sequence_length, value = 0.0) # 0.0 because it corresponds with <PAD>
padded_inputs_test = pad_sequences(x_test, maxlen=max_sequence_length, value = 0.0) # 0.0 because it corresponds with <PAD>

# Define the Keras model
model = Sequential()
model.add(Embedding(num_distinct_words, embedding_output_dims, input_length=max_sequence_length))
model.add(LSTM(10))
model.add(Dense(1, activation='sigmoid'))

# Compile the model
model.compile(optimizer=optimizer, loss=loss_function, metrics=additional_metrics)

# Give a summary
model.summary()

# Train the model
history = model.fit(padded_inputs, y_train, batch_size=batch_size, epochs=number_of_epochs, verbose=verbosity_mode, validation_split=validation_split)

# Test the model after training
test_results = model.evaluate(padded_inputs_test, y_test, verbose=False)
print(f'Test results - Loss: {test_results[0]} - Accuracy: {100*test_results[1]}%')

I have noticed this same problem with LSTM layers

Issue 2:
When multiple processes import keras simultaneously, there is a race condition with reading/writng the ~/.keras/keras.json file here: https://github.com/fchollet/keras/blob/master/keras/backend/__init__.py#L15-L47. One process can be in the middle of writing the file while the other is trying to read it, leading to a failure when the reading process tries to decode the JSON.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 0.6.2951

Steps to reproduce

adding shift +ins for paste does not work, while ctrl+shift+v works in profile.json

"keybindings": [{ "unbound": "nextTab", "keys": ["ctrl+tab"] },
{ "keys": ["Shift+Ins"], "command": "paste" }, //does not work
{ "keys": ["ctrl+shift+v"], "command": "paste" } //works

]

Expected behavior

pasting of highlighted text triggered by CopyonSelect

Actual behavior

some terminal control chars ~2 gets printed instead of CopyonSelect text

Issue 2:
Description of the new feature/enhancement

Ability to clone the current tab preserving the current directory

Proposed technical implementation details (optional)
Issue 1:
Pablo opened SPR-7710 and commented

In freemarker, if I use the formInput macro with an array parameter:

<@spring.formInput "command.values[0]"/>

spring generates a form with an invalid id: 'values[0]'

This is related to https://jira.springframework.org/browse/SPR-2380, which was the same bug but with jsp. It is possible that the same happens with velocity.

To fix it in freemarker, you can change, in spring.ftl:

160c160

< <input type="${fieldType}" id="${status.expression}" name="${status.expression}" value="<#if fieldType!="password">${stringStatusValue}</#if>" ${attributes}<@closeTag/>

—

<input type="${fieldType}" id='${status.expression?replace("[", "")?replace("]", "")}' name="${status.expression}" value="<#if fieldType!="password">${stringStatusValue}</#if>" ${attributes}<@closeTag/>

This change replaces the [ and ] with _.

I am currently using spring 2.5, so it would be nice to have it backported, if possible.

thanks a lot.

Affects: 2.0.8, 2.5 RC1, 2.5 RC2, 2.5 final, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 3.0 M1, 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1, 3.0 RC2, 3.0 RC3, 3.0 GA, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5

Issue Links:

#13374 Using array syntax generates invalid id using freemarker ("is duplicated by")

Issue 2:
Przemek Ch opened SPR-8732 and commented

Method

protected String autogenerateId() throws JspException {
return StringUtils.deleteAny(getName(), "[]");
}

form AbstractDataBoundFormElementTag class doesn't work with freemarker.

Example

<@spring.formInput path="lead.additionalSalesList[1].saleResult.policyId" attributes='class="policyId_1"'/>

generates

<input id="additionalSalesList[1].saleResult.policyId" class="policyId_0" type="text" value="" name="additionalSalesList[1].saleResult.policyId">

According to https://jira.springsource.org/browse/SPR-2380 the code above should generate id="additionalSalesList1.saleResult.policyId"

[] in ID is not a valid HTML so libraries like jQuery cant handle such elements

Tricks like this $(":input[name='additionalSalesList[1]\\.saleResult\\.policyId']") are needed now to select such items using jQuery.

Affects: 3.0.6

Issue Links:

#12366 Using array syntax generates invalid id in freemarker ("duplicates")

#9845 Binding in Velocity templates using EL accessors ([, ]) for collections produces non xhtml strict compliant output

Referenced from: commits ba03d5b, e7e74c8, a9f4206

2 votes, 5 watchers