<commit_before>@file:Suppress("PackageName", "PackageNaming")

package com.mikepenz.fastadapter.swipe_drag

import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.drawable.Drawable
import androidx.annotation.ColorInt
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.mikepenz.fastadapter.drag.ItemTouchCallback
import com.mikepenz.fastadapter.drag.SimpleDragCallback
import com.mikepenz.fastadapter.swipe.SimpleSwipeCallback

/**
 * Created by Mattias on 2016-02-13.
 */
class SimpleSwipeDragCallback @JvmOverloads constructor(
        itemTouchCallback: ItemTouchCallback,
        itemSwipeCallback: SimpleSwipeCallback.ItemSwipeCallback,
        leaveBehindDrawable: Drawable,
        swipeDirs: Int = ItemTouchHelper.LEFT,
        @ColorInt bgColor: Int = Color.RED
) : SimpleDragCallback(itemTouchCallback) {

    private val simpleSwipeCallback: SimpleSwipeCallback
    private var defaultSwipeDirs: Int = 0

    init {
        setDefaultSwipeDirs(swipeDirs)
        simpleSwipeCallback = SimpleSwipeCallback(itemSwipeCallback, leaveBehindDrawable, swipeDirs, bgColor)
    }

    override fun setDefaultSwipeDirs(defaultSwipeDirs: Int) {<commit_msg>Fix inconsistency between helper and main class arguments<commit_after>@file:Suppress("PackageName", "PackageNaming")

package com.mikepenz.fastadapter.swipe_drag

import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.drawable.Drawable
import androidx.annotation.ColorInt
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.mikepenz.fastadapter.drag.ItemTouchCallback
import com.mikepenz.fastadapter.drag.SimpleDragCallback
import com.mikepenz.fastadapter.swipe.SimpleSwipeCallback

/**
 * Created by Mattias on 2016-02-13.
 */
class SimpleSwipeDragCallback @JvmOverloads constructor(
        itemTouchCallback: ItemTouchCallback,
        itemSwipeCallback: SimpleSwipeCallback.ItemSwipeCallback,
        leaveBehindDrawable: Drawable?,
        swipeDirs: Int = ItemTouchHelper.LEFT,
        @ColorInt bgColor: Int = Color.RED
) : SimpleDragCallback(itemTouchCallback) {

    private val simpleSwipeCallback: SimpleSwipeCallback
    private var defaultSwipeDirs: Int = 0

    init {
        setDefaultSwipeDirs(swipeDirs)
        simpleSwipeCallback = SimpleSwipeCallback(itemSwipeCallback, leaveBehindDrawable, swipeDirs, bgColor)
    }

    override fun setDefaultSwipeDirs(defaultSwipeDirs: Int) {
{'fraction_non_alphanumeric': 0.07118122354751828, 'fraction_numerical': 0.006925740669488265, 'mean_word_length': 5.280193236714976, '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': '265062', 'n_tokens_mistral': 766, 'n_tokens_neox': 751, 'n_words': 141}