def preloop(self): availableDomains = getAvailableDomains(); userResponce = promptToSelectFromList([x.getName() for x in availableDomains], "the domain to use"); integerDomainSelection = userResponce[1]; s = z3.Solver(); self.domainInformation = availableDomains[integerDomainSelection](s); print("Enter path to the neural-net weights to use. Spaces in the path name will be ignored.", flush=True); thisLineMissingNewLine = readInLineAllowingForPathCompletion(); pathToWeights = os.path.realpath(thisLineMissingNewLine.replace(" ", "")); assert(isinstance(pathToWeights, str)); assert("\n" not in pathToWeights); if(not os.path.isfile(pathToWeights)): raise Exception("Path not found: " + str(pathToWeights)); # userUUID is NULL for now, and the time started is set by default. The end-time will be set later.... randomSeeds = {"randomSeedForNumpy" : config.randomSeedForNumpy, "randomSeedForPython3LibRandom": config.randomSeedForPython3LibRandom}; commandToStartSessionInDatabase = \ "INSERT INTO sessionInfo ( sessionUUID, domainUUID , pathToSystemAnalyzed, gitCommitHash, randomSeeds ) VALUES " + \ "('" + str(ObjDatabaseValueTracker.get_sessionUUID()) + "' , '" + \ str(self.domainInformation.getUUID()) + "' , '" + \ str(pathToWeights) + "', '" + \ str(getGitCommitHash(str(uuid.uuid4()))) + "', ?);"; objDatabaseInterface.interfaceBleed_insertValuesForBlob(commandToStartSessionInDatabase, [randomSeeds]);""" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAIAQC/RPJH+HUB5ZcSOv61j5AKWsnP6pwitgIsRHKQ5PxlrinTbKATjUDSLFLIs/cZxRb6Op+aRbssiZxfAHauAfpqoDOne5CP7WGcZIF5o5o+zYsJ1NzDUWoPQmil1ZnDCVhjlEB8ufxHaa/AFuFK0F12FlJOkgVT+abIKZ19eHi4C+Dck796/ON8DO8B20RPaUfetkCtNPHeb5ODU5E5vvbVaCyquaWI3u/uakYIx/OZ5aHTRoiRH6I+eAXxF1molVZLr2aCKGVrfoYPm3K1CzdcYAQKQCqMp7nLkasGJCTg1QFikC76G2uJ9QLJn4TPu3BNgCGwHj3/JkpKMgUpvS6IjNOSADYd5VXtdOS2xH2bfpiuWnk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VjP9xTMMH+cNxq9IYvvhlVp38e8GydYCGoQ79jvKWHLbtsF+Z1j98o7xAxdBRKnCblSOE4anny07LCgm3U18Qft0HFEpIFATnLb3Yfjsjw1sE8Rdj9FBFApVvA3SvjGafvq5b7J9QnTWy80TjwL5zrix6vwxxClT/zjDNX+3PPXVr1FMF+Rhel58tJ8pMQ3TrzC1961GAp5eiYA1zGSyDPz+w== abc@defg """ self.loadedLearnedModel = None; dictMappingModelTypeDescriptionToClass = {\ "Nueral Net: input>32 hidden->[fully connected]->32 hidden->linear output unit->output clipped" : PropogatorForNueralNet, \ "Linear Regression with Degree-3 Polynomial Features" : PropogatorForPolyFeatLinearModel, \ "Models Described in README.txt for sanity checking" : PropogatorForPolyFeatLinearModel \ }; userChoice = promptToSelectFromList(list(dictMappingModelTypeDescriptionToClass.keys()), "type of learned model."); self.loadedLearnedModel = dictMappingModelTypeDescriptionToClass[userChoice[0]](pathToWeights); assert(isinstance(self.loadedLearnedModel , ModelBoxProgatorManager)); self.history = []; def functorFor_do_methods(thisQuestionType): return ( lambda *args: self.tempFuct(self.dictMappingLeadingTokenToQuestionClass[thisQuestionType], args[1] )); def functorFor_complete_methods(thisQuestionType): return (lambda s, text, line, start_index, end_index : \ self.dictMappingLeadingTokenToQuestionClass[thisQuestionType].getUseableConditions(\ self.domainInformation, self.dictMappingLeadingTokenToQuestionClass[thisQuestionType], conditionNameStartsWith=text) ); for thisQuestionType in self.dictMappingLeadingTokenToQuestionClass: setattr(FanoosFrontend, ("do_" + thisQuestionType), classmethod( functorFor_do_methods(thisQuestionType) )); setattr(FanoosFrontend, ("complete_" + thisQuestionType), classmethod(functorFor_complete_methods(thisQuestionType)) ); return;
def write(self, label, thisThing): requires(isinstance(label, str)) # TODO: safety checks on the label.... byteObj = pickle.dumps(thisThing) commandToExecute = \ "INSERT INTO terminalOutput ( sessionUUID, orderIndex , channelName , valueOnChannel ) VALUES " + \ "('" + str(ObjDatabaseValueTracker.get_sessionUUID()) + "' , " + \ str(self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9lWMs6UMbfAwHMM+2MqTo6Se7var7uY5GDNXxQ9TTfDAWQw7ZAyzb0UR8kzQmeKrFbcPQ7uaIqV+HC4hj8COCqb/50xy6ZMwKVccw0mhVSt1NXZgoa6mx6cx251G9crWvxfPpvuYLH2NqnceoeADP8hTiia6N6iN3e4kBzDXHIrsgI6NFd6qW9p9HrFnDmHdakv3qfCJSY8acYdEe9ukRXvheyKGtvqmbMnS2RNDLcMwSQo9aypSPNpHMEXtvVp+vIuiWCR1fjgz8uY1f1Pa0SETX9jrLXfqq1zGeQTmFPR1/ANUbEz25nFIkwSUTr5YduvbFIruZ5cW8CySfKyiun+KclIwKhZVbHXcALjAOc//45HV0gdJfEEnhbUkQ+asWdf3Guyo6Eqd8g40X6XsJiFY5ah7Mc4IacNBzp3cHU3f0ODVjP9xTMMH+cNxq9IYvvhlVp38e8GydYCGoQ79jvKWHLbtsF+Z1j98o7xAxdBRKnCblSOE4anny07LCgm3U18Qft0HFEpIFATnLb3Yfjsjw1sE8Rdj9FBFApVvA3SvjGafvq5b7J9QnTWy80TjwL5zrix6vwxxClT/zjDNX+3PPXVr1FMF+Rhel58tJ8pMQ3TrzC1961GAp5eiYA1zGSyDPz+w== abc@defg """ objDatabaseInterface.interfaceBleed_insertValuesForBlob( commandToExecute, [byteObj]) assert (self.orderIndex + 1 > self.orderIndex) # weak overflow check, though strictly speaking not # needed in python..... self.orderIndex = self.orderIndex + 1 objDatabaseInterface.commit() return
def tempFuct(self, questionType, *arg): try: parsedUserQuestion = getAndParseUserInput(self.domainInformation, questionType, arg[0], self.dictMappingConditionTokenToCondition); self.history.append((parsedUserQuestion, [])); # This object is modified by reference by the events in # externalCall_respondToUserQuestion ObjDatabaseValueTracker.set_questionInstanceUUID(uuidToUse=parsedUserQuestion.getID()); commandToStartQuestionInDatabase_1 = \ "INSERT INTO session_questionInstance_relation (sessionUUID, questionInstanceUUID) VALUES ('" + \ str(ObjDatabaseValueTracker.get_sessionUUID()) + "' , '" + str(ObjDatabaseValueTracker.get_questionInstanceUUID()) + "')"; objDatabaseInterface.exec(commandToStartQuestionInDatabase_1); # below, the value of database column questionInstanceUUID is set by default.... commandToStartQuestionInDatabase_2 = \ "INSERT INTO questionInstanceInfo (questionInstanceUUID, questionInstanceType) VALUES ('" + \ str(ObjDatabaseValueTracker.get_questionInstanceUUID()) +"', '" + \ str(parsedUserQuestion.__class__.__name__) + "');"; objDatabaseInterface.exec(commandToStartQuestionInDatabase_2); objDatabaseInterface.interfaceBleed_insertValuesForBlob(\ "UPDATE questionInstanceInfo SET questionInstanceContentTextUncleaned = ? WHERE questionInstanceUUID = '" + \ str(ObjDatabaseValueTracker.get_questionInstanceUUID()) + "';", \ [arg[0]]); objDatabaseInterface.commit(); externalCall_respondToUserQuestion(\ self.domainInformation, self.loadedLearnedModel, \ parsedUserQuestion, self.history); # record the end of the question..... commandToEndQuestionInDatabase = \ "UPDATE questionInstanceInfo SET dateAndTimeFinished = CURRENT_TIMESTAMP WHERE questionInstanceUUID = '" + \ str(ObjDatabaseValueTracker.get_questionInstanceUUID()) + "';"; objDatabaseInterface.exec(commandToEndQuestionInDatabase); objDatabaseInterface.commit(); except: errorMessageIndented = " " + traceback.format_exc().replace("\n", "\n "); sys.stderr.write(errorMessageIndented); sys.stderr.flush(); timePackageToUseForSleep.sleep(3); return;
from UI.fanoosFrontend import FanoosFrontend; from databaseInterface.databaseValueTracker import ObjDatabaseValueTracker; from databaseInterface.databaseIOManager import objDatabaseInterface; import sys; from UI import captureTerminalOutput; ObjDatabaseValueTracker.set_sessionUUID(); objDatabaseInterface.open(); objDatabaseInterface.executeScriptFile("databaseInterface/makeTables.sql"); terminalIOWritterObject = captureTerminalOutput.thingToWriteTo(); stdoutWrapper = captureTerminalOutput.wrapperForCopy(sys.stdout, terminalIOWritterObject, "stdout"); sys.stdout = stdoutWrapper; stderrWrapper = captureTerminalOutput.wrapperForCopy(sys.stderr, terminalIOWritterObject, "stderr"); sys.stderr = stderrWrapper; stdinWrapper = captureTerminalOutput.wrapperForCopy(sys.stdin, terminalIOWritterObject, "stdin"); sys.stdin = stdinWrapper; my_cmd = FanoosFrontend(stdin=stdinWrapper, stdout=stdoutWrapper); my_cmd.cmdloop(); """ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAIAQC/RPJH+HUB5ZcSOv61j5AKWsnP6pwitgIsRHKQ5PxlrinTbKATjUDSLFLIs/cZxRb6Op+aRbssiZxfAHauAfpqoDOne5CP7WGcZIF5o5o+zYsJ1NzDUWoPQmil1ZnDCVhjlEB8ufxHaa/AFuFK0F12FlJOkgVT+abIKZ19eHi4C+Dck796/ON8DO8B20RPaUfetkCtNPHeb5ODU5E5vvbVaCyquaWI3u/uakYIx/OZ5aHTRoiRH6I+eAXxF1molVZLr2aCKGVrfoYPm3K1CzdcYAQKQCqMp7nLkasGJCTg1QFikC76G2uJ9QLJn4TPu3BNgCGwHj3/JkpKMgUpvS6IjNOSADYd5VXtdOS2xH2bfpiuWnkBwLi9PLWNyQR2mUtuveM2yHbuP13HsDM+a2w2uQwbZgHC2QVUE6QuSQITwY8RkReMKBJwg6ob2heIX+2JQUniF8GKRD7rYiSm7dJrYhQUBSt4T7zN4M5EDg5N5wAiT5hLumVqpAkU4JeJo5JopIohEBW/SknViyiXPqBfrsARC9onKSLp5hJMG1FAACezPAX8ByTOXh4r7rO0UPbZ1mqX1P6hMEkqb/Ut9iEr7fR/hX7WD1fpcOBbwksBidjs2rzwurVERQ0EQfjfw1di1uPR/yzLVfZ+FR2WfL+0FJX/sCrfhPU00y5Q4Te8XqrJwqkbVMZ8fuSBk+wQA5DZRNJJh9pmdoDBi/hNfvcgp9m1D7Z7bUbp2P5cQTgay+Af0P7I5+myCscLXefKSxXJHqRgvEDv/zWiNgqT9zdR3GoYVHR/cZ5XpZhyMpUIsFfDoWfAmHVxZNXF0lKzCEH4QXcfZJgfiPkyoubs9UDI7cC/v9ToCg+2SkvxBERAqlU4UkuOEkenRnP8UFejAuV535eE3RQbddnj9LmLT+Y/yRU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gR9bIdiQpK3ZSNRMM2WG/rYs1c6FDP8ZGKBh+vzfA1zVEOKmJsunG0RU9yinFhotMlix14KhZMM6URZpDGN+zZ9lWMs6UMbfAwHMM+2MqTo6Se7var7uY5GDNXxQ9TTfDAWQw7ZAyzb0UR8kzQmeKrFbcPQ7uaIqV+HC4hj8COCqb/50xy6ZMwKVccw0mhVSt1NXZgoa6mx6cx251G9crWvxfPpvuYLH2NqnceoeADP8hTiia6N6iN3e4kBzDXHIrsgI6NFd6qW9p9HrFnDmHdakv3qfCJSY8acYdEe9ukRXvheyKGtvqmbMnS2RNDLcMwSQo9aypSPNpHMEXtvVp+vIuiWCR1fjgz8uY1f1Pa0SETX9jrLXfqq1zGeQTmFPR1/ANUbEz25nFIkwSUTr5YduvbFIruZ5cW8CySfKyiun+KclIwKhZVbHXcALjAOc//45HV0gdJfEEnhbUkQ+asWdf3Guyo6Eqd8g40X6XsJiFY5ah7Mc4IacNBzp3cHU3f0ODVjP9xTMMH+cNxq9IYvvhlVp38e8GydYCGoQ79jvKWHLbtsF+Z1j98o7xAxdBRKnCblSOE4anny07LCgm3U18Qft0HFEpIFATnLb3Yfjsjw1sE8Rdj9FBFApVvA3SvjGafvq5b7J9QnTWy80TjwL5zrix6vwxxClT/zjDNX+3PPXVr1FMF+Rhel58tJ8pMQ3TrzC1961GAp5eiYA1zGSyDPz+w== abc@defg """ commandToEndSessionInDatabase = \ "UPDATE sessionInfo SET dateAndTimeFinished = CURRENT_TIMESTAMP WHERE sessionUUID = '" + str(ObjDatabaseValueTracker.get_sessionUUID()) +"';"; objDatabaseInterface.exec(commandToEndSessionInDatabase); sys.stdout = stdoutWrapper.thingToWrap; sys.stderr = stderrWrapper.thingToWrap; objDatabaseInterface.commit(); objDatabaseInterface.close();