<commit_before>/**
 * PDX Roaster Javascript
 *
 * @dependencies:
 * /static/js/pdx.js
 * /static/js/lib/*
 *
 */
(function ( $, window, undefined ) {

"use strict";

// Closure globals
var $_document = $( document ),
    $_body = $( document.body ),
    $_window = $( window ),
    $_mapWrap = $( "#map-wrap" ),
    $_filter = $( "#filter > input" ),
    $_header = $( "#header" ),
    $_content = $( "#content" ),
    $_pushPage = $( "#roaster-push-page" ),
    $_pushRoaster = $_pushPage.find( ".roaster" ),
    $_roasters = $( "#roasters" ),
    $_logoBack = $( "#logo" ),
    $_roasterItems = $_roasters.find( ".push-link" ),
    $_roasterTogs = $_roasters.find( ".toggle" ),
    $_roasterHandles = $_roasters.find( ".handle" ),
    _pagePosition = 0,
    _pushState = new window.pdx.PushState( {async: false} ),
    _pushDuration = 300;

// Home Controller
window.pdx.app.home = {
    init: function () {
        var self = this;
        
        this.handlePreMap();
        this.handleRoasters();
        this.handleFilter();
        
        // Global nav module
        window.pdx.nav.init();
    },
    
    handleFilter: function () {
	    var current = -1,
	    	lastKey;
	    
	    $_filter.on( "focus", function () {
	    	current = -1;
	    	
		    $.scrollTo( $_filter.offset().top-$_header.height() );
		    
		    $_roasters.css( "min-height", window.innerHeight-$_header.height() );
	    })
	    .on( "blur", function () {
	    	current = -1;
	    	
		    $_roasterItems.removeClass( "s-hidden" );
		    $( ".s-focused" ).removeClass( "s-focused" );
		    
		    $_filter.val( "" );
		    
		    //$.scrollTo( 0 );
	    })
	    .on( "keyup", function ( e ) {
		    var value = this.value,<commit_msg>idk what I did in home.js<commit_after>/**
 * PDX Roaster Javascript
 *
 * @dependencies:
 * /static/js/pdx.js
 * /static/js/lib/*
 *
 *
 */
(function ( $, window, undefined ) {

"use strict";

// Closure globals
var $_document = $( document ),
    $_body = $( document.body ),
    $_window = $( window ),
    $_mapWrap = $( "#map-wrap" ),
    $_filter = $( "#filter > input" ),
    $_header = $( "#header" ),
    $_content = $( "#content" ),
    $_pushPage = $( "#roaster-push-page" ),
    $_pushRoaster = $_pushPage.find( ".roaster" ),
    $_roasters = $( "#roasters" ),
    $_logoBack = $( "#logo" ),
    $_roasterItems = $_roasters.find( ".push-link" ),
    $_roasterTogs = $_roasters.find( ".toggle" ),
    $_roasterHandles = $_roasters.find( ".handle" ),
    _pagePosition = 0,
    _pushState = new window.pdx.PushState( {async: false} ),
    _pushDuration = 300;

// Home Controller
window.pdx.app.home = {
    init: function () {
        var self = this;
        
        this.handlePreMap();
        this.handleRoasters();
        this.handleFilter();
        
        // Global nav module
        window.pdx.nav.init();
    },
    
    handleFilter: function () {
	    var current = -1,
	    	lastKey;
	    
	    $_filter.on( "focus", function () {
	    	current = -1;
	    	
		    $.scrollTo( $_filter.offset().top-$_header.height() );
		    
		    $_roasters.css( "min-height", window.innerHeight-$_header.height() );
	    })
	    .on( "blur", function () {
	    	current = -1;
	    	
		    //$_roasterItems.removeClass( "s-hidden" );
		    //$( ".s-focused" ).removeClass( "s-focused" );
		    
		    //$_filter.val( "" );
		    
		    //$.scrollTo( 0 );
	    })
	    .on( "keyup", function ( e ) {
		    var value = this.value,
{'fraction_non_alphanumeric': 0.18954059520369834, 'fraction_numerical': 0.004622941346431667, 'mean_word_length': 2.116111611161116, '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': '2758740', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1151, 'n_words': 220}