<commit_before>package com.shiftize.calendarview

import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import java.util.*

class DayView : RelativeLayout {
    var dayText: TextView? = null
    var day: Int? = 1
        set(value) {
            dayText?.text = value.toString()
        }
    var textColor: Int = Color.rgb(0, 0, 0)
        set(value) {
            dayText?.setTextColor(value)
        }

    var dotContainer: LinearLayout? = null
    var agendaList: List<Agenda> = ArrayList()
        set(value) {
            setDotViews(value)
        }

    constructor(context: Context): super(context) {
        setUp()
    }

    fun setUp() {
        removeAllViews()

        dayText = TextView(context)
        dayText?.text = day.toString()
        dayText?.textSize = 20.0f
        dayText?.setTextColor(textColor)
        val textLayoutParams = LayoutParams(LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)
        textLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_START)
        this.addView(dayText, textLayoutParams)

        dotContainer = LinearLayout(context)
        dotContainer?.orientation = LinearLayout.HORIZONTAL
        dotContainer?.setGravity(Gravity.CENTER)
        val dotContainerLayoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
        dotContainerLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT)
        setDotViews(agendaList)
        this.addView(dotContainer, dotContainerLayoutParams)
    }

    private fun setDotViews(agendaList: List<Agenda>) {
        dotContainer?.removeAllViews()
        val dotView = DotView(context)
        dotView.agendaList = agendaList
        dotContainer?.addView(dotView)
    }
}<commit_msg>move day labels to center<commit_after>package com.shiftize.calendarview

import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import java.util.*

class DayView : RelativeLayout {
    var dayText: TextView? = null
    var day: Int? = 1
        set(value) {
            dayText?.text = value.toString()
        }
    var textColor: Int = Color.rgb(0, 0, 0)
        set(value) {
            dayText?.setTextColor(value)
        }

    var dotContainer: LinearLayout? = null
    var agendaList: List<Agenda> = ArrayList()
        set(value) {
            setDotViews(value)
        }

    constructor(context: Context): super(context) {
        setUp()
    }

    fun setUp() {
        removeAllViews()

        dayText = TextView(context)
        dayText?.text = day.toString()
        dayText?.textSize = 20.0f
        dayText?.setTextColor(textColor)
        val textLayoutParams = LayoutParams(LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)
        textLayoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL)
        this.addView(dayText, textLayoutParams)

        dotContainer = LinearLayout(context)
        dotContainer?.orientation = LinearLayout.HORIZONTAL
        dotContainer?.setGravity(Gravity.CENTER)
        val dotContainerLayoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
        dotContainerLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT)
        setDotViews(agendaList)
        this.addView(dotContainer, dotContainerLayoutParams)
    }

    private fun setDotViews(agendaList: List<Agenda>) {
        dotContainer?.removeAllViews()
        val dotView = DotView(context)
        dotView.agendaList = agendaList
        dotContainer?.addView(dotView)
    }
}
{'fraction_non_alphanumeric': 0.08824306472919419, 'fraction_numerical': 0.0036988110964332895, 'mean_word_length': 3.049197860962567, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3402404', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1064, 'n_words': 194}