Record Class PatchOutcome
java.lang.Object
java.lang.Record
org.variantsync.studies.evolution.simulation.experiment.PatchOutcome
- Record Components:
dataset
- The considered subjectrunID
- The id of this runcommitV0
- The id of the parent commitcommitV1
- The id of the child commitsourceVariant
- The name of the source varianttargetVariant
- The name of the target variantnormalActualVsExpected
- Number of differences between the patched target variant and the expected result (without filtering)filteredActualVsExpected
- Number of differences between the patched target variant and the expected result (with filtering)fileNormal
- Number of unfiltered file-level patcheslineNormal
- Number of unfiltered line-level patchesfileSuccessNormal
- Number of successful file-level patcheslineSuccessNormal
- Number of successful line-level patchesfileFiltered
- Number of filtered file-level patcheslineFiltered
- Number of filtered line-level patchesfileSuccessFiltered
- Number of successful file-level patcheslineSuccessFiltered
- Number of successful line-level patchesnormalTP
- Number of true positives without filteringnormalFP
- Number of false positives without filteringnormalTN
- Number of true negatives without filteringnormalFN
- Number of false negatives without filteringnormalWrongLocation
- Number of patches without filtering applied to the wrong locationfilteredTP
- Number of true positives with filteringfilteredFP
- Number of false positives with filteringfilteredTN
- Number of true negatives with filteringfilteredFN
- Number of false negatives with filteringfilteredWrongLocation
- Number of patches with filtering applied to the wrong location
public record PatchOutcome(String dataset, long runID, String commitV0, String commitV1, String sourceVariant, String targetVariant, long normalActualVsExpected, long filteredActualVsExpected, long fileNormal, long lineNormal, long fileSuccessNormal, long lineSuccessNormal, long fileFiltered, long lineFiltered, long fileSuccessFiltered, long lineSuccessFiltered, long normalTP, long normalFP, long normalTN, long normalFN, long normalWrongLocation, long filteredTP, long filteredFP, long filteredTN, long filteredFN, long filteredWrongLocation)
extends Record
Represents the outcome of a single experimental run in the study.
-
Constructor Summary
ConstructorsConstructorDescriptionPatchOutcome
(String dataset, long runID, String commitV0, String commitV1, String sourceVariant, String targetVariant, long normalActualVsExpected, long filteredActualVsExpected, long fileNormal, long lineNormal, long fileSuccessNormal, long lineSuccessNormal, long fileFiltered, long lineFiltered, long fileSuccessFiltered, long lineSuccessFiltered, long normalTP, long normalFP, long normalTN, long normalFN, long normalWrongLocation, long filteredTP, long filteredFP, long filteredTN, long filteredFN, long filteredWrongLocation) Creates an instance of aPatchOutcome
record class. -
Method Summary
Modifier and TypeMethodDescriptioncommitV0()
Returns the value of thecommitV0
record component.commitV1()
Returns the value of thecommitV1
record component.dataset()
Returns the value of thedataset
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of thefileFiltered
record component.long
Returns the value of thefileNormal
record component.long
Returns the value of thefileSuccessFiltered
record component.long
Returns the value of thefileSuccessNormal
record component.long
Returns the value of thefilteredActualVsExpected
record component.long
Returns the value of thefilteredFN
record component.long
Returns the value of thefilteredFP
record component.long
Returns the value of thefilteredTN
record component.long
Returns the value of thefilteredTP
record component.long
Returns the value of thefilteredWrongLocation
record component.static PatchOutcome
FromJSON
(com.google.gson.JsonObject object) final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thelineFiltered
record component.long
Returns the value of thelineNormal
record component.long
Returns the value of thelineSuccessFiltered
record component.long
Returns the value of thelineSuccessNormal
record component.long
Returns the value of thenormalActualVsExpected
record component.long
normalFN()
Returns the value of thenormalFN
record component.long
normalFP()
Returns the value of thenormalFP
record component.long
normalTN()
Returns the value of thenormalTN
record component.long
normalTP()
Returns the value of thenormalTP
record component.long
Returns the value of thenormalWrongLocation
record component.long
runID()
Returns the value of therunID
record component.Returns the value of thesourceVariant
record component.Returns the value of thetargetVariant
record component.static String
static String
final String
toString()
Returns a string representation of this record class.void
writeAsJSON
(Path pathToFile, boolean append)
-
Constructor Details
-
PatchOutcome
public PatchOutcome(String dataset, long runID, String commitV0, String commitV1, String sourceVariant, String targetVariant, long normalActualVsExpected, long filteredActualVsExpected, long fileNormal, long lineNormal, long fileSuccessNormal, long lineSuccessNormal, long fileFiltered, long lineFiltered, long fileSuccessFiltered, long lineSuccessFiltered, long normalTP, long normalFP, long normalTN, long normalFN, long normalWrongLocation, long filteredTP, long filteredFP, long filteredTN, long filteredFN, long filteredWrongLocation) Creates an instance of aPatchOutcome
record class.- Parameters:
dataset
- the value for thedataset
record componentrunID
- the value for therunID
record componentcommitV0
- the value for thecommitV0
record componentcommitV1
- the value for thecommitV1
record componentsourceVariant
- the value for thesourceVariant
record componenttargetVariant
- the value for thetargetVariant
record componentnormalActualVsExpected
- the value for thenormalActualVsExpected
record componentfilteredActualVsExpected
- the value for thefilteredActualVsExpected
record componentfileNormal
- the value for thefileNormal
record componentlineNormal
- the value for thelineNormal
record componentfileSuccessNormal
- the value for thefileSuccessNormal
record componentlineSuccessNormal
- the value for thelineSuccessNormal
record componentfileFiltered
- the value for thefileFiltered
record componentlineFiltered
- the value for thelineFiltered
record componentfileSuccessFiltered
- the value for thefileSuccessFiltered
record componentlineSuccessFiltered
- the value for thelineSuccessFiltered
record componentnormalTP
- the value for thenormalTP
record componentnormalFP
- the value for thenormalFP
record componentnormalTN
- the value for thenormalTN
record componentnormalFN
- the value for thenormalFN
record componentnormalWrongLocation
- the value for thenormalWrongLocation
record componentfilteredTP
- the value for thefilteredTP
record componentfilteredFP
- the value for thefilteredFP
record componentfilteredTN
- the value for thefilteredTN
record componentfilteredFN
- the value for thefilteredFN
record componentfilteredWrongLocation
- the value for thefilteredWrongLocation
record component
-
-
Method Details
-
toJSON
-
toJSON
-
FromJSON
-
writeAsJSON
- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dataset
Returns the value of thedataset
record component.- Returns:
- the value of the
dataset
record component
-
runID
public long runID()Returns the value of therunID
record component.- Returns:
- the value of the
runID
record component
-
commitV0
Returns the value of thecommitV0
record component.- Returns:
- the value of the
commitV0
record component
-
commitV1
Returns the value of thecommitV1
record component.- Returns:
- the value of the
commitV1
record component
-
sourceVariant
Returns the value of thesourceVariant
record component.- Returns:
- the value of the
sourceVariant
record component
-
targetVariant
Returns the value of thetargetVariant
record component.- Returns:
- the value of the
targetVariant
record component
-
normalActualVsExpected
public long normalActualVsExpected()Returns the value of thenormalActualVsExpected
record component.- Returns:
- the value of the
normalActualVsExpected
record component
-
filteredActualVsExpected
public long filteredActualVsExpected()Returns the value of thefilteredActualVsExpected
record component.- Returns:
- the value of the
filteredActualVsExpected
record component
-
fileNormal
public long fileNormal()Returns the value of thefileNormal
record component.- Returns:
- the value of the
fileNormal
record component
-
lineNormal
public long lineNormal()Returns the value of thelineNormal
record component.- Returns:
- the value of the
lineNormal
record component
-
fileSuccessNormal
public long fileSuccessNormal()Returns the value of thefileSuccessNormal
record component.- Returns:
- the value of the
fileSuccessNormal
record component
-
lineSuccessNormal
public long lineSuccessNormal()Returns the value of thelineSuccessNormal
record component.- Returns:
- the value of the
lineSuccessNormal
record component
-
fileFiltered
public long fileFiltered()Returns the value of thefileFiltered
record component.- Returns:
- the value of the
fileFiltered
record component
-
lineFiltered
public long lineFiltered()Returns the value of thelineFiltered
record component.- Returns:
- the value of the
lineFiltered
record component
-
fileSuccessFiltered
public long fileSuccessFiltered()Returns the value of thefileSuccessFiltered
record component.- Returns:
- the value of the
fileSuccessFiltered
record component
-
lineSuccessFiltered
public long lineSuccessFiltered()Returns the value of thelineSuccessFiltered
record component.- Returns:
- the value of the
lineSuccessFiltered
record component
-
normalTP
public long normalTP()Returns the value of thenormalTP
record component.- Returns:
- the value of the
normalTP
record component
-
normalFP
public long normalFP()Returns the value of thenormalFP
record component.- Returns:
- the value of the
normalFP
record component
-
normalTN
public long normalTN()Returns the value of thenormalTN
record component.- Returns:
- the value of the
normalTN
record component
-
normalFN
public long normalFN()Returns the value of thenormalFN
record component.- Returns:
- the value of the
normalFN
record component
-
normalWrongLocation
public long normalWrongLocation()Returns the value of thenormalWrongLocation
record component.- Returns:
- the value of the
normalWrongLocation
record component
-
filteredTP
public long filteredTP()Returns the value of thefilteredTP
record component.- Returns:
- the value of the
filteredTP
record component
-
filteredFP
public long filteredFP()Returns the value of thefilteredFP
record component.- Returns:
- the value of the
filteredFP
record component
-
filteredTN
public long filteredTN()Returns the value of thefilteredTN
record component.- Returns:
- the value of the
filteredTN
record component
-
filteredFN
public long filteredFN()Returns the value of thefilteredFN
record component.- Returns:
- the value of the
filteredFN
record component
-
filteredWrongLocation
public long filteredWrongLocation()Returns the value of thefilteredWrongLocation
record component.- Returns:
- the value of the
filteredWrongLocation
record component
-