by lopkeny12ko · 2y ago · 0 comments
90+% of the time I'm executing a code search, I'm looking for example uses of a library API in open source code. But most of the time, Github code search just surfaces pages upon pages of the same exact code snippet across the origin repository and hundreds of forks.
For example, one search I executed earlier today: https://github.com/search?q=load%28%22%40rules_foreign_cc%2F...
https://grep.app/search?q=load%28%22%40rules_foreign_cc//for...
If you don't want to see forks, you can exclude them. Here's your same search, but converted to a regex and not including forks. I only get 3 results.
https://github.com/search?q=%2Fload%5C%28%22%40rules_foreign...