The code management analytics we're planning to build are detailed in https://gitlab.com/gitlab-org/gitlab-ee/issues/112 I think this is quite different from sourcegraph
Your search in CE looks like a bug to me. It would be great if you can reproduce this on GitLab.com and open an issue for it.