<commit_before>#!/usr/bin/env python
"""Generates a list of hashes of EV certificates found in a log."""

import json
import os
import requests
import shutil
import StringIO
import sys
import tempfile
import urlparse
import zipfile

import generate_ev_whitelist
import golomb_code

import gflags

CRX_URL = (
    "https://clients2.googleusercontent.com/crx/blobs/QgAAAC6zw0qH2DJtnXe8Z7rUJP3DCIAaZyHxsk_kMfbij2DZlYi07qKK5K2pnang1t710oEk_r0X2kan6URPBZyL0mZfimAgxdy3Awu1aoRah0JGAMZSmuUEsfuk2YGUHtqSL6Bt0omrn-zRiw/oafdbfcohdcjandcenmccfopbeklnicp_main.platform.all.crx")
TRUNCATED_HASH_LENGTH = 8
GOLOMB_M_PARAMETER = 2 ** 47
NUM_FETCHING_PROCESSES = 40
LOGS_LIST = [
    "https://ct.googleapis.com/pilot",
    "https://ct.googleapis.com/aviator",
    "https://ct1.digicert-ct.com/log",
]

FLAGS = gflags.FLAGS

gflags.DEFINE_string(
    "output_crx", "chrome_ev_whitelist_%d",
    "Output Chrome extension. "<commit_msg>EV Whitelist: Update CRX url<commit_after>#!/usr/bin/env python
"""Generates a list of hashes of EV certificates found in a log."""

import json
import os
import requests
import shutil
import StringIO
import sys
import tempfile
import urlparse
import zipfile

import generate_ev_whitelist
import golomb_code

import gflags

CRX_URL = (
    "https://clients2.googleusercontent.com/crx/blobs/QgAAAC6zw0qH2DJtnXe8Z7rUJP2bOoos30wQnFlfu4JmGbv_WafDN7cDNxLuif0rowVfBuLBdFtlTWFMKISh9OEN-IYAS8rlCeqrj26GNKznEPlFAMZSmuXhKxGN1KntVEK_KKCwwrfdp1cRxw/oafdbfcohdcjandcenmccfopbeklnicplive_main.platform.all.crx")
TRUNCATED_HASH_LENGTH = 8
GOLOMB_M_PARAMETER = 2 ** 47
NUM_FETCHING_PROCESSES = 40
LOGS_LIST = [
    "https://ct.googleapis.com/pilot",
    "https://ct.googleapis.com/aviator",
    "https://ct1.digicert-ct.com/log",
]

FLAGS = gflags.FLAGS

gflags.DEFINE_string(
    "output_crx", "chrome_ev_whitelist_%d",
    "Output Chrome extension. "
{'fraction_non_alphanumeric': 0.0901241230437129, 'fraction_numerical': 0.03130059363194819, 'mean_word_length': 5.791208791208791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '11127', 'n_tokens_mistral': 826, 'n_tokens_neox': 784, 'n_words': 122}