Source code typicality analyzer

It’s easy to get started with Stircup. You use it by first entering a query, and then pressing the Search button below. Behind the scenes, Stircup fetches a few pages of code examples from StackOverflow using StackExchange’s ‘/similar?’ command1, ignores those ones that don’t match our results criteria2, and then returns a results list, which can be further introspected using source code typicality analysis.

The first time you use Stircup, the generated results will get cached on your browser. After that, every time you search (using the same query), this search is done on your computer.

Demonstration Structure

1. Enter the following query "Http server".
2. Click on the search (and then wait for results)  
2.1 Selection console displays 17 results. 
3. Check the Typicality checkbox
3.1 Selection console displays 9 most typical results
3. A chart containing typicality scores for all in 2.1. 

Had enough? Stop it!

Sample results by Typicality

Source code Typicality scores

After performing source code typicality analysis over all the generated results (by checking the Typicality checkbox), you will see below an area chart displaying the typicality scores of all the generated results. Thick circles are typical code examples and thin circles are atypical ones.

Thank you for trying this app.

  1. It returns questions which are similar to a hypothetical one based on one’s query and tag combination (e.g., java tag) 

  2. For pragmatic reasons, our results criteria include: only permit Java and compilable code is permitted. Future versions of Stircup will handle partial and complete Java programs.