WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have somehow managed to install the Distributions package without having any trace of it on my system. I'm on v0.3.8. For example,

julia> using Distributions # works

julia> Pkg.status()
2 required packages:
- CPUTime 0.0.4
- MAT 0.2.12
7 additional packages:
- BinDeps 0.3.14
- Blosc 0.1.2
- Compat 0.4.9
- HDF5 0.4.18
- SHA 0.0.4
- URIParser 0.0.5
- Zlib 0.1.8

julia> Pkg.installed()
Dict{ASCIIString,VersionNumber} with 9 entries:
"Blosc" => v"0.1.2"
"Zlib" => v"0.1.8"
"CPUTime" => v"0.0.4"
"BinDeps" => v"0.3.14"
"Compat" => v"0.4.9"
"HDF5" => v"0.4.18"
"MAT" => v"0.2.12"
"SHA" => v"0.0.4"
"URIParser" => v"0.0.5"

julia> Pkg.dir("Distributions")
"/home/skainswo/.julia/v0.3/Distributions"

shell> ls /home/skainswo/.julia/v0.3/
BinDeps/ .cache/ CPUTime/ MAT/ REQUIRE URIParser/
Blosc/ Compat/ HDF5/ METADATA/ SHA/ Zlib/

What's the deal?

Issue 2:
it works fine if the package is in .julia/v0.x, but if it is somewhere else then it claims there is no test/runtests.jl even if my LOAD_PATH is set such that i can using it. i know that the recommended dev cycle is to keep packages in .julia, but would it make sense to make Pkg.test() work otherwise?
Issue 1:
Hi

getting weird lines on different font sizes, fontFace changes does not help.

Seeing this on all light backgrounds, not vim only.

Thx

Martin

Issue 2:
Environment

Windows build number: 10.0.18362.207
Windows Terminal version (if applicable): 0.2.1831.0, Windows Store Build

Any other software?
.Net Core SDK 3.0.100-preview6-012264
Powershell Core 6.2.1

Steps to reproduce

The crash reproduces on both cmd and PSCore.

Invoke some program that outputs Chinese. I used dotnet --info.

Drag on the output text for selection.

Expected behavior

Chinese text can be selected normally. (using conhost)

Actual behavior

As soon as the drag covers or starts at Chinese character, the Terminal crashes.

(Dragging over the dual-width （ character)

Note

This does not reproduce on output of Powershell echo command, and some others.

Seems not directly caused by certain executables. (Some output of dotnet.exe can be selected.)

Not aware of whether Chinese starts with new line.

My system setting:

Display language = Simplified Chinese

Code page = Simplified Chinese, UTF8 enabled (Active Code Page: 65001)
Issue 1:
Do you want to request a feature or report a bug?

I want to request a feature

What is the current behavior?

Using Symbols as element keys throws a type error.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

When using key={Symbol('myKeySymbol')} we get the following TypeError: Cannot convert a Symbol value to a string at Object.ReactElement.createElement

codesandbox here

What is the expected behavior?

Using Symbols as keys should work seamlessly, in my opinion element keys are a perfect use-case for Symbols.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Using React 16.0.0 and the browsers affected are Safari, Chrome and Firefox on OSX, but I'm pretty sure this is not browser dependent but a matter of implementation.

Thanks.

Issue 2:
Please do not remove the text below this line

DevTools version: 4.0.2-2bcc6c6

Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)

at Ai (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:274200)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in Ai

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ua

in le

in ve

in ko

in Fl
Issue 1:
imshow() ignores or misinterprets the aspect kwarg when interpolation='none'. The bug appears only in svg output, does not seem to be a problem in pdf or png output. The minimal code to reproduce the bug is below:

import numpy as np
import matplotlib
matplotlib.use('SVG')
import matplotlib.pyplot as plt

mat = np.ones((40,20))

plt.figure()
plt.subplot(121)
plt.imshow(
mat,
aspect=0.5,
interpolation='nearest')
plt.subplot(122)
plt.imshow(
mat,
aspect=0.5,
interpolation='none')
plt.savefig('/tmp/test.svg')

An image of the output is attached below. The issue also appears when I try to use extent kwarg instead of aspect, i.e. see below (if needed, I can attach an image produced by the second example):

plt.figure()
plt.subplot(121)
plt.imshow(
mat,
interpolation='nearest',
extent=[0,20,20,0]

)
plt.subplot(122)
plt.imshow(
mat,
interpolation='none',
extent=[0,20,20,0]
)
plt.savefig('/tmp/test2.svg')

My python environment is:

Ubuntu 16.04, anaconda python distribution, python 3.5.2, Matplotlib 1.5.1 (from conda)

Issue 2:
Bug report

import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec

fig = plt.figure()
gs = gridspec.GridSpec(2, 1)
ax1 = fig.add_subplot(gs[0])
ax2 = fig.add_subplot(gs[1], sharex=ax1)
ax1.set_xticklabels('')
plt.show()

makes the ticklabels on ax2 disappear as well.

Similarly:

import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
import matplotlib.gridspec as gridspec

fig = plt.figure()
gs = gridspec.GridSpec(2, 1)
ax1 = fig.add_subplot(gs[0])
ax2 = fig.add_subplot(gs[1], sharex=ax1)
ax1.xaxis.set_major_formatter(mticker.NullFormatter())
plt.show()

appears to share the formatter.

This means that we can't manually duplicate the behaviour of fig, ax = plt.subplots(sharex=True). The reason I need to do it manually is something more complicated:

fig = plt.figure(constrained_layout=True)
gs = gridspec.GridSpec(2, 1)
gs_top = gridspec.GridSpecFromSubplotSpec(1, 2, gs[0])
gs_bot = gridspec.GridSpecFromSubplotSpec(1, 2, gs[1])
ax_top=[]
ax_bot=[]
for i in range(2):
if i > 0:
ax_top += [fig.add_subplot(gs_top[i], sharex=ax_top[0], sharey=ax_top[0])]
else:
ax_top += [fig.add_subplot(gs_top[i])]

ax_bot += [fig.add_subplot(gs_bot[i], sharex=ax_top[0], sharey=ax_top[0])]
pctop = ax_top[i].pcolormesh(np.random.randn(20, 20))
ax_top[i].set_xticklabels('')
pcbot = ax_bot[i].pcolormesh(np.random.randn(20, 20), cmap='RdBu_r')
#if i == 1:
# ax_top[i].set_yticklabels('')
# ax_bot[i].set_yticklabels('')

fig.colorbar(pctop, ax=ax_top)
fig.colorbar(pcbot, ax=ax_bot)
Issue 1:
Would be great if I could exclude paths when using the Find In Files form. For instance, I would like to exclude log/ and index.js while searching the rest of my project. Is this possible? If not, I think it would be a great addition!

Issue 2:
When searching, filters can be specified. However, there's no way to exclude paths from the search.

E.g.: *.js, -*.min.js cannot be used to exclude minified files from a search of JS
Issue 1:
Deno doesn't support require but there is one thing where require wins against ES6 imports:

In Node.js we can do

delete require.cache[require.resolve(somePath)];

and delete required file from cache to load it again after it get changed in runtime. With imports we can't do like this. Even if we use dymanic imports (await import("./module.ts")) twice, we both times get the module Deno loaded first time.

There is a workaround about it. We can add a query parameter to file path like this:

mod = await import(`./mod.ts?foo=${anyRandomlyGeneratedString}`);

and it will be loaded again and we get a new its version. But the problem is that BOTH versions of this module will exist in the cache, I suppose. That's not cool.

Why do we even have to store dynamically imported modules in cache? Maybe better make them uncached and garbage-collected and make it possible to import the same module multiple times and each time get the current module content without any ugly workarounds? Otherwise it looks like dynamic imports are just called dynamic but still work in a static way.

Issue 2:
I'm writing code using dynamic module import for dynamically generated code (tool like node-dev). In Deno, once module imported dynamically, they will be never updated while process running. Are there some way to invalidate module cache? In node.js, required module can be deleted.

Deno.writeTextFileSync("./target.ts", "export const value = 1;");
const v1 = await import("./target.ts")
console.log(v1.value); // 1
Deno.writeTextFileSync("./target.ts", "export const values = 2");
const v2 = await import("./target.ts")
console.log(v2.value); // should be 2 but got 1
Issue 1:
Feature request

What is the expected behavior?

When handling images with 'asset/resource' using server-side rendering, we do not want the image file to be emitted, but we do want the image URL to be populated in the HTML in the server bundle. The client bundle can emit the image file.

With file-loader one could do this with the emitFile=false flag, but we cannot do that with Webpack 5 Asset Modules.

'asset/inline' does suppress the output of the image file, but it requires the image to be inlined, which isn't what is desired.

What is motivation or use case for adding/changing the behavior?

Webpack 5 Asset Modules deprecated the file-loader. But the emitFile feature of file-loader is not available in Asset Modules. That is a required feature for Server Side Rendering

How should this be implemented in your opinion?

Include a flag similar to emitFile with 'asset/resource'

Are you willing to work on this yourself?

no

Issue 2:
I'm having problems with my bundle creation script that uses webpack. The process prints out "Killed" and exits, which indicates that its getting killed by the linux out of memory killer. I'm also seeing this unhelpful error:

buffer.js:194
this.parent = new SlowBuffer(this.length);
^
RangeError: length > kMaxLength
at new Buffer (buffer.js:194:21)
at fs.js:220:16
at Object.oncomplete (fs.js:107:15)

I think this is saying that a buffer is being created that is too big (too big for what? I don't know). The code for what kMaxLength is seems to show that it's over a gigabyte: https://github.com/joyent/node/blob/master/src/smalloc.h . I'm pretty confused why such a gigantic buffer would be created.

So because of this, I'm suggesting that webpack use streams internally to mitigate memory issues like this. I am using webpack's watcher, and so I'm not sure how streams could be incorporated into what the watcher does or how the watcher could reduce its memory footprint.
Issue 1:
Reproduce:

open a file

edit a file

close tab (Ctrl-F4 on Windows)

press N

The "Save / Cancel / Don't save" dialog should respond to key-presses of Y and N since it's conceptially posing for a Yes/No/Cancel dialog. Perhaps S and D if you disagree, but if there's no way to control this dialog with the keyboard, that's bad.

(To be pedantic: Windows introduced a few version ago that by pressing Alt the letters that respond to Alt-combinations show underlined. It may be a flavour, but one one grows accustomed to.)

Issue 2:
(this is possibly windows only, tested with 0.113.0)

Steps To Reproduce

Open Atom

Type something into a new editor or change an existing file (doesn't matter which)

Attempt to close the tab (for example Ctrl+W)

Correctly, a dialogue opens, that will give you a choice how to proceed

current (faulty) behaviour

The Keyboard is pretty much useless for this dialogue. You can only Hit [Enter] to save.

Desired Behaviour

These interactions all don't work, but would be very much needed, all of these are very much standard behaviour for any application:

[left] and [right] should switch focus between buttos (so we can select a different thing with keyboard only)

[esc] should Cancel

[alt] should bring up shortcut labels (much like it does for the application menu, i.e. _F_ile, which means press [Alt+F])

[tab] should cycle between the buttons, [shift-tab] should cycle backwards.
Issue 1:
Could be related to #1520 / #1634 / #2830

VSCode Version: 1.1.0

OS Version: Windows 8.1 Pro

Steps to reproduce:

Create new/edit existing SQL file.

Enter a string with a backslash as the last character before the terminating single quote.

Syntax highlighting thinks the terminating quote is escaped.

SSMS does not behave like this, and will parse the same script without this issue.

Also reproduces when starting VSCode with the --disable-extensions command line argument.

Sample screenshot:

The select statement on line 4 shouldn't be that colour, since it is not part of the string.

The same snippet in SSMS:

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows 7 Professional

Steps to Reproduce:

I have a \ character defined as a string in an update query. The Syntax highlighting is incorrectly escaping the following ' and displaying the rest of the script as a string. I am using UTF-8 Encoding with SQL as the language. Below two screenshots:

This is the same piece of script in SSMS.
Issue 1:
Describe the bug

There is a problem with the EffectComposer in combination with a multisampled rendertargets.

This combination produce artefacts when two or more passes like RenderPass or TexturePass are enabled.

To Reproduce

Steps to reproduce the behavior:

Use a Revision after following commit: b2ea47a

Open examples/webgl_postprocessing_backgrounds.html

Modify the code

See error

Code

//Modify following Line:
composer = new EffectComposer( renderer );

//Change it to:
const renderTarget = new THREE.WebGLMultisampleRenderTarget( width, height );
//Or for newer threejs version
//const renderTarget = new THREE.WebGLRenderTarget( width, height, { samples: 1 } );
composer = new EffectComposer( renderer, renderTarget );

Live example

jsfiddle-v135-release

jsfiddle-dev

Expected behavior

In v134 everything works as expected:

jsfiddle-v134-release

Screenshots

v135 with WebGLMultisampleRenderTarget - Chrome:

dev with WebGLRenderTarget and samples set to 1 - Chrome:

v135 with WebGLMultisampleRenderTarget - iOS Safari:

Platform:

Device: [Desktop, Mobile]

OS: [Windows, Android, iOS]

Browser: [Chrome, Safari, Edge]

Three.js version: [dev, r135, b2ea47a ]

Issue 2:
Somehow mostof my EffectComposers, which use WebGLMultisampleRenderTargets, have become broken with v135.

NOTE: this problem only occurs on windows. On my mac it is fine.

You can see from the picture that things are pixelated. It seems to me that some render target isn't being cleared, whether it's color or depth I'm not sure yet.

I have custom Passes, but even using having two vanilla RenderPasses triggers the problem

I have narrowed it down to this commit using git bisect and (and rebuilding):

d16a608

d16a608

Device: [Desktop, Mobile]

OS: [Windows, MacOS, Linux, Android, iOS]

Browser: [Chrome, Firefox, Safari, Edge]

Three.js version: [dev, r???]
Issue 1:
Hi,

Related to #277, I'd like to create an overlapping model but with the input comes from different place. Is it supported? How can I do this? The following code gives me an error because of the unexpected input.

left = Sequential()
left.add(Dense(784, 50))
left.add(Activation('relu'))

model = Sequential()
model.add(Merge([left, left], mode='concat'))

model.add(Dense(100, 10))
model.add(Activation('softmax'))

model.compile(loss='categorical_crossentropy', optimizer='rmsprop')

model.fit([X1_train, X2_train], Y_train, batch_size=128, nb_epoch=20)

TIA

Issue 2:
Please make sure that the boxes below are checked before you submit your issue.

If your issue is an implementation question, please ask your question on StackOverflow or on the Keras Slack channel instead of opening a GitHub issue.

Thank you!

[ 1] Check that you are up-to-date with the master branch of Keras. You can update with:

pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

[ 1] Check that your version of TensorFlow is up-to-date. The installation instructions can be found here.

Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Hi,

I need to get weights from concatenate layer, when I did the following

joint = concatenate([src2, tgt2],name='joint')

w_sj,w_jt=np.hsplit(joint.get_weights()[0], 2)

I get the following error , 'Tensor' object has no attribute 'get_weights'
Issue 1:
Hi,

I installed Visual Studio Community 2013 and Typescript 1.4. When I changed all my enums to const enum (btw, very nice feature, thanks!) I noticed that compile-on-save feature doesn't handle this feature well.

When I use those const enums in other file than the one it was defined in then when I save file, they are not resolved to constant numbers.

For example I have file firstFile.ts:

const enum TestEnum {
Foo, Bar
}

var testFirstFile = TestEnum.Bar;

and when I save file (by pressing Ctrl+S) i get file firstFile.js:

var testFirstFile = 1 /* Bar */;
//# sourceMappingURL=firstFile.js.map

but When i have secondFile.ts file:

/// <reference path="firstfile.ts" />

var testInOtherFile = TestEnum.Bar;

and save file I get secondFile.js:

/// <reference path="firstfile.ts" />
var testInOtherFile = TestEnum.Bar;
//# sourceMappingURL=secondFile.js.map

only when I build project in Visual Studio I get proper secondFile.js file:

/// <reference path="firstfile.ts" />
var testInOtherFile = 1 /* Bar */;
//# sourceMappingURL=secondFile.js.map

Issue 2:
have two external modules (a.ts which defines and exports an enum, b.ts which uses the enum)

emit the JS code for b.ts

emit the JS code for a.ts and notice that the enum reference is inlined (console.log(0 /*A*/);)

change a.ts and emit only that file again

=> now the enum is not inlined anymore (console.log(Foo.A);). I can debug this into checker#getConstantValue which discovers the enum value but fails to find a proper node link. I guess this is because changing a.ts cleared some type caches)

a.ts

import Foo = require('./b');
console.log(Foo.A);

b.ts

enum Foo {
A = 0,
B = 1,
C = 2
}

export = Foo;
Issue 1:
I am a windows user with two windows monitors. I tend to have shortcuts on my desktop ordered in a way unique to me. There are times that I either accidentally sort my icons, or Windows mess up when my monitor goes to sleep, and they all move around.

My father is a software engineer who wrote me a small application the backup and restores desktop icon positions, that works over multi-monitors, by merely keeping a save file of the coordinates of each shortcut on the desktop.

Seeing this feature would surely be helpful to others, and thus I request this feature.

Issue 2:
It would be great to have a tool to save AND restore the location of all shortcut icons on the desktop.

For some reason with single monitor, or multiple monitors with different resolutions, different zoom/font size/icon size and spacing/etc. The location of these icons is reset and you're left with all icons Auto-Arranged on the left of the screen, like Windows threw its hands up and said IDK, forget whatever locations they are and now set them up in the default grid.

There used to be a tool for this years ago. Can't seem to find it. It was third-party and not part of Power Toys. Worked in Windows 7.

Use a Desktop [optional Shift] Right Click menu that allows you to SAVE the current icon positions and the same to RESTORE the last saved locations.

If new icons were added after the last save, then place them as appropriately as possible.

Only stores the last saved location. Can have profiles, but not necessary on the first iteration.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1985 on 2011-11-22 by trac user gsiisg, assigned to unknown.

I notice that when I plot two variables, the x and y axis are flipped according to the online example, so I did a simple distribution of points

x=np.array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1])

y=np.array([ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 100])

H, yedges, xedges = np.histogram2d(y,x)

extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]]

pylab.imshow(H, extent=extent, interpolation='nearest',origin='lower',aspect='auto')

I had to enter into histgram2d() the "y" before the "x" to get the graph to come out as expected.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1830 on 2011-05-14 by @samtygier, assigned to @pv.

the matplotlib example in http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html plots the data with the axis the wrong way. i think this is mostly the fault of imshow working in backwards coordinates.

the lines should be:

extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]]
plt.imshow(H.transpose(), extent=extent, interpolation='nearest', origin="lower")

test script (broken, as per numpy docs):

x = np.array([2, 2, -1, -1, -0.2])
y = np.array([1,-1.1, 1, -1, 0.5])
H, xedges, yedges = np.histogram2d(x,y, bins=(50, 50))
extent = [yedges[0], yedges[-1], xedges[-1], xedges[0]]
plt.imshow(H, extent=extent, interpolation='nearest')
plt.show()

test script (fixed):

x = np.array([2, 2, -1, -1, -0.2])
y = np.array([1,-1.1, 1, -1, 0.5])
H, xedges, yedges = np.histogram2d(x,y, bins=(50, 50))
extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]]
plt.imshow(H.transpose(), extent=extent, interpolation='nearest', origin="lower")
plt.show()
Issue 1:
Currently the scripting API allows to return arbitrary objects. This is an issue for search scripts because they might be called billions of times in a single search request and missing information about the return type makes things harder to optimize.

So we could look into specializing the search script API so that it would only be allowed to return a double. This would break a couple of things however:

scripts would not be able to return multiple values per document anymore,

scripts would not be able to return anything else than a double, so eg. building a string in a script and returning it would be impossible.

This is likely not an issue for the main use cases that we want to support with scripting, such as multiplying the score with the log of the value of some field. However I wolud not be surprised that there are some existing search scripts producing arrays of numbers or strings in the wild.

Issue 2:
I get 'T'/'F' and also 't' terms for a boolean field, leading to problems when filtering on the field. The below gist reproduces this:-

https://gist.github.com/4284891

This is on elasticsearch 0.20.1, a quick check on 0.19.10 and I can't reproduce this.
Issue 1:
e.g. http://t_rost.rosfirm.ru/ is valid URL

https://github.com/symfony/Validator/blob/0a118a6e885937378d41b97b152ecec2058c89dc/Constraints/UrlValidator.php#L29

Issue 2:
Url validator accept as valid an url like the following:

http://testsub+domanin.domanin.com:8080/test

but does not accept

http://test_sub_domanin.domanin.com:8080/test

The problem seems to be here:

symfony / src / Symfony / Component / Validator / Constraints / UrlValidator.php

Line 28: ([\pL\pN\pS-]+.)+[\pL]+ # a domain name

The fix can be as simple as replacing \pS (mathematical symbol) with \pP (punctuation character) or even better i think \pPc (Connector Punctuation character)