<commit_before>#!/bin/bash
W="\033[0;97m"
B="\033[1;34m"
R="\033[1;31m"
Y="\033[0;33m"
G="\033[0;32m"
T="\033[0;36m"
P="\033[0;35m"
C="\033[1;90m"
N="\033[0m"


function uno(){
#                                   +-----+
#      +----[PWR]-------------------| USB |--+
#      |                            +-----+  |
#      |         GND/RST2  [ ][ ]            |
#      |       MOSI2/SCK2  [ ][ ]  A5/SCL[ ] | PC5
#      |          5V/MISO2 [ ][ ]  A4/SDA[ ] | PC4
#      |                             AREF[ ] |
#      |                              GND[ ] |
#      | [ ]N/C                    SCK/13[ ] | PB5
#      | [ ]v.ref                 MISO/12[ ] |  .
#      | [ ]RST                   MOSI/11[ ]~|  .
#      | [ ]3V3    +---+               10[ ]~|  .
#      | [ ]5v    -| A |-               9[ ]~|  .
#      | [ ]GND   -| R |-               8[ ] | PB0
#      | [ ]GND   -| D |-                    |
#      | [ ]Vin   -| U |-               7[ ] | PD7
#      |          -| I |-               6[ ]~|  .
#  PC0 | [ ]A0    -| N |-               5[ ]~|  .
#   .  | [ ]A1    -| O |-               4[ ] |  .
#   .  | [ ]A2     +---+           INT1/3[ ]~|  .
#   .  | [ ]A3                     INT0/2[ ] |  .
#   .  | [ ]A4/SDA  RST SCK MISO     TX>1[ ] |  .
#  PC5 | [ ]A5/SCL  [ ] [ ] [ ]      RX<0[ ] | PD0
#      |            [ ] [ ] [ ]              |
#      |  UNO_R3    GND MOSI 5V  ____________/
#       \_______________________/
echo -e  $B"                                  "$G"+-----+"$B""
echo -e  $B"     +----"$G"["$R"PWR"$G"]"$B"-------------------"$G"|$R USB $G|$B--+"
echo -e  $B"     |                            "$G"+-----+"$B"  |"
echo -e  $B"     |         "$C"GND"$G"|"$W"RST2 "$G" [ ][ ]            "$B"|"
echo -e  $B"     |       "$W"MOSI2"$G"|"$W"SCK2 "$G" [ ][ ]  "$T"SCL"$G"/"$W"A5"$G"[ ] "$B"| "$P"PC5"
echo -e  $B"     |          "$R"5V"$G"|"$W"MISO2"$G" [ ][ ]  "$T"SDA"$G"/"$W"A4"$G"[ ] "$B"| "$P"PC4"
echo -e  $B"     |                             "$Y"AREF"$G"[ ] "$B"|"
echo -e  $B"     |                              "$C"GND"$G"[ ] "$B"|"
echo -e  $B"     | "$G"[ ]"$W"N/C                    "$T"SCK"$G"/"$W"13"$G"[ ] "$B"| "$P"PB5"
echo -e  $B"     | "$G"[ ]"$Y"v.ref"$W"                 "$T"MISO"$G"/"$W"12"$G"[ ] "$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$W"RST                   "$T"MOSI"$G"/"$W"11"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$Y"3V3"$W"    +---+               10"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$R"5v"$W"    -| A |-               9"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$C"GND"$W"   -| R |-               8"$G"[ ] "$B"| "$P"PB0"
echo -e  $B"     | "$G"[ ]"$C"GND"$W"   -| D |-                    "$B"|"
echo -e  $B"     | "$G"[ ]"$R"Vin"$W"   -| U |-               7"$G"[ ] "$B"| "$P"PD7"
echo -e  $B"     | "$W"         -| I |-               6"$G"[ ]~"$B"|  "$P"."
echo -e  $P" PC0 "$B"| "$G"[ ]"$W"A0    -| N |-               5"$G"[ ]~"$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A1    -| O |-               4"$G"[ ] "$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A2     +---+           "$T"INT0"$G"/"$W"3"$G"[ ]~"$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A3                     "$T"INT1"$G"/"$W"2"$G"[ ] "$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A4"$G"/"$T"SDA"$W"  RST SCK MISO     "$T"TX>"$W"1"$G"[ ] "$B"|  "$P"."
echo -e  $P" PC5 "$B"| "$G"[ ]"$W"A5"$G"/"$T"SCL"$G"  [ ] [ ] [ ]      "$T"RX<"$W"0"$G"[ ] "$B"| "$P"PD0"
echo -e  $B"     |            "$G"[ ] [ ] [ ]"$G"              "$B"|"
echo -e  $B"     |  "$W"UNO_R3    "$C"GND "$W"MOSI "$R"5V"$B"  ____________/"
echo -e  $B"      \_______________________/"
}

function mega(){
#                                   +-----+
#      +----[PWR]-------------------| USB |--+
#      |                            +-----+  |
#      |           GND/RST2  [ ] [ ]         |
#      |         MOSI2/SCK2  [ ] [ ]  SCL[ ] | PD0
#      |            5V/MISO2 [ ] [ ]  SDA[ ] | PD1
#      |                             AREF[ ] |
#      |                              GND[ ] |
#      | [ ]N/C                    SCK/13[ ]~| PB7
#      | [ ]v.ref                 MISO/12[ ]~| PB6
#      | [ ]RST                   MOSI/11[ ]~| PB5
#      | [ ]3V3                        10[ ]~| PB4
#      | [ ]5v                          9[ ]~| PH6
#      | [ ]GND                         8[ ]~| PH5
#      | [ ]GND      +----------+            |
#      | [ ]Vin      |          |       7[ ]~| PH4
#      |             | ARDUINO  |       6[ ]~| PH3
#  PF0 | [ ]A0       |          |       5[ ]~| PE3
#   .  | [ ]A1       |   MEGA   |       4[ ]~| PG5
#   .  | [ ]A2       |          |  INT5/3[ ]~| PE5<commit_msg>BUGFIX: INT0 and INT1 were swapped on the Uno<commit_after>#!/bin/bash
W="\033[0;97m"
B="\033[1;34m"
R="\033[1;31m"
Y="\033[0;33m"
G="\033[0;32m"
T="\033[0;36m"
P="\033[0;35m"
C="\033[1;90m"
N="\033[0m"


function uno(){
#                                   +-----+
#      +----[PWR]-------------------| USB |--+
#      |                            +-----+  |
#      |         GND/RST2  [ ][ ]            |
#      |       MOSI2/SCK2  [ ][ ]  A5/SCL[ ] | PC5
#      |          5V/MISO2 [ ][ ]  A4/SDA[ ] | PC4
#      |                             AREF[ ] |
#      |                              GND[ ] |
#      | [ ]N/C                    SCK/13[ ] | PB5
#      | [ ]v.ref                 MISO/12[ ] |  .
#      | [ ]RST                   MOSI/11[ ]~|  .
#      | [ ]3V3    +---+               10[ ]~|  .
#      | [ ]5v    -| A |-               9[ ]~|  .
#      | [ ]GND   -| R |-               8[ ] | PB0
#      | [ ]GND   -| D |-                    |
#      | [ ]Vin   -| U |-               7[ ] | PD7
#      |          -| I |-               6[ ]~|  .
#  PC0 | [ ]A0    -| N |-               5[ ]~|  .
#   .  | [ ]A1    -| O |-               4[ ] |  .
#   .  | [ ]A2     +---+           INT1/3[ ]~|  .
#   .  | [ ]A3                     INT0/2[ ] |  .
#   .  | [ ]A4/SDA  RST SCK MISO     TX>1[ ] |  .
#  PC5 | [ ]A5/SCL  [ ] [ ] [ ]      RX<0[ ] | PD0
#      |            [ ] [ ] [ ]              |
#      |  UNO_R3    GND MOSI 5V  ____________/
#       \_______________________/
echo -e  $B"                                  "$G"+-----+"$B""
echo -e  $B"     +----"$G"["$R"PWR"$G"]"$B"-------------------"$G"|$R USB $G|$B--+"
echo -e  $B"     |                            "$G"+-----+"$B"  |"
echo -e  $B"     |         "$C"GND"$G"|"$W"RST2 "$G" [ ][ ]            "$B"|"
echo -e  $B"     |       "$W"MOSI2"$G"|"$W"SCK2 "$G" [ ][ ]  "$T"SCL"$G"/"$W"A5"$G"[ ] "$B"| "$P"PC5"
echo -e  $B"     |          "$R"5V"$G"|"$W"MISO2"$G" [ ][ ]  "$T"SDA"$G"/"$W"A4"$G"[ ] "$B"| "$P"PC4"
echo -e  $B"     |                             "$Y"AREF"$G"[ ] "$B"|"
echo -e  $B"     |                              "$C"GND"$G"[ ] "$B"|"
echo -e  $B"     | "$G"[ ]"$W"N/C                    "$T"SCK"$G"/"$W"13"$G"[ ] "$B"| "$P"PB5"
echo -e  $B"     | "$G"[ ]"$Y"v.ref"$W"                 "$T"MISO"$G"/"$W"12"$G"[ ] "$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$W"RST                   "$T"MOSI"$G"/"$W"11"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$Y"3V3"$W"    +---+               10"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$R"5v"$W"    -| A |-               9"$G"[ ]~"$B"|  "$P"."
echo -e  $B"     | "$G"[ ]"$C"GND"$W"   -| R |-               8"$G"[ ] "$B"| "$P"PB0"
echo -e  $B"     | "$G"[ ]"$C"GND"$W"   -| D |-                    "$B"|"
echo -e  $B"     | "$G"[ ]"$R"Vin"$W"   -| U |-               7"$G"[ ] "$B"| "$P"PD7"
echo -e  $B"     | "$W"         -| I |-               6"$G"[ ]~"$B"|  "$P"."
echo -e  $P" PC0 "$B"| "$G"[ ]"$W"A0    -| N |-               5"$G"[ ]~"$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A1    -| O |-               4"$G"[ ] "$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A2     +---+           "$T"INT1"$G"/"$W"3"$G"[ ]~"$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A3                     "$T"INT0"$G"/"$W"2"$G"[ ] "$B"|  "$P"."
echo -e  $P"  .  "$B"| "$G"[ ]"$W"A4"$G"/"$T"SDA"$W"  RST SCK MISO     "$T"TX>"$W"1"$G"[ ] "$B"|  "$P"."
echo -e  $P" PC5 "$B"| "$G"[ ]"$W"A5"$G"/"$T"SCL"$G"  [ ] [ ] [ ]      "$T"RX<"$W"0"$G"[ ] "$B"| "$P"PD0"
echo -e  $B"     |            "$G"[ ] [ ] [ ]"$G"              "$B"|"
echo -e  $B"     |  "$W"UNO_R3    "$C"GND "$W"MOSI "$R"5V"$B"  ____________/"
echo -e  $B"      \_______________________/"
}

function mega(){
#                                   +-----+
#      +----[PWR]-------------------| USB |--+
#      |                            +-----+  |
#      |           GND/RST2  [ ] [ ]         |
#      |         MOSI2/SCK2  [ ] [ ]  SCL[ ] | PD0
#      |            5V/MISO2 [ ] [ ]  SDA[ ] | PD1
#      |                             AREF[ ] |
#      |                              GND[ ] |
#      | [ ]N/C                    SCK/13[ ]~| PB7
#      | [ ]v.ref                 MISO/12[ ]~| PB6
#      | [ ]RST                   MOSI/11[ ]~| PB5
#      | [ ]3V3                        10[ ]~| PB4
#      | [ ]5v                          9[ ]~| PH6
#      | [ ]GND                         8[ ]~| PH5
#      | [ ]GND      +----------+            |
#      | [ ]Vin      |          |       7[ ]~| PH4
#      |             | ARDUINO  |       6[ ]~| PH3
#  PF0 | [ ]A0       |          |       5[ ]~| PE3
#   .  | [ ]A1       |   MEGA   |       4[ ]~| PG5
#   .  | [ ]A2       |          |  INT5/3[ ]~| PE5
{'fraction_non_alphanumeric': 0.2988394584139265, 'fraction_numerical': 0.039974210186976146, 'mean_word_length': 0.8752770501712673, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6732863', 'n_tokens_mistral': 4501, 'n_tokens_neox': 4227, 'n_words': 639}