<commit_before>var inherit = require('component-inherit')
var Device = require('ev3-js-device')

function Motor (path) {
  Device.call(this, path)
}

inherit(Motor, Device)

Motor.prototype.runForever = function (s) {
  this.write('duty_cycle_sp', s.toString())
  this.write('command', 'run-forever')
}

Motor.prototype.stop = function () {
  this.write('command', 'stop')
}

exports.default = Motor<commit_msg>update exports<commit_after>var inherit = require('component-inherit')
var Device = require('ev3-js-device')

function Motor (path) {
  Device.call(this, path)
}

inherit(Motor, Device)

Motor.prototype.runForever = function (s) {
  this.write('duty_cycle_sp', s.toString())
  this.write('command', 'run-forever')
}

Motor.prototype.stop = function () {
  this.write('command', 'stop')
}

module.exports = Motor
{'fraction_non_alphanumeric': 0.1678832116788321, 'fraction_numerical': 0.0024330900243309003, 'mean_word_length': 5.3307692307692305, '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': '4053035', 'n_tokens_mistral': 288, 'n_tokens_neox': 279, 'n_words': 52}