<commit_before>package dk.itu.smdp.group2.questionnaire;

import java.util.List;

import dk.itu.smdp.group2.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import dk.itu.smdp.group2.questionnaire.model.*;

public class QuestionsFragment extends Fragment {
	
	private Questionnaire init() {
		// THIS IS WHERE AUTO GENERATED SHOULD CREATE OBJECTS
		// AND PUT THEM IN THE SCROLLVIEW'S LINEAR LAYOUT
		
        Questionnaire questionnaire = new Questionnaire(this.getActivity(), "Food Questions", "<EMAIL>");
        
        //TextQuestion text;
        ChoiceQuestion choice;
        //MatrixQuestion matrix;
        //CalendarQuestion calendar;
        IntegerQuestion integer;
       
        questionnaire.addHeading(new Heading("Eating habits"));
       
        questionnaire.addParagraph(new Paragraph("Tell me about your eating habits"));
       
        integer = new IntegerQuestion("How often do you eat in a week!?", "", false, 1, 10, 3);
        questionnaire.addQuestion(integer);
       
        //text = new TextQuestion("What is your favorite recipe?", "Please enter the entire recipe", true, 4);
        //questionnaire.addQuestion(text);
       
        //calendar = new CalendarQuestion("When did you last eat?", "", true, false, true, true, true, true);
        //questionnaire.addQuestion(calendar);
       
        choice = new ChoiceQuestion("Which of the folowing do you like the best?", "", true, 2, 2);
        choice.addOption("pasta", "Pasta");
        choice.addOption("pasta2", "Meat");
        choice.addOption("pasta1", "Whatever");
        choice.addOption("", "Nothing");
        questionnaire.addQuestion(choice);
       
        choice = new ChoiceQuestion("Do you have taste buds?", "", true, 1, 1);
        choice.addOption("yes", "Yes");
        choice.addOption("a_little", "A little");<commit_msg>Added a generated question to android app<commit_after>package dk.itu.smdp.group2.questionnaire;

import java.util.List;

import dk.itu.smdp.group2.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import dk.itu.smdp.group2.questionnaire.model.*;

public class QuestionsFragment extends Fragment {
	
	private Questionnaire init() {
		// THIS IS WHERE AUTO GENERATED SHOULD CREATE OBJECTS
		// AND PUT THEM IN THE SCROLLVIEW'S LINEAR LAYOUT
		
        Questionnaire questionnaire = new Questionnaire(this.getActivity(), "Food Questions", "<EMAIL>");
        
        TextQuestion text;
        ChoiceQuestion choice;
        //MatrixQuestion matrix;
        //CalendarQuestion calendar;
        IntegerQuestion integer;
       
        questionnaire.addHeading(new Heading("Eating habits"));
       
        questionnaire.addParagraph(new Paragraph("Tell me about your eating habits"));
       
        integer = new IntegerQuestion("How often do you eat in a week!?", "", false, 1, 10, 3);
        questionnaire.addQuestion(integer);
       
        text = new TextQuestion("What is your favorite recipe?", "Please enter the entire recipe", true, 4);
        questionnaire.addQuestion(text);
       
        //calendar = new CalendarQuestion("When did you last eat?", "", true, false, true, true, true, true);
        //questionnaire.addQuestion(calendar);
       
        choice = new ChoiceQuestion("Which of the folowing do you like the best?", "", true, 2, 2);
        choice.addOption("pasta", "Pasta");
        choice.addOption("pasta2", "Meat");
        choice.addOption("pasta1", "Whatever");
        choice.addOption("", "Nothing");
        questionnaire.addQuestion(choice);
       
        choice = new ChoiceQuestion("Do you have taste buds?", "", true, 1, 1);
        choice.addOption("yes", "Yes");
        choice.addOption("a_little", "A little");
{'fraction_non_alphanumeric': 0.11732101616628175, 'fraction_numerical': 0.006466512702078522, 'mean_word_length': 3.2502453385672228, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3020437', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1159, 'n_words': 331}