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 aPatchOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommitV0()Returns the value of thecommitV0record component.commitV1()Returns the value of thecommitV1record component.dataset()Returns the value of thedatasetrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefileFilteredrecord component.longReturns the value of thefileNormalrecord component.longReturns the value of thefileSuccessFilteredrecord component.longReturns the value of thefileSuccessNormalrecord component.longReturns the value of thefilteredActualVsExpectedrecord component.longReturns the value of thefilteredFNrecord component.longReturns the value of thefilteredFPrecord component.longReturns the value of thefilteredTNrecord component.longReturns the value of thefilteredTPrecord component.longReturns the value of thefilteredWrongLocationrecord component.static PatchOutcomeFromJSON(com.google.gson.JsonObject object) final inthashCode()Returns a hash code value for this object.longReturns the value of thelineFilteredrecord component.longReturns the value of thelineNormalrecord component.longReturns the value of thelineSuccessFilteredrecord component.longReturns the value of thelineSuccessNormalrecord component.longReturns the value of thenormalActualVsExpectedrecord component.longnormalFN()Returns the value of thenormalFNrecord component.longnormalFP()Returns the value of thenormalFPrecord component.longnormalTN()Returns the value of thenormalTNrecord component.longnormalTP()Returns the value of thenormalTPrecord component.longReturns the value of thenormalWrongLocationrecord component.longrunID()Returns the value of therunIDrecord component.Returns the value of thesourceVariantrecord component.Returns the value of thetargetVariantrecord component.static Stringstatic Stringfinal StringtoString()Returns a string representation of this record class.voidwriteAsJSON(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 aPatchOutcomerecord class.- Parameters:
dataset- the value for thedatasetrecord componentrunID- the value for therunIDrecord componentcommitV0- the value for thecommitV0record componentcommitV1- the value for thecommitV1record componentsourceVariant- the value for thesourceVariantrecord componenttargetVariant- the value for thetargetVariantrecord componentnormalActualVsExpected- the value for thenormalActualVsExpectedrecord componentfilteredActualVsExpected- the value for thefilteredActualVsExpectedrecord componentfileNormal- the value for thefileNormalrecord componentlineNormal- the value for thelineNormalrecord componentfileSuccessNormal- the value for thefileSuccessNormalrecord componentlineSuccessNormal- the value for thelineSuccessNormalrecord componentfileFiltered- the value for thefileFilteredrecord componentlineFiltered- the value for thelineFilteredrecord componentfileSuccessFiltered- the value for thefileSuccessFilteredrecord componentlineSuccessFiltered- the value for thelineSuccessFilteredrecord componentnormalTP- the value for thenormalTPrecord componentnormalFP- the value for thenormalFPrecord componentnormalTN- the value for thenormalTNrecord componentnormalFN- the value for thenormalFNrecord componentnormalWrongLocation- the value for thenormalWrongLocationrecord componentfilteredTP- the value for thefilteredTPrecord componentfilteredFP- the value for thefilteredFPrecord componentfilteredTN- the value for thefilteredTNrecord componentfilteredFN- the value for thefilteredFNrecord componentfilteredWrongLocation- the value for thefilteredWrongLocationrecord 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 thedatasetrecord component.- Returns:
- the value of the
datasetrecord component
-
runID
public long runID()Returns the value of therunIDrecord component.- Returns:
- the value of the
runIDrecord component
-
commitV0
Returns the value of thecommitV0record component.- Returns:
- the value of the
commitV0record component
-
commitV1
Returns the value of thecommitV1record component.- Returns:
- the value of the
commitV1record component
-
sourceVariant
Returns the value of thesourceVariantrecord component.- Returns:
- the value of the
sourceVariantrecord component
-
targetVariant
Returns the value of thetargetVariantrecord component.- Returns:
- the value of the
targetVariantrecord component
-
normalActualVsExpected
public long normalActualVsExpected()Returns the value of thenormalActualVsExpectedrecord component.- Returns:
- the value of the
normalActualVsExpectedrecord component
-
filteredActualVsExpected
public long filteredActualVsExpected()Returns the value of thefilteredActualVsExpectedrecord component.- Returns:
- the value of the
filteredActualVsExpectedrecord component
-
fileNormal
public long fileNormal()Returns the value of thefileNormalrecord component.- Returns:
- the value of the
fileNormalrecord component
-
lineNormal
public long lineNormal()Returns the value of thelineNormalrecord component.- Returns:
- the value of the
lineNormalrecord component
-
fileSuccessNormal
public long fileSuccessNormal()Returns the value of thefileSuccessNormalrecord component.- Returns:
- the value of the
fileSuccessNormalrecord component
-
lineSuccessNormal
public long lineSuccessNormal()Returns the value of thelineSuccessNormalrecord component.- Returns:
- the value of the
lineSuccessNormalrecord component
-
fileFiltered
public long fileFiltered()Returns the value of thefileFilteredrecord component.- Returns:
- the value of the
fileFilteredrecord component
-
lineFiltered
public long lineFiltered()Returns the value of thelineFilteredrecord component.- Returns:
- the value of the
lineFilteredrecord component
-
fileSuccessFiltered
public long fileSuccessFiltered()Returns the value of thefileSuccessFilteredrecord component.- Returns:
- the value of the
fileSuccessFilteredrecord component
-
lineSuccessFiltered
public long lineSuccessFiltered()Returns the value of thelineSuccessFilteredrecord component.- Returns:
- the value of the
lineSuccessFilteredrecord component
-
normalTP
public long normalTP()Returns the value of thenormalTPrecord component.- Returns:
- the value of the
normalTPrecord component
-
normalFP
public long normalFP()Returns the value of thenormalFPrecord component.- Returns:
- the value of the
normalFPrecord component
-
normalTN
public long normalTN()Returns the value of thenormalTNrecord component.- Returns:
- the value of the
normalTNrecord component
-
normalFN
public long normalFN()Returns the value of thenormalFNrecord component.- Returns:
- the value of the
normalFNrecord component
-
normalWrongLocation
public long normalWrongLocation()Returns the value of thenormalWrongLocationrecord component.- Returns:
- the value of the
normalWrongLocationrecord component
-
filteredTP
public long filteredTP()Returns the value of thefilteredTPrecord component.- Returns:
- the value of the
filteredTPrecord component
-
filteredFP
public long filteredFP()Returns the value of thefilteredFPrecord component.- Returns:
- the value of the
filteredFPrecord component
-
filteredTN
public long filteredTN()Returns the value of thefilteredTNrecord component.- Returns:
- the value of the
filteredTNrecord component
-
filteredFN
public long filteredFN()Returns the value of thefilteredFNrecord component.- Returns:
- the value of the
filteredFNrecord component
-
filteredWrongLocation
public long filteredWrongLocation()Returns the value of thefilteredWrongLocationrecord component.- Returns:
- the value of the
filteredWrongLocationrecord component
-