View FailingCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
class FuzzedClass_202 { | |
public void test() { | |
{ | |
long var1; | |
System.out.println("Hi"); | |
if (new Random().nextBoolean()) | |
{ | |
System.out.println("Hi"); | |
System.out.println("Hi"); |
View hi.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function predictor({adrenaline, noradrenaline, dopamine, serotonin, endorphins}: levels) { | |
if (adrenaline >= 90 && adrenaline !== 100) return 'is super pumped.'; | |
if (noradrenaline >= 90 && noradrenaline !== 100) return 'is sharp and ready.'; | |
if (serotonin >= 90 && serotonin !== 100) return 'is totally vibing out.'; | |
if (dopamine >= 90 && dopamine !== 100) return 'is feeling like a boss.'; | |
if (endorphins >= 90 && endorphins !== 100) return 'is giddy with excitement.'; | |
if (dopamine < -80 && serotonin < -80) { | |
if (adrenaline > 80) return "is on the verge of a panic attack."; | |
if (adrenaline < -80 && endorphins < -80) return "is having a no good, very bad day."; |
View biome.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $xxx = Identifier // Registry for xxx | |
* $|xxx = ($xxx | xxx) | |
*/ | |
Biome{ | |
// inline enum | |
precipitation: ("none"|"rain"|"snow") | |
// reference enum | |
category: Biome.Category |
View kotlinStarterAI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlin.math.* | |
import java.util.* | |
data class Coord(val x: Int, val y: Int) { | |
constructor(input: Scanner) : this(input.nextInt(), input.nextInt()) | |
operator fun plus(other: Coord): Coord { |
View ancient_knights_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Knight: | |
def __init__(self, name): | |
self.name = name | |
self.l = len(name) | |
self.honor = 0 | |
def quest1(self): | |
if self.l > 6: | |
self.honor += 1 |
View ccb.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- Calculator | |
function Calculator () { | |
this.schema = [ | |
{ | |
objects: function () { | |
return Game.UpgradesInStore.filter(function(e) { | |
return ([ | |
64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 84, 85, 87, 141, // bingo upgrades | |
182, 183, 184, 185 // season switchers | |
].indexOf(e.id) < 0); |