<commit_before>package be.pxl.filmapp;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.android.volley.Cache;
import com.android.volley.Network;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.BasicNetwork;
import com.android.volley.toolbox.DiskBasedCache;
import com.android.volley.toolbox.HurlStack;
import com.android.volley.toolbox.JsonArrayRequest;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import org.json.JSONArray;

import java.io.IOException;
import java.util.List;

import be.pxl.filmapp.data.bean.MovieBean;

public class MovieDetailActivity extends AppCompatActivity  {

    private MovieBean movie;
    public static final String MOVIE_OBJECT = "be.pxl.movieapp.MOVIE_OBJECT";
    TextView textMovieTitle;
    TextView textYearField;
    TextView ratingField ;
    TextView descField ;
    ImageView backgroundImageField;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_movie_detail);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
         textMovieTitle = (TextView) findViewById(R.id.titleField);
         textYearField = (TextView) findViewById(R.id.yearField);
         ratingField = (TextView) findViewById(R.id.ratingField);
         descField = (TextView) findViewById(R.id.descriptionField);
        backgroundImageField = (ImageView) findViewById(R.id.backgroundImage);

        MovieBean Film;
        Film=readDisplayStateValues();
        initializeDisplayContent(Film);

    }

    private MovieBean readDisplayStateValues() {
        Intent intent = getIntent();
//        final int position = intent.getIntExtra("position", -1);
        movie = intent.getParcelableExtra(this.MOVIE_OBJECT);
        movie.toString();

return movie;
    }

    private void initializeDisplayContent(MovieBean film) {

//        View view=(View) findViewById(R.id.filmDetailLayout);

        film.getTitle().toString();
        film.getRating().toString();
        film.getYear().toString();
        film.getDirector().toString();

        textMovieTitle.setText(film.getTitle());
        textYearField.setText(film.getYear());
        ratingField.setText(film.getRating());
        descField.setText(film.getDirector());
        String name=film.getTitle().toLowerCase();
        String afb=name.replace(" ","_");
        Context context = backgroundImageField.getContext();
        int id = context.getResources().getIdentifier(afb, "drawable", context.getPackageName());
        backgroundImageField.setImageResource(id);

    }



}<commit_msg>achtergrond fix<commit_after>package be.pxl.filmapp;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.android.volley.Cache;
import com.android.volley.Network;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.BasicNetwork;
import com.android.volley.toolbox.DiskBasedCache;
import com.android.volley.toolbox.HurlStack;
import com.android.volley.toolbox.JsonArrayRequest;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import org.json.JSONArray;

import java.io.IOException;
import java.util.List;

import be.pxl.filmapp.data.bean.MovieBean;

public class MovieDetailActivity extends AppCompatActivity  {

    private MovieBean movie;
    public static final String MOVIE_OBJECT = "be.pxl.movieapp.MOVIE_OBJECT";
    TextView textMovieTitle;
    TextView textYearField;
    TextView ratingField ;
    TextView descField ;
    ImageView backgroundImageField;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_movie_detail);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
         textMovieTitle = (TextView) findViewById(R.id.titleField);
         textYearField = (TextView) findViewById(R.id.yearField);
         ratingField = (TextView) findViewById(R.id.ratingField);
         descField = (TextView) findViewById(R.id.descriptionField);
        backgroundImageField = (ImageView) findViewById(R.id.backgroundImage);

        MovieBean Film;
        Film=readDisplayStateValues();
        initializeDisplayContent(Film);

    }

    private MovieBean readDisplayStateValues() {
        Intent intent = getIntent();
//        final int position = intent.getIntExtra("position", -1);
        movie = intent.getParcelableExtra(this.MOVIE_OBJECT);
        movie.toString();

return movie;
    }

    private void initializeDisplayContent(MovieBean film) {

//        View view=(View) findViewById(R.id.filmDetailLayout);

        film.getTitle().toString();
        film.getRating().toString();
        film.getYear().toString();
        film.getDirector().toString();

        textMovieTitle.setText(film.getTitle());
        textYearField.setText(film.getYear());
        ratingField.setText(film.getRating());
        descField.setText(film.getDirector());
        String name=film.getTitle().toLowerCase();
        String afb=name.replace(" ","_");
        Context context = backgroundImageField.getContext();
        int id = context.getResources().getIdentifier(afb, "drawable", context.getPackageName());
        backgroundImageField.setImageAlpha(80);
        backgroundImageField.setImageResource(id);

    }



}
{'fraction_non_alphanumeric': 0.10708166761850371, 'fraction_numerical': 0.001142204454597373, 'mean_word_length': 4.188888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2272589', 'n_tokens_mistral': 2010, 'n_tokens_neox': 1905, 'n_words': 340}