<commit_before><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="nodomain.freeyourgadget.gadgetbridge">

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="21" />

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.fsck.k9.permission.READ_MESSAGES" />

    <uses-feature
        android:name="android.hardware.bluetooth"
        android:required="true" />
    <uses-feature
        android:name="android.hardware.bluetooth_le"
        android:required="false" />

    <application
        android:name=".GBApplication"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/GadgetbridgeTheme">
        <activity
            android:name=".ControlCenter"
            android:label="@string/title_activity_controlcenter">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".SettingsActivity"
            android:label="@string/title_activity_settings">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".ControlCenter" />
        </activity>
        <activity
            android:name=".miband.MiBandPreferencesActivity"
            android:label="@string/preferences_miband_settings">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".SettingsActivity" />
        </activity>
        <activity
            android:name=".AppManagerActivity"
            android:label="@string/title_activity_appmanager">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".ControlCenter" />
        </activity>
        <activity
            android:name=".activities.FwAppInstallerActivity"
            android:label="@string/title_activity_fw_app_insaller">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="nodomain.freeyourgadget.gadgetbridge.ControlCenter" />
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />

                <data android:mimeType="*/*" /> <!-- needed for android 5 -->

                <data android:host="*" />
                <data android:scheme="file" />

                <!-- as seen on openkeychain repo: https://github.com/open-keychain/open-keychain/blob/master/OpenKeychain/src/main/AndroidManifest.xml -->

                <data android:pathPattern=".*\\.fw" />
                <data android:pathPattern=".*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />

            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />

                <data android:host="*" />
                <data android:scheme="file" />

                <!-- as seen on openkeychain repo: https://github.com/open-keychain/open-keychain/blob/master/OpenKeychain/src/main/AndroidManifest.xml -->

                <data android:pathPattern=".*\\.pbw" />
                <data android:pathPattern=".*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />

                <data android:pathPattern=".*\\.pbz" />
                <data android:pathPattern=".*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />

            </intent-filter>
        </activity>
        <service
            android:name=".externalevents.NotificationListener"
            android:label="@string/app_name"
            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />
            </intent-filter>
        </service>
        <service android:name=".BluetoothCommunicationService" /><commit_msg>Double the filter sections for opening pebble apps/firmwares and miband firmwares<commit_after><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="nodomain.freeyourgadget.gadgetbridge">

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="21" />

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.fsck.k9.permission.READ_MESSAGES" />

    <uses-feature
        android:name="android.hardware.bluetooth"
        android:required="true" />
    <uses-feature
        android:name="android.hardware.bluetooth_le"
        android:required="false" />

    <application
        android:name=".GBApplication"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/GadgetbridgeTheme">
        <activity
            android:name=".ControlCenter"
            android:label="@string/title_activity_controlcenter">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".SettingsActivity"
            android:label="@string/title_activity_settings">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".ControlCenter" />
        </activity>
        <activity
            android:name=".miband.MiBandPreferencesActivity"
            android:label="@string/preferences_miband_settings">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".SettingsActivity" />
        </activity>
        <activity
            android:name=".AppManagerActivity"
            android:label="@string/title_activity_appmanager">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".ControlCenter" />
        </activity>
        <activity
            android:name=".activities.FwAppInstallerActivity"
            android:label="@string/title_activity_fw_app_insaller">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="nodomain.freeyourgadget.gadgetbridge.ControlCenter" />
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />

                <data android:mimeType="*/*" /> <!-- needed for aosp-derived ROMs? -->

                <data android:host="*" />
                <data android:scheme="file" />

                <!-- as seen on openkeychain repo: https://github.com/open-keychain/open-keychain/blob/master/OpenKeychain/src/main/AndroidManifest.xml -->

                <data android:pathPattern=".*\\.fw" />
                <data android:pathPattern=".*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />

                <data android:pathPattern=".*\\.pbw" />
                <data android:pathPattern=".*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />

                <data android:pathPattern=".*\\.pbz" />
                <data android:pathPattern=".*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />

            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />

                <!-- no mimeType filter, needed for CM-derived ROMs? -->

                <data android:host="*" />
                <data android:scheme="file" />

                <!-- as seen on openkeychain repo: https://github.com/open-keychain/open-keychain/blob/master/OpenKeychain/src/main/AndroidManifest.xml -->

                <data android:pathPattern=".*\\.fw" />
                <data android:pathPattern=".*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />

                <data android:pathPattern=".*\\.pbw" />
                <data android:pathPattern=".*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />

                <data android:pathPattern=".*\\.pbz" />
                <data android:pathPattern=".*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
                <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />

            </intent-filter>
        </activity>
        <service
            android:name=".externalevents.NotificationListener"
            android:label="@string/app_name"
            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />
            </intent-filter>
        </service>
        <service android:name=".BluetoothCommunicationService" />
{'fraction_non_alphanumeric': 0.26601417905765734, 'fraction_numerical': 0.0010665662839575883, 'mean_word_length': 1.5027476840948344, 'pattern_counts': {'":': 0, '<': 204, '<?xml version=': 2, '>': 204, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '1341843', 'n_tokens_mistral': 5206, 'n_tokens_neox': 4973, 'n_words': 449}