<commit_before>package micc.theguardiansapp;

import android.media.MediaPlayer;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ScrollView;

import com.daimajia.slider.library.Animations.*;
import com.daimajia.slider.library.SliderLayout;
import com.daimajia.slider.library.SliderTypes.BaseSliderView;

public class NYCActivity extends ActionBarActivity {

    private ScrollView scrollView;
    private ViewGroup contentView;
    private ViewGroup[] fragContainer;
    ImageView audioButton1;
    ImageView audioButton2;

    boolean audio1playing = false;
    boolean audio2playing = false;

    MediaPlayer mPlayer;

    SliderLayout sliderShowNYC;
    SliderLayout sliderShowNYC2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_nyc);
        setTitle("New York City");

        scrollView = (ScrollView) findViewById(R.id.scroll_view_nyc);
        contentView = (ViewGroup) findViewById(R.id.scrolledLayout_nyc);

        fragContainer = new ViewGroup[2];
        fragContainer[0] = (ViewGroup) findViewById(R.id.fragContainer0_nyc);
        fragContainer[1] = (ViewGroup) findViewById(R.id.fragContainer1_nyc);


        MyScrollPager scrollPager = new MyScrollPager(scrollView, contentView, fragContainer, true, false);
        scrollView.setOnTouchListener(scrollPager);

        scrollView.post(new Runnable() {
            public void run() {
                scrollView.scrollTo(0, contentView.getPaddingTop());<commit_msg>Aggiunta galleria NYCActivity<commit_after>package micc.theguardiansapp;

import android.media.MediaPlayer;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ScrollView;

import com.daimajia.slider.library.Animations.*;
import com.daimajia.slider.library.SliderLayout;
import com.daimajia.slider.library.SliderTypes.BaseSliderView;

public class NYCActivity extends ActionBarActivity {

    private ScrollView scrollView;
    private ViewGroup contentView;
    private ViewGroup[] fragContainer;
    ImageView audioButton1;
    ImageView audioButton2;

    boolean audio1playing = false;
    boolean audio2playing = false;

    MediaPlayer mPlayer;

    SliderLayout sliderShowNYC;
    SliderLayout sliderShowNYC2;
    SliderLayout sliderShowNYC3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_nyc);
        setTitle("New York City");

        scrollView = (ScrollView) findViewById(R.id.scroll_view_nyc);
        contentView = (ViewGroup) findViewById(R.id.scrolledLayout_nyc);

        fragContainer = new ViewGroup[3];
        fragContainer[0] = (ViewGroup) findViewById(R.id.fragContainer0_nyc);
        fragContainer[1] = (ViewGroup) findViewById(R.id.fragContainer1_nyc);
        fragContainer[2] = (ViewGroup) findViewById(R.id.fragContainer2_nyc);


        MyScrollPager scrollPager = new MyScrollPager(scrollView, contentView, fragContainer, true, false);
        scrollView.setOnTouchListener(scrollPager);

        scrollView.post(new Runnable() {
            public void run() {
                scrollView.scrollTo(0, contentView.getPaddingTop());
{'fraction_non_alphanumeric': 0.08803110247153569, 'fraction_numerical': 0.007497917245209664, 'mean_word_length': 4.1976911976911975, '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': '2556327', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1019, 'n_words': 200}