Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

As part of research for a user group presentation I'm looking for usage examples of certain code constructs.

I'm looking for online source code repository collections that allow me to search inside the source code across the whole collection.

GitHub does it but it's a bit light on the sort of code I'm looking for.

Sourceforge searches only the project description text rather than the source code.

Any others I should try?

share|improve this question

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information.

2 Answers

Checkout Google Code Search.

Google code search

share|improve this answer
Unfortunately Google has announced that they will be shutting Google Code Search down in January 2012. – Anna Lear Dec 22 '11 at 23:17

Also there is http://www.koders.com/:

Koders.com, a Black Duck Software Company, is a free on-line search engine for open source software and other web-downloadable code.

Over 30,000 developers each day rely on Koders to search over 1 billion lines of code written in over 30 languages and identified with 28 software licenses.

Koders is helping to fuel the open source software revolution. Developers can use this free resource to quickly find the best reusable open source code, methods, examples, algorithms and more, enabling them to be more successful with open source and complete projects faster.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.