def splitFileMessages(self, filePath, messages, maxRange=15): gVeParas = GveConf.geneGveParas() uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') messageSplitSums = self.splitMessages(uConfig, gVeParas, messages, maxRange) return messageSplitSums
def getIcsTree(self): messages = self.dataTuning.readDatasByType('icsPro') uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') gVeParas = GveConf.geneGveParas() formatGene = FormatGeneLogic(messages) return formatGene.GTJsonTree(uConfig, gVeParas)
def testForGVotes(): uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222', 'single') messages = get_puredatas(messages) gVoterLogic = GvoterLogic() print(gVoterLogic.getGVotes(uConfig, messages))
def testForSplitMsgs(): uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222', 'single') messages = get_puredatas(messages) gVeParas = GveConf.geneGveParas() gVoterLogic = GvoterLogic() print(gVoterLogic.splitMessages(uConfig, gVeParas, messages))
def getSplitMsgs(self, msgs, maxRange=15): gVeParas = GveConf.geneGveParas() uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') gVoterLogic = GvoterLogic() return gVoterLogic.splitMessages(uConfig, gVeParas, msgs, maxRange)
def EntryTest(): uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222', 'single') messages = get_puredatas(messages) vSpliter = splitter() print(vSpliter.getEntryVotes(uConfig, messages))
def TestWords(): UserConfig.userId = '15895903730' UserConfig.path = '/home/wxw/data/ToolDatas/15895903730.10.222' Voter = voters() print(Voter.getQueryWords(UserConfig.getUserPath()))
from Config.UserConfig import UserConfig if __name__ == '__main__': UserConfig.path = '/home/1111.pacp' UserConfig.userId = '15895903730' print(UserConfig.getUserPath())
def getGF(self, uId=' '): # future uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') gVeParas = GveConf.geneGveParas() return self.getGJson(uConfig, gVeParas)
def testFormatGene(self, configParas, gVeparas): print(self.formatLogic.getGFormat(configParas, gVeparas)) def testForJson(self, configParas, gVeparas): print(self.formatLogic.getGJson(configParas, gVeparas)) def testForGF(self): print(self.formatLogic.getGF()) def testGtree(self, configParas, gVeparas): print(self.formatLogic.GTreeGenerate(configParas, gVeparas)) def testGJsonTree(self, configParas, gVeparas): print(self.formatLogic.GTJsonTree(configParas, gVeparas)) if __name__ == '__main__': uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730') messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222', 'single') messages = get_puredatas(messages) gVeParas = GveConf.geneGveParas() formatGene = FormatGeneLogicTest(messages) formatGene.testGJsonTree(uConfig, gVeParas) #formatGene.testGtree(uConfig, gVeParas) #formatGene.testForGF() #formatGene.testForJson(uConfig, gVeParas) #formatGene.testFormatGene(uConfig, gVeParas)