-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring of custom visualizations.
- Loading branch information
Showing
65 changed files
with
313 additions
and
292 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/DMM-Core.package/DMMAbstractnessMetrics.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/DMM-Core.package/DMMMainSequenceMetrics.class/instance/mainSequenceDistance.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
public - api | ||
public - metrics | ||
mainSequenceDistance | ||
"Distance which measures how far away a package is from the ideal main sequence in the I/A graph. | ||
The metric ranges from [0, ~0.707]" | ||
|
||
^ self normalizedMainSequenceDistance / 2 sqrt. | ||
^ self normalizedMainSequenceDistance / 2 sqrt | ||
|
2 changes: 1 addition & 1 deletion
2
src/DMM-Core.package/DMMMainSequenceMetrics.class/instance/normalizedMainSequenceDistance.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/DMM-Core.package/DMMMainSequenceMetrics.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/DMM-Core.package/DMMStabilityMetrics.class/class/defaultExcludedSystemPackages.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
instance creation | ||
defaultExcludedSystemPackages | ||
^ {#'Kernel-Objects'} asOrderedCollection | ||
^ {#'Kernel-Objects' . #'Collections-Abstract' . #'Collections-Unordered' . #'System-Support'} asOrderedCollection |
15 changes: 15 additions & 0 deletions
15
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentAssocs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
public - relationships | ||
afferentAssocs | ||
"Associations from the classes outside the package that depend on classes within the package to the dependent classes inside the package" | ||
|
||
^ afferentAssocs ifNil: [ | ||
afferentAssocs := OrderedCollection new. | ||
self package definedClasses | ||
inject: afferentAssocs | ||
into: [ :assocs :aClassInPackage | | ||
assocs | ||
addAll: | ||
((self referingClassesFor: aClassInPackage excluding: self excludedPackages) | ||
collect: [ :afferentClass | afferentClass -> aClassInPackage ]); | ||
yourself ]. | ||
] |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentAssocsFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
afferentAssocsFrom: outsidePackage | ||
"the afferent associations between classes from the specified outside package that depend on classes within this package" | ||
|
||
^ self afferentAssocs select: [ :assoc | assoc key package = outsidePackage ] |
6 changes: 6 additions & 0 deletions
6
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentClasses.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
public - relationships | ||
afferentClasses | ||
"the classes outside the package that depend on classes within the package" | ||
|
||
|
||
^ self afferentAssocs collect: #key as: Set |
9 changes: 9 additions & 0 deletions
9
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentClassesDict.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public - relationships | ||
afferentClassesDict | ||
^ self afferentAssocs | ||
inject: Dictionary new | ||
into: [ :dict :assoc | | ||
dict | ||
at: assoc value | ||
ifPresent: [ :afferentClasses | afferentClasses add: assoc key ] | ||
ifAbsentPut: [ {assoc key} asOrderedCollection ]; yourself ] |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentClassesFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
afferentClassesFrom: outsidePackage | ||
"the classes in the specified outside package that depend on classes within this package" | ||
|
||
^ (self afferentAssocsFrom: outsidePackage) collect: #key as: Set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentCouplingFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
afferentCouplingFrom: outsidePackage | ||
"the afferent coupling taking into account only the specified outside package" | ||
|
||
^ (self afferentClassesFrom: outsidePackage) size |
4 changes: 4 additions & 0 deletions
4
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentCouplingPerClass..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public - relationships | ||
afferentCouplingPerClass: aClass | ||
|
||
^ self afferentClassesDict at: aClass ifPresent: [ :afferentClasses | afferentClasses size ] ifAbsent: [ 0 ] |
7 changes: 7 additions & 0 deletions
7
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentPackageAssocs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public - relationships | ||
afferentPackageAssocs | ||
"Associations from the outside packages that depend on classes within the package to this package" | ||
|
||
|
||
^ self afferentAssocs collect: [ :assoc | assoc key package -> assoc value package ] | ||
|
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/afferentPackages.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
afferentPackages | ||
"the packages that depend on classes within the package" | ||
|
||
^ self afferentClasses collect: #package |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/dependentClasses.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
dependentClasses | ||
"the classes outside the package on which depend the classes inside the package" | ||
|
||
^ self efferentAssocs collect: #value as: Set |
3 changes: 3 additions & 0 deletions
3
src/DMM-Core.package/DMMStabilityMetrics.class/instance/dependentClassesFor.excluding..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
private - util | ||
dependentClassesFor: aClass excluding: aCollection | ||
^ aClass dependentClasses asOrderedCollection select: [ :aDependentClass | (aCollection includes: aDependentClass category) not ] |
3 changes: 0 additions & 3 deletions
3
src/DMM-Core.package/DMMStabilityMetrics.class/instance/dependentClassesFor.exluding..st
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/dependentPackages.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
dependentPackages | ||
"the packages that depend on classes within the package" | ||
|
||
^ self dependentClasses collect: #package as: Set |
15 changes: 15 additions & 0 deletions
15
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentAssocs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
public - relationships | ||
efferentAssocs | ||
"Associations from the classes inside the package that depend on classes outside the package" | ||
|
||
^ efferentAssocs ifNil: [ | ||
efferentAssocs := OrderedCollection new. | ||
self package definedClasses | ||
inject: efferentAssocs | ||
into: [ :assocs :aClassInPackage | | ||
assocs | ||
addAll: | ||
((self dependentClassesFor: aClassInPackage excluding: self excludedPackages) | ||
collect: [ :dependentClass | aClassInPackage -> dependentClass ]); | ||
yourself ]. | ||
] |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentAssocsToward..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
efferentAssocsToward: outsidePackage | ||
"the efferent associations between classes depending on the specified outside package" | ||
|
||
^ self efferentAssocs select: [ :assoc | assoc value package = outsidePackage ] |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentClasses.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
efferentClasses | ||
"the classes inside the package that depend on classes outside the package" | ||
|
||
^ self efferentAssocs collect: #key as: Set |
11 changes: 11 additions & 0 deletions
11
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentClassesDict.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
public - relationships | ||
efferentClassesDict | ||
^ self efferentAssocs | ||
inject: Dictionary new | ||
into: [ :dict :assoc | | ||
dict | ||
at: assoc key | ||
ifPresent: [ :efferentClasses | efferentClasses add: assoc value ] | ||
ifAbsentPut: [ {assoc value} asOrderedCollection ]; | ||
yourself ] | ||
|
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentClassesToward..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
efferentClassesToward: outsidePackage | ||
"the efferent classes in this package depending on classes in the specified outside package" | ||
|
||
^ (self efferentAssocsToward: outsidePackage) collect: #key as: Set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentCouplingPerClass..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public - relationships | ||
efferentCouplingPerClass: aClass | ||
^ self efferentClassesDict at: aClass ifPresent: [ :efferentClasses | efferentClasses size ] ifAbsent: [ 0 ] |
5 changes: 5 additions & 0 deletions
5
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentCouplingToward..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public - relationships | ||
efferentCouplingToward: outsidePackage | ||
"the efferent coupling toward the specified outside package" | ||
|
||
^ (self efferentClassesToward: outsidePackage) size |
6 changes: 6 additions & 0 deletions
6
src/DMM-Core.package/DMMStabilityMetrics.class/instance/efferentPackageAssocs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
public - relationships | ||
efferentPackageAssocs | ||
"Associations from the package to the outside pacakge containing dependant classes" | ||
|
||
|
||
^ self efferentAssocs collect: [ :assoc | assoc key package -> assoc value package ] |
3 changes: 3 additions & 0 deletions
3
src/DMM-Core.package/DMMStabilityMetrics.class/instance/printString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
private - util | ||
printString | ||
^ self package packageName , '(I=' , (self instability round: 3) asString , ')' |
6 changes: 4 additions & 2 deletions
6
src/DMM-Core.package/DMMStabilityMetrics.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
...izations.package/Collection.extension/instance/gtInspectorMainSequenceDistanceItemsIn..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/DMM-Visualizations.package/Collection.extension/properties.json
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...sualizations.package/DMMMainSequenceMetrics.extension/instance/gtInspectorDMMetricsIn..st
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
...s.package/DMMMainSequenceMetrics.extension/instance/gtInspectorMainSequenceDistanceIn..st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.