Tsukihjy's picture
download
raw
484 Bytes
import sys
sys.path.append("/home/i-luoxianzhen/data/TestCase-Gen/methods/utils")
from dataset_all import get_datasets_by_name
from config import cfg
import os
dataset = get_datasets_by_name("ours")
total_wrong_code = 0
empty = 0
for item in dataset:
tcb_id = item['tcb_id']
total_wrong_code += len(item['wrong_code'])
if not os.path.exists(cfg.tests_path.format(tcb_id)):
empty += len(item['wrong_code'])
print(f"empty {(empty / total_wrong_code) * 100:.2f}%")

Xet Storage Details

Size:
484 Bytes
·
Xet hash:
97c64a0a5a99593d7edaf7ea5565b9242f6b1a82f4233e48fc4009f6fd336464

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.