<commit_before>package com.speryans.PhotoViewer.PhotoActivity;

import uk.co.senab.photoview.PhotoViewAttacher;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.speryans.PhotoViewer.helpers.ImageLoader.ImageLoader;
import com.speryans.PhotoViewer.helpers.ImageLoader.ImageLoader.ImageListener;
import com.speryans.palmira.R;

public class PhotoActivity extends Activity implements ImageListener {

	private PhotoViewAttacher mAttacher;

	private ImageView photo;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_photo);
		
		String image = this.getIntent().getStringExtra("url");

		photo = (ImageView) findViewById(R.id.photoView);
		
		ImageLoader image_loader = new ImageLoader(this, android.R.color.transparent);
		image_loader.displayImage(image, photo, 100, this);
		
		mAttacher = new PhotoViewAttacher(photo);
		
		// Just hide the screen controls
		((LinearLayout) this.findViewById(R.id.fullscreen_content_controls)).setVisibility(View.GONE);
	}

	@Override
	public void imageLoaded(String url) {
		photo.setVisibility(View.VISIBLE);
		mAttacher.update();
	}<commit_msg>Removed reference to wrong R and changed the way to get resources<commit_after>package com.speryans.PhotoViewer.PhotoActivity;

import uk.co.senab.photoview.PhotoViewAttacher;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.speryans.PhotoViewer.helpers.ImageLoader.ImageLoader;
import com.speryans.PhotoViewer.helpers.ImageLoader.ImageLoader.ImageListener;

public class PhotoActivity extends Activity implements ImageListener {

	private PhotoViewAttacher mAttacher;

	private ImageView photo;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView( getApplication().getResources().getIdentifier("activity_photo", "layout", getApplication().getPackageName()) );
		
		String image = this.getIntent().getStringExtra("url");

		photo = (ImageView) findViewById( getApplication().getResources().getIdentifier("photoView", "id", getApplication().getPackageName()) );
		
		ImageLoader image_loader = new ImageLoader(this, android.R.color.transparent);
		image_loader.displayImage(image, photo, 100, this);
		
		mAttacher = new PhotoViewAttacher(photo);
		
		// Just hide the screen controls
		((LinearLayout) this.findViewById( getApplication().getResources().getIdentifier("fullscreen_content_controls", "id", getApplication().getPackageName()) )).setVisibility(View.GONE);
	}

	@Override
	public void imageLoaded(String url) {
		photo.setVisibility(View.VISIBLE);
		mAttacher.update();
	}
{'fraction_non_alphanumeric': 0.10624123422159888, 'fraction_numerical': 0.0021037868162692847, 'mean_word_length': 6.278061224489796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2244482', 'n_tokens_mistral': 883, 'n_tokens_neox': 797, 'n_words': 163}