I usually just search within the repo, that works well.
It's a bit funny - some of these features github already has like code search and commit statistics. On bit bucket you have to pay for the plugin.
One thing I wish github had was bitbucket's commit list with the line graph. That's helpful.