WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Run this script with ulimit -v 1000000 (limit memory use to 1GB)

## dumb_convolve.py

import numpy as np
from numpy.lib.stride_tricks import as_strided

N = 16384
dt = np.dtype(float)
dtsz = dt.itemsize

# Assume these vectors contained actual data, not just ones
vect1 = np.ones((2*N-1,), dtype=dt)
vect2 = np.ones((N,), dtype=dt)

arr1 = as_strided(vect1, shape=(N, N), strides=(dtsz, dtsz))

vect3 = np.dot(arr1, vect2) # MemoryError here

np.dot tries to allocate a 16384*16384 array and fails with MemoryError

For cases like this, even when there is enough memory to allocate the big array, it would be much faster (re: cache etc) to do the calculation using the existing array and an unoptimised algorithm than copying to a big array then using an optimised BLAS.

Issue 2:
While trying to test how dot would behave on a very large array without actually constructing one, I found this discrepancy:

>>> x = as_strided(array([1]), shape=(2**33,), strides=(0,))
>>> x.dtype
dtype('int64')
>>> x = as_strided(x, shape=(2**33,), strides=(0,))
>>> np.dot(x, x)
8589934592

This is the expected result, but on floats it fails:

>>> x = as_strided(array([1.]), shape=(2**33,), strides=(0,))
>>> np.dot(x, x)
Traceback (most recent call last):
File "<ipython-input-37-7170710dec0d>", line 1, in <module>
np.dot(x, x)
ValueError: matrices are not aligned

This is unfortunate, since it makes it hard to test whether dot behaves correctly on arrays of size > 2**31-1.
Issue 1:
I have nice acquitances whose email addresses I would like to parse correctly, but they,
oddly, have chosen to use windows-1252 to encode their email address. In
mail.ParseAddress, any character encodings other than utf-8 and iso-8859-1 are not
handled.

It would be nice to support windows-1252 with a preference towards being able to plug
more charsets in. (Perhaps, with a similar interface as go.text/transform#Transformer.)

Example:

str := "=?windows-1252?Q?Michael_Bo=DFlet?= <michael.bosslet@example.com>"
a, err := mail.ParseAddress(str)
if err != nil {
log.Fatalf("%s", err)
}
log.Printf("%s", a)

This will crash, unfortunately.

Issue 2:
by Famcool:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
http://play.golang.org/p/rH-eI5y1f8

What is the expected output?
The address decoded.

What do you see instead?
Error: mail: missing word in phrase

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux

Which version are you using? (run 'go version')
1.2

Please provide any additional information below.
Issue 1:
Docs:

CurvePath overwrited Curve's getPoint, getPoints, getSpacedPoints and copy functions, and has different behavior.

Should we write documentation about these functions?

Or, at least add function names in CurvePath to inform users about the overwriting?

Issue 2:
I have an OBJ file with a cube in it where every wall is a named (north, east, south, west, top, bottom). When I open the file in blender, everything is as expected, when I open the file in text editor, there are no noticeable discrepancies between walls, but when I load it with OBJLoader, the file has all the sides (well, at least their naming...) completely mixed up.

South is missing (has no children attached to it, therefore mesh cannot be accessed), walls go in order (turning to the right) east, floor, east, north; top is west and bottom is ceiling.

I suspect an issue with OBJLoader, but when I experimented around with it I couldn't find anything standing out.

three.js: r60

demo github: https://github.com/uskudnik/obj-not-loading-correctly

Controls are implemented, as is raycaster so you can click on a wall and it will write in console what is the name of the object; you can turn with arrow keys, go up/down with arrow keys and move the view around with WSAD.
Issue 1:
Ok. So the fundamental motivating problem here is broadcasted objects, which have size and getindex methods, but not eltype and setindex! methods. That is, they implement 1/2 of the AbstractArray interface. A lot of methods defined for AbstractArrays, however, do not require eltype nor setindex!. For evidence of this, see #34196. So it would be nice if these methods could be automatically defined for broadcasted objects.

The fundamental problem is that labeling something as AbstractArray is, at least by the interface definition, simply asserting that it has four special methods (getindex, setindex!, eltype, and size). However, this information is contained only in the documentation, and not encoded into the language itself. So solving this problem requires having some way of addressing this information gap.

Therefore, I propose the following:

All abstract types be required to define exactly what fundamental methods are required of them

A way to harness this information during dispatch

I'm not sure of the best way to implement a solution, but I can suggest that solutions should avoid boolean hell. For an extended discussion of the topic of boolean hell, see #35095

Quack quack

Issue 2:
I think this feature request has not yet its own issue although it has been discussed in e.g. #5.

I think it would be great if we could explicitly define interfaces on abstract types. By interface I mean all methods that have to be implemented to fulfill the abstract type requirements. Currently, the interface is only implicitly defined and it can be scattered over several files so that it is very hard to determine what one has to implement when deriving from an abstract type.

Interfaces would primary give us two things:

self documentation of interfaces at a single place

better error messages

Base.graphics has a macro that actually allows to define interfaces by encoding an error message in the fallback implementation. I think this is already very clever. But maybe giving it the following syntax is even neater:

abstract MyType has print, size(::MyType,::Int), push!

Here it would be neat if one could specify different granularities. The print and push! declarations only say that there have to be any methods with that name (and MyType as first parameter) but they don't specify the types. In contrast the size declaration is completely typed. I think this gives a lot of flexibility and for an untyped interface declaration one could still give quite specific error messages.

As I have said in #5, such interfaces are basically what is planed in C++ as Concept-light for C++14 or C++17. And having done quite some C++ template programming I am certain that some formalization in this area would also be good for Julia.
Issue 1:
Hello,

I'm sorry I don't have much idea how to report the problem, and I never done that before, so I'll try my best.

I learned from this issue tracker that "Opened projects" was recently added to Atom. While it requires obviously some technical precisions (no command line option must be used), the exemple is given of a shortcut in a OSX Dock, but I'm on windows... So I tried to delete anything unnecessary in the windows atom short cut (there were like ../update.exe -open atom.exe) so I just let ../atom.exe

It doesn't seem to work.... at all.

I don't have many pluggins only essentials (I guess), here is the list : atom-alignment, atom-color-highlight, autocomplete-plus, emmet, file-icons, linter, minimap, Sublime-style-columns-selection.

Should I disable any pluggin to test ? And reactivate one by one. Or is this a common known problem ?

I've seen the update is fairly recent, so I may be the first to get the problem.

I hope this'll help you, I'm open to any question if you need anything more

Windows 8.1(Pro)

Atom 0.194

Issue 2:
Does the Desktop shortcut on Windows need updating for this to work, maybe? Because it does not work for me atm, see video: https://youtu.be/SETJog-VnkY
Issue 1:
Summary of the new feature/enhancement

The Windows Terminal should support opening tabs from commands that come from outside its GUI. We should be able to run, for example, Terminal --run powershell.exe --cwd c:\myproject from anywhere and a new tab would be added to the Terminal, current working directory would be c:\myproject and powershell.exe would be the shell. If the Terminal was not running, then it would start and create only that tab.

My main use case for this is to use it with the Visual Studio extension Open Command Line. I could then click on any directory on VS and ask it to open that directory on the new Terminal.

Conemu already supports this with -run: https://conemu.github.io/en/ConEmuArgs.html

Issue 2:
When Windows Terminal is installed on Windows 10, according to UWP package setting： https://github.com/microsoft/Terminal/blob/e37ba7a923427c9a874a6d5bdc27c80fe59db83c/src/cascadia/CascadiaPackage/Package.appxmanifest#L51

A ReparsePoint of type IO_REPARSE_TAG_APPEXECLINK is created in path %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe to start Windows Terminal. This is great, however, wt.exe should support richer command line arguments to enable third-party applications to open specific terminals.
Issue 1:
I use the query

call apoc.load.jdbc('jdbc:mysql://12.13.14.15:3305/test? user=root&password=123456!@# ","table1") yield row

to connect to mysql for data transfering.

But there is occuring a error when i excurer the query.

Caused by: java.sql.SQLExceptionL Access denied for user 'root'@''

It seems that the apoc.load.jdbc don't support password with special character, such as !@#$%^&*.

Is there anyone encounters the proplem？How can I solve this problem?

Issue 2:
I use the query

call apoc.load.jdbc('jdbc:mysql://12.13.14.15:3305/test? user=root&password=123456!@# ","table1") yield row

to connect to mysql for data transfering.

But there is occuring a error when i excurer the query.

Caused by: java.sql.SQLExceptionL Access denied for user 'root'@''

It seems that the apoc.load.jdbc don't support password with special character, such as !@#$%^&*.

Is there anyone encounters the proplem？How can I solve this problem?
Issue 1:
Example code:

https://gist.github.com/eseidelGoogle/bc15918be8ff1f473ddb4e755699fdfd

I used a null InputValue, which might be confusing things?

Click on the Input and then scroll, note how the cursor doesn't stay stuck to the input value.

@mpcomplete

Issue 2:
Put an Input control inside a Scrollable view and select some text. When you scroll the view, the selection controls (handles and toolbar) don't move.

We need some way of informing the selection UI that the Input has been moved. We don't have a generalized way of doing this yet. @Hixie's thoughts on the matter:

so yeah, fundamentally the answer to your question is no, widgets (or more to the point, render objects), have no idea if they're being moved. This is an issue with, e.g., Material ink splashes; if you put a button in a rotating animation and the animation in a Material and tap the button, the splash will go all wrong.

we have a workaround for lists specifically, lists bubble a ScrollNotification. but that doesn't help in the general case.

there is a theory that one solution would be to do this at the layer level

we could have a layer that is pinned to the position of another layer

since that's the one tree that we do walk entirely each frame

so then whatever logic you wanted to do could be hooked up to the layer

e.g. if you wanted the selection handles to track the selection, you'd put the text field in a layer, the handles in a layer, and you'd tell the handles layer to track the global position of the selection layer

we don't have any support for this right now. @abarth might have ideas for how it should look, he's our layers guy.
Issue 1:
Do you want to request a feature or report a bug?

it is bug

What is the current behavior?

This is my webpack.config.js :

const browserConfig = {

entry :

APP_DIR + 'client/index.js',

output : {
path : BUILD_DIR,
filename : "[name] bundle.js",
publicPath:BUILD_DIR,
},

};

If the current behavior is a bug, please provide the steps to reproduce.

C:\Idessign>webpack

Hash: 18bc2fd105d4883da519

Version: webpack 4.3.0

Time: 116ms

Built at: 2018-3-28 12:58:19

WARNING in configuration

The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign'

What is the expected behavior?

compilation of files

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Version: webpack 4.3.0

node : v8.9.3

windows : 8.1 progetionnel

Issue 2:
If I have a entry hello.js like this:

require('./images/test.png');

and I use file-loader to handle this, then I want the built image named as "hello.test.png",how can I make it?

The following example can not fill my need:

{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: ['file?hash=sha512&digest=hex&name=[path][hash].[ext]']
}
Issue 1:
I have a module that requires some read, write and run permissions when using deno run. However, if I import the same module in the REPL these permissions are either granted implicitly or not required? This seems like a security risk because if an attacker can get someone to 'try out' their project by running an 'example' in the REPL,that code can circumvent explicit permission requirements and cause all kinds of havoc.

Maybe deno repl should implement a --prompt flag just like deno run and run with it by default? That way the REPL can still be used for quick prototyping, but also asks the user before granting for example net access to shady.site.

Issue 2:
I have a JavaScript monorepo wherein some sub-projects do not comply to Deno. To fully ignore them, I have to add three files.exclude configs to my deno.json:

{
"fmt": {
"files": { "exclude": ["modules/tools"] },
// More options.
},
"lint": {
"files": { "exclude": ["modules/tools"] },
// More options.
},
"test": {
"files": { "exclude": ["modules/tools"] },
// More options.
},
// More options.
}

I'd like a single top-level files config that had the same effect:

{
"files": { "exclude": ["modules/tools"] },
"fmt": {
// More options.
},
"lint": {
// More options.
},
"test": {
// More options.
},
// More options.
}

This DRYs up the config at the expense of increasing the complexity. It feels more natural to me than updating three places to effectively fully ignore a directory.

References

Mixed Deno workspaces in the VS Code extension

deno.json schema
Issue 1:
I was a little surprised when clip would not take other pandas objects as parameters. I hacked a little something below, but for readability I thought I might suggest that this feature be added.

df1 = DataFrame(ones((2, 2)))
data = ones((2, 2))
data[0, 0] = 0
data[1, 1] = 2
df2 = DataFrame(data)
print df2.clip(1.5, 0.5)

df3 = df2.copy()
df3[df2 > df1 * 1.5] = (df1 * 1.5)[df2 > df1 * 1.5]
df3[df2 < df1 * .5] = (df1 * .5)[df2 < df1 * .5]
print df3

Issue 2:
Here's what I mean:

In [4]: pd.Series(np.arange(7))
Out[4]:
0 0
1 1
2 2
3 3
4 4
5 5
6 6
dtype: int64

# Let's put some limit on weekends
In [5]: _4.clip_upper([3,3,3,3,3, 4,4])

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-3268c7bee292> in <module>()
----> 1 _4.clip_upper([3,3,3,3,3, 4,4])
/home/dshpektorov/sources/pandas/pandas/core/generic.pyc in clip_upper(self, threshold)
2636 clipped : same type as input
2637 """
-> 2638 if isnull(threshold):
2639 raise ValueError("Cannot use an NA value as a clip threshold")
2640

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Issue 1:
When ansible tries to create temporary directory in

mkdir -p $HOME/.ansible/tmp/ansible-tmp-....

on full disk I got unhandled exception UnicodeDecodeError

# ansible server1-testt11.cur.local -o -i hosts.rb -M /etc/ansible/modules -s -u ansible -m user -a "name=lbuild shell=/bin/bash group=users" -vvv
<server1-testt11.cur.local> ESTABLISH CONNECTION FOR USER: ansible
<server1-testt11.cur.local> REMOTE_MODULE user name=lbuild shell=/bin/bash group=users
<server1-testt11.cur.local> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 server1-testt11.cur.local /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1445521612.21-234730712043546 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1445521612.21-234730712043546 && echo $HOME/.ansible/tmp/ansible-tmp-1445521612.21-234730712043546'
Traceback (most recent call last):
File "/usr/bin/ansible", line 197, in <module>
(runner, results) = cli.run(options, args)
File "/usr/bin/ansible", line 171, in run
results = runner.run()
File "/usr/lib/pymodules/python2.7/ansible/runner/__init__.py", line 1498, in run
results = [ self._executor(h, None) for h in hosts ]
File "/usr/lib/pymodules/python2.7/ansible/runner/__init__.py", line 595, in _executor
self.callbacks.on_unreachable(host, msg)
File "/usr/lib/pymodules/python2.7/ansible/callbacks.py", line 396, in on_unreachable
display("%s | FAILED => %s" % (host, res), stderr=True, color='red', runner=self.runner)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 517: ordinal not in range(128)

Issue 2:
Hi,

My target node is Ubuntu 1204 64 bit, and ansible version is 1.7.1.

When node disk is full, ansible failed but told useless message.

$ ansible target_host -i inventory -m shell -a "pwd"
target_host | FAILED >> {
"failed": true,
"msg": "",
"parsed": false
}

after we remove $HOME/.ansible/tmp directory, correct error message could be displayed.

$ ansible target_host -i inventory -m shell -a "pwd"
target_host | FAILED => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1433819395.41-82744649514542 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1433819395.41-82744649514542 && echo $HOME/.ansible/tmp/ansible-tmp-1433819395.41-82744649514542, exited with result 1: mkdir: cannot create directory `/home/yunba/.ansible/tmp': No space left on device
Issue 1:
move these to pandas.api.exceptions

using pandas.util.depr_module this should be straightforward

Issue 2:
From SO: http://stackoverflow.com/questions/24064509/to-sql-pandas-method-changes-the-scheme-of-sqlite-tables

The reason is that get_table is not implemented for fallback mode (https://github.com/pydata/pandas/blob/master/pandas/io/sql.py#L1072), so a create_table_statement is always called (https://github.com/pydata/pandas/blob/master/pandas/io/sql.py#L525).

Should look at it further to see if this is solvable, or a restriction of sqlite fallback.
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 10 Insider 14342

If you mix code in the same file, it doesn't work well

For example, I create an empty Php file, and then add Html/Css/JavaScript code, it doesn't work

I mean, intellisense doesn't show <table or <div. It shows just Php stuff

However, you can collapse <head, <body and <script. Also you can collapse <div and <table

You can't add styles inside a div, for example <div style="display:none" (intellisense). The same with styles inside a <style

There is no way to make intellisense work on a <table for example for the width

Also would be nice jQuery support

Some simple code

Issue 2:
In PHP files there is no html tags auto completion, please add.

EDIT 9/13/2018 @egamma: VS Code provides only basic support for PHP, but there are powerful PHP extensions available in the market place:

PHP IntelliSense

PHP Intelephence.

This feature should be provided by these extensions (Intelephence actually already does support it). Please give these extensions a try and help to make them better by filing issues and pull requests.

This issue has lost focus and turned into a discussion whether VS Code should provide PHP support out of box. However, as with many other language like C#, C++, Go, Python, Rust we do not want to bundle PHP with VS Code but rather rely on our great extension ecosystem. I´m therefore closing this issue.
Issue 1:
Environment

Windows build number: Version 10.0.18362.356

Windows Terminal version: Version: 0.5.2762.0

Actual behavior:

Maximize window view : In maximize view of windows terminal, All tabs are displaying in tab layout.In this image I have opened 6 tabs in terminal.

Minimize window view : But after minimizing the window view of windows terminal. Tab layout is not displaying all the 6 opened tabs. It is displaying only 3 tabs but actually 6 tabs are opened.It is hiding the remaining tabs which are not able to fit in tab layout.

Same behavior getting for Maximize windows view also.

Expected behavior

For this issue we expect to accomplish the space of single tab layout by multiple tabs.

Example 1: Microsoft Edge browser

For multiple opened tabs Microsoft Edge browser provides 'scroll tab list forward' and 'scroll tab list backward' options to scroll over all the tabs and indicates the presence of multiple tabs.

Example 2: Google Chrome browser

For multiple opened tabs Google Chrome browser squeeze all the opened tabs in single tab layout.

Steps to reproduce

To resolve this issue we can add 'scroll tab list forward/backward' options or squeeze all the opened multiple tabs in tab layout.

Issue 2:
This bug-tracker is monitored by Windows Console development team and other technical types. We like detail!

Please use this form and describe your issue, concisely but precisely, with as much detail as possible

Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.18898.1000]

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

Video demonstration of both issues below

A newly created tab doesn't scroll the tab bar to the end - could possibly be a config variable

When using tabs in the title bar and creating a new partially hidden tab, the tab gets cut off.

What's wrong / what should be happening instead:

The tab should not be cut off.
Issue 1:
Seems like this would have been reported, but I had trouble finding a duplicate issue. Feel free to close if one does exist.

TypeScript Version:

nightly (1.9.0-dev.20160217)

Code

let foo: string | void
let cbr: (cb: (err: Error) => any) => any

if (foo) {
cbr(function () {
foo.substr(0, 10)
})
}

Expected behavior: No error

Actual behavior:

index.ts(6,9): error TS2339: Property 'substr' does not exist on type 'string | void'.

Edit: Only visible on nightly - notice that in nightly foo.substr within the if (foo) is valid, but not within the callback function which is also inside if (foo).

Issue 2:
This is a place holder for changes to the type narrowing behavior in TypeScript 2.0:

Generic type parameters are now narrowed

function g<T>(obj: T) {
var t: T;
if (obj instanceof RegExp) {
t = obj; // RegExp is not assignable to T
}
}

See the explanation by @Arnavion in #7719 (comment)

Type narrowing does not work for catprued variables in functions and class expressions

export class Class {
constructor(public p) { }
}

var c: Class | string;
var x: Class;

if (c instanceof Class) {
function inner() {
x = c; // Error, type of c is not narrowed, c is Class | string
}
x = c; // OK, c is Class
}
Issue 1:
As of 0.0.18 Flutter apps exhibit behavior described in dart-lang/sdk#24942. It seems flutter start launches the Dart VM using file path to lib/main.dart rather than package path.

dart-lang/sdk#24942 (comment) shows how to solve the problem with standalone Dart VM.

Issue 2:
--packages is the new way for Dart tools to operate, --package-root is deprecated.