<commit_before>/**
 * (c) 2015 <NAME>, <EMAIL>
 *
 * This file is part of Wizkers.
 *
 * Wizkers is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Wizkers is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Wizkers.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 *
 * The Instrument manager handles all interactions with the various instruments.
 *
 * @author <NAME>, <EMAIL>
 */

define(function (require) {

    "use strict";

    var _ = require('underscore'),
        Backbone = require('backbone'),
        Instrument = require(['app/models/instrument']);

    var OnyxInstrument = require('app/instruments/onyx/onyx'),
        OnyxSettingsView = require('app/instruments/onyx/settings');

    var FCOledInstrument = require('app/instruments/fcoledv1/fcoled'),
        FCOledSettingsView = require('app/instruments/fcoledv1/settings');

    var W433Instrument = require('app/instruments/w433/w433'),
        W433SettingsView = require('app/instruments/w433/settings');

    var ElecraftInstrument = require('app/instruments/elecraft/elecraft'),
        ElecraftSettingsView = require('app/instruments/elecraft/settings');

    var RemoteElecraftInstrument = require('app/instruments/elecraft_remote/elecraft_remote'),
        RemoteElecraftSettingsView = require('app/instruments/elecraft_remote/settings');

    var Fluke289Instrument = require('app/instruments/fluke28x/fluke'),
        Fluke289SettingsView = require('app/instruments/fluke28x/settings');

    var USBGeigerInstrument = require('app/instruments/usbgeiger/usb_geiger'),
        USBGeigerSettingsView = require('app/instruments/usbgeiger/settings');

    var HeliumGeigerInstrument = require('app/instruments/heliumgeiger/heliumgeiger'),
        HeliumGeigerSettingsView = require('app/instruments/heliumgeiger/settings');

    var HawkNestInstrument = require('app/instruments/hawknest/hawknest'),
        HawkNestSettingsView = require('app/instruments/hawknest/settings');

    var SimpleSerialInstrument = require('app/instruments/simple_serial/simple_serial'),
        SimpleSerialSettingsView = require('app/instruments/simple_serial/settings');

    var Sark110Instrument = require('app/instruments/sark110/sark110'),
        Sark110SettingsView = require('app/instruments/sark110/settings');

    var Sigma25Instrument = require('app/instruments/sigma25/sigma25'),
        Sigma25SettingsView = require('app/instruments/sigma25/settings');

    var BlueOnyxInstrument = require('app/instruments/blue_onyx/blue_onyx'),
        BlueOnyxSettingsView = require('app/instruments/blue_onyx/settings');

    var FCBTInstrument = require('app/instruments/fcbtusbv1/fcbtusbv1'),
        FCBTSettingsView = require('app/instruments/fcbtusbv1/settings');


    var InstrumentManager = function () {

        // current_instrument is a Backbone Model instance
        var current_instrument = null; // The instrument currently in use

        // Instruments supported in all runmodes:
        this.supportedInstruments = {
            "onyx": {
                name: "SafeCast Onyx",
                type: OnyxInstrument,
                settings: OnyxSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "fcoledv1": {
                name: "Fried Circuits OLED backpack",
                type: FCOledInstrument,
                settings: FCOledSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "elecraft": {
                name: "Elecraft radios",
                type: ElecraftInstrument,
                settings: ElecraftSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "usbgeiger": {
                name: "USB Geiger",
                type: USBGeigerInstrument,
                settings: USBGeigerSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "fluke28x": {
                name: "Fluke 287/289 Series multimeter",
                type: Fluke289Instrument,
                settings: Fluke289SettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "simple_serial": {
                name: "Simple serial terminal",
                type: SimpleSerialInstrument,
                settings: SimpleSerialSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "sigma25": {<commit_msg>Rename "Elecraft Radios" to "Elecraft KX3"<commit_after>/**
 * (c) 2015 <NAME>, <EMAIL>
 *
 * This file is part of Wizkers.
 *
 * Wizkers is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Wizkers is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Wizkers.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 *
 * The Instrument manager handles all interactions with the various instruments.
 *
 * @author <NAME>, <EMAIL>.name
 */

define(function (require) {

    "use strict";

    var _ = require('underscore'),
        Backbone = require('backbone'),
        Instrument = require(['app/models/instrument']);

    var OnyxInstrument = require('app/instruments/onyx/onyx'),
        OnyxSettingsView = require('app/instruments/onyx/settings');

    var FCOledInstrument = require('app/instruments/fcoledv1/fcoled'),
        FCOledSettingsView = require('app/instruments/fcoledv1/settings');

    var W433Instrument = require('app/instruments/w433/w433'),
        W433SettingsView = require('app/instruments/w433/settings');

    var ElecraftInstrument = require('app/instruments/elecraft/elecraft'),
        ElecraftSettingsView = require('app/instruments/elecraft/settings');

    var RemoteElecraftInstrument = require('app/instruments/elecraft_remote/elecraft_remote'),
        RemoteElecraftSettingsView = require('app/instruments/elecraft_remote/settings');

    var Fluke289Instrument = require('app/instruments/fluke28x/fluke'),
        Fluke289SettingsView = require('app/instruments/fluke28x/settings');

    var USBGeigerInstrument = require('app/instruments/usbgeiger/usb_geiger'),
        USBGeigerSettingsView = require('app/instruments/usbgeiger/settings');

    var HeliumGeigerInstrument = require('app/instruments/heliumgeiger/heliumgeiger'),
        HeliumGeigerSettingsView = require('app/instruments/heliumgeiger/settings');

    var HawkNestInstrument = require('app/instruments/hawknest/hawknest'),
        HawkNestSettingsView = require('app/instruments/hawknest/settings');

    var SimpleSerialInstrument = require('app/instruments/simple_serial/simple_serial'),
        SimpleSerialSettingsView = require('app/instruments/simple_serial/settings');

    var Sark110Instrument = require('app/instruments/sark110/sark110'),
        Sark110SettingsView = require('app/instruments/sark110/settings');

    var Sigma25Instrument = require('app/instruments/sigma25/sigma25'),
        Sigma25SettingsView = require('app/instruments/sigma25/settings');

    var BlueOnyxInstrument = require('app/instruments/blue_onyx/blue_onyx'),
        BlueOnyxSettingsView = require('app/instruments/blue_onyx/settings');

    var FCBTInstrument = require('app/instruments/fcbtusbv1/fcbtusbv1'),
        FCBTSettingsView = require('app/instruments/fcbtusbv1/settings');


    var InstrumentManager = function () {

        // current_instrument is a Backbone Model instance
        var current_instrument = null; // The instrument currently in use

        // Instruments supported in all runmodes:
        this.supportedInstruments = {
            "onyx": {
                name: "SafeCast Onyx",
                type: OnyxInstrument,
                settings: OnyxSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "fcoledv1": {
                name: "Fried Circuits OLED backpack",
                type: FCOledInstrument,
                settings: FCOledSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "elecraft": {
                name: "Elecraft KX3",
                type: ElecraftInstrument,
                settings: ElecraftSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "usbgeiger": {
                name: "USB Geiger",
                type: USBGeigerInstrument,
                settings: USBGeigerSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "fluke28x": {
                name: "Fluke 287/289 Series multimeter",
                type: Fluke289Instrument,
                settings: Fluke289SettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "simple_serial": {
                name: "Simple serial terminal",
                type: SimpleSerialInstrument,
                settings: SimpleSerialSettingsView,
                connectionsettings: 'app/views/instrument/serialport'
            },
            "sigma25": {
{'fraction_non_alphanumeric': 0.09891206707256213, 'fraction_numerical': 0.015570416209202515, 'mean_word_length': 2.8026565464895636, 'pattern_counts': {'":': 14, '<': 13, '<?xml version=': 0, '>': 13, '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': '3012473', 'n_tokens_mistral': 2900, 'n_tokens_neox': 2648, 'n_words': 589}