<commit_before>#!/usr/local/bin/ python
#!coding:utf-8
import imaplib
import codecs
import commands
import sys


mail=imaplib.IMAP4_SSL("imap.gmail.com")
mail.login(sys.argv[1],sys.argv[2])
mail.list()
mail.select("INBOX")
status,maillist=mail.search(None,"(UNSEEN)")

f=codecs.open('GmailNotification.cache','w','utf-8')

if(status=="OK"):
    if maillist[0] is not '':
       f.write("New got Mail")
       commands.getoutput(" terminal-notifier -message 新着メッセージが来ております -title 新着のGmail")
    else:
       f.write("Not Mail")
f.close()
<commit_msg>new got mail -> you got mail<commit_after>#!/usr/local/bin/ python
#!coding:utf-8
import imaplib
import codecs
import commands
import sys
import datetime

mail=imaplib.IMAP4_SSL("imap.gmail.com")
mail.login(sys.argv[1],sys.argv[2])
mail.list()
mail.select("INBOX")
status,maillist=mail.search(None,"(UNSEEN)")

f=codecs.open('GmailNotification.cache','w','utf-8')
f=codecs.open('GmailNotification.cache','w','utf-8')
now=datetime.datetime.now()
if(status=="OK"):
    if maillist[0] is not '':
       writestring="You got Mail"+now
       f.write(writestring)
       commands.getoutput(" terminal-notifier -message 新着メッセージが来ております -title 新着のGmail")
    else:
       writestring=""
       f.write(writestring)
f.close()

{'fraction_non_alphanumeric': 0.1721958925750395, 'fraction_numerical': 0.010268562401263823, 'mean_word_length': 4.8657407407407405, 'pattern_counts': {'":': 0, '<': 3, '<?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}}
{'dir': 'git-commits-cleaned', 'id': '3582952', 'n_tokens_mistral': 499, 'n_tokens_neox': 493, 'n_words': 80}