//Говорящие названия - такие говорящие!
    function asdfasdf (WebAPI_Entity $screenshot_dictionary)
    {
        $result = array();
        foreach ($screenshot_dictionary->getEntities () as $scr)
        {
            $result [] = $scr->toObject ();
        }
        usort($result, array ($this, 'sortScreenshots'));
        return $this->prepare_screenshots ($result);
    }
    
// вставляем остальные скриншоты
$elements = $this->asdfasdf ($screenshot_dictionary);
By C.H., 2019-10-07 16:47:29
int number = -1;
                //todo: refactor this horse shit.
                for (String res: results) {
                    if(number == -1){
                        if(res.toLowerCase().contains("ten") || res.contains("10") || res.contains("10") || res.contains("十") || res.contains("십")){
                            number = 10;
                        }
                        else if(res.toLowerCase().contains("nine") || res.contains("9") || res.contains("9") || res.contains("九") || res.contains("구")){
                            number = 9;
                        }
                        else if(res.toLowerCase().contains("eight") || res.contains("8") || res.contains("8") || res.contains("八") || res.contains("팔")){
                            number = 8;
                        }
                        else if(res.toLowerCase().contains("seven") || res.contains("7") || res.contains("7") || res.contains("七") || res.contains("칠")){
                            number = 7;
                        }
                        else if(res.toLowerCase().contains("six") || res.contains("6") || res.contains("6") || res.contains("六") || res.contains("육")){
                            number = 6;
                        }
                        else if(res.toLowerCase().contains("five") || res.contains("5") || res.contains("5") || res.contains("五") || res.contains("오")){
                            number = 5;
                        }
                        else if(res.toLowerCase().contains("four") || res.contains("4") || res.contains("4") || res.contains("四") || res.contains("사")){
                            number = 4;
                        }
                        else if(res.toLowerCase().contains("three") || res.contains("3") || res.contains("3") || res.contains("三") || res.contains("삼")){
                            number = 3;
                        }
                        else if(res.toLowerCase().contains("two") || res.contains("2") || res.contains("2") || res.contains("二") || res.contains("이")){
                            number = 2;
                        }
                        else if(res.toLowerCase().contains("one") || res.contains("1") || res.contains("1") || res.contains("一") || res.contains("일")){
                            number = 1;
                        }
                    }
                }

refactor this horse shit.

By mister MVC, plus grumpy commenter, 2017-12-13 07:28:20
this.unwatchBackdrop ? this.unwatchBackdrop() : this.noop();
...
private noop(): void {}
By Anonymous, 2023-01-19 12:36:09
function getJSType(cppType: string) {
    let typeMap = new Map<string, string>([
        ["Bool", "boolean"],
        ["Int32", "number"],
        ["UInt32", "number"],
        ["Int64", "number"],
        ["UInt64", "number"],
        ["Double", "number"],
        ["String", "string"],
        ["Object", "any"]
    ]);

    if (typeMap.get(cppType) === undefined) {
        console.error("Invalid type in getJavascriptType: " + cppType);
        process.exit(1);
    }
    return typeMap.get(cppType);
}
By Anonymous, 2017-12-15 11:58:04
private static int alphabetToNumber(String letter) {
    String s = letter.toLowerCase();
    if (s.equals("a")) {
        return 1;
    } else if (s.equals("b")) {
        return 2;
    } else if (s.equals("c")) {
        return 3;
    } else if (s.equals("d")) {
        return 4;
    } else if (s.equals("e")) {
        return 5;
    } else if (s.equals("f")) {
        return 6;
    } else if (s.equals("g")) {
        return 7;
    } else if (s.equals("h")) {
        return 8;
    } else if (s.equals("i")) {
        return 9;
    } else if (s.equals("j")) {
        return 10;
    } else if (s.equals("k")) {
        return 11;
    } else if (s.equals("l")) {
        return 12;
    } else if (s.equals("m")) {
        return 13;
    } else if (s.equals("n")) {
        return 14;
    } else if (s.equals("o")) {
        return 15;
    } else if (s.equals("p")) {
        return 16;
    } else if (s.equals("q")) {
        return 17;
    } else if (s.equals("r")) {
        return 18;
    } else if (s.equals("s")) {
        return 19;
    } else if (s.equals("t")) {
        return 20;
    } else if (s.equals("u")) {
        return 21;
    } else if (s.equals("v")) {
        return 22;
    } else if (s.equals("w")) {
        return 23;
    } else if (s.equals("x")) {
        return 24;
    } else if (s.equals("y")) {
        return 25;
    } else if (s.equals("z")) {
        return 26;
    } else {
        return 0;
    }
}
By Anonymous, 2015-07-22 14:54:18
$_POST = $this->db->mres($_POST);
$_SESSION['post'] = $_POST;

$sql = "SELECT id, documento, nombre1, nombre2, apellido1, apellido2 "
        . "FROM usuarios "
        . "WHERE " .
    "REPLACE(" .
        "REPLACE(" .
            "REPLACE(" .
                "REPLACE(telefono,' ','')," .
                "'(','')," .
            "')','')," .
        "'-','') LIKE '%{$searchTel}'";
By Carlos Correa, 2016-09-16 22:11:38
date('Y-m-d').'T'.date("H:i:s", strtotime("- 1 hour")).'Z'

Back to the future

By loutre, 2018-12-19 15:37:45
private boolean isToRemove(byte b) {
    byte[] toRemoveB = { -106 };
    for(byte c : toRemoveB) {
        if(b == c) {
            return true;
        }
    }
    return false;
}

it goes without saying...

By Unknown, 2017-09-26 17:45:20
if(year%100 === 79 ||
year%100 === 90 ||
year%100 === 1 ||
year%100 === 7 ||
year%100 === 18) {
	if(month === 1) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 5)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 5)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 79 ||
year2%100 === 90 ||
year2%100 === 1 ||
year2%100 === 7 ||
year2%100 === 18) {
	if(month2 === 1) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 5)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 5)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 79 ||
year3%100 === 90 ||
year3%100 === 1 ||
year3%100 === 7 ||
year3%100 === 18) {
	if(month3 === 1) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 5)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 5)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 96) {
	if(month === 1) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 96) {
	if(month2 === 1) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 96) {
	if(month3 === 1) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 85 ||
year%100 === 91 ||
year%100 === 2 ||
year%100 === 13 ||
year%100 === 19) {
	if(month === 1) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 85 ||
year2%100 === 91 ||
year2%100 === 2 ||
year2%100 === 13 ||
year2%100 === 19) {
	if(month2 === 1) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 85 ||
year3%100 === 91 ||
year3%100 === 2 ||
year3%100 === 13 ||
year3%100 === 19) {
	if(month3 === 1) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 80 ||
year%100 === 8) {
	if(month === 1) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 80 ||
year2%100 === 8) {
	if(month2 === 1) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 80 ||
year3%100 === 8) {
	if(month3 === 1) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 86 ||
year%100 === 97 ||
year%100 === 3 ||
year%100 === 14) {
	if(month === 1) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 92) {
	if(month === 1) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 86 ||
year2%100 === 97 ||
year2%100 === 3 ||
year2%100 === 14) {
	if(month2 === 1) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 92) {
	if(month2 === 1) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 86 ||
year3%100 === 97 ||
year3%100 === 3 ||
year3%100 === 14) {
	if(month3 === 1) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 92) {
	if(month3 === 1) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 81 ||
year%100 === 87 ||
year%100 === 98 ||
year%100 === 9 ||
year%100 === 17) {
	if(month === 1) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while(day%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 4) {
	if(month === 1) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while(day%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 5)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 5)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 81 ||
year2%100 === 87 ||
year2%100 === 98 ||
year2%100 === 9 ||
year2%100 === 17) {
	if(month2 === 1) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 4) {
	if(month2 === 1) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 5)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 5)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 81 ||
year3%100 === 87 ||
year3%100 === 98 ||
year3%100 === 9 ||
year3%100 === 17) {
	if(month3 === 1) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 4) {
	if(month3 === 1) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 5)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 5)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
By Anonymous, 2021-06-22 15:46:00
$net_price = "var net_price = " . json_encode($net_price) . ";";

This is a Javascript variable being created inside of a PHP string.

By notmycode, 2017-12-12 16:47:24
int min(int a,int b,int c) //Function to return the minimum.
{
  if(a < b)
  {
    if(a < c)return a;
    else if(a > c)return c;
    else return a;
  }
  else if(a > b)
  {
    if(b < c)return b;
    else if(b > c)return c;
    else return b;
  }
  else
  {
    if(a < c) return a;
    else if(a > c) return c;
    else return a;
  }
}

This kind of things make me hate my work.

By Another random student of algorithms., 2017-12-14 00:45:52
guard let reachability = Reachability(), reachability.isReachable == true else {
    // No network connection available. Do stuff.
    ...
}

While this works, it's not immediately readable and creates confusion. Mis-using Swift's control flow. Did not pass code review.

By Anonymous, 2017-12-22 10:04:01
function isAllowSearchLength(text) {
    return text.length > isNaN(parseInt(text, 10)) ? 1 : 0;
}
By Anonymous, 2018-01-24 12:02:46
doit({txs, [Tx]}) ->
    X = tx_pool_feeder:absorb(Tx),
    Y = case X of
	    ok -> hash:doit(testnet_sign:data(Tx));
	    _ -> <<"error">>
		     end,
    {ok, Y};

In my opinion api response should be as confusing as possible. This method is used for sending tx into Amoveo blockchain. It returns ["ok", ] in success, and ["ok", <base64 encoded «error» word>] I hope I inspired you to make your code totally confusing and irrational.

By Zack Hess, 2019-01-24 12:19:04
{k: v for d in [{ key: { 0: x[0], } for key in x["name"] } for x in items] for k, v in d.items()}
By nooooooo, 2018-01-02 14:54:31