<commit_before>package com.globo.clappr

import com.globo.clappr.base.BaseObject
import com.globo.clappr.base.Options
import com.globo.clappr.components.Core

/**
 *  Main Clappr class.
 *
 * Once instantiated it should be attached to ViewGroup before playback can begin.
 */
class Player : BaseObject {
    val core : Core

    constructor(options: Options?) : super() {
        core = Core(options)
    }
}<commit_msg>feat(base): update Player class<commit_after>package com.globo.clappr

import android.view.ViewGroup
import com.globo.clappr.base.BaseObject
import com.globo.clappr.plugin.Loader
import com.globo.clappr.base.Options
import com.globo.clappr.components.Core

/**
 *  Main Clappr class.
 *
 * Once instantiated it should be attached to ViewGroup before playback can begin.
 */
class Player(val options: Options = Options()) : BaseObject() {
    var core : Core? = null
    val loader = Loader()

    /**
     * Attaches the player to a ViewGroup.
     *
     * After the player has been created, it must be included within a ViewGroup using this method.
     * The player will resize itself and fit the video under the containing viewGroup without distorting.
     *
     * @param viewGroup
     *            a visible viewGroup created by the application using this player.
     */
    fun attachTo(viewGroup: ViewGroup) {
        core = Core(loader, options)
    }
}
{'fraction_non_alphanumeric': 0.0888086642599278, 'fraction_numerical': 0.0, 'mean_word_length': 3.187311178247734, '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': '1079330', 'n_tokens_mistral': 414, 'n_tokens_neox': 404, 'n_words': 132}