<commit_before>/* Context Player - Audio Player with Contexts
    Copyright (C) 2016, 2017 <NAME>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package jp.ddo.masm11.contextplayer.ui

import android.support.v7.widget.Toolbar
import android.app.Fragment
import android.app.Service
import android.app.AlertDialog
import android.webkit.WebView
import android.webkit.WebSettings
import android.webkit.JavascriptInterface
import android.view.View
import android.view.ViewGroup
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuItem
import android.view.MenuInflater
import android.os.Bundle
import android.os.IBinder
import android.content.Context
import android.content.Intent
import android.content.DialogInterface
import android.content.ServiceConnection
import android.content.ComponentName
import android.content.pm.PackageManager
import android.content.pm.PackageInfo

import kotlinx.android.synthetic.main.actionbar_fragment.view.*

import java.io.InputStream
import java.io.InputStreamReader
import java.io.Reader
import java.io.IOException

import jp.ddo.masm11.contextplayer.R

import jp.ddo.masm11.logger.Log

class ActionBarFragment : Fragment() {
    private inner class WebAppInterface(private val context: Context) {
        val appVersion: String
            @JavascriptInterface
            get() {
                try {
                    val pm = context.packageManager
                    val pi = pm.getPackageInfo("jp.ddo.masm11.contextplayer", 0)
                    return pi.versionName
                } catch (e: PackageManager.NameNotFoundException) {
                    Log.e("namenotfoundexception", e)
                }

                return "???"<commit_msg>余計な例外処理を外していくか?<commit_after>/* Context Player - Audio Player with Contexts
    Copyright (C) 2016, 2017 <NAME>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package jp.ddo.masm11.contextplayer.ui

import android.support.v7.widget.Toolbar
import android.app.Fragment
import android.app.Service
import android.app.AlertDialog
import android.webkit.WebView
import android.webkit.WebSettings
import android.webkit.JavascriptInterface
import android.view.View
import android.view.ViewGroup
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuItem
import android.view.MenuInflater
import android.os.Bundle
import android.os.IBinder
import android.content.Context
import android.content.Intent
import android.content.DialogInterface
import android.content.ServiceConnection
import android.content.ComponentName
import android.content.pm.PackageManager
import android.content.pm.PackageInfo

import kotlinx.android.synthetic.main.actionbar_fragment.view.*

import java.io.InputStream
import java.io.InputStreamReader
import java.io.Reader
import java.io.IOException

import jp.ddo.masm11.contextplayer.R

import jp.ddo.masm11.logger.Log

class ActionBarFragment : Fragment() {
    private inner class WebAppInterface(private val context: Context) {
        val appVersion: String
            @JavascriptInterface
            get() {
                val pm = context.packageManager
                val pi = pm.getPackageInfo("jp.ddo.masm11.contextplayer", 0)
                return pi.versionName
{'fraction_non_alphanumeric': 0.06588973554459883, 'fraction_numerical': 0.008516360376512775, 'mean_word_length': 3.535569105691057, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4046027', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1142, 'n_words': 397}