<commit_before><commit_msg>Add the getter module<commit_after>#!/usr/bin/env python

import urllib2
import ping_me
import hashlib
import sys
import subprocess
import tunnelcrypt

country = ping_me.authenticate.extract_phone()[2]
filename = country[:2] + country[-2:]
del country
target = "http://www.himanshumishra.in/pingme/cron/" + filename + '.txt'
email = ping_me.authenticate.extract_email()
password = ping_me.authenticate.extract_password()
hashed_email = hashlib.md5(email).hexdigest()
del email
data = urllib2.urlopen(target)


for line in data:
    line = line.split()
    if line[0] == hashed_email:
        for i in range(1, len(line)):
            line[i] = int(line[i])
        message = tunnelcrypt.decrypt(line[1:], password)
        if sys.platform == 'linux2':
            subprocess.call(['notify-send', message])
        elif sys.platform == 'darwin':
            subprocess.call(['terminal-notifier', '-title', 'ping-me', 'Ping!'])
        elif sys.platform in ['win32', 'win64']:
            # Do things for windows
            pass

del target
del data
del hashed_email

{'fraction_non_alphanumeric': 0.13357731015553523, 'fraction_numerical': 0.012808783165599268, 'mean_word_length': 3.411290322580645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2035742', 'n_tokens_mistral': 363, 'n_tokens_neox': 346, 'n_words': 85}