<commit_before><?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>

<plugin>

    <extension point="org.eclipse.ui.commands">
        <category id="org.jkiss.dbeaver.git.commands.category" name="Git Category"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.share" name="Share project in Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.projectFromGit" name="Create project from Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.commit" name="Commit changes to Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.update" name="Update changes from Git"/>
    </extension>
    <extension point="org.eclipse.ui.commandImages">
        <image commandId="org.jkiss.dbeaver.git.commands.share" icon="icons/share.png"/>
        <image commandId="org.jkiss.dbeaver.git.commands.projectFromGit" icon="icons/clone.png"/>

        <image commandId="org.jkiss.dbeaver.git.commands.update" icon="icons/pull.png"/>
        <image commandId="org.jkiss.dbeaver.git.commands.commit" icon="icons/push.png"/>
    </extension>

    <extension point="org.eclipse.core.expressions.propertyTesters">
        <propertyTester
                class="org.jkiss.dbeaver.team.git.ui.handlers.GitPropertyTester"
                id="org.jkiss.dbeaver.team.git.ui.handlers.GitPropertyTester"
                namespace="org.jkiss.dbeaver.team.git"
                properties="canShare,canCommit,canUpdate"
                type="org.eclipse.core.resources.IResource">
        </propertyTester>
    </extension>

    <extension point="org.eclipse.ui.handlers">
        <handler commandId="org.jkiss.dbeaver.git.commands.share" class="org.jkiss.dbeaver.team.git.ui.handlers.ProjectShareHandler">
            <activeWhen>
                <not>
                    <test property="GitSelection.projectsSingleRepository" />
                </not>
            </activeWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.git.commands.projectFromGit" class="org.jkiss.dbeaver.team.git.ui.handlers.ProjectCloneHandler"/>
        <handler commandId="org.jkiss.dbeaver.git.commands.update" class="org.jkiss.dbeaver.team.git.ui.handlers.GITUpdateHandler">
            <activeWhen>
                <test property="GitSelection.resourcesSingleRepository"/>
            </activeWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.git.commands.commit" class="org.jkiss.dbeaver.team.git.ui.handlers.GITCommitHandler">
            <activeWhen>
                <test property="GitSelection.resourcesSingleRepository"/>
            </activeWhen>
        </handler>
    </extension>

    <extension point="org.eclipse.ui.bindings">
        <key commandId="org.jkiss.dbeaver.git.commands.update" schemeId="org.jkiss.dbeaver.defaultKeyScheme" sequence="CTRL+SHIFT+U"/>
        <key commandId="org.jkiss.dbeaver.git.commands.commit" schemeId="org.jkiss.dbeaver.defaultKeyScheme" sequence="CTRL+SHIFT+K"/>
    </extension>

    <extension point="org.eclipse.ui.menus">
        <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
            <menu id="org.jkiss.dbeaver.team.git.menu" label="Git" mnemonic="M">
                <command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L"/>
                <command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C"/>
                <separator name="projects" visible="true"/>
                <command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G"/>
                <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit" mnemonic="G"/>
            </menu>
        </menuContribution>
        <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
            <toolbar id="org.jkiss.dbeaver.team.git.toolbar">
                <command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G">
                    <visibleWhen checkEnabled="true"/>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L">
                    <visibleWhen checkEnabled="true"/>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C">
                    <visibleWhen checkEnabled="true"/>
                </command>
            </toolbar>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.projectNavigator?before=additions">
            <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit"/>
        </menuContribution>
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.projectNavigator?before=additions">
            <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit"/>
        </menuContribution>

    </extension>

</plugin>
<commit_msg>Git toolbar/menu visibility fix<commit_after><?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>

<plugin>

    <extension point="org.eclipse.ui.commands">
        <category id="org.jkiss.dbeaver.git.commands.category" name="Git Category"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.share" name="Share project in Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.projectFromGit" name="Create project from Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.commit" name="Commit changes to Git"/>
        <command categoryId="org.jkiss.dbeaver.git.commands.category" id="org.jkiss.dbeaver.git.commands.update" name="Update changes from Git"/>
    </extension>
    <extension point="org.eclipse.ui.commandImages">
        <image commandId="org.jkiss.dbeaver.git.commands.share" icon="icons/share.png"/>
        <image commandId="org.jkiss.dbeaver.git.commands.projectFromGit" icon="icons/clone.png"/>

        <image commandId="org.jkiss.dbeaver.git.commands.update" icon="icons/pull.png"/>
        <image commandId="org.jkiss.dbeaver.git.commands.commit" icon="icons/push.png"/>
    </extension>

    <extension point="org.eclipse.core.expressions.propertyTesters">
        <propertyTester
                class="org.jkiss.dbeaver.team.git.ui.handlers.GitPropertyTester"
                id="org.jkiss.dbeaver.team.git.ui.handlers.GitPropertyTester"
                namespace="org.jkiss.dbeaver.team.git"
                properties="canShare,canCommit,canUpdate"
                type="org.eclipse.core.resources.IResource">
        </propertyTester>
    </extension>

    <extension point="org.eclipse.ui.handlers">
        <handler commandId="org.jkiss.dbeaver.git.commands.share" class="org.jkiss.dbeaver.team.git.ui.handlers.ProjectShareHandler">
            <activeWhen>
                <not>
                    <test property="GitSelection.projectsSingleRepository" />
                </not>
            </activeWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.git.commands.projectFromGit" class="org.jkiss.dbeaver.team.git.ui.handlers.ProjectCloneHandler"/>
        <handler commandId="org.jkiss.dbeaver.git.commands.update" class="org.jkiss.dbeaver.team.git.ui.handlers.GITUpdateHandler">
            <activeWhen>
                <test property="GitSelection.resourcesSingleRepository"/>
            </activeWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.git.commands.commit" class="org.jkiss.dbeaver.team.git.ui.handlers.GITCommitHandler">
            <activeWhen>
                <test property="GitSelection.resourcesSingleRepository"/>
            </activeWhen>
        </handler>
    </extension>

    <extension point="org.eclipse.ui.bindings">
        <key commandId="org.jkiss.dbeaver.git.commands.update" schemeId="org.jkiss.dbeaver.defaultKeyScheme" sequence="CTRL+SHIFT+U"/>
        <key commandId="org.jkiss.dbeaver.git.commands.commit" schemeId="org.jkiss.dbeaver.defaultKeyScheme" sequence="CTRL+SHIFT+K"/>
    </extension>

    <extension point="org.eclipse.ui.menus">
        <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
            <menu id="org.jkiss.dbeaver.team.git.menu" label="Git" mnemonic="M">
                <command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
                <separator name="projects" visible="true"/>
                <command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit" mnemonic="G">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
            </menu>
        </menuContribution>
        <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
            <toolbar id="org.jkiss.dbeaver.team.git.toolbar">
                <command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
                <command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C">
                    <visibleWhen checkEnabled="true">
                        <reference definitionId="DBeaverPerspectiveActive"/>
                    </visibleWhen>
                </command>
            </toolbar>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.projectNavigator?before=additions">
            <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit"/>
        </menuContribution>
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.projectNavigator?before=additions">
            <command commandId="org.jkiss.dbeaver.git.commands.projectFromGit"/>
        </menuContribution>

    </extension>

</plugin>

{'fraction_non_alphanumeric': 0.1377564614974687, 'fraction_numerical': 0.0008881783462119194, 'mean_word_length': 2.6240746700997746, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 2, '>': 175, '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': '5706388', 'n_tokens_mistral': 3380, 'n_tokens_neox': 3235, 'n_words': 380}