/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

+5

function abs(i){
    return (i + "").replace("-", "");
}
 

anonymous

+4

UPDATE tableUsers SET name = ‘John’;

 

anonymous

0

public static final String DOT_DELIMITER_REGEX = "\\.";
// ...
final String[] splitted = path.split(DOT_DELIMITER_REGEX);
return path.replaceFirst(splitted[0] + ".", "");
 

anonymous

+5

            } catch (Exception ex)
            {
                String error = ex.toString();
                if (error.contains("java.net.UnknownHostException"))
                {
                    foxbot.sendNotice(sender, String.format("%s is an unknown address!", args[0]));
                    return;
                }
                if (error.contains("java.lang.NumberFormatException"))
                {
                    foxbot.sendNotice(sender, String.format("%s isn't a number!", args[1]));
                    return;
                }
                if (error.contains("java.lang.IllegalArgumentException"))
                {
                    foxbot.sendNotice(sender, String.format("%s is too high a number for a port!", args[1]));
                    return;
                }
                foxbot.sendNotice(sender, foxbot.getUtils().colourise(String.format("&c%s", error)));
            }
            return;
 

anonymous

0

// Found something like this in some legacy project, 
// there were 20+ usages of this method
// Looks like some kind of unboxing :)

public boolean nullConverter(Boolean parameter) {
    return parameter == Boolean.TRUE;
}
 

anonymous

+1

// sometimes I believe compiler ignores all my comments
 

+3

if (!portal.getName().equals(portal.getName())) {
	LOGGER.debug("Error, the portal is not the same.",
	portal.getName(), portal.getName());
}
 

anonymous

+2

var user = parent.opener.parent.opener.parent.opener.parent.content.data.document.getElementById('user').value;

// 30 lines later, different procedure, same value
var user = document.getElementById('user').value;
 

anonymous

-1

    private function createEmptyDataLayerDto()
    {
        $this->dataLayerDto = new DataLayerDto(
            null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
            null, null, null, null, null, null, null
        );
    }
 

anonymous

+6

int multiplyBy10(int number)
{
    std::stringstream str;
    str << number << '0';
    str >> number;
    return number;
}