<commit_before>#
# pic_flickr.py
#
# Given a picture, upload it to flickr
#
import flickrapi
import sys


def main(flickr, files):
    pass


if __name__ == '__main__':
    if len(sys.args) > 2:
        print("Need some arguments")
        exit(-1)
    #Get API key
    api_key = sys.argv[1]
    flickr = flickrapi.FlickrAPI(api_key)
    files = []
    main(flickr, files)<commit_msg>Adding in the guts<commit_after>#
# pic_flickr.py
#
# Given a picture, upload it to flickr
#
import flickrapi
import sys
import json


def main(flickr, files):
    print("Files: %s " % files)
    pass


if __name__ == '__main__':
    if len(sys.argv) < 3:
        print("Need path to the json-formatted api key/secret and then some name(s)")
        exit(-1)
    #Get API key
    jdata = json.load(open(sys.argv[1]))
    api_key = jdata.get("key")
    api_secret = jdata.get("secret")
    print(sys.argv)
    flickr = flickrapi.FlickrAPI(api_key, api_secret)
    files = sys.argv[2:]
    main(flickr, files)
{'fraction_non_alphanumeric': 0.12714429868819374, 'fraction_numerical': 0.007063572149344097, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6458998', 'n_tokens_mistral': 380, 'n_tokens_neox': 361, 'n_words': 96}