11
The Object Repository Boris Spasojević, Mohammad Ghafari, Oscar Nierstrasz Software Composition Group University of Bern

The Object Repository - Pulling Objects out of the Ecosystem

  • Upload
    esug

  • View
    261

  • Download
    1

Embed Size (px)

Citation preview

The  Object  Repository  Boris  Spasojević,  Mohammad  Ghafari,  Oscar  Nierstrasz  

Software  Composition  Group  University  of  Bern  

IDEA:  Objects  on  demand!  

Object  Repository  

Documentation  Browser  

Playground  

Random  Test  Engine  

Debugger  

Your  tool!  

Object  Miner  

The  miner  from  the  outside  

Object  Repository  

Object  Miner  141  

projects    

13,909  classes  

source  code    snippets  

The  miner  from  the  inside  

PomodoroMorph>>progressBar progressBar ifNil: [

progressBar := ProgressBarMorph new ].ˆ progressBar

0

1

2

3

4

5

6

7

8

9

MethodNode  

SequenceNode  

ReturnNode  MessageNode  

BlockNode  

SequenceNode  

AssighnmentNode  

MessageNode  

VariableNode  

VariableNode  

^ progressBar

progressBar ifNil: [ progressBar := ProgressBarMorph new

].

ProgressBarMorph new

ProgressBarMorph

1,525,914  

154,904  [~10%]  

Does  not  compile  [>82%]  

 

do: #asString; asSet

Object  Repository  

Snippets:92,460  [~60%]  

Classes:  10,917  [~78%]  

Multiple  snippets  

20%  

Single  snippet  80%  

 Classes  

Multiple  snippets  

20%  

Literal  56%  

Trivial  22%  

Single  2%  

 Classes  

0  

2000  

4000  

6000  

8000  

10000  

12000  

14000  

16000  

18000  

#  of  snippets  

Summary  

Object  Repository  

0

1

2

3

5

6

8

9

Works  for  80%  of  classes