<commit_before>package uk.co.sftrabbit.stacksync;

import android.app.ListFragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import java.lang.String;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;

public class SitesFragment extends ListFragment {
  private ArrayList<Site> sites = new ArrayList<Site>() {{
    add(new Site("Stack Overflow",
      "Professional and enthusiast programmers", 0));
    add(new Site("Super User",
      "Computer enthusiasts and power users", 0));
    add(new Site("Webmasters",
      "Pro webmasters", 0));
    add(new Site("Game Development",
      "Professional and independent game developers", 0));
    add(new Site("Photography",
      "Professional, enthusiast and amateur photographers", 0));
    add(new Site("Mathematics", "People studying math at any" +
      "level and professionals in related fields", 0));
    add(new Site("Home Improvement",
      "Contractors and serious DIYers", 0));
  }};

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setListAdapter(new SitesAdapter(getActivity(), sites,
      R.layout.list_item_site));
  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    final View view = super.onCreateView(inflater, container,
      savedInstanceState);
    ListView listView =
      (ListView) view.findViewById(android.R.id.list);
    listView.setPadding(16, 0, 16, 0);
    listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);

    return view; 
  }<commit_msg>Remove magic numbers for list padding<commit_after>package uk.co.sftrabbit.stacksync;

import android.app.ListFragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import java.lang.String;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;

public class SitesFragment extends ListFragment {
  private ArrayList<Site> sites = new ArrayList<Site>() {{
    add(new Site("Stack Overflow",
      "Professional and enthusiast programmers", 0));
    add(new Site("Super User",
      "Computer enthusiasts and power users", 0));
    add(new Site("Webmasters",
      "Pro webmasters", 0));
    add(new Site("Game Development",
      "Professional and independent game developers", 0));
    add(new Site("Photography",
      "Professional, enthusiast and amateur photographers", 0));
    add(new Site("Mathematics", "People studying math at any" +
      "level and professionals in related fields", 0));
    add(new Site("Home Improvement",
      "Contractors and serious DIYers", 0));
  }};

  private static final int LIST_PADDING_HORIZONTAL = 16;
  private static final int LIST_PADDING_VERTICAL = 0;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setListAdapter(new SitesAdapter(getActivity(), sites,
      R.layout.list_item_site));
  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    final View view = super.onCreateView(inflater, container,
      savedInstanceState);
    ListView listView =
      (ListView) view.findViewById(android.R.id.list);
    listView.setPadding(LIST_PADDING_HORIZONTAL, LIST_PADDING_VERTICAL,
      LIST_PADDING_HORIZONTAL, LIST_PADDING_VERTICAL);
    listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);

    return view; 
  }
{'fraction_non_alphanumeric': 0.10317060895822848, 'fraction_numerical': 0.005787619526925012, 'mean_word_length': 4.6223479490806225, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4733041', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1109, 'n_words': 295}