<commit_before>/**
 * AndTinder v0.1 for Android
 *
 * @Author: <NAME> <<EMAIL>>
 * http://www.lopez-manas.com
 *
 * TAndTinder is a native library for Android that provide a
 * Tinder card like effect. A card can be constructed using an
 * image and displayed with animation effects, dismiss-to-like
 * and dismiss-to-unlike, and use different sorting mechanisms.
 *
 * AndTinder is compatible with API Level 13 and upwards
 * @copyright: <NAME>
 * @license: Apache License 2.0
 */

package com.andtinder.demo;

import com.andtinder.model.Orientations;
import com.andtinder.view.BindableCardStackAdapter;
import com.andtinder.view.CardContainer;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

public class DifferentCardActivity extends Activity {

    /**
     * This variable is the container that will host our cards
     */
    private CardContainer mCardContainer;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.mainlayout);

        mCardContainer = (CardContainer) findViewById(R.id.layoutview);

        BindableCardStackAdapter adapter = new BindableCardStackAdapter(this);
        adapter.registerAdapterDataBinder(new DifferentCardBinder(this));
        adapter.setWrapperBackgroundResource(android.R.color.white);

        adapter.add(new DifferentCard("Title1", "Description goes here"));
        adapter.add(new DifferentCard("Title2", "Description goes here"));
        adapter.add(new DifferentCard("Title3", "Description goes here"));
        adapter.add(new DifferentCard("Title4", "Description goes here"));

        mCardContainer.setAdapter(adapter);
        mCardContainer.setOrientation(Orientations.Orientation.Ordered);
    }
}<commit_msg>DifferentCartActivity now uses adapter.addAll() and setMaxVisible()<commit_after>/**
 * AndTinder v0.1 for Android
 *
 * @Author: <NAME> <<EMAIL>>
 * http://www.lopez-manas.com
 *
 * TAndTinder is a native library for Android that provide a
 * Tinder card like effect. A card can be constructed using an
 * image and displayed with animation effects, dismiss-to-like
 * and dismiss-to-unlike, and use different sorting mechanisms.
 *
 * AndTinder is compatible with API Level 13 and upwards
 * @copyright: <NAME>
 * @license: Apache License 2.0
 */

package com.andtinder.demo;

import com.andtinder.model.Orientations;
import com.andtinder.view.BindableCardStackAdapter;
import com.andtinder.view.CardContainer;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

import java.util.ArrayList;

public class DifferentCardActivity extends Activity {

    /**
     * This variable is the container that will host our cards
     */
    private CardContainer mCardContainer;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.mainlayout);

        mCardContainer = (CardContainer) findViewById(R.id.layoutview);

        BindableCardStackAdapter adapter = new BindableCardStackAdapter(this);
        adapter.registerAdapterDataBinder(new DifferentCardBinder(this));
        adapter.setWrapperBackgroundResource(android.R.color.white);

        ArrayList<Object> cards = new ArrayList<Object>();
        cards.add(new DifferentCard("Title1", "Description goes here"));
        cards.add(new DifferentCard("Title2", "Description goes here"));
        cards.add(new DifferentCard("Title3", "Description goes here"));
        cards.add(new DifferentCard("Title4", "Description goes here"));

        adapter.addAll(cards);

        mCardContainer.setMaxVisible(3);
        mCardContainer.setAdapter(adapter);
        mCardContainer.setOrientation(Orientations.Orientation.Ordered);
    }
}
{'fraction_non_alphanumeric': 0.09854480469747255, 'fraction_numerical': 0.005361245851416901, 'mean_word_length': 4.062015503875969, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4671911', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1046, 'n_words': 275}