<commit_before>local anim8 = require 'vendor/anim8'

local plyr = {}
plyr.name = 'vicedean'
plyr.offset = 5
plyr.ow = 8
plyr.costumes = {
    {name='<NAME>', sheet='images/vicedean.png'},
    {name='Ghost', sheet='images/vicedean_ghost.png'},
    {name='Going Through Some Stuff', sheet='images/vicedean_stuff.png'},
}

local beam = love.graphics.newImage('images/abed_beam.png')

function plyr.new(sheet)
    local new_plyr = {}
    new_plyr.sheet = sheet
    new_plyr.sheet:setFilter('nearest', 'nearest')

    local g = anim8.newGrid(48, 48, new_plyr.sheet:getWidth(), 
        new_plyr.sheet:getHeight())

    local warp = anim8.newGrid(36, 223, beam:getWidth(),
        beam:getHeight())

    new_plyr.hand_offsets = {
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 6,32},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{12,32},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{10, 7},{ 5, 5},{ 5, 5} },
        { { 5, 3},{ 5, 5},{ 5, 3},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { {10, 5},{10, 7},{10, 5},{10, 7},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} },
        { { 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5},{ 5, 5} }
    }
    new_plyr.beam = beam
    new_plyr.animations = {
        dead = {
            right = anim8.newAnimation('once', g('9,13'), 1),
            left = anim8.newAnimation('once', g('9,14'), 1)
        },
        hold = {
            right = anim8.newAnimation('once', g(5,5), 1),
            left = anim8.newAnimation('once', g(5,6), 1),
        },
        holdwalk = { 
            right = anim8.newAnimation('loop', g('1-3,9', '2,9'), 0.16),
            left = anim8.newAnimation('loop', g('1-3,10', '2,10'), 0.16),
        },
        crouch = {
            right = anim8.newAnimation('once', g('9,4'), 1),
            left = anim8.newAnimation('once', g('9,3'), 1)
        },
        crouchwalk = { --state for walking towards the camera
            left = anim8.newAnimation('loop', g('2-3,3'), 0.16),
            right = anim8.newAnimation('loop', g('2-3,3'), 0.16),
        },
        gaze = {
            right = anim8.newAnimation('once', g(8,2), 1),
            left = anim8.newAnimation('once', g(8,1), 1),
        },
        gazewalk = { --state for walking away from the camera
            left = anim8.newAnimation('loop', g('2-3,4'), 0.16),
            right = anim8.newAnimation('loop', g('2-3,4'), 0.16),
        },<commit_msg>Fixes #166. Vicedean. That's everyone!<commit_after>local anim8 = require 'vendor/anim8'

local plyr = {}
plyr.name = 'vicedean'
plyr.offset = 5
plyr.ow = 8
plyr.costumes = {
    {name='<NAME>', sheet='images/vicedean.png'},
    {name='Ghost', sheet='images/vicedean_ghost.png'},
    {name='Going Through Some Stuff', sheet='images/vicedean_stuff.png'},
}

local beam = love.graphics.newImage('images/abed_beam.png')

function plyr.new(sheet)
    local new_plyr = {}
    new_plyr.sheet = sheet
    new_plyr.sheet:setFilter('nearest', 'nearest')

    local g = anim8.newGrid(48, 48, new_plyr.sheet:getWidth(), 
        new_plyr.sheet:getHeight())

    local warp = anim8.newGrid(36, 223, beam:getWidth(),
        beam:getHeight())

    new_plyr.hand_offsets = {
        { {11,39},{-12,36},{6,36},{16,34},{11,39},{11,39},{-4,37},{11,39},{ 1,31} },
        { {14,39},{-15,34},{14,33},{15,33},{14,39},{14,39},{5,37},{14,39},{16,38} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{13,19},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{10,20},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { {13,19},{13,18},{13,19},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { {10,20},{10,19},{10,20},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} },
        { { 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0} }
    }
    new_plyr.beam = beam
    new_plyr.animations = {
        dead = {
            right = anim8.newAnimation('once', g('9,13'), 1),
            left = anim8.newAnimation('once', g('9,14'), 1)
        },
        hold = {
            right = anim8.newAnimation('once', g(5,5), 1),
            left = anim8.newAnimation('once', g(5,6), 1),
        },
        holdwalk = { 
            right = anim8.newAnimation('loop', g('1-3,9', '2,9'), 0.16),
            left = anim8.newAnimation('loop', g('1-3,10', '2,10'), 0.16),
        },
        crouch = {
            right = anim8.newAnimation('once', g('9,4'), 1),
            left = anim8.newAnimation('once', g('9,3'), 1)
        },
        crouchwalk = { --state for walking towards the camera
            left = anim8.newAnimation('loop', g('2-3,3'), 0.16),
            right = anim8.newAnimation('loop', g('2-3,3'), 0.16),
        },
        gaze = {
            right = anim8.newAnimation('once', g(8,2), 1),
            left = anim8.newAnimation('once', g(8,1), 1),
        },
        gazewalk = { --state for walking away from the camera
            left = anim8.newAnimation('loop', g('2-3,4'), 0.16),
            right = anim8.newAnimation('loop', g('2-3,4'), 0.16),
        },
{'fraction_non_alphanumeric': 0.2866349547337732, 'fraction_numerical': 0.12168175540893049, 'mean_word_length': 2.2606303151575786, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4710472', 'n_tokens_mistral': 3257, 'n_tokens_neox': 2619, 'n_words': 744}