<commit_before>tls  = require "tls"
https = require "https"
http = require "http"
net = require "net"
_ = require "lodash"

# This HTTPS Agent allows us to verify a server's self-signed cert before
# accepting the connection via a "cert" event that is emitted when the cert
# is received.
#
# This requires a pentest
module.exports = class SelfSignedHttpsAgent extends https.Agent<commit_msg>Tested the self signed https agent logic. No http headers are sent if a bad cert is detected and an error is raised.<commit_after>tls  = require "tls"
https = require "https"
http = require "http"
net = require "net"
_ = require "lodash"

# This HTTPS Agent allows us to verify a server's self-signed cert before
# accepting the connection via a "cert" event that is emitted when the cert
# is received.
module.exports = class SelfSignedHttpsAgent extends https.Agent
{'fraction_non_alphanumeric': 0.07217694994179279, 'fraction_numerical': 0.0, 'mean_word_length': 4.620915032679738, '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': '5812027', 'n_tokens_mistral': 244, 'n_tokens_neox': 237, 'n_words': 117}