<commit_before>package solutions.alterego.androidbound.example;

import com.alterego.advancedandroidlogger.interfaces.IAndroidLogger;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import lombok.Getter;
import lombok.experimental.Accessors;
import solutions.alterego.androidbound.ViewModel;
import solutions.alterego.androidbound.interfaces.IDisposable;

@Accessors(prefix = "m")
public class MainBindableActivityViewModel extends ViewModel implements IDisposable {

    @Getter
    private String mMainActivityTitle;

    @Getter
    private String mOpenNormalActivityText;

    @Getter
    private boolean mTextViewVisible = false;

    public MainBindableActivityViewModel(Activity activity, IAndroidLogger logger) {
        setLogger(logger);
        setParentActivity(activity);

        setMainActivityTitle("Bindable Activity");
        setOpenNormalActivityText("Open Normal Activity");
    }

    public void setMainActivityTitle(String title) {
        mMainActivityTitle = title;
        raisePropertyChanged("MainActivityTitle");
    }

    public void setOpenNormalActivityText(String title) {
        mOpenNormalActivityText = title;
        raisePropertyChanged("OpenNormalActivityText");
    }

    @Override
    public void dispose() {
        //do nothing
    }

    @Override
    public void onCreate(Bundle outState) {
        //do nothing
    }

    @Override
    public void onResume() {
        //do nothing
    }

    @Override
    public void onPause() {
        //do nothing
    }

    @Override
    public void onSaveInstanceState(Bundle outState) {
        //do nothing
    }

    public boolean canOpenNormalActivity() {
        return true;
    }

    public void doOpenNormalActivity() {
        Intent activityIntent = new Intent(getParentActivity(), MainActivity.class);
        if (getParentActivity() != null) {
            getParentActivity().startActivity(activityIntent);
        }
    }

    public boolean canRelativeLayoutClick() {
        return true;
    }

    public void doRelativeLayoutClick() {
        Toast.makeText(getParentActivity(), "clicked relative layout!", Toast.LENGTH_SHORT).show();
    }

    public boolean canToggleTextViewVisibility() {
        return true;
    }

    public void doToggleTextViewVisibility() {
        setTextViewVisible(!isTextViewVisible());
    }

    public void setTextViewVisible(boolean visible) {
        mTextViewVisible = visible;
        raisePropertyChanged("TextViewVisible");
    }

    public String getImageViewSourceUrl() {
        return "http://www.24sata.rs/resources/images/0000/056/479/cetinjska10_RAS_foto%20ana%20paunkovic_1000x0.jpg";
    }
}<commit_msg>changed bindable activity example image url to google logo<commit_after>package solutions.alterego.androidbound.example;

import com.alterego.advancedandroidlogger.interfaces.IAndroidLogger;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import lombok.Getter;
import lombok.experimental.Accessors;
import solutions.alterego.androidbound.ViewModel;
import solutions.alterego.androidbound.interfaces.IDisposable;

@Accessors(prefix = "m")
public class MainBindableActivityViewModel extends ViewModel implements IDisposable {

    @Getter
    private String mMainActivityTitle;

    @Getter
    private String mOpenNormalActivityText;

    @Getter
    private boolean mTextViewVisible = false;

    public MainBindableActivityViewModel(Activity activity, IAndroidLogger logger) {
        setLogger(logger);
        setParentActivity(activity);

        setMainActivityTitle("Bindable Activity");
        setOpenNormalActivityText("Open Normal Activity");
    }

    public void setMainActivityTitle(String title) {
        mMainActivityTitle = title;
        raisePropertyChanged("MainActivityTitle");
    }

    public void setOpenNormalActivityText(String title) {
        mOpenNormalActivityText = title;
        raisePropertyChanged("OpenNormalActivityText");
    }

    @Override
    public void dispose() {
        //do nothing
    }

    @Override
    public void onCreate(Bundle outState) {
        //do nothing
    }

    @Override
    public void onResume() {
        //do nothing
    }

    @Override
    public void onPause() {
        //do nothing
    }

    @Override
    public void onSaveInstanceState(Bundle outState) {
        //do nothing
    }

    public boolean canOpenNormalActivity() {
        return true;
    }

    public void doOpenNormalActivity() {
        Intent activityIntent = new Intent(getParentActivity(), MainActivity.class);
        if (getParentActivity() != null) {
            getParentActivity().startActivity(activityIntent);
        }
    }

    public boolean canRelativeLayoutClick() {
        return true;
    }

    public void doRelativeLayoutClick() {
        Toast.makeText(getParentActivity(), "clicked relative layout!", Toast.LENGTH_SHORT).show();
    }

    public boolean canToggleTextViewVisibility() {
        return true;
    }

    public void doToggleTextViewVisibility() {
        setTextViewVisible(!isTextViewVisible());
    }

    public void setTextViewVisible(boolean visible) {
        mTextViewVisible = visible;
        raisePropertyChanged("TextViewVisible");
    }

    public String getImageViewSourceUrl() {
        return "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png";
    }
}
{'fraction_non_alphanumeric': 0.0843505192202587, 'fraction_numerical': 0.005283293860448169, 'mean_word_length': 3.236111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2684683', 'n_tokens_mistral': 1484, 'n_tokens_neox': 1421, 'n_words': 310}