當前位置: 首頁>>代碼示例>>Python>>正文


Python Detector.Detector類代碼示例

本文整理匯總了Python中Detector.Detector的典型用法代碼示例。如果您正苦於以下問題:Python Detector類的具體用法?Python Detector怎麽用?Python Detector使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Detector類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self):
     Detector.__init__(self)
     self.STATE_COMPONENT_TRAIN = "COMPONENT_TRAIN"
     self.tag = "keras-"
     self.exampleBuilder = KerasExampleBuilder
     self.matrices = None
     self.arrays = None
開發者ID:jbjorne,項目名稱:TEES,代碼行數:7,代碼來源:KerasDetector.py

示例2: __init__

 def __init__(self, conf, plugin, conn):
     self._conf = conf
     self._plugin = plugin
     self.rules = []
     self.conn = conn
     self.sIdFile = '/etc/ossim/agent/sdee_sid.data'
     Detector.__init__(self, conf, plugin, conn)
開發者ID:cterron,項目名稱:OSSIM,代碼行數:7,代碼來源:ParserSDEE.py

示例3: __init__

 def __init__(self, conf, plugin, conn,idm=False):
     self._conf = conf
     self._plugin = plugin
     self.rules = []      # list of RuleMatch objects
     self.conn = conn
     Detector.__init__(self, conf, plugin, conn)
     self.__myDataBaseCursor = None
     self.__objDBConn = None        
     self.__tries = 0
     self.stop_processing = False
     self._databasetype = self._plugin.get("config", "source_type")
     self._canrun = True
     self.__idm = idm
     if self._databasetype == "db2" and db2notloaded:
         logger.info("You need python ibm_db module installed. This is not an error if you aren't using an IBM plugin")
         self._canrun = False
     elif self._databasetype == "mysql" and mysqlnotloaded:
         logger.info("You need python mysqldb module installed")
         self._canrun = False
         self.stop()
     elif self._databasetype == "oracle" and oraclenotloaded:
         logger.info("You need python cx_Oracle module installed. This is not an error if you aren't using an Oracle plugin")
         self._canrun = False
     elif self._databasetype == "mssql" and mssqlnotloaded:
         logger.info("You need python pymssql module installed")
         self._canrun = False
開發者ID:DuVale,項目名稱:phpzdl,代碼行數:26,代碼來源:ParserDatabase.py

示例4: __init__

    def __init__(self, conf, plugin, conn,idm=False):
        Detector.__init__(self, conf, plugin, conn)
        self._conf = conf
        self._plugin = plugin
        self.rules = [] # list of RuleMatch objects
        self.conn = conn
        self.__myDataBaseCursor = None
        self.__objDBConn = None        
        self.__tries = 0
        self.stop_processing = False
        self._databasetype = self._plugin.get("config", "source_type")
        self._canrun = True
        self.__idm = True if self._plugin.get("config", "idm") == "true" else False
        self.loginfo(Lazyformat("IDM is {}", "enabled" if self.__idm else "disabled"))

        if self._databasetype == "db2" and db2notloaded:
            self.loginfo("You need python ibm_db module installed")
            self._canrun = False
        elif self._databasetype == "mysql" and mysqlnotloaded:
            self.loginfo("You need python mysqldb module installed")
            self._canrun = False
            self.stop()
        elif self._databasetype == "oracle" and oraclenotloaded:
            self.loginfo("You need python cx_Oracle module installed")
            self._canrun = False
        elif self._databasetype == "mssql" and mssqlnotloaded:
            self.loginfo("You need python pymssql module installed")
            self._canrun = False
開發者ID:jpalanco,項目名稱:alienvault-ossim,代碼行數:28,代碼來源:ParserDatabase.py

示例5: __init__

 def __init__(self, conf, plugin, conn, hostname, username, password):
     self.__conf = conf
     self.__plugin = plugin
     self.__rules = []          # list of RuleMatch objects
     self.__conn = conn
     self.__hostname = hostname
     self.__username = username
     self.__password = password.strip()
     self.__section = self.__plugin.get("config", "section")
     self.__last_record_time = ""
     if self.__section == "":
         #search into the command to find the section
         rules = self.__plugin.rules()
         cmd_str = rules['cmd']['cmd']
         for sec in ParserWMI.VALID_SECTIONS:
             if cmd_str.find(sec)>=0:
                 self.__section = sec
                 logger.warning("section doesn't found in [config].Section deduced: %s " % self.__section)
                 break
         if self.__section == "":
             self.__section = "Security"
             logger.warning("section doesn't found in [config].It can't be deduced: Setting it to default value: %s" % self.__section)
         
     self.__pluginID = self.__plugin.get("DEFAULT", "plugin_id")
     self.__stop_processing = False
     self.__sectionExists = False
     Detector.__init__(self, conf, plugin, conn)
開發者ID:DuVale,項目名稱:phpzdl,代碼行數:27,代碼來源:ParserWMI.py

示例6: __init__

 def __init__(self, conf, plugin, conn):
     Detector.__init__(self, conf, plugin, conn)
     self.__conf = conf
     self.__plugin_id = plugin.get("DEFAULT", "plugin_id")
     self.__shutdown_event = threading.Event()
     self.__location = self._plugin.get("config", "location")
     self.__plugin_configuration = plugin
開發者ID:jackpf,項目名稱:ossim-arc,代碼行數:7,代碼來源:ParserJson.py

示例7: __init__

 def __init__(self, conf, plugin, conn):
     self._conf = conf        # config.cfg info
     self._plugin = plugin    # plugins/X.cfg info
     self.rules = []          # list of RuleMatch objects
     self.conn = conn
     self.stop_processing = False
     Detector.__init__(self, conf, plugin, conn)
開發者ID:jpalanco,項目名稱:alienvault-ossim,代碼行數:7,代碼來源:ParserFtp.py

示例8: __init__

    def __init__(self, conf, plugin, conn):

        self._conf = conf       # main agent config file
        self._plugin = plugin   # plugin config file
        self.conn = conn
        self._prefix = ""

        Detector.__init__(self, conf, plugin, self.conn)
開發者ID:CyberTaoFlow,項目名稱:alienvault-ossim,代碼行數:8,代碼來源:ParserUnifiedSnort.py

示例9: __init__

 def __init__(self, conf, plugin,queue = None):
     self._conf = conf        # config.cfg info
     self._plugin = plugin    # plugins/X.cfg info
     self.rules = []          # list of RuleMatch objects
     self.stop_processing = False
     self.queue = queue
     self.idmConnected = False
     Detector.__init__(self, conf, plugin)
開發者ID:alisle,項目名稱:AV-Misc,代碼行數:8,代碼來源:ParserFtp.py

示例10: __init__

 def __init__(self):
     Detector.__init__(self)
     # Settings
     self.STATE_TOOLCHAIN = "PROCESS"
     self.steps = []
     self.intermediateFilesAtSource = False
     self.compressIntermediateFiles = False
     self.intermediateFileTag = "temp"
開發者ID:jbjorne,項目名稱:Tdevel,代碼行數:8,代碼來源:ToolChain.py

示例11: process

 def process(self,root):
     se = StructureExtractor()
     se.drawFeature(root)
     self.extractor = Extractor(root)
     self.extractor.process()
     #self.crossP = self.extractor.string2sparse(self.htmlnode.attrib['crossP'],self.extractor.totalheight+1)
     Config.init()
     detector = Detector()#Config.nbTLstr)
     detector.detect(root)
     self.toolbox.setDetector(detector)
開發者ID:cheungzq,項目名稱:WebParser,代碼行數:10,代碼來源:visualizer.py

示例12: performAnalyse

 def performAnalyse(self, htmlnode):
     se = StructureExtractor()
     se.drawFeature(htmlnode)
     extractor = Extractor(htmlnode)
     extractor.process()
     detector = Detector()
     detector.detect(htmlnode)
     (tp, fp, fn) = self.calcAccTitleLine(htmlnode)
     cerr = self.calcAccColumn(htmlnode)
     return (tp, fp, fn, cerr)
開發者ID:cheungzq,項目名稱:WebParser,代碼行數:10,代碼來源:Analyser.py

示例13: __init__

 def __init__(self):
     Detector.__init__(self)
     # Settings
     self.STATE_TOOLCHAIN = "PROCESS"
     self.steps = []
     for step in self.getDefaultSteps():
         self.addStep(*step)
     self.intermediateFilesAtSource = False
     self.compressIntermediateFiles = True
     self.intermediateFileTag = "temp"
     self.modelParameterStringName = None
開發者ID:DUT-LiuYang,項目名稱:TEES,代碼行數:11,代碼來源:ToolChain.py

示例14: __init__

 def __init__(self):
     Detector.__init__(self)
     self.triggerDetector = EntityDetector()
     self.edgeDetector = EdgeDetector()
     self.unmergingDetector = UnmergingDetector()
     self.doUnmergingSelfTraining = True #False
     self.modifierDetector = ModifierDetector()
     #self.stEvaluator = Evaluators.BioNLP11GeniaTools
     #self.stWriteScores = False
     self.STATE_COMPONENT_TRAIN = "COMPONENT_TRAIN"
     self.tag = "event-"
開發者ID:ayoshiaki,項目名稱:TEES,代碼行數:11,代碼來源:EventDetector.py

示例15: __init__

 def __init__(self, conf, plugin, conn, hostname=None, username=None, password=None):
     self._conf = conf
     self._plugin = plugin
     self.rules = []
     self.conn = conn
     self.__hostname = hostname
     self.__username = username
     self.__password = password
     if hostname:
         self.sIdFile = '/etc/ossim/agent/sdee_sid_%s.data' % hostname
     else:
         self.sIdFile = '/etc/ossim/agent/sdee_sid.data'
     Detector.__init__(self, conf, plugin, conn)
開發者ID:DuVale,項目名稱:phpzdl,代碼行數:13,代碼來源:ParserSDEE.py


注:本文中的Detector.Detector類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。