WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
While deleting duplicate relationships after a while the heap got exhausted.

Action executed:

call apoc.periodic.commit("match (a)-[r]-(b)

with a,b, TAIL(collect(r)) as rr

where length(rr)>0

foreach (r in rr | delete r)",{limit:10000});

Heap dump:

JVM:

-Dlog4j.configuration=file:conf/log4j.properties

-Dneo4j.ext.udc.source=zip-powershell

-Dorg.neo4j.cluster.logdirectory=data/log

-Xms24g

-Xmx24g

-XX:+UseG1GC

-XX:-OmitStackTraceInFastThrow

-XX:+AlwaysPreTouch

-XX:+UnlockExperimentalVMOptions

-XX:+TrustFinalNonStaticFields

-XX:+DisableExplicitGC

-Djdk.tls.ephemeralDHKeySize=2048

-Dunsupported.dbms.udc.source=zip

-Xloggc:C:\Local.Work\neo4j-enterprise-3.1.1-SNAPSHOT/gc.log

-XX:+PrintGCDetails

-XX:+PrintGCDateStamps

-XX:+PrintGCApplicationStoppedTime

-XX:+PrintPromotionFailure

-XX:+PrintTenuringDistribution

-XX:GCLogFileSize=20m

-XX:NumberOfGCLogFiles=5

-Dfile.encoding=UTF-8

Nodes

MATCH (n) RETURN count(n)

count(n)

44594815

Relationships

$MATCH ()-->() RETURN count();

count()

28557252

Issue 2:
I found a discrepancy when running two semantically equivalent queries against an empty database:

1:

CREATE ({x:0})<-[y:A]-() CREATE ({x:endNode(y).x})
-
RETURN COUNT { ({x:0}) } AS n

Produces:

╒═══╕
│"n"│
╞═══╡
│1 │
└───┘

2:

CREATE ({x:0})<-[y:A]-() CREATE (z) DELETE z CREATE ({x:endNode(y).x})
-
RETURN COUNT { ({x:0}) } AS n

Produces:

╒═══╕
│"n"│
╞═══╡
│2 │
└───┘

I believe the queries mentioned above are semantically equivalent and thus their result should be the same.

The only difference between them is the CREATE (z) DELETE z part which shouldn't have any impact on the query, especially on properties that it doesn't reference.

I encountered this issue when testing queries against the neo4j:5.6.0 Docker container.

Steps to reproduce

Run the Docker Container

docker run \
-p 7474:7474 -p 7687:7687 \
--name neo4j-apoc \
-e apoc.export.file.enabled=true \
-e apoc.import.file.enabled=true \
-e apoc.import.file.use_neo4j_config=true \
-e NEO4J_PLUGINS=\[\"apoc\"\] \
-e NEO4J_AUTH=none
--rm \
neo4j:5.6.0

Navigate to the browser interface on localhost:7474

Run the aforementioned queries and observe that their results differ.

Expected behavior

The queries should result in the same behavior

Actual behavior

The first query returns 1, whereas the second query returns 2.
Issue 1:
Palette and PaletteOptions ts defintions (probably others) are not in sync with the changes made on #9794

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

Your Environment

Tech
Version

Material-UI
latest beta

React
16

browser
Chrome 63

etc
TS 2.6.2

Issue 2:
Visit http://www.material-ui.com/#/components/flat-button

Scroll down to bottom of the page. The content seem to be broken.
Issue 1:
Issue originally reported by @danez in babel/babylon#78

According to the spec when defining multiple variables with the same name, the parser should throw and SyntaxError when using let or const:

let foo, foo;

or

let foo; let foo;

From 13.2.1.1:

It is a Syntax Error if the BoundNames of BindingList contains any duplicate entries.

V8 trows an error for let and const, but not vor var.

Issue 2:
Choose one: is this a bug report or feature request?

Input Code

const t = true

{
t = false
}

{
t = false
}

Babel/Babylon Configuration (.babelrc, package.json, cli command)

{
presets: ['es2015']
}

Expected Behavior

Current Behavior

var t = true;
{
t = (function () {
throw new Error("\"t\" is read-only");
}(), false);
}
{
t = (function () {
throw new Error("\"t\" is read-only");
}(), false);
}

Possible Solution

var _tReadonlyError = new Error("\"t\" is read-only");

var t = true;
{
t = (function () {
throw _tReadonlyError;
}(), false);
}
{
t = (function () {
throw _tReadonlyError;
}(), false);
}

Context

It's just an idea. We can hoist the error (or even the function) to avoid duplicating code so much. Minifiers probably won't catch it in more complex condition.

Your Environment

REPL

What do you think about that @maurobringolf?
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/236 on 2006-07-17 by trac user nil, assigned to trac user nil.

Sparse matrices are a very interesting data model for graphs or edges-only meshes. But using float dtype spends too much place where we only need boolean information. So, an extension of this module, with dtypes bool (and maybe int8/int16/int32) would be really useful.

I can help work on this topic.

Issue 2:
Is your feature request related to a problem? Please describe.

For an experiment, I first performed the Wilcoxon Rank Sum Test (of Scipy) and now I would like to report the measured effect-size.

Describe the solution you'd like.

For non-normal distributed data, that has a Wilcoxon-RankSum-Test proven difference common tests would be Vargha-Delaney or Cliff's Delta e.g. from Wikipedia

Describe alternatives you've considered.

There are some Gist-Implementations and Snippets found online, that will do the trick.

Additional context (e.g. screenshots, GIFs)

No response
Issue 1:
I observed some unexpected specialization behavior with keyword arguments.

julia> function f(x; as::Type{T} = Int) where {T}
return T(x)
end

Then

julia> @code_warntype f(1, as = Float64)

seems to indicate that it is not really specializing, but juggling around with DataType. I would have expected this with just as::Type = Int because of some specialization heuristic I know from positional arguments.

Is this intended? Or maybe @code_warntype is lying to me? Reproduced on julia 1.5 and 6 days old master.

Edit: Maybe this is #37797? Don't know enough about the internals.

Issue 2:
@code_typed (and code_typed) will sometimes report a different result than actually gets inferred if you call the function. For example:

julia> f1(x) = Base.typemax(x)
f1 (generic function with 1 method)

julia> @code_typed f1(Int)
CodeInfo(
1 ─ return 9223372036854775807
) => Int64

Here @code_typed shows you fully specialized code, even though in reality this call will not be specialized (it will be a dynamic dispatch to typemax(Type{Int})).

xref: the documentation change here: #32817

Note that @code_typed and friends will always show you specialized code, even if Julia

would not normally specialize that method call. You need to check the

[method internals](@ref ast-lowered-method) if you want to see whether specializations are generated

when argument types are changed.

Could we either change @code_typed or add a flag to @code_typed that will show you the code as julia would actually specialize it, instead of fully specialized to your argument type? :)
Issue 1:
and users can't get around it :/

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @mruberry @jbschlosser

Issue 2:
Now only autograd RNN supports double backwards. We should make cudnn RNN work as well.

cc @ezyang @ssnl @albanD @zou3519 @gqchen @csarofeen @ptrblck
Issue 1:
Hi,

Would you be interested in getting rid of Pixel measurements and taking a more flexible approach, using EM?

For things like, for example Legend size, paddings for headings, alert blocks, buttons nav tabs. These things are more likely to be relative than absolute.

Also, sizes of input controls, sizes or labels and many more things. All of them rely heavily on the base font size, and it will such an improvement to have all those things in a relative measurements (em) rather than absolute (px).

Issue 2:
Hello,

I am fiddling a bit around with the responsive approach in Bootstrap. I feel that the way it is implemented is sometimes a bit static. Are there any plans or idea's (or am I not aware of the ability) to say something like "4 columns" on desktop size. "3 columns" on tablet size. And/or to say the sidebar for instance is just informative, it should be hidden when seeing the site on a mobile device.

I know how I can do this myself, but I was wondering if this community had such a thing in the planning or you have idea's what the best way is to build it? Any feedback is welcome.

I am creating something like this now.

Example 1 (4 columns on desktop, 3 on tablet)

<div class="span3 portrait-span4">one</div>
<div class="span3 portrait-span4">two</div>
<div class="span3 portrait-span4">three</div>
<div class="span3 portrait-span12">four</div>

Example 2 (2 columns on desktop, 1 on tablet)

<div class="span8 portrait-span12">main</div>
<div class="span4 portrait-hidden">side</div>

CSS

@media (min-width: 768px) and (max-width: 980px) {
.portrait-hidden{
display:none;
}
.portrait-span12, .portrait-container {
width: 724px;
}
.portrait-span4 {
width: 228px;
}
Issue 1:
There is a SizedBox in Tab class, the height of SizedBox cannot be modified.

I need a less height of Tabbar tab.

same as #13322

Thank you.

Issue 2:
The height of the Tabs get hardcoded in the Tab Widget. I would like to use custom images instead of the icons and they are a bit bigger. Unfortunately the the widgets shows the clipping text when the Images gets applied because of the hardcoded height values (see below). I would suggest to set these values in the ctor as default values to give the user a option to change them. Also a enum in ctor would be great which has two values (manual, autosize). Autosize would size based on the content and manual sizing would size use the default or passed in ctor values. These changes could be compatible with the current API.

Hardcoded heights now tabs.dart

flutter/packages/flutter/lib/src/material/tabs.dart

Lines 93 to 99
in
e6ed069

double height;

Widget label;

if (icon == null) {

height = _kTabHeight;

label = _buildLabelText();

} else if (text == null && child == null) {

height = _kTabHeight;

[√] Flutter (on Microsoft Windows [Version 10.0.16299.98], locale en-US, channel alpha)
• Flutter at c:\sdks\flutter
• Framework revision d957c8f040 (2 days ago), 2017-11-30 13:29:59 -0800
• Engine revision 77d8acb9be
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-dev.9.0

[√] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Unable to locate Android NDK.

• Unable to locate compiler in Android NDK.

• Platform android-27, build-tools 27.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25

[√] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1400 on 2010-02-18 by trac user ChristianMarquardt, assigned to unknown.

When compiling numpy-1.4.0 with the Sun Studio Compilers (v12 Update 1) on Linux (an OpenSUSE 11.1 in my case), about 30 tests in numpy.test() fail; all failures are related to the arctan2 function.

I've found that in r7732 a patch was applied to trunk/numpy/core/src/private/npy_config.h in response to #1799, #1800, and #1801, #undef'ing the HAVE_ATAN2 variable in order to fix a broken atan2() implementation on Solaris. This does no good with the SunStudio 12.1 compiler on Linux, though; it apparently only works without failures with HAVE_ATAN2 defined.

The attached patch ensures that the original patch is only applied on Sun platforms (i.e., not on Linux). If applied, all tests are completed successfully under Linux. BTW, I did not observe #1802 or #1803...

I have no access to a Solaris machine, so I don't know if the original patch (which was for Sun workshop 6 - I think that's not available any more) is required with Sun Studio 12.1 at all.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1824 on 2011-05-08 by @rgommers, assigned to unknown.

Reported by Ilan Schell on Solaris:

======================================================================
FAIL: test_zero_nzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 322, in test_zero_nzero
assert_almost_equal(ncu.arctan2(np.PZERO, np.NZERO), np.pi)
File "/home/demo/master/lib/python2.7/site-packages/numpy/testing/utils.py",
line 468, in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 7 decimals
ACTUAL: 0.0
DESIRED: 3.141592653589793

======================================================================
FAIL: test_zero_pzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 328, in test_zero_pzero
assert_arctan2_isnzero(np.NZERO, np.PZERO)
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 310, in assert_arctan2_isnzero
assert (ncu.arctan2(x, y) == 0 and np.signbit(ncu.arctan2(x, y))),
"arctan(%s, %s) is %s, not -0" % (x, y, ncu.arctan2(x, y))
AssertionError: arctan(-0.0, 0.0) is 0.0, not -0
Issue 1:
Describe your issue.

One way to speed up scipy.optimize.minimize is to compute the gradient when computing the function value. Because most of the computation are shared, this nearly half the amount of time required.

Although shgo document this under the "options" parameter, it actually doesn't work: _shgo_lib/triangulation.py tries to compare the results when calling the function twice. But because the result is a numpy array, it fails with a ValueError: "The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()".

Reproducing Code Example

import numpy as np
from scipy.optimize import minimize, shgo

def f(x):
return np.sum(x * x), 2 * x

# This succeeds
print(minimize(f, [0.5, 0.5], jac=True))
# This fails
print(shgo(f, [(-1., 1.), (-1., 1.)], options={'jac': True}))

Error message

File .../scipy/optimize/_shgo_lib/triangulation.py:597, in <genexpr>(.0)
595 """Check whether this vertex is strictly less than all its neighbors"""
596 if self.check_min:
--> 597 self._min = all(self.f < v.f for v in self.nn)
598 self.check_min = False
600 return self._min

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

SciPy/NumPy/Python version information

1.7.3 1.21.6 sys.version_info(major=3, minor=9, micro=5, releaselevel='final', serial=0)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/350 on 2007-01-19 by @nilswagner01, assigned to unknown.

Iterative solvers need some kind of a monitoring function to observe the convergence behaviour.
Issue 1:
https://github.com/huggingface/transformers/blob/master/src/transformers/pipelines.py#L2509

Issue 2:
OSError: Can't load tokenizer for 'google/reformer-enwik8'. Make sure that:

'google/reformer-enwik8' is a correct model identifier listed on 'https://huggingface.co/models'

or 'google/reformer-enwik8' is the correct path to a directory containing relevant tokenizer files

https://huggingface.co/google/reformer-enwik8?text=My+name+is+Julien+and+I+like+to
Issue 1:
On a Ubuntu 14.04 machine with a fresh copy of Julia master installed and an existing ~/.julia/v0.5 setup, Pkg.clone of an unregistered package throws an error:

julia> Pkg.clone("https://github.com/JaredCrean2/PETSc.jl.git") #For example
INFO: Cloning PETSc from https://github.com/JaredCrean2/PETSc.jl.git
ERROR: unlink: no such file or directory (ENOENT)
in cd at pkg/dir.jl:37
in clone at pkg.jl:38

Issue 2:
On a Ubuntu 14.04 machine with Julia master and no package repo, Pkg.init gives an error:

julia> Pkg.init()
INFO: Initializing package repository /afs/csail.mit.edu/u/j/jiahao/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: [Code:ERROR, Class:Net]: Unsupported URL protocol
[inlined code] from libgit2/error.jl:96
in clone at libgit2/repository.jl:95
in clone at libgit2.jl:303
in anonymous at pkg/dir.jl:57
in cd at file.jl:22
in init at pkg/dir.jl:55
in init at pkg.jl:23
Issue 1:
Environment

Windows 10 b1903 18932.1000

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

Any other software?

Steps to reproduce

Add a path with spaces in System-Environment Variables at the end of existing ones, e.g.

PATH=C:\Windows;C:\Windows\System32;C:\Program Files\Microsoft VS Code Insiders\bin

Expected behavior

New path working.

Actual behavior

By typing "path" with a cmd terminal or "$env:path" with powershell, the path entry with spaces disappeared.

Issue 2:
Lastest version of MS terminal preview

The highlight of exec files will behave strangely after resizing the window
Issue 1:
It would be useful to have a permission option to limit the imports to a certain domain or directory.

Issue 2:
Context: Currently loading dynamic imports or worker code requires --allow-read and/or --allow-net flags. Appropriate permissions are checked for entry point as well as all dependent modules. This leads to a situation where even quite simple scenarios require to grant a lot of permissions.

Example 1:

// main.ts

console.log("hello");
const a = await import("./dyn_import.ts");
console.log(a);

// dyn_import.ts
import "./subdir/a.ts";
import "./subdir/b.ts";
import { join } from "https://deno.land/std@0.75.0/path/mod.ts";

export ...

I above example one needs to run with following flags:

deno run --allow-read=dyn_import.ts,subdir/ --allow-net=deno.land main.ts

Similarly for workers, example 2:

// main.ts

console.log("hello");
const worker = new Worker(new URL("./worker.ts", import.meta.url), { type: "module" });
worker.postMessage("foo")

// worker.ts
import "./subdir/a.ts";
import "./subdir/b.ts";
import { join } from "https://deno.land/std@0.75.0/path/mod.ts";

export ...

I above example one needs to run with following flags:

deno run --allow-read=worker.ts,subdir/ --allow-net=deno.land main.ts

In other words, doing dynamic imports or using workers requires to open up the sandbox by providing read and/or net permissions to load ES modules that will be executed. Of course one could revoke those permissions after the load is done, but with top-level-await this becomes quite tricky.

My proposal:

Introduce new flag --allow-import=<allow_list> and change semantics of permission check for loading modules. Instead of verifying permissions for each static import we should only check permission of entry point. User could specify --allow-import to allow all dynamic imports and workers. So invocations for above examples would look as follows:

Example 1:

deno run --allow-import=dyn_import.ts main.ts

Example 2:

deno run --allow-import=worker.ts main.ts

Notice that no runtime permissions were given (no --allow-read, nor --allow-net).

Going forward with this proposal would be a huge breaking change in semantics and require profound refactors. IMO we could start by introducing --allow-import and its semantics in next minor release, while keeping old semantics working (and showing warnings about it being deprecated). Then after one or two minor releases completely remove old semantics. Alternatively it could be 2.0 material.

This issue is directly related to #8109 and #8215

CC @kitsonk @ry @lucacasonato @piscisaureus
Issue 1:
I got the error below when running the Julia make. But going to deps\openspecfun and running make there seemed to work fine, and I was able to continue the Julia make afterward.

uname -a
Linux giada.mitre.org 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)

gcc --version
gcc (GCC) 4.8.2

git --version
git version 2.5.0
(but the default gcc and git on this system are older)
....
make[1]: *** [openspecfun/Makefile] Error 129
make: *** [julia-deps] Error 2
[keithc@giada julia]$ make
In file included from /devel/asias/keithc/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:45:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /devel/asias/keithc/julia/usr/include/openlibm_fenv.h:8:0,
from /devel/asias/keithc/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^
compilation terminated.
make[2]: *** [Faddeeva/Faddeeva.c.o] Error 1
make[1]: *** [openspecfun/libopenspecfun.so] Error 2

Issue 2:
On a fresh checkout on ubuntu 14.04, using gcc 4.8, I am seeing:

In file included from /home/justdial/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:44:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /home/justdial/julia/usr/include/openlibm_fenv.h:8:0,
from /home/justdial/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^
Issue 1:
tsc version 1.6.2

Test case:

interface ProblemMatcher {
owner: string;
}

interface Task {
problemMatchers: ProblemMatcher[];
}

let matcher: ProblemMatcher = {
owner: 'ts'
};

(matcher as any).mySpecial = true;

class Parser {
public process() {
let task: Task;
for(let matcher of task.problemMatchers) {
if ((matcher as any).mySpecial) {
// Do something.
}
}
}
}

The compiler generates

var matcher = {
owner: 'ts'
};
matcher.mySpecial = true;
var Parser = (function () {
function Parser() {
}
Parser.prototype.processOne = function () {
var task;
for (var _i = 0, _a = task.problemMatchers; _i < _a.length; _i++) {
var matcher_1 = _a[_i];
if (matcher.mySpecial) {
}
}
};
Parser.prototype.processTwo = function () {
var task;
for (var _i = 0, _a = task.problemMatchers; _i < _a.length; _i++) {
var matcher_2 = _a[_i];
if (matcher.mySpecial) {
}
}
};
return Parser;
})();

The problematic code is If (matcher.mySpecial) ... This must be if (matcher_2.mySpecial)

Issue 2:
foo.ts

export function foo() { }

bar.ts

import { foo } from './foo';

(foo as any);

bar.js

var foo_1 = require('./foo');
foo;

(<any>foo) works correctly btw.