Koders, Krugle, Codase, Google Code Search

I found a Google Talk on a topic that's related to the motto of my blog - "good coders code, great reuse".

In this talk, professor Tao Xie speaks about his research on using public code repositories together with code search engines for finding common API usage patterns and anti-patterns.

His research software uses the following four code search engines.

He suggests to view Raphael Volz's analysis for more information about these search engines.

Tao has developed three tools, which use the aforementioned search engines:

  • PARSEWeb for finding API usage patterns,
  • XWeb for finding forgotten exception handlers, and
  • NEGWeb for finding misuses of API calls.

See the code mining project website for more information.

The lecture is done in a very academic manner and it's very hard to follow. Be sure that you are really interested in this topic before watching it.

Some excerpts from the lecture:

  • [04:26] A problem with data mining on source code is that it might not have enough data points (usages of API) to discover common patterns.
  • [04:58] It is crucial to have a lot of data points to get good results out of data mining
  • [08:37] Google Code Search indexes publicly hosted SVN and CVS repositories.
  • [09:20] Example of searching for C stdlib's fopen usage on Google Code Search (query: "lang:C file:.c$ fopen\s*\("
  • [11:08] Example of the same search on Krugle.
  • [16:40] Code search engines return partial code samples. Various heuristics are used for type inference.
  • [22:05] Example of integrating Tao's PARSEWeb into Eclipse.
  • [28:15] Interesting idea of constructing and issuing multiple queries to find more code samples.
  • [36:20] A study showed that a proper deallocation of resources after an exception resulted in 17% performance increase.

I'd like to hear some comments on websites that you use for finding code examples!


Utopiah Permalink
July 17, 2008, 05:37

Well I send you an email with this video few weeks ago (June the 8th) and Im glad to see you've put up your sum-up online. Why ?
Because regarding easy access to information, learning video are great BUT
accessing a specific part without meta-data is hard. By providing your
sum-ups you actually provide anchors for the videos. It helps for
direct access but actually it also help for *memorizing* as after seeing
a video once, when someone read your sum-up (as Im doing now) it will re-activate
their memories (cf
http://www.wired.com/medtech/health/magazine/16-05/ff_wozniak?currentPage=2 ).


July 17, 2008, 13:52

reāli noderīga lieta! paldies, nezināju.

March 20, 2014, 02:31

Useful information. Fortunate me I discovered your site unintentionally, polerowanie aluminium and I'm stunned why this accident didn't came about earlier! I bookmarked it

Amy Hamilton Permalink
April 19, 2014, 13:54

SymbolHound is also a substitute to Google Code Search. However, about Krugle I have a complaint about its relevancy that is not very good. I request that please post more information here so that I can write on Google code search. If not, Essay Writing Services are here to help me.

Agron Permalink
June 18, 2014, 06:17

It is a useful summary thanks. I studied GATE for a month or so to get familiar with its functionalities. But finally I decided to write my own code and use command line tools or other people snippet because if it is not working at least it is your own code and you know how to modify it but I found understanding.Write My Dissertation.

Vanessa Collister Permalink
July 23, 2014, 11:29

I'll study more and put more time and effort into my work for that class accordingly I need more assistance professional essay writers uk who work diligently round-the-clock to assist learners.

Rohaila Jackson Permalink
May 03, 2014, 12:38

I also think that Krugle is not relevant and not very good. I don't have vast knowledge about this, I think I need more information. If you assist me here by posting more about Krugle/Google code search, I will be fully able to complete my research. Please give me online dissertation help here.

November 15, 2014, 13:03

I will be fully able to complete my research. Please give me here...

November 15, 2014, 13:05

thankm you....

Nace Permalink
June 11, 2014, 10:44

Informative update as i was looking for some important points for Google other wise i was going to contact to essay writers UK in this regard.

JamesMart Permalink
June 13, 2014, 12:35

Ask, Do My Assignment For Me with UK Assignment Writing Experts and Acquire Good Grades In Your Academic Qualification.

September 05, 2014, 18:23

Yes you're right . Its a marvelous info for all of us. Thanks Admin.

September 17, 2014, 07:50

The post is great about usage of software.

James Heller Permalink
September 17, 2014, 07:53


September 17, 2014, 10:06

Searching of source code is a very tough task for software engineers, But some software engineers have great mind to build a great social media management software named vKonnect.

October 25, 2014, 07:25

I am a Fashion Designer but love coding to make a dynamic websites..

October 27, 2014, 05:53

Hmabaya Islamic Clothing Store we provide wide variety of premium abayas, shaylas, jalabiyas. Endless options of cutting edge couture are now available for you.Our products are designed with versatility in terms of the style we offer. We go greater lengths to understand the demands and preferences of our customers.

December 11, 2014, 09:31

I want all you to read my blog! click on my name :)

November 15, 2014, 12:44

I am a Fashion Designer but love coding to make a dynamic websites.

November 15, 2014, 12:46

Useful information. Fortunate me I discovered your site unintentionally,

November 29, 2014, 07:01

Understudies who got nobody to help them and got no place to search for support with their assignments, this spot is doubtlessly going to help them in the most ideal way that could be available.

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "lcd_72": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.