<commit_before><?xml version="1.0" encoding="utf-8"?>
<org.wikipedia.views.WikiCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/containerView"
    android:clickable="true"
    android:focusable="true"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginEnd="16dp"
    android:layout_marginTop="8dp"
    android:layout_marginBottom="8dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp"
        android:layout_marginTop="16dp"
        android:layout_marginBottom="10dp">

        <TextView
            android:id="@+id/titleText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toStartOf="@id/langCodeText"
            app:layout_constraintTop_toTopOf="parent"
            android:textStyle="bold"
            android:textSize="16sp"
            android:textColor="?attr/material_theme_primary_color"
            tools:text="Lorem ipsum"/>

        <TextView
            android:id="@+id/timeText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            android:textSize="16sp"
            android:textColor="?attr/material_theme_secondary_color"
            tools:text="12:00"/>

        <ImageView
            android:id="@+id/langCodeBackground"
            android:layout_width="0dp"
            android:layout_height="18dp"
            android:contentDescription="@null"
            app:layout_constraintBottom_toBottomOf="@+id/langCodeText"
            app:layout_constraintEnd_toEndOf="@+id/langCodeText"
            app:layout_constraintStart_toStartOf="@+id/langCodeText"
            app:layout_constraintTop_toTopOf="@+id/langCodeText"
            app:srcCompat="@drawable/lang_button_shape_border"
            app:tint="?attr/material_theme_secondary_color" />

        <TextView
            android:id="@+id/langCodeText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toTopOf="@id/timeText"
            app:layout_constraintBottom_toBottomOf="@id/timeText"
            app:layout_constraintEnd_toStartOf="@id/timeText"
            android:layout_marginEnd="8dp"
            android:fontFamily="monospace"
            android:lineSpacingExtra="2sp"
            android:padding="3dp"
            android:paddingEnd="4dp"
            android:textAllCaps="true"
            android:textColor="?attr/material_theme_secondary_color"
            android:textSize="10sp"
            android:textStyle="bold"
            tools:text="zh-hant" />

        <TextView
            android:id="@+id/summaryText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/titleText"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="6dp"
            android:textSize="16sp"
            android:lineSpacingExtra="8sp"
            android:textColor="?attr/material_theme_secondary_color"
            android:textColorLink="?attr/material_theme_secondary_color"
            tools:text="Lorem ipsum"/>
<commit_msg>Truncate summary at 4 lines.<commit_after><?xml version="1.0" encoding="utf-8"?>
<org.wikipedia.views.WikiCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/containerView"
    android:clickable="true"
    android:focusable="true"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginEnd="16dp"
    android:layout_marginTop="8dp"
    android:layout_marginBottom="8dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp"
        android:layout_marginTop="16dp"
        android:layout_marginBottom="10dp">

        <TextView
            android:id="@+id/titleText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toStartOf="@id/langCodeText"
            app:layout_constraintTop_toTopOf="parent"
            android:textStyle="bold"
            android:textSize="16sp"
            android:textColor="?attr/material_theme_primary_color"
            tools:text="Lorem ipsum"/>

        <TextView
            android:id="@+id/timeText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            android:textSize="16sp"
            android:textColor="?attr/material_theme_secondary_color"
            tools:text="12:00"/>

        <ImageView
            android:id="@+id/langCodeBackground"
            android:layout_width="0dp"
            android:layout_height="18dp"
            android:contentDescription="@null"
            app:layout_constraintBottom_toBottomOf="@+id/langCodeText"
            app:layout_constraintEnd_toEndOf="@+id/langCodeText"
            app:layout_constraintStart_toStartOf="@+id/langCodeText"
            app:layout_constraintTop_toTopOf="@+id/langCodeText"
            app:srcCompat="@drawable/lang_button_shape_border"
            app:tint="?attr/material_theme_secondary_color" />

        <TextView
            android:id="@+id/langCodeText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toTopOf="@id/timeText"
            app:layout_constraintBottom_toBottomOf="@id/timeText"
            app:layout_constraintEnd_toStartOf="@id/timeText"
            android:layout_marginEnd="8dp"
            android:fontFamily="monospace"
            android:lineSpacingExtra="2sp"
            android:padding="3dp"
            android:paddingEnd="4dp"
            android:textAllCaps="true"
            android:textColor="?attr/material_theme_secondary_color"
            android:textSize="10sp"
            android:textStyle="bold"
            tools:text="zh-hant" />

        <TextView
            android:id="@+id/summaryText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/titleText"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="6dp"
            android:textSize="16sp"
            android:lineSpacingExtra="8sp"
            android:maxLines="4"
            android:ellipsize="end"
            android:textColor="?attr/material_theme_secondary_color"
            android:textColorLink="?attr/material_theme_secondary_color"
            tools:text="Lorem ipsum"/>

{'fraction_non_alphanumeric': 0.10975928833071691, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 2.9285714285714284, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 2, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2967327', 'n_tokens_mistral': 2241, 'n_tokens_neox': 2129, 'n_words': 178}