I need to find this line of code based on the keywords “tnt_select” and “2^32”, without specifying the repository because I’m looking for instances of the same bug in other projects. This repo is public, the file isn’t obfuscated, the code is in the head of the default branch. I’ve tried Google, Github Code Search, Sourcegraph, and BigQuery on the Github data set. I’ve found a few ways to locate the .rst and .po documentation files that the bug was copied from, but none that find even this single example of it in actual source code files.
I’m not sure why, but GitHub’s search engine, Blackbird, seems to be returning some erroneous results for this query:
/tnt_select\(.*2\^32/ language:C++ OR language:C
Any chance you could narrow down your search to a list of repose that use the library that pulls in
tnt_select()
function, then clone and manually grep just those, or is it’s use too common to index by?Real funny that even narrowing down GitHub search to just the same repo doesn’t help the query results:
repo:ocelot-inc/ocelotgui ldbms_tnt_select
I have considered that approach. I’d probably do it in the cloud, in parallel, maybe even in a serverless compute environment. But it does seem like a big endeavor.