Question about export metrics from Moose

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about export metrics from Moose

César Couto
I am a PhD student at UFMG, Brazil, and I'm working with source code
metrics. I have a FAMIX model generated by the inFusion tool and I
would like to know if the Moose can export source code metrics (LOC,
WMC, LCOM, etc) of Java classes to .CSV ou XML files?

Is there any plugin of the Moose that have this functionality?

Cesar Couto

--
http://www.decom.cefetmg.br/cesar
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

abergel
Not that I am aware of. But which metrics do you want to have? Actually, writing an exporter would be pretty straightforward to do. If nobody put some effort on this, I can give a try.

Alexandre


On 28 Jun 2011, at 16:05, César Couto wrote:

> I am a PhD student at UFMG, Brazil, and I'm working with source code
> metrics. I have a FAMIX model generated by the inFusion tool and I
> would like to know if the Moose can export source code metrics (LOC,
> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>
> Is there any plugin of the Moose that have this functionality?
>
> Cesar Couto
>
> --
> http://www.decom.cefetmg.br/cesar
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Andre Hora
In reply to this post by César Couto
Hello Cesar,

I am working on that and I hope next week it will be possible.
Then I can tell how to do that.

For now it is not automatic.. you should write some scripts.

regards,

2011/6/28 César Couto <[hidden email]>
I am a PhD student at UFMG, Brazil, and I'm working with source code
metrics. I have a FAMIX model generated by the inFusion tool and I
would like to know if the Moose can export source code metrics (LOC,
WMC, LCOM, etc) of Java classes to .CSV ou XML files?

Is there any plugin of the Moose that have this functionality?

Cesar Couto

--
http://www.decom.cefetmg.br/cesar
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

abergel
Ok

Alexandre


On 28 Jun 2011, at 16:20, Andre Hora wrote:

> Hello Cesar,
>
> I am working on that and I hope next week it will be possible.
> Then I can tell how to do that.
>
> For now it is not automatic.. you should write some scripts.
>
> regards,
>
> 2011/6/28 César Couto <[hidden email]>
> I am a PhD student at UFMG, Brazil, and I'm working with source code
> metrics. I have a FAMIX model generated by the inFusion tool and I
> would like to know if the Moose can export source code metrics (LOC,
> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>
> Is there any plugin of the Moose that have this functionality?
>
> Cesar Couto
>
> --
> http://www.decom.cefetmg.br/cesar
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Andre Hora
Hello Cesar,

By the moment, you can try the following steps to export the metrics:

1) First, run the script below in the workspace:

Gofer new
    squeaksource: 'FameImportExportEx';
    package: 'Fame-ImportExport-Extensions';
    load.

2) Then, run the script below setting the metrics you want to export and the name of your model.
You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).

| stream printer visitor model |

stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
model := (MooseModel root) entityNamed: 'MyModelName'.

printer := FMTabularPrinter new stream: stream.
printer separator: $,.

visitor := RepositoryTabularVisitor new.
visitor printer: printer.

visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
visitor model: model allClasses.

visitor basicRun.


The result is a CSV in the directory: Contents/Resources of your image, like this:

entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
Collection,1414,227,20,35
NotFound,40,8,4,4
ArrayedCollection,318,37,18,7
SizeMismatch,8,2,1,1
SequenceableCollection,2023,225,10,24
HashedCollection,167,35,5,5
CollectionIsEmpty,22,5,2,4

regards,

On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
Ok

Alexandre


On 28 Jun 2011, at 16:20, Andre Hora wrote:

> Hello Cesar,
>
> I am working on that and I hope next week it will be possible.
> Then I can tell how to do that.
>
> For now it is not automatic.. you should write some scripts.
>
> regards,
>
> 2011/6/28 César Couto <[hidden email]>
> I am a PhD student at UFMG, Brazil, and I'm working with source code
> metrics. I have a FAMIX model generated by the inFusion tool and I
> would like to know if the Moose can export source code metrics (LOC,
> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>
> Is there any plugin of the Moose that have this functionality?
>
> Cesar Couto
>
> --
> http://www.decom.cefetmg.br/cesar
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

César Couto
Andre,

thanks for the scripts. I am going to run.

César Couto



On Tue, Jun 28, 2011 at 12:44 PM, Andre Hora <[hidden email]> wrote:

> Hello Cesar,
>
> By the moment, you can try the following steps to export the metrics:
>
> 1) First, run the script below in the workspace:
>
> Gofer new
>     squeaksource: 'FameImportExportEx';
>     package: 'Fame-ImportExport-Extensions';
>     load.
>
> 2) Then, run the script below setting the metrics you want to export and the
> name of your model.
> You can also change allClasses by others entities such as allModelClasses,
> allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>
> | stream printer visitor model |
>
> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> model := (MooseModel root) entityNamed: 'MyModelName'.
>
> printer := FMTabularPrinter new stream: stream.
> printer separator: $,.
>
> visitor := RepositoryTabularVisitor new.
> visitor printer: printer.
>
> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
> visitor model: model allClasses.
>
> visitor basicRun.
>
>
> The result is a CSV in the directory: Contents/Resources of your image, like
> this:
>
> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> Collection,1414,227,20,35
> NotFound,40,8,4,4
> ArrayedCollection,318,37,18,7
> SizeMismatch,8,2,1,1
> SequenceableCollection,2023,225,10,24
> HashedCollection,167,35,5,5
> CollectionIsEmpty,22,5,2,4
>
> regards,
>
> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]>
> wrote:
>>
>> Ok
>>
>> Alexandre
>>
>>
>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>>
>> > Hello Cesar,
>> >
>> > I am working on that and I hope next week it will be possible.
>> > Then I can tell how to do that.
>> >
>> > For now it is not automatic.. you should write some scripts.
>> >
>> > regards,
>> >
>> > 2011/6/28 César Couto <[hidden email]>
>> > I am a PhD student at UFMG, Brazil, and I'm working with source code
>> > metrics. I have a FAMIX model generated by the inFusion tool and I
>> > would like to know if the Moose can export source code metrics (LOC,
>> > WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>> >
>> > Is there any plugin of the Moose that have this functionality?
>> >
>> > Cesar Couto
>> >
>> > --
>> > http://www.decom.cefetmg.br/cesar
>> > _______________________________________________
>> > Moose-dev mailing list
>> > [hidden email]
>> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>> >
>> >
>> >
>> > --
>> > Andre Hora
>> >
>> > _______________________________________________
>> > Moose-dev mailing list
>> > [hidden email]
>> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>



--
http://www.decom.cefetmg.br/cesar

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

abergel
In reply to this post by Andre Hora
shouldn't it be part of Moose?

Alexandre


On 28 Jun 2011, at 17:44, Andre Hora wrote:

> Hello Cesar,
>
> By the moment, you can try the following steps to export the metrics:
>
> 1) First, run the script below in the workspace:
>
> Gofer new
>     squeaksource: 'FameImportExportEx';
>     package: 'Fame-ImportExport-Extensions';
>     load.
>
> 2) Then, run the script below setting the metrics you want to export and the name of your model.
> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>
> | stream printer visitor model |
>
> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> model := (MooseModel root) entityNamed: 'MyModelName'.
>
> printer := FMTabularPrinter new stream: stream.
> printer separator: $,.
>
> visitor := RepositoryTabularVisitor new.
> visitor printer: printer.
>
> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
> visitor model: model allClasses.
>
> visitor basicRun.
>
>
> The result is a CSV in the directory: Contents/Resources of your image, like this:
>
> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> Collection,1414,227,20,35
> NotFound,40,8,4,4
> ArrayedCollection,318,37,18,7
> SizeMismatch,8,2,1,1
> SequenceableCollection,2023,225,10,24
> HashedCollection,167,35,5,5
> CollectionIsEmpty,22,5,2,4
>
> regards,
>
> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
> Ok
>
> Alexandre
>
>
> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>
> > Hello Cesar,
> >
> > I am working on that and I hope next week it will be possible.
> > Then I can tell how to do that.
> >
> > For now it is not automatic.. you should write some scripts.
> >
> > regards,
> >
> > 2011/6/28 César Couto <[hidden email]>
> > I am a PhD student at UFMG, Brazil, and I'm working with source code
> > metrics. I have a FAMIX model generated by the inFusion tool and I
> > would like to know if the Moose can export source code metrics (LOC,
> > WMC, LCOM, etc) of Java classes to .CSV ou XML files?
> >
> > Is there any plugin of the Moose that have this functionality?
> >
> > Cesar Couto
> >
> > --
> > http://www.decom.cefetmg.br/cesar
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Andre Hora
Hello Alex,
Yes, I am still working on that.. and then I could integrate.

On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
shouldn't it be part of Moose?

Alexandre


On 28 Jun 2011, at 17:44, Andre Hora wrote:

> Hello Cesar,
>
> By the moment, you can try the following steps to export the metrics:
>
> 1) First, run the script below in the workspace:
>
> Gofer new
>     squeaksource: 'FameImportExportEx';
>     package: 'Fame-ImportExport-Extensions';
>     load.
>
> 2) Then, run the script below setting the metrics you want to export and the name of your model.
> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>
> | stream printer visitor model |
>
> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> model := (MooseModel root) entityNamed: 'MyModelName'.
>
> printer := FMTabularPrinter new stream: stream.
> printer separator: $,.
>
> visitor := RepositoryTabularVisitor new.
> visitor printer: printer.
>
> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
> visitor model: model allClasses.
>
> visitor basicRun.
>
>
> The result is a CSV in the directory: Contents/Resources of your image, like this:
>
> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> Collection,1414,227,20,35
> NotFound,40,8,4,4
> ArrayedCollection,318,37,18,7
> SizeMismatch,8,2,1,1
> SequenceableCollection,2023,225,10,24
> HashedCollection,167,35,5,5
> CollectionIsEmpty,22,5,2,4
>
> regards,
>
> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
> Ok
>
> Alexandre
>
>
> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>
> > Hello Cesar,
> >
> > I am working on that and I hope next week it will be possible.
> > Then I can tell how to do that.
> >
> > For now it is not automatic.. you should write some scripts.
> >
> > regards,
> >
> > 2011/6/28 César Couto <[hidden email]>
> > I am a PhD student at UFMG, Brazil, and I'm working with source code
> > metrics. I have a FAMIX model generated by the inFusion tool and I
> > would like to know if the Moose can export source code metrics (LOC,
> > WMC, LCOM, etc) of Java classes to .CSV ou XML files?
> >
> > Is there any plugin of the Moose that have this functionality?
> >
> > Cesar Couto
> >
> > --
> > http://www.decom.cefetmg.br/cesar
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Stéphane Ducasse
:)

We want to have an exporter parametrized by a contextImporter + a wizard
then we want to select the metrics that should be exported
then the format
        XML or CVS or MSE

and get that in Moose

Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.

Stef


On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:

> Hello Alex,
> Yes, I am still working on that.. and then I could integrate.
>
> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
> shouldn't it be part of Moose?
>
> Alexandre
>
>
> On 28 Jun 2011, at 17:44, Andre Hora wrote:
>
> > Hello Cesar,
> >
> > By the moment, you can try the following steps to export the metrics:
> >
> > 1) First, run the script below in the workspace:
> >
> > Gofer new
> >     squeaksource: 'FameImportExportEx';
> >     package: 'Fame-ImportExport-Extensions';
> >     load.
> >
> > 2) Then, run the script below setting the metrics you want to export and the name of your model.
> > You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
> >
> > | stream printer visitor model |
> >
> > stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> > model := (MooseModel root) entityNamed: 'MyModelName'.
> >
> > printer := FMTabularPrinter new stream: stream.
> > printer separator: $,.
> >
> > visitor := RepositoryTabularVisitor new.
> > visitor printer: printer.
> >
> > visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
> > visitor model: model allClasses.
> >
> > visitor basicRun.
> >
> >
> > The result is a CSV in the directory: Contents/Resources of your image, like this:
> >
> > entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> > Collection,1414,227,20,35
> > NotFound,40,8,4,4
> > ArrayedCollection,318,37,18,7
> > SizeMismatch,8,2,1,1
> > SequenceableCollection,2023,225,10,24
> > HashedCollection,167,35,5,5
> > CollectionIsEmpty,22,5,2,4
> >
> > regards,
> >
> > On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
> > Ok
> >
> > Alexandre
> >
> >
> > On 28 Jun 2011, at 16:20, Andre Hora wrote:
> >
> > > Hello Cesar,
> > >
> > > I am working on that and I hope next week it will be possible.
> > > Then I can tell how to do that.
> > >
> > > For now it is not automatic.. you should write some scripts.
> > >
> > > regards,
> > >
> > > 2011/6/28 César Couto <[hidden email]>
> > > I am a PhD student at UFMG, Brazil, and I'm working with source code
> > > metrics. I have a FAMIX model generated by the inFusion tool and I
> > > would like to know if the Moose can export source code metrics (LOC,
> > > WMC, LCOM, etc) of Java classes to .CSV ou XML files?
> > >
> > > Is there any plugin of the Moose that have this functionality?
> > >
> > > Cesar Couto
> > >
> > > --
> > > http://www.decom.cefetmg.br/cesar
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >
> > >
> > >
> > > --
> > > Andre Hora
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

abergel
> Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.

I also feel such a need.
This is something I will work on

Cheers,
Alexandre

>
>
>
> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
>
>> Hello Alex,
>> Yes, I am still working on that.. and then I could integrate.
>>
>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
>> shouldn't it be part of Moose?
>>
>> Alexandre
>>
>>
>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
>>
>>> Hello Cesar,
>>>
>>> By the moment, you can try the following steps to export the metrics:
>>>
>>> 1) First, run the script below in the workspace:
>>>
>>> Gofer new
>>>    squeaksource: 'FameImportExportEx';
>>>    package: 'Fame-ImportExport-Extensions';
>>>    load.
>>>
>>> 2) Then, run the script below setting the metrics you want to export and the name of your model.
>>> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>>>
>>> | stream printer visitor model |
>>>
>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
>>> model := (MooseModel root) entityNamed: 'MyModelName'.
>>>
>>> printer := FMTabularPrinter new stream: stream.
>>> printer separator: $,.
>>>
>>> visitor := RepositoryTabularVisitor new.
>>> visitor printer: printer.
>>>
>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
>>> visitor model: model allClasses.
>>>
>>> visitor basicRun.
>>>
>>>
>>> The result is a CSV in the directory: Contents/Resources of your image, like this:
>>>
>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
>>> Collection,1414,227,20,35
>>> NotFound,40,8,4,4
>>> ArrayedCollection,318,37,18,7
>>> SizeMismatch,8,2,1,1
>>> SequenceableCollection,2023,225,10,24
>>> HashedCollection,167,35,5,5
>>> CollectionIsEmpty,22,5,2,4
>>>
>>> regards,
>>>
>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
>>> Ok
>>>
>>> Alexandre
>>>
>>>
>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>>>
>>>> Hello Cesar,
>>>>
>>>> I am working on that and I hope next week it will be possible.
>>>> Then I can tell how to do that.
>>>>
>>>> For now it is not automatic.. you should write some scripts.
>>>>
>>>> regards,
>>>>
>>>> 2011/6/28 César Couto <[hidden email]>
>>>> I am a PhD student at UFMG, Brazil, and I'm working with source code
>>>> metrics. I have a FAMIX model generated by the inFusion tool and I
>>>> would like to know if the Moose can export source code metrics (LOC,
>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>>>>
>>>> Is there any plugin of the Moose that have this functionality?
>>>>
>>>> Cesar Couto
>>>>
>>>> --
>>>> http://www.decom.cefetmg.br/cesar
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Andre Hora
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>>
>>> --
>>> Andre Hora
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>>
>> --
>> Andre Hora
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

jfabry

+1 for AspectMaps. Although it should be the Java code so I dont know how this might be achieved ...

On 29 Jun 2011, at 02:38, Alexandre Bergel wrote:

>> Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.
>
> I also feel such a need.
> This is something I will work on
>
> Cheers,
> Alexandre
>
>>
>>
>>
>> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
>>
>>> Hello Alex,
>>> Yes, I am still working on that.. and then I could integrate.
>>>
>>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
>>> shouldn't it be part of Moose?
>>>
>>> Alexandre
>>>
>>>
>>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
>>>
>>>> Hello Cesar,
>>>>
>>>> By the moment, you can try the following steps to export the metrics:
>>>>
>>>> 1) First, run the script below in the workspace:
>>>>
>>>> Gofer new
>>>>   squeaksource: 'FameImportExportEx';
>>>>   package: 'Fame-ImportExport-Extensions';
>>>>   load.
>>>>
>>>> 2) Then, run the script below setting the metrics you want to export and the name of your model.
>>>> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>>>>
>>>> | stream printer visitor model |
>>>>
>>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
>>>> model := (MooseModel root) entityNamed: 'MyModelName'.
>>>>
>>>> printer := FMTabularPrinter new stream: stream.
>>>> printer separator: $,.
>>>>
>>>> visitor := RepositoryTabularVisitor new.
>>>> visitor printer: printer.
>>>>
>>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
>>>> visitor model: model allClasses.
>>>>
>>>> visitor basicRun.
>>>>
>>>>
>>>> The result is a CSV in the directory: Contents/Resources of your image, like this:
>>>>
>>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
>>>> Collection,1414,227,20,35
>>>> NotFound,40,8,4,4
>>>> ArrayedCollection,318,37,18,7
>>>> SizeMismatch,8,2,1,1
>>>> SequenceableCollection,2023,225,10,24
>>>> HashedCollection,167,35,5,5
>>>> CollectionIsEmpty,22,5,2,4
>>>>
>>>> regards,
>>>>
>>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
>>>> Ok
>>>>
>>>> Alexandre
>>>>
>>>>
>>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>>>>
>>>>> Hello Cesar,
>>>>>
>>>>> I am working on that and I hope next week it will be possible.
>>>>> Then I can tell how to do that.
>>>>>
>>>>> For now it is not automatic.. you should write some scripts.
>>>>>
>>>>> regards,
>>>>>
>>>>> 2011/6/28 César Couto <[hidden email]>
>>>>> I am a PhD student at UFMG, Brazil, and I'm working with source code
>>>>> metrics. I have a FAMIX model generated by the inFusion tool and I
>>>>> would like to know if the Moose can export source code metrics (LOC,
>>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>>>>>
>>>>> Is there any plugin of the Moose that have this functionality?
>>>>>
>>>>> Cesar Couto
>>>>>
>>>>> --
>>>>> http://www.decom.cefetmg.br/cesar
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Andre Hora
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Andre Hora
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>>
>>> --
>>> Andre Hora
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Andre Hora
Hello,

If you want to try an automatic way to export the properties (metrics), run the script below:

Gofer new
    squeaksource: 'FameImportExportEx';
    package: 'Fame-ImportExport-Extensions';
    load.

Then, right-click on an entity, Utilities -> Export properties, and select the metrics to export. If you export clicking on the MooseModel, several files can be generated, for each group. Export clicking on others entities generates one file.
The results (now, just CSV) are in the directory: Contents/Resources.

regards,


On Wed, Jun 29, 2011 at 8:16 PM, Johan Fabry <[hidden email]> wrote:

+1 for AspectMaps. Although it should be the Java code so I dont know how this might be achieved ...

On 29 Jun 2011, at 02:38, Alexandre Bergel wrote:

>> Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.
>
> I also feel such a need.
> This is something I will work on
>
> Cheers,
> Alexandre
>
>>
>>
>>
>> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
>>
>>> Hello Alex,
>>> Yes, I am still working on that.. and then I could integrate.
>>>
>>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
>>> shouldn't it be part of Moose?
>>>
>>> Alexandre
>>>
>>>
>>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
>>>
>>>> Hello Cesar,
>>>>
>>>> By the moment, you can try the following steps to export the metrics:
>>>>
>>>> 1) First, run the script below in the workspace:
>>>>
>>>> Gofer new
>>>>   squeaksource: 'FameImportExportEx';
>>>>   package: 'Fame-ImportExport-Extensions';
>>>>   load.
>>>>
>>>> 2) Then, run the script below setting the metrics you want to export and the name of your model.
>>>> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>>>>
>>>> | stream printer visitor model |
>>>>
>>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
>>>> model := (MooseModel root) entityNamed: 'MyModelName'.
>>>>
>>>> printer := FMTabularPrinter new stream: stream.
>>>> printer separator: $,.
>>>>
>>>> visitor := RepositoryTabularVisitor new.
>>>> visitor printer: printer.
>>>>
>>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
>>>> visitor model: model allClasses.
>>>>
>>>> visitor basicRun.
>>>>
>>>>
>>>> The result is a CSV in the directory: Contents/Resources of your image, like this:
>>>>
>>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
>>>> Collection,1414,227,20,35
>>>> NotFound,40,8,4,4
>>>> ArrayedCollection,318,37,18,7
>>>> SizeMismatch,8,2,1,1
>>>> SequenceableCollection,2023,225,10,24
>>>> HashedCollection,167,35,5,5
>>>> CollectionIsEmpty,22,5,2,4
>>>>
>>>> regards,
>>>>
>>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
>>>> Ok
>>>>
>>>> Alexandre
>>>>
>>>>
>>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>>>>
>>>>> Hello Cesar,
>>>>>
>>>>> I am working on that and I hope next week it will be possible.
>>>>> Then I can tell how to do that.
>>>>>
>>>>> For now it is not automatic.. you should write some scripts.
>>>>>
>>>>> regards,
>>>>>
>>>>> 2011/6/28 César Couto <[hidden email]>
>>>>> I am a PhD student at UFMG, Brazil, and I'm working with source code
>>>>> metrics. I have a FAMIX model generated by the inFusion tool and I
>>>>> would like to know if the Moose can export source code metrics (LOC,
>>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>>>>>
>>>>> Is there any plugin of the Moose that have this functionality?
>>>>>
>>>>> Cesar Couto
>>>>>
>>>>> --
>>>>> http://www.decom.cefetmg.br/cesar
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Andre Hora
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Andre Hora
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>>
>>> --
>>> Andre Hora
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
Johan Fabry
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Stéphane Ducasse
In reply to this post by abergel
excellent

On Jun 29, 2011, at 8:38 AM, Alexandre Bergel wrote:

>> Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.
>
> I also feel such a need.
> This is something I will work on
>
> Cheers,
> Alexandre
>
>>
>>
>>
>> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
>>
>>> Hello Alex,
>>> Yes, I am still working on that.. and then I could integrate.
>>>
>>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
>>> shouldn't it be part of Moose?
>>>
>>> Alexandre
>>>
>>>
>>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
>>>
>>>> Hello Cesar,
>>>>
>>>> By the moment, you can try the following steps to export the metrics:
>>>>
>>>> 1) First, run the script below in the workspace:
>>>>
>>>> Gofer new
>>>>   squeaksource: 'FameImportExportEx';
>>>>   package: 'Fame-ImportExport-Extensions';
>>>>   load.
>>>>
>>>> 2) Then, run the script below setting the metrics you want to export and the name of your model.
>>>> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
>>>>
>>>> | stream printer visitor model |
>>>>
>>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
>>>> model := (MooseModel root) entityNamed: 'MyModelName'.
>>>>
>>>> printer := FMTabularPrinter new stream: stream.
>>>> printer separator: $,.
>>>>
>>>> visitor := RepositoryTabularVisitor new.
>>>> visitor printer: printer.
>>>>
>>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
>>>> visitor model: model allClasses.
>>>>
>>>> visitor basicRun.
>>>>
>>>>
>>>> The result is a CSV in the directory: Contents/Resources of your image, like this:
>>>>
>>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
>>>> Collection,1414,227,20,35
>>>> NotFound,40,8,4,4
>>>> ArrayedCollection,318,37,18,7
>>>> SizeMismatch,8,2,1,1
>>>> SequenceableCollection,2023,225,10,24
>>>> HashedCollection,167,35,5,5
>>>> CollectionIsEmpty,22,5,2,4
>>>>
>>>> regards,
>>>>
>>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
>>>> Ok
>>>>
>>>> Alexandre
>>>>
>>>>
>>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
>>>>
>>>>> Hello Cesar,
>>>>>
>>>>> I am working on that and I hope next week it will be possible.
>>>>> Then I can tell how to do that.
>>>>>
>>>>> For now it is not automatic.. you should write some scripts.
>>>>>
>>>>> regards,
>>>>>
>>>>> 2011/6/28 César Couto <[hidden email]>
>>>>> I am a PhD student at UFMG, Brazil, and I'm working with source code
>>>>> metrics. I have a FAMIX model generated by the inFusion tool and I
>>>>> would like to know if the Moose can export source code metrics (LOC,
>>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
>>>>>
>>>>> Is there any plugin of the Moose that have this functionality?
>>>>>
>>>>> Cesar Couto
>>>>>
>>>>> --
>>>>> http://www.decom.cefetmg.br/cesar
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Andre Hora
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Andre Hora
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>>
>>> --
>>> Andre Hora
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Stéphane Ducasse
In reply to this post by Andre Hora
Thanks andre

I think that it would be nice to have a standard place to by default save results.
it should be something like
        ProjectZXCSS/ project path
                code/ ocde of the application under analysis
                scripts/ possible scripts
                export/ xml csv"
                models/ "famix models would be saved here"

On Jun 29, 2011, at 10:55 PM, Andre Hora wrote:

> Hello,
>
> If you want to try an automatic way to export the properties (metrics), run the script below:
>
> Gofer new
>     squeaksource: 'FameImportExportEx';
>     package: 'Fame-ImportExport-Extensions';
>     load.
>
> Then, right-click on an entity, Utilities -> Export properties, and select the metrics to export. If you export clicking on the MooseModel, several files can be generated, for each group. Export clicking on others entities generates one file.
> The results (now, just CSV) are in the directory: Contents/Resources.
>
> regards,
>
>
> On Wed, Jun 29, 2011 at 8:16 PM, Johan Fabry <[hidden email]> wrote:
>
> +1 for AspectMaps. Although it should be the Java code so I dont know how this might be achieved ...
>
> On 29 Jun 2011, at 02:38, Alexandre Bergel wrote:
>
> >> Alex if you have some time I still would love to have a window showing me all the time the source code of any entity I look at.
> >
> > I also feel such a need.
> > This is something I will work on
> >
> > Cheers,
> > Alexandre
> >
> >>
> >>
> >>
> >> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
> >>
> >>> Hello Alex,
> >>> Yes, I am still working on that.. and then I could integrate.
> >>>
> >>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <[hidden email]> wrote:
> >>> shouldn't it be part of Moose?
> >>>
> >>> Alexandre
> >>>
> >>>
> >>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
> >>>
> >>>> Hello Cesar,
> >>>>
> >>>> By the moment, you can try the following steps to export the metrics:
> >>>>
> >>>> 1) First, run the script below in the workspace:
> >>>>
> >>>> Gofer new
> >>>>   squeaksource: 'FameImportExportEx';
> >>>>   package: 'Fame-ImportExport-Extensions';
> >>>>   load.
> >>>>
> >>>> 2) Then, run the script below setting the metrics you want to export and the name of your model.
> >>>> You can also change allClasses by others entities such as allModelClasses, allMethods, allNamespaces, and so on.. (see the class MooseAbstractGroup).
> >>>>
> >>>> | stream printer visitor model |
> >>>>
> >>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> >>>> model := (MooseModel root) entityNamed: 'MyModelName'.
> >>>>
> >>>> printer := FMTabularPrinter new stream: stream.
> >>>> printer separator: $,.
> >>>>
> >>>> visitor := RepositoryTabularVisitor new.
> >>>> visitor printer: printer.
> >>>>
> >>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
> >>>> visitor model: model allClasses.
> >>>>
> >>>> visitor basicRun.
> >>>>
> >>>>
> >>>> The result is a CSV in the directory: Contents/Resources of your image, like this:
> >>>>
> >>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> >>>> Collection,1414,227,20,35
> >>>> NotFound,40,8,4,4
> >>>> ArrayedCollection,318,37,18,7
> >>>> SizeMismatch,8,2,1,1
> >>>> SequenceableCollection,2023,225,10,24
> >>>> HashedCollection,167,35,5,5
> >>>> CollectionIsEmpty,22,5,2,4
> >>>>
> >>>> regards,
> >>>>
> >>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <[hidden email]> wrote:
> >>>> Ok
> >>>>
> >>>> Alexandre
> >>>>
> >>>>
> >>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
> >>>>
> >>>>> Hello Cesar,
> >>>>>
> >>>>> I am working on that and I hope next week it will be possible.
> >>>>> Then I can tell how to do that.
> >>>>>
> >>>>> For now it is not automatic.. you should write some scripts.
> >>>>>
> >>>>> regards,
> >>>>>
> >>>>> 2011/6/28 César Couto <[hidden email]>
> >>>>> I am a PhD student at UFMG, Brazil, and I'm working with source code
> >>>>> metrics. I have a FAMIX model generated by the inFusion tool and I
> >>>>> would like to know if the Moose can export source code metrics (LOC,
> >>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
> >>>>>
> >>>>> Is there any plugin of the Moose that have this functionality?
> >>>>>
> >>>>> Cesar Couto
> >>>>>
> >>>>> --
> >>>>> http://www.decom.cefetmg.br/cesar
> >>>>> _______________________________________________
> >>>>> Moose-dev mailing list
> >>>>> [hidden email]
> >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Andre Hora
> >>>>>
> >>>>> _______________________________________________
> >>>>> Moose-dev mailing list
> >>>>> [hidden email]
> >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>>
> >>>> --
> >>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >>>> Alexandre Bergel  http://www.bergel.eu
> >>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Moose-dev mailing list
> >>>> [hidden email]
> >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Andre Hora
> >>>>
> >>>> _______________________________________________
> >>>> Moose-dev mailing list
> >>>> [hidden email]
> >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>
> >>> --
> >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >>> Alexandre Bergel  http://www.bergel.eu
> >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Moose-dev mailing list
> >>> [hidden email]
> >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>
> >>>
> >>>
> >>> --
> >>> Andre Hora
> >>>
> >>> _______________________________________________
> >>> Moose-dev mailing list
> >>> [hidden email]
> >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> Johan Fabry
> [hidden email] - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Question about export metrics from Moose

Nicolas Anquetil

nice,

except that often it could be difficult to relocate the code as it is preexisting, not "controled" by moose, and possibly subject to other constraints by other tools (config.management, compilation, access rigths, ...)

So we could look for a way for "code" to contain a pointer to the code instead of the code itself.
It could simply be links, but it seems smalltalk has some issues with links (at least on linux).
It cold also be a file with the path(s) to the code ...


----- Mail original -----

> De: "Stéphane Ducasse" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Jeudi 30 Juin 2011 14:07:22
> Objet: [Moose-dev] Re: Question about export metrics from Moose
> Thanks andre
>
> I think that it would be nice to have a standard place to by default
> save results.
> it should be something like
> ProjectZXCSS/ project path
> code/ ocde of the application under analysis
> scripts/ possible scripts
> export/ xml csv"
> models/ "famix models would be saved here"
>
> On Jun 29, 2011, at 10:55 PM, Andre Hora wrote:
>
> > Hello,
> >
> > If you want to try an automatic way to export the properties
> > (metrics), run the script below:
> >
> > Gofer new
> >     squeaksource: 'FameImportExportEx';
> >     package: 'Fame-ImportExport-Extensions';
> >     load.
> >
> > Then, right-click on an entity, Utilities -> Export properties, and
> > select the metrics to export. If you export clicking on the
> > MooseModel, several files can be generated, for each group. Export
> > clicking on others entities generates one file.
> > The results (now, just CSV) are in the directory:
> > Contents/Resources.
> >
> > regards,
> >
> >
> > On Wed, Jun 29, 2011 at 8:16 PM, Johan Fabry <[hidden email]>
> > wrote:
> >
> > +1 for AspectMaps. Although it should be the Java code so I dont
> > know how this might be achieved ...
> >
> > On 29 Jun 2011, at 02:38, Alexandre Bergel wrote:
> >
> > >> Alex if you have some time I still would love to have a window
> > >> showing me all the time the source code of any entity I look at.
> > >
> > > I also feel such a need.
> > > This is something I will work on
> > >
> > > Cheers,
> > > Alexandre
> > >
> > >>
> > >>
> > >>
> > >> On Jun 28, 2011, at 11:52 PM, Andre Hora wrote:
> > >>
> > >>> Hello Alex,
> > >>> Yes, I am still working on that.. and then I could integrate.
> > >>>
> > >>> On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel
> > >>> <[hidden email]> wrote:
> > >>> shouldn't it be part of Moose?
> > >>>
> > >>> Alexandre
> > >>>
> > >>>
> > >>> On 28 Jun 2011, at 17:44, Andre Hora wrote:
> > >>>
> > >>>> Hello Cesar,
> > >>>>
> > >>>> By the moment, you can try the following steps to export the
> > >>>> metrics:
> > >>>>
> > >>>> 1) First, run the script below in the workspace:
> > >>>>
> > >>>> Gofer new
> > >>>>   squeaksource: 'FameImportExportEx';
> > >>>>   package: 'Fame-ImportExport-Extensions';
> > >>>>   load.
> > >>>>
> > >>>> 2) Then, run the script below setting the metrics you want to
> > >>>> export and the name of your model.
> > >>>> You can also change allClasses by others entities such as
> > >>>> allModelClasses, allMethods, allNamespaces, and so on.. (see
> > >>>> the class MooseAbstractGroup).
> > >>>>
> > >>>> | stream printer visitor model |
> > >>>>
> > >>>> stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
> > >>>> model := (MooseModel root) entityNamed: 'MyModelName'.
> > >>>>
> > >>>> printer := FMTabularPrinter new stream: stream.
> > >>>> printer separator: $,.
> > >>>>
> > >>>> visitor := RepositoryTabularVisitor new.
> > >>>> visitor printer: printer.
> > >>>>
> > >>>> visitor selectors: #(#numberOfLinesOfCode #numberOfMethods
> > >>>> #fanIn #fanOut).
> > >>>> visitor model: model allClasses.
> > >>>>
> > >>>> visitor basicRun.
> > >>>>
> > >>>>
> > >>>> The result is a CSV in the directory: Contents/Resources of
> > >>>> your image, like this:
> > >>>>
> > >>>> entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
> > >>>> Collection,1414,227,20,35
> > >>>> NotFound,40,8,4,4
> > >>>> ArrayedCollection,318,37,18,7
> > >>>> SizeMismatch,8,2,1,1
> > >>>> SequenceableCollection,2023,225,10,24
> > >>>> HashedCollection,167,35,5,5
> > >>>> CollectionIsEmpty,22,5,2,4
> > >>>>
> > >>>> regards,
> > >>>>
> > >>>> On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel
> > >>>> <[hidden email]> wrote:
> > >>>> Ok
> > >>>>
> > >>>> Alexandre
> > >>>>
> > >>>>
> > >>>> On 28 Jun 2011, at 16:20, Andre Hora wrote:
> > >>>>
> > >>>>> Hello Cesar,
> > >>>>>
> > >>>>> I am working on that and I hope next week it will be possible.
> > >>>>> Then I can tell how to do that.
> > >>>>>
> > >>>>> For now it is not automatic.. you should write some scripts.
> > >>>>>
> > >>>>> regards,
> > >>>>>
> > >>>>> 2011/6/28 César Couto <[hidden email]>
> > >>>>> I am a PhD student at UFMG, Brazil, and I'm working with
> > >>>>> source code
> > >>>>> metrics. I have a FAMIX model generated by the inFusion tool
> > >>>>> and I
> > >>>>> would like to know if the Moose can export source code metrics
> > >>>>> (LOC,
> > >>>>> WMC, LCOM, etc) of Java classes to .CSV ou XML files?
> > >>>>>
> > >>>>> Is there any plugin of the Moose that have this functionality?
> > >>>>>
> > >>>>> Cesar Couto
> > >>>>>
> > >>>>> --
> > >>>>> http://www.decom.cefetmg.br/cesar
> > >>>>> _______________________________________________
> > >>>>> Moose-dev mailing list
> > >>>>> [hidden email]
> > >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Andre Hora
> > >>>>>
> > >>>>> _______________________________________________
> > >>>>> Moose-dev mailing list
> > >>>>> [hidden email]
> > >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>>>
> > >>>> --
> > >>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >>>> Alexandre Bergel http://www.bergel.eu
> > >>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Moose-dev mailing list
> > >>>> [hidden email]
> > >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>>>
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Andre Hora
> > >>>>
> > >>>> _______________________________________________
> > >>>> Moose-dev mailing list
> > >>>> [hidden email]
> > >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>>
> > >>> --
> > >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >>> Alexandre Bergel http://www.bergel.eu
> > >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> _______________________________________________
> > >>> Moose-dev mailing list
> > >>> [hidden email]
> > >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Andre Hora
> > >>>
> > >>> _______________________________________________
> > >>> Moose-dev mailing list
> > >>> [hidden email]
> > >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >>
> > >> _______________________________________________
> > >> Moose-dev mailing list
> > >> [hidden email]
> > >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >
> > > --
> > > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > > Alexandre Bergel http://www.bergel.eu
> > > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > Johan Fabry
> > [hidden email] - http://dcc.uchile.cl/~jfabry
> > PLEIAD Lab - Computer Science Department (DCC) - University of Chile
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev