"""모든 Asset Type 확인"""
import json
from collections import Counter

with open('../../원본데이터/DataTable.json', 'r', encoding='utf-8') as f:
    data = json.load(f)

assets = data.get('Assets', [])
print(f"총 Assets: {len(assets)}\n")

# Type 카운트
types = [a.get('Type', 'Unknown') for a in assets]
type_counts = Counter(types)

print("Asset Type 분포:")
for asset_type, count in type_counts.most_common():
    print(f"  - {asset_type}: {count}개")

# 이름 샘플 (각 타입별 3개씩)
print("\n\nType별 이름 샘플:")
for asset_type, count in type_counts.most_common():
    print(f"\n{asset_type} ({count}개):")
    samples = [a.get('Name', '') for a in assets if a.get('Type') == asset_type][:5]
    for sample in samples:
        print(f"  - {sample}")
