<jupyter_start><jupyter_text>Google ドライブをローカルにマウントする<jupyter_code>from google.colab import drive
drive.mount('/content/drive')
from google.colab import drive
drive.mount('/content/drive')

with open("/content/drive/My Drive/Colab Notebooks/data/test.txt", 'w') as file:
  file.write('TEST Google Drive')

drive.flush_and_unmount()<jupyter_output>Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
{'fraction_non_alphanumeric': 0.12869198312236288, 'fraction_numerical': 0.0, 'mean_word_length': 6.786885245901639, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '216826', 'license': 'MIT', 'n_tokens_mistral': 169, 'n_tokens_neox': 162, 'n_words': 34, 'path': 'src/GoogleDrive.ipynb', 'repo_name': 'yuyahnd/colab', 'size': '474'}