<commit_before>package org.oxygine.billing;

import android.app.Activity;
import android.app.PendingIntent;
import android.content.*;
import android.content.pm.ApplicationInfo;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Base64;
import android.util.Log;
import com.android.vending.billing.IInAppBillingService;
//import com.google.android.gms.analytics.HitBuilders;
//import com.google.android.gms.analytics.Tracker;
import org.json.JSONException;
import org.json.JSONObject;

import java.security.*;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Denis on 27.01.14.
 */
public class BillingGoogle extends Billing {
    private static final String TAG = "SDL";
    static String ORDER_ID = "";
    String _publicKey;
    Map<String, ItemData> prices = new HashMap<String, ItemData>();
    IInAppBillingService _service;
    ServiceConnection _serviceConn = new ServiceConnection() {
        @Override
        public void onServiceDisconnected(ComponentName name) {
            _service = null;
            
            Log.d(TAG, "billing.service disconnected");
            return;
                    
        }

        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            _service = IInAppBillingService.Stub.asInterface(service);
            Log.d(TAG, "billing.service connected");
        }
    };

    public BillingGoogle(String publicKey) {
        _publicKey = publicKey;
    }

    @Override
    public String getCurrency() {
        if (!prices.isEmpty()) {
            String firstKey = prices.keySet().iterator().next();
            return prices.get(firstKey).curCode;
        }

        return "";
    }

    @Override
    public String getName()
    {
        return "google";
    }
<commit_msg>cleanup<commit_after>package org.oxygine.billing;

import android.app.Activity;
import android.app.PendingIntent;
import android.content.*;
import android.content.pm.ApplicationInfo;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Base64;
import android.util.Log;
import com.android.vending.billing.IInAppBillingService;
//import com.google.android.gms.analytics.HitBuilders;
//import com.google.android.gms.analytics.Tracker;
import org.json.JSONException;
import org.json.JSONObject;

import java.security.*;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Denis on 27.01.14.
 */
public class BillingGoogle extends Billing {

    private static final String TAG = "SDL";

    Map<String, ItemData> prices = new HashMap<String, ItemData>();    
    IInAppBillingService _service;

    ServiceConnection _serviceConn = new ServiceConnection() {
        @Override
        public void onServiceDisconnected(ComponentName name) {
            _service = null;
            
            Log.d(TAG, "billing.service disconnected");
            return;
                    
        }

        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            _service = IInAppBillingService.Stub.asInterface(service);
            Log.d(TAG, "billing.service connected");
        }
    };

    public BillingGoogle() {
    }

    @Override
    public String getCurrency() {
        if (!prices.isEmpty()) {
            String firstKey = prices.keySet().iterator().next();
            return prices.get(firstKey).curCode;
        }

        return "";
    }

    @Override
    public String getName()
    {
        return "google";
    }

{'fraction_non_alphanumeric': 0.10299869621903521, 'fraction_numerical': 0.005736636245110821, 'mean_word_length': 2.8865248226950353, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6740994', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1072, 'n_words': 234}