<commit_before>def scheduler_pubsub(pub_sub_event, context):
    
    project = os.environ.get('GCP_PROJECT', 'Specified environment variable is not set.')
    print(f"Project : {project}")
    print(f"Processing pub_sub_event: {pub_sub_event['name']}.")
    pub_sub_message = base64.b64decode(pub_sub_event['data']).decode('utf-8')
    print(f"Pubsub message : {pub_sub_message}")
    type='POLICY'
    print ('data:','invoking REST call')
    dict_to_send = {'type':type}
  
    print(" test 1099 ")
    
    if pub_sub_message == 'executor':
        print ('Invoking the executor')
        response = requests.post('http://sdrs-api.endpoints.sdrs-server.cloud.goog:80/events/execution/', json=dict_to_send)
        print ('Response from server: {}'.format(response.text))
    elif pub_sub_message == 'validator':
        print('Invoking the validator')
        response = requests.post('http://sdrs-api.endpoints.sdrs-server.cloud.goog:80/events/validation/')
        print ('Response from server: {}'.format(response.text))<commit_msg>adding logging message<commit_after>def scheduler_pubsub(pub_sub_event, context):
    
    project = os.environ.get('GCP_PROJECT', 'Specified environment variable is not set.')
    print(f"Project : {project}")
    print(f"Processing pub_sub_event: {pub_sub_event['name']}.")
    pub_sub_message = base64.b64decode(pub_sub_event['data']).decode('utf-8')
    print(f"Pubsub message : {pub_sub_message}")
    type='POLICY'
    dict_to_send = {'type':type}
  
    print("Invoking REST call via cloud function")
    
    if pub_sub_message == 'executor':
        print ('Invoking the executor')
        response = requests.post('http://sdrs-api.endpoints.sdrs-server.cloud.goog:80/events/execution/', json=dict_to_send)
        print ('Response from server: {}'.format(response.text))
    elif pub_sub_message == 'validator':
        print('Invoking the validator')
        response = requests.post('http://sdrs-api.endpoints.sdrs-server.cloud.goog:80/events/validation/')
        print ('Response from server: {}'.format(response.text))
    else:
        print('Nothing to schedule')
{'fraction_non_alphanumeric': 0.14865502595563945, 'fraction_numerical': 0.010382255781028787, 'mean_word_length': 3.941724941724942, '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': '5094047', 'n_tokens_mistral': 696, 'n_tokens_neox': 676, 'n_words': 122}