<commit_before><?xml version="1.0" encoding="utf-8"?>
<plugin id="Dragooon:WeNotif-Subs">
  <name>Notifications Core (Subscriptions)</name>
  <author email="<EMAIL>" url="http://smf-media.com/">Shitiz "Dragooon" Garg</author>
  <description>Notifications core extension for providing a framework for subscriptions</description>
  <version>1.0</version>

  <actions>
    <action action="subscribe" function="WeNotif_Subs::action" filename="$plugindir/plugin" />
  </actions>

  <hooks>
    <function point="load_theme" function="WeNotif_Subs::hook_load_theme" filename="$plugindir/plugin" />
    <function point="profile_areas" function="WeNotif_Subs::hook_profile_areas" filename="$plugindir/plugin" />

    <provides>
      <!--
        Provides a hook for adding in the subscription's object to the list
          Params passed :
            &$subscribers - An array of <subscriber> => <NotifSubscriber object>, extend this if you want to
                          add a subscription
      -->
      <hook type="function">notification_subscription</hook>
    </provides>
  </hooks>

  <database>
    <tables>
      <table name="{db_prefix}notif_subs" if-exists="update">
        <columns>
          <column name="id_member" type="int" default="0" null="no" />
          <column name="id_object" type="int" default="0" null="no" />
          <column name="type" type="varchar" size="20" default="" null="no" />
          <column name="starttime" type="int" default="0" null="no" />
        </columns>
        <index type="primary">
          <field>id_member</field>
          <field>id_object</field>
          <field>type</field>
        </index>
      </table>
    </tables>
  </database>
</plugin><commit_msg>Add a higher priority for hook call, also fix action's filename parameter<commit_after><?xml version="1.0" encoding="utf-8"?>
<plugin id="Dragooon:WeNotif-Subs">
  <name>Notifications Core (Subscriptions)</name>
  <author email="<EMAIL>" url="http://smf-media.com/"><NAME></author>
  <description>Notifications core extension for providing a framework for subscriptions</description>
  <version>1.0</version>

  <actions>
    <action action="subscribe" function="WeNotif_Subs::action" filename="plugin" />
  </actions>

  <hooks>
    <function point="load_theme" function="WeNotif_Subs::hook_load_theme" filename="$plugindir/plugin" priority="60" />
    <function point="profile_areas" function="WeNotif_Subs::hook_profile_areas" filename="$plugindir/plugin" />

    <provides>
      <!--
        Provides a hook for adding in the subscription's object to the list
          Params passed :
            &$subscribers - An array of <subscriber> => <NotifSubscriber object>, extend this if you want to
                          add a subscription
      -->
      <hook type="function">notification_subscription</hook>
    </provides>
  </hooks>

  <database>
    <tables>
      <table name="{db_prefix}notif_subs" if-exists="update">
        <columns>
          <column name="id_member" type="int" default="0" null="no" />
          <column name="id_object" type="int" default="0" null="no" />
          <column name="type" type="varchar" size="20" default="" null="no" />
          <column name="starttime" type="int" default="0" null="no" />
        </columns>
        <index type="primary">
          <field>id_member</field>
          <field>id_object</field>
          <field>type</field>
        </index>
      </table>
    </tables>
  </database>
</plugin>
{'fraction_non_alphanumeric': 0.15192361696152767, 'fraction_numerical': 0.006178039876439202, 'mean_word_length': 2.940265486725664, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 2, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1303700', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1051, 'n_words': 231}