<commit_before>#!/usr/bin/env python
import argparse
import ConfigParser
import code
import re
import sys

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

CONF_FILE = '/root/.owen'
CONF = ConfigParser.RawConfigParser()
CONF.read(CONF_FILE)

def fill_form(driver, data):
    for id,text in data.iteritems():
        el = driver.find_element_by_id(id)
        if not el:
            raise Execption("Element not found with id: {}".format(id))
        el.send_keys(text)

def handle_after_hours_popup(driver, form_win):
    # Find the popup window
    maybe_popup_windows = [ w for w in driver.window_handles if w != form_win ]
    for window in maybe_popup_windows:
        driver.switch_to_window(window)
        done = False
        try:
            service_tomorrow = driver.find_element_by_id("Status_TypeA")
            service_tomorrow.click()
            driver.find_element_by_name("ibm-submit").click()
            done = True
        except Exception:
            pass<commit_msg>Look for .owen file in /Users/devoid directory<commit_after>#!/usr/bin/env python
import argparse
import ConfigParser
import code
import re
import sys

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os

HOME = os.environ['HOME']
CONF_FILE = '%s/.owen' % HOME
CONF = ConfigParser.RawConfigParser()
CONF.read(CONF_FILE)

def fill_form(driver, data):
    for id,text in data.iteritems():
        el = driver.find_element_by_id(id)
        if not el:
            raise Execption("Element not found with id: {}".format(id))
        el.send_keys(text)

def handle_after_hours_popup(driver, form_win):
    # Find the popup window
    maybe_popup_windows = [ w for w in driver.window_handles if w != form_win ]
    for window in maybe_popup_windows:
        driver.switch_to_window(window)
        done = False
        try:
            service_tomorrow = driver.find_element_by_id("Status_TypeA")
            service_tomorrow.click()
            driver.find_element_by_name("ibm-submit").click()
            done = True
        except Exception:
            pass
{'fraction_non_alphanumeric': 0.08802650260293422, 'fraction_numerical': 0.0, 'mean_word_length': 2.9662288930581613, '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': '5360211', 'n_tokens_mistral': 648, 'n_tokens_neox': 629, 'n_words': 166}