In addition to Google’s Code Search there are also
Now what I really want is a search engine for algorithms, patterns and frameworks that has autotranslation between implementation languages (including UML, of course :). Then we could all concentrate on writing everything once, rather than having millions of people re-inventing the wheel (how many times have you written sorting? searching? file manipulation? String manipulation?)