<commit_before>package com.greenyetilab.equiv.ui;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.greenyetilab.equiv.core.Meal;

/**
 * Custom tab showing meal_view name and protide weight
 */
public class MealTabView extends LinearLayout implements Meal.Listener {
    private final Meal mMeal;
    private final TextView mProtideView;

    public MealTabView(Context context, Meal meal) {
        super(context);
        mMeal = meal;
        mMeal.registerListener(this);

        TextView nameView = new TextView(context);
        nameView.setText(meal.getName());

        mProtideView = new TextView(context);

        setOrientation(VERTICAL);
        addView(nameView);
        addView(mProtideView);

        updateFromMeal();
    }

    public void updateFromMeal() {
        mProtideView.setText(String.format("%.1g g", mMeal.getProtideWeight()));
    }

    @Override<commit_msg>Format fix<commit_after>package com.greenyetilab.equiv.ui;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.greenyetilab.equiv.core.Meal;

/**
 * Custom tab showing meal_view name and protide weight
 */
public class MealTabView extends LinearLayout implements Meal.Listener {
    private final Meal mMeal;
    private final TextView mProtideView;

    public MealTabView(Context context, Meal meal) {
        super(context);
        mMeal = meal;
        mMeal.registerListener(this);

        TextView nameView = new TextView(context);
        nameView.setText(meal.getName());

        mProtideView = new TextView(context);

        setOrientation(VERTICAL);
        addView(nameView);
        addView(mProtideView);

        updateFromMeal();
    }

    public void updateFromMeal() {
        mProtideView.setText(String.format("%.1f g", mMeal.getProtideWeight()));
    }

    @Override
{'fraction_non_alphanumeric': 0.0963855421686747, 'fraction_numerical': 0.0010476689366160294, 'mean_word_length': 3.282511210762332, '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': '6539153', 'n_tokens_mistral': 588, 'n_tokens_neox': 549, 'n_words': 122}