<commit_before>import os

config = {
    # Meta data the belongs to the extension
    "name": "",
    "creator": "",
    "description": "",
    "version": "",
    "extension_id": "",
    "homepage": "",
    "icon": "",
    "license": "",
    "update_url": None,

    # which folders to load button data from
    "projects": (),
    # all the image files are put into a bit map if enabled
    "merge_images": False,
    # should a page be shown when the extension is installed
    "show_updated_prompt": False,
    "version_url": "",
    "current_version_pref": "current.version",

    # sets what is added to the extension, this is either a comer seperated
    # list of values, or the special value "all"
    "buttons": "all",
    "applications": "all",
    # this setting may include locals to skip even if we we have them
    # simply specify "all" the a "-" in front of locals to remove
    "locale": "all",
    
    "exclude_buttons": None,

    # these settings change the internals of the extension
    "pref_root": "",
    "chrome_name": "",
    "icon_size": ("16", "24"),
    "image_path": None,
    "include_icons_for_custom_window": False,
    "project_root": "",
    "button_sdk_root": os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)),
    #buttons can be left out if their icon is not in the given set.
    #the default action it to use a place holder image
    "skip_buttons_without_icons": False,
    # if include_toolbars, is positive that many toolbars will be added.
    # if it is -1, a number will be chosen by looking at buttons_per_toolbar
    "include_toolbars": 0,
    "include_satusbars": 0,
    "buttons_per_toolbar": 32,
    # if the buttons should be added to the new toolbars.
    # if all buttons can't fix given buttons_per_toolbar they will be left out
    "put_button_on_toolbar": True,
    # a list of buttons to be loaded onto the main toolbar
    "add_to_main_toolbar": None,
    # if a menu should be added with all the buttons that can be changed into menu items
    "menuitems": (),
    "menu_meta": None,
    "default_show_menu_pref": "true",
    # where the menu should be placed
    # it it is None, all buttons will be placed in a submenu
    # if a string, all buttons will be placed in that menu
    # if a dict each button will be placed in the named location
    # if a tuple, in what is named in the tuple, which should be the id of the menu, and insert point
    "menu_placement": None,

    # if set, the disciption will be change to list the buttons in the extension
    # and if there is only one button, also the title and icon will be change
    "fix_meta": False,
    # if the setting is included so that the discription can be translated
    "translate_description": False,
    # load the extended_option.xul file
    "extra_options":False,
    # use the more extended versions of some buttons
    "extended_buttons": False,
    # make the extension use the bootstrap.js and be restartless
    "restartless": False,

    # controls for the locales
    "default_locale": "en-US",
    "include_local_meta": False,
    # what is done with strings that are missing, values are replace, skip, empty or search
    "missing_strings": "replace",
    "locale_file_prefix": "",

    # keyboard short cuts
    "use_keyboard_shortcuts": False,
    "keyboard_custom_keys": {},

    "output_folder": "extensions",
    "output_file": "%(chrome_name)s-%(version)s.xpi",

    # parts of the extension are copied here, if set
    "profile_folder": None,
    
    # set when trying to create buttons for the custombuttons extension
    "custom_button_mode": False,
    
    # this is a prefix that is auto added to button when using the start button script
    "new_button_prefix": "",

    # the below sets application support
    "applications_data": {
        "browser":   (
                      ("Firefox", "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", "20.0", "38.0"),
                      ("Pale Moon", "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}", "20.0", "25.*")
                      ),
        "messenger": (
                      ("Thunderbird", "{3550f703-e582-4d05-9a08-453d09bdfdc6}","20.0", "38.0"),
                      ("Postbox", "<EMAIL>", "1.0.0", "3.0.*")
                      ),
        #"calendar":  (
        #              ("Sunbird", "{718e30fb-e89b-41dd-9da7-e25a45638b28}", "1.0b1", "1.0pre"),
        #              ),
        "suite": (
                      ("SeaMonkey", "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}", "2.20", "2.38"),
                      ),
    },
    "files_to_overlay": {
        "browser": ("chrome://browser/content/browser.xul", ),
        "suite_browser": ("chrome://navigator/content/navigator.xul", ),
        "mail": ("chrome://messenger/content/messenger.xul", ),
        "compose": ("chrome://messenger/content/messengercompose/messengercompose.xul", ),
        "read": ("chrome://messenger/content/messageWindow.xul", ),
        "calendar": ("chrome://calendar/content/calendar.xul", "chrome://sunbird/content/calendar.xul"),
        "lightning": ("chrome://lightning/content/lightning-toolbar.xul", ),
        "mail-header": ("chrome://messenger/content/msgHdrViewOverlay.xul",),
        "mail-address-book": ("chrome://messenger/content/addressbook/addressbook.xul", )
    },
    "files_to_window": {
        "browser": ("chrome://browser/content/browser.xul", ),
        "suite_browser": ("chrome://navigator/content/navigator.xul", ),
        "mail": ("chrome://messenger/content/messenger.xul", ),
        "compose": ("chrome://messenger/content/messengercompose/messengercompose.xul", ),
        "read": ("chrome://messenger/content/messageWindow.xul", ),
        "calendar": ("chrome://calendar/content/calendar.xul", "chrome://sunbird/content/calendar.xul"),
        "lightning": ("chrome://messenger/content/messenger.xul", ),
        "mail-header": ("chrome://messenger/content/messenger.xul", "chrome://messenger/content/messageWindow.xul"),
        "mail-address-book": ("chrome://messenger/content/addressbook/addressbook.xul", )
    },
    "file_to_application": {
         "browser": ("browser", "suite"),
         "messenger": ("messenger", "suite"),
         "mail": ("messenger", "suite"),
         "compose": ("messenger", "suite"),
         "read": ("messenger", "suite"),
         "calendar": ("calendar", "suite"),
         "lightning": ("messenger",),
         "mail-header": ("messenger", ),
         "mail-address-book": ("messenger", ),
         "suite_browser": ("suite", )
    },
    "file_to_name": {
         "browser": "Firefox",
         "messenger": "Thunderbird All Windows",
         "mail": "Thunderbird Main Window",
         "compose": "Thunderbird Compose Window",
         "read": "Thunderbird Read Window",
         "calendar": "Sunbird",
         "lightning": "Lightning",
         "mail-header": "Mail Header",
         "mail-address-book": "Address Book",
         "suite_browser": "SeaMonkey",
    },
    "file_map": {
        "loader": ("browser","mail","compose","read","calendar","lightning","suite_browser"),
        "button": ("browser","mail","compose","read","calendar","lightning","suite_browser"),
        "messenger": ("mail", "compose", "read"),
        "calendar": ("lightning", "calendar"),
        "browser": ("browser", "suite_browser"),
    },
     # order is important
    "file_map_keys": ["loader","button", "messenger", "calendar", "browser"],
    "file_to_palette": {
         "browser": "BrowserToolbarPalette",
         "mail": "MailToolbarPalette",
         "compose": "MsgComposeToolbarPalette",
         "read": "MailToolbarPalette",
         "calendar": "calendarToolbarPalette",
         "lightning": "MailToolbarPalette",
         "mail-header": "header-view-toolbar-palette",
         "mail-address-book": "AddressBookToolbarPalette",
         "suite_browser": "BrowserToolbarPalette",
    },
    # this repeats toolbox, because it has to match the following setting.
    "file_to_toolbar_box": {
        "browser": ("toolbox", "navigator-toolbox"),
        "mail": ("toolbox", "mail-toolbox"),
        "compose": ("toolbox", "compose-toolbox"),
        "read": ("toolbox", "mail-toolbox"),
        "calendar": ("toolbox", "calendar-toolbox"),<commit_msg>adding to file_map to make entry just for Firefox<commit_after>import os

config = {
    # Meta data the belongs to the extension
    "name": "",
    "creator": "",
    "description": "",
    "version": "",
    "extension_id": "",
    "homepage": "",
    "icon": "",
    "license": "",
    "update_url": None,

    # which folders to load button data from
    "projects": (),
    # all the image files are put into a bit map if enabled
    "merge_images": False,
    # should a page be shown when the extension is installed
    "show_updated_prompt": False,
    "version_url": "",
    "current_version_pref": "current.version",

    # sets what is added to the extension, this is either a comer seperated
    # list of values, or the special value "all"
    "buttons": "all",
    "applications": "all",
    # this setting may include locals to skip even if we we have them
    # simply specify "all" the a "-" in front of locals to remove
    "locale": "all",
    
    "exclude_buttons": None,

    # these settings change the internals of the extension
    "pref_root": "",
    "chrome_name": "",
    "icon_size": ("16", "24"),
    "image_path": None,
    "include_icons_for_custom_window": False,
    "project_root": "",
    "button_sdk_root": os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)),
    #buttons can be left out if their icon is not in the given set.
    #the default action it to use a place holder image
    "skip_buttons_without_icons": False,
    # if include_toolbars, is positive that many toolbars will be added.
    # if it is -1, a number will be chosen by looking at buttons_per_toolbar
    "include_toolbars": 0,
    "include_satusbars": 0,
    "buttons_per_toolbar": 32,
    # if the buttons should be added to the new toolbars.
    # if all buttons can't fix given buttons_per_toolbar they will be left out
    "put_button_on_toolbar": True,
    # a list of buttons to be loaded onto the main toolbar
    "add_to_main_toolbar": None,
    # if a menu should be added with all the buttons that can be changed into menu items
    "menuitems": (),
    "menu_meta": None,
    "default_show_menu_pref": "true",
    # where the menu should be placed
    # it it is None, all buttons will be placed in a submenu
    # if a string, all buttons will be placed in that menu
    # if a dict each button will be placed in the named location
    # if a tuple, in what is named in the tuple, which should be the id of the menu, and insert point
    "menu_placement": None,

    # if set, the disciption will be change to list the buttons in the extension
    # and if there is only one button, also the title and icon will be change
    "fix_meta": False,
    # if the setting is included so that the discription can be translated
    "translate_description": False,
    # load the extended_option.xul file
    "extra_options":False,
    # use the more extended versions of some buttons
    "extended_buttons": False,
    # make the extension use the bootstrap.js and be restartless
    "restartless": False,

    # controls for the locales
    "default_locale": "en-US",
    "include_local_meta": False,
    # what is done with strings that are missing, values are replace, skip, empty or search
    "missing_strings": "replace",
    "locale_file_prefix": "",

    # keyboard short cuts
    "use_keyboard_shortcuts": False,
    "keyboard_custom_keys": {},

    "output_folder": "extensions",
    "output_file": "%(chrome_name)s-%(version)s.xpi",

    # parts of the extension are copied here, if set
    "profile_folder": None,
    
    # set when trying to create buttons for the custombuttons extension
    "custom_button_mode": False,
    
    # this is a prefix that is auto added to button when using the start button script
    "new_button_prefix": "",

    # the below sets application support
    "applications_data": {
        "browser":   (
                      ("Firefox", "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", "20.0", "38.0"),
                      ("Pale Moon", "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}", "20.0", "25.*")
                      ),
        "messenger": (
                      ("Thunderbird", "{3550f703-e582-4d05-9a08-453d09bdfdc6}","20.0", "38.0"),
                      ("Postbox", "<EMAIL>", "1.0.0", "3.0.*")
                      ),
        #"calendar":  (
        #              ("Sunbird", "{718e30fb-e89b-41dd-9da7-e25a45638b28}", "1.0b1", "1.0pre"),
        #              ),
        "suite": (
                      ("SeaMonkey", "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}", "2.20", "2.38"),
                      ),
    },
    "files_to_overlay": {
        "browser": ("chrome://browser/content/browser.xul", ),
        "suite_browser": ("chrome://navigator/content/navigator.xul", ),
        "mail": ("chrome://messenger/content/messenger.xul", ),
        "compose": ("chrome://messenger/content/messengercompose/messengercompose.xul", ),
        "read": ("chrome://messenger/content/messageWindow.xul", ),
        "calendar": ("chrome://calendar/content/calendar.xul", "chrome://sunbird/content/calendar.xul"),
        "lightning": ("chrome://lightning/content/lightning-toolbar.xul", ),
        "mail-header": ("chrome://messenger/content/msgHdrViewOverlay.xul",),
        "mail-address-book": ("chrome://messenger/content/addressbook/addressbook.xul", )
    },
    "files_to_window": {
        "browser": ("chrome://browser/content/browser.xul", ),
        "suite_browser": ("chrome://navigator/content/navigator.xul", ),
        "mail": ("chrome://messenger/content/messenger.xul", ),
        "compose": ("chrome://messenger/content/messengercompose/messengercompose.xul", ),
        "read": ("chrome://messenger/content/messageWindow.xul", ),
        "calendar": ("chrome://calendar/content/calendar.xul", "chrome://sunbird/content/calendar.xul"),
        "lightning": ("chrome://messenger/content/messenger.xul", ),
        "mail-header": ("chrome://messenger/content/messenger.xul", "chrome://messenger/content/messageWindow.xul"),
        "mail-address-book": ("chrome://messenger/content/addressbook/addressbook.xul", )
    },
    "file_to_application": {
         "browser": ("browser", "suite"),
         "messenger": ("messenger", "suite"),
         "mail": ("messenger", "suite"),
         "compose": ("messenger", "suite"),
         "read": ("messenger", "suite"),
         "calendar": ("calendar", "suite"),
         "lightning": ("messenger",),
         "mail-header": ("messenger", ),
         "mail-address-book": ("messenger", ),
         "suite_browser": ("suite", )
    },
    "file_to_name": {
         "browser": "Firefox",
         "messenger": "Thunderbird All Windows",
         "mail": "Thunderbird Main Window",
         "compose": "Thunderbird Compose Window",
         "read": "Thunderbird Read Window",
         "calendar": "Sunbird",
         "lightning": "Lightning",
         "mail-header": "Mail Header",
         "mail-address-book": "Address Book",
         "suite_browser": "SeaMonkey",
    },
    "file_map": {
        "loader": ("browser","mail","compose","read","calendar","lightning","suite_browser"),
        "button": ("browser","mail","compose","read","calendar","lightning","suite_browser"),
        "messenger": ("mail", "compose", "read"),
        "calendar": ("lightning", "calendar"),
        "browser": ("browser", "suite_browser"),
        "portal": ("browser", ) # causes them to load into Firefox but not SeaMonkey
    },
     # order is important
    "file_map_keys": ["loader","button", "messenger", "calendar", "browser"],
    "file_to_palette": {
         "browser": "BrowserToolbarPalette",
         "mail": "MailToolbarPalette",
         "compose": "MsgComposeToolbarPalette",
         "read": "MailToolbarPalette",
         "calendar": "calendarToolbarPalette",
         "lightning": "MailToolbarPalette",
         "mail-header": "header-view-toolbar-palette",
         "mail-address-book": "AddressBookToolbarPalette",
         "suite_browser": "BrowserToolbarPalette",
    },
    # this repeats toolbox, because it has to match the following setting.
    "file_to_toolbar_box": {
        "browser": ("toolbox", "navigator-toolbox"),
        "mail": ("toolbox", "mail-toolbox"),
        "compose": ("toolbox", "compose-toolbox"),
        "read": ("toolbox", "mail-toolbox"),
        "calendar": ("toolbox", "calendar-toolbox"),
{'fraction_non_alphanumeric': 0.15246069513884705, 'fraction_numerical': 0.016143605806879104, 'mean_word_length': 2.888056206088993, 'pattern_counts': {'":': 243, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4074394', 'n_tokens_mistral': 5202, 'n_tokens_neox': 4994, 'n_words': 1334}