<commit_before><?php

  // COMMANDS AND ARGUMENTS
  // start = start the generation process
  //  user = the user name
  //  password = the <PASSWORD>
  //  return = a tracking key
  // track = track the progress of the generation
  //  key = the tracking key
  //  return = the percent completion
  // clear = clear the cached file

  // Get the Command
  $cmd = $_REQUEST['cmd'];


  // START
  if ( $cmd == "start" ) {
    $user = $_REQUEST['username'];
    $password = $_REQUEST['password'];

    // Create tracking key
    $rand = generateRandomString(30);
    $key = hash('sha256', $user . $rand);
    echo $key . "\n";

    // File path
    $file = "/usr/share/nginx/pswd/tokens/" . $key;

    // Build the function call
    $call = "/usr/local/bin/pswdGenToken";
    $call = $call . " -u '" . $user . "'";
    $call = $call . " -p '" . $password . "'";
    $call = $call . " -f '" . $file . "'";
    $call = $call . " &> /dev/null &";

    // Start the function
    $last_line = system($call, $retval);
  }
<commit_msg>Update token.php<commit_after><?php

  // COMMANDS AND ARGUMENTS
  // start = start the generation process
  //  user = the user name
  //  password = the <PASSWORD>
  //  return = a tracking key
  // track = track the progress of the generation
  //  key = the tracking key
  //  return = the percent completion
  // clear = clear the cached file

  // Get the Command
  $cmd = $_REQUEST['cmd'];


  // START
  if ( $cmd == "start" ) {
    $user = $_REQUEST['username'];
    $password = $_REQUEST['password'];

    // Create tracking key
    $rand = generateRandomString(30);
    $key = hash('sha256', $user . $rand);
    echo $key . "\n";

    // File path
    $file = "/usr/share/nginx/pswd/tokens/" . $key;

    // Build the function call
    $call = "/usr/local/bin/pswdGenToken";
    $call = $call . " -u '" . $user . "'";
    $call = $call . " -p '" . $password . "'";
    $call = $call . " -f '" . $file . "'";
    $call = $call . " > /dev/null 2>&1 &";

    // Start the function
    $last_line = system($call, $retval);
  }

{'fraction_non_alphanumeric': 0.1824357108199903, 'fraction_numerical': 0.005822416302765648, 'mean_word_length': 2.143292682926829, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4282283', 'n_tokens_mistral': 705, 'n_tokens_neox': 677, 'n_words': 196}