<commit_before>from mastodon import Mastodon
from login import login
from mining import mining

'''
all_destroyするためのコード
'''
def clean(user_id,type):
    print("destroy start!")
    Mastodon = login()

    # myaccount = Mastodon.account_verify_credentials()
    # myaccount = Mastodon.account(user_id)
    # print(myaccount['statuses_count'])


    user_toot = mining(user_id,type)
    for num in range(len(user_toot)):
        print(user_toot[num]['id'])

    # print(type(user_toot))
    # for k, v in user_toot.items():
        # print(k,v)
    # mastodon.delete(user_id)

if __name__ == '__clean__':
    clean()
<commit_msg>clean.pyを完成させた<commit_after>from mastodon import Mastodon
from login import login
from mining import mining

'''
all_destroyするためのコード
'''

def clean(user_id,type=""):
    Mastodon = login()

    user_toot = mining(user_id,type)
    for num in range(len(user_toot)):
        Mastodon.status_delete(user_toot[num]['id'])

if __name__ == '__clean__':
    clean()

{'fraction_non_alphanumeric': 0.12778904665314403, 'fraction_numerical': 0.0, 'mean_word_length': 4.167539267015707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '5236444', 'n_tokens_mistral': 372, 'n_tokens_neox': 350, 'n_words': 71}