WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Version

v2.5.16-v2.5.17-beta.0

Reproduction link

https://codepen.io/weijuer/pen/VxWKww

Steps to reproduce

IE10列表展示不了

What is expected?

正常遍历列表

What is actually happening?

IE10列表展示不了

请用IE10浏览器浏览，而非调试的兼容模式！

Issue 2:
Version

2.5.16 / 2.5.17

Reproduction link

https://jsfiddle.net/plasmaeng/ndmjjkho/1/

Steps to reproduce

Running the code below in IE10 will result in the following error:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="vue.js"></script>
</head>
<body>
<div id="app_test">
<form>
<select>
<option v-for="value in L">{{value}}</option>
</select>
</form>
</div>

<script>
var appTest = new Vue({
el: '#app_test',
data: {
L : [ '1', '2' ,'3']
}
});
</script>
</body>
</html>

Here is the error message from IE10.

[Vue warn]: Error compiling template:

<div id="app_test">
<form>
<select>
<option v-for="value in L">{{value}}</option>
</select>
</form>
</div>

invalid expression: Syntax error in Raw expression: v-for="value in L"
invalid v-for alias "" in expression: v-for="value in L"

What is expected?

<option> is generated from 1 to 3.

What is actually happening?

<option> is not generated with error !!!

I have persuaded a senior for a long time to introduce Vue.js.

If this problem is solved, we plan to reorganize the site into Vue.js.

Please solve the problem.
Issue 1:
Challenge Name

Video Challenges - Computer Basics

https://www.freecodecamp.com/videos/computer-basics-how-to-measure-data-size

Issue Description

I have watched How to Measure Data Size and answered the questions 3 times now and it is not marking it as complete. Same thing with Measuring Data Speed.

Browser Information

Browser Name, Version: Google Chrome 50.0.2661.94 m

Operating System: Windows 10

Mobile, Desktop, or Tablet: laptop

Your Code

// If relevant, paste all of your challenge code in here

Screenshot

Issue 2:
There's no green check mark in the view for this video challenge...

... even though I've completed it.

As I've mentioned in #6775 the views for video challenges aren't loaded from showVideo.jade.

It seems the code for the green check marks would be placed here in freecodecamp\common\app\routes\Hikes\components\Hike.jsx:

Of course, the view's gonna need access to the variable that states whether or not the challenge is completed
Issue 1:
by dahankzter:

A Fresh clone of the repo leads to this during install with 'all.bash'

All my programs (for testing and playing around) works fine.
Its just this test that fail.

Install test-phase fails with this output:

6g -o _gotest_.6 client.go fs.go request.go server.go status.go url.go
client_test.go request_test.go url_test.go
rm -f _test/http.a
gopack grc _test/http.a _gotest_.6
make[2]: Leaving directory `/opt/go/src/pkg/http'
--- FAIL: http.TestRedirect
Get http://codesearch.google.com/: dial tcp codesearch.google.com:http:
lookup codesearch.google.com. on 192.168.0.1:53: no answer from server
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/opt/go/src/pkg/http'
make: *** [http.test] Error 2

Environment and repo info:
GOOS=linux
COARCH=amd64

changeset: 4052:b72ec78019b4
tag: tip
user: Russ Cox <rsc@golang.org>
date: Sun Nov 15 00:00:05 2009 -0800
summary: cc: drop redundant strcpy

Issue 2:
I spent some time on GopherCon trying to figure how to make the qml package work
smoothly on Mac OS. Apparently it was working fine out of luck, because the OS requires
some calls to be made from the initial thread. Now something unrelated was touched, and
the graphic goroutine is landing on a different thread and generating errors.

The solution is simple: an init function that locks the main thread, and a qml.Run
function that runs the main loop. Problem solved.

Except, that doesn't work with the testing package anymore, because the test logic
itself is run at the end of main, and tests are moved on their own goroutine.

This problem might be easily solved by changing the test template from:

testing.Main(matchString, tests, benchmarks, examples)

to something like:

go func() {
testing.Main(matchString, tests, benchmarks, examples)
close(done)
}()
if testing.RunFromMain != nil {
testing.RunFromMain(done)
}
<-done

Then, for the qml package, I'd implement RunFromMain along the lines of:

testing.RunFromMain = func(done chan struct{}) {
stopWhenClosed(done)
qml.Run(nil)
}

Can we add such a testing.RunFromMain hook?

Another alternative, suggested by Dmitry Vyukov, is to run tests on the initial thread
instead of spawning them in goroutines. That would solve the problem too.
Issue 1:
Pulling in https://github.com/jakevdp/JSAnimation (which hasn't changed in over a year) would greatly enhance the experience of using animations in the notebook with stock matplotlib. Also, like trendvis, oceancm, and viscm, this would move an very useful matplotlib-based tool into our fold.

The core implementation of JSAnimation is just two parts:

A new writer, HTMLWriter, which also includes some icons for the HTML controls

IPython notebook display hook code

The HTMLWriter clearly makes sense in matplotlib (alongside FFMpegWriter, etc.). I'm not sure what to do with the IPython display code. Adding it as a _repr_html might not be too bad.

Thoughts?

Issue 2:
Trying to make the what's new and following the update and validate the docs guide and it says:

comment out the next whats new glob at the top

but it's already commented out in what's new

.. _whats-new:

Also the instructions in the what new:

For a release, add a new section after this, then comment out the include
and toctree below by indenting them. Uncomment them after the release.

.. include:: next_whats_new/README.rst

kind of conflict with these instructions from the guide:

copy the current content to a file in doc/users/prev_whats_new
merge all of the files in doc/users/next_whats_new/ into doc/users/whats_new.rst and delete the individual files

If you do both, you end up with duplicated entries.

Also, possibly a separate PR/discussion, but what about having some set of categories for what's new sections?
Issue 1:
Electron version: 0.36.8

Operating system: OS X 10.11.2

Origin webview:

Add transform: scale(0.3) to it:

The content of webview is scaled to 0.3*0.3 = 0.09 of the origin size.

Add transform: scale(0.5) to it:

The content of webview is scaled to 0.5*0.5 = 0.25 of the origin size.

Issue 2:
This is what's happening:

http://github.com/pakastin/electron-bug
Issue 1:
Converting ns/as-precisiong datetime64 to datetime.datetime results in integer:

datetime.datetime does not support nanoseconds (see issue). When numpy casts it should round or raise an error, instead it silently returns int:

In [186]: numpy.datetime64("1985-08-13", "us").astype(datetime.datetime)
Out[186]: datetime.datetime(1985, 8, 13, 0, 0)

In [187]: numpy.datetime64("1985-08-13", "ns").astype(datetime.datetime)
Out[187]: 492739200000000000

In [189]: numpy.datetime64("1985-08-13", "as").astype(datetime.datetime)
Out[189]: -8200712707674996736

Issue 2:
The dtype np.object_ is the most general catch-all type to contain arbitrary python objects. As such, .astype(object) should preferably not upcast, but certainly never downcast:

Reproducing code example:

>>> import numpy as np
>>> arr = np.array([10 ** 18], dtype='M8[ns]')
>>> arr
array(['2001-09-09T01:46:40.000000000'], dtype='datetime64[ns]')
>>> arr[0]
numpy.datetime64('2001-09-09T01:46:40.000000000')
>>> arr.astype(object)
array([1000000000000000000], dtype=object)
>>> arr.astype(object)[0]
1000000000000000000

The expected outcome for the last two lines is:

>>> arr.astype(object)
array([numpy.datetime64('2001-09-09T01:46:40.000000000')], dtype=object)
>>> arr.astype(object)[0]
numpy.datetime64('2001-09-09T01:46:40.000000000')

as well as

>>> arr.astype(object)[0] == arr[0]
True

Numpy/Python version information:

numpy: 1.15.4
python: 3.7.1
Issue 1:
Reading data from renderTarget does not work on iOS

Example: https://jsfiddle.net/9n0bha3v/1/

QR Code to Example:

What the example is supposed to do:

On desktop browsers (tested on Chrome, Safari - latest MacOS) you can click on the webGL canvas and

the pixels are being read into a Uint8Array.

function readPixels(renderer, scene, camera, renderTarget) {

const {width, height} = renderer.getDrawingBufferSize(new THREE.Vector2());
const buffer = new Uint8Array(width * height * 4);
renderer.setRenderTarget(renderTarget);
renderer.render(scene, camera);
renderer.readRenderTargetPixels(renderTarget, 0, 0, width, height, buffer);

return {
width, height, buffer
};

}

We then draw those pixels to a 2D canvas for visual feedback using context2D.putImageData. The webGL canvas is essentially duplicated. This is working on all browsers on my desktop machine.

function drawBufferTo2DCanvas(width, height, buffer) {

// clone buffer data to 2d canvas
const cvs = document.createElement('canvas');
const ctx = cvs.getContext('2d');
cvs.width = width;
cvs.height = height;
cvs.style.transform = 'scaleY(-1)'; // flip y

const imageData = ctx.createImageData(width, height);

for (let i = 0; i < imageData.data.length; i++) {
imageData.data[i] = buffer[i];
}

ctx.putImageData(imageData, 0, 0);

}

When you try to do the same on iOS Safari all of the rgba values are straight zeros.

The same is true when trying to get an image from the webGL context by calling:

renderer.domElement.toDataURL() (a transparent image is returned)

Things I've already tried:

using WebGL1Renderer since iOS does not support webGL 2.0

do not read floats since iOS does not support reading from floating point textures

initialize renderer with preserveDrawingBuffer set to true

initialize renderer with premultipliedAlpha set to false

readPixels immediately after rendering to avoid reading from a cleared buffer

The official Three.js example for reading pixels also seems to not work on iOS Safari.

Any hints?

Three.js version

Dev

r120

...

Browser

All of them

Chrome

Firefox

Internet Explorer

Safari

OS

All of them

Windows

macOS

Linux

Android

iOS

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

Tested on iOS Safari on latest iPhone 11 Pro and latest iPad Pro.

Issue 2:
Description of the problem

I think setProjectionFromUnion() in WebXRManager is for stereoscopic rendering. But it's called even for non-stereoscopic rendering, for example mobile AR, from WebXRManager.getCamera().

Especially, in mobile AR (view# is 1) cameraR (cameraVR.cameras[1]) won't be updated. So setProjectionFromUnion() which updates projection matrix from cameraL/R may not work correctly.

An easy solution may be skipping setProjectionFromUnion() if the number of views is one. But currently no way to detect it in .getCamera(). We may need to save the number of views somewhere.

/cc @jsantell

Three.js version

Dev

r111

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Base.:+(x::Int, y::Int) = println(x, y)
# 'julia' terminated by signal SIGSEGV (Address boundary error)

Base.:+(x::Int, y::Int) = 1
# KeyError: key :normal not found in getindex(::Dict{Any,Any}, ::Symbol) at ./dict.jl:478

Base.:+(x::Int, y) = 1
# fatal: error thrown and no exception handler available:
# MethodError(f=typeof(Base.:(+))(), args=(55, 1), world=0x00000000000069e3)

Base.:+(x, y::Int) = 1
# As above, but sometimes "signal (4): Illegal instruction: 4" instead

Base.:+(x, y) = 1 # this works!

julia> versioninfo()
Julia Version 0.7.0-DEV.4564
Commit 46dcb35e1b (2018-03-12 15:00 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin16.7.0)
CPU: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
Environment:
JULIA_EDITOR = subl

Issue 2:
This may be a dumb thing to do, but probably it shouldn't segfault:

julia> import Base.*; *(::Int, ::Int) = 3
Segmentation fault: 11

This issue does not occur in 0.5.1.

Version info:

Julia Version 0.6.0-pre.alpha.58
Commit 015cc63 (2017-03-06 15:15 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin16.4.0)
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Issue 1:
interface Bank {
balance: number;
withdraw(x: number): number;
}

class PowellCountyBank implements Bank {
balance: number = 0;

withdraw(x) {
return (this.balance - x);
}
}

var b = new PowellCountyBank();

console.log(b.withdraw({}));
// ^ Expect type error here.

(Playground)

The implementation shows the return type of withdraw but not type for the parameter:

Issue 2:
When a property has exactly one type from an extends or implements clause, we should contextually type that property's initializer by the type from the clause. For example:

interface ThingListener {
handleEvent: (x: MouseEvent) => void;
}

class Foo implements ThingListener {
handleEvent = x => {
// No error, but this code is incorrect
console.log(x.timestamp);
}
}

Ideally we could take this one step further when widening. The following behavior is also undesirable:

interface HasLength {
length: number
}

class Foo implements HasLength {
// length: any, not really what we intended
length = undefined;
}

var x = new Foo();
x.length = 'wat'; // should not be allowed

e.g. #3666
Issue 1:
From MSFT:21408490

If I enable the setting experimental_showTabsInTitlebar then maximize the window on a vertical monitor (1080x1920), the first column of text is cut off. Screenshot attached.

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Microsoft Windows [Version 10.0.18892.1001]

Steps to reproduce

Press the maximize button when the terminal is on a non-primary monitor

Expected behavior

All text should be visible

Actual behavior

A portion of the leftmost column of cells is cut off.

The text is fine when maximized on the primary monitor.
Issue 1:
Problem

Latex compilers are very slow.

Proposed solution

Typst is orders of magnitude faster than any latex compiler (runs in milliseconds) and has a much easier to use syntax than latex (subjective but I think most agree). I'd like to request support for it as a rendering engine for math in figures.

I'm not sure how rendering is currently done, but here's an example of a 0-margin document with math using typst:

#set page(width: auto, height: auto, margin: 0pt)
$ y = integral_(x_0)^x f(s) d s $

Live preview on typst.app

Issue 2:
Problem

I don't use Texlive, I use Tectonic, and I using plt.rcParams['text.usetex'] requires me to download a different LaTeX engine, not only because the latex binary is searched, but also because the tex files that are meant for compilation are meant for pdflatex, and not xetex, which tectonic essentially wraps.

Proposed solution

Add a new option to rcParams which will enable using a different LaTeX engine, and another option that will control whether the generated tex files should be intended for xetex or pdftex.

This seems not too complicated to solve, but I wish to know what do you think, and whether you'd be willing to add more moving parts to TexManager class, especially since the generated tex files for a xetex engine should be substantially different.
Issue 1:
Migrated issue, originally created by Mehdi GMIRA (@mehdigmira)

I encountred a bug with the postgres specific "DISTINCT ON" in SQLAlchemy

The real SA query I'm using is more complicated than this, but it sums up to :

query = db.session.query(c1, c2, c3, c4).distinct(c1, c2).order_by(c1, c2, c3)

when i compile the query by doing:

query.statement.compile(dialect=postgres.dialect())

The actual query is

SELECT DISTINCT ON (c1, c2) c1, c2, c3, c4, c1, c2, c3 FROM .... ORDER BY c1, c2, c3

As you can see, the columns c1, c2, c3 are repeated. After some investigation, it seems like this is caused by the order_by() part of the query (removing order by removes the repeated columns).

The weird thing is that when actually running the query (query.all()), I only get the column that I requested, and not the repeated ones as in the compiled statement.

This would have been fine with me. But the problem is it's preventing me from using a union(), because SA thinks I'm requesting more columns on one side of union().

I think It's a bug, but maybe I'm just doing something wrong.

Issue 2:
Describe your question

I have an app where all the schemas are declared.

Have another readonly-app and want to shortcut schemas duplication for now by using automap_base().

No error were given from main app, but when I'm trying to do:

Base = automap_base()
Base.prepare(db.engine, reflect=True)
User = Base.classes.user
db.session.query(User).first()

ArgumentError: Error creating backref 'episode_collection' on relationship 'episode.mentor': property of that name exists on mapper 'mapped class mentor->mentor'

I have Episode class which has relations with Mentor:

class Episode:
...
author_id = db.Column(db.Integer, db.ForeignKey("mentor.id"))
author = db.relationship("Mentor", backref='episodes_author')

class Mentor:
...
episodes_guest = db.relationship('Episode', secondary='episode_guest', backref='guests')

class EpisodeGuest(db.Model):
...
guest = db.relationship('Mentor', backref='episodes_proxy')
episode = db.relationship('Episode', backref='guests_proxy')

All in all. An episode should have author and guests.

In M2M table I used episodes_proxy naming to use this in Flask-Admin as an inline model.

Can't understand where this problem comes from. Everything looks right in the main app. But failed when I trying to create using automap_base()

Versions

OS: arch

Python: 3.8

SQLAlchemy: 1.3.20

Database: postgresql

Have a nice day!

You too :D
Issue 1:
Describe the feature:

Currently, by setting server_side_encryption to true, the only method that is allowed is aes256. It would be great if we could specify other s3 encryption methods, e.g. aws:kms.

For aws:kms, if the bucket has a default key, it's just a matter of including the correct header, so one possibility may be an additional parameter to specify the value of the x-amz-server-side-encryption header to get sent with requests. But the ability to specify an ams key to use would also be great.

Issue 2:
Describe the feature: We'd like to store the snapshots of our elastic database in the aws bucket secured with the KMS server-side encryption. There already is a stale merge request (#25620) and we are considering working on this feature, but only if you guys are keen in merging the change upstream.

Can you guys give us any clues with regards to your release schedules and when we could expect the changes end up in the mainline if we provide the patch in the following days?
Issue 1:
In Sublime text I can select text and drag and drop it to a new line.

This feature would be great to have in Atom. :)

Issue 2:
I was sure an issue was already opened for this, but can't find it now.

Halp ticket:

support/5124ebc4cfa211e3871387e11a229b02

Would be cool if it was possible to select some text and then drag-and-drop it to some other place.
Issue 1:
We have an issue with some of our run scripts that utilize the "start" command and have isolated it to the changes in 1809 vs 1803. This seems to be different from the other issues that have been identified.

Specifically, when using start to call a command/program that exists in a directory other than the current, calling directory, and using the /min or /max parameters, the command/program is not found. Providing an explicit path to the command fixes this.

Example:

In 1803, the following command worked.

start /D "%PROGRAMFILES%\IIS Express" /min iisexpress.exe /path:%WEBPATH% /port:%WEBPORT%

In 1809, it says that the command or program iisexpress.exe cannot be found. Removing /min fixes this. Running the command from the IIS Express folder fixes this. Adding the IIS Express folder to the %PATH% fixes this. To me this highlights another issue in the implementation of the /min flag in 1809, that it does not seem to be searching for commands in the directory provided.

After further testing it seems that any command prompts open or commands that are available which run from the started process are successfully executed in the target path. For instance, passing in dir to start successfully outputs the IIS Express directory in the new window.

I'm wondering if there is a difference in how the 'command' is being processed. That is, if it was previously being processed as a command but now it's being processed as a program, and it can't find the 'program' in the local directory. If so IMO this is a breaking change to the functionality.

One option would be to add a flag (that I've not been able to find in the directory) of hard-defining the provided 'command as a command instead of a program. Another would be a flag that allows the path for not finding a target program to fall through into executing as a command. Lastly, the code for detecting if the program exists should prepend the target path to it, either by default or with a flag. This is all speculation though, as I can't see the source.

Issue 2:
In 1809, the way the start command (from cmd.exe) behaves has changed. You can work around it by adding /max or /min after start.

Two concrete examples:

Running something off a network share from a command prompt like:

start z:\myapp.exe

will now throw up a security warning dialog, when it did not in 1803 and earlier.

A powershell script like this:

$script={& cmd.exe /c start notepad.exe}

$job = start-job -scriptblock $script

would give you a job with state Running in 1803, until you closed notepad. In 1809, the job state is Completed before notepad is closed.

Adding /max or /min after start restores old behavior for both of these! That is crazy...

Both of these behavior changes are going to break tools/code that rely on the old behaviors of no security prompt and the powershell job not being Complete until the started program exits.

You can see how dramatically start has changed if you run procmon and filter to only cmd.exe process events. In Win10 1803, open a command prompt and do

start notepad.exe

It results in <100 events. Run in 1809 and get >1000. Add /max and it drops back to <100.