<commit_before>#!/usr/bin/env python

# Append to effective python path so that can find plplot modules.
from plplot_python_start import *

import sys
from plplot import *
from numpy import *

# Parse and process command line arguments
plparseopts(sys.argv, PL_PARSE_FULL)

# Initialize plplot
plinit()
# Like yellow lines better.
plcol0(2)
pladv(0)
plvpor(0.2, 0.8, 0.2, 0.8)
plwind(0., 1., 0., 1.)
plbox("bc", 0., 0, "bc", 0., 0)

plptex(0.5, 0.9, 1., 0., 0.5, "X#d0#d1#d2#u3#u4#u5#u6#u7#u8#d9#d0#d1")
plptex(0.5, 0.9, 1., 0., 0.5, "X#u0#u1#u2#d3#d4#d5#d6#d7#d8#u9#u0#u1")
plptex(0.5, 0.7, 1., 0., 0.5, "#ga#uaa#gad#gdp#gr#gf#d, #ga#u#ga#gaad#gdp#gr#gf#d, B#uaa#gad#gdp#gr#gf#d, B#u#ga#gaad#gdp#gr#gf#d")
plptex(0.5, 0.6, 1., 0., 0.5, "#ga#daa#gad#gdp#gr#gf#u, #ga#d#ga#gaad#gdp#gr#gf#u, B#daa#gad#gdp#gr#gf#u, B#d#ga#gaad#gdp#gr#gf#u")
plptex(0.5, 0.5, 1., 0., 0.5, "B#uf#d, B#ur#d")
plptex(0.5, 0.4, 1., 0., 0.5, "B#df#u, B#dr#u")

pladv(0)
plvpor(0.2, 0.8, 0.2, 0.8)
plwind(0., 1.e-200, 0., 1.e-200)
plbox("bcmnt", 0., 0, "bcmntv", 0., 0)

# Roughly duplicate plptex tests of superscript/subscript.
plmtex("t", -4., 0.5, 0.5, "X#d0#d1#d2#u3#u4#u5#u6#u7#u8#d9#d0#d1")
plmtex("t", -4., 0.5, 0.5, "X#u0#u1#u2#d3#d4#d5#d6#d7#d8#u9#u0#u1")
plmtex("t", -8., 0.5, 0.5, "#ga#uaa#gad#gdp#gr#gf#d, #ga#u#ga#gaad#gdp#gr#gf#d, B#uaa#gad#gdp#gr#gf#d, B#u#ga#gaad#gdp#gr#gf#d")
plmtex("t", -12., 0.5, 0.5, "#ga#daa#gad#gdp#gr#gf#u, #ga#d#ga#gaad#gdp#gr#gf#u, B#daa#gad#gdp#gr#gf#u, B#d#ga#gaad#gdp#gr#gf#u")
plmtex("t", -16., 0.5, 0.5, "B#uf#d, B#ur#d")
plmtex("t", -20., 0.5, 0.5, "B#df#u, B#dr#u")

# These four tests mimic what occurs for badly scaled plbox axes.
plmtex("t", 3.2, 1.0, 0.5, "(x10#u-100#d)")<commit_msg>Include an FCI command (to change to bold face) in one superscript and one subscript test case.  This works correctly for qt devices, but fails to give good results for the cairo devices demonstrating a bug for those devices for this corner case (FCI and non-zero superscript/subscript level).<commit_after>#!/usr/bin/env python

# Append to effective python path so that can find plplot modules.
from plplot_python_start import *

import sys
from plplot import *
from numpy import *

# Parse and process command line arguments
plparseopts(sys.argv, PL_PARSE_FULL)

# Initialize plplot
plinit()
# Like yellow lines better.
plcol0(2)
pladv(0)
plvpor(0.2, 0.8, 0.2, 0.8)
plwind(0., 1., 0., 1.)
plbox("bc", 0., 0, "bc", 0., 0)

plptex(0.5, 0.9, 1., 0., 0.5, "X#d0#d#<bold/>1#d2#u3#u4#u5#u6#u7#u8#d9#d0#d1")
plptex(0.5, 0.9, 1., 0., 0.5, "X#u0#u#<bold/>1#u2#d3#d4#d5#d6#d7#d8#u9#u0#u1")
plptex(0.5, 0.7, 1., 0., 0.5, "#ga#uaa#gad#gdp#gr#gf#d, #ga#u#ga#gaad#gdp#gr#gf#d, B#uaa#gad#gdp#gr#gf#d, B#u#ga#gaad#gdp#gr#gf#d")
plptex(0.5, 0.6, 1., 0., 0.5, "#ga#daa#gad#gdp#gr#gf#u, #ga#d#ga#gaad#gdp#gr#gf#u, B#daa#gad#gdp#gr#gf#u, B#d#ga#gaad#gdp#gr#gf#u")
plptex(0.5, 0.5, 1., 0., 0.5, "B#uf#d, B#ur#d")
plptex(0.5, 0.4, 1., 0., 0.5, "B#df#u, B#dr#u")

pladv(0)
plvpor(0.2, 0.8, 0.2, 0.8)
plwind(0., 1.e-200, 0., 1.e-200)
plbox("bcmnt", 0., 0, "bcmntv", 0., 0)

# Roughly duplicate plptex tests of superscript/subscript.
plmtex("t", -4., 0.5, 0.5, "X#d0#d1#d2#u3#u4#u5#u6#u7#u8#d9#d0#d1")
plmtex("t", -4., 0.5, 0.5, "X#u0#u1#u2#d3#d4#d5#d6#d7#d8#u9#u0#u1")
plmtex("t", -8., 0.5, 0.5, "#ga#uaa#gad#gdp#gr#gf#d, #ga#u#ga#gaad#gdp#gr#gf#d, B#uaa#gad#gdp#gr#gf#d, B#u#ga#gaad#gdp#gr#gf#d")
plmtex("t", -12., 0.5, 0.5, "#ga#daa#gad#gdp#gr#gf#u, #ga#d#ga#gaad#gdp#gr#gf#u, B#daa#gad#gdp#gr#gf#u, B#d#ga#gaad#gdp#gr#gf#u")
plmtex("t", -16., 0.5, 0.5, "B#uf#d, B#ur#d")
plmtex("t", -20., 0.5, 0.5, "B#df#u, B#dr#u")

# These four tests mimic what occurs for badly scaled plbox axes.
plmtex("t", 3.2, 1.0, 0.5, "(x10#u-100#d)")
{'fraction_non_alphanumeric': 0.2603439011284256, 'fraction_numerical': 0.09779688339602365, 'mean_word_length': 5.073409461663948, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '924816', 'n_tokens_mistral': 2308, 'n_tokens_neox': 2128, 'n_words': 394}