<commit_before>import makeRequest from '../makeRequest';

export default function startJob(
  sha1,
  sha2,
  { apiKey, apiSecret, endpoint },
  { expectedProjects },
) {
  return makeRequest(
    {
      url: `${endpoint}/api/jobs/${sha1}/${sha2}`,
      method: 'POST',
      json: true,
      body: {
        projects: expectedProjects ? expectedProjects.split(',') : undefined,<commit_msg>Default `projects` param on start-job to the current project<commit_after>import makeRequest from '../makeRequest';

export default function startJob(
  sha1,
  sha2,
  { apiKey, apiSecret, endpoint, project },
  { expectedProjects },
) {
  return makeRequest(
    {
      url: `${endpoint}/api/jobs/${sha1}/${sha2}`,
      method: 'POST',
      json: true,
      body: {
        projects: expectedProjects ? expectedProjects.split(',') : [project],
{'fraction_non_alphanumeric': 0.14726840855106887, 'fraction_numerical': 0.009501187648456057, 'mean_word_length': 3.3678756476683938, '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': '3592662', 'n_tokens_mistral': 258, 'n_tokens_neox': 259, 'n_words': 62}