Debian Code Search (DCS) is a search engine for source code — it searches all the open source projects which are included in the Debian archive (the “main” distribution only, not non-free or contrib). Currently, that includes about 18000 packages with 140 GiB of source code.