<commit_before>#!/usr/bin/env node

const fs = require('fs');
const path = require('path');
const https = require('https');
const express = require('express');
const session = require('express-session');
const passport = require('passport');
const {Strategy} = require('passport-saml');
const ws = require('uws');
const connection = require('./server/connection');
// const index = path.resolve(__dirname, 'web', 'index.html');
const index = path.resolve(__dirname, 'web', 'dev.html');
const children = {};

const key = fs.readFileSync(path.resolve(__dirname, 'certs', 'lambda-key.pem'));
const cert = fs.readFileSync(path.resolve(__dirname, 'certs', 'lambda_mit_edu.cer'));
const credentials = {key, cert};

const idpCert = fs.readFileSync(path.resolve(__dirname, 'certs', 'cert_idp.pem'));
const spKey = fs.readFileSync(path.resolve(__dirname, 'certs', 'sp-key.pem'));

const config = {
    entryPoint: 'https://idp.mit.edu/idp/profile/SAML2/Redirect/SSO',
    cert: idpCert,
    identifierFormat: null,
    issuer: 'https://lambda.mit.edu/shibboleth',
    callbackUrl: 'https://lambda.mit.edu/auth/callback',
    decryptionPvk: spKey,
    privateCert: spKey,
    acceptedClockSkewMs: 180000,
    disableRequestedAuthnContext: true,
    // passReqToCallback: true,
};<commit_msg>my hands are typing words<commit_after>#!/usr/bin/env node

const fs = require('fs');
const path = require('path');
const https = require('https');
const express = require('express');
const session = require('express-session');
const passport = require('passport');
const {Strategy} = require('passport-saml');
const ws = require('uws');
const connection = require('./server/connection');
// const index = path.resolve(__dirname, 'web', 'index.html');
const index = path.resolve(__dirname, 'web', 'dev.html');
const children = {};

const key = fs.readFileSync(path.resolve(__dirname, 'certs', 'lambda-key.pem'));
const cert = fs.readFileSync(path.resolve(__dirname, 'certs', 'lambda_mit_edu_cert.cer'));
const credentials = {key, cert};

const idpCert = fs.readFileSync(path.resolve(__dirname, 'certs', 'cert_idp.pem'));
const spKey = fs.readFileSync(path.resolve(__dirname, 'certs', 'sp-key.pem'));

const config = {
    entryPoint: 'https://idp.mit.edu/idp/profile/SAML2/Redirect/SSO',
    cert: idpCert,
    identifierFormat: null,
    issuer: 'https://lambda.mit.edu/shibboleth',
    callbackUrl: 'https://lambda.mit.edu/auth/callback',
    decryptionPvk: spKey,
    privateCert: spKey,
    acceptedClockSkewMs: 180000,
    disableRequestedAuthnContext: true,
    // passReqToCallback: true,
};
{'fraction_non_alphanumeric': 0.17138425746413338, 'fraction_numerical': 0.005428460643660334, 'mean_word_length': 5.2773722627737225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2687355', 'n_tokens_mistral': 851, 'n_tokens_neox': 832, 'n_words': 178}