<commit_before>package cmput301w15t07.TravelTracker.activity;


import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.UUID;

import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.SparseArray;
import android.widget.ImageView;
import android.widget.Toast;
import cmput301w15t07.TravelTracker.R;
import cmput301w15t07.TravelTracker.model.Item;
import cmput301w15t07.TravelTracker.serverinterface.MultiCallback;
import cmput301w15t07.TravelTracker.serverinterface.ResultCallback;

/*
 *   Copyright 2015 <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

public class ReceiptImageViewActivity extends TravelTrackerActivity {

	
	/** UUID of the item */
	private Uri imageUri;
	
	@Override
	public void updateActivity() {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.receipt_image_view);
		Bundle bundle = getIntent().getExtras();
		 imageUri = (Uri) bundle.getSerializable("Uri");
		 //Toast.makeText(this, imageUri.toString(), Toast.LENGTH_LONG).show();
		 try {
			loadImage(imageUri);
		} catch (FileNotFoundException e) {
			Toast.makeText(this, "File Not Found", Toast.LENGTH_SHORT).show();
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	protected void loadImage(Uri uri) throws FileNotFoundException, IOException{
		ImageView imageView = (ImageView) findViewById(R.id.receipt_image_veiw_imageView);
		Bitmap bitmap = null;
			//bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);
		if (bitmap != null) {
			//imageView.setImageBitmap(bitmap);
		}
		else{
			Toast.makeText(this, "bitmap is null", Toast.LENGTH_SHORT).show();
		}
		
	}
}<commit_msg>Properly noted method should be empty.<commit_after>package cmput301w15t07.TravelTracker.activity;


import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.UUID;

import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.SparseArray;
import android.widget.ImageView;
import android.widget.Toast;
import cmput301w15t07.TravelTracker.R;
import cmput301w15t07.TravelTracker.model.Item;
import cmput301w15t07.TravelTracker.serverinterface.MultiCallback;
import cmput301w15t07.TravelTracker.serverinterface.ResultCallback;

/*
 *   Copyright 2015 <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>,
 *                  <NAME>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

public class ReceiptImageViewActivity extends TravelTrackerActivity {
	
	/** UUID of the item */
	private Uri imageUri;
	
	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.receipt_image_view);
		Bundle bundle = getIntent().getExtras();
		 imageUri = (Uri) bundle.getSerializable("Uri");
		 //Toast.makeText(this, imageUri.toString(), Toast.LENGTH_LONG).show();
		 try {
			loadImage(imageUri);
		} catch (FileNotFoundException e) {
			Toast.makeText(this, "File Not Found", Toast.LENGTH_SHORT).show();
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
    /**
     * There is no dataset in LoginActivity.
     * Called in onResume() and update(DataSource observable).
     */
    @Override
    public void updateActivity() {
        // Do nothing
    }
	
	protected void loadImage(Uri uri) throws FileNotFoundException, IOException{
		ImageView imageView = (ImageView) findViewById(R.id.receipt_image_veiw_imageView);
		Bitmap bitmap = null;
			//bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);
		if (bitmap != null) {
			//imageView.setImageBitmap(bitmap);
		}
		else{
			Toast.makeText(this, "bitmap is null", Toast.LENGTH_SHORT).show();
		}
		
	}
}
{'fraction_non_alphanumeric': 0.10325156873930405, 'fraction_numerical': 0.016352918805856625, 'mean_word_length': 3.679715302491103, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6204152', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1492, 'n_words': 411}