<commit_before>//
//  PopAnimator.swift
//  IceFishing
//
//  Created by <NAME> on 2/28/16.
//  Copyright © 2016 CUAppDev. All rights reserved.
//

import UIKit

class PopAnimator: NSObject, UIViewControllerAnimatedTransitioning {
	
	
	let duration    = 0.5
	var presenting  = true
	var originFrame = CGRect.zero
	var profileImage = UIImage()
	
	func transitionDuration(transitionContext: UIViewControllerContextTransitioning?)-> NSTimeInterval {
		return duration
	}
	
	func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
		let profilePicViewController = transitionContext.viewControllerForKey(UITransitionContextToViewControllerKey) as! ProfilePictureViewController
		
		profilePicViewController.view.frame = transitionContext.containerView()!.frame
		profilePicViewController.view.alpha = 0
		
		transitionContext.containerView()?.addSubview(profilePicViewController.view)
		
		profilePicViewController.profilePictureView.image = profileImage
		
		UIView.animateWithDuration(duration) { () -> Void in
			profilePicViewController.view.alpha = 1
		}
	}
}
<commit_msg>Fixed minor glitch<commit_after>//
//  PopAnimator.swift
//  IceFishing
//
//  Created by <NAME> on 2/28/16.
//  Copyright © 2016 CUAppDev. All rights reserved.
//

import UIKit

class PopAnimator: NSObject, UIViewControllerAnimatedTransitioning {
	
	
	let duration    = 0.5
	var presenting  = true
	var originFrame = CGRect.zero
	var profileImage = UIImage()
	
	func transitionDuration(transitionContext: UIViewControllerContextTransitioning?)-> NSTimeInterval {
		return duration
	}
	
	func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
		let profilePicViewController = transitionContext.viewControllerForKey(UITransitionContextToViewControllerKey) as! ProfilePictureViewController
		
		profilePicViewController.view.frame = transitionContext.containerView()!.frame
		profilePicViewController.view.alpha = 0
		
		transitionContext.containerView()?.addSubview(profilePicViewController.view)
		transitionContext.containerView()?.bringSubviewToFront(profilePicViewController.view)
		
		profilePicViewController.profilePictureView.image = profileImage
		
		UIView.animateWithDuration(duration, animations: { () -> Void in
			profilePicViewController.view.alpha = 1
			}) {_ in transitionContext.completeTransition(true)
		}
	}
}

{'fraction_non_alphanumeric': 0.08276740237691002, 'fraction_numerical': 0.011035653650254669, 'mean_word_length': 5.235449735449736, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '231036', 'n_tokens_mistral': 750, 'n_tokens_neox': 608, 'n_words': 124}