<commit_before>View = require './view'

Request = require '../models/Request'
Slaves = require '../collections/Slaves'
fuzzy = require 'fuzzy'

killTemplate = require '../templates/vex/taskKill'

Utils = require '../utils'

class TasksView extends View

    isSorted: false

    templateBase:  require '../templates/tasksTable/tasksBase'

    # Figure out which template we'll use for the table based on the filter
    bodyTemplateMap:
        active:          require '../templates/tasksTable/tasksActiveBody'
        scheduled:       require '../templates/tasksTable/tasksScheduledBody'
        cleaning:        require '../templates/tasksTable/tasksCleaningBody'
        lbcleanup:      require '../templates/tasksTable/tasksLbCleaningBody'
        decommissioning: require '../templates/tasksTable/tasksDecommissioningBody'

    # For staged rendering
    renderProgress: 0
    renderAtOnce: 100
    # Cache for the task array we're currently rendering
    currentTasks: []
<commit_msg>Add vex import to tasks table page for task kill button on that page<commit_after>View = require './view'

Request = require '../models/Request'
Slaves = require '../collections/Slaves'
fuzzy = require 'fuzzy'

killTemplate = require '../templates/vex/taskKill'

Utils = require '../utils'

vex = require 'vex'

class TasksView extends View

    isSorted: false

    templateBase:  require '../templates/tasksTable/tasksBase'

    # Figure out which template we'll use for the table based on the filter
    bodyTemplateMap:
        active:          require '../templates/tasksTable/tasksActiveBody'
        scheduled:       require '../templates/tasksTable/tasksScheduledBody'
        cleaning:        require '../templates/tasksTable/tasksCleaningBody'
        lbcleanup:      require '../templates/tasksTable/tasksLbCleaningBody'
        decommissioning: require '../templates/tasksTable/tasksDecommissioningBody'

    # For staged rendering
    renderProgress: 0
    renderAtOnce: 100
    # Cache for the task array we're currently rendering
    currentTasks: []

{'fraction_non_alphanumeric': 0.09776264591439689, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 3.0894632206759445, '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': '6628691', 'n_tokens_mistral': 555, 'n_tokens_neox': 525, 'n_words': 160}