WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Choose one: is this a bug report or feature request? Bug report

Input Code

https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=MYewdgzgLgBATiA7jAvDALAbgFCkrUAGwFcBbMVGAJh2wHo6YAREAUwjFkRDgGtsAbgEM4MAN4wA2gkQBdAFzipRMmAUwA-gBoYAOn1hWADygAlJDAC-O_bsMmAyq1iXKY7AEh0i9zD8wPKkUoOGJWLWx_KwjLHDwIEEJWXUIQAHMACnszJB1spygASloGGAB1Hl4IbEERJWkkdQlJFXJ1bT0DYxzka067boKrN09vcUj_QODQ8Im_a2xY3HAEpJT0rO7zRDzB52KgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&lineWrap=true&presets=es2015%2Ces2016%2Ces2017%2Creact%2Cstage-0%2Cstage-1%2Cstage-2%2Cstage-3&prettier=false&targets=&version=6.26.0&envVersion=

Doesn't Work

const { [row]: { [column]: _, ...nextRow }, ...nextSet } = {
4: {
2: true,
},
};
console.log(nextRow, nextSet);

Work

Same code as above:

const { [row]: { [column]: _, ...nextRow }, ...nextSet } = {
4: {
2: true,
},
};
console.log(nextRow, nextSet);

{
"presets": ["react-app"]
}

Expected Behavior

Computed numeric properties to be transformed before omitted

Current Behavior

Requires to manually transform computed numeric properties to strings before omitting

Possible Solution

Computed numeric properties to be transformed to strings before omitted automatically

Context

I was surprised to discover a spread operation to work as expected

Your Environment

software
version(s)

Babel
^7.0.0-beta.38

node
v9.9.0

npm
5.5.1

Operating System
macOS 10.12.6

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

bug

Input Code

const a = { 1: 0, 2: 1, 3: 2 }
const i = 1
const { [i]: val, ...rest } = a

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

{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
}

Expected Behavior

rest should be

{
"2": 1,
"3": 2,
}

Current Behavior

rest is

{
"1": 0,
"2": 1,
"3": 2,
}

Possible Solution

indexOf compares with 3 equals and the object key is represented as string

babel/packages/babel-helpers/src/helpers.js

Line 469
in
88b7983

if (excluded.indexOf(key) >= 0) continue;

Context

running react-native application

Your Environment

using react native with expo

{
"expo": {
"sdkVersion": "21.0.0"
}
}

dont know about configuration
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

click the anchor then click the run test button and the instructions bellow dissepear and you cannot continue to the next challenge. refreshing the page and click on run test and submit helps.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Code below "You shouldn't need to modify code below this line" initially missing, then once it appears, instructions disappear. Reloading page sometimes causes scrollbar next to instructions to disappear as well. Requires reloading page 4-5 times for everything to return, so maybe it's just me?
Issue 1:
Migrated issue, originally created by Robert Scott (@ris)

Using sqlalchemy 1.1.4 with postgresql 9.6.

The result of an IS NULL comparison is a boolean and in postgres it is usable as such - for instance the following works:

db=> SELECT (123 IS NULL) = ('blah' IS NULL);
?column?
----------
t
(1 row)

However the following fails due to operator precedence:

db=> SELECT 1 IS NULL = 'blah' IS NULL;
ERROR: invalid input syntax for type boolean: "blah"
LINE 1: SELECT 1 IS NULL = 'blah' IS NULL;

sqlalchemy 1.1.4 unfortunately doesn't include these parentheses:

>>> str(db.session.query((User.id == None) == (User.name == None)))
'SELECT users.id IS NULL = users.name IS NULL AS anon_1 \nFROM users'

which of course fails in a similar way. Luckily this wrapping is performed correctly for the result of equalities:

>>> str(db.session.query((User.id == 123) == (User.name == "blah")))
'SELECT (users.id = %(id_1)s) = (users.name = %(name_1)s) AS anon_1 \nFROM users'

and also the workaround of manually casting the result to a boolean works fine:

>>> str(db.session.query(db.cast(User.id == None, db.Boolean) == db.cast(User.name == None, db.Boolean)))
'SELECT CAST(users.id IS NULL AS BOOLEAN) = CAST(users.name IS NULL AS BOOLEAN) AS anon_1 \nFROM users'

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

e.g.:

--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -1091,18 +1091,19 @@ _PRECEDENCE = {
sub: 7,

concat_op: 6,
- match_op: 6,
- notmatch_op: 6,
-
- ilike_op: 6,
- notilike_op: 6,
- like_op: 6,
- notlike_op: 6,
- in_op: 6,
- notin_op: 6,
-
- is_: 6,
- isnot: 6,
+
+ match_op: 5,
+ notmatch_op: 5,
+
+ ilike_op: 5,
+ notilike_op: 5,
+ like_op: 5,
+ notlike_op: 5,
+ in_op: 5,
+ notin_op: 5,
+
+ is_: 5,
+ isnot: 5,

eq: 5,
ne: 5,

rationale: MySQL, Oracle and now Postgresql all have relatively flat precedences for these operators:

(mysql):

https://docs.oracle.com/cd/E17952_01/mysql-5.5-en/operator-precedence.html

(oracle):

https://docs.oracle.com/cd/B19306_01/server.102/b14200/conditions001.htm#i1034834

pg 9.4, less flat: https://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html#SQL-PRECEDENCE-TABLE

pg 9.5, now is more flat: https://www.postgresql.org/docs/9.5/static/sql-syntax-lexical.html#SQL-PRECEDENCE-TABLE

making these all have the same precedence means we'll just have more parenthesis.
Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

firewalld module

ANSIBLE VERSION

ansible 2.3.0 (devel 9f2d8c2409) last updated 2017/01/01 20:16:08 (GMT -600)
config file = /home/lf/.ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

OS / ENVIRONMENT

Fedora 25 Server

SUMMARY

It is not currently possible to reproduce configurations such as that created by running firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -m owner --uid-owner $UID -j ACCEPT because the firewalld module doesn't support direct rules.

See previous issue at ansible/ansible-modules-extras#209.

Issue 2:
Just got this error:

TASK: [Launch new EC2 instance] *********************

fatal: [127.0.0.1] => failed to parse: ....

{"msg": "InvalidGroup.NotFound: The security group 'sg-4508022d' does not exist", "failed": true}

It would be great if either ID or the security group could be used here in the playbook YAML.
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.188.0

System: Mac OS X 10.10.2

Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot set property 'localAddress' of undefined

At net.js:840

TypeError: Cannot set property 'localAddress' of undefined
at connect (net.js:840:23)
at net.js:943:9
at dns.js:87:18
at process._tickCallback (node.js:366:11)

Commands

-30:38.0 remote-edit:new-host-sftp (atom-text-editor.editor)
2x -30:35.3 core:backspace (atom-text-editor.editor.mini)
-30:07.7 remote-edit:show-open-files (atom-text-editor.editor)
-30:02.3 remote-edit:browse (atom-text-editor.editor.mini)

Config

{
"core": {
"audioBeep": false,
"themes": [
"atom-dark-ui",
"base16-tomorrow-light-theme"
]
},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
autocomplete-css, v0.4.0
autocomplete-html, v0.3.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.4.0
autocomplete-ruby, v0.0.1
remote-edit, v1.7.2
remote-sync, v2.4.1

# Dev
No dev packages

Issue 2:
Steps to reproduce:

Nothing? I left my laptop on for a bit and it eventually went into sleep mode while I did other stuff. Interesting information is at the bottom of this report.

Atom Version: 0.177.0

System: linux 3.13.0-43-generic (Ubuntu 14.10)

Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot set property 'localAddress' of undefined

At net.js:840

TypeError: Cannot set property 'localAddress' of undefined
at connect (net.js:840:23)
at net.js:943:9
at dns.js:87:18
at process._tickCallback (node.js:364:11)

Commands

Config

{
"core": {
"disabledPackages": [
"archive-view",
"autoflow",
"autosave",
"background-tips",
"deprecation-cop",
"encoding-selector",
"image-view",
"incompatible-packages",
"open-on-github",
"release-notes",
"spell-check",
"styleguide",
"welcome",
"wrap-guide",
"package-generator"
],
"themes": [
"isotope-light-ui",
"fizzy"
]
},
"editor": {
"fontFamily": "Inconsolata",
"fontSize": 14,
"showIndentGuide": true,
"tabLength": 4,
"softTabs": false,
"invisibles": {}
}
}

Installed Packages

# User
file-icons, v1.4.9
fizzy, v0.15.0
isotope-light-ui, v1.0.0
jenkins, v0.3.1
language-sourcepawn, v0.4.1
linter, v0.11.1
linter-jshint, v0.1.0
sourcepawn-compiler, v0.0.0
travis-ci-status, v0.11.2

# Dev
No dev packages

Some interesting things to note:

This error got thrown multiple times-Notifications is showing 5 errors, all identical.

The first error got formatted super-weirdly (see the picture below).

Clicking on "Create issue on atom/atom" does...nothing :(. Had to copy the issue to clipboard and paste it here.

This error may be due to the Jenkins package, but I wanted to submit it here first just to make sure.

Picture:
Issue 1:
Bug report

Describe the bug

When I add for example 5 files in "pages" folder, and add classic "Link" routing - it works until I do 1-2 minutes break. After 2 minutes when I try to use site there work only 2 routes - rest don't react. Hot reload still works fine, everything works good except this routing. (hrefs with reload works good - only SPA style routing breaking after 2 minutes awaiting.

To Reproduce

Download my repo from: https://github.com/kegriz/next-routing-issue

install packages: yarn (or nmp install)

start dev project: yarn run dev (or npm run dev)

open website at http://localhost:3000

click on every subpage by links

last click on for example "aaa"

wait 2 minutes without any activity

Expected behavior

After this time there should by only 2 links working correctly.

System information

OS: [ MacOS Mojave(10.14) ]

Browser [chrome & safari]

Version of Next.js: [7.0.2]

node: v10.11.0

npm 6.4.1

tested on 3 computers

Additional context

-Hot Reload still working.

-Classic (no SPA) link works.

Issue 2:
Bug report

Describe the bug

Either Link or Router stops working when doing client side routing. It seems that HMR may be interrupting the transition between pages. It occurs most frequently if the app is left idle or in the background for a bit of time (although I have experienced it happening whilst clicking around without it being idle)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Clone this repo (https://github.com/malimccalla/next-routing-issue)

Install dependencies npm install

Run the server npm run dev

Visit all pages by clicking the links

Go make a coffee (leave page idle for ~2mins)

Attempt to visit all pages by clicking the links

Certain links do not navigate to their respective page 😔

Expected behavior

I expect to be able to visit all the individual pages

Actual behaviour

Page does not navigate to certain routes. Refreshing the page will fix it

Screenshots

Both the "about" and "contact" links do not work (notice the HMR log on the first attempt of each route). After a page refresh they work as expected. If I leave the app idle for roughly 2mins again it will start over with the issue

System information

mac Mojave 10.14

Chrome

next.js v7.0.2

Additional context

With the console open you can see that the Router event routeChangeStart fires but routeChangeComplete never does.
Issue 1:
I migrated to the latest Blender exporter, had error on my project file which previously worked. I started a new blender file and found the same error persists.

To reproduce:

create a new blender file

create cube

apply blender material

apply blender texture (point at any image)

Export to JSON

Check box titled "Textures"

Error when saving:

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

_init_.py", line 812, in execute

exporter.export_scene(filepath, settings)

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

\exporter_init_.py", line 20, in inner

func(filepath, options, *args, **kwargs)

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

\exporter_init_.py", line 51, in export_scene

scene_.parse()

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

\exporter\scene.py", line 102, in parse

self._parse_textures()

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

\exporter\scene.py", line 243, in _parse_textures

tex_inst = texture.Texture(texture_name, self)

File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_three

\exporter\texture.py", line 24, in init

self[constants.WRAP] = (num[wrap[0]], num[wrap[1]])

KeyError: 'repeat'

(note that by changing the texture "Image Mapping" to something other than 'repeat' simply alters the key error to whatever you selected)

Blender version 2.74, 2.76, 2.78 (others not tested)

Exporter says it is version "1.5" but I know previous versions were also still called "1.5". I used the Master version from 2017-03-03 (today).

OS

All of them

Issue 2:
Description of the problem

Blender Exporter Fails to produce a .json file and throws an error that could be improved with clarity

Traceback (most recent call last):
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/__init__.py", line 812, in execute
exporter.export_scene(filepath, settings)
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/__init__.py", line 20, in inner
func(filepath, options, *args, **kwargs)
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/__init__.py", line 51, in export_scene
scene_.parse()
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/scene.py", line 102, in parse
self._parse_textures()
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/scene.py", line 243, in _parse_textures
tex_inst = texture.Texture(texture_name, self)
File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/texture.py", line 24, in __init__
self[constants.WRAP] = (num[wrap[0]], num[wrap[1]])
KeyError: 'repeat'

location: <unknown location>:-1

location: <unknown location>:-1

Is there any way to get better logging from this?
Issue 1:
Right now,you need follow code to handle xml content.

CssSelector::disableHtmlExtension();
$xxx=$crawler->filter('response>tradeBase>total_fee')->text();

I think we can detect xml in Crawler,and call CssSelector::disableHtmlExtension(); in filter when handle xml.

Issue 2:
... but that's not really possible when using it from BrowserKit as the Crawler is created directly.

From #8286:

In functional test, since the crawler is instanciated by the de browser kit (which
know the content-type), Can we imagine the browser kit call for us
disableHtmlExtension or enableHtmlExtension
Issue 1:
The "cd" function doesn't automatically expand tilde to your home directory, which is somewhat inconvenient, especially for interactive use. Is this an explicit design decision? We could have "cd" just check if ENV["HOME"] is defined, and if so substitute it for ~.

julia> cd("~/Desktop")
ERROR: chdir ~/Desktop: No such file or directory
in systemerror at error.jl:38
in cd at file.jl:14

Issue 2:
@timholy implemented tilde_expand (see file.jl) some time ago and it is now used automatically by a few file-system commands, notably cd(). This concerns me, however, since while it's convenient for some things, it's inconsistently used, and it violates the treatment of strings as just data. What if the name of a file is just ~? We're now in a position where that name needs to be escaped and handled specially in code. On the other hand, tilde expansion is awfully handy.

So here's a possibility: bake tilde expansion into the backtick syntax instead. For example, we could make this work:

julia> run(`tail ~/.julia_history`)
error("~user tilde expansion not yet implemented")
end
tilde_expand("~")
tilde_expand("~/foo")
tilde_expand("~stefan/foo")
tilde_expand("~stefan")
`cat ~/.julia`
run(`cat ~/.julia`)
run(`tail ~/.julia_history`)
run(`tail $(ENV["HOME"])/.julia_history`)

Currently this just looks for a file literally named ~/.julia_history. Obviously, this would be handy for entering commands, but you could also use it in situations where you want shell-like treatment of any string. For example cd(~) would expand to cd(ENV["HOME"]) whereas cd("~") would treat its argument literally. Very importantly, tilde expansion would be done at compile time, not based on the run-time data — this is essential to avoiding nasty surprises and corner cases. In particular, interpolated values are not tilde expanded:

julia> `~`
`/Users/stefan`

julia> file = "~";

julia> `$file`
`~`

One corollary of this approach is that file and directory operations have to work with Cmd objects, which maybe ought to be renamed in light of their broadened use-cases under this proposal. Maybe they should be called ShellString objects since backtick strings are basically strings with shell-like behavior. Except that they're also not strings, so maybe that's not a great name either.
Issue 1:

Issue 2:
flutter' app crash met with gomobile package .aar

I follow the guidence https://flutter.io/platform-channels/ ... It works; I can see the result in Simulator.

I write a simple code in Golang, Gomobile bind -target=android, get .aar file, put into libs, the app stopped when the call happened. The code is very simple:

package bond

import (

)

func FirstCall() int{
return 20180311
}

func SecondCall() string{
return "20180311"
}

func ThirdCall() {
}

type Counter struct {
Value int
}

func (c *Counter) Inc() { c.Value++ }

func NewCounter() *Counter { return &Counter{ 5 } }

I create app with Android Studio, put the .aar file in, and call, it gets the right return.

final String stext=Bond.secondCall();

4) So the problem is, there are 2 bridges here; each of them work, but put together, it crashes.

Anybody could give me a solution? Is the problem in Flutter or Gomobile?

Steps to Reproduce

Logs

Flutter Doctor
Issue 1:
Bug report

Bug summary

When calling matplotlib on macOS the user is logged out...

Code for reproduction

from matplotlib import pyplot as plt

plt.plot()
plt.show()

Actual outcome

The user is logged out, the screen turns black for a few seconds and then the macOS login screen appears.

Expected outcome

I don't expect such a huge problem (user logged out) with the previous code snippet...

Matplotlib version

Operating system: macOS 10.14.6

Matplotlib version: 3.1.1

Matplotlib backend (print(matplotlib.get_backend())): TkAgg

Python version: 3.6

Python and matplotlib installation using miniconda:

conda create -n test python=3.6 ipython
conda activate test
conda install matplotlib

Issue 2:
Bug report

Bug summary

Trying to view a plot made with Python 3.7, Spyder, and IPython with the Tkinter backend causes a crash and the macOS Mojave login screen appears.

Code for reproduction

Any kind of plot will cause the problem.

import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 10)
y = 2 * x
plt.plot(x, y)

Actual outcome

Crash and the Mojave 10.14.6 login screen appears.

The problem started occurring after the update to Mojave 10.14.6. When I create a plot and click on the plot window icon on the dock, the screen goes black for a second and the macOS login screen appears. After I log in, the windows of Anaconda Navigator and Spyder are gone and their icons are no longer present on the Dock. Activity Monitor however indicates that python is still running.

I have reproduced this behavior a few times. Switching the IPython backend to Qt5 solved the problem.

Expected outcome

A plot.

Matplotlib version

Operating system: MacOS Mojave 10.14.6 (Darwin 18.7.0)

Matplotlib version: 3.1.0

Matplotlib backend (print(matplotlib.get_backend())): Tkinter

Python version: 3.7.3

Jupyter version (if applicable): n/a

Other libraries: Spyder 3.3.6, IPython 7.6.1

Running the stock Anaconda Distribution 2019.07.
Issue 1:
Describe the bug

Steps/Code to Reproduce

To duplicate the issue, please refer to attached zip file. In there you will find a copy of Python script and input data set

Expected Results

Actual Results

Versions

scikit-learn --> 0.24.2

numpy --> 1.19.5

scipy --> 1.5.4

imblearn --> 0.8.0

platform --> Windows-10-10.0.19041-SP0

sys --> 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]

test_chunked_pairwise_distances.zip

Issue 2:
Saw this piece of code when reading the implementation of VotingClassifier

if isinstance(y, np.ndarray) and len(y.shape) > 1 and y.shape[1] > 1:
raise NotImplementedError('Multilabel and multi-output'
' classification is not supported.')

Is this due to some blocker or challenge? Thanks
Issue 1:
In Julia Master (and 1.6)

julia> f(x) = (T=eltype(x); mapreduce(v->T(v), +, x))
julia> @code_warntype f([3,4,5])
MethodInstance for f(::Vector{Int64})
from f(x) in Main at REPL[2]:1
Arguments
#self#::Core.Const(f)
x::Vector{Int64}
Locals
#3::var"#3#4"{DataType}
T::Type{Int64}
Body::Any
1 ─ (T = Main.eltype(x))
│ %2 = Main.:(var"#3#4")::Core.Const(var"#3#4")
│ %3 = Core.typeof(T::Core.Const(Int64))::Core.Const(DataType)
│ %4 = Core.apply_type(%2, %3)::Core.Const(var"#3#4"{DataType})
│ (#3 = %new(%4, T::Core.Const(Int64)))
│ %6 = #3::Core.Const(var"#3#4"{DataType}(Int64))
│ %7 = Main.mapreduce(%6, Main.:+, x)::Any
└── return %7

Could we make type inference smarter here?

Issue 2:
function foo(a::AbstractVector)
T = eltype(a)
b = Vector{T}()
c = [Set{T}() for x in a]
return length(c)
end

a = rand(1:10, 200);

@code_warntype shows an inference failure in b and c.

Changing to c = Set{T}[Set{T}() for x in a] fixes c's inference issue.
Issue 1:
Sublime Text has an option to match case when doing find and replace (so find "foo" and replace "bar" would change "foo" to "bar", "FOO" to "BAR" and "Foo" to "Bar"). Does Atom offer this?

Issue 2:
When you search for abc (case insensitive) and want to replace it with xyz, it should match on Abc and replace it with Xyz. This is a feature that I found useful in sublime.
Issue 1:
Hi! After last update i Can't use my PowerToys. When I open the application I see the menu for 1 second and afer that all the window became white with anyting inside...

I try to Uninstal and instal last version, i try to uninstal anda instal .NET core but nothing change...

Help!

http://prntscr.com/snh2lq

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: 0.18

Steps to reproduce

Right click on the tray icon

Select Settings

Expected behavior

Settings windows appears and allows me to make changes

Actual behavior

The windows appears, it briefly shows all the settings (as expected) but then the window becomes empty, see screen shot.

Screenshots
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/628 on 2007-12-09 by trac user behrisch, assigned to @cournape.

The attached code shows the very same behavior as #1225, although I can confirm that it works with numpy 1.0.3 on the same machine with te same Python distribution. I used the binary packages from the sourceforge download site together with Python 2.5.1. I did not install any LAPACK or BLAS packages.

Furthermore it works on openSUSE 10.3 with numpy 1.0.4, libblas3-3.1.1-29, liblapack3-3.1.1-29 (which may be another hint, that it is no duplicate of #1225)

Issue 2:
Minor, but:

numpy.histogram deprecates the normed parameter and introduces a new density parameter. numpy.histogram2d should use the same interface.

Currently, I don't have the time to fix this...