Cocycles: The code search revolution
Join the DZone community and get the full member experience.Join For Free
Cocycles: find the code you need
On February Cocycles launched it’s code search engine, built to find every piece of open source code by functionality. For the first time, open source code it being organized and made accessible by code functionality. In simple words, describe what you want the code to do, and Cocycles will find it for you. Like most things, this comes as a much needed solution to an even bigger problem.
The problem with finding open source code
According to GitHub, the amount of open source code being written doubles itself nearly every single year. GitHub reports it currently holds over 31 million different repositories.
Sadly, 98% of that code become obsolete within 1 year from the day it was written. Until now, no one knew exactly which pieces of code has been written and where to find them. One can try searching for entire packages and look for entire libraries, hoping their names had been mentioned or made accessible via services like NPM. But what if, one simply needs a piece of code that does something?
Cocycles: find code by functionality
Cocycles is search engine for code. Not only libraries, not mere text, but code. One can describe the code functionality desired, and find multiple matching code pieces from across the open source. Infact, cocycles is much more than that. For the very first time, open source code is being organized in pieces by code functionality. Cocycles is able to understand exactly what every single piece of open source actually does, may it be a library, a class or even a single function. Using NLP (Natural Language processing) algorithms Cocycles is also able to understand natural language being used by developers, and translate these queries into code functionality. All that’s left is to match the functionality described by the user to the matching code pieces from across the open source.
For example, when searching for a piece of code to swap two elements in a given array, one need only to submit a query such as "swap elements" and find different open source code units to do exactly that:
When available, Cocycles will not only provide an interactive view of the full code implementation, but will also provide the original docs along with real world usage examples and useful meta-data. Cocycles is also able to generate a fully functional snippet containing all dependencies and sub-functions within a single code unit. This allows developers to use the code they find as is, ready “out of the box”.
Additional features include “Cocycles Immediate”. When cocycles is sure it recognizes exactly what your are looking for, it will instantly provide a fast and useful view of the essential data related to that exact piece of code:
Check it out @ https://www.coycles.com
Opinions expressed by DZone contributors are their own.