13. Discussion Social
CONTENT STRUCTURES
4 Dimensions
of Measures
Measures of Communication
WORKFLOW DYNAMICS
13
14. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Metadata
Status: VERIFIED FIXED QA Contact:
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
Source Code
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
===================================================================
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
15. 11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
}
Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
Patch
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
Stack Trace
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem.
16. Discussion Social
CONTENT STRUCTURES
4 Dimensions
of Measures
Measures of Communication
WORKFLOW DYNAMICS
16
17. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Status: VERIFIED FIXED QA Contact:
# PARTICIPANTS IN
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
DISCUSSION
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
ROLE OF
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
===================================================================
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
PARTICIPANTS
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
}
Diagnostic diagnostic =
REPUTATION
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
CENTRALITY
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem. 17
18. Discussion Social
CONTENT STRUCTURES
4 Dimensions
of Measures
Measures of Communication
WORKFLOW DYNAMICS
18
19. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Status: VERIFIED FIXED QA Contact:
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
# MESSAGES
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
MESSAGE
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
LENGTH
===================================================================
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
REPLY TIME
}
Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
INTERESTINGNESS
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem. 19
20. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Status: VERIFIED FIXED QA Contact:
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
# MESSAGES
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
===================================================================
MESSAGE
LENGTH
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
}
REPLY TIME
Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
INTERESTINGNESS
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem. 20
21. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Status: VERIFIED FIXED QA Contact:
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
# MESSAGES
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
MESSAGE
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
LENGTH
===================================================================
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
REPLY TIME
}
Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
INTERESTINGNESS
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem. 21
22. Bug 137808
Summary: Exceptions from createFromString lock-up the editor
Product: [Modeling] EMF Reporter: Patrick Sodre <psodre@gmail.com>
Component: Core Assignee: Marcelo Paternostro <marcelop@ca.ibm.com>
Status: VERIFIED FIXED QA Contact:
Severity: normal
Priority: P3 CC: merks@ca.ibm.com
Version: 2.2
Target Milestone: ---
Hardware: PC
OS: Windows XP
Whiteboard:
Opened: 2006-04-20 14:25 -
# MESSAGES
Description:
0400
As discussed on the newsgroup under the Thread with the same name I am opening
this bug entry. Here is a history of the thread.
-- From Ed Merks
Patrick,
The value is checked before it's applied and can't be applied until it's valid.
But this BigDecimal cases behaves oddly because the exception thrown by
new BigDecimal("badvalue")
has a null message and the property editor relies on returning a non-null
message string to indicate there is an error.
MESSAGE
Please open a bugzilla which I'll fix like this:
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.edit.ui
Index: src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java
LENGTH
===================================================================
RCS file:
/cvsroot/tools/org.eclipse.emf/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java,v
retrieving revision 1.10
diff -u -r1.10 PropertyDescriptor.java
--- src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 21 Mar 2006
16:42:30 -0000 1.10
+++ src/org/eclipse/emf/edit/ui/provider/PropertyDescriptor.java 20 Apr 2006
11:59:10 -0000
@@ -162,7 +162,8 @@
}
catch (Exception exception)
{
- return exception.getMessage();
+ String message = exception.getMessage();
+ return message == null ? exception.toString() : message;
}
REPLY TIME
}
Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(EDataTypeCellEditor.this.eDataType, value);
Patrick Sodre wrote:
Hi,
It seems that if the user inputs an invalid parameter that gets created from
"createFromString" the Editor locks-up until the user explicitly calls "restore
Default Value".
Is this the expected behavior or could something better be done? For
instance if an exception is thrown restore the value back to what it was before
after displaying a pop-up error message.
I understand that for DataTypes defined by the user he/she should take care
of catching the exceptions but for the default ones like BigInteger/BigDecimal
I think the EMF runtime could do some of the grunt work...
If you think this is something worth pursuing I could post an entry in
Bugzilla.
INTERESTINGNESS
Regards,
Patrick Sodre
Below is the stack trace that I got from the Editor...
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEBigDecimalFromString(EcoreFactoryImpl.java:559)
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:116)
at
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetValue(PropertyDescriptor.java:183)
at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:449)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:135)
at
org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue(PropertySheetViewer.java:249)
at
------- Comment #1 From Ed Merks 2006-04-20 15:09:23 -0400 -------
The fix has been committed to CVS. Thanks for reporting this problem. 22
23. Discussion Social
CONTENT STRUCTURES
4 Dimensions
of Measures
Measures of Communication
WORKFLOW DYNAMICS
23
24. 2.3 Life Cycle of Bug Reports
FIXED
WORKSFORME
WONTFIX
INVALID
UNCONFIRMED
DUPLICATE
NEW / REOPEN ASSIGNED RESOLVED VERIFIED
CLOSED
24
25. REGRESSION MODEL
the amount of post-release defects into relation of our pre-
release measures. The complete linear regression model has
the form
Def ects = αi · ContentM easurei
i
+ βj · StructuralM easurej
j
+ γk · ComDynM easurek
k
+ δl · W orkf lowM easurel +
l
Based on this model, we will investigate the statistical
relationships between the social interaction measures, which
are represented by the regression variables in the model, and
post release defects, represented by the dependent variable 25
26. REGRESSION MODEL
Dependentamount of post-release defects into relation of our pre-
the Variable
(what is predicted)
release measures. The complete linear regression model has
the form
Def ects = αi · ContentM easurei
i
+ βj · StructuralM easurej
j
+ γk · ComDynM easurek
k
+ δl · W orkf lowM easurel +
l
Based on this model, we will investigate the statistical
relationships between the social interaction measures, which
are represented by the regression variables in the model, and
post release defects, represented by the dependent variable 25
27. REGRESSION MODEL
Regression
Dependentamount of post-release defects into relation of our pre-
the Variable Coefficients
(what is predicted)
release measures. The complete linear regression model has
the form
Def ects = αi · ContentM easurei
i
+ βj · StructuralM easurej
j
+ γk · ComDynM easurek
k
+ δl · W orkf lowM easurel +
l
Based on this model, we will investigate the statistical
relationships between the social interaction measures, which
are represented by the regression variables in the model, and
post release defects, represented by the dependent variable 25
28. REGRESSION MODEL
Regression
Independent
Dependentamount of post-release defects into relation of our pre-
Variable
the Coefficients
(what is predicted) Variables
release measures. The complete linear regression model has
the form
Def ects = αi · ContentM easurei
i
+ βj · StructuralM easurej
j
+ γk · ComDynM easurek
k
+ δl · W orkf lowM easurel +
l
Based on this model, we will investigate the statistical
relationships between the social interaction measures, which
are represented by the regression variables in the model, and
post release defects, represented by the dependent variable 25
29. APPROACH
Hierarchical Analysis
Successfully used in the past! (Cataldo, Mockus)
Goal: Investigate the effect of each
variable on the model.
(1) Eliminate variables with high correlation.
(2) Build linear model step-by-step, each time
adding new independent variables.
(3) At each step, evaluate how well the set of
independent variables explains the data.
26
32. /01-2) ;;; ;;; ; ; ;;; ;;; ;;; ;; ; ;
(/01-2
()-*! ;;;
;;;
;;; ;;;APPROACH
;; ;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;; ;
;;;
;;; ;;;
Hierarchical Analysis
()*+,-. ;;; ;;; ;; ; ;;; ;; ;;; ;;; ;;; ; ;;;
$%' ;;; ;;; ;;; ;;; ;;; ; ; ;;; ;;;
:0. :0 4(1. (1) Eliminate variables with high correlation.
4(1 63.(. 63.( ,./39. ,./39 (!)8 )(0-.(1 (+).,)
!
(6.7) (/0,1 (34(5 1,0-.) (1,0-. /01-2) (/01-2 ()-*! ()*+,-
igure 1. Pairwise correlations of social interaction measures with levels * p0.05, ** p0.01, *** p0.001. Strength of correlatio
olour intensities; negative correlations are marked with a dashed outline.
Variance Inflation Factor model that have a variance inflation factor g
log(Yi ) Model 1 Model 2 Model 3 (1) Build analysis with all
We start our model with a regression mode
NSOURCE
NSCOM
3.38
3.34
3.38
3.34
3.40
3.36 independent variables
all our variables. The variance inflation fa
NPATCH 3.94 3.88 3.90 model are presented in Table II, Model 1. W
PATCHS 3.84 3.82 3.84 variables that have a variance inflation facto
10. Measure VIF of each
(2) We remove the highest one (NMSG) from
NTRACE 4.62 4.60 4.57
TRACES 4.78 4.75 4.70
NLINK 2.24 2.22 1.90 model and recompute the variance inflation f
independent variable
NDEVS 9.32 9.27 1.91 reduced set of variables. The resulting mode
NUSERS 4.55 4.54 2.30
SNACENT 10.66 10.65 — Table II) contains only one more variable w
NMSG
REPLY
11.63
1.17
—
1.17
—
1.17
(3) Remove variable remove the regre
factor larger than 10. We with
(SNACENT) from the model and recomput
factors. highest VIF
REPLYE 2.04 1.91 1.90
DLEN 4.21 1.91 1.87 In the resulting model (Model 3 in
DLENE 4.65 1.98 1.96 variables have an inflation factor larger than 5
INT 2.82 2.82 2.60 our analysis of multicollinearity.
INTE 1.71 1.71 1.71
WA
WAE
2.26
2.08
1.99
2.06
1.96
2.02
Repeat until Analysis Design
C. Hierarchical all VIF below
threshold (t=10)
After having determined the reduced set
Table II variables with low multicollinearity, we pro
S TEP - WISE ANALYSIS OF MULTICOLLINEARITY. 28
33. /01-2) ;;; ;;; ; ; ;;; ;;; ;;; ;; ; ;
(/01-2
()-*! ;;;
;;;
;;; ;;;APPROACH
;; ;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;; ;
;;;
;;; ;;;
Hierarchical Analysis
()*+,-. ;;; ;;; ;; ; ;;; ;; ;;; ;;; ;;; ; ;;;
$%' ;;; ;;; ;;; ;;; ;;; ; ; ;;; ;;;
:0. :0 4(1. (1) Eliminate variables with high correlation.
4(1 63.(. 63.( ,./39. ,./39 (!)8 )(0-.(1 (+).,)
!
(6.7) (/0,1 (34(5 1,0-.) (1,0-. /01-2) (/01-2 ()-*! ()*+,-
igure 1. Pairwise correlations of social interaction measures with levels * p0.05, ** p0.01, *** p0.001. Strength of correlatio
olour intensities; negative correlations are marked with a dashed outline.
Variance Inflation Factor model that have a variance inflation factor g
log(Yi ) Model 1 Model 2 Model 3 (1) Build analysis with all
We start our model with a regression mode
NSOURCE
NSCOM
3.38
3.34
3.38
3.34
3.40
3.36 independent variables
all our variables. The variance inflation fa
NPATCH 3.94 3.88 3.90 model are presented in Table II, Model 1. W
PATCHS 3.84 3.82 3.84 variables that have a variance inflation facto
10. Measure VIF of each
(2) We remove the highest one (NMSG) from
NTRACE 4.62 4.60 4.57
TRACES 4.78 4.75 4.70
NLINK 2.24 2.22 1.90 model and recompute the variance inflation f
independent variable
NDEVS 9.32 9.27 1.91 reduced set of variables. The resulting mode
NUSERS 4.55 4.54 2.30
SNACENT 10.66 10.65 — Table II) contains only one more variable w
NMSG
REPLY
11.63
1.17
—
1.17
—
1.17
(3) Remove variable remove the regre
factor larger than 10. We with
(SNACENT) from the model and recomput
factors. highest VIF
REPLYE 2.04 1.91 1.90
DLEN 4.21 1.91 1.87 In the resulting model (Model 3 in
DLENE 4.65 1.98 1.96 variables have an inflation factor larger than 5
INT 2.82 2.82 2.60 our analysis of multicollinearity.
INTE 1.71 1.71 1.71
WA
WAE
2.26
2.08
1.99
2.06
1.96
2.02
Repeat until Analysis Design
C. Hierarchical all VIF below
threshold (t=10)
After having determined the reduced set
Table II variables with low multicollinearity, we pro
S TEP - WISE ANALYSIS OF MULTICOLLINEARITY. 28
34. /01-2) ;;; ;;; ; ; ;;; ;;; ;;; ;; ; ;
(/01-2
()-*! ;;;
;;;
;;; ;;;APPROACH
;; ;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;;
;;; ;
;;;
;;; ;;;
Hierarchical Analysis
()*+,-. ;;; ;;; ;; ; ;;; ;; ;;; ;;; ;;; ; ;;;
$%' ;;; ;;; ;;; ;;; ;;; ; ; ;;; ;;;
:0. :0 4(1. (1) Eliminate variables with high correlation.
4(1 63.(. 63.( ,./39. ,./39 (!)8 )(0-.(1 (+).,)
!
(6.7) (/0,1 (34(5 1,0-.) (1,0-. /01-2) (/01-2 ()-*! ()*+,-
igure 1. Pairwise correlations of social interaction measures with levels * p0.05, ** p0.01, *** p0.001. Strength of correlatio
olour intensities; negative correlations are marked with a dashed outline.
Variance Inflation Factor model that have a variance inflation factor g
log(Yi ) Model 1 Model 2 Model 3 (1) Build analysis with all
We start our model with a regression mode
NSOURCE
NSCOM
3.38
3.34
3.38
3.34
3.40
3.36 independent variables
all our variables. The variance inflation fa
NPATCH 3.94 3.88 3.90 model are presented in Table II, Model 1. W
PATCHS 3.84 3.82 3.84 variables that have a variance inflation facto
10. Measure VIF of each
(2) We remove the highest one (NMSG) from
NTRACE 4.62 4.60 4.57
TRACES 4.78 4.75 4.70
NLINK 2.24 2.22 1.90 model and recompute the variance inflation f
independent variable
NDEVS 9.32 9.27 1.91 reduced set of variables. The resulting mode
NUSERS 4.55 4.54 2.30
SNACENT 10.66 10.65 — Table II) contains only one more variable w
NMSG
REPLY
11.63
1.17
—
1.17
—
1.17
(3) Remove variable remove the regre
factor larger than 10. We with
(SNACENT) from the model and recomput
factors. highest VIF
REPLYE 2.04 1.91 1.90
DLEN 4.21 1.91 1.87 In the resulting model (Model 3 in
DLENE 4.65 1.98 1.96 variables have an inflation factor larger than 5
INT 2.82 2.82 2.60 our analysis of multicollinearity.
INTE 1.71 1.71 1.71
WA
WAE
2.26
2.08
1.99
2.06
1.96
2.02
Repeat until Analysis Design
C. Hierarchical all VIF below
threshold (t=10)
After having determined the reduced set
Table II variables with low multicollinearity, we pro
S TEP - WISE ANALYSIS OF MULTICOLLINEARITY. 28
40. Model based on 14.41% Variation
Social Structures Explained
Model based on 17.04% Variation
Code Metrics Explained
(Zimmermann 2007)
34
41. Model based on 14.41% Variation
Social Structures Explained
What happens when we combine both?
Model based on 17.04% Variation
Code Metrics Explained
(Zimmermann 2007)
34
42. Model based on 14.41% Variation
Social Structures Explained
30.77% Variation
Combined Model
Explained
Traditional Model
17.04% Variation
(Zimmermann,
Explained
PROMISE 2007)
35
43. Size of Patches
Workflow
Code Churn
# Code Examples
Strongest # Links
Variables
(Odds Ratios) Length of the Discussion
Interestigness of Report
# Patches
Reply Time
36
44. Size of Patches
Workflow
Code Churn
# Code,Examples
Strongest io n
t
# Links
la tion !
Variablesr
o re sa
C Ca u
(Odds Ratios)
o t Length of the Discussion
n Interestigness of Report
# Patches
Reply Time
37