<commit_before><?xml version="1.0" ?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
<?xml-stylesheet href="chrome://scrapbook/skin/scrapbook.css" type="text/css" ?>
<?xml-stylesheet href="chrome://browser/skin/places/editBookmarkOverlay.css" type="text/css" ?>

<!DOCTYPE dialog SYSTEM "chrome://scrapbook/locale/message.dtd">

<dialog id="sbDetailDialog"
        title="ScrapBook - &sb.detail;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        style="width: 400px;"
        persist="screenX screenY"
        onload="sbCaptureOptions.init();"
        ondialogaccept="return sbCaptureOptions.accept();"
        ondialogcancel="sbCaptureOptions.cancel();">

    <script type="application/x-javascript" src="chrome://scrapbook/content/common.js" />
    <script type="application/x-javascript" src="chrome://scrapbook/content/detail.js" />

    <tabbox flex="1">
        <tabs orient="horizontal">
            <tab label="&sb.prop.general;" />
            <tab label="&sb.prop.comment;" id="sbDetailTabComment" />
        </tabs>
        <tabpanels flex="1">
            <tabpanel orient="vertical">
                <grid style="margin-top:3px;">
                    <columns>
                        <column />
                        <column flex="1" />
                    </columns>
                    <rows>
                        <row align="center" style="margin-bottom:6px;">
                            <label control="sbDetailTitle" value="&sb.prop.title;:" />
                            <menulist id="sbDetailTitle" editable="true" flex="1" />
                        </row>
                        <row id="sbDetailFolderRow" align="center" style="margin-bottom:6px;">
                            <label value="&sb.prop.folder;:" />
                            <hbox>
                                <menulist id="sbFolderList" class="folder-icon" flex="1" onclick="if ( event.button == 1 ) sbFolderSelector.onMiddleClick();" disabled="true">
                                    <menupopup id="sbFolderPopup" oncommand="sbFolderSelector.onChange(event.target.id);" />
                                </menulist>
                                <toolbarbutton id="sbToolbarMove"      tooltiptext="&sb.detail.select.folder;..." oncommand="sbFolderSelector.pick();" />
                            </hbox>
                        </row>
                    </rows>
                </grid>
                <groupbox group="capture-options" style="margin-top:8px;">
                    <caption label="&sb.detail.option;" />
                    <hbox align="center">
                    <caption label="&sb.detail.option.capture;:" />
                        <checkbox id="sbDetailOptionImages" label="&sb.detail.option.images;" />
                        <checkbox id="sbDetailOptionMedia" label="&sb.detail.option.media;" />
                        <checkbox id="sbDetailOptionFonts" label="&sb.detail.option.fonts;" />
                        <checkbox id="sbDetailOptionFrames" label="&sb.detail.option.frames;" />
                        <checkbox id="sbDetailOptionStyles" label="&sb.detail.option.styles;" />
                        <checkbox id="sbDetailOptionScript" label="&sb.detail.option.scripts;" />
                    </hbox>
                    <checkbox id="sbDetailOptionSaveDataURI" label="&sb.detail.option.saveDataURI;" />
                    <checkbox id="sbDetailOptionKeepLink" label="&sb.detail.option.keepLink;" />
                    <checkbox id="sbDetailOptionRewriteStyles" label="&sb.detail.option.rewriteStyles;" />
                    <checkbox id="sbDetailOptionAsHtml" label="&sb.detail.option.asHtml;" />
                </groupbox>
                <groupbox group="capture-options" style="margin-top:8px;">
                    <caption label="&sb.detail.linked.file;" />
                    <menulist id="sbDetailDownLinkMethod" flex="1" value="0">
                        <menupopup>
                            <menuitem value="0" label="&sb.detail.linked.file.method0;" />
                            <menuitem value="1" label="&sb.detail.linked.file.method1;" />
                            <menuitem value="2" label="&sb.detail.linked.file.method2;" />
                        </menupopup>
                    </menulist>
                    <description>&sb.detail.linked.file.desc;</description>
                    <textbox id="sbDetailDownLinkFilter" flex="1" multiline="true" rows="4" />
                    <button label="&sb.detail.linked.file.reset;" oncommand="sbCaptureOptions.resetDownLinkFilters();" /><commit_msg>capture: adjust downLink UI in the detail dialog<commit_after><?xml version="1.0" ?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
<?xml-stylesheet href="chrome://scrapbook/skin/scrapbook.css" type="text/css" ?>
<?xml-stylesheet href="chrome://browser/skin/places/editBookmarkOverlay.css" type="text/css" ?>

<!DOCTYPE dialog SYSTEM "chrome://scrapbook/locale/message.dtd">

<dialog id="sbDetailDialog"
        title="ScrapBook - &sb.detail;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        style="width: 400px;"
        persist="screenX screenY"
        onload="sbCaptureOptions.init();"
        ondialogaccept="return sbCaptureOptions.accept();"
        ondialogcancel="sbCaptureOptions.cancel();">

    <script type="application/x-javascript" src="chrome://scrapbook/content/common.js" />
    <script type="application/x-javascript" src="chrome://scrapbook/content/detail.js" />

    <tabbox flex="1">
        <tabs orient="horizontal">
            <tab label="&sb.prop.general;" />
            <tab label="&sb.prop.comment;" id="sbDetailTabComment" />
        </tabs>
        <tabpanels flex="1">
            <tabpanel orient="vertical">
                <grid style="margin-top:3px;">
                    <columns>
                        <column />
                        <column flex="1" />
                    </columns>
                    <rows>
                        <row align="center" style="margin-bottom:6px;">
                            <label control="sbDetailTitle" value="&sb.prop.title;:" />
                            <menulist id="sbDetailTitle" editable="true" flex="1" />
                        </row>
                        <row id="sbDetailFolderRow" align="center" style="margin-bottom:6px;">
                            <label value="&sb.prop.folder;:" />
                            <hbox>
                                <menulist id="sbFolderList" class="folder-icon" flex="1" onclick="if ( event.button == 1 ) sbFolderSelector.onMiddleClick();" disabled="true">
                                    <menupopup id="sbFolderPopup" oncommand="sbFolderSelector.onChange(event.target.id);" />
                                </menulist>
                                <toolbarbutton id="sbToolbarMove"      tooltiptext="&sb.detail.select.folder;..." oncommand="sbFolderSelector.pick();" />
                            </hbox>
                        </row>
                    </rows>
                </grid>
                <groupbox group="capture-options" style="margin-top:8px;">
                    <caption label="&sb.detail.option;" />
                    <hbox align="center">
                    <caption label="&sb.detail.option.capture;:" />
                        <checkbox id="sbDetailOptionImages" label="&sb.detail.option.images;" />
                        <checkbox id="sbDetailOptionMedia" label="&sb.detail.option.media;" />
                        <checkbox id="sbDetailOptionFonts" label="&sb.detail.option.fonts;" />
                        <checkbox id="sbDetailOptionFrames" label="&sb.detail.option.frames;" />
                        <checkbox id="sbDetailOptionStyles" label="&sb.detail.option.styles;" />
                        <checkbox id="sbDetailOptionScript" label="&sb.detail.option.scripts;" />
                    </hbox>
                    <checkbox id="sbDetailOptionSaveDataURI" label="&sb.detail.option.saveDataURI;" />
                    <checkbox id="sbDetailOptionKeepLink" label="&sb.detail.option.keepLink;" />
                    <checkbox id="sbDetailOptionRewriteStyles" label="&sb.detail.option.rewriteStyles;" />
                    <checkbox id="sbDetailOptionAsHtml" label="&sb.detail.option.asHtml;" />
                </groupbox>
                <groupbox group="capture-options" style="margin-top:8px;">
                    <caption label="&sb.detail.linked.file;" />
                    <description>&sb.detail.linked.file.desc;</description>
                    <hbox>
                        <menulist id="sbDetailDownLinkMethod" flex="1" value="0">
                            <menupopup>
                                <menuitem value="0" label="&sb.detail.linked.file.method0;" />
                                <menuitem value="1" label="&sb.detail.linked.file.method1;" />
                                <menuitem value="2" label="&sb.detail.linked.file.method2;" />
                            </menupopup>
                        </menulist>
                        <button label="&sb.detail.linked.file.reset;" oncommand="sbCaptureOptions.resetDownLinkFilters();" />
                    </hbox>
                    <textbox id="sbDetailDownLinkFilter" flex="1" multiline="true" rows="4" />
{'fraction_non_alphanumeric': 0.14982949701619777, 'fraction_numerical': 0.005541346973572037, 'mean_word_length': 1.7627318221960553, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 2, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '229609', 'n_tokens_mistral': 2547, 'n_tokens_neox': 2436, 'n_words': 341}