<commit_before>// TODO: handle clear log menu
// TODO: handle clear queue menu
// TODO: handle clear ack menu

/**
 * The controller for the control panel.
 */
app.controller('controlPanelCtrl', function($scope, hotkeys, settingsService, machineService) {
  $scope.emergencyStop = machineService.emergencyStop;
  $scope.settings = settingsService.settings;
  $scope.machineService = machineService;

  $scope.stepSize = 1;

  hotkeys.bindTo($scope)
    .add({
      combo: ['up', 'i'],
      description: 'move the Y axis in the + direction',
      callback: function() {$scope.relativeMove("Y")}
    })
    .add({
      combo: ['down' ,'k'],
      description: 'move the Y axis in the - direction',
      callback: function() {$scope.relativeMove("Y-")}
    })
    .add({
      combo: ['left', 'j'],
      description: 'move the X axis in the - direction',
      callback: function() {$scope.relativeMove("X")}
    })
    .add({
      combo: ['right', 'l'],
      description: 'move the X axis in the + direction',
      callback: function() {$scope.relativeMove("X")}
    })
    .add({
      combo: ['a'],
      description: 'move the Z axis in the + direction',
      callback: function() {$scope.relativeMove("Z")}
    })
    .add({
      combo: ['z'],
      description: 'move the Z axis in the - direction',
      callback: function() {$scope.relativeMove("Z-")}
    })
    .add({
      combo: '-',
      description: 'decrement the step size',
      callback: function() {$scope.incrementStepSize(-1)}
    })
    .add({
      combo: '=',
      description: 'increment the step size',<commit_msg>fix direction of left arrow<commit_after>// TODO: handle clear log menu
// TODO: handle clear queue menu
// TODO: handle clear ack menu

/**
 * The controller for the control panel.
 */
app.controller('controlPanelCtrl', function($scope, hotkeys, settingsService, machineService) {
  $scope.emergencyStop = machineService.emergencyStop;
  $scope.settings = settingsService.settings;
  $scope.machineService = machineService;

  $scope.stepSize = 1;

  hotkeys.bindTo($scope)
    .add({
      combo: ['up', 'i'],
      description: 'move the Y axis in the + direction',
      callback: function() {$scope.relativeMove("Y")}
    })
    .add({
      combo: ['down' ,'k'],
      description: 'move the Y axis in the - direction',
      callback: function() {$scope.relativeMove("Y-")}
    })
    .add({
      combo: ['left', 'j'],
      description: 'move the X axis in the - direction',
      callback: function() {$scope.relativeMove("X-")}
    })
    .add({
      combo: ['right', 'l'],
      description: 'move the X axis in the + direction',
      callback: function() {$scope.relativeMove("X")}
    })
    .add({
      combo: ['a'],
      description: 'move the Z axis in the + direction',
      callback: function() {$scope.relativeMove("Z")}
    })
    .add({
      combo: ['z'],
      description: 'move the Z axis in the - direction',
      callback: function() {$scope.relativeMove("Z-")}
    })
    .add({
      combo: '-',
      description: 'decrement the step size',
      callback: function() {$scope.incrementStepSize(-1)}
    })
    .add({
      combo: '=',
      description: 'increment the step size',
{'fraction_non_alphanumeric': 0.16495806150978565, 'fraction_numerical': 0.0012426219322771047, 'mean_word_length': 2.8333333333333335, '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': '3175880', 'n_tokens_mistral': 974, 'n_tokens_neox': 963, 'n_words': 285}