<commit_before>socket = io.connect 'http://desolate-scrubland-9651.herokuapp.com/'

socket.on 'edit', (data) ->
    $("#scratch").val data['text']

socket.on 'connect', (data) ->
    $("#connecting").animate {color:'#FFFFFF'}, 2500
    $("#scratch").attr('readonly', false)



$("#scratch").keydown (e) -> 
    if e.keyCode == 9
        start = this.selectionStart
        end = this.selectionEnd
        $this = $(this)
        value = $this.val()
        $this.val (value.substring 0, start)+"\t"+(value.substring end)
        this.selectionStart = this.selectionEnd = start + 1
        e.preventDefault()
        false

$('#scratch').keyup ->
    socket.emit 'edit', {text:$(this).val()}

output = (txt) ->
    $("#console").val $("#console").val()+txt+"\n>> " 

$("#submit").click (event) ->
    data = $("#scratch").val()
    eval data
$("#nerd").toggle (event) ->
    $("#scratch").css({"color":"#0F0", "background-color":"#000", "font":"console"})
    $("#console").css({"color":"#0F0", "background-color":"#000", "font":"console"})
, (event) ->
    $("#scratch").css({"color":"#000", "background-color":"#fff", "font":"helvetica"})
    $("#console").css({"color":"#000", "background-color":"#fff", "font":"helvetica"}))
    <commit_msg>unmatched bracket, having to develop while ssh'd into my ec2 server, then pushing to my heroku instance, then debugging from the browser is frankly excruciating<commit_after>socket = io.connect 'http://desolate-scrubland-9651.herokuapp.com/'

socket.on 'edit', (data) ->
    $("#scratch").val data['text']

socket.on 'connect', (data) ->
    $("#connecting").animate {color:'#FFFFFF'}, 2500
    $("#scratch").attr('readonly', false)



$("#scratch").keydown (e) -> 
    if e.keyCode == 9
        start = this.selectionStart
        end = this.selectionEnd
        $this = $(this)
        value = $this.val()
        $this.val (value.substring 0, start)+"\t"+(value.substring end)
        this.selectionStart = this.selectionEnd = start + 1
        e.preventDefault()
        false

$('#scratch').keyup ->
    socket.emit 'edit', {text:$(this).val()}

output = (txt) ->
    $("#console").val $("#console").val()+txt+"\n>> " 

$("#submit").click (event) ->
    data = $("#scratch").val()
    eval data
$("#nerd").toggle (event) ->
    $("#scratch").css({"color":"#0F0", "background-color":"#000", "font":"console"})
    $("#console").css({"color":"#0F0", "background-color":"#000", "font":"console"})
, (event) ->
    $("#scratch").css({"color":"#000", "background-color":"#fff", "font":"helvetica"})
    $("#console").css({"color":"#000", "background-color":"#fff", "font":"helvetica"})
    
{'fraction_non_alphanumeric': 0.2517084282460137, 'fraction_numerical': 0.02088078967350038, 'mean_word_length': 3.7307001795332138, 'pattern_counts': {'":': 24, '<': 3, '<?xml version=': 0, '>': 23, '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': '81144', 'n_tokens_mistral': 898, 'n_tokens_neox': 867, 'n_words': 162}