<commit_before><?php
require_once "class.session_operator.php";
require_once "class.bid.php";


class ValidationOperator
{
    const NO_MATCH = "no_match";
    const WRONG_FORMAT = "wrong_format";
    const INVALID_SIZE = "invalid_size";
    const INVALID_PRICES = "invalid_prices";
    const INVALID_BID = "invalid_bid";
    const INCORRECT_PASSWORD = "<PASSWORD>";
    const NO_IMAGE = "no_image";

    const EMPTY_FIELDS = [
        "username" => "Please enter a non empty username",
        "email" => "Please enter a non empty email address",
        "firstName" => "Please enter a non empty first name",
        "lastName" => "Please enter a non empty last name",
        "address" => "Please enter a non empty address",
        "postcode" => "Please enter a non empty postcode",
        "city" => "Please enter a non empty city",
        "country" => "Please select a country",
        "currentPassword" => "<PASSWORD>",
        "password1" => "<PASSWORD>",
        "password2" => "<PASSWORD>",

        "item" => "Please specify whether you want to create a new item or use one of your existing ones",
        "itemName" => "Please enter a non empty item name",
        "itemBrand" => "Please enter a non empty item brand",
        "itemCategory" => "Please select your item's category",
        "itemCondition" => "Please specify your item's condition",
        "itemDescription" => "Please describe your item and its features",
        "quantity" => "Please specify the amount of items you want to sell",
        "startTime" => "Please specify your auction's start time",
        "endTime" => "Please specify your auction's end time",
        "startPrice" => "Please specify your auction's start price"
    ];
    const PASSWORD = [
        self::INVALID_SIZE => "Password needs to be at least 10 characters long!",
        self::NO_MATCH => "Does not match with the other password field!",
        self::INCORRECT_PASSWORD => "Please enter your correct current password!"
    ];
    const IMAGE_UPLOAD = [
        self::NO_IMAGE => "Please select an image file",
        self::WRONG_FORMAT => "Please choose a JPEG, JPG or PNG file",
        self::INVALID_SIZE => "The image size must be less than 500KB"
    ];
    const PRICES = [
        self::WRONG_FORMAT => " must be a decimal number",
        self::INVALID_SIZE => " must be greater than 0",
        self::INVALID_PRICES => "The start price must be less than the reserve price",
        self::INVALID_BID => "Your bid price must be greater or equal to "
    ];

<commit_msg>bidding empty field<commit_after><?php
require_once "class.session_operator.php";
require_once "class.bid.php";


class ValidationOperator
{
    const NO_MATCH = "no_match";
    const WRONG_FORMAT = "wrong_format";
    const INVALID_SIZE = "invalid_size";
    const INVALID_PRICES = "invalid_prices";
    const INVALID_BID = "invalid_bid";
    const INCORRECT_PASSWORD = "<PASSWORD>";
    const NO_IMAGE = "no_image";

    const EMPTY_FIELDS = [
        "username" => "Please enter a non empty username",
        "email" => "Please enter a non empty email address",
        "firstName" => "Please enter a non empty first name",
        "lastName" => "Please enter a non empty last name",
        "address" => "Please enter a non empty address",
        "postcode" => "Please enter a non empty postcode",
        "city" => "Please enter a non empty city",
        "country" => "Please select a country",
        "currentPassword" => "<PASSWORD> your <PASSWORD>",
        "password1" => "<PASSWORD>",
        "password2" => "<PASSWORD>",

        "item" => "Please specify whether you want to create a new item or use one of your existing ones",
        "itemName" => "Please enter a non empty item name",
        "itemBrand" => "Please enter a non empty item brand",
        "itemCategory" => "Please select your item's category",
        "itemCondition" => "Please specify your item's condition",
        "itemDescription" => "Please describe your item and its features",
        "quantity" => "Please specify the amount of items you want to sell",
        "startTime" => "Please specify your auction's start time",
        "endTime" => "Please specify your auction's end time",
        "startPrice" => "Please specify your auction's start price",
        "bidPrice" => "Please specify a bid price"
    ];
    const PASSWORD = [
        self::INVALID_SIZE => "Password needs to be at least 10 characters long!",
        self::NO_MATCH => "Does not match with the other password field!",
        self::INCORRECT_PASSWORD => "Please enter your correct current password!"
    ];
    const IMAGE_UPLOAD = [
        self::NO_IMAGE => "Please select an image file",
        self::WRONG_FORMAT => "Please choose a JPEG, JPG or PNG file",
        self::INVALID_SIZE => "The image size must be less than 500KB"
    ];
    const PRICES = [
        self::WRONG_FORMAT => " must be a decimal number",
        self::INVALID_SIZE => " must be greater than 0",
        self::INVALID_PRICES => "The start price must be less than the reserve price",
        self::INVALID_BID => "Your bid price must be greater or equal to "
    ];


{'fraction_non_alphanumeric': 0.11419154711128345, 'fraction_numerical': 0.0031019775106630476, 'mean_word_length': 2.9745762711864407, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 75, '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': '929039', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1405, 'n_words': 546}