def check_atmost_one_connection(self, definition, connections, actor=None):
        retval = []
        for port, target, target_port, port_dir, actor in self.generate_ports(definition, actor):
            if target == 'src':
                # Skip output (src) ports since they can have multiple connections
                continue
            pc = [c for c in connections if c[target] == actor and c[target_port] == port]
            if len(pc) > 1:
                retval.extend([(port, port_dir, c['dbg_line']) for c in pc])
        return retval
Create some permissions and users.
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/csparser/checker.py/Checker.check_atmost_one_connection--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/permissionmgmt/tests.py/RequestsTests.setUp