<commit_before># Copyright © 2017 Collabora Ltd.
#
# This file is part of pfg.
#
# pfg 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.
#
# pfg 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.
#
# You should have received a copy of the GNU Lesser General Public License
# along with pfg. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
#   <NAME> <<EMAIL>>

from .format_description import FormatDescription
from . import util
import re

pixman_re = re.compile("PIXMAN_(?P<components>(?:[argbxcg][0-9]+)+)")

pixman_formats = [
    # 32-bit
    "PIXMAN_a8r8g8b8",
    "PIXMAN_x8r8g8b8",
    "PIXMAN_a8b8g8r8",
    "PIXMAN_x8b8g8r8",
    "PIXMAN_b8g8r8a8",
    "PIXMAN_b8g8r8x8",
    "PIXMAN_r8g8b8a8",
    "PIXMAN_r8g8b8x8",
    "PIXMAN_x14r6g6b6",
    "PIXMAN_x2r10g10b10",
    "PIXMAN_a2r10g10b10",
    "PIXMAN_x2b10g10r10",
    "PIXMAN_a2b10g10r10",
    "PIXMAN_a8r8g8b8_sRGB",
    # 24-bit
    "PIXMAN_a8r8g8b8",
    "PIXMAN_r8g8b8",<commit_msg>pfg: Remove duplicate format from pixman format list<commit_after># Copyright © 2017 Collabora Ltd.
#
# This file is part of pfg.
#
# pfg 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.
#
# pfg 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.
#
# You should have received a copy of the GNU Lesser General Public License
# along with pfg. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
#   <NAME> <<EMAIL>>

from .format_description import FormatDescription
from . import util
import re

pixman_re = re.compile("PIXMAN_(?P<components>(?:[argbxcg][0-9]+)+)")

pixman_formats = [
    # 32-bit
    "PIXMAN_a8r8g8b8",
    "PIXMAN_x8r8g8b8",
    "PIXMAN_a8b8g8r8",
    "PIXMAN_x8b8g8r8",
    "PIXMAN_b8g8r8a8",
    "PIXMAN_b8g8r8x8",
    "PIXMAN_r8g8b8a8",
    "PIXMAN_r8g8b8x8",
    "PIXMAN_x14r6g6b6",
    "PIXMAN_x2r10g10b10",
    "PIXMAN_a2r10g10b10",
    "PIXMAN_x2b10g10r10",
    "PIXMAN_a2b10g10r10",
    "PIXMAN_a8r8g8b8_sRGB",
    # 24-bit
    "PIXMAN_r8g8b8",
{'fraction_non_alphanumeric': 0.09903201787043932, 'fraction_numerical': 0.06403574087862993, 'mean_word_length': 4.041275797373358, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3655495', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1050, 'n_words': 293}