<commit_before>
glyph = require("../glyph")


Glyph = glyph.Glyph
text_properties = glyph.text_properties


image = (view, glyphspec, data) ->
  ctx = view.plot_view.ctx

  ctx.save()
  glyph = new Glyph(view, glyphspec, ["image:string", "x", "y", "angle"], [])

  x = (glyph.select("x", obj) for obj in data)
  y = (glyph.select("y", obj) for obj in data)
  [sx, sy] = view.map_to_screen(x, glyph.x.units, y, glyph.y.units)
  image = (glyph.select("image", obj) for obj in data)
  angle = (glyph.select("angle", obj) for obj in data) # TODO deg/rad
  text = (glyph.select("text", obj) for obj in data)

  # fast and slow paths are the same
  for i in [0..sx.length-1]<commit_msg>remove erroreous references to text properties<commit_after>
glyph = require("../glyph")


Glyph = glyph.Glyph


image = (view, glyphspec, data) ->
  ctx = view.plot_view.ctx

  ctx.save()
  glyph = new Glyph(view, glyphspec, ["image:string", "x", "y", "angle"], [])

  x = (glyph.select("x", obj) for obj in data)
  y = (glyph.select("y", obj) for obj in data)
  [sx, sy] = view.map_to_screen(x, glyph.x.units, y, glyph.y.units)
  image = (glyph.select("image", obj) for obj in data)
  angle = (glyph.select("angle", obj) for obj in data) # TODO deg/rad

  # fast and slow paths are the same
  for i in [0..sx.length-1]
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.003076923076923077, 'mean_word_length': 3.663082437275986, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5698677', 'n_tokens_mistral': 510, 'n_tokens_neox': 469, 'n_words': 147}