Search results

  1. fukurou

    [MEDIA]

  2. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class AXSkillBundle(vararg skillsParams: DiSkillV2) { private val skills: ArrayList<DiSkillV2> = ArrayList<DiSkillV2>() private val tempN: Neuron = Neuron() private var kokoro: Kokoro = Kokoro(AbsDictionaryDB()) fun setKokoro(kokoro: Kokoro) { this.kokoro = kokoro...
  3. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class AXConvince(private val req: AXContextCmd) { private val reset = Responder("reset") private var min = 3 // minimum requests till agreement private val rnd = DrawRnd() private var counter = 0 var isConvinced = false private set private var max_eff_to_convince = 6 fun...
  4. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class AXContextCmd { // engage on commands // when commands are engaged, context commans can also engage var commands = UniqueItemSizeLimitedPriorityQueue() var contextCommands = UniqueItemSizeLimitedPriorityQueue() var trgTolerance = false fun engageCommand(s1: String)...
  5. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgSnooze( //2 recomended private var maxrepeats: Int ) : TrGEV3() { // this boolean gate will return true per minute interval // max repeats times. private var repeats = 0 private var snooze = true private var snoozeInterval = 5 private val playGround =...
  6. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgMinute : TrGEV3 { // trigger true at minute once per hour private var hour1 = -1 var minute: Int private val pl = PlayGround() constructor() { val rand = Random() minute = rand.nextInt(60) } constructor(minute: Int) { this.minute =...
  7. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgEveryNMinutes( startTime: String, // trigger returns true every minutes interval, post start time private var minutes // minute interval between triggerings : Int ) : TrGEV3() { private val pl = PlayGround() private val trgTime: TrgTime private var timeStamp = ""...
  8. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgArgue { var commands = UniqueItemSizeLimitedPriorityQueue() var contextCommands = UniqueItemSizeLimitedPriorityQueue() private var trgTolerance = false // (breaking point of argument can be established (argue till counter == N)) var counter = 0 // count...
  9. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TODOListManager(todoLim: Int) { /* manages to do tasks. q1 tasks are mentioned once, and forgotten backup tasks are the memory of recently mentioned tasks * */ private val q1 = UniqueItemSizeLimitedPriorityQueue() private val backup =...
  10. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TimeAccumulator(tick: Int) { // accumulator ++ each tick minutes interval private var timeGate = TimeGate(5) var accumulator = 0 private set fun setTick(tick: Int) { timeGate.setPause(tick) } init { // accumulation ticker timeGate =...
  11. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class SpiderSense { // enables event prediction private var spiderSense = false private val events = UniqueItemSizeLimitedPriorityQueue() private val alerts = UniqueItemSizeLimitedPriorityQueue() private var prev = "" fun addEvent(event: String): SpiderSense { //...
  12. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class SkillHubAlgDispenser(vararg skillsParams: DiSkillV2) { // super class to output an algorithm out of a selection of skills // engage the hub with dispenseAlg and return the value to outAlg attribute // of the containing skill (which houses the skill hub) //...
  13. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class AlgorithmV2(priority: Int, alg: Algorithm) { private var priority = 4 private var alg: Algorithm? = null init { this.priority = priority this.alg = alg } fun getAlg(): Algorithm? { return alg } fun setAlg(alg: Algorithm?) {...
  14. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    ppl don't think fappin' is a time waste. they are too uncultured to understand how better quality codes are produced on empty balls. I just jizzed and I'm sleepy
  15. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class RailChatBot { private val dic = Hashtable<String, RefreshQ>() private var context = "default" init { dic[context] = RefreshQ() } fun setContext(context: String) { if (context.isEmpty()) { return } this.context = context...
  16. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class ElizaDeducerInitializer : ElizaDeducer() { init { val babbleTmp = ArrayList<PhraseMatcher>() val kvs = ArrayList<AXKeyValuePair>() kvs.add(AXKeyValuePair("what is {0}", "{0} is {1}")) kvs.add(AXKeyValuePair("explain {0}", "{0} is {1}"))...
  17. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    open class ElizaDeducer { lateinit var babble2: List<PhraseMatcher> fun respond(msg: String): ArrayList<AXKeyValuePair> { for (pm in babble2) { if (pm.matches(msg)) { return pm.respond(msg) } } return ArrayList() }...
  18. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class OnOffSwitch { private var mode = false private val timeGate: TimeGate = TimeGate(5) private var on = Responder("on", "talk to me") private var off = Responder("off", "stop", "shut up", "shut it", "whatever", "whateva") fun setPause(minutes: Int) {...
  19. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TimeGate { // a gate that only stays open for x minutes after it has been set open // open gate returns true // closed state gate returns false // the gate starts closed private var pause = 5 //minutes to keep gate closed //private Date openedGate =...
  20. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class Magic8Ball { var questions = Responder() var answers = Responder() init { // answers : // Affirmative Answers answers.addResponse("It is certain") answers.addResponse("It is decidedly so") answers.addResponse("Without a doubt")...
Top