NLinker icon

mapValues optimized out

NLinker | PRO | 07/01/15 08:22:10 AM UTC | 0 ⭐ | 7004 👁️ | Never ⏰ | []
Scala |

1.09 KB

|

None

|

0 👍

/

0 👎

package com.cassantec.coreengine
 
import scala.collection.{mutable ⇒ mu}
 
/**
 * Created by amozhenin on 30.06.2015.
 */
class SomeTest {
 
  case class T(day: Array[Double])
 
  def processComponent() {
 
    def risks() = {
      val malfunctionRisk = mu.LinkedHashMap[String, T]()
      fillMalfunctionRisk(malfunctionRisk)
      (malfunctionRisk)
    }
 
    val risk = risks()
    enforceMonotonicity(risk)
    val x:T = risk.get("1").get
    for (elem <- x.day) {
      println (elem)
    }
  }
 
 
 
  def fillMalfunctionRisk(malfunctionRisk: mu.Map[String, T]): Unit = {
    //fills risks
    val day:Array[Double] = Array(0.9, 0.8, 0.7, 0.6, 0.5)
    malfunctionRisk.put("1", new T(day))
  }
 
  def enforceMonotonicity(map: mu.LinkedHashMap[String, T]): Unit = {
    val x = map.mapValues { ce: T ⇒
      val day = ce.day
      enforceMonotonicity(day)
    }
    // println(x)
  }
 
  def enforceMonotonicity(row: Array[Double]) = {
    var max = Double.MinValue
    for (j ← row.indices) {
      max = Math.max(row(j), max)
      row(j) = max
    }
 
  }
}

Comments

  • Vartotir icon
    03/30/26 01:57:13 AM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎