<commit_before>import UIKit

class VPhotosAlbumPhotoListCellImage:UIScrollView, UIScrollViewDelegate
{
    weak var imageView:UIImageView!
    private weak var controller:CPhotosAlbumPhoto!
    private weak var scrollView:UIScrollView!
    private let kMinZoomScale:CGFloat = 1
    private let kMaxZoomScale:CGFloat = 10
    private let kAnimationDuration:TimeInterval = 5
    private var animationFinished:Bool
    
    init(controller:CPhotosAlbumPhoto)
    {
        animationFinished = false
        
        super.init(frame:CGRect.zero)
        clipsToBounds = true
        translatesAutoresizingMaskIntoConstraints = false
        backgroundColor = UIColor.clear
        self.controller = controller
        
        let scrollView:UIScrollView = UIScrollView()
        scrollView.clipsToBounds = true
        scrollView.backgroundColor = UIColor.clear
        scrollView.showsVerticalScrollIndicator = false
        scrollView.showsHorizontalScrollIndicator = false
        scrollView.maximumZoomScale = kMaxZoomScale
        scrollView.minimumZoomScale = kMinZoomScale<commit_msg>fixed image when selected cell before being loaded<commit_after>import UIKit

class VPhotosAlbumPhotoListCellImage:UIScrollView, UIScrollViewDelegate
{
    weak var imageView:UIImageView!
    private weak var controller:CPhotosAlbumPhoto!
    private weak var scrollView:UIScrollView!
    private let kMinZoomScale:CGFloat = 1
    private let kMaxZoomScale:CGFloat = 10
    private let kAnimationDuration:TimeInterval = 0.3
    private var animationFinished:Bool
    
    init(controller:CPhotosAlbumPhoto)
    {
        animationFinished = false
        
        super.init(frame:CGRect.zero)
        clipsToBounds = true
        translatesAutoresizingMaskIntoConstraints = false
        backgroundColor = UIColor.clear
        self.controller = controller
        
        let scrollView:UIScrollView = UIScrollView()
        scrollView.clipsToBounds = true
        scrollView.backgroundColor = UIColor.clear
        scrollView.showsVerticalScrollIndicator = false
        scrollView.showsHorizontalScrollIndicator = false
        scrollView.maximumZoomScale = kMaxZoomScale
        scrollView.minimumZoomScale = kMinZoomScale
{'fraction_non_alphanumeric': 0.04736129905277402, 'fraction_numerical': 0.0040595399188092015, 'mean_word_length': 3.3747534516765287, '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': '5452074', 'n_tokens_mistral': 608, 'n_tokens_neox': 595, 'n_words': 122}