<commit_before><?xml version="1.0" ?>
<node name="/Channel_Type_Text" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
  <tp:copyright> Copyright (C) 2005, 2006 Collabora Limited </tp:copyright>
  <tp:copyright> Copyright (C) 2005, 2006 Nokia Corporation </tp:copyright>
  <tp:copyright> Copyright (C) 2006 INdT </tp:copyright>
  <tp:license xmlns="http://www.w3.org/1999/xhtml">
    <p>This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.</p>

<p>This library 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
Lesser General Public License for more details.</p>

<p>You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
  </tp:license>
  <interface name="org.freedesktop.Telepathy.Channel.Type.Text">
    <tp:requires interface="org.freedesktop.Telepathy.Channel"/>

    <tp:simple-type name="Message_ID" type="u"/>

    <tp:struct name="Pending_Text_Message" array-name="Pending_Text_Message_List">
      <tp:docstring>A struct (message ID, timestamp in seconds since
        1970-01-01 00:00 UTC, sender's handle, message type, flags, text)
        representing a pending text message, as returned by ListPendingMessages
        on the Text channel type. The arguments of the Received signal
        also match this struct's signature.</tp:docstring>
      <tp:member type="u" tp:type="Message_ID" name="Identifier"/>
      <tp:member type="u" tp:type="Unix_Timestamp" name="Unix_Timestamp"/>
      <tp:member type="u" tp:type="Contact_Handle" name="Sender"/>
      <tp:member type="u" tp:type="Channel_Text_Message_Type"
                 name="Message_Type"/>
      <tp:member type="u" tp:type="Channel_Text_Message_Flags" name="Flags"/>
      <tp:member type="s" name="Text"/>
    </tp:struct>

    <method name="AcknowledgePendingMessages">
      <arg direction="in" name="ids" type="au" tp:type="Message_ID[]">
        <tp:docstring>
          The IDs of the messages to acknowledge
        </tp:docstring>
      </arg>
      <tp:docstring>
        Inform the channel that you have handled messages by displaying them to
        the user (or equivalent), so they can be removed from the pending queue.
        If appropriate, receipt of the messages SHOULD be acknowledged.
      </tp:docstring>
      <tp:possible-errors>
        <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument">
          <tp:docstring>
            A given message ID was not found, so no action was taken
          </tp:docstring>
        </tp:error>
      </tp:possible-errors>
    </method>

    <method name="GetMessageTypes">
      <arg direction="out" type="au" tp:type="Channel_Text_Message_Type[]">
        <tp:docstring><commit_msg>Let AcknowledgePendingMessages raise NetworkError (in case it's actually sending acks on the network)<commit_after><?xml version="1.0" ?>
<node name="/Channel_Type_Text" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
  <tp:copyright> Copyright (C) 2005, 2006 Collabora Limited </tp:copyright>
  <tp:copyright> Copyright (C) 2005, 2006 Nokia Corporation </tp:copyright>
  <tp:copyright> Copyright (C) 2006 INdT </tp:copyright>
  <tp:license xmlns="http://www.w3.org/1999/xhtml">
    <p>This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.</p>

<p>This library 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
Lesser General Public License for more details.</p>

<p>You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
  </tp:license>
  <interface name="org.freedesktop.Telepathy.Channel.Type.Text">
    <tp:requires interface="org.freedesktop.Telepathy.Channel"/>

    <tp:simple-type name="Message_ID" type="u"/>

    <tp:struct name="Pending_Text_Message" array-name="Pending_Text_Message_List">
      <tp:docstring>A struct (message ID, timestamp in seconds since
        1970-01-01 00:00 UTC, sender's handle, message type, flags, text)
        representing a pending text message, as returned by ListPendingMessages
        on the Text channel type. The arguments of the Received signal
        also match this struct's signature.</tp:docstring>
      <tp:member type="u" tp:type="Message_ID" name="Identifier"/>
      <tp:member type="u" tp:type="Unix_Timestamp" name="Unix_Timestamp"/>
      <tp:member type="u" tp:type="Contact_Handle" name="Sender"/>
      <tp:member type="u" tp:type="Channel_Text_Message_Type"
                 name="Message_Type"/>
      <tp:member type="u" tp:type="Channel_Text_Message_Flags" name="Flags"/>
      <tp:member type="s" name="Text"/>
    </tp:struct>

    <method name="AcknowledgePendingMessages">
      <arg direction="in" name="ids" type="au" tp:type="Message_ID[]">
        <tp:docstring>
          The IDs of the messages to acknowledge
        </tp:docstring>
      </arg>
      <tp:docstring>
        Inform the channel that you have handled messages by displaying them to
        the user (or equivalent), so they can be removed from the pending queue.
        If appropriate, receipt of the messages SHOULD be acknowledged.
      </tp:docstring>
      <tp:possible-errors>
        <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument">
          <tp:docstring>
            A given message ID was not found, so no action was taken
          </tp:docstring>
        </tp:error>
        <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
      </tp:possible-errors>
    </method>

    <method name="GetMessageTypes">
      <arg direction="out" type="au" tp:type="Channel_Text_Message_Type[]">
        <tp:docstring>
{'fraction_non_alphanumeric': 0.1144186046511628, 'fraction_numerical': 0.016434108527131782, 'mean_word_length': 3.7785185185185184, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 2, '>': 96, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '3278286', 'n_tokens_mistral': 1951, 'n_tokens_neox': 1848, 'n_words': 617}