<commit_before>import bot.lib.lib as lib
import bot.hardware.servo as servo_mod
import bbb as bbb_mod

class RubiksSolver(object):
    
    def __init__(self):
        
        self.config = lib.get_config()
        self.logger = lib.get_logger()

        self.servo_pwm = self.config["rubiks"]["servo_pwm"]
        
        self.rev_num   = self.config["rubiks"]["GPIO"]["PWR"]
        self.fwd_num   = self.config["rubiks"]["GPIO"]["FWD"]

        self.pwr_num   = self.config["rubiks"]["GPIO"]["PWR"]
        
        # Build low-level things
        self.gripper = servo_mod.Servo(self.servo_pwm)

        # TODO(Remove as soon as this is functional)
        self.gripper.test()

    @lib.api_call
    def move_arm(self, position):
        """exists only to expose servo fncts to API"""
        self.gripper.position = position

    @lib.api_call
    def rubiks_test(self):
        self.gripper.test()<commit_msg>set starting values for rubiks_solver<commit_after>import bot.lib.lib as lib
import bot.hardware.servo as servo_mod
import bbb as bbb_mod

class RubiksSolver(object):
    
    def __init__(self):
        
        self.config = lib.get_config()
        self.logger = lib.get_logger()

        self.servo_pwm = self.config["rubiks"]["servo_pwm"]
        
        self.rev_num   = self.config["rubiks"]["GPIO"]["PWR"]
        self.fwd_num   = self.config["rubiks"]["GPIO"]["FWD"]

        self.pwr_num   = self.config["rubiks"]["GPIO"]["PWR"]
        
        # Build low-level things
        self.gripper = servo_mod.Servo(self.servo_pwm)
        
        # Set to starting position
        self.gripper.position = 0

    @lib.api_call
    def move_arm(self, position):
        """exists only to expose servo fncts to API"""
        self.gripper.position = position

    @lib.api_call
    def rubiks_test(self):
        self.gripper.test()


{'fraction_non_alphanumeric': 0.1255387931034483, 'fraction_numerical': 0.0005387931034482759, 'mean_word_length': 2.42619926199262, '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': '4315345', 'n_tokens_mistral': 641, 'n_tokens_neox': 651, 'n_words': 119}