<commit_before>import math

# home position in encoder ticks for the servo.

servo_param = {
    1: {                        # Default for new servo.  Please issue 'new_servo.write_id(new_id)' and setup your own home position!
        'home_encoder': 351
       }, 
    2: {                        # Tilting Hokuyo on El-E
        'home_encoder': 446
       }, 
    3: {                        # RFID Antenna Left Tilt
        'home_encoder': 377
       },
    4: {                        # RFID Antenna Right Tilt
        'home_encoder': 330
       },
    5: {                        # Tilting hokuyo on Firenze
        'home_encoder': 338
       },
    6: {                        # EL-E stereohead Pan
        'home_encoder': 500,
        'max_ang': math.radians(90.),
        'min_ang': math.radians(-90.)
       },
    7: {                        # EL-E safetyscreen tilt.
        'home_encoder': 373
       },
    11: {                        # RFID Left Pan
        'home_encoder': 430,
        'max_ang': math.radians( 141.0 ),
        'min_ang': math.radians( -31.0 )
       },
    12: {                        # RFID Left Tilt
        'home_encoder': 507,
        'max_ang': math.radians( 46.0 ),
        'min_ang': math.radians( -36.0 )        
       },
    13: {                        # RFID Right Pan
        'home_encoder': 583,
        'max_ang': math.radians( 31.0 ),
        'min_ang': math.radians( -141.0 )        
       },
    14: {                        # RFID Right Tilt
        'home_encoder': 504,
        'max_ang': math.radians( 46.0 ),
        'min_ang': math.radians( -36.0 )        
       },
    15: {                        # Ear Flap on RFID El-E Right
        'home_encoder': 498
       },
    16: {                        # Pan Antenna on RFID El-E Left
        'home_encoder': 365
       },
    17: {                        # Tilt Antenna on RFID El-E Left
        'home_encoder': 504
       },
    18: {                        # EL-E stereohead Tilt
        'home_encoder': 495,
        'max_ang': math.radians(60.),
        'min_ang': math.radians(-20.)
       },
    19: {                        # Desktop System UTM
        'home_encoder': 633,
        'flipped': True
        },
    20: {                        # Desktop System Tilt
        'home_encoder': 381
        },
    21: {                        # Desktop System Pan
        'home_encoder': 589
        },
    22: {                        # Desktop System Roll
        'home_encoder': 454
        },
    23: {                        # Dinah Top
        'home_encoder': 379
        },
    24: {                        # Dinah Bottom
        'home_encoder': 365
        },
    25: {                        # Meka top Pan
        'home_encoder': 500
        },
    26: {                        # Meka top Tilt
        'home_encoder': 400
        },
    27: {                        # PR2 RFID Left Pan
        'home_encoder': 512
        },
    28: {                        # PR2 RFID Left Tilt
        'home_encoder': 512
        },
    29: {                        # PR2 RFID Right Pan
        'home_encoder': 544
        },
    30: {                        # PR2 RFID Right Tilt
        'home_encoder': 504
        }<commit_msg>Updated servo angles for p/t<commit_after>import math

# home position in encoder ticks for the servo.

servo_param = {
    1: {                        # Default for new servo.  Please issue 'new_servo.write_id(new_id)' and setup your own home position!
        'home_encoder': 351
       }, 
    2: {                        # Tilting Hokuyo on El-E
        'home_encoder': 446
       }, 
    3: {                        # RFID Antenna Left Tilt
        'home_encoder': 377
       },
    4: {                        # RFID Antenna Right Tilt
        'home_encoder': 330
       },
    5: {                        # Tilting hokuyo on Firenze
        'home_encoder': 338
       },
    6: {                        # EL-E stereohead Pan
        'home_encoder': 500,
        'max_ang': math.radians(90.),
        'min_ang': math.radians(-90.)
       },
    7: {                        # EL-E safetyscreen tilt.
        'home_encoder': 373
       },
    11: {                        # RFID Left Pan
        'home_encoder': 430,
        'max_ang': math.radians( 141.0 ),
        'min_ang': math.radians( -31.0 )
       },
    12: {                        # RFID Left Tilt
        'home_encoder': 507,
        'max_ang': math.radians( 46.0 ),
        'min_ang': math.radians( -36.0 )        
       },
    13: {                        # RFID Right Pan
        'home_encoder': 583,
        'max_ang': math.radians( 31.0 ),
        'min_ang': math.radians( -141.0 )        
       },
    14: {                        # RFID Right Tilt
        'home_encoder': 504,
        'max_ang': math.radians( 46.0 ),
        'min_ang': math.radians( -36.0 )        
       },
    15: {                        # Ear Flap on RFID El-E Right
        'home_encoder': 498
       },
    16: {                        # Pan Antenna on RFID El-E Left
        'home_encoder': 365
       },
    17: {                        # Tilt Antenna on RFID El-E Left
        'home_encoder': 504
       },
    18: {                        # EL-E stereohead Tilt
        'home_encoder': 495,
        'max_ang': math.radians(60.),
        'min_ang': math.radians(-20.)
       },
    19: {                        # Desktop System UTM
        'home_encoder': 633,
        'flipped': True
        },
    20: {                        # Desktop System Tilt
        'home_encoder': 381
        },
    21: {                        # Desktop System Pan
        'home_encoder': 589
        },
    22: {                        # Desktop System Roll
        'home_encoder': 454
        },
    23: {                        # Dinah Top
        'home_encoder': 379
        },
    24: {                        # Dinah Bottom
        'home_encoder': 365
        },
    25: {                        # Meka top Pan
        'home_encoder': 500
        },
    26: {                        # Meka top Tilt
        'home_encoder': 400
        },
    27: {                        # PR2 RFID Left Pan
        'home_encoder': 512
        },
    28: {                        # PR2 RFID Left Tilt
        'home_encoder': 515
        },
    29: {                        # PR2 RFID Right Pan
        'home_encoder': 544
        },
    30: {                        # PR2 RFID Right Tilt
        'home_encoder': 490
        }
{'fraction_non_alphanumeric': 0.10603488192622318, 'fraction_numerical': 0.051242475690693005, 'mean_word_length': 0.968408262454435, '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': '658450', 'n_tokens_mistral': 2160, 'n_tokens_neox': 1847, 'n_words': 468}