On Sep 4, 2007, at 8:30 PM, William Stein wrote:

> On 9/4/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote:
>> The stats on slide 30 are very out of date. Here's the latest
>>
>> __init__.py     coding          geometry        media           rings
>> algebras        combinat        graphs          misc             
>> schemes
>> all.py          crypto          groups          modular          
>> server
>> all_cmdline.py  databases       gsl             modules         sets
>> all_notebook.py dsage           interfaces      monoids
>> structure
>> calculus        ext             lfunctions      plot            tests
>> catalogue       functions       libs            probability
>> version.py
>> categories      games           matrix          quadratic_forms
>>
>> sage$ cat */*.py* */*/*.py* */*/*/*.py* | wc -l
>>    503163
>> sage$ cat */*.py* */*/*.py* */*/*/*.py* | grep "sage:" | wc -l
>>     51600
>>
>> (
>> Wow, I hadn't realized it had grown so much!)
>
> That's because you didn't take uniq lines of code.  Also
> doing *.py* is no good, since that gets ~ files that
> editors leave around.  Here's the comparable stat:
>
> [EMAIL PROTECTED]:~/d/sage/sage$ cat *.py */*.py */*/*.py */*/*/*.py */*.pyx
> */*/*.pyx */*/*/*.pyx */*.pxd */*/*.pxd */*/*/*.pxd |sort |uniq |wc -l
> 163161
>
> Basically using sort | uniq gets rid of whitespace and """'s that  
> are sort
> of pointless in counting size.

I looked at unique lines too, but the command on the slide didn't do  
so, and unless our code has gotten much more succinct in the last  
year it looks like the number of unique lines in 2.8.3.3 is almost as  
large as the number of _total_ lines in 1.3.x. BTW, I'm assuming uniq  
doesn't ignore whitespace, right?

Doing .py* does pick up some bad files though... In any case, these  
new stats should be put into the talk.

> Another interesting stat is uniq lines of input doctests in the
> source code, which is now over 20K:
>
> [EMAIL PROTECTED]:~/d/sage/sage$ cat *.py */*.py */*/*.py */*/*/*.py */*.pyx
> */*/*.pyx */*/*/*.pyx */*.pxd */*/*.pxd */*/*/*.pxd |sort |uniq | grep
> "sage:" |wc -l
> 20428
>
>  -- William
>
> 

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to