<commit_before>Collections = require('../../base').Collections
make_glyph_test = require('../testutils').make_glyph_test

rangex = Collections('Range1d').create({start: 0, end: 10})
rangey = Collections('Range1d').create({start: 0, end: 10})

data_source = Collections('ObjectArrayDataSource').create(
  data: [
    {x: 1, y: 7},
    {x: 3, y: 4},
    {x: 6, y: 3},
    {x: 8, y: 2},
    {x: 9, y: 1},
  ]
)

defaults = {}

glyph = {
  type: 'line'
  x: 'x'
  y: 'y'
}

test('line_glyph', make_glyph_test('line_glyph', data_source, defaults, glyph, rangex, rangey, {}))<commit_msg>Adding a few more points to line_test, include a NaN<commit_after>Collections = require('../../base').Collections
make_glyph_test = require('../testutils').make_glyph_test

rangex = Collections('Range1d').create({start: 0, end: 25})
rangey = Collections('Range1d').create({start: 0, end: 25})

data_source = Collections('ObjectArrayDataSource').create(
  data: [
    {x: 1, y: 7},
    {x: 3, y: 4},
    {x: 6, y: 3},
    {x: 8, y: 2},
    {x: 9, y: 1},
    {x: 11, y: 3},
    {x: 13, y: NaN},
    {x: 15, y: 6},
    {x: 17, y: 6},
    {x: 19, y: 4},
    {x: 21, y: 2},
    {x: 23, y: 9},
  ]
)

defaults = {}

glyph = {
  type: 'line'
  x: 'x'
  y: 'y'
}

test('line_glyph', make_glyph_test('line_glyph', data_source, defaults, glyph, rangex, rangey, {}))
{'fraction_non_alphanumeric': 0.21631736526946108, 'fraction_numerical': 0.041916167664670656, 'mean_word_length': 3.5476190476190474, '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': '3004062', 'n_tokens_mistral': 601, 'n_tokens_neox': 531, 'n_words': 141}