<commit_before>package lecho.lib.hellocharts.renderer;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;

import java.util.ArrayList;
import java.util.List;

import lecho.lib.hellocharts.model.Viewport;
import lecho.lib.hellocharts.view.Chart;

public class ComboChartRenderer extends AbstractChartRenderer {

	protected List<ChartRenderer> renderers;
	protected Viewport unionViewport = new Viewport();
	protected Rect unionContentRectWithAxesMargins = new Rect();
	protected Rect unionContentRectWithAllMargins = new Rect();

	public ComboChartRenderer(Context context, Chart chart) {
		super(context, chart);
		this.renderers = new ArrayList<>();
	}

	@Override
	public void onChartSizeChanged() {
		for (ChartRenderer renderer : renderers) {
			renderer.onChartSizeChanged();
		}
	}

	@Override
	public void onChartDataChanged() {
		super.onChartDataChanged();
		for (ChartRenderer renderer : renderers) {
			renderer.onChartDataChanged();
		}
		onChartViewportChanged();
	}

	@Override
	public void onChartViewportChanged() {
		if (isViewportCalculationEnabled) {
			int rendererIndex = 0;
			for (ChartRenderer renderer : renderers) {
				renderer.onChartViewportChanged();
				if (rendererIndex == 0) {<commit_msg>Removed unused members from ComboChartRenderer<commit_after>package lecho.lib.hellocharts.renderer;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;

import java.util.ArrayList;
import java.util.List;

import lecho.lib.hellocharts.model.Viewport;
import lecho.lib.hellocharts.view.Chart;

public class ComboChartRenderer extends AbstractChartRenderer {

	protected List<ChartRenderer> renderers;
	protected Viewport unionViewport = new Viewport();

	public ComboChartRenderer(Context context, Chart chart) {
		super(context, chart);
		this.renderers = new ArrayList<>();
	}

	@Override
	public void onChartSizeChanged() {
		for (ChartRenderer renderer : renderers) {
			renderer.onChartSizeChanged();
		}
	}

	@Override
	public void onChartDataChanged() {
		super.onChartDataChanged();
		for (ChartRenderer renderer : renderers) {
			renderer.onChartDataChanged();
		}
		onChartViewportChanged();
	}

	@Override
	public void onChartViewportChanged() {
		if (isViewportCalculationEnabled) {
			int rendererIndex = 0;
			for (ChartRenderer renderer : renderers) {
				renderer.onChartViewportChanged();
				if (rendererIndex == 0) {
{'fraction_non_alphanumeric': 0.09582309582309582, 'fraction_numerical': 0.001638001638001638, 'mean_word_length': 5.3785900783289815, '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': '4047704', 'n_tokens_mistral': 779, 'n_tokens_neox': 731, 'n_words': 166}