<commit_before># For more info, see https:#developers.google.com/cloud-print/docs/appInterfaces
import os
import json
import time
import client
import auth

CLOUDPRINT_URL = 'https://www.google.com/cloudprint'
UNIFLOW_ID = '744d93a2-bc96-3bb5-7bac-4042a5cfb08a'

def submit_job(token, file, color=False, duplex=False, copies=1, collate=True, staple=False):
    """Submits a print job to the uniFLOW printer.

    Token is an oauth token.
    File is a file-like object to be printed.
    Duplex means double sided.
    """
    file_name = os.path.basename(file.name)
    content = [file_name, file]
    oauth = auth.OAuth2(access_token=token, token_type='Bearer')
    print_ticket = _make_print_ticket(color=color, duplex=duplex, 
                                      copies=copies, collate=collate,
                                      staple=staple)
    try:
        job = client.submit_job(printer=UNIFLOW_ID, content=content, 
                                ticket=print_ticket, auth=oauth)<commit_msg>Update printer id.<commit_after># For more info, see https:#developers.google.com/cloud-print/docs/appInterfaces
import os
import json
import time
import client
import auth

CLOUDPRINT_URL = 'https://www.google.com/cloudprint'
UNIFLOW_ID = '7b30c56e-08f1-e90a-7fc8-ed11099a4a72'

def submit_job(token, file, color=False, duplex=False, copies=1, collate=True, staple=False):
    """Submits a print job to the uniFLOW printer.

    Token is an oauth token.
    File is a file-like object to be printed.
    Duplex means double sided.
    """
    file_name = os.path.basename(file.name)
    content = [file_name, file]
    oauth = auth.OAuth2(access_token=token, token_type='Bearer')
    print_ticket = _make_print_ticket(color=color, duplex=duplex, 
                                      copies=copies, collate=collate,
                                      staple=staple)
    try:
        job = client.submit_job(printer=UNIFLOW_ID, content=content, 
                                ticket=print_ticket, auth=oauth)
{'fraction_non_alphanumeric': 0.09639149777558081, 'fraction_numerical': 0.020761245674740483, 'mean_word_length': 2.7761194029850746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3713991', 'n_tokens_mistral': 699, 'n_tokens_neox': 648, 'n_words': 147}