<commit_before>.text

.global PrintUART
PrintUART:
    /* What are we writing */
    ldr r3, =_msg

    /* Where will we write it? */
    ldr r2, =UART0DR
    ldr r2, [r2]

1:  /* let's loop */
    ldrb r1, [r3], #1
    cmp r1, #0
    beq 2f
    strb r1, [r2]
    b 1b

2:
    mov pc, r14


.global LocalEcho
LocalEcho:
    ldr r2, =UART0DR
    ldr r2, [r2]

    ldr r3, =UART0FR
    ldr r3, [r3]

1:  ldrb r1, [r3]
    and r1, r1, #0x10
    cmp r1, #0
    bne 1b

    mov pc, r14


.data
.equ UART0, 0x101f1000

UART0DR:
    .int UART0 + 0x0

UART0FR:
    .int UART0 + 0x18

_msg:
    .string "Hello, world from IronHand!"
    .byte 0

<commit_msg>actually echo in LocalEcho ;)<commit_after>.text

.global PrintUART
PrintUART:
    /* What are we writing */
    ldr r3, =_msg

    /* Where will we write it? */
    ldr r2, =UART0DR
    ldr r2, [r2]

1:  /* let's loop */
    ldrb r1, [r3], #1
    cmp r1, #0
    beq 2f
    strb r1, [r2]
    b 1b

2:
    mov pc, r14


.global LocalEcho
LocalEcho:
    ldr r2, =UART0DR
    ldr r2, [r2]

    ldr r3, =UART0FR
    ldr r3, [r3]

1:  ldrb r1, [r3]
    and r1, r1, #0x10
    cmp r1, #0
    bne 1b

    ldrb r1, [r2]
    strb r1, [r2]

    mov pc, r14


.data
.equ UART0, 0x101f1000

UART0DR:
    .int UART0 + 0x0

UART0FR:
    .int UART0 + 0x18

_msg:
    .string "Hello, world from IronHand!"
    .byte 0


{'fraction_non_alphanumeric': 0.12139156180606958, 'fraction_numerical': 0.08882309400444116, 'mean_word_length': 1.8644067796610169, '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': '543283', 'n_tokens_mistral': 721, 'n_tokens_neox': 649, 'n_words': 198}