<commit_before>package com.example.advstestproject;

import com.example.advstestproject.MainActivity.ResultServiceInterface;

import jp.app_mart.service.AppmartADVSInterface;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
import android.widget.Toast;


public class ADVSHelper {

	//debug状態
	private boolean isDebug = true;	
	//context
	public Context mContext ;
	// appmartパケージ名
	public static final String APP_PACKAGE = "jp.app_mart";
	//Appmartサービスパス
	public static final String APP_PATH = "jp.app_mart.service.AppmartADVSService";
	//appmartサービス
	protected AppmartADVSInterface service;
	//callback
	ResultServiceInterface callback;

	/* CONSTRUCTOR */
	public ADVSHelper(Context context, ResultServiceInterface callback){
		this.mContext=context;
		this.callback=callback;
	}

	public void verifyInstallSource(){

		// appmartサービスに接続するためのIntentオブジェクトを生成
		Intent i = new Intent();
		i.setClassName(APP_PACKAGE, APP_PATH);

		if (mContext.getPackageManager().queryIntentServices(i, 0).isEmpty()) {
			debugMess("appmartがインストールされてないようです。");
			callback.isValid(false);
			return;
		}

		//サービス接続
        ServiceConnection mConnection = new ServiceConnection() {
            //接続時実行
            public void onServiceConnected(ComponentName name, IBinder boundService) {
                service = AppmartADVSInterface.Stub.asInterface((IBinder) boundService);
                debugMess("Appmartに接続しました。");<commit_msg>change access level for member<commit_after>package com.example.advstestproject;

import com.example.advstestproject.MainActivity.ResultServiceInterface;

import jp.app_mart.service.AppmartADVSInterface;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
import android.widget.Toast;


public class ADVSHelper {

	//debug状態
	private boolean isDebug = true;	
	//context
	public Context mContext ;
	// appmartパケージ名
	public static final String APP_PACKAGE = "jp.app_mart";
	//Appmartサービスパス
	public static final String APP_PATH = "jp.app_mart.service.AppmartADVSService";
	//appmartサービス
	protected AppmartADVSInterface service;
	//callback
	public ResultServiceInterface callback;

	/* CONSTRUCTOR */
	public ADVSHelper(Context context, ResultServiceInterface callback){
		this.mContext=context;
		this.callback=callback;
	}

	public void verifyInstallSource(){

		// appmartサービスに接続するためのIntentオブジェクトを生成
		Intent i = new Intent();
		i.setClassName(APP_PACKAGE, APP_PATH);

		if (mContext.getPackageManager().queryIntentServices(i, 0).isEmpty()) {
			debugMess("appmartがインストールされてないようです。");
			callback.isValid(false);
			return;
		}

		//サービス接続
        ServiceConnection mConnection = new ServiceConnection() {
            //接続時実行
            public void onServiceConnected(ComponentName name, IBinder boundService) {
                service = AppmartADVSInterface.Stub.asInterface((IBinder) boundService);
                debugMess("Appmartに接続しました。");
{'fraction_non_alphanumeric': 0.09237445753254804, 'fraction_numerical': 0.0006199628022318661, 'mean_word_length': 4.602430555555555, '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': '246505', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1007, 'n_words': 194}