<commit_before><?php
/* vowserDB -  v4.0.0 Alpha 2
 * by vantezzen (http://vantezzen.de)
 *
 * For documentation check http://github.com/vantezzen/vowserdb
 *
 * TODO:
 */
class vowserdb
{
    /*
   * Configuration
   * Edit these settings to your needs
   */
  public static $folder = 'vowserdb/';     // Change the folder, where the tables will be saved to (notice the leading "/")
  public static $respectrelationshipsrelationship = false; // Should relationships on the relationship table be repected?
  public static $productionmode = false; // Change to true to enable production mode ()
  public static $file_extension = '.csv';
    public static $seperation_char = ',';

  /*
   * Do not edit the constants and variables below
   */
  public static $version = '4.0.0';
    private static $events = []; // Trigger events (used in extensions)
  private static $file_postfixes = array(''); // Possible file postfixes (e.g .encrypt or .backup)
  private static $loaded_extensions =  [];
    private static $uncompatible_extensions = [];
    const NEWLINE = '
';
    const RELATIONSHIPTABLE = "vowserdb-table-relationships";

  /**
   * Check requirements.
   *
   * @return Errors
   */
  public static function check($disableecho = false)
  {
      $errors = array();
      if (!file_exists(self::$folder)) {
          $error = "The table folder (" . realpath(dirname(__FILE__)).'/'.self::$folder . ") does not exist. Please create it.";
          if (!$disableecho) {
              echo($error . "<br />");
          }
          $errors[] = $error;
      } else {
          if (!is_readable(self::$folder)) {
              $error = "The table folder (" . realpath(dirname(__FILE__)).'/'.self::$folder . ") is not readable for PHP. Please give PHP (www-data) enough rights to read the folder.";
              if (!$disableecho) {<commit_msg>Using PHP_EOL as NEWLINE instead of line break<commit_after><?php
/* vowserDB -  v4.0.0 Alpha 2
 * by vantezzen (http://vantezzen.de)
 *
 * For documentation check http://github.com/vantezzen/vowserdb
 *
 * TODO:
 */
class vowserdb
{
  /*
   * Configuration
   * Edit these settings to your needs
   */
  public static $folder = 'vowserdb/';     // Change the folder, where the tables will be saved to (notice the leading "/")
  public static $respectrelationshipsrelationship = false; // Should relationships on the relationship table be repected?
  public static $productionmode = false; // Change to true to enable production mode ()
  public static $file_extension = '.csv';
  public static $seperation_char = ',';

  /*
   * Do not edit the constants and variables below
   */
  public static $version = '4.0.0';
  private static $events = []; // Trigger events (used in extensions)
  private static $file_postfixes = array(''); // Possible file postfixes (e.g .encrypt or .backup)
  private static $loaded_extensions =  [];
  private static $uncompatible_extensions = [];
  const NEWLINE = PHP_EOL;
  const RELATIONSHIPTABLE = "vowserdb-table-relationships";

  /**
   * Check requirements.
   *
   * @return Errors
   */
  public static function check($disableecho = false)
  {
      $errors = array();
      if (!file_exists(self::$folder)) {
          $error = "The table folder (" . realpath(dirname(__FILE__)).'/'.self::$folder . ") does not exist. Please create it.";
          if (!$disableecho) {
              echo($error . "<br />");
          }
          $errors[] = $error;
      } else {
          if (!is_readable(self::$folder)) {
              $error = "The table folder (" . realpath(dirname(__FILE__)).'/'.self::$folder . ") is not readable for PHP. Please give PHP (www-data) enough rights to read the folder.";
              if (!$disableecho) {
{'fraction_non_alphanumeric': 0.13451708366962603, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 2.8290422245108138, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3162637', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1073, 'n_words': 340}