Skip to content

Commit

Permalink
Limit sensitivity for learning
Browse files Browse the repository at this point in the history
  • Loading branch information
p51lee committed Feb 10, 2025
1 parent 216da25 commit ede0eab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/scala/esmeta/es/util/fuzzer/TargetFeatureSet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ case class TargetFeatureSet(

def touchWithHit(stacks: Iterable[List[String]]): Unit =
stacks.foreach {
_.foreach { feature =>
_.take(
config.maxSensitivity,
).foreach { feature =>
val tmpData = targetFeatureMap.getOrElse(feature, TargetFeatureData())
tmpData.hit(
rootHits,
Expand All @@ -80,7 +82,9 @@ case class TargetFeatureSet(

def touchWithMiss(stacks: Iterable[List[String]]): Unit =
stacks.foreach {
_.foreach { feature =>
_.take(
config.maxSensitivity,
).foreach { feature =>
val tmpData = targetFeatureMap.getOrElse(feature, TargetFeatureData())
tmpData.miss(
rootHits,
Expand Down

0 comments on commit ede0eab

Please sign in to comment.