<commit_before>.homepage-graphic.elections-summaryresults {

	table.summary-table {

		@include rhythm(0, 0, 0, 0);

		font-family: $sansSerif;
		@include adjust-font-size-to(19px);
		color: black;

		thead {
			tr {
				border-bottom: solid $borderColor 1px;
			}
		}

		tbody {

			tr {

				border-bottom: solid $borderColor 1px;

				// let's see. we have several cases here.
				// no winner, no square -> tr
				// no winner,    square -> tr.color
				//    winner, no square -> tr.winner
				//    winner,    square -> tr.winner.color

				// no winner, no square
				.checkmark {
					margin-left: 0.25em;
					margin-right: 0.25em;
					display: none;

					&:before {
						content: '✓';
						visibility: hidden;
						font-weight: bold;

					}
				}

				// no winner, square
				&.color .checkmark {
					display: inline-block;
					width: 1.25em;
					padding-left: 0.125em;
				}

				// winner, no square
				&.winner .checkmark {
					display: inline-block;

					&:before {
						visibility: visible;
					}
				}

				// winner, square
				&.winner.color .checkmark {
					&:before {
						color: white;
					}
				}

				&.democratic .checkmark { background: $democraticFull; }
				&.republican .checkmark { background: $republicanFull; }
				&.independent .checkmark { background: $independentFull; }

				// setup all the qualitative colors for the little squares
				&.color_0 .checkmark { background: $qualitativeColor_0; }
				&.color_1 .checkmark { background: $qualitativeColor_1; }
				&.color_2 .checkmark { background: $qualitativeColor_2; }
				&.color_3 .checkmark { background: $qualitativeColor_3; }
				&.color_4 .checkmark { background: $qualitativeColor_4; }
				&.color_5 .checkmark { background: $qualitativeColor_5; }
				&.color_6 .checkmark { background: $qualitativeColor_6; }
				&.color_7 .checkmark { background: $qualitativeColor_7; }
				&.color_8 .checkmark { background: $qualitativeColor_8; }
				&.color_9 .checkmark { background: $qualitativeColor_9; }

				// color winning row
				&.winner {
					background: $winningBackground;
				}

			}

			tr:nth-child(n+2) {

				.pct-sign {
					visibility: hidden;
				}

			}

		}

		tfoot {

			color: $lessImportant;

			td {
				padding-left: 0;
			}
		}

		th,
		td {
			font-weight: normal;
			&.votes,
			&.pct,
			&.votesAndPct {
				text-align: right;
			}
			padding-left: 0.5em;
			padding-right: 0.5em;
			@include rhythm(0, 1/5, 1/5, 0);
		}

		th.name {
			text-transform: uppercase;
			font-weight: bold;
			padding-left: 0;

			&.Candidate {
				color: $lessImportant;
				font-weight: normal;
			}

			&.democratic {
				color: $democraticFull;
			}

			&.republican {
				color: $republicanFull;
			}
		}

		th.town,
		th.votes,
		th.pct,
		td.metadata {
			color: $lessImportant;
		}

		td.metadata {<commit_msg>style summary results if general election<commit_after>.homepage-graphic.elections-summaryresults {

	table.summary-table {

		@include rhythm(0, 0, 0, 0);

		font-family: $sansSerif;
		@include adjust-font-size-to(19px);
		color: black;

		thead {
			tr {
				border-bottom: solid $borderColor 1px;
			}
		}

		tbody {

			tr {

				border-bottom: solid $borderColor 1px;

				// let's see. we have several cases here.
				// no winner, no square -> tr
				// no winner,    square -> tr.color
				//    winner, no square -> tr.winner
				//    winner,    square -> tr.winner.color

				// no winner, no square
				.checkmark {
					margin-left: 0.25em;
					margin-right: 0.25em;
					display: none;

					&:before {
						content: '✓';
						visibility: hidden;
						font-weight: bold;

					}
				}

				// no winner, square
				&.color .checkmark {
					display: inline-block;
					width: 1.25em;
					padding-left: 0.125em;
				}

				// winner, no square
				&.winner .checkmark {
					display: inline-block;

					&:before {
						visibility: visible;
					}
				}

				// winner, square
				&.winner.color .checkmark {
					&:before {
						color: white;
					}
				}

				&.democratic .checkmark { background: $democraticFull; }
				&.republican .checkmark { background: $republicanFull; }
				&.independent .checkmark { background: $independentFull; }

				// setup all the qualitative colors for the little squares
				&.color_0 .checkmark { background: $qualitativeColor_0; }
				&.color_1 .checkmark { background: $qualitativeColor_1; }
				&.color_2 .checkmark { background: $qualitativeColor_2; }
				&.color_3 .checkmark { background: $qualitativeColor_3; }
				&.color_4 .checkmark { background: $qualitativeColor_4; }
				&.color_5 .checkmark { background: $qualitativeColor_5; }
				&.color_6 .checkmark { background: $qualitativeColor_6; }
				&.color_7 .checkmark { background: $qualitativeColor_7; }
				&.color_8 .checkmark { background: $qualitativeColor_8; }
				&.color_9 .checkmark { background: $qualitativeColor_9; }

				// color winning row
				&.winner {
					background: $winningBackground;
				}

			}

			tr:nth-child(n+2) {

				.pct-sign {
					visibility: hidden;
				}

			}

		}

		tfoot {

			color: $lessImportant;

			td {
				padding-left: 0;
			}
		}

		th,
		td {
			font-weight: normal;
			&.votes,
			&.pct,
			&.votesAndPct {
				text-align: right;
			}
			padding-left: 0.5em;
			padding-right: 0.5em;
			@include rhythm(0, 1/5, 1/5, 0);
		}

		th.name {
			text-transform: uppercase;
			font-weight: bold;
			padding-left: 0;

			&.candidate {
				color: $lessImportant;
				font-weight: normal;
			}

			&.democratic {
				color: $democraticFull;
			}

			&.republican {
				color: $republicanFull;
			}
		}

		th.town,
		th.votes,
		th.pct,
		td.metadata {
			color: $lessImportant;
		}

		td.metadata {
{'fraction_non_alphanumeric': 0.13366162504396764, 'fraction_numerical': 0.018994020400984874, 'mean_word_length': 2.257159221076747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3101612', 'n_tokens_mistral': 2714, 'n_tokens_neox': 2007, 'n_words': 433}