Search results

  1. fukurou

    port overlort python ->Swift assed edition!

    class AXSkillBundle { private var skills: [Skill] = [] private var tempN = Neuron() private var kokoro = Kokoro(AbsDictionaryDB()) init(_ skillsParams: Skill...) { for skill in skillsParams { skill.setKokoro(kokoro) skills.append(skill) }...
  2. fukurou

    port overlort python ->Swift assed edition!

    class UniqueResponder { private var responses: [String] = [] private var urg: UniqueRandomGenerator init(_ replies: String...) { self.responses = replies self.urg = UniqueRandomGenerator(replies.count) } func getAResponse() -> String { guard...
  3. fukurou

    port overlort python ->Swift assed edition!

    class UniqueRandomGenerator { private var n1: Int private var numbers: [Int] = [] private var remainingNumbers: [Int] = [] init(_ n1: Int) { self.n1 = n1 self.numbers = Array(0..<n1) self.reset() } func reset() { remainingNumbers =...
  4. fukurou

    port overlort python ->Swift assed edition!

    class SkillHubAlgDispenser { private var _skills: [Skill] = [] private var _activeSkill: Int = 0 private var _tempN: Neuron = Neuron() private var _kokoro: Kokoro = Kokoro(AbsDictionaryDB()) init(_ skillsParams: Skill...) { for skill in skillsParams {...
  5. fukurou

    port overlort python ->Swift assed edition!

    class AlgorithmV2 { private var priority: Int private var alg: Any init(priority: Int, alg: Any) { self.priority = priority self.alg = alg } func getPriority() -> Int { return priority } func setPriority(_ priority: Int) {...
  6. fukurou

    port overlort python ->Swift assed edition!

    class AXLearnability { private var algSent: Bool = false var defcons: Set<String> = [] var defcon5: Set<String> = [] var goals: Set<String> = [] private var trgTolerance: TrgTolerance init(_ tolerance: Int) { self.trgTolerance = TrgTolerance(tolerance)...
  7. fukurou

    port overlort python ->Swift assed edition!

    class TimedMessages { private var messages: [String: String] = [:] private var lastMSG: String = "nothing" private var msg: Bool = false func addMSG(_ ear: String) { let tempMSG = RegexUtil.extractRegex("(?<=remind me to).*?(?=at)", ear) if !tempMSG.isEmpty {...
  8. fukurou

    port overlort python ->Swift assed edition!

    // ╔════════════════════════════════════════════════════════════════════════╗ // ║ SPECIAL SKILLS DEPENDENCIES ║ // ╚════════════════════════════════════════════════════════════════════════╝
  9. fukurou

    port overlort python ->Swift assed edition!

    class TrgEveryNMinutes { private var _minutes: Int private var _timeStamp: String private var _trgTime = TrgTime() init(_ startTime: String, _ minutes: Int) { self._minutes = minutes self._timeStamp = startTime self._trgTime.setTime(startTime) }...
  10. fukurou

    port overlort python ->Swift assed edition!

    class TrgMinute { private var _hour1: Int = -1 private var _minute: Int init() { _minute = Int.random(in: 0...60) } func setMinute(_ minute: Int) { if (0..<61).contains(minute) { _minute = minute } } func trigger() -> Bool {...
  11. fukurou

    port overlort python ->Swift assed edition!

    class QuestionChecker { static let questionWords: Set<String> = [ "what", "who", "where", "when", "why", "how", "is", "are", "was", "were", "do", "does", "did", "can", "could", "would", "will", "shall", "should", "have", "has", "am", "may", "might" ]...
  12. fukurou

    port overlort python ->Swift assed edition!

    class KeyWords { private var hashSet: Set<String> = [] init(_ keywords: String...) { hashSet.formUnion(keywords) } func addKeyword(_ keyword: String) { hashSet.insert(keyword) } func extractor(_ str1: String) -> String { for keyword in hashSet {...
  13. fukurou

    port overlort python ->Swift assed edition!

    class TimeAccumulator { private var _timeGate: TimeGate private var _accumulator: Int = 0 init(_ tick: Int) { self._timeGate = TimeGate(tick) self._timeGate.openForPauseMinutes() } func setTick(_ tick: Int) { _timeGate.setPause(tick) } func...
  14. fukurou

    port overlort python ->Swift assed edition!

    class OnOffSwitch { private var _mode: Bool = false private var _timeGate = TimeGate(5) private var _on = Responder("on", "talk to me") private var _off = Responder("off", "stop", "shut up", "shut it", "whatever", "whateva") func setPause(_ minutes: Int) {...
  15. fukurou

    port overlort python ->Swift assed edition!

    class Cycler { private var limit: Int private var _cycler: Int init(_ limit: Int) { self.limit = limit self._cycler = limit } func cycleCount() -> Int { _cycler -= 1 if _cycler < 0 { _cycler = limit } return...
  16. fukurou

    port overlort python ->Swift assed edition!

    class AXStandBy { private var _tg: TimeGate init(_ pause: Int) { self._tg = TimeGate(pause) self._tg.openForPauseMinutes() } func standBy(_ ear: String) -> Bool { if !ear.isEmpty { _tg.openForPauseMinutes() return false }...
  17. fukurou

    port overlort python ->Swift assed edition!

    class Cron { private var _minutes: Int private var _timeStamp: String private var _initialTimeStamp: String private var _trgTime = TrgTime() private var _counter: Int = 0 private var _limit: Int init(_ startTime: String, _ minutes: Int, _ limit: Int) {...
  18. fukurou

    port overlort python ->Swift assed edition!

    class TrgTime { private var _t: String = "null" private var _alarm: Bool = true init() { // No super.init() needed unless subclassing } func setTime(_ v1: String) { var timeStr = v1 if timeStr.hasPrefix("0") { timeStr.removeFirst()...
  19. fukurou

    port overlort python ->Swift assed edition!

    class AXPassword { private var _isOpen: Bool = false private var _maxAttempts: Int = 3 private var _loginAttempts: Int = 3 private var _code: Int = 0 func codeUpdate(_ ear: String) -> Bool { guard _isOpen else { return false } if ear.contains("code") {...
  20. fukurou

    port overlort python ->Swift assed edition!

    class DrawRnd { private var strings = LGFIFO() private var _stringsSource: [String] = [] init(_ values: String...) { for value in values { strings.insert(value) _stringsSource.append(value) } } func addElement(_ element: String) {...
Top