<commit_before>/* Invert the luminance iff any of the "delumine" styles are selected. */
html[hc^="delumine"] {
  -webkit-filter: invert() hue-rotate(180deg) brightness(105%) contrast(105%);
}

/* Override the above with a low-contrast version if selected. */
html[hc^="delumine"][hc*="low-contrast"] {
  -webkit-filter: invert() hue-rotate(180deg) brightness(105%) contrast(85%);
}

/* Uninvert select items within the document.
 * Note: Chrome clears -webkit-filter on all full-screen ancestor tags, killing
 * the top-level delumination filter. This is usually desirable (e.g., for
 * Youtube videos), so instead of fighting it, just avoid trying to "uninvert"
 * images in this scenario.
 *
 * For the -noimg variant, uninvert all images. */
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) img,
/* Check for "url" in the style attribute, which is usually a fancy way to specify an image */
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) [style*="url"]:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) embed:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) object:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) video,
/* The "smart" filter leaves PNG and GIF format images alone, since they usually are identifiable even when inverted. */
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) img:not([src$=".png"]):not([src$=".gif"]):not([src$=".PNG"]):not([src$=".GIF"]),
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpg"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPG"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpeg"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPEG"]:empty,
/* It's usually not desireable to invert these tags. */
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) embed:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) object:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) video {
  -webkit-filter: contrast(95%) brightness(95%) hue-rotate(180deg) invert();
}<commit_msg>Add a quick hack for Youtube stills<commit_after>/* Invert the luminance iff any of the "delumine" styles are selected. */
html[hc^="delumine"] {
  -webkit-filter: invert() hue-rotate(180deg) brightness(105%) contrast(105%);
}

/* Override the above with a low-contrast version if selected. */
html[hc^="delumine"][hc*="low-contrast"] {
  -webkit-filter: invert() hue-rotate(180deg) brightness(105%) contrast(85%);
}

/* Uninvert select items within the document.
 * Note: Chrome clears -webkit-filter on all full-screen ancestor tags, killing
 * the top-level delumination filter. This is usually desirable (e.g., for
 * Youtube videos), so instead of fighting it, just avoid trying to "uninvert"
 * images in this scenario.
 *
 * For the -noimg variant, uninvert all images. */
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) img,
/* Check for "url" in the style attribute, which is usually a fancy way to specify an image */
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) [style*="url"]:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) [style*="url"][class*="videowall-still"], /* Kind of a hack for YouTube. */
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) embed:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) object:empty,
html[hc*="delumine-noimg"]:not(*:-webkit-full-screen-ancestor) video,
/* The "smart" filter leaves PNG and GIF format images alone, since they usually are identifiable even when inverted. */
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) img:not([src$=".png"]):not([src$=".gif"]):not([src$=".PNG"]):not([src$=".GIF"]),
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpg"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPG"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpeg"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPEG"]:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpg"][class*="videowall-still"], /* More YouTube hack. */
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPG"][class*="videowall-still"],
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".jpeg"][class*="videowall-still"],
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) [style*=".JPEG"][class*="videowall-still"],
/* It's usually not desireable to invert these tags. */
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) embed:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) object:empty,
html[hc*="delumine-smart"]:not(*:-webkit-full-screen-ancestor) video {
  -webkit-filter: contrast(95%) brightness(95%) hue-rotate(180deg) invert();
}
{'fraction_non_alphanumeric': 0.20886581469648563, 'fraction_numerical': 0.009584664536741214, 'mean_word_length': 6.409763313609467, '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': '566780', 'n_tokens_mistral': 1912, 'n_tokens_neox': 1761, 'n_words': 337}