<commit_before>//
//  KolodaView.swift
//  Koloda
//
//  Created by <NAME> on 4/24/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import pop

//Default values
private let defaultCountOfVisibleCards = 3
private let defaultBackgroundCardsTopMargin: CGFloat = 4.0
private let defaultBackgroundCardsScalePercent: CGFloat = 0.95
private let defaultBackgroundCardsLeftMargin: CGFloat = 8.0
private let defaultBackgroundCardFrameAnimationDuration: TimeInterval = 0.2
private let defaultAppearanceAnimationDuration: TimeInterval = 0.8

//Opacity values
private let defaultAlphaValueOpaque: CGFloat = 1.0
private let defaultAlphaValueTransparent: CGFloat = 0.0
private let defaultAlphaValueSemiTransparent: CGFloat = 0.7

public protocol KolodaViewDataSource: class {
    
    func kolodaNumberOfCards(_ koloda: KolodaView) -> Int
    func kolodaSpeedThatCardShouldDrag(_ koloda: KolodaView) -> DragSpeed
    func koloda(_ koloda: KolodaView, viewForCardAt index: Int) -> UIView
    func koloda(_ koloda: KolodaView, viewForCardOverlayAt index: Int) -> OverlayView?
}

public extension KolodaViewDataSource {
    
    func koloda(_ koloda: KolodaView, viewForCardOverlayAt index: Int) -> OverlayView? {
        return nil
    }
    
}<commit_msg>Use default drag speed when not specified<commit_after>//
//  KolodaView.swift
//  Koloda
//
//  Created by <NAME> on 4/24/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import pop

//Default values
private let defaultCountOfVisibleCards = 3
private let defaultBackgroundCardsTopMargin: CGFloat = 4.0
private let defaultBackgroundCardsScalePercent: CGFloat = 0.95
private let defaultBackgroundCardsLeftMargin: CGFloat = 8.0
private let defaultBackgroundCardFrameAnimationDuration: TimeInterval = 0.2
private let defaultAppearanceAnimationDuration: TimeInterval = 0.8

//Opacity values
private let defaultAlphaValueOpaque: CGFloat = 1.0
private let defaultAlphaValueTransparent: CGFloat = 0.0
private let defaultAlphaValueSemiTransparent: CGFloat = 0.7

public protocol KolodaViewDataSource: class {
    
    func kolodaNumberOfCards(_ koloda: KolodaView) -> Int
    func kolodaSpeedThatCardShouldDrag(_ koloda: KolodaView) -> DragSpeed
    func koloda(_ koloda: KolodaView, viewForCardAt index: Int) -> UIView
    func koloda(_ koloda: KolodaView, viewForCardOverlayAt index: Int) -> OverlayView?
}

public extension KolodaViewDataSource {
    
    func koloda(_ koloda: KolodaView, viewForCardOverlayAt index: Int) -> OverlayView? {
        return nil
    }
 
    func kolodaSpeedThatCardShouldDrag(_ koloda: KolodaView) -> DragSpeed {
		return .default
	}
}
{'fraction_non_alphanumeric': 0.0770392749244713, 'fraction_numerical': 0.02039274924471299, 'mean_word_length': 4.530271398747391, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, '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': '2874408', 'n_tokens_mistral': 822, 'n_tokens_neox': 795, 'n_words': 233}