<gh_stars>0
class ServiceFeeCalculator:
    def __init__(self, supporters_set, specials_map, standard_fee):
        self.supporters_set = supporters_set
        self.specials_map = {}

        self.standard_fee = standard_fee / 100.0

        for addr, ratio in specials_map.items():
            self.specials_map[addr] = ratio / 100.0

    def calculate(self, ktAddress):
        service_fee = self.standard_fee

        if ktAddress in self.supporters_set:
            service_fee = 0.0
        elif ktAddress in self.specials_map:
            service_fee = self.specials_map[ktAddress]

        return service_fee

class ServiceFeeCalculator:
    def __init__(self, supporters_set, specials_map, standard_fee):
        self.supporters_set = supporters_set
        self.specials_map = {}

        self.standard_fee = standard_fee / 100.0

        for addr, ratio in specials_map.items():
            self.specials_map[addr] = ratio / 100.0

    def calculate(self, ktAddress):
        service_fee = self.standard_fee

        if ktAddress in self.supporters_set:
            service_fee = 0.0
        elif ktAddress in self.specials_map:
            service_fee = self.specials_map[ktAddress]

        return service_fee