Esempio n. 1
0
File: html.py Progetto: 193s/sqlmap
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = page

        self.dbms = None
    def __init__(self):
        ContentHandler.__init__(self)
        # TAGS.TO.USE=400_a###400_b###400_c###400_d###400_x###410_a###410_b###411_a###411_b###430_a###450_a###450_x###451_a###451_x
        self.searchedTagCodes = {
            "400": ["a", "b", "c", "d", "x"],
            "410": ["a", "b"],
            "411": ["a", "b"],
            "430": ["a"],
            "450": ["a", "x"],
            "451": ["a", "x"],
        }
        # self.searchedTagMacCodes = {'750': ['a','b','v','x','y','z','0','2','5']}
        self.searchedTagMacCodes = {"750": ["a"]}
        self.foundTagCodesValues = {}
        self.foundMACSTagCodesValues = {}
        self.lastValidTag = None
        self.lastValidSubFieldCode = None
        self.tagName = ""

        self.procContentSubfield = {}
        self.relevantGNDIDdatafield = "035"
        self.relevantGNDIDsubfield = "a"
        self.inGNDIDField = False
        self.inGNDIDsubfield = False

        self.pGNDIDPattern = re.compile("\(DE-588\)", re.UNICODE | re.DOTALL | re.IGNORECASE)
Esempio n. 3
0
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self.hid = hid
     self.state = ['Root']
     self.keys = {}
     self.content = None
     self.currentKey = None
Esempio n. 4
0
    def __init__(self, library):
        ContentHandler.__init__(self)

        self._library = library
        self._current = None
        self._tag = None
        self._changed_songs = []
Esempio n. 5
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.rootNode = None
     self.stack = []
     self.locatorStack = []
     self.filePathStack = []
     self.inDTD = False
Esempio n. 6
0
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self._hid = hid
     self._state = ['Root']
     self._currentUsagePage = None
     self._currentUsage = None
     self._content = None
Esempio n. 7
0
		def __init__(self, text):
			ContentHandler.__init__(self)
			self.text = text
			self.data = []
			self.lemma = []
			self.pos = []
			self.word = []
Esempio n. 8
0
 def __init__(self):
     ContentHandler.__init__(self)
     # Simple database to keep track of the different publication types.
     self.db = {'article' : 0,
     'inproceedings' : 0,
     'proceedings' : 0,
     'book' : 0,
     'incollection' : 0,
     'phdthesis' : 0,
     'mastersthesis' : 0,
     }
     # The number of publications per author
     self.authorsPubdb = dict()
     # Type: (name : list coauthors)
     self.coauthorsDB = dict()
     # Flag if we are inside a publication of the wished type (see types above)
     self.parentFlag = False
     # Flag if we are in a author's tag
     self.authorFlag = False
     # Counter at the beginning of a publication tag
     self.counter = 0
     self.counterA = 0
     self.counterB = 0
     # Counter at the end of a publication tag
     self.endCounter = 0
     # The authors of the current publication
     self.tempAuthors = []
     # timing
     self.startTime = 0
Esempio n. 9
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.type = ""
     self.id = ""
     self.tags = {}
     self.fields = ['full_id', 'osm_id', 'osm_type']
     self.elements = []
Esempio n. 10
0
		def __init__(self, hypothesis):
			ContentHandler.__init__(self)
			self.hypothesis = hypothesis
			self.data = []
			self.lemma = []
			self.pos = []
			self.word = []
Esempio n. 11
0
 def __init__(self):
     ContentHandler.__init__(self)
     self._data = ''
     self._in_a = 0
     self._a_title = ''
     self._a_href = ''
     self._dict=self.__class__.__dict__;
    def __init__(self):
        ContentHandler.__init__(self)

        self.path = ""
        self.previousPath = ""
        self.currentAttributes = set()
        self.structure = XMLStructure()
Esempio n. 13
0
 def __init__(self):
     self.tagStack = []
     self.currentData = ''
     self.currentTag = None
     self.pushTag(self)
     ContentHandler.__init__(self)
     Tag.__init__(self, '[document]')
Esempio n. 14
0
 def __init__(self):
     ContentHandler.__init__(self)
     self._content = u''
     self._title = u''
     self._last_change = u''
     self._selector = None
     self._list_level = 0
Esempio n. 15
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.results = []
     self._ParentDoc = None
     self._NodeStack = []
     self._CharCache = ""
     self._Active = False
Esempio n. 16
0
 def __init__(self):
     """XMLReader initializer"""
     ContentHandler.__init__(self)
     self.msg_queue = deque()
     # current packet under construction
     self._draft = None
     self._sections_map = None
Esempio n. 17
0
 def __init__(self,methodname):
     ContentHandler.__init__(self)
     self.methodname = methodname
     self.ip = None  
     self.errorset = False
     self.errorcode = 0
     self.errordesc = 'No error'
     self.content = None
Esempio n. 18
0
    def __init__(self, output):

        ContentHandler.__init__(self)

        self.tagnames = ("front", "back", "card")
        self.state = dict(zip(self.tagnames, [False] * len(self.tagnames)))
        self.key = self.translation = ""
        self.output = output
Esempio n. 19
0
 def __init__(self):
   ContentHandler.__init__(self)
   self.value = ""
   self.attrs = None
   self.children = []
   self.isValid = 1
   self.name = None
   self.itunes = False
    def __init__(self):
        ContentHandler.__init__(self)

        tags = ['title', 'h1', 'a', 'h2h6', 'beis', 'body', 'metadescription', 'text']
        self.result = {tag: {'texts': [], 'word_count': 0} for tag in tags}
        self.stopwords = get_stop_words()
        self.current_element = None
        self.path = []
 def __init__(self):
     """
     В text_fragment должны попасть то что попадает в body и длинне 50 слов
     В plain_text должно попасть то что короче 50 слов
     """
     ContentHandler.__init__(self)
     self.tags = defaultdict(lambda: {'texts': [], 'word_count': 0})
     self.path = []
Esempio n. 22
0
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = (page or "")
        self._lower_page = self._page.lower()

        self.dbms = None
Esempio n. 23
0
 def __init__(self):
     ContentHandler.__init__(self)
     # DTDHandler.__init__(self) # DTDHandler has no __init__ (?)
     # EntityResolver.__init__(self) # neither does EntityResolver
     self.data = ""
     self.stack = []
     self.root = None
     self.ns_dict = {}
Esempio n. 24
0
 def __init__(self, processes, algorithms):
     ContentHandler.__init__(self)
     self.tag = ''
     self.attrs = []  # Used as temp var to hold attributes
     # Processes will be returned as a list of dicts
     self.proc = processes
     self.algs = algorithms
     self.totalMem = 0
Esempio n. 25
0
 def __init__(self):
     """
     """
     ContentHandler.__init__(self)
     self._content = []
     self.report = None
     self._result = None
     self._hit = None
     self._hsp = None
Esempio n. 26
0
	def __init__(self, config, logger, parent):
		ContentHandler.__init__(self)
		self.config = config
		self.logger = logger
		self.parent = parent
		self.validator = etree.DTD(self.config.events_dtd)
		self.event_started = False
		self.events = []
		self.event_handler = None
Esempio n. 27
0
    def __init__(self):
        ContentHandler.__init__(self)

        # The result
        self.fuzzable_parameters = []
        self.all_parameters = []

        # Internal variables
        self._inside_fuzzable = False
Esempio n. 28
0
	def __init__(self, parser=None):
		if parser:
			self.getLineNumber = lambda: parser.getLineNumber ()
		else:
			self.getLineNumber = lambda: None
		self.stack = []
		self.ch = ''
		self.prefixes = {}
		ContentHandler.__init__(self)
Esempio n. 29
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.dataMatrixList = []
     self.basketDataMatrixList = [('',4)] *5
     self.dataMatrix = ''
     self.basketLocation = -1
     self.sampleLocation = -1
     self.flag = 0
     self.holder_length=22.0
Esempio n. 30
0
    def __init__(self, output):

        ContentHandler.__init__(self)

        self.tagnames = ("k", "tr", "ar")
        self.state = dict(zip(self.tagnames, [False] * len(self.tagnames)))
        self.key = self.transcription = ""
        self.translation = []
        self.output = output
Esempio n. 31
0
 def __init__(XmlReader, scrwid=79, *args):
     ContentHandler.__init__(XmlReader, *args)
Esempio n. 32
0
    def __init__(self,headlines):
        ContentHandler.__init__(self)
        self.isdata = ""
        self.param_value=[]
        self.param_list=[]
        self.headlines=headlines
        #self.grep = ["ADCE","BTS"]

        self.RNC=[]
        self.WBTS=[]
        self.WCEL=[]
##        self.FMCS=[]
##        self.FMCG=[]
##        self.FMCI=[]
##        self.IPBR=[]
##        self.IPNB=[]
##        self.IPQM=[]
##        self.IUCS=[]
##        self.IUCSIP=[]
##        self.IUPS=[]
##        self.IUPSIP=[]
##        self.RNAC=[]
##        self.RNFC=[]
##        self.RNHSPA=[]
##        self.RNMOBI=[]
##        self.RNPS=[]
##        self.RNRLC=[]
##        self.RNTRM=[]
##        self.WAC=[]
        self.ADJG=[]
        self.ADJS=[]



        self.ALL=[
        self.RNC,
        self.WBTS,
        self.WCEL,
##        self.FMCS,
##        self.FMCG,
##        self.FMCI,
##        self.IPBR,
##        self.IPNB,
##        self.IPQM,
##        self.IUCS,
##        self.IUCSIP,
##        self.IUPS,
##        self.IUPSIP,
##        self.RNAC,
##        self.RNFC,
##        self.RNHSPA,
##        self.RNMOBI,
##        self.RNPS,
##        self.RNRLC,
##        self.RNTRM,
##        self.WAC,
        self.ADJG,
        self.ADJS
        ]

        self.grep=[
        "RNC",
        "WBTS",
        "WCEL",
##        "FMCS",
##        "FMCG",
##        "FMCI",
##        "IPBR",
##        "IPNB",
##        "IPQM",
##        "IUCS",
##        "IUCSIP",
##        "IUPS",
##        "IUPSIP",
##        "RNAC",
##        "RNFC",
##        "RNHSPA"
##        "RNMOBI",
##        "RNPS",
##        "RNRLC",
##        "RNTRM",
##        "WAC",
        "ADJG",
        "ADJS"
        ]
Esempio n. 33
0
 def __init__(self, raise_on_failure: bool = True) -> None:
     ContentHandler.__init__(self)
     BoilerpipeBaseParser.__init__(self, raise_on_failure=raise_on_failure)
Esempio n. 34
0
 def __init__(self, node_type):
     self._node_type = node_type
     ContentHandler.__init__(self)
Esempio n. 35
0
 def __init__(self, headlines):
     # super(HeadlineHandler, self).__init__()
     ContentHandler.__init__(self)
     self.headlines = headlines
     self.data = []
Esempio n. 36
0
 def __init__(self):
     self.stack = []
     self.ch = ''
     self.prefixes = {}
     ContentHandler.__init__(self)
Esempio n. 37
0
File: qt5.py Progetto: amh123/waf
 def __init__(self):
     ContentHandler.__init__(self)
     self.buf = []
     self.files = []
Esempio n. 38
0
 def __init__(self, fh):
     ContentHandler.__init__(self)
     self.fh = fh
Esempio n. 39
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.realHandler = weakref.proxy(self)
     self.elementStack = []
     self.contentsStack = [[]]
     self._initialize()
Esempio n. 40
0
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = page
        self.dbms = None