<commit_before><?php
/**
 * A bugzilla query 
 */

/**
 * Copyright (C) 2008 - <NAME> & bemoko
 *
 * This program is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option) 
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along 
 * with this program; if not, see <http://www.gnu.org/licenses>.
 */
class BugzillaQuery extends BSQLQuery {
  var $supportedParameters=array (
    'alias'         => 'field-id',
    'assigned'      => 'field-date',
    'attachments'   => 'field-number',
    'bar'           => 'column',
    'bzalternateconfig' => 'free', 
    'bzurl'         => 'value',     # Show the url to the BZ query
    'blocks'        => 'field-depends',
    'cc'            => 'field',
    'closed'        => 'field-date',
    'columns'       => 'columns',   
    'created'       => 'field-date',
    'createdformat' => 'value',   # date or relativedate      
    'component'     => 'field',
    'customfields'  => 'value',     # Comma separated list of custom fields
    'customprefix'  => 'cf_',     # Prefix that all custom fields should start with
    'deadline'      => 'field-date',
    'depends'       => 'field-depends',
    'dependsstatus' => 'field-join',  # Status values to include in depends (and blocks) tasks
    'detailsrow'    => 'columns',
    'detailsrowprepend' => 'free',
    'disablecache'    => 'boolean',
    'estimated'     => 'field-number',
    'filters'       => 'filters',   # Generic filter setting which can be used for custom fields
    'flag'          => 'field-special',
    'format'        => 'value',     # table (default), list, inline or count
    'from'          => 'field',
    'group'         => 'sort',
    'groupformat'   => 'value',
    'grouporder'    => 'value',     # asc or desc
    'hardware'      => 'field',
    'heading'       => 'free',
    'headers'       => 'value',
    'hide'          => 'value',
    'id'            => 'field-id',
    'implicitcustom'  => 'boolean',   # true => allow custom fields not explicitly defined and not
                        # starting with the custom field prefix
    'instance'      => 'value',     # Alternative bugzilla instance as defined in 
                        # LocalSettings configuration
    'keywords'      => 'field-keywords',
    'link'          => 'columns',   # Define rules for linking headings and values 
                        # through to wiki pages
    'lastcomment'   => 'boolean',
    'maxrows'       => 'value',
    'maxrowsbar'    => 'value',
    'milestone'     => 'field',
    'modified'      => 'field-date',
    'modifiedformat'  => 'value',   # date or relativedate      
    'nameformat'    => 'value',     # real (default),tla or login
    'order'         => 'value',
    'os'            => 'field',
    'priority'      => 'field',
    'product'       => 'field',
    'qa'            => 'field',
    'quickflag'     => 'value',
    'noresultsmessage'  => 'free',
    'remaining'     => 'field-number',
    'reopened'      => 'field-date',
    'resolution'    => 'field',
    'resolved'      => 'field-date',
    'search'        => 'field-text',
    'severity'      => 'field',
    'sort'          => 'sort',
    'sortable'      => 'boolean',   # Whether the table is sortable or not
    'status'        => 'field',
    'style'         => 'free',      # Define the CSS style to be applied to the table
    'to'            => 'field',
    'total'         => 'columns',
    'url'           => 'field',
    'version'       => 'field',
    'verified'      => 'field-date',
    'votes'         => 'field-number',
    'work'          => 'field-number',
    'zeroasblank'   => 'boolean'    # Render "0" as blank, if false rendered as "0" (default=true)
  );
  var $defaultParameters=array (
    'bzurl'           => 'show',    
    'columns'         => 'id,priority,status,severity,version,product,summary,url',
    'customprefix'    => 'cf_',
    'dependsstatus'   => '!(CLOSED,VERIFIED,RESOLVED)',
    'format'          => 'table',
    'implicitcustom'  => 'false',     # Default to false since Bugzilla nowadays enforces custom
                        # fields to start with "cf_"
    'noresultsmessage'  => 'no bugzilla tickets were found',
    'order'           => 'asc',
    'status'          => '!CLOSED',
    'sort'            => 'priority,status',
    'sortable'        => '1',<commit_msg>added support for new status_whiteboard field<commit_after><?php
/**
 * A bugzilla query 
 */

/**
 * Copyright (C) 2008 - <NAME> & bemoko
 *
 * This program is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option) 
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along 
 * with this program; if not, see <http://www.gnu.org/licenses>.
 */
class BugzillaQuery extends BSQLQuery {
  var $supportedParameters=array (
    'alias'         => 'field-id',
    'assigned'      => 'field-date',
    'attachments'   => 'field-number',
    'bar'           => 'column',
    'bzalternateconfig' => 'free', 
    'bzurl'         => 'value',     # Show the url to the BZ query
    'blocks'        => 'field-depends',
    'cc'            => 'field',
    'closed'        => 'field-date',
    'columns'       => 'columns',   
    'created'       => 'field-date',
    'createdformat' => 'value',   # date or relativedate      
    'component'     => 'field',
    'customfields'  => 'value',     # Comma separated list of custom fields
    'customprefix'  => 'cf_',     # Prefix that all custom fields should start with
    'deadline'      => 'field-date',
    'depends'       => 'field-depends',
    'dependsstatus' => 'field-join',  # Status values to include in depends (and blocks) tasks
    'detailsrow'    => 'columns',
    'detailsrowprepend' => 'free',
    'disablecache'    => 'boolean',
    'estimated'     => 'field-number',
    'filters'       => 'filters',   # Generic filter setting which can be used for custom fields
    'flag'          => 'field-special',
    'format'        => 'value',     # table (default), list, inline or count
    'from'          => 'field',
    'group'         => 'sort',
    'groupformat'   => 'value',
    'grouporder'    => 'value',     # asc or desc
    'hardware'      => 'field',
    'heading'       => 'free',
    'headers'       => 'value',
    'hide'          => 'value',
    'id'            => 'field-id',
    'implicitcustom'  => 'boolean',   # true => allow custom fields not explicitly defined and not
                        # starting with the custom field prefix
    'instance'      => 'value',     # Alternative bugzilla instance as defined in 
                        # LocalSettings configuration
    'keywords'      => 'field-keywords',
    'link'          => 'columns',   # Define rules for linking headings and values 
                        # through to wiki pages
    'lastcomment'   => 'boolean',
    'maxrows'       => 'value',
    'maxrowsbar'    => 'value',
    'milestone'     => 'field',
    'modified'      => 'field-date',
    'modifiedformat'  => 'value',   # date or relativedate      
    'nameformat'    => 'value',     # real (default),tla or login
    'order'         => 'value',
    'os'            => 'field',
    'priority'      => 'field',
    'product'       => 'field',
    'qa'            => 'field',
    'quickflag'     => 'value',
    'noresultsmessage'  => 'free',
    'remaining'     => 'field-number',
    'reopened'      => 'field-date',
    'resolution'    => 'field',
    'resolved'      => 'field-date',
    'search'        => 'field-text',
    'severity'      => 'field',
    'sort'          => 'sort',
    'sortable'      => 'boolean',   # Whether the table is sortable or not
    'status'        => 'field',
    'status_whiteboard' => 'field',
    'style'         => 'free',      # Define the CSS style to be applied to the table
    'to'            => 'field',
    'total'         => 'columns',
    'url'           => 'field',
    'version'       => 'field',
    'verified'      => 'field-date',
    'votes'         => 'field-number',
    'work'          => 'field-number',
    'zeroasblank'   => 'boolean'    # Render "0" as blank, if false rendered as "0" (default=true)
  );
  var $defaultParameters=array (
    'bzurl'           => 'show',    
    'columns'         => 'id,priority,status,severity,version,product,summary,url',
    'customprefix'    => 'cf_',
    'dependsstatus'   => '!(CLOSED,VERIFIED,RESOLVED)',
    'format'          => 'table',
    'implicitcustom'  => 'false',     # Default to false since Bugzilla nowadays enforces custom
                        # fields to start with "cf_"
    'noresultsmessage'  => 'no bugzilla tickets were found',
    'order'           => 'asc',
    'status'          => '!CLOSED',
    'sort'            => 'priority,status',
    'sortable'        => '1',
{'fraction_non_alphanumeric': 0.14830596549573893, 'fraction_numerical': 0.0016628559551028891, 'mean_word_length': 2.0636739891754217, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 172, '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': '1255177', 'n_tokens_mistral': 2849, 'n_tokens_neox': 2803, 'n_words': 836}