private <T> Supplier<T> abort(Class<T> exception) {
  return () -> {
    try {
      return exception.newInstance();
    } catch (InstantiationException | IllegalAccessException e) {
      throw new RuntimeException(e);
    }
  };
}

...

throw abort(MyException.class).get();
By Anonymous, 2017-12-14 11:27:50
if HOST == 'AdaLovelace' or HOST == 'vbu' or HOST == 'asus':
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),
    )
By Kadet, 2016-02-14 16:37:32
try{
    //...
    getMyDataFromServer();
    //...
}catch(Excepion e){
    // :D
}

HMM FIXED BUG!

By H20, 2017-12-23 11:12:50
// What they did:
var serverCommands = {};
for(var each in commandList.general)
    (dmCommands[commandList.general[each].type] ? dmCommands[commandList.general[each].type] +=
    (config.prefix + each + (commandList.general[each].args ? ' ' + commandList.general[each].args : '') +
    ': ' + commandList.general[each].description + '\n') : (dmCommands[commandList.general[each].type] =
    '\u200B'+ config.prefix + each + (commandList.general[each].args ? ' ' + commandList.general[each].args : '') +
    ': ' + commandList.general[each].description + '\n'))

// What they should've done:
let srvrCmds = new Map();
let gldCmds = commandList[message.guild.id];
for (let each in gldCmds) {
    const cur = gldCmds[each];
    const text = `${config.prefix + each + (cur.args ? " " + cur.args : "")}: ${cur.description}\n`;
    const srvrCmdType = srvrCmds.get(cur.type);
    srvrCmds.set(cur.type, (srvrCmdType || "\u200B") + text);
}
By Anonymous, 2018-01-18 05:57:37
<table class="table table-sm o_main_table" style="width='100%'">
    <!-- ... thanks ...-->    
</table>

Found that on a customer's project, wonder if my employee knows about inline css

By Anonymous, 2022-06-10 11:39:58
class FileReader extends EventTarget(...READER_EVENTS) {
    // [...]
    readAsArrayBuffer() {
        throw new Error('FileReader.readAsArrayBuffer is not implemented');
    }
}

React Native's way of saying they don't support FileReader.readAsArrayBuffer()

By Aurovik, 2018-12-12 12:50:22
    @Override
    public String toString() {
        List<Integer> accountLevels = new ArrayList<>();
        List<String> accountIds = new ArrayList<>();

        for (SelectedHierarchyLevel selectedHierarchyLevel : selectedHierarchyLevels) {
            accountLevels.add(selectedHierarchyLevel.getLevel());
            accountIds.add(selectedHierarchyLevel.getAccountRowId());
        }

        vetoAreValidIds(accountIds);
        StringBuilder converterString = new StringBuilder();

        convert(accountLevels, converterString);
        converterString.append("$");
        convert(accountIds, converterString);

        return converterString.toString();
    }

Just because you can, doesn’t mean you should.

By Anonymous, 2019-04-12 10:55:17
class JavaScriptParser(BaseParser):
    ... # some (exactly four) (useful?) methods
    get_references_of_tag = get_forms = BaseParser._return_empty_list
    get_comments = BaseParser._return_empty_list
    get_meta_redir = get_meta_tags = get_emails = BaseParser._return_empty_list

Developer if forced (by himself probably) to overwrite all methods to prevent raise NotImplementedError xD

By BetterNot, 2020-07-20 15:08:30
import java.util.Scanner;

public class ConnectFour

{

    public static void main(String [] args) {

        Scanner scan;

        scan = new Scanner(System.in);

        boolean win = false;

        boolean oneone = false;

        boolean onetwo = false;

        boolean onethree = false;

        boolean onefour = false;

        boolean onefive = false;

        boolean onesix = false;

        boolean oneseven = false;

        boolean twoone = false;

        boolean twotwo = false;

        boolean twothree = false;

        boolean twofour = false;

        boolean twofive = false;

        boolean twosix = false;

        boolean twoseven = false;

        boolean threeone = false;

        boolean threetwo = false;

        boolean threethree = false;

        boolean threefour = false;

        boolean threefive = false;

        boolean threesix = false;

        boolean threeseven = false;

        boolean fourone = false;

        boolean fourtwo = false;

        boolean fourthree = false;

        boolean fourfour = false;

        boolean fourfive = false;

        boolean foursix = false;

        boolean fourseven = false;

        boolean fiveone = false;

        boolean fivetwo = false;

        boolean fivethree = false;

        boolean fivefour = false;

        boolean fivefive = false;

        boolean fivesix = false;

        boolean fiveseven = false;

        boolean sixone = false;

        boolean sixtwo = false;

        boolean sixthree = false;

        boolean sixfour = false;

        boolean sixfive = false;

        boolean sixsix = false;

        boolean sixseven = false;

        if(win = false) {

if(oneone = true) {

   if(onetwo = true) {

      if(onethree = true) {

          if(onefour = true) {

             winner = true;

          }

        }

     }

   else if(twotwo = true) {

       if(threethree = true) {

           if(fourfour = true) {

               winner = true;

            }

        }

    }

   else if(twoone = true) {

       if(threeone = true) {

           if(fourone = true) {

               winner = true;

            }

        }

    }

}

if(onetwo = true) {

    if(oneone = true) {

        if(onethree = true) {

            if(onefour = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(onefour = true) {

            if(onefive = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(threefour = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(threetwo = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

}

if(onethree = true) {

    if(oneone = true) {

        if(onetwo = true) {

            if(onefour = true) {

                winner = true;

            }

        }

    }

    if(onetwo = true) {

        if(onefour = true) {

            if(onefive = true) {

                winner = true;

            }

        }

    }

    if(onefour = true) {

        if(onefive = true) {

            if(onesix = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(threethree = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

}

if(onefour = true) {

    if(oneone = true) {

        if(onetwo = true) {

            if(onethree = true) {

                winner = true;

            }

        }

    }

    if(onetwo = true) {

        if(onethree = true) {

            if(onefive = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(onefive = true) {

            if(onesix = true) {

                winner = true;

            }

        }

    }

    if(onefive = true) {

        if(onesix = true) {

            if(oneseven = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(threesix = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(threetwo = true) {

            if(fourone = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefour = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

}

if(onefive = true) {

    if(onetwo = true) {

        if(onethree = true) {

            if(onefour = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(onefour = true) {

            if(onesix = true) {

                winner = true;

            }

        }

    }

    if(onefour = true) {

        if(onesix = true) {

            if(oneseven = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(threefive = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threethree = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

}

if(onesix = true) {

    if(onethree = true) {

        if(onefour = true) {

            if(onefive = true) {

                winner = true;

            }

        }

    }

    if(onefour = true) {

        if(onefive = true) {

            if(oneseven = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threesix = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(threefour = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

}

if(oneseven = true) {

    if(onefour = true) {

        if(onefive = true) {

            if(onesix = true) {

                winner = true;

            }

        }

    }

    if(twoseven = true) {

        if(threeseven = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threefive = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

}

if(twotwo = true) {

    if(twoone = true) {

        if(twothree = true) {

            if(twofour = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(twofour = true) {

            if(twofive = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(fourtwo = true) {

            if(fivetwo = true) {

                winner = true;

            }

        }

    }

    if(onetwo = true) {

        if(threetwo = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

    if(oneone = true) {

        if(threethree = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourfour = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

}

if(twofour = true) {

    if(onethree = true) {

        if(threefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(onefive = true) {

        if(threethree = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(threefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(foursix = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(onefour = true) {

        if(threefour = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(fourfour = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(twoone = true) {

        if(twotwo = true) {

            if(twothree = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(twothree = true) {

            if(twofive = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(twofive = true) {

            if(twosix = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(twosix = true) {

            if(twoseven = true) {

                winner = true;

            }

        }

    }

}

if(twosix = true) {

    if(twothree = true) {

        if(twofour = true) {

            if(twofive = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(twofive = true) {

            if(twoseven = true) {

                winner = true;

            }

        }

    }

    if(onesix = true) {

        if(threesix = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(threesix = true) {

        if(foursix = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(fourfour = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(fourfour = true) {

        if(fivethree = true) {

            if(oneseven = true) {

                winner = true;

            }

        }

    }

}

if(threeone = true) {

    if(fourone = true) {

        if(fiveone = true) {

            if(sixone = true) {

                winner = true;

            }

        }

    }

    if(oneone = true) {

        if(twoone = true) {

            if(fourone = true) {

                winner = true;

            }

        }

    }

    if(twoone = true) {

        if(fourone = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(threethree = true) {

            if(threefour = true) {

                winner = true;

            }

        }

    }

}

if(threethree = true) {

    if(oneone = true) {

        if(twotwo = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(fourfour = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(fourfour = true) {

        if(fivefive = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(twothree = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(fourthree = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(fourthree = true) {

        if(fivethree = true) {

            if(sixthree = true) {

                winner = true;

            }

        }

    }

    if(onefive = true) {

        if(twofour = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(threeone = true) {

        if(threetwo = true) {

            if(threefour = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(threefour = true) {

            if(threefive = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(threefive = true) {

            if(threesix = true) {

                winner = true;

            }

        }

    }

}

if(threefive = true) {

    if(onethree = true) {

        if(twofour = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(foursix = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(oneseven = true) {

        if(twosix = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(fourfour = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(fourfour = true) {

        if(fivethree = true) {

            if(sixtwo = true) {

                winner = true;

            }

        }

    }

    if(onefive = true) {

        if(twofive = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(fourfive = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(fourfive = true) {

        if(fivefive = true) {

            if(sixfive = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(threethree = true) {

            if(threefour = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(threefour = true) {

            if(threesix = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(threesix = true) {

            if(threeseven = true) {

                winner = true;

            }

        }

    }

}

if(threeseven = true) {

    if(threefour = true) {

        if(threefive = true) {

            if(threesix = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(fivefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(oneseven = true) {

        if(twoseven = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(twoseven = true) {

        if(fourseven = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(fourseven = true) {

        if(fiveseven = true) {

            if(sixseven = true) {

                winner = true;

            }

        }

    }

}

if(fourtwo = true) {

    if(fourone = true) {

        if(fourthree = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(fourthree = true) {

        if(fourfour = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(threeone = true) {

        if(fivethree = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

    if(onetwo = true) {

        if(twotwo = true) {

            if(threetwo = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(threetwo = true) {

            if(fivetwo = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(fivetwo = true) {

            if(sixtwo = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(fiveone = true) {

        if(threethree = true) {

            if(twofour = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(onefive = true) {

                winner = true;

            }

        }

    }

}

if(fourfour = true) {

    if(oneone = true) {

        if(twotwo = true) {

            if(threethree = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(threethree = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fivefive = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

    if(oneseven = true) {

        if(twosix = true) {

            if(threefive = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threefive = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(fivethree = true) {

            if(sixtwo = true) {

                winner = true;

            }

        }

    }

    if(fourone = true) {

        if(fourtwo = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

    if(fourtwo = true) {

        if(fourthree = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(fourthree = true) {

        if(fourfive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(fourfive = true) {

        if(foursix = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(onefour = true) {

        if(twofour = true) {

            if(threefour = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefour = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(fivefour = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

}

if(foursix = true) {

    if(fourthree = true) {

        if(fourfour = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(fourfour = true) {

        if(fourfive = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(onethree = true) {

        if(twofour = true) {

            if(threefive = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefive = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(fivefive = true) {

            if(threeseven = true) {

                winner = true;

            }

        }

    }

    if(onesix = true) {

        if(twosix = true) {

            if(threesix = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threesix = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(fivesix = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

}

if(fiveone = true) {

    if(twoone = true) {

        if(threeone = true) {

            if(fourone = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourtwo = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(fivetwo = true) {

        if(fivethree = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(twofive = true) {

            if(threefour = true) {

                winner = true;

            }

        }

    }

}

if(fivetwo = true) {

    if(twofive = true) {

        if(threefour = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(fourthree = true) {

            if(sixone = true) {

                winner = true;

            }

        }

    }

    if(fiveone = true) {

        if(fivethree = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(fivethree = true) {

        if(fivefour = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(threetwo = true) {

            if(fourtwo = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(fourtwo = true) {

            if(sixtwo = true) {

                winner = true;

            }

        }

    }

}

if(fivethree = true) {

    if(twosix = true) {

        if(threefive = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(fourfour = true) {

            if(sixtwo = true) {

                winner = true;

            }

        }

    }

    if(twothree = true) {

        if(threethree = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourthree = true) {

            if(sixthree = true) {

                winner = true;

            }

        }

    }

    if(fiveone = true) {

        if(fivetwo = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(fivetwo = true) {

        if(fivefour = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(fivefour = true) {

        if(fivefive = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

}

if(fivefour = true) {

    if(fiveone = true) {

        if(fivetwo = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(fivetwo = true) {

        if(fivethree = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(fivethree = true) {

        if(fivefive = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

    if(fivefive = true) {

        if(fivesix = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(twoone = true) {

        if(threetwo = true) {

            if(fourthree = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(fourthree = true) {

            if(sixfive = true) {

                winner = true;

            }

        }

    }

    if(twoseven = true) {

        if(threesix = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(threesix = true) {

        if(fourfive = true) {

            if(sixthree = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefour = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(fourfour = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

}

if(fivefive = true) {

    if(fivetwo = true) {

        if(fivethree = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(fivethree = true) {

        if(fivefour = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

    if(fivefour = true) {

        if(fivesix = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(twotwo = true) {

        if(threethree = true) {

            if(fourfour = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourfour = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

    if(twofive = true) {

        if(threefive = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(fourfive = true) {

            if(sixfive = true) {

                winner = true;

            }

        }

    }

    if(threeseven = true) {

        if(foursix = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

}

if(fivesix = true) {

    if(twothree = true) {

        if(threefour = true) {

            if(fourfive = true) {

                winner = true;

            }

        }

    }

    if(threefour = true) {

        if(fourfive = true) {

            if(sixseven = true) {

                winner = true;

            }

        }

    }

    if(sixthree = true) {

        if(sixfour = true) {

            if(sixfive = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(sixfive = true) {

            if(sixseven = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threesix = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(threesix = true) {

        if(foursix = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

}

if(fiveseven = true) {

    if(twoseven = true) {

        if(threeseven = true) {

            if(fourseven = true) {

                winner = true;

            }

        }

    }

    if(threeseven = true) {

        if(fourseven = true) {

            if(sixseven = true) {

                winner = true;

            }

        }

    }

    if(twofour = true) {

        if(threefive = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

    if(fivefour = true) {

        if(fivefive = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

}
if(sixone = true) {

    if(threefour = true) {

        if(fourthree = true) {

            if(fivetwo = true) {

                winner = true;

            }

        }

    }

    if(threeone = true) {

        if(fourone = true) {

            if(fiveone = true) {

                winner = true;

            }

        }

    }

    if(twosix = true) {

        if(threesix = true) {

            if(foursix = true) {

                winner = true;

            }

        }

    }

}

if(sixthree = true) {

    if(threesix = true) {

        if(fourfive = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

    if(threethree = true) {

        if(fourthree = true) {

            if(fivethree = true) {

                winner = true;

            }

        }

    }

    if(sixone = true) {

        if(sixtwo = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

    if(sixtwo = true) {

        if(sixfour = true) {

            if(sixfive = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(sixfive = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

}

if(sixfive = true) {

    if(sixtwo = true) {

        if(sixthree = true) {

            if(sixfour = true) {

                winner = true;

            }

        }

    }

    if(sixthree = true) {

        if(sixfour = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(sixsix = true) {

            if(sixseven = true) {

                winner = true;

            }

        }

    }

    if(threefive = true) {

        if(fourfive = true) {

            if(fivefive = true) {

                winner = true;

            }

        }

    }

    if(threetwo = true) {

        if(fourthree = true) {

            if(fivefour = true) {

                winner = true;

            }

        }

    }

}

if(sixseven = true) {

    if(threefour = true) {

        if(fourfive = true) {

            if(fivesix = true) {

                winner = true;

            }

        }

    }

    if(threeseven = true) {

        if(fourseven = true) {

            if(fiveseven = true) {

                winner = true;

            }

        }

    }

    if(sixfour = true) {

        if(sixfive = true) {

            if(sixsix = true) {

                winner = true;

            }

        }

    }

 

            System.out.println("Where would you like to play? (Row 1, 2, 3, etc)");

            String row = scan.next();

            if(row.equals("Row 1")) {

                if(oneone = false) {

                    oneone = true;

                }

                else if(oneone = true) {

                    if(onetwo = false) {

                        onetwo = true;

                }

                else if(onetwo = true) {

                    if(onethree = false) {

                        onethree = true;

                    }

                    else if(onethree = true) {

                        if(onefour = false) {

                            onefour = true;

                        }

                        else if(onefour = true) {

                            if(onefive = false) {

                                onefive = true;

                            }

                            else if(onefive = true) {

                                if(onesix = false) {

                                    onesix = true;

                                }

                                 else if(onesix = true) {

                                     if(oneseven = false) {

                                          oneseven = true;

 

                                }

                            }

                        }

                    }

                }

            }

        }

        else if(row.equals("Row 2")) {

            if(twoone = false) {

                    twoone = true;

                }

                else if(twoone = true) {

                    if(twotwo = false) {

                        twotwo = true;

                }

                else if(twotwo = true) {

                    if(twothree = false) {

                        onethree = true;

                    }

                    else if(twothree = true) {

                        if(twofour = false) {

                            onefour = true;

                        }

                        else if(twofour = true) {

                            if(twofive = false) {

                                onefive = true;

                            }

                            else if(twofive = true) {

                                if(twosix = false) {

                                    twosix = true;

                                }

                                 else if(twosix = true) {

                                     if(twoseven = false) {

                                         twoseven = true;

                                }

                            }

                        }

                    }

                }

            }

        }

        else if(row.equals("Row 3")) {

            if(threeone = false) {

                    oneone = true;

                }

                else if(threeone = true) {

                    if(threetwo = false) {

                        threetwo = true;

                }

                else if(threetwo = true) {

                    if(threethree = false) {

                        threethree = true;

                    }

                    else if(threethree = true) {

                        if(threefour = false) {

                            threefour = true;

                        }

                        else if(threefour = true) {

                            if(threefive = false) {

                                threefive = true;

                            }

                            else if(threefive = true) {

                                if(threesix = false) {

                                    threesix = true;

                                }

                                 else if(threesix = true) {

                                     if(threeseven = false) {

                                         threeseven = true;

                               }

                            }

                        }

                    }

                }

            }

        }

        

        else if(row.equals("Row 4")) {

            if(fourone = false) {

                    fourone = true;

                }

                else if(fourone = true) {

                    if(fourtwo = false) {

                        fourtwo = true;

                }

                else if(fourtwo = true) {

                    if(fourthree = false) {

                        fourthree = true;

                    }

                    else if(fourthree = true) {

                        if(fourfour = false) {

                            fourfour = true;

                        }

                        else if(fourfour = true) {

                            if(fourfive = false) {

                                fourfive = true;

                            }

                            else if(fourfive = true) {

                                if(foursix = false) {

                                    foursix = true;

                                }

                            else if(foursix = true) {

                                if(fourseven = false) {

                                    fourseven = true;

                                   }

                                }

                            }

                        }

                    }

                }

            }

        }

        else if(row.equals("Row 5")) {

            if(fiveone = false) {

                    fiveone = true;

                }

                else if(fiveone = true) {

                    if(fivetwo = false) {

                        fivetwo = true;

                }

                else if(fivetwo = true) {

                    if(fivethree = false) {

                        fivethree = true;

                    }

                    else if(fivethree = true) {

                        if(fivefour = false) {

                            fivefour = true;

                        }

                        else if(fivefour = true) {

                            if(fivefive = false) {

                                fivefive = true;

                            }

                            else if(fivefive = true) {

                                if(fivesix = false) {

                                    fivesix = true;

                                }

                                 else if(fivesix = true) {

                                     if(fiveseven = false) {

                                         fiveseven = true;

 

                            }

                        }

                    }

                }

            }

        }

        else if(row.equals("Row 6")) {

            if(sixone = false) {

                    sixone = true;

                }

                else if(sixone = true) {

                    if(sixtwo = false) {

                        sixtwo = true;

                }

                else if(sixtwo = true) {

                    if(sixthree = false) {

                        sixthree = true;

                    }

                    else if(sixthree = true) {

                        if(sixfour = false) {

                            sixfour = true;

                        }

                        else if(sixfour = true) {

                            if(sixfive = false) {

                                sixfive = true;

                            }

                            else if(sixfive = true) {

                                if(sixsix = false) {

                                    sixsix = true;

                                }

                            else if(sixsix = true) {

                                if(sixseven = false) {

                                    sixseven = true;

                                }

                            }

                        }

                    }

                }

            }

        }

    }

}

}

I'm a TA for a CS class at my school, graded this submission for a connect 4 project, idk wtf happened with this persons thought process tbh.....

By https://coderguy1777.github.io, 2019-08-30 18:09:34
double zuida(std::vector<double> vec) {
	std::vector<double> temp;
	for(int i = 0; i < vec.size(); i++)
		temp.push_back(vec[i]);
notend:
	if(temp.size() > 0) {
		if(temp.size() < 2) {
			double tmp = *(&temp[0]);
			return tmp;
		}
		else if(temp.size() >= 2) {
			double mini = temp[0];
			int ind = 0;
			for(int i = 0; i < temp.size(); i++)
				if(temp[i] < mini) {
					mini = temp[i];
					ind = i;
				}
			temp.erase(temp.begin() + ind);
			goto notend;
		}
	}
}

The beauty is that every case is the best (also worst) case!

By Anonymous, 2019-10-12 10:42:23
for (const order of orders) {
    for (const resultItem of results) {
        if (resultItem.machine != "TRANSFER") {
            shiftsLoop: for (const shift of resultItem.shifts) {
                if (shift.products) {
                    for (const product of shift.products) {
                        if (product.product == order.product) {
                            for (const routing of routings) {
                                if (routing.output == order.product) {
                                    const machinePlant = findMachinePlant(resultItem.machine, machines)
                                    if (routing.type == "ODP") {
                                        if (machinePlant == order.plant) {
                                            const msg = createMessage(order, shift, resultItem.machine, CHOR)
                                            requests.push(buildRequest(msg))
                                        } else {
                                            //CHEE CHIE CHEI
                                        }
                                        break shiftsLoop
                                    } else if (routing.type == "OCL" || routing.type == "RCL") {
                                        const msg = createMessage(order, shift, resultItem.machine, CHCL)
                                        requests.push(buildRequest(msg))
                                        //CHCL
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
By sgaloppo, 2021-08-28 20:28:59
 # 5-level loop, forgive me...
        for xi, xs in enumerate(X):
            for yi, ys in enumerate(Y):
                for zi, zs in enumerate(Z):
                    lx, ly, lz = len(xs), len(ys), len(zs)
                    # construct points
                    xx, yy, zz = custom_meshgrid(xs, ys, zs)
                    world_xyzs = (
                        torch.cat(
                            [xx.reshape(-1, 1), yy.reshape(-1, 1), zz.reshape(-1, 1)],
                            dim=-1,
                        )
                        .unsqueeze(0)
                        .to(count.device)
                    )  # [1, N, 3]

                    # cascading
                    for cas in range(self.cascade):
                        bound = min(2**cas, self.bound)
                        half_grid_size = bound / resolution
                        # scale to current cascade's resolution
                        cas_world_xyzs = world_xyzs * (bound - half_grid_size)

                        # split batch to avoid OOM
                        head = 0
                        while head < B:
                            tail = min(head + S, B)

                            # world2cam transform (poses is c2w, so we need to transpose it. Another transpose is needed for batched matmul, so the final form is without transpose.)
                            cam_xyzs = cas_world_xyzs - poses[
                                head:tail, :3, 3
                            ].unsqueeze(1)
                            cam_xyzs = cam_xyzs @ poses[head:tail, :3, :3]  # [S, N, 3]

                            # query if point is covered by any camera
                            mask_z = cam_xyzs[:, :, 2] > 0  # [S, N]
                            mask_x = (
                                torch.abs(cam_xyzs[:, :, 0])
                                < cx / fx * cam_xyzs[:, :, 2] + half_grid_size * 2
                            )
                            mask_y = (
                                torch.abs(cam_xyzs[:, :, 1])
                                < cy / fy * cam_xyzs[:, :, 2] + half_grid_size * 2
                            )
                            mask = (
                                (mask_z & mask_x & mask_y).sum(0).reshape(lx, ly, lz)
                            )  # [N] --> [lx, ly, lz]

                            # update count
                            count[
                                cas,
                                xi * S : xi * S + lx,
                                yi * S : yi * S + ly,
                                zi * S : zi * S + lz,
                            ] += mask
                            head += S
By Anonymous, 2022-05-13 14:03:28

abstract class ASong(
    var songId: Int = 0,
    var title: String? = "",
    var clipArt: String? = "",
    var artist: String? = "",
    var source: String? = "",
    var songType: Int = 0,
    var length: String? = "",
    var downloadPath: String? = "",
    var category: String? = ""
) : Parcelable {

    @Transient
    var totalDuration: Long = 0
    @Transient
    var currentPosition: Long = 0
    @Transient
    var playingPercent = 0

    private fun calculatePlayingPercent(): Int {
        return if (currentPosition == 0L || totalDuration == 0L) 0 else (currentPosition * 100 / totalDuration).toInt()
    }

}
© 2021 GitHub, Inc

Probably meant to stand for AbstractSong. Ens up sounding awkward or like somebody who just wrote their first class.

By peakvalleytech, 2021-11-13 00:07:44
$MaxSizeGB = [math]::Round($MaxSize/1024/1024/1024,2)
Write-Output "    the maximum size is $MaxSizeGB GB"

At least [math] is used. So close, and yet so far...

By Anonymous, 2020-04-03 20:59:34
<div class="scrollContent">
	{foreach $animations as $index => $a}
		{if $index > 2}
			{if $a.filename == '9_1447691013_3726.png'}
			{else}
				{if $a.filename == '9_1423150010_6441.png'}
				{else}
					{if $a.filename == '9_1423149959_5909.png'}
					{else}
						{if $a.filename == '9_1423149908_5874.png'}
						{else}
							{if $a.filename == '9_1528213223_6374.jpg'}
							{else}
								{if $a.filename == '9_1527670984_3732.jpg'}
								{else}

							<div class="spotlightFrame frame{$index+1} contains1" data-index="{$index}">
								{if $a.link}<a href="{$a.link}">{/if}
								<img src="/upload/{$a.filename}" alt="{$a.title}" />
								{if $a.link}</a>{/if}
							</div>

								{/if}
							{/if}
						{/if}
					{/if}
				{/if}
			{/if}
		{/if}
	{/foreach}
</div>

Handovers are great.

By Anonymous, 2018-07-09 14:50:36