<commit_before>#! /usr/bin/env python
from bucketeer import uploader
import sys

try:
  with open('config.json'):
    uploader.upload_from_config()
except IOError:
  print 'Configuration file not found. Using command line arguments.'
  uploader.upload(sys.argv[1], sys.argv[2])

print 'Task done.'<commit_msg>Cleaning up __main__<commit_after>#! /usr/bin/env python
from bucketeer import uploader
import sys

def main(bucket = false, directory = false):
  if (not bucket and not directory):
    try:
      with open('config.json'):
        uploader.upload_from_config()
    except IOError:
      print 'Configuration file not found. Using command line arguments.'
      uploader.upload(bucket, directory)

print 'Task done.'

if __name__ == '__main__':
  # Map command line arguments to function arguments
  main(*sys.argv[1:])
{'fraction_non_alphanumeric': 0.10640870616686819, 'fraction_numerical': 0.0036275695284159614, 'mean_word_length': 4.142857142857143, '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': '3059822', 'n_tokens_mistral': 249, 'n_tokens_neox': 248, 'n_words': 81}