<jupyter_start><jupyter_text>Dev | DownloadしたLogデータの解析  Step.1: Logファイルの読み込み - Entry 3 ... 30秒計測  ライブラリの関数を用いた読み出し<jupyter_code>from pathlib import Path
import numpy as np
import pandas as pd
import json

import sys
sys.path.append("../")
from tsndctl.postprocessing import parse_logfile
device = "ATR01"
logdate = "2021-10-17/17-18-04"
logfile = Path("../outputs", device, logdate, "download.log")
(metadata, df_ags, messages), summary = parse_logfile(logfile)
summary
metadata
messages<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11605415860735009, 'fraction_numerical': 0.03868471953578337, 'mean_word_length': 5.906666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '574409', 'license': 'MIT', 'n_tokens_mistral': 215, 'n_tokens_neox': 208, 'n_words': 45, 'path': 'control/notebooks/Dev_CheckDownloadedRecords.ipynb', 'repo_name': 'getty708/atr-tk', 'size': '517'}