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 com.carrotsearch.junitbenchmarks.BenchmarkOptions; | |
import com.carrotsearch.junitbenchmarks.BenchmarkRule; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import static junit.framework.Assert.assertTrue; | |
public class DivideBenchmark { |
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 scala.Some | |
import scala.swing._ | |
import scala.util.Random | |
import java.awt.Color | |
import java.util.Timer | |
import java.util.TimerTask | |
import swing.event._ |
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 com.google.common.base.Stopwatch; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicReference; |
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
package com.company; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class Item { | |
Logger log = Logger.getLogger("ItemLogger"); | |
public boolean function(String param) { |
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
package com.company; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class Item { | |
Logger log = Logger.getLogger("ItemLogger"); | |
public boolean function(String param) { |
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
public class Builder { | |
private String name; | |
private String description; | |
public Thing build(){ | |
return new Thing(name, description); | |
} |
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
package foo.bar; | |
public class Trade { | |
int price; | |
Trade (int price){ | |
this.price = price; | |
} |
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 sun.org.mozilla.javascript.internal.Context; | |
import sun.org.mozilla.javascript.internal.NativeArray; | |
import sun.org.mozilla.javascript.internal.NativeObject; | |
import sun.org.mozilla.javascript.internal.Scriptable; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
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 org.mozilla.javascript.Context; | |
import org.mozilla.javascript.NativeJavaObject; | |
import org.mozilla.javascript.Scriptable; | |
public class RhinoLoader { | |
public static void main(String args[]){ | |
Context ctx = Context.enter(); | |
try { |
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
public class SinglyListNode { | |
SinglyListNode next; | |
String s; | |
public String toString(){return s;} | |
public SinglyListNode(String s){this.s=s;} | |
public static void main(String argsp[]){ |
OlderNewer