<commit_before><?php

namespace WpMvc
{
  class Option extends \WpMvc\BaseModel
  {
    public static $table_name = 'wp_options';
    public static $class_name = '\WpMvc\Option';
    public static $id_column = 'option_id';

    public static function find_by_blog_id( $blog_id )
    {
      $table_name = static::$table_name;

      if ( $blog_id != 1 )
        $table_name = "wp_{$blog_id}_options";

      global $wpdb;

      $query = "SELECT * FROM $table_name;";

      return self::query($query, $table_name);
    }

    public static function find_by_blog_id_and_option_name($blog_id, $option_name)
    {
      $table_name = static::$table_name;

      if ( $blog_id != 1 )
        $table_name = "wp_{$blog_id}_options";

      global $wpdb;

      $query = "SELECT * FROM $table_name WHERE option_name = '{$option_name}';";

      return self::query($query, $table_name);
    }
  }
}<commit_msg>Option gets its own virgin method<commit_after><?php

namespace WpMvc
{
  class Option extends \WpMvc\BaseModel
  {
    public static $table_name = 'wp_options';
    public static $class_name = '\WpMvc\Option';
    public static $id_column = 'option_id';

    public static function find_by_blog_id( $blog_id )
    {
      $table_name = static::$table_name;

      if ( $blog_id != 1 )
        $table_name = "wp_{$blog_id}_options";

      global $wpdb;

      $query = "SELECT * FROM $table_name;";

      return self::query($query, $table_name);
    }

    public static function find_by_blog_id_and_option_name($blog_id, $option_name)
    {
      $table_name = static::$table_name;

      if ( $blog_id != 1 )
        $table_name = "wp_{$blog_id}_options";

      global $wpdb;

      $query = "SELECT * FROM $table_name WHERE option_name = '{$option_name}';";

      return self::query($query, $table_name);
    }

    public static function virgin($blog_id = 1)
    {
      $table_name = static::$table_name;

      if ( $blog_id != 1 )
        $table_name = "wp_{$blog_id}_options";

      $class_name = static::$class_name;

      $return_object = new $class_name();

      $return_object->source_object = clone $return_object;
      $return_object->__db_table = $table_name;

      return $return_object;
    }
  }
}
{'fraction_non_alphanumeric': 0.13066906151773686, 'fraction_numerical': 0.002694207453973956, 'mean_word_length': 2.992831541218638, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2801160', 'n_tokens_mistral': 776, 'n_tokens_neox': 754, 'n_words': 157}