<commit_before>/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.plugin.npm.client;

import com.codenvy.ide.api.action.ActionManager;
import com.codenvy.ide.api.extension.Extension;
import com.codenvy.ide.extension.builder.client.BuilderLocalizationConstant;
import com.codenvy.plugin.npm.client.menu.LocalizationConstant;
import com.codenvy.plugin.npm.client.menu.NpmInstallAction;
import com.google.inject.Inject;
import com.google.inject.Singleton;

/**
 * Extension registering NPM commands
 * @author <NAME>
 */
@Singleton
@Extension(title = "NPM extension")
public class NpmExtension {

    @Inject
    public NpmExtension(ActionManager actionManager,
                          BuilderLocalizationConstant builderLocalizationConstant,
                          LocalizationConstant localizationConstantNpm,
                          final NpmInstallAction npmInstallAction) {

        // Register action
        actionManager.registerAction(localizationConstantNpm.npmInstallId(), npmInstallAction);


        // For now the NPM dependencies are installed by the runner

        // Get Build menu
        //DefaultActionGroup buildMenuActionGroup = (DefaultActionGroup)actionManager.getAction(GROUP_BUILD);

        // create constraint
        //Constraints afterBuildConstraints = new Constraints(AFTER, builderLocalizationConstant.buildProjectControlId());

        // Add NPM in build menu
        //buildMenuActionGroup.add(npmInstallAction, afterBuildConstraints);<commit_msg>IDEUI-319 Renamed Extension title<commit_after>/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.plugin.npm.client;

import com.codenvy.ide.api.action.ActionManager;
import com.codenvy.ide.api.extension.Extension;
import com.codenvy.ide.extension.builder.client.BuilderLocalizationConstant;
import com.codenvy.plugin.npm.client.menu.LocalizationConstant;
import com.codenvy.plugin.npm.client.menu.NpmInstallAction;
import com.google.inject.Inject;
import com.google.inject.Singleton;

/**
 * Extension registering NPM commands
 * @author <NAME>
 */
@Singleton
@Extension(title = "NPM")
public class NpmExtension {

    @Inject
    public NpmExtension(ActionManager actionManager,
                          BuilderLocalizationConstant builderLocalizationConstant,
                          LocalizationConstant localizationConstantNpm,
                          final NpmInstallAction npmInstallAction) {

        // Register action
        actionManager.registerAction(localizationConstantNpm.npmInstallId(), npmInstallAction);


        // For now the NPM dependencies are installed by the runner

        // Get Build menu
        //DefaultActionGroup buildMenuActionGroup = (DefaultActionGroup)actionManager.getAction(GROUP_BUILD);

        // create constraint
        //Constraints afterBuildConstraints = new Constraints(AFTER, builderLocalizationConstant.buildProjectControlId());

        // Add NPM in build menu
        //buildMenuActionGroup.add(npmInstallAction, afterBuildConstraints);
{'fraction_non_alphanumeric': 0.1558080808080808, 'fraction_numerical': 0.004797979797979798, 'mean_word_length': 3.938902743142145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1890963', 'n_tokens_mistral': 1005, 'n_tokens_neox': 942, 'n_words': 235}