<commit_before>var db = require('./db-api');
var log = require('debug')('broadcast:arg-parse');

function indexOfMarker(tokens, marker) {
  log(tokens);
  log(marker);
  var possibilities = [
    tokens.indexOf(`—${marker}`), 
    tokens.indexOf(`-${marker}`), 
    tokens.indexOf(`--${marker}`),
    tokens.indexOf(`––${marker}`)
  ];
  log(possibilities);
  var result = -1;
  possibilities.forEach(idx => {
    log(idx);
    result = idx;
  });
  log('result');
  log(result);
  return result;
}

function plusOneOf(text, marker) {
  var tokens = text.split(' ');

  var markerIdx = indexOfMarker(tokens, marker);
  if (markerIdx > -1) {<commit_msg>didn't have the check<commit_after>var db = require('./db-api');
var log = require('debug')('broadcast:arg-parse');

function indexOfMarker(tokens, marker) {
  var possibilities = [
    tokens.indexOf(`—${marker}`), 
    tokens.indexOf(`-${marker}`), 
    tokens.indexOf(`--${marker}`),
    tokens.indexOf(`––${marker}`)
  ];

  var result = -1;
  possibilities.forEach(idx => {
    if (idx > -1) result = idx;
  });

  return result;
}

function plusOneOf(text, marker) {
  var tokens = text.split(' ');

  var markerIdx = indexOfMarker(tokens, marker);
  if (markerIdx > -1) {
{'fraction_non_alphanumeric': 0.1975609756097561, 'fraction_numerical': 0.0040650406504065045, 'mean_word_length': 3.8656126482213438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2070605', 'n_tokens_mistral': 419, 'n_tokens_neox': 414, 'n_words': 84}