<commit_before>#!/usr/bin/env python
from RCubic.RCubicClient import RCubicClient

import sys
import argparse

parser = argparse.ArgumentParser(description='Update RCubic with current progress')

parser.add_argument('--port', dest='port', default=8002, help='Port on which RCubic is listening', type=int)
parser.add_argument('--addr', dest='addr', default='localhost', help='Address on which RCubic is listening')
parser.add_argument('--cacert', dest='cacert', default=None, help='CACert to auth server', type=str)
parser.add_argument('--token', dest='token', default='', help='used to auth with bot server', type=str)
parser.add_argument('--script', dest='script', required=True, help='Name of script to update', type=str)
parser.add_argument('--version', dest='version', default=None, help='Script version', type=str)
parser.add_argument('--progress', dest='progress', required=True, help='Progress value (0-100)', type=int)

args = parser.parse_args()

client = RCubicClient(server=args.addr, port=args.port, CACert=args.cacert, token=args.token)
client.progress(args.script, args.version, args.progress)
sys.exit(0)<commit_msg>Added exit 0/1 for updateProgress.py<commit_after>#!/usr/bin/env python
from RCubic.RCubicClient import RCubicClient

import sys
import argparse

parser = argparse.ArgumentParser(description='Update RCubic with current progress')

parser.add_argument('--port', dest='port', default=8002, help='Port on which RCubic is listening', type=int)
parser.add_argument('--addr', dest='addr', default='localhost', help='Address on which RCubic is listening')
parser.add_argument('--cacert', dest='cacert', default=None, help='CACert to auth server', type=str)
parser.add_argument('--token', dest='token', default='', help='used to auth with bot server', type=str)
parser.add_argument('--script', dest='script', required=True, help='Name of script to update', type=str)
parser.add_argument('--version', dest='version', default=None, help='Script version', type=str)
parser.add_argument('--progress', dest='progress', required=True, help='Progress value (0-100)', type=int)

args = parser.parse_args()

client = RCubicClient(server=args.addr, port=args.port, CACert=args.cacert, token=args.token)
if client.progress(args.script, args.version, args.progress) == "True":
    sys.exit(0)
else:
    sys.exit(1)
{'fraction_non_alphanumeric': 0.1621505376344086, 'fraction_numerical': 0.00903225806451613, 'mean_word_length': 7.277580071174377, 'pattern_counts': {'":': 1, '<': 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': '7346008', 'n_tokens_mistral': 732, 'n_tokens_neox': 715, 'n_words': 179}