<commit_before><ion-view view-title="SensorTag">
    <ion-content class="padding">
        <h1>Sensor Tag</h1>

        <div id="overviewPage">
            <h2 id="reconnectMessage"></h2>
            <ul id="SensorTagList">
                <li ng-repeat="(address, device) in devices" >
                <li ng-repeat="(address, device) in devices" ng-if="(device.name=='CC2650 SensorTag' || device.name=='SensorTag 2.0') && !isConnected(device)">
                    {{device.name}}
                    <button class="button button-royal" ng-click="connect(device)">Connect</button>
                    <br/> RSSI: {{device.rssi}} &nbsp;|&nbsp; {{device.address}}
                </li>
            </ul>
            <div ng-if="noDevice == true">No device found</div>
            <div ng-if="scanDevice == true">
            <ion-spinner icon="ripple"></ion-spinner>
            </div>
            <button class="button button-royal" ng-if="scanDevice == false" id="btnRefresh" ng-click="refreshSensortags()">Scan for Devices</button>
            <button class="button button-royal" ng-if="scanDevice == true" id="btnStopRefresh" ng-click="stopScan()">Stop Scanning</button>
            <span id="lastConDevice"></span>
        </div>
        <div id="devicePage" ng-if="dev1Connected == true">
            <div id="sensorData">
                Device 1: <button class="button button-small button-royal" ng-click="disconnect(currentDevice1)">Disconnect</button><br/>
                Temperature <br/>
                {{barometer.temperatureDev1}} <br/>
                 Pressure <br/>
                {{barometer.pressureDev1}} <br/>
                Accelerometer<br/>
                {{accelerometer.accelerometerDev1}}<br/><br/>
            </div>
        </div>
        <div id="devicePage" ng-if="dev2Connected == true">
            <div id="sensorData">
                Device 2: <button class="button button-small button-royal" ng-click="disconnect(currentDevice2)">Disconnect</button><br/>
                Temperature <br/>
                {{barometer.temperatureDev2}} <br/>
                 Pressure <br/>
                {{barometer.pressureDev2}} <br/><br/>
                Accelerometer<br/>
                {{accelerometer.accelerometerDev2}}<br/><br/>
            </div>
        </div>


    </ion-content>
</ion-view>
<commit_msg>Motion UI-Elements<commit_after><ion-view view-title="SensorTag">
    <ion-content class="padding">
        <h1>Sensor Tag</h1>

        <div id="overviewPage">
            <h2 id="reconnectMessage"></h2>
            <ul id="SensorTagList">
                <li ng-repeat="(address, device) in devices" >
                <li ng-repeat="(address, device) in devices" ng-if="(device.name=='CC2650 SensorTag' || device.name=='SensorTag 2.0') && !isConnected(device)">
                    {{device.name}}
                    <button class="button button-royal" ng-click="connect(device)">Connect</button>
                    <br/> RSSI: {{device.rssi}} &nbsp;|&nbsp; {{device.address}}
                </li>
            </ul>
            <div ng-if="noDevice == true">No device found</div>
            <div ng-if="scanDevice == true">
            <ion-spinner icon="ripple"></ion-spinner>
            </div>
            <button class="button button-royal" ng-if="scanDevice == false" id="btnRefresh" ng-click="refreshSensortags()">Scan for Devices</button>
            <button class="button button-royal" ng-if="scanDevice == true" id="btnStopRefresh" ng-click="stopScan()">Stop Scanning</button>
            <span id="lastConDevice"></span>
        </div>
        <div id="devicePage" ng-if="dev1Connected == true">
            <div id="sensorData">
                Device 1: <button class="button button-small button-royal" ng-click="disconnect(currentDevice1)">Disconnect</button><br/>
                Temperature <br/>
                {{barometer.temperatureDev1}} <br/>
                 Pressure <br/>
                {{barometer.pressureDev1}} <br/>
                Accelerometer<br/>
                {{accelerometer.accelerometerDev1}}<br/><br/>
            </div>
        </div>
        <div id="devicePage" ng-if="dev2Connected == true">
            <div id="sensorData">
                Device 2: <button class="button button-small button-royal" ng-click="disconnect(currentDevice2)">Disconnect</button><br/>
                Temperature <br/>
                {{barometer.temperatureDev2}} <br/>
                 Pressure <br/>
                {{barometer.pressureDev2}} <br/><br/>
                Accelerometer<br/>
                {{accelerometer.accelerometerDev2}}<br/><br/>
            </div>
        </div>
		<div>
			<br><br>
			<h2>Smartphon Motions:</h2>
			<button class="button button-royal" ng-if="motionOn == false" id="btnMotionStart" ng-click="startWatching()">Show Motion</button>
            <button class="button button-royal" ng-if="motionOn == true" id="btnMotionStop" ng-click="stopWatching()">Hide Motion</button>
			<ul ng-if="motionOn == true">
				<li>X: {{measurements.x}}</li>
				<li>Y: {{measurements.y}}</li>
				<li>Z: {{measurements.z}}</li>
			</ul>
		</div>
		

    </ion-content>
</ion-view>

{'fraction_non_alphanumeric': 0.16924265842349304, 'fraction_numerical': 0.008887171561051005, 'mean_word_length': 2.126207729468599, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, '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': '211740', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1508, 'n_words': 276}