# TransRepo **Repository Path**: mirrors_microsoft/TransRepo ## Basic Information - **Project Name**: TransRepo - **Description**: This is a dedicated repository containing the evaluation scripts and tools for TransRepo. The repository includes: Scripts for downloading and managing TransRepo instances. Evaluation pipelines for assessing the quality and correctness of code translations. Utilities for reporting performance metrics across various programming languages. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-16 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TransRepo ๐Ÿš€ TransRepo is a repository-level code translation benchmark focused on Java-to-C# translation, providing skeleton code and test cases for evaluation. ## Overview ๐Ÿ“‹ TransRepo presents a novel approach to repository-level code translation evaluation: - ๐ŸŽฏ Generates C# skeleton code from Java repositories - ๐Ÿงช Translates Java test files to C# test files - ๐Ÿ“Š Provides evaluation metrics for translated implementations - ๐Ÿ” Focuses on preserving project structure and maintainability ## Dataset ๐Ÿ“ฆ The benchmark dataset is available at "/data", containing: - Original Java source files - Translated C# skeleton code - Translated C# test files - Project configuration files (*.csproj) ## Usage ๐Ÿ’ป ### Language Versions - Java 21 or later - C# 12.0 (.NET 8.0) or later ### Python Dependencies - Python 3.x - tree-sitter >= 0.20.1 - tqdm >= 4.65.0 ### Evaluation Command ```bash python transrepo/verify/translated_code_validator.py \ --skeleton-path /path/to/skeleton \ --translated-path /path/to/translated \ --json-path /path/to/json \ --output-path /path/to/output \ --progress-bar-length 50 ``` ### Baseline Translation and Evaluation ```bash python transrepo/baseline/optimize_translation_without_skeleton.py \ --input-path /path/to/java/source \ --skeleton-path /path/to/csharp/skeleton \ --output-path /path/to/output \ --test-config /path/to/test/config ```