<commit_before>//
//  S3UploadingService.swift
//  Ello
//
//  Created by <NAME> on 3/3/2015.
//  Copyright (c) 2015 Ello. All rights reserved.
//

import Moya


public class S3UploadingService: NSObject {
    typealias S3UploadSuccessCompletion = (url : NSURL?) -> Void

    var uploader : ElloS3?

    func upload(image : UIImage, filename: String, success: S3UploadSuccessCompletion, failure: ElloFailureCompletion?) {
        let data = UIImageJPEGRepresentation(image, 0.8)

        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {<commit_msg>Remove duplicate data call.<commit_after>//
//  S3UploadingService.swift
//  Ello
//
//  Created by <NAME> on 3/3/2015.
//  Copyright (c) 2015 Ello. All rights reserved.
//

import Moya


public class S3UploadingService: NSObject {
    typealias S3UploadSuccessCompletion = (url : NSURL?) -> Void

    var uploader : ElloS3?

    func upload(image : UIImage, filename: String, success: S3UploadSuccessCompletion, failure: ElloFailureCompletion?) {
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
{'fraction_non_alphanumeric': 0.10412926391382406, 'fraction_numerical': 0.03052064631956912, 'mean_word_length': 3.933628318584071, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6975962', 'n_tokens_mistral': 382, 'n_tokens_neox': 351, 'n_words': 87}