<commit_before>package com.opera.core.systems.scope;

import com.opera.core.systems.model.ICommand;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

/**
 * This enum maps the commands for the EcmaScript Debugger service.
 *
 * The declaration can be found here:
 * http://dragonfly.opera.com/app/scope-interface/EcmascriptDebugger.html
 *
 */
public enum ESDebuggerCommand implements ICommand {
    LIST_RUNTIMES(1),
    EVAL(3),
    INSPECT_DOM(13),
    EXAMINE_OBJECTS(4),
    SET_CONFIGURATION(10),
    RELEASE_OBJECTS(29),
    RUNTIME_STARTED(14),
    RUNTIME_STOPPED(15),
    NEW_SCRIPT(16),
    THREAD_STARTED(17),
    THREAD_FINISHED(18),
    THREAD_STOPPED_AT(19),
    HANDLE_EVENT(20),
    OBJECT_SELECTED(21),
    PARSE_ERROR(28);

    private int code;
    private static final Map<Integer, ESDebuggerCommand> lookup = new HashMap<Integer, ESDebuggerCommand>();

    static {
        for (ESDebuggerCommand command : EnumSet.allOf(ESDebuggerCommand.class))
            lookup.put(command.getCommandID(), command);
    }

    private ESDebuggerCommand(int code) {
        this.code = code;
    }

    public int getCommandID() {
        return code;
    }

    public String getService() {
        return "ecmascript-debugger";
    }

    public static ESDebuggerCommand get(int code) {
        return lookup.get(code);
    }

}<commit_msg>DEFAULT type to command is restored - (required to allow compatibility)<commit_after>package com.opera.core.systems.scope;

import com.opera.core.systems.model.ICommand;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

/**
 * This enum maps the commands for the EcmaScript Debugger service.
 *
 * The declaration can be found here:
 * http://dragonfly.opera.com/app/scope-interface/EcmascriptDebugger.html
 *
 */
public enum ESDebuggerCommand implements ICommand {
    LIST_RUNTIMES(1),
    EVAL(3),
    INSPECT_DOM(13),
    EXAMINE_OBJECTS(4),
    SET_CONFIGURATION(10),
    RELEASE_OBJECTS(29),
    RUNTIME_STARTED(14),
    RUNTIME_STOPPED(15),
    NEW_SCRIPT(16),
    THREAD_STARTED(17),
    THREAD_FINISHED(18),
    THREAD_STOPPED_AT(19),
    HANDLE_EVENT(20),
    OBJECT_SELECTED(21),
    PARSE_ERROR(28),
    DEFAULT(-1);

    private int code;
    private static final Map<Integer, ESDebuggerCommand> lookup = new HashMap<Integer, ESDebuggerCommand>();

    static {
        for (ESDebuggerCommand command : EnumSet.allOf(ESDebuggerCommand.class))
            lookup.put(command.getCommandID(), command);
    }

    private ESDebuggerCommand(int code) {
        this.code = code;
    }

    public int getCommandID() {
        return code;
    }

    public String getService() {
        return "ecmascript-debugger";
    }

    public static ESDebuggerCommand get(int code) {
        ESDebuggerCommand command = lookup.get(code);
        return (command != null) ? command : DEFAULT;
    }

}
{'fraction_non_alphanumeric': 0.10716747070985527, 'fraction_numerical': 0.018952446588559616, 'mean_word_length': 3.3199404761904763, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7554840', 'n_tokens_mistral': 992, 'n_tokens_neox': 940, 'n_words': 192}