<commit_before>(function () {
    "use strict";

    var gpii = fluid.registerNamespace("gpii");

    fluid.defaults("gpii.nexusSensorConnector", {
        gradeNames: ["gpii.nexusWebSocketBoundComponent", "fluid.modelComponent"],
        members: {
            nexusPeerComponentPath: "scienceLabCollector",
            nexusBoundModelPath: "sensors",
            receivesChangesFromNexus: true,
            sendsChangesToNexus: false
        }
    });

    fluid.defaults("fluid.sensorPlayer.sensor.fakeNexusSensor", {
        gradeNames: ["fluid.sensorPlayer.sensor"],
        model: {
            sensorValue: 0,
            sensorMax: 1,
            sensorMin: -1,
            simulateChanges: false,
            description: "A simulated version of the fake Nexus sensor (yes, I know this doesn't make sense)."
        }
    });

    fluid.defaults("fluid.sensorPlayer.sensor.nexusPHSensor", {
        gradeNames: ["fluid.sensorPlayer.sensor"],
        model: {
            sensorValue: 0,
            sensorMax: 14,
            sensorMin: 0,
            simulateChanges: false,
            description: "A Nexus-attached pH Sensor"
        }
    });

    fluid.defaults("fluid.sensorPlayer.nexusFakeSensorPlayer", {
        gradeNames: ["fluid.sensorPlayer"],
        components: {
            sensor: {
                type: "fluid.sensorPlayer.sensor",
                options: {
                    model: {
                        description: "A Nexus-attached Fake Sensor",
                        simulateChanges: false,
                        sensorValue: "{nexusSensorConnector}.model.sensors.fakeSensor.value",
                        sensorMax: "{nexusSensorConnector}.model.sensors.fakeSensor.rangeMax",
                        sensorMin: "{nexusSensorConnector}.model.sensors.fakeSensor.rangeMin"
                    }
                }
            },
            nexusSensorConnector: {
                type: "gpii.nexusSensorConnector",
                options: {
                    members: {
                        nexusHost: window.location.hostname
                    },<commit_msg>GPII-2190: remove unneeded local sensor definitions.<commit_after>(function () {
    "use strict";

    var gpii = fluid.registerNamespace("gpii");

    fluid.defaults("gpii.nexusSensorConnector", {
        gradeNames: ["gpii.nexusWebSocketBoundComponent", "fluid.modelComponent"],
        members: {
            nexusPeerComponentPath: "scienceLabCollector",
            nexusBoundModelPath: "sensors",
            receivesChangesFromNexus: true,
            sendsChangesToNexus: false
        }
    });

    fluid.defaults("fluid.sensorPlayer.nexusFakeSensorPlayer", {
        gradeNames: ["fluid.sensorPlayer"],
        components: {
            sensor: {
                type: "fluid.sensorPlayer.sensor",
                options: {
                    model: {
                        description: "A Nexus-attached Fake Sensor",
                        simulateChanges: false,
                        sensorValue: "{nexusSensorConnector}.model.sensors.fakeSensor.value",
                        sensorMax: "{nexusSensorConnector}.model.sensors.fakeSensor.rangeMax",
                        sensorMin: "{nexusSensorConnector}.model.sensors.fakeSensor.rangeMin"
                    }
                }
            },
            nexusSensorConnector: {
                type: "gpii.nexusSensorConnector",
                options: {
                    members: {
                        nexusHost: window.location.hostname
                    },
{'fraction_non_alphanumeric': 0.09887640449438202, 'fraction_numerical': 0.003089887640449438, 'mean_word_length': 1.6377777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2489847', 'n_tokens_mistral': 945, 'n_tokens_neox': 897, 'n_words': 146}