<commit_before>const express = require('express');
const rp = require('request-promise');

const request = (imagePath) => {
  return new Promise((resolve, reject) => {
    const options = {
    method: 'POST',
    uri: `http://api.kairos.com/?source=${imagePath}`,
    headers: {
      app_id: process.env.API_ID,
      app_key: process.env.API_KEY,
      }
    };
    console.log(options);<commit_msg>added logs<commit_after>const express = require('express');
const rp = require('request-promise');

const request = (imagePath) => {
  return new Promise((resolve, reject) => {
    console.log(`image path was passed at: ${imagePath}`);
    const options = {
    method: 'POST',
    uri: `http://api.kairos.com/?source=${imagePath}`,
    headers: {
      app_id: process.env.API_ID,
      app_key: process.env.API_KEY,
      }
    };
    console.log(`Options: ${options}`);
{'fraction_non_alphanumeric': 0.17162471395881007, 'fraction_numerical': 0.0, 'mean_word_length': 3.419191919191919, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3654524', 'n_tokens_mistral': 287, 'n_tokens_neox': 286, 'n_words': 57}