<commit_before>package com.example.aoc.project_arnold.Activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import com.example.aoc.project_arnold.Adapters.RecordsAdapter;
import com.example.aoc.project_arnold.Objects.Record;
import com.example.aoc.project_arnold.R;

import java.util.ArrayList;

public class RecordsActivity extends AppCompatActivity {
    private  ListView lv;
    private  Record record = new Record();
    private ArrayList<Record> records =new ArrayList<Record>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_records);

        record.setExercises("Lejanka");
        record.setImgs(R.drawable.gyrdi_lejanka);
        record.setKg("100");
        record.setReps("10");
        record.setDate("5.5.2015");

        records.add(record);
        record=new Record();
        record.setExercises("Klek");
        record.setImgs(R.drawable.sedalishte_klek_shtanga);
        record.setKg("120");
        record.setReps("8");
        record.setDate("4.3.2015");
        records.add(record);

       //Set records to list view for exercises
        lv= (ListView) findViewById(R.id.lv_records);
        //Create custom adapter
        RecordsAdapter recordsAdapter = new RecordsAdapter(this,R.layout.record_model, records);
        lv.setAdapter(recordsAdapter); // set adapter to lv

    }
}<commit_msg>Little work<commit_after>package com.example.aoc.project_arnold.Activities;

import android.content.res.AssetManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.util.Xml;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import com.example.aoc.project_arnold.Adapters.RecordsAdapter;
import com.example.aoc.project_arnold.Objects.Record;
import com.example.aoc.project_arnold.R;

import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

public class RecordsActivity extends AppCompatActivity {
    private ListView lv;
    private Record record = new Record();
    private ArrayList<Record> records = new ArrayList<Record>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_records);

        record.setExercises("Lejanka");
        record.setImgs(R.drawable.gyrdi_lejanka);
        record.setKg("100");
        record.setReps("10");
        record.setDate("5.5.2015");
        records.add(record);


        //Set records to list view for exercises
        lv = (ListView) findViewById(R.id.lv_records);
        //Create custom adapter
        RecordsAdapter recordsAdapter = new RecordsAdapter(this, R.layout.record_model, records);
        lv.setAdapter(recordsAdapter); // set adapter to lv



    }


    private void fillData(){
        Record temp = new Record();
        String[] recordsExercises = getResources().getStringArray(R.array.traning_records);
        for(int i=1;i<recordsExercises.length;i++){
            temp.setExercises(recordsExercises[0]);
            switch (i){
                case 1: temp.setImgs(R.drawable.gyrdi_lejanka); break;
                case 2: temp.setImgs(R.drawable.bedra_klek_shtanga); break;
                case 3: temp.setImgs(R.drawable.gryb_myrtva_tqga); break;
                case 4: temp.setImgs(R.drawable.biceps_shtanga); break;
                case 5: temp.setImgs(R.drawable.biceps_skotovo); break;
                case 6: temp.setImgs(R.drawable.triceps_lejanka); break;
                case 7: temp.setImgs(R.drawable.triceps_frensko); break;
                case 8: temp.setImgs(R.drawable.bedra_leg_presa); break;
                case 9: temp.setImgs(R.drawable.biceps_sgyvane_dymbeli); break;
                case 10: temp.setImgs(R.drawable.gryb_chukcheta); break;
            }
        }
    }



}
{'fraction_non_alphanumeric': 0.10951276102088167, 'fraction_numerical': 0.01160092807424594, 'mean_word_length': 3.2389380530973453, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '7665347', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1298, 'n_words': 235}