<commit_before>package com.jjoe64.graphviewdemos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.GraphView.GraphViewData;

public class SimpleGraph extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		// graph with dynamically genereated horizontal and vertical labels
		GraphView graphView = new GraphView(
				this
				, new GraphViewData[] {
						new GraphViewData(1, 2.0d)
						, new GraphViewData(2, 1.5d)
						, new GraphViewData(2.5, 3.0d) // another frequency
						, new GraphViewData(3, 2.5d)
						, new GraphViewData(4, 1.0d)
						, new GraphViewData(5, 3.0d)
				}
				, "GraphViewDemo"
				, null
				, null
		);
		LinearLayout layout = (LinearLayout) findViewById(R.id.graph1);
		layout.addView(graphView);

		// graph with custom labels
		graphView = new GraphView(
				this
				, new GraphViewData[] {
						new GraphViewData(1, 2.0d)
						, new GraphViewData(2, 1.5d)
						, new GraphViewData(2.5, 3.0d) // another frequency
						, new GraphViewData(3, 2.5d)
						, new GraphViewData(4, 1.0d)
						, new GraphViewData(5, 3.0d)
				}
				, "GraphViewDemo"
				, new String[] {"2 days ago", "yesterday", "today", "tomorrow"}
				, new String[] {"high", "middle", "low"}
		);
		layout = (LinearLayout) findViewById(R.id.graph2);
		layout.addView(graphView);
	}
}<commit_msg>background for graph2<commit_after>package com.jjoe64.graphviewdemos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.GraphView.GraphViewData;

public class SimpleGraph extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		// graph with dynamically genereated horizontal and vertical labels
		GraphView graphView = new GraphView(
				this
				, new GraphViewData[] {
						new GraphViewData(1, 2.0d)
						, new GraphViewData(2, 1.5d)
						, new GraphViewData(2.5, 3.0d) // another frequency
						, new GraphViewData(3, 2.5d)
						, new GraphViewData(4, 1.0d)
						, new GraphViewData(5, 3.0d)
				}
				, "GraphViewDemo"
				, null
				, null
		);
		LinearLayout layout = (LinearLayout) findViewById(R.id.graph1);
		layout.addView(graphView);

		// graph with custom labels and drawBackground
		graphView = new GraphView(
				this
				, new GraphViewData[] {
						new GraphViewData(1, 2.0d)
						, new GraphViewData(2, 1.5d)
						, new GraphViewData(2.5, 3.0d) // another frequency
						, new GraphViewData(3, 2.5d)
						, new GraphViewData(4, 1.0d)
						, new GraphViewData(5, 3.0d)
				}
				, "GraphViewDemo"
				, new String[] {"2 days ago", "yesterday", "today", "tomorrow"}
				, new String[] {"high", "middle", "low"}
		);
		graphView.setDrawBackground(true);
		layout = (LinearLayout) findViewById(R.id.graph2);
		layout.addView(graphView);
	}
}
{'fraction_non_alphanumeric': 0.12218045112781954, 'fraction_numerical': 0.02976190476190476, 'mean_word_length': 3.367989056087551, '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': '5099314', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1054, 'n_words': 249}