Clean codes and set configurations