<commit_before>/*******************************************************************************
 * Copyright (c) 2012-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.ide.ext.datasource.client.action;

import com.codenvy.ide.ext.datasource.client.DatasourceUiResources;
import com.codenvy.ide.ext.datasource.client.SqlEditorExtension;
import com.codenvy.ide.newresource.AbstractNewResourceAction;
import com.google.inject.Inject;

/**
 * IDE action to create a new SQL file.
 *
 * @author <NAME>
 */
public class NewSqlFileAction extends AbstractNewResourceAction {

    @Inject
    public NewSqlFileAction(DatasourceUiResources resources) {
        super("SQL File", "Creates new SQL file", null, resources.sqlIcon());
    }

    @Override
    protected String getExtension() {
        return SqlEditorExtension.SQL_FILE_EXTENSION;
    }

    @Override
    protected String getMimeType() {
        return SqlEditorExtension.GENERIC_SQL_MIME_TYPE;
    }

}
<commit_msg>Updated in according to API changes<commit_after>/*******************************************************************************
 * Copyright (c) 2012-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.ide.ext.datasource.client.action;

import com.codenvy.ide.ext.datasource.client.DatasourceUiResources;
import com.codenvy.ide.ext.datasource.client.SqlEditorExtension;
import com.codenvy.ide.newresource.AbstractNewResourceAction;
import com.google.inject.Inject;

/**
 * IDE action to create a new SQL file.
 *
 * @author <NAME>
 */
public class NewSqlFileAction extends AbstractNewResourceAction {

    @Inject
    public NewSqlFileAction(DatasourceUiResources resources) {
        super("SQL File", "Creates new SQL file", resources.sqlIcon());
    }

    @Override
    protected String getExtension() {
        return SqlEditorExtension.SQL_FILE_EXTENSION;
    }

    @Override
    protected String getMimeType() {
        return SqlEditorExtension.GENERIC_SQL_MIME_TYPE;
    }

}

{'fraction_non_alphanumeric': 0.19714703730797367, 'fraction_numerical': 0.008778346744696415, 'mean_word_length': 4.525252525252525, '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': '7255743', 'n_tokens_mistral': 768, 'n_tokens_neox': 719, 'n_words': 188}