WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug Report

Current Behavior

When export * from and named export statements in the same file both export a value with the same name a runtime error is thrown.

This happens because Babel adds a getter to the exports variable when transpiling export * from but doesn't add a setter. The export statement simply assigns the property on exports. This is an error in strict mode, and would not overwrite the value even if it wasn't in strict mode.

Input Code

REPL link

// x.js
export * from './y';
export const a = 'x'; // <- throws error (but should export `a` as `'x'`)

// y.js
export const a = 'y';

Expected behavior/code

The local export should be exported instead of the star export with no error being thrown.

ECMA spec: http://www.ecma-international.org/ecma-262/6.0/#sec-getexportednames

Similar older issue: #3986

Environment

Babel version(s): v6.x (probably affects v7.x too)

Possible Solution

Add a setter which removes the property descriptor and overwrites the value.

I think the helper comes from here:

https://github.com/babel/babel/blob/master/packages/babel-helper-module-transforms/src/index.js#L246

https://github.com/babel/babel/blob/6.x/packages/babel-plugin-transform-es2015-modules-commonjs/src/index.js#L37

Issue 2:
`node server.js

/Users/z/project/webpack_babel7/reducers/index.js:1

(function (exports, require, module, __filename, __dirname) { import { combineReducers } from 'redux';

^^^^^^

SyntaxError: Unexpected token import

at createScript (vm.js:80:10)

at Object.runInThisContext (vm.js:139:10)

at Module._compile (module.js:616:28)

at Module._compile (/Users/z/project/webpack_babel7/_server/node_modules/pirates/lib/index.js:83:24)

at Module._extensions..js (module.js:663:10)

at Object.newLoader [as .js] (/Users/z/project/webpack_babel7/_server/node_modules/pirates/lib/index.js:88:7)

at Module.load (module.js:565:32)

at tryModuleLoad (module.js:505:12)

at Function.Module._load (module.js:497:3)

at Module.require (module.js:596:17)`

https://github.com/againksy/webpack4-serverside-react16/tree/babel7

branch babel7

everything set as in tutorials
Issue 1:
Currently, the upload file handler in request bails on AppEngine because of the ini_get('file_uploads') check in the handler:

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L94

Since GAE is patched to side-channel insert this data, it bypasses PHP's built in file uploading functionality (and intentionally disables it). However, the code as it exists currently make a (perhaps superfluous) check to ini_get()...

I am suggesting that the entire if statement is removed, as the only case it would actually prevent from happening is if a user fakes the $_FILE array on a server that has uploads disabled...

I can verify that file uploads work correctly on GAE if you remove this line.

I can raise a PR for the 3 line change, but I figured I'd start off with a discussion first...

Issue 2:
I think I've found a bug with YAML reference parsing. Referencing multiple times results in grabbing data below the referenced section. I'm using the Symfony YAML component from version 2.4.4 with PHP 5.4.23 on Ubuntu 12.04.

Given myfile.yaml:

section: &section1
x: y
different:
a: b
section: &section2
<< : *section1
section:
<< : *section2

Code:

print_r(Yaml::parse('myfile.yaml'));

Expected output:

[section] => Array
(
[x] => y
)

[different] => Array
(
[a] => b
)

Actual output:

[section] => Array
(
[a] => b
)

[different] => Array
(
[a] => b
)

Note how [x] => y has been replaced with [a] => b.

Note that you get the same actual output even if you remove the line x: y.
Issue 1:
Running build_all_ios.sh produces a libtensorflow-core.a that contains a symbol twice. When linking on iOS the error is

duplicate symbol __ZN10tensorflow15CreateGPUTracerEv in:
<PROJDIR>/.../libtensorflow-core.a(gpu_tracer.o)
ld: 1 duplicate symbol for architecture x86_64

I checked with nm just to be sure

$ nm libtensorflow-core.a | grep CreateGPUTracerEv
---------------- T __ZN10tensorflow15CreateGPUTracerEv
---------------- T __ZN10tensorflow15CreateGPUTracerEv

Branch master

MacOS Sierra 10.12.6 (16G29)

Xcode Version 8.3.3 (8E3004b)

Issue 2:
I'm running Tensorflow 1.0, and I'm encountering a segfault in tensorflow, with the following output:

F tensorflow/core/common_runtime/executor.cc:484] Check failed: e->src_output() < 32768 (38774 vs. 32768)
Aborted (core dumped)

My program loads a fairly large sparse matrix (1879549 samples, 556926 features, 0.000038 of the entries in the matrix are nonzero) into memory. I then create a tf.SparseTensor out of it:

# x_indices and x.data are the data for the sparse matrix in the correct format
x_ind = tf.Variable(initial_value=x_indices.astype(np.int64), trainable=False)
x_val = tf.Variable(initial_value=x.data, dtype=tf.float32, trainable=False)
return tf.SparseTensor(x_ind, x_val, dense_shape=x_sparse.shape)

I then split this SparseTensor into minibatch-sized splits. I have several queue-runners feed that feed a Queue by taking a minibatch, transforming it to dense and putting it into the queue.

In code, the process looks like this (where self._input_x_sp is the SparseTensor):

self.x_shape = self._input_x_sp.get_shape().as_list()
self.y_shape = self._input_y.get_shape().as_list()
n_batches = self.x_shape[0] // self.batch_size
self._x_split = tf.sparse_split(sp_input=self._input_x_sp, num_split=n_batches, axis=0)
self._y_split = tf.split(self._input_y, num_or_size_splits=n_batches, axis=0, name="y_batch")

# ... creating a Queue

# build a list of all possible enqueue OPs.
# We need to do this here while we're still single-threaded, as the
# Graph creation is not thread-safe
# Later in the different threads we can just run the OPs
self._op_list = []
for i in range(n_batches):
x_batch = tf.sparse_tensor_to_dense(self._x_split[i], name="x_batch")
y_batch = self._y_split[i]
self._op_list.append(self._queue.enqueue_many([x_batch, y_batch]))

The queue-runners randomly pick an operation from self._op_list and execute it, in a loop.

I am confident that my code is not to blame, as the program runs just fine on smaller input sizes (a sparse matrix of 206208 samples and 133515 features of which 0.000135 nonzero entries), but encounters the segfault on the larger matrix.

Looking at the TF code where the error is generated (here) it seems like the cause is a variable in tensorflow that is an unsigned short when it probably should be something larger than that.
Issue 1:
VSCode Version: 1.0.0-alpha

OS Version: Windows 10

Steps to Reproduce:

Open an HTML file

Change language mode to Javascript

Change back to HTML

Actual:

Showing many errors as it still thinks it is in Javascript language mode.

Issue 2:
It would be nice to have some extra events I guess. The first one I can think of is onPreSaveTextDocument (or onSaveTextDocument). One that will be invoked right before the document gets saved.

Use Cases

The first one I can think of is my own plugin final-newline that will insert a final newline at the end of the file when the user saves the document. At the moment it is implemented like this: Cmd + s → Save → Insert newline (if necessary) → Save

That last save triggers a new iteration of my plugin which will detect a final newline is already present and will stop the execution. So my loop is triggered twice because the plugin is triggered after the document was saved instead of before.

I think there will be other file manipulation plugins that want to manipulate the file before it gets saved as well.

From Alex:

I agree some sort of onBeforeSave action is indeed needed, we just need more thinking regarding how to expose this without causing any data loss. If we block the save to wait on extensions, I can imagine it possible that the wait could be indefinite, resulting in data loss. Maybe a time ceiling of 10s, after which the file gets saved...

@bpasero What do you think?
Issue 1:
Hello,

When unpublishing a package into an internal repository (such as artifactory) where the registry contains a path, the tarballUrl bellow (unpublish.js:71) will be wrong as it will contain the full registry path

const tarballUrl = url.parse(dist.tarball).pathname.substr(1)

Example :

C:>npm unpublish my-app@1.0-SNAPSHOT --verbose --force --registry https://artifactory.example.com/api/npm/npm-snapshots/

npm info it worked if it ends with ok

npm verb cli [ 'C:\Tools\node-v10.16.3-win-x64\node.exe',

npm verb cli 'C:\Tools\node-v10.16.3-win-x64\node_modules\npm\bin\npm-cli.js',

npm verb cli 'unpublish',

npm verb cli 'my-app@1.0-SNAPSHOT',

npm verb cli '--verbose',

npm verb cli '--force',

npm verb cli '--registry',

npm verb cli 'https://artifactory.example.com/api/npm/npm-snapshots/' ]

npm info using npm@6.9.0

npm info using node@v10.16.3

npm WARN using --force I sure hope you know what you are doing.

npm verb npm-session 501f69ac7af05ab3

npm http fetch GET 200 https://artifactory.example.com/api/npm/npm-snapshots/my-app?write=true 372ms

npm http fetch PUT 200 https://artifactory.example.com/api/npm/npm-snapshots/my-app/-rev/1-0 44ms

npm http fetch GET 304 https://artifactory.example.com/api/npm/npm-snapshots/my-app?write=true 93ms

npm http fetch DELETE 200 https://artifactory.example.com/api/npm/npm-snapshots/api/npm/npm-snapshots/my-app/-/my-app-1.0-SNAPSHOT.tgz/-rev/1-0 79ms

-my-app@1.0-SNAPSHOT

npm verb exit [ 0, true ]

npm timing npm Completed in 5982ms

npm info ok

The last DELETE fetch is wrong the registry path has been duplicated

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

I use a private repository on Nexus, my configuration works with NPM 8.3.0

From a docker image node:lts, I run the command:

npm ci --maxsockets=3

This fails with NPM 8.3.1 to NPM 8.5.0 :

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network request to https://nexus.biosency.com/repository/boraconnect-front/yargs/-/yargs-13.1.0.tgz failed, reason: Socket timeout

If I rollback to NPM 8.3.0, It works

There is no cache since it's a virtual machine with a gitlab runner without cache configration

Expected Behavior

Modules are installed from my private repository on Nexus

Steps To Reproduce

In this environment...

With this config...

Run '...'

See error...

Environment

npm: 8.5.0

Node.js: 16.14.0

npm config:

; "user" config from /root/.npmrc

//nexus.biosency.com/repository/boraconnect-front/:_password = (protected)
//nexus.biosency.com/repository/boraconnect-front/:username = "npm"
registry = "https://nexus.biosency.com/repository/boraconnect-front/"
Issue 1:
Version

2.6.11

Reproduction link

https://jsfiddle.net/valq/j65gfkq4/47/

Steps to reproduce

just comment return h(factory_work);

and uncomment return h(factory_crash);

What is expected?

component is mounted and rendered

What is actually happening?

infinite loop that crashes the app

Issue 2:
Vue.js version

1.0.27

Reproduction Link

https://jsfiddle.net/oocnvztb/2/

Steps to reproduce

Create a custom directive, every param, even binded params, became strings, empty arrays became boolean(something somewhere is calling toString).

What is Expected?

Binded values

What is actually happening?

String representation of values
Issue 1:
Environment

Windows build number: Microsoft Windows [版本 10.0.18362.175]
Windows Terminal version (if applicable): Preview installed from Windows Store

Any other software?

- Ubuntu wsl installed from Windows Store
- emacs in wsl

Steps to reproduce

Add wsl to Windows Terminal profile, can't type Alt-< Alt-> Alt-: Alt-?，these are usual commands in emacs.

And these keys works all right in Ubuntu wsl

Expected behavior

Alt-Shift-, emit Alt-<

Alt-Shift-. emit Alt->

Actual behavior

Alt-Shift-, emit Alt-,

Alt-Shift-. emit Alt-.

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): master

Any other software?

Steps to reproduce

Minimize the height of Terminal. Doesn't even have to be fully minimized.

Create a new tab

Expected behavior

A new tab is created

Actual behavior

Terminal crashes

Details

Terminal crashes with the exception Unhandled exception at 0x00007FF8AB012830 (Windows.UI.Xaml.dll) in WindowsTerminal.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x0000027E170823C0, 0x0000000000000002).

This should be the actual error.

E:\Code\terminal\src\renderer\dx\DxRenderer.cpp(247)\TerminalControl.dll!00007FF835C818E6: (caller: 00007FF835C7CBCB) ReturnHr(1) tid(2944) 887A0001 The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
Enable the D3D debug layer in order to see details via debug messages.
[Microsoft::Console::Render::DxEngine::_CreateDeviceResources(_dxgiFactory2->CreateSwapChainForComposition(_d3dDevice.Get(), &SwapChainDesc, nullptr, &_dxgiSwapChain))]

// src\renderer\dx\DxRenderer.cpp(L233-249)
case SwapChainMode::ForComposition:
{
SwapChainDesc.Width = _displaySizePixels.cx;
SwapChainDesc.Height = _displaySizePixels.cy;

// omitted

-->	RETURN_IF_FAILED(_dxgiFactory2->CreateSwapChainForComposition(_d3dDevice.Get(),
&SwapChainDesc,
nullptr,
&_dxgiSwapChain));
break;
}

Height is 0 which I assume is an invalid parameter.
Issue 1:
In #5307, where I am lowering our testing tolerance down to zero, I am discovering a few recent changes that slipped through because the tolerance on our tests was too high.

This issue is the last of this type that I've found!

git bisect points to ba7bc0a as being the first bad commit.

BASELINE:

ACTUAL OUTPUT:

TEST CODE:

@image_comparison(baseline_images=['streamplot_colormap_test_image'])
def test_colormap():
X, Y, U, V = velocity_field()
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
cmap=plt.cm.autumn)
plt.colorbar()

Cc: @efiring, Any thoughts? Replacing the baseline with the new image is a reasonable solution, perhaps, in this case.

Issue 2:
Bug summary

When Roman text is included directly within dollar-delimited math mode text, Matplotlib emits an "Unknown symbol" error that indicates the problem is elsewhere.

Code for reproduction

import matplotlib.pyplot as plt

# Doesn't work:
plt.plot([1, 2, 3], [1, 2, 3])
plt.gca().set_ylabel(r"$\Delta x_1$")

# Works:
#plt.plot([1, 2, 3], [1, 2, 3])
#plt.gca().set_ylabel(r"$\Delta \mathrm{x}_1$")

plt.show()

Actual outcome

ValueError:
\Delta x_1
^
Unknown symbol: \Delta, found '\' (at char 0), (line:1, col:1)

Expected outcome

I'd expect either:

the label to render correctly

or, if $\Delta x_1$ is not supposed to be valid, then at least an error that indicates that the problem is the x_1 after \Delta and not \Delta itself.

In both cases, it would be good if the documentation for math mode could be clarified regarding whether Roman text is allowed to be included inside $...$ directly or not, and if not, suggest the use of \mathrm.

Operating system

Arch

Matplotlib Version

3.4.3

Matplotlib Backend

TkAgg

Python version

3.9.7

Jupyter version

No response

Other libraries

No response

Installation

pip

Conda channel

No response
Issue 1:
Migrated issue, originally created by Anonymous

Hi,

I found that using limit/offset options with ORACLE DB produce wrong results output while selected column has duplicates. If I specify limit and offset the result query constructed by SQLAlchemy has the form (my table is Block and column path):

select path from (select distinct path, row_number() over (order by path desc) as ora_rn from Block) where ora_rn>1 and ora_rn<5;

Here I was looking for 3 non-duplicate rows, but the output had 3 rows with duplicates.

The correct query should be constructed in a way:

select path from (select distinct path from Block order by path desc) group by rownum,path having rownum>1 and rownum<5;

which produce 3 non-duplicated rows. It works on Oracle 10.x, but I don't know if it will works on earlier version of Oracle DB.

I think the problem with SQLAlchemy query is not having having and group by keywords.

Valentin.

Attachments: jimp_patch_1.bug536.diff

Issue 2:
Migrated issue, originally created by Eben Freeman (@emfree)

Hi,

Looks like sqlalchemy.ext.declarative.__init__.py no longer imports as_declarative in 0.9.9. Not a major problem for us, but seems likely to be a typo in the release, rather than an intentional change?
Issue 1:
Solution:-

I have removed the below code from Bootstrap CSS. Now Zoom images is displaying in google map. Am I correct here???

img { width:auto\9; height:auto; max-width:100%; vertical-align:middle; border:0; -ms-interpolation-mode:bicubic }

Thanks for looking into it.

Issue 2:
First of all thanks for your fantastic work. It does SAVE me a lot of time.

When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set img max-width to 100%. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.

Bootstrap and Google Maps

http://jsfiddle.net/jhnRD/1/

Google Maps without Bootstrap

http://jsfiddle.net/aVx8L/

Cheers,
Issue 1:
While running this, the tag is not working.

It will run the whole playbook *§"R%§"%$§"% - that sucks!

I don't know if this is the latest documentaion http://docs.ansible.com/ansible/playbooks_tags.html but this isn't working for me.

I used ansible 2.0.2 on my latest ubuntu 15.10 system. Now i'm back on 1.9.2 and it is running fine again.

Any ideas?

Issue 2:
% cat master.yml

---
- include: /home/kevin/git/scrye-ansible/playbooks/one.yml
- include: /home/kevin/git/scrye-ansible/playbooks/two.yml

% cat playbooks/one.yml
- name: one playbook
hosts: td
gather_facts: True

tasks:

- name: test
command: uptime
tags:
- one

% cat playbooks/two.yml
- name: two
hosts: peven
gather_facts: True

tasks:

- name: test
command: uptime
tags:
- two

% ansible-playbook -u root -i inventory -t two master.yml (with 2.0)

PLAY [one playbook] ************************************************************

TASK [setup] *******************************************************************
ok: [td]

PLAY [two] *********************************************************************

TASK [setup] *******************************************************************
ok: [peven]

TASK [test] ********************************************************************
changed: [peven]

PLAY RECAP *********************************************************************
peven : ok=2 changed=1 unreachable=0 failed=0
td : ok=1 changed=0 unreachable=0 failed=0

% ansible-playbook -u root -i inventory -t two master.yml (with 1.9.4)

PLAY [two] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [peven]

TASK: [test] ******************************************************************
changed: [peven]

PLAY RECAP ********************************************************************
test -------------------------------------------------------------------- 0.29s
peven : ok=2 changed=1 unreachable=0 failed=0

It would be very nice if 2.0 didn't run setup on all the plays that don't include the tag you are running, this makes large included playbooks very slow.
Issue 1:
Feature request

For IterableDataset, it seems there's no way to handle the uneven input tensors in trainer.py. (Please correct me if I misunderstant this).

Pytorch document suggests to use join: https://pytorch.org/tutorials/advanced/generic_join.html#what-is-join

Secondly, the dataloader for IterableDataset doesn't have sampler, which may be an issue when num workers > 0.

https://github.com/huggingface/transformers/blob/v4.18.0/src/transformers/trainer.py#L672

Motivation

Currently in trainer.py, the IterableDataset is wrapped into IterableDatasetShard in distributed training. It seems that it requires every process to have the same whole dataset and distribute the samples in IterableDatasetShard, which makes every batch has the same amount of data by pad the first batch data.

When in training, since the data is guranteed to be equal in every process, there is no need to use Join to process the uneven input datasets.

Here's my case. I have a very large audo dataset of 1 million audio files and each file requires the processing step just like this example. If I do the same step as this example, the large training datasets not only requires a lot of time processing but also a lot of disk storage to store the features.

Therefore I decide to use IterableDataset to do on-the-fly preprocessing. However, I need to maintain a buffer to do some shuffling then the CPU memory increases greatly and every process is doing many duplicate work that the other process has already done. For example, let's say we have 2 processes to process 11 samples. Every process has to process the 11 samples instead of 5 + 6.

So I decide to give up the IterableDatasetShard and use IterableDataset directly. Every process has its own part of data to process. For example, process0 has 5 samples and process 1 has 6 samples. However this also means some process will finish training earlier. But I see there's no join used in trainer.py. So I was wondering what's the best practice to do this training and inference in this use case.

Thanks!

Your contribution

Not sure

Issue 2:
🚀 Feature

I think Albert is popular enough to not say anything more. The link to the paper is below.

https://arxiv.org/pdf/1909.11942v1.pdf

Motivation

Additional context
Issue 1:
This happens with atom --safe when trying to go from the left to the right pane with ctrl-k + ctrl-right

Versions

Atom: 0.136.0

Platform: Arch Linux

Issue 2:
When I try to use focus pane above/below/right or left I get the following error:

Uncaught TypeError: undefined is not a function /Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:202
addCommands.window:focus-pane-on-right /Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:202
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:91
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
module.exports.KeymapManager.dispatchCommandEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:544
module.exports.KeymapManager.handleKeyboardEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:386
module.exports.WindowEventHandler.onKeydown /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:151

At first I thought I broke something with my config/packages. But even when I remove the .atom directory and restart atom I get this error. Focus next/previous pane still works though.

Using version 0.136.0 on os X
Issue 1:
When I go to build something with rustpkg after modifying any file other than main.rs, despite main.rs having mod foo; where the file I'm editing is foo.rs, it doesn't check if that file has been updated when I build.

$ rustpkg --version
WARNING: The Rust package manager is experimental and may be unstable
rustpkg 0.8-pre (4c6bf48 2013-09-17 20:35:54 -0700)
host: x86_64-unknown-linux-gnu

Issue 2:
Code like

mod foo {
struct S;
}
mod foo {
struct P;
}

Generates the error

foo.rs:4:0: 6:1 error: duplicate definition of type `foo`
foo.rs:4 mod foo {
foo.rs:5 struct P;
foo.rs:6 }
foo.rs:1:0: 3:1 note: first definition of type foo here:
foo.rs:1 mod foo {
foo.rs:2 struct S;
foo.rs:3 }

Which is wrong. foo is not a type, it's a module.