<commit_before>package com.jsbs.android.foursquare;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;


/***
 * Activity showing an EditText to get a place through the Foursquare API. 
 *  Parameters for entry into the intent:<p>
 * 
 * <b>EXTRA_LATITUDE<br>
 * EXTRA_LONGITUDE<br>
 * EXTRA_QUERY</b><br>
 * 
 * @author jsberrocoso
 *
 */
public class VenueSearchActivity extends Activity{
    
    public static final String EXTRA_LATITUDE                       = "lat";
    public static final String EXTRA_LONGITUDE                      = "lng";
    
    public static final int    REQUEST_CODE_FOURSQUARE_VENUE_SEARCH = 200;
    public static final  String EXTRA_QUERY = "query";
    
    @Override
    protected void onCreate( Bundle savedInstanceState){
        super.onCreate( savedInstanceState);
        setContentView( R.layout.activity_main);
 
        String lat =  getIntent( ).getExtras( ).getString( EXTRA_LATITUDE);
        String lng =  getIntent( ).getExtras( ).getString( EXTRA_LONGITUDE);
        String query =  getIntent( ).getExtras( ).getString( EXTRA_QUERY);
   
        if( !checkDataIntent( lat,lng)){
            setupDataByFoursquare( lat,lng, query);
        }else {
            Toast.makeText( VenueSearchActivity.this, getString( R.string.error_to_get_extra_data),Toast.LENGTH_SHORT).show();
        }   
    }

    /**
     * Inicializes the components to start performing Venue in Foursquare.
     * @param lat
     * @param lng
     * @param query
     */
    private void setupDataByFoursquare( String lat, String lng, String query){
        
        
        
    }

    /**
     * Check data form Intent.
     * @param lat
     * @param lng
     * @return
     */
    private boolean checkDataIntent( String lat, String lng){      
        if( lat != null && lng != null) {
            return true;
        } else {
            return false;
        }     
    }

   
    
    @Override
    public void onBackPressed( ){
        super.onBackPressed( );
        setResult( Activity.RESULT_CANCELED);
    }
    
}<commit_msg>-Add info links<commit_after>package com.jsbs.android.foursquare;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;


/***
 * Activity showing an EditText to get a place through the
 * <a href="https://developer.foursquare.com/start/search">Foursquare API</a>.<br>
 *  Parameters for entry into the intent:<p>
 * 
 * <b>EXTRA_LATITUDE<br>
 * EXTRA_LONGITUDE<br>
 * EXTRA_QUERY</b><br>
 * 
 * @author jsberrocoso
 *
 */
public class VenueSearchActivity extends Activity{
    
    public static final String EXTRA_LATITUDE                       = "lat";
    public static final String EXTRA_LONGITUDE                      = "lng";
    
    public static final int    REQUEST_CODE_FOURSQUARE_VENUE_SEARCH = 200;
    public static final  String EXTRA_QUERY = "query";
    
    @Override
    protected void onCreate( Bundle savedInstanceState){
        super.onCreate( savedInstanceState);
        setContentView( R.layout.activity_main);
 
        String lat =  getIntent( ).getExtras( ).getString( EXTRA_LATITUDE);
        String lng =  getIntent( ).getExtras( ).getString( EXTRA_LONGITUDE);
        String query =  getIntent( ).getExtras( ).getString( EXTRA_QUERY);
   
        if( !checkDataIntent( lat,lng)){
            setupDataByFoursquare( lat,lng, query);
        }else {
            Toast.makeText( VenueSearchActivity.this, getString( R.string.error_to_get_extra_data),Toast.LENGTH_SHORT).show();
        }   
    }

    /**
     * Inicializes the components to start performing Venue in Foursquare.
     * @param lat
     * @param lng
     * @param query
     */
    private void setupDataByFoursquare( String lat, String lng, String query){
        
        /**
         * NOTE : 
         * https://github.com/ddewaele/AndroidFoursquareGoogleApiJavaClient/blob/master/src/com/ecs/android/foursquare/FoursquareVenueList.java
         * http://stackoverflow.com/questions/16315854/how-to-get-foursquare-venues-list-android
         */
        
    }

    /**
     * Check data form Intent.
     * @param lat
     * @param lng
     * @return
     */
    private boolean checkDataIntent( String lat, String lng){      
        if( lat != null && lng != null) {
            return true;
        } else {
            return false;
        }     
    }

   
    
    @Override
    public void onBackPressed( ){
        super.onBackPressed( );
        setResult( Activity.RESULT_CANCELED);
    }
    
}
{'fraction_non_alphanumeric': 0.1009922822491731, 'fraction_numerical': 0.0030871003307607497, 'mean_word_length': 2.277456647398844, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '6650980', 'n_tokens_mistral': 1441, 'n_tokens_neox': 1390, 'n_words': 318}