198c9b8daecc44fbda6a6494c566c723920f030a lrnassar Wed Mar 11 18:25:21 2026 -0700 Fixing a few hundred clear typos with the help of Claude. Some are less important in code comments, but majority of them are in user-facing places. I manually approved 60%+ of the changes and didn't see any that were an incorrect suggestion, at worst it was potentially uncessesary, like a code comment having cant instead of can't. No RM. diff --git src/hg/hgsqlSwapTables/hgsqlSwapTables.c src/hg/hgsqlSwapTables/hgsqlSwapTables.c index fdb6e963480..e827b6d93f4 100644 --- src/hg/hgsqlSwapTables/hgsqlSwapTables.c +++ src/hg/hgsqlSwapTables/hgsqlSwapTables.c @@ -1,81 +1,81 @@ /* hgsqlSwapTables - swaps tables in database. */ /* Copyright (C) 2011 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "jksql.h" #include "hdb.h" void usage() /* Explain usage and exit. */ { errAbort( "hgsqlSwapTables - swaps tables in database\n" "usage:\n" " hgsqlSwapTables database table1 table2 table3\n" "Renames table2 to table3, then renames table1 to table2.\n" - "Checks for existance of table1 and table2 and lack of existance\n" + "Checks for existence of table1 and table2 and lack of existence\n" "of table3 and fails without change if not verified\n" "options:\n" " -okNoTable2 -- don't fail if table2 doesn't exist\n" " -dropTable3 -- drop table3\n" ); } boolean okNoTable2 = FALSE; boolean dropTable3 = FALSE; static struct optionSpec options[] = { {"okNoTable2", OPTION_BOOLEAN}, {"dropTable3", OPTION_BOOLEAN}, {NULL, 0}, }; void hgsqlSwapTables(char *database, char *table1, char *table2, char *table3) /* hgsqlSwapTables - swaps tables in database. */ { struct sqlConnection *conn = hAllocConn(database); boolean noTable2 = FALSE; if (!sqlTableExists(conn, table1)) errAbort("%s does not exist",table1); if (!sqlTableExists(conn, table2)) { if (okNoTable2) noTable2 = TRUE; else errAbort("%s does not exist", table2); } if (sqlTableExists(conn, table3)) { if (dropTable3) sqlDropTable(conn, table3); else errAbort("%s exists", table3); } if (!noTable2) sqlRenameTable(conn, table2, table3); sqlRenameTable(conn, table1, table2); } int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, options); if (argc != 5) usage(); okNoTable2 = optionExists("okNoTable2"); dropTable3 = optionExists("dropTable3"); hgsqlSwapTables(argv[1],argv[2],argv[3],argv[4]); return 0; }