<commit_before>var Q = require('q');
var facebookService = {};

var fbPromise = Q.Promise(function(resolve) {
    window.fbAsyncInit = function() {
        window.FB.init({
            appId: '435522656639081',
            xfbml: true,
            cookie: true,
            version: 'v2.2'
        });

        window.FB.Event.subscribe('auth.statusChange', function(response) {
            var isAuthenticated = response.status === 'connected';
            if (isAuthenticated) {
                var expires = new Date(Date.now() + response.authResponse.expiresIn).toUTCString();<commit_msg>Multiply cookie expiration by 1000<commit_after>var Q = require('q');
var facebookService = {};

var fbPromise = Q.Promise(function(resolve) {
    window.fbAsyncInit = function() {
        window.FB.init({
            appId: '435522656639081',
            xfbml: true,
            cookie: true,
            version: 'v2.2'
        });

        window.FB.Event.subscribe('auth.statusChange', function(response) {
            var isAuthenticated = response.status === 'connected';
            if (isAuthenticated) {
                var expires = new Date(Date.now() + response.authResponse.expiresIn * 1000).toUTCString();
                console.log('expires', expires);
                console.log('expiresin', response.authResponse.expiresIn);
{'fraction_non_alphanumeric': 0.12949101796407186, 'fraction_numerical': 0.03143712574850299, 'mean_word_length': 2.334164588528678, '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': '224819', 'n_tokens_mistral': 411, 'n_tokens_neox': 370, 'n_words': 72}