# Path: h800/arguscard.py
# class Deck(punchcard.Deck):
#     """A simple class to represent a deck of ARGUS punch-cards."""
#     def __init__(self, lines=None, file=None, width=_WIDTH, fields=_FIELDS,
#                  cardclass=Card, verbose=False):
#         super().__init__(lines=lines, file=file, width=width, fields=fields,
#                          cardclass=cardclass, verbose=verbose)
#         self._logSection = None
#         self._logSectionCol8 = None
#         for card in self._cards:
#             if card.record["column1"] == 'L':
#                 # This will only recognise the first log section in a deck.
#                 self._logSection = card.line[8:81].strip()
#                 self._logSectionCol8 = card.record["column8"]
#                 break
# 
#     @property
#     def log_section(self):
#         return self._logSection
# 
#     @property
#     def log_section_col8(self):
#         return self._logSectionCol8


import sys
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
from h800.arguscard import Deck
            if entry.isValid():
                print("Removing %s from undefined symbols list" % (symbol))
                del self._undefs[i]
        print("Removed %d symbols from undef list" %
              (numUndefs - len(self._undefs)))

    def getNumSymbols(self):
        return len(list(self._symbols.keys()))

    def getNumUndefs(self):
        return len(self._undefs)

    def lookup(self, name):
        entry = None
        if name in self._symbols:
            entry = self._symbols[name]
        return entry

    def printTable(self, outfile=None):
        if outfile is None:
            out = sys.stdout
        else:
            out = outfile
        symbols = list(self._symbols.keys())
        symbols.sort()
        print("\nDefined symbols:\n", file=out)
        for symbol in symbols:
            print(self._symbols[symbol], file=out)

        if len(self._undefs) > 0:

# Path: h800/arguscard.py
# class Deck(punchcard.Deck):
#     """A simple class to represent a deck of ARGUS punch-cards."""
#     def __init__(self, lines=None, file=None, width=_WIDTH, fields=_FIELDS,
#                  cardclass=Card, verbose=False):
#         super().__init__(lines=lines, file=file, width=width, fields=fields,
#                          cardclass=cardclass, verbose=verbose)
#         self._logSection = None
#         self._logSectionCol8 = None
#         for card in self._cards:
#             if card.record["column1"] == 'L':
#                 # This will only recognise the first log section in a deck.
#                 self._logSection = card.line[8:81].strip()
#                 self._logSectionCol8 = card.record["column8"]
#                 break
# 
#     @property
#     def log_section(self):
#         return self._logSection
# 
#     @property
#     def log_section_col8(self):
#         return self._logSectionCol8


# Path: h800/symbol_table.py
import sys
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
from h800.arguscard import Deck

            if entry.isValid():
                print("Removing %s from undefined symbols list" % (symbol))
                del self._undefs[i]
        print("Removed %d symbols from undef list" %
              (numUndefs - len(self._undefs)))

    def getNumSymbols(self):
        return len(list(self._symbols.keys()))

    def getNumUndefs(self):
        return len(self._undefs)

    def lookup(self, name):
        entry = None
        if name in self._symbols:
            entry = self._symbols[name]
        return entry

    def printTable(self, outfile=None):
        if outfile is None:
            out = sys.stdout
        else:
            out = outfile
        symbols = list(self._symbols.keys())
        symbols.sort()
        print("\nDefined symbols:\n", file=out)
        for symbol in symbols:
            print(self._symbols[symbol], file=out)

        if len(self._undefs) > 0:

            print("\nUndefined symbols:\n", file=out)