see https://github.com/src-d/hercules/pull/245#issuecomment-474106772 and related comments
see #245 (comment) and related comments