<commit_before>import inoreaderapi
import delugeapi
from datetime import datetime
import os

def go_process():
    items = inoreaderapi.get_downloadable_items()
    print datetime.now().isoformat()
    if len(items['items']) == 0:
        print "No items to retreive. Exiting."
    else:
        print "Retreived " + str(len(items['items'])) + " starred items"
        client = delugeapi.connect_to_deluge()
        for item in items['items']:
            print "Saving -> '" + item['title'].encode('utf-8') + "'"
            try:
                tor_id = client.add_torr_url(inoreaderapi.get_enclosure_url(item))
            except:
                ## Could not add torrent URL directly <commit_msg>Bug Fix on remove_finished.<commit_after>import inoreaderapi
import delugeapi
from datetime import datetime
import os

def go_process():
    items = inoreaderapi.get_downloadable_items()
    print datetime.now().isoformat()
    client = delugeapi.connect_to_deluge()
    if len(items['items']) == 0:
        print "No items to retreive. Exiting."
    else:
        print "Retreived " + str(len(items['items'])) + " starred items"
        for item in items['items']:
            print "Saving -> '" + item['title'].encode('utf-8') + "'"
            try:
                tor_id = client.add_torr_url(inoreaderapi.get_enclosure_url(item))
            except:
                ## Could not add torrent URL directly 
{'fraction_non_alphanumeric': 0.1198581560283688, 'fraction_numerical': 0.0028368794326241137, 'mean_word_length': 2.664935064935065, 'pattern_counts': {'":': 0, '<': 3, '<?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}}
{'dir': 'git-commits-cleaned', 'id': '267449', 'n_tokens_mistral': 426, 'n_tokens_neox': 414, 'n_words': 103}