<commit_before>-- Algorithm for tiling the diagram with diamond calissons.
module Hexagrid.Tiling where

import           Control.Arrow      (first, (&&&))
import           Core.Function
import           Core.Math
import           Data.Bits          (shiftL, shiftR, (.&.))
import           Data.Color
import           Data.Entropy
import qualified Data.IntMap        as M
import           Data.List          (foldl')
import           Data.List          (nub)
import           Data.MapUtil
import qualified Debug.Trace        as T
import           Diagrams.Prelude   (blue, green, red)
import           Hexagrid.Grid
import           Hexagrid.Hexacycle
import           Hexagrid.Path
import           Hexagrid.TriangleCell

type PositionToColor = Map ColorCode<commit_msg>* factored code into modules * created Grid.Spec object with cached structures (previously global) * switch from Map to IntMap * strictness annotations * added query params: radius= & shuffles=<commit_after>-- Algorithm for tiling the diagram with diamond calissons.
module Hexagrid.Tiling where

import           Control.Arrow      (first, (&&&))
import           Core.Function
import           Core.Math
import           Data.Bits          (shiftL, shiftR, (.&.))
import           Data.Color
import           Data.Entropy
import qualified Data.IntMap        as M
import           Data.List          (foldl')
import           Data.List          (nub)
import           Data.MapUtil
import qualified Debug.Trace        as T
import           Diagrams.Prelude   (blue, green, red)
import           Hexagrid.Grid
import           Hexagrid.Hexacycle
import           Hexagrid.Path
import           Hexagrid.TriangleCell
 
type PositionToColor = Map ColorCode
{'fraction_non_alphanumeric': 0.06492753623188406, 'fraction_numerical': 0.0, 'mean_word_length': 1.9554794520547945, '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': '6237341', 'n_tokens_mistral': 459, 'n_tokens_neox': 444, 'n_words': 147}