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

#	Multiple window and color map 0 demo.

import math
import sys
import os

module_dir = "@MODULE_DIR@"

if module_dir[0] == '@':
	module_dir = os.getcwd ()

sys.path.insert (0, module_dir)

from Numeric import *
from pl import *

# Demonstrates multiple windows and default color map 0 palette.

def main():

    # Parse and process command line arguments

    plParseOpts(sys.argv, PARSE_FULL)

    # Initialize plplot

    plinit()
    # Divide screen into 16 regions

    plssub(4, 4)

    plschr(0.0, 3.5)
    plfont(4)

    for i in range(16):
	plcol(i)
	pladv(0)
	vmin = 0.1
	vmax = 0.9
	for j in range(3):
	    plwid(j + 3)
	    plvpor(vmin, vmax, vmin, vmax)
	    plwind(0.0, 1.0, 0.0, 1.0)
	    plbox("bc", 0.0, 0, "bc", 0.0, 0)
	    vmin = vmin + 0.1
	    vmax = vmax - 0.1
	    plwid(1)
	    plptex(0.5, 0.5, 1.0, 0.0, 0.5, `i`)

    # Now finish up.

    pleop()

    # And revert the screen to one plot per page.

    plssub(1,1)

    plend()

main()
<commit_msg>reorder function calls to do exactly what x02c.c does.  In particular drop extra plbop at end that was generating an extra empty file for the png driver in familying mode.  Also use same plwid argument as in the C example and move two commands out of inner loop.  Result: no extra empty file in familying mode, exact agreement between xw02.py and x02c for the psc driver.<commit_after>#!/usr/bin/env python

#	Multiple window and color map 0 demo.

import math
import sys
import os

module_dir = "@MODULE_DIR@"

if module_dir[0] == '@':
	module_dir = os.getcwd ()

sys.path.insert (0, module_dir)

from Numeric import *
from pl import *

# Demonstrates multiple windows and default color map 0 palette.

def main():

    # Divide screen into 16 regions
    plssub(4, 4)

    # Parse and process command line arguments
    plParseOpts(sys.argv, PARSE_FULL)

    # Initialize plplot
    plinit()

    plschr(0.0, 3.5)
    plfont(4)

    for i in range(16):
	plcol0(i)
	pladv(0)
	vmin = 0.1
	vmax = 0.9
	for j in range(3):
	    plwid(j + 1)
	    plvpor(vmin, vmax, vmin, vmax)
	    plwind(0.0, 1.0, 0.0, 1.0)
	    plbox("bc", 0.0, 0, "bc", 0.0, 0)
	    vmin = vmin + 0.1
	    vmax = vmax - 0.1
	plwid(1)
	plptex(0.5, 0.5, 1.0, 0.0, 0.5, `i`)

    # Now finish up.
    plend()

main()

{'fraction_non_alphanumeric': 0.11982570806100218, 'fraction_numerical': 0.048366013071895426, 'mean_word_length': 2.6794871794871793, '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': '2323435', 'n_tokens_mistral': 985, 'n_tokens_neox': 895, 'n_words': 296}