Team Ai
Datasetpublic

SYSUSELab/RustRepoTrans

Evaluating Large Language Models in Repository-level Code Translation RustRepoTrans is the first repository-level code translation benchmark described in the paper "RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rust". Feel free to contact us to submit new results. Benchmark Dataset RustRepoTrans, the first repository-level code translation benchmark comprising 375 tasks targeting Rust, consists of 122 java-rust function pairs, 145 c-rust… See the full description on the dataset page: https://huggingface.co/datasets/SYSUSELab/RustRepoTrans.

sourceHugging Faceupdated 2y agoView on Hugging Face
3likes104downloads
generation.cpython-312.pyc8 linesDownload Raw Back to __pycache__
1�

2x�)g�����ddlZddlmZddiZeej��Zdaedjetd�etdd��a	ej�Zd	�Ze�d3�Z
y)�N)�AzureOpenAI�
gcrgpt4aoai5c� 52f7817a4f964a4db1dc57b7be25427e�https://{0}.openai.azure.com/��2024-02-15-preview��azure_endpoint�api_key�api_versionc���tj�tdztt�zatdj
ttd�ttdd��ay)Nrrrrr	)�lock�acquire�API_ID�len�API_name_key_listr�format�
OPENAI_CLIENT���k/home/k/ogs_PHD/LLM4SE/2Rust_projects/auto_get_functionPair/RustRepoTrans/Datset_Construction/generation.py�set_next_API_IDrsV��	�L�L�N��q�j�C� 1�2�
2�F��6�=�=�>O�PV�>W�XY�>Z�[�!�&�)�!�,�(��Mrc��tjjjdd|d�g��}|jdj4jS)Nzgpt-4o�user)�role�content)�model�messagesr)r�chat�completions�create�choices�messager)r#�responses  r�5generationr% sR���!�!�-�-�4�4����0�6�5��H�
���Q��'�'�/�/�/r)�	threading�openair�API_dic�list�itemsrrrr�Lockrrr%rrr�<module>r,s�����7�6��������)�����2�9�9�:K�F�:S�TU�:V�W��f�%�a�(�$��
�8�y�~�~���	���0r
SYSUSELab/RustRepoTrans · Team Ai