WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
For previous discussion, see: https://groups.google.com/forum/#!topic/julia-users/FBmU-mxQ0k4

My request is to have functionality to be able to initialize a vector of size N and type T using the Vector(T, N) command. This would be equivalent to the current Array(T, N). The reason for this is that it if I have a function taking a Vector argument it feels nice to create the vector I send in to the function using a Vector constructor. Same for matrices.

I tried to implement it myself like this (and in some other ways) but it is not working:

Base.call{T}(::Vector{T}, size::Int) = Array(T, size)

Issue 2:
Both Dict and Array are parametric types. Constructing a Dict and an Array of variable size differs markedly, though:

* Dict{TypeA,TypeB}()

* Array(Type) while Array{Type}() doesn't work

This creates some confusion for people new to the language – also I think its inconsistent design.
Issue 1:
John Thoms opened SPR-7404 and commented

org.springframework.jms.support.converter.JsonMessageConverter would handle marshalling of JMS payloads similiar to MappingJacksonHttpMessageConverter for http and

spring-amqp/org.springframework.amqp.support.converter.JsonMessageConverter

Reference URL: http://forum.springsource.org/showthread.php?p=311501

Issue Links:

#11909 Add JsonMessageConvertor to Spring JMS from Spring Extensions project SE-AMQP ("is duplicated by")

Referenced from: commits 1adf825, 7ec9292

1 votes, 1 watchers

Issue 2:
Michael Isvy opened SPR-6944 and commented

Currently, if I need to write a form that links to my web application, I usually write it that way:

<c:url value="/client" var="form_url"/>
<form:form action="${form_url}">
...
</form:form>

Generated HTML is as follows:

<form id="command" action="/myWebApp/client" method="post">
Inside form
</form>

It would be easier if the form tag could include the context path out of the box (for any path starting with "/" for instance). In that way, I would not need to use the <c:url /> tag anymore.

Issue Links:

#13326 Form tag should prepend the contextPath and servletPath if not present ("is duplicated by")
Issue 1:
Tried to get help from mailing list, but nobody responded. See https://groups.google.com/forum/?fromgroups#!topic/symfony2/Ib7pMtVpV3Q for text explanations

I wrote simple test controller + test case to check this issue and it's failing.

See biozshock/symfony-standard@0bcd739

Functionality was added at 1099858 but i think tests do not fully cover it.

Or maybe I'm doing something in a wrong way?

Issue 2:
While trying out the new form PATCH feature, I ran into a bug:

Say for instance you have a form with two children: firstName, lastName,

and you PATCH with this data: array('firstName' => 'Hank')

now the "submit" method is never called on the child "lastName". Now there's a problem, because Form::isValid() only returns true if $this->submitted is true. However, this is false for the "lastName" child. A form with children, in turn, will only return true, if all of it's children are true, which, now, is not the case.
Issue 1:
Considering this code:

use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;

$resolver = new OptionsResolver();
$resolver->setDefaults([
'foo' => 1,
'bar' => null,
]);

$options = $resolver->resolve([
'bar' => function (Options $options) {
return $options['foo'];
}
]);
var_dump($options);

Result before 2.6:

array (size=2)
'foo' => int 1
'bar' => int 1

Result after 2.6:

array (size=2)
'foo' => int 1
'bar' =>
object(Closure)[2242]

I know Closure resolution is made for default options depending on others but sometimes it could be useful to reuse a default option.

Issue 2:
I'll provide a link to my Stack Overflow question if anyone is interested in more details. To sum it up I'm using postman to send POST requests to app.php/myroute/login which are converted into GET requests. If I post to just /myroute/login everything works fine. I post to the original url but move the .htaccess file and xdebug shows the method as being post. I don't think many people will access the application through app.php so I would say this is very low priority but it gave me a bit of trouble, I was accessing through app_dev.php and decided to remove _dev which lead me to this. People may come across this though in the future so I figured it would be good to submit it.

My Stack Overflow question
Issue 1:
After update atom to 0.189 I have several issues with clipboard.

If I copy something into clipboard from atom editor then I can't paste it in any program except atom. For example into gedit.

Even worse. If I try to paste it into some text field of any webpage opened in Google Chrome 41 then Chrome's tab freezes for a long time (several minutes) and then crashes. If I even try to copy some text from webpage opened in Chrome while clipboard already contains text copied from atom then Chrome still freezes (if clipboard contains any value not copied from atom then all is ok).

Issue 2:
I'm using Atom ver. 0.189.0 on Ubuntu 14.04.2 LTS. When I copy a piece of text in atom and I try to paste it the right-click menu either won't show up or will show up without giving me option to paste. The paste shortcut doesn't work either and it creates issues even if I try to copy and paste text from other programs (after I have coping something from atom). I have disable all the extra plugins, so it isn't a plugin issue. I didn't had this issue with the previous version (I am using webupd8 ppa). If I do a right click on a place where there isn't a text entry (meaning a place where it doesn't support paste anyway) the right click menu appears fine.
Issue 1:
by eric.atienza@mydoceapower.com:

What steps will reproduce the problem?
@see http://play.golang.org/p/unO74If5mD

What is the expected output?
in the expression "a.b.c.Check()" a is not nil, but b is.
I expect a run time panic to occur:

"If x is of pointer or interface type and has the value nil, assigning to,
evaluating, or calling x.f causes a run-time panic." (spec extract)

What do you see instead?
the method Check() is called instead.

Which compiler are you using? 6g
Which operating system are you using? Linux 3.5.0-18-generic
Which version are you using? (run 'go version')1.0.3

Issue 2:
What version of Go are you using (go version)?

go version go1.5beta2 darwin/amd64

What operating system and processor architecture are you using?

OS X 10.10.4 (64-bit)

What did you do?

go get -u github.com/shurcooL/go-get-issue-cgo

What did you expect to see?

No output, successful go get (fetch, build and install).

What did you see instead?

package github.com/shurcooL/go-get-issue-cgo
imports C: unrecognized import path "C"

Likely Cause

I haven't verified it, but I am quite certain (it's very likely) this is a regression caused by the code change in https://go-review.googlesource.com/#/c/12192/.

After writing up this report, I've realized this issue is a duplicate of #11738 and can be closed right away (filing just in case some additional information here is helpful).
Issue 1:
Importing numpy raises AttributeError when using latest version, 1.16.0.

Reproducing code example:

import numpy as np

Gives error traceback:

AttributeError Traceback (most recent call last)

in

----> 1 from sklearn.datasets import make_classification

2 from sklearn.preprocessing import StandardScaler,label_binarize

3 from sklearn.svm import SVC, LinearSVC

4 from sklearn.multiclass import OneVsRestClassifier

5 from sklearn.pipeline import make_pipeline

~/.local/lib/python3.6/site-packages/sklearn/init.py in

62 else:

63 from . import __check_build

---> 64 from .base import clone

65 from .utils._show_versions import show_versions

66

~/.local/lib/python3.6/site-packages/sklearn/base.py in

8 from collections import defaultdict

9

---> 10 import numpy as np

11 from scipy import sparse

12 from .externals import six

~/.local/lib/python3.6/site-packages/numpy/init.py in

140 from . import _distributor_init

141

--> 142 from . import core

143 from .core import *

144 from . import compat

~/.local/lib/python3.6/site-packages/numpy/core/init.py in

57 from . import numerictypes as nt

58 multiarray.set_typeDict(nt.sctypeDict)

---> 59 from . import numeric

60 from .numeric import *

61 from . import fromnumeric

~/.local/lib/python3.6/site-packages/numpy/core/numeric.py in

3091 from .umath import *

3092 from .numerictypes import *

-> 3093 from . import fromnumeric

3094 from .fromnumeric import *

3095 from . import arrayprint

~/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py in

15 from . import numerictypes as nt

16 from .numeric import asarray, array, asanyarray, concatenate

---> 17 from . import _methods

18

19 dt = nt.sctype2char

~/.local/lib/python3.6/site-packages/numpy/core/_methods.py in

156 )

157

--> 158 _NDARRAY_ARRAY_FUNCTION = mu.ndarray.array_function

159

160 def _array_function(self, func, types, args, kwargs):

AttributeError: type object 'numpy.ndarray' has no attribute 'array_function'

Issue 2:
I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.

The most closely related issue I could find is #12028.

Reproducing code example:

import numpy as np

Error message:

Traceback (most recent call last):
File "/home/trey/script.py", line 6, in <module>
import numpy as np
File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in <module>
from . import numeric
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in <module>
from . import fromnumeric
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in <module>
from . import _methods
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in <module>
_NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Numpy/Python version information:

1.16.0

3.6.7 (default, Oct 22 2018, 11:32:17)

[GCC 8.2.0]
Issue 1:
It'd be awesome if the navigation tree did basically the same thing as github, letting you easily skip through multiple levels of nested trees. (This turns out to be a super common thing with Java code)

Cheers! ❤️

Issue 2:
I occasionally have to work on Java projects for work. Java essentially requires project hierarchies like the following:

\project
\src
\com
\example
\project
\app
source1.java
source2.java
source3.java
\library-foo
source1.java
source2.java
source3.java

Java IDEs have a feature in their tree-view controls to collapse directories that only have one entry in them underneath src. So the above would look like this:

\project
\src
\com.example.project
\app
source1.java
source2.java
source3.java
\library-foo
source1.java
source2.java
source3.java

I'd like to see Atom tree-view support this feature as well on an opt-in basis.
Issue 1:
Vue.js version

1.0.27

Reproduction Link

https://jsfiddle.net/gckb9mkv/1/

Steps to reproduce

Open the fiddle and check the console output

What is Expected?

Same code but with 1.0.26 dependencies.

https://jsfiddle.net/qjvz0p1x/

// p1:Array[2]

// p2:Array[0]

// p3:"toto"

What is actually happening?

// p1:"a,b"

// p2:true

// p3:"toto"

Issue 2:
Vue.js version

1.0.27

Description

Parameter data type is illegal to chang

Reproduction Link

jsfiddle

What is Expected?

Here is same example with version 1.0.26 where it works
Issue 1:
Similar to Fancy Zones be able to define locations for Windows to be positioned in response to specific scenarios - in this can switching between single and dual (or more) monitor configurations - either docking/undocking a laptop, or connecting to a remote desktop session with "use all monitors" or a single screen.

A specific use-case:

I usually work with my Windows VM via a remote desktop scenario where I have two screens. My 'host' in my Macbook with an external monitor, and Windows via Remote Desktop supports that very well, allowing me to use both screens and arrange windows where I want/need them... but, if I'm away from that desktop and connect via my iPad or my laptop without it's external screen then all the remote desktop windows get 'gathered' back into the single screen (desired behavior), but when I log back in via the dual screen configuration I have to waste time moving windows back to my preferred layout.

Would love to be able to set up rules so that (eg) when moving to a single screen Windows behaves as normal, but when a second screen is available automatically move (VSCode, Chrome, Powerpoint) to the second screen (ideally it would remember the positions they were in before they had been 'gathered' across to the single monitor and so revert to actual positions and sizes rather than just retain relative sizing/position to where they had been in the gathered scenario

Issue 2:
ℹ Computer information

PowerToys version: 0.21.1

PowerToy Utility: Run

Running PowerToys as Admin: Yes

Windows build number: 18363.1082 || 1909

📝 Provide detailed reproduction steps (if any)

Run PowerToys

Run "PowerToys Run"

Try to find any application || .exe

✔️ Expected result

My favorite executable I was looking for :)

❌ Actual result

I can't find no one application || .exe . In an earlier version i easy find any application || .exe

📷 Screenshots
Issue 1:
Please:

The environment is ubuntu 20.04 & Jetpack v5.0.1 - build follows Jetson Zoo website

I have tried to both compile jax without success. pip3 install jax[cuda] works. However if I run pip3 install jaxlib I get an error code Error: No matching distribution found for jaxlib

when I have tried to compile, the .cache for bazel uses all my free disk space.

Thanks in advance for your assistance,

Paul

Issue 2:
Potentially related to #6932 or #7052.

I am using a heterogeneous cluster with various different compute options. I got Jax and Flax installed fine on the CPU system. Then I tried using a GPU node (specifically dual socket Cavium ThunderX2 99xx 32-core processors with two NVIDIA Tesla V100 GPUs), but am unable to install jaxlib:

$ pip install --upgrade jax jaxlib==0.1.68+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html
Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html
Requirement already satisfied: jax in /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages (0.2.16)
ERROR: Could not find a version that satisfies the requirement jaxlib==0.1.68+cuda111 (from versions: none)
ERROR: No matching distribution found for jaxlib==0.1.68+cuda111

or even

pip install jaxlib
ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none)
ERROR: No matching distribution found for jaxlib

Below is my pip version, which is up to date. Pip also installs other libraries fine (numpy, scipy, etc.)

$ pip --version
pip 21.1.2 from /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages/pip (python 3.7)
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

When running the test on a multiple line comment such as:

/*

comment

*/

the code does not pass. /* comments / are usually used when you want to span a comment across multiple lines, this would be a great area to talk about the difference between the two. To fix the bug you could add your regex expression to check continuous lines for the / */ comment

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Left side error checking seems wrong
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When calling Dialog component with fullWidth=true and no other props I would expect the Dialog to take up the full width of the screen

Current Behavior

What's happening is because the of the defaultProps value for maxWidth is 'sm' the true width ends up being capped at 600px like so:

I only noticed the issue when I accidentally put 'lg' a value which is not supported and noticed that it worked like I wanted it to

Steps to Reproduce (for bugs)

Open Dialog component with props fullScreen=true

Context

I would like to submit a PR if approved to check if there is fullScreen applied and no maxWidth prop provided to ignore the defaultProps of 'sm'

Your Environment

Tech
Version

Material-UI
1.0.0-beta.26

React
16

browser
Chrome 63

etc

Issue 2:
I am trying the following:

const decorate = withStyles(({ palette }) => ({
root: {
}
}));

class MyComponent extends React.Component<WithStyles<'root'>> {

// What should be the type of the props?
constructor(props: WithStyles<'root'>) {
super(props);
// ... do things
}

render() {
const cl = this.props.classes!;
return <div className={cl.root}>hi</div>;
}
}

export default decorate<{}>(MyComponent);

However struggling to work out the right constructor props type

Error:(67, 29) TS2345:Argument of type 'typeof MyClass' is not assignable to parameter of type 'ComponentType<WithStyles<"root">>'.
Type 'typeof MyClass' is not assignable to type 'StatelessComponent<WithStyles<"root">>'.
Type 'typeof MyClass' provides no match for the signature '(props: WithStyles<"root"> & { children?: ReactNode; }, context?: any): ReactElement<any> | null'.

The Typescript Guide in the docs doesn't provide an example to show how to type a constructor

I have searched the issues of this repository and believe that this is not a duplicate.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
16.0.0 (using @types/react 16.0.18
Issue 1:
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.

It would be great to get a stack trace here so I know what this warning is referring to

Issue 2:
Seeing something like:

Warning: Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child.

Is really useful but... not so much if you don't know where the offending code is. A trace call would really help narrow down where in an application the problematic code is.

This would also obliviate the need for the (pointless) try/catch below that needs to be edited to even work (it catches the error it throws).
Issue 1:
As was noted in the RFC discussion, covariant lifetime positions (which I was mistakenly referring to as "contravariant") should require explicit lifetime annotations.

cc #15552

Issue 2:
Three related FIXMEs in back::link suggest adding back-end optimization levels other than -O2, exposing and using lists of specific LLVM optimizations, or at least not duplicating the LLVM optimizer's list of -O2 optimizations.
Issue 1:
Bug Report

Current Behavior

Duplicate declaration "x" is thrown for the below code, this does not happen when natively run by e.g. Chrome. See @kzc's comments below for clarification of the ECMA specification where it's also shown that the Bable behavior is incorrect.

This does not matter in itself, it doesn't make sense to write this code. However, e.g. Terser correctly treats them as different scopes and reuses variable names as below if it sees that the for-variable is not used (this mostly happens when using .entries() and you at some point stop referencing key or value). This makes it fragile to import some pre-minified code in projects, especially as the error does not show up until it is transpiled by Babel, the code works on its own.

Input Code

for (let x of [1]) {
let x=1;
}

Expected behavior/code

x should be shadowed and the code should compile. Again, see @kzc's comments below for exact expected behavior.

Environment

Easily replicated in the Babel repl (online), 7.4.0, use es2015 or preset-env.

https://babeljs.io/repl/#?babili=false&browsers=ie%20%3E%3D%2011&build=&builtIns=false&spec=false&loose=true&code_lz=GYewTgBAFANgpgFwgDwiYEDaBGAugSggG8AoCCeJZAXmwG4SBfIA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=env&prettier=false&targets=&version=7.4.5&externalPlugins=

Possible Solution

Do not throw the error, the code should compile.

Issue 2:
Bug Report

Current Behavior

Throws this exception:

TypeError: undefined: Duplicate declaration "i"
1 |
2 | for (let i of 'foo') {
> 3 | let i = 'a';
| ^
4 | console.log(i);
5 | }
6 |

Input Code

for (let i of 'foo') {
let i = 'a';
console.log(i);
}

Expected behavior/code

Should prints 'a' three times instead of throws this exception.

This is the behaviour in Node and Safari, for example.

Babel Configuration (CLI command)

const output = require('@babel/core').transform(`
for (let i of 'foo') {
let i = 'a';
console.log(i);
}
`, {
presets: ['@babel/preset-env']
});

Environment

Babel version(s): lastest

Node/npm version: Node 9

OS: macOS High Sierra

Monorepo: yes

How you are using Babel: cli
Issue 1:
I am currently using bootstrap as a library (not a boilerplate) for a node.js web server. The problem is that when I do this, then it takes forever to pull the entire repo and all history from github.

"dependencies": {
"bootstrap": "git+https://github.com/twbs/bootstrap.git#v3.0.0"
}

I noticed that the person that owns bootstrap on npm is not tied to this repo.

http://npmjs.org/package/bootstrap

I would be thrilled if this repo was published as an npm module so that it could be included inside of a project without a git url pointing to npm.

Does anyone else feel this is important? If so, what are the next steps?

Issue 2:
With the launch of v3 and the new org, we should formalize the node packages that are out there and ensure they're kept up to date. No idea what this would take, but I'm making a note of it here so we tackle it soon. These two seem like the most popular, Less and Sass versions:

Bootstrap: https://npmjs.org/package/twitter-bootstrap

Sass port: https://npmjs.org/package/bootstrap-sass

Let me know if folks think of any other ports, packages, add-ons, etc that could use formalizing (aside from Sass).
Issue 1:
The api.txt file does not include the values of constants. It needs to do so.
Named constants must not change value over the lifetime of Go 1.
If we have made any such mistakes already, we need to identify them.
We need to have this fix in place for Go 1.2 to prevent future mistakes.

Issue 2:
What does 'go version' print?
go version devel +74a1371ffaf1 Tue Apr 22 17:13:38 2014 -0700 + linux/amd64

What steps reproduce the problem?
Current lib/time/zoneinfo.zip is based on 2013g version of IANA timezone database. The
most recent one is 2014b. Don't we want to update it before Go 1.3?