Source code for the COLING 2024 paper "Federated Document-Level Biomedical Relation Extraction with Localized Context Contrast". The detailed preprocessing process of biomedical datasets can refer to https://github.com/fenchri/edge-oriented-graph, original data and processed data can be downloaded through this link. https://drive.google.com/drive/folders/1TY8Lpq3c1twBWJX2LuAWs5mAziHy6ncK?usp=drive_link