Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-07 Thread Chris Bannister
On Tue, Nov 06, 2012 at 07:05:43PM +0100, Michael Stapelberg wrote: Hi, I hereby announce a new Debian project: Debian Code Search. [...] You can use the search engine at http://codesearch.debian.net/ Here are a few sample queries: •

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-07 Thread Michael Stapelberg
Hi Chris, Chris Bannister cbannis...@slingshot.co.nz writes: See: http://grammar.about.com/od/words/a/amount.htm http://grammarist.com/usage/amount-number/ Thanks. I have heard about this rule but must have forgotten it. I changed the text and will push an update soon. -- Best regards,

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-07 Thread Michael Stapelberg
Hi Neil, Neil Williams codeh...@debian.org writes: That's just swamped by licences, as would be received and lots of other common words (which are, rightly or wrongly, used as variable names or as part of function names). Well, of course searching for common words will result in a lot of

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-07 Thread Neil Williams
On Wed, 07 Nov 2012 21:56:17 +0100 Michael Stapelberg stapelb...@debian.org wrote: Neil Williams codeh...@debian.org writes: That's just swamped by licences, as would be received and lots of other common words (which are, rightly or wrongly, used as variable names or as part of function

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-07 Thread Michael Stapelberg
Hi Neil, Neil Williams codeh...@debian.org writes: Just because a file doesn't end in .pl, doesn't mean it isn't perl - Policy mandates that perl in /usr/bin does not end in .pl Is this only finding perl modules and perl scripts in /usr/share? As the FAQ¹ states, this is filtering by file

Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Michael Stapelberg
Hi, I hereby announce a new Debian project: Debian Code Search. Debian Code Search is a search engine for program source code within Debian. It allows you to search all ≈ 17000 source packages, containing 130 GiB of FLOSS source code (including Debian packaging) with regular expressions. You

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Neil Williams
On Tue, 6 Nov 2012 19:05:43 +0100 Michael Stapelberg stapelb...@debian.org wrote: Debian Code Search is a search engine for program source code within Debian. It allows you to search all ≈ 17000 source packages, containing 130 GiB of FLOSS source code (including Debian packaging) with

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread alberto fuentes
2 words: Awe some roughly speaking, how does it work internally? On Tue, Nov 6, 2012 at 7:05 PM, Michael Stapelberg stapelb...@debian.org wrote: Hi, I hereby announce a new Debian project: Debian Code Search. Debian Code Search is a search engine for program source code within Debian. It

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Mike Dupont
LOVE IT!!! THANK YOU SO MUCH On Tue, Nov 6, 2012 at 12:05 PM, Michael Stapelberg stapelb...@debian.orgwrote: Hi, I hereby announce a new Debian project: Debian Code Search. Debian Code Search is a search engine for program source code within Debian. It allows you to search all ≈ 17000

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Michael Stapelberg
Hi alberto, alberto fuentes paj...@gmail.com writes: roughly speaking, how does it work internally? It uses a trigram index and the RE2 regular expression engine. My work is based on Russ Cox’s ideas and code published at http://swtch.com/~rsc/regexp/regexp4.html In case you are interested,

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Michael Stapelberg
Hi Neil, Neil Williams codeh...@debian.org writes: It's pleasingly quick, which is always good. Might need to be able to exclude the debian/ directory from searches. File regular expressions and a minus operator is already on the TODO list :-). First thing which occurs to me is that I'd

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread alberto fuentes
On Tue, Nov 6, 2012 at 9:06 PM, Michael Stapelberg stapelb...@debian.org wrote: Hi alberto, alberto fuentes paj...@gmail.com writes: roughly speaking, how does it work internally? It uses a trigram index and the RE2 regular expression engine. My work is based on Russ Cox’s ideas and code

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Joachim Breitner
Hi, Am Dienstag, den 06.11.2012, 19:05 +0100 schrieb Michael Stapelberg: I hereby announce a new Debian project: Debian Code Search. Great! I hope you find it useful and would love to hear your feedback. Since you have all code extracted anyways, could you extend the page to allow for easy

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Domenico Andreoli
On Tue, Nov 06, 2012 at 07:05:43PM +0100, Michael Stapelberg wrote: Hi, Hi! I hereby announce a new Debian project: Debian Code Search. Debian Code Search is a search engine for program source code within Debian. It allows you to search all ??? 17000 source packages, containing 130 GiB

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Michael Stapelberg
Hi Joachim, Joachim Breitner nome...@debian.org writes: Since you have all code extracted anyways, could you extend the page to allow for easy code browsing? Might be faster than apt-get source; less ... sometimes. Very basic code browsing is on my agenda, but zack@ mentioned he wants to build

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Joachim Breitner
Hi, Am Dienstag, den 06.11.2012, 23:10 +0100 schrieb Michael Stapelberg: Joachim Breitner nome...@debian.org writes: Since you have all code extracted anyways, could you extend the page to allow for easy code browsing? Might be faster than apt-get source; less ... sometimes. Very basic

Re: Introducing codesearch.debian.net, a regexp code search engine

2012-11-06 Thread Neil Williams
On Tue, 06 Nov 2012 21:22:17 +0100 Michael Stapelberg stapelb...@debian.org wrote: Another important step would be a way of excluding matches within comments from the results. I have considered this, but when you think about it, identifiers (variable names, function names, …) and comments