<commit_before>#!/bin/env python
# -*- coding: utf8 -*-

import fedmsg
import fedimg
import fedimg.services
from fedimg.services.ec2 import EC2Service, EC2ServiceException

ec2 = EC2Service()

ec2.upload('https://kojipkgs.fedoraproject.org//work/tasks/5144/6925144/fedora-cloud-base-rawhide-20140604.x86_64.raw.xz')
<commit_msg>Update test_upload.py script with up-to-date URL<commit_after>#!/bin/env python
# -*- coding: utf8 -*-

import fedmsg
import fedimg
import fedimg.services
from fedimg.services.ec2 import EC2Service, EC2ServiceException

ec2 = EC2Service()

ec2.upload('https://kojipkgs.fedoraproject.org//work/tasks/9442/7049442/fedora-cloud-base-20140616-rawhide.x86_64.raw.xz')

{'fraction_non_alphanumeric': 0.1345875542691751, 'fraction_numerical': 0.08683068017366136, 'mean_word_length': 5.123893805309734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1852123', 'n_tokens_mistral': 290, 'n_tokens_neox': 257, 'n_words': 41}