<commit_before># Schrödinger’s Zebra: Information Theory, Quantum Mechanics, and Halftoning — Source Code

This code is the implementation of the quantum halftoning algorithm from the
paper “Schrödinger’s Zebra: Information Theory, Quantum Mechanics, and
Halftoning”, by <NAME> and <NAME>, submitted to
[Bridges 2017].

The program is written in [Haskell], and requires [GHC] 8.  It uses the [Stack]
tool for installing dependencies (including GHC itself) and building.

## Building and running the program

* **Setup (once only):** Install [Stack], make sure it is in your path, and
  execute the command `stack setup` in this directory.

* **Build:** Execute the command `stack build` in this directory.

* **Run:** Run the command `./quantum-halftone` in this directory; for usage
  information, run `./quantum-halftone --help`.  (You can also run `stack exec
  quantum-halftone -- --help`; it’s the same thing.)

## Sample command lines

The following two sample command lines run the quantum halftoning algorithm with
the same parameters:

  * Each grayscale inpixel is expanded to a 3×3 grid of black and white
    outpixels.
  * The grayscale input file is `input.png`.
  * Twenty output files are produced, named `output01.png` through
    `output20.png`.
  * The initial output image is a quantum halftoning of the whole image (instead
    of a blank white or black canvas).
  * The whole image is re-halftoned to produce each of the output images
    (instead of re-halftoning a single pixel at a time).

With the long forms of the comand-line arguments, this can be run as

```
./quantum-halftone --expand-by=3 --start=image --refresh=image --count=20 \
                   input.png 'output*.png'
```

With the short forms of the comand-line arguments, this can be run as

```
./quantum-halftone -e3 -si -ri -n20 input.png 'output*.png'
```

## Licensing

This code is available under the permissive open-source 3-clause BSD license;
see the `LICENSE` file for more information.

[Bridges 2017]: http://bridgesmathart.org/bridges-2017/
[Haskell]:      https://www.haskell.org/
[GHC]:          https://www.haskell.org/ghc/
[Stack]:        https://www.haskellstack.org/<commit_msg>Update the README for MaxEnt 2017 (belatedly)<commit_after># Schrödinger’s Zebra: Applying Mutual Information Maximization to Graphical Halftoning — Source Code

This code is the implementation of the quantum halftoning algorithm from
“Schrödinger’s Zebra: Information Theory, Quantum Mechanics, and Halftoning”, by
<NAME> and <NAME>, presented at [MaxEnt 2017].

The program is written in [Haskell], and requires [GHC] 8.  It uses the [Stack]
tool for installing dependencies (including GHC itself) and building.

## Building and running the program

* **Setup (once only):** Install [Stack], make sure it is in your path, and
  execute the command `stack setup` in this directory.

* **Build:** Execute the command `stack build` in this directory.

* **Run:** Run the command `./quantum-halftone` in this directory; for usage
  information, run `./quantum-halftone --help`.  (You can also run `stack exec
  quantum-halftone -- --help`; it’s the same thing.)

## Sample command lines

The following two sample command lines run the quantum halftoning algorithm with
the same parameters:

  * Each grayscale inpixel is expanded to a 3×3 grid of black and white
    outpixels.
  * The grayscale input file is `input.png`.
  * Twenty output files are produced, named `output01.png` through
    `output20.png`.
  * The initial output image is a quantum halftoning of the whole image (instead
    of a blank white or black canvas).
  * The whole image is re-halftoned to produce each of the output images
    (instead of re-halftoning a single pixel at a time).

With the long forms of the comand-line arguments, this can be run as

```
./quantum-halftone --expand-by=3 --start=image --refresh=image --count=20 \
                   input.png 'output*.png'
```

With the short forms of the comand-line arguments, this can be run as

```
./quantum-halftone -e3 -si -ri -n20 input.png 'output*.png'
```

## Licensing

This code is available under the permissive open-source 3-clause BSD license;
see the `LICENSE` file for more information.

[MaxEnt 2017]: http://www.gis.des.ufscar.br/meetings/2017maxent/index.php
[Haskell]:     https://www.haskell.org/
[GHC]:         https://www.haskell.org/ghc/
[Stack]:       https://www.haskellstack.org/
{'fraction_non_alphanumeric': 0.10029365258640163, 'fraction_numerical': 0.012649649875762368, 'mean_word_length': 3.6956521739130435, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 7, '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': '273082', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1270, 'n_words': 566}