<commit_before>package com.psychic_engine.cmput301w17t10.feelsappman;

import android.content.Intent;
import android.icu.text.MessagePattern;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;

//SelfNewsFeedActivity named, I dont know which activity it corresponds to in the UML -Alex

public class SelfNewsFeedActivity extends AppCompatActivity {
    private ArrayList<Participant> selfParticipant;
    private Participant singleParticipant;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // testing CreateMoodActivity
        //Intent intent = new Intent(this, CreateMoodActivity.class);
        //startActivity(intent);

        Gson gsonIn = new Gson();
<<<<<<< HEAD
        String gsonObject = getIntent().getStringExtra("participantListObjects");
        Type listType = new TypeToken<ArrayList<Participant>>() {}.getType();
        selfParticipant = gsonIn.fromJson(gsonObject, listType);
        System.out.println(selfParticipant);
=======
        Intent intentIn = getIntent();
        Type listType = new TypeToken<ArrayList<Participant>>(){}.getType();
        String gsonObject = getIntent().getStringExtra("participantListObjects");
        selfParticipant = gsonIn.fromJson(gsonObject, listType);
>>>>>>> be1cb7afa1ffc7056e0f7138dbbd81caae0beb26

    }
}<commit_msg>minor<commit_after>package com.psychic_engine.cmput301w17t10.feelsappman;

import android.content.Intent;
import android.icu.text.MessagePattern;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;

//SelfNewsFeedActivity named, I dont know which activity it corresponds to in the UML -Alex

public class SelfNewsFeedActivity extends AppCompatActivity {
    private ArrayList<Participant> selfParticipant;
    private Participant singleParticipant;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // testing CreateMoodActivity
        //Intent intent = new Intent(this, CreateMoodActivity.class);
        //startActivity(intent);

        Gson gsonIn = new Gson();
        String gsonObject = getIntent().getStringExtra("participantListObjects");
        Type listType = new TypeToken<ArrayList<Participant>>() {}.getType();
        selfParticipant = gsonIn.fromJson(gsonObject, listType);
        System.out.println(selfParticipant);


    }
}
{'fraction_non_alphanumeric': 0.10119887165021156, 'fraction_numerical': 0.0116361071932299, 'mean_word_length': 4.283054003724395, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '263747', 'n_tokens_mistral': 839, 'n_tokens_neox': 792, 'n_words': 167}