<commit_before>package io.clappr.player.plugin.control

import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import android.widget.RelativeLayout
import androidx.test.core.app.ApplicationProvider
import io.clappr.player.R
import io.clappr.player.base.*
import io.clappr.player.base.keys.Action
import io.clappr.player.base.keys.Key
import io.clappr.player.components.Container
import io.clappr.player.components.Core
import io.clappr.player.components.Playback
import io.clappr.player.components.PlaybackSupportCheck
import io.clappr.player.plugin.*
import io.clappr.player.plugin.control.MediaControl.Plugin.Panel
import io.clappr.player.plugin.control.MediaControl.Plugin.Position
import org.junit.After
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.Robolectric
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import org.robolectric.shadows.ShadowSystemClock
import org.robolectric.shadows.ShadowView
import org.robolectric.util.Scheduler
import java.util.*
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue

@RunWith(RobolectricTestRunner::class)
@Config(sdk = [23], shadows = [ShadowSystemClock::class, ShadowView::class])
class MediaControlTest {

    private lateinit var mediaControl: MediaControl
    private lateinit var core: Core
    private lateinit var container: Container
    private lateinit var fakePlayback: FakePlayback
    lateinit var scheduler: Scheduler


    @Before
    fun setUp() {
        BaseObject.applicationContext = ApplicationProvider.getApplicationContext()
        scheduler = Robolectric.getForegroundThreadScheduler()

        container = Container(Options())

        core = Core(Options())

        mediaControl = MediaControl(core)

        core.activeContainer = container
        fakePlayback = FakePlayback()
        container.playback = fakePlayback
    }
<commit_msg>test(media_control): make scheduler property private<commit_after>package io.clappr.player.plugin.control

import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import android.widget.RelativeLayout
import androidx.test.core.app.ApplicationProvider
import io.clappr.player.R
import io.clappr.player.base.*
import io.clappr.player.base.keys.Action
import io.clappr.player.base.keys.Key
import io.clappr.player.components.Container
import io.clappr.player.components.Core
import io.clappr.player.components.Playback
import io.clappr.player.components.PlaybackSupportCheck
import io.clappr.player.plugin.*
import io.clappr.player.plugin.control.MediaControl.Plugin.Panel
import io.clappr.player.plugin.control.MediaControl.Plugin.Position
import org.junit.After
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.Robolectric
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import org.robolectric.shadows.ShadowSystemClock
import org.robolectric.shadows.ShadowView
import org.robolectric.util.Scheduler
import java.util.*
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue

@RunWith(RobolectricTestRunner::class)
@Config(sdk = [23], shadows = [ShadowSystemClock::class, ShadowView::class])
class MediaControlTest {

    private lateinit var mediaControl: MediaControl
    private lateinit var core: Core
    private lateinit var container: Container
    private lateinit var fakePlayback: FakePlayback
    private lateinit var scheduler: Scheduler

    @Before
    fun setUp() {
        BaseObject.applicationContext = ApplicationProvider.getApplicationContext()
        scheduler = Robolectric.getForegroundThreadScheduler()

        container = Container(Options())

        core = Core(Options())

        mediaControl = MediaControl(core)

        core.activeContainer = container
        fakePlayback = FakePlayback()
        container.playback = fakePlayback
    }

{'fraction_non_alphanumeric': 0.0829303675048356, 'fraction_numerical': 0.0009671179883945841, 'mean_word_length': 4.96969696969697, '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': '1090947', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1165, 'n_words': 239}