<commit_before>import { execSync } from "child_process";

export class GitCmdClient {

  currentName() {
    return execSync("git branch | grep \"^\\*\" | cut -b 3-", { encoding: "utf8" });
  }

  revParse(currentName: string) {
    return execSync(`git rev-parse ${currentName}`, { encoding: "utf8" });
  }

  showBranch() {
    return execSync("git show-branch -a --sha1-name", { encoding: "utf8" });
  }

  logFirstParent() {
    return execSync("git log -n 1000 --oneline --first-parent", { encoding: "utf8" });
  }

  logGraph() {
    return execSync("git log -n 1000 --graph --pretty=format:\"%h %p\"", { encoding: "utf8" });
  }

}<commit_msg>Fix cmd and todo comment<commit_after>import { execSync } from "child_process";

export class GitCmdClient {

  currentName() {
    return execSync("git branch | grep \"^\\*\" | cut -b 3-", { encoding: "utf8" });
  }

  revParse(currentName: string) {
    return execSync(`git rev-parse ${currentName}`, { encoding: "utf8" });
  }

  showBranch() {
    return execSync("git show-branch -a --sha1-name", { encoding: "utf8" });
  }

  logFirstParent() {
    // TODO need review.
    // the --first-parent option sometimes hides base hash candidates,,, is it correct?
    // return execSync("git log -n 1000 --oneline --first-parent", { encoding: "utf8" });
    return execSync("git log -n 1000 --oneline", { encoding: "utf8" });
  }

  logGraph() {
    return execSync("git log -n 1000 --graph --pretty=format:\"%h %p\"", { encoding: "utf8" });
  }

}
{'fraction_non_alphanumeric': 0.1867911941294196, 'fraction_numerical': 0.02334889926617745, 'mean_word_length': 3.155124653739612, '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': '1886717', 'n_tokens_mistral': 533, 'n_tokens_neox': 494, 'n_words': 134}