<commit_before>package com.culturecam.culturecam.app.gui;

import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.culturecam.culturecam.R;
import com.culturecam.culturecam.app.system.ImageDeliveryController;

import android.util.Log;

public class activity_chooseimage extends AppCompatActivity {

    private static final String TAG = "activity_chooseimage";
    private ImageDeliveryController imageDeliveryController;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.v(TAG, "Activity onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chooseimage);

        //ueber den Kontext der App kann man auf die Ressourcen zugreifen
        ImageDeliveryController.getInstance().setContext(getApplicationContext());
    }

    public void onClickedMediaLibraryButton(View view){
        Log.v(TAG, "Button Media Library clicked");

        //Bitmap image = ImageDeliveryController.getInstance().pictureRequestFromMediaLibrary();

    }

    public void onClickedCameraButton(View view){
        Log.v(TAG, "Button Camera clicked");
    }
}<commit_msg>Search for image on button click<commit_after>package com.culturecam.culturecam.app.gui;

import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.culturecam.culturecam.R;
import com.culturecam.culturecam.app.system.ImageDeliveryController;
import com.culturecam.culturecam.app.system.ImageSearchService;

import android.util.Log;

public class activity_chooseimage extends AppCompatActivity {

    private static final String TAG = "activity_chooseimage";
    private ImageDeliveryController imageDeliveryController;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.v(TAG, "Activity onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chooseimage);

        //ueber den Kontext der App kann man auf die Ressourcen zugreifen
        ImageDeliveryController.getInstance().setContext(getApplicationContext());
    }

    public void onClickedMediaLibraryButton(View view){
        Log.v(TAG, "Button Media Library clicked");

        Bitmap image = ImageDeliveryController.getInstance().pictureRequestFromMediaLibrary();
        ImageSearchService.getInstance().searchImage(image);

    }

    public void onClickedCameraButton(View view){
        Log.v(TAG, "Button Camera clicked");
    }
}
{'fraction_non_alphanumeric': 0.08656832298136646, 'fraction_numerical': 0.0007763975155279503, 'mean_word_length': 4.36875, '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': '6444835', 'n_tokens_mistral': 709, 'n_tokens_neox': 660, 'n_words': 152}