text stringlengths 14 410k | label int32 0 9 |
|---|---|
private Colors(String name) {
realName = name;
} | 0 |
public void moveTo(int c, int r)
{
if (humanPlaying()) {
gui.Sound.play("sound/move.wav");
}
log.emit(currentUnit.type.name+" ("+currentUnit.getOwner().getColor().name+") ruszył się na pole ("+(r+1)+", "+(c+1)+")");
core.Point pos = p2u.get(currentUnit);
p2u.remove(currentUnit);
p2u.put(r, c, currentUni... | 1 |
@SuppressWarnings("unchecked")
private Class<IPlugin> loadOnePluginClass(String className) {
try {
logger.info("Request for loading class " + className + " by " + this);
Class<?> loadedClass = loader.loadClass(className);
// check that the class is of the right type
if (ptype.isAssignableFrom(loade... | 4 |
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((extendsProp == null) ? 0 : extendsProp.hashCode());
result = prime * result + ((properties == null) ? 0 : properties.hashCode());
result = prime * result + ((typeFormat == null) ? 0 :... | 4 |
public void setPc(int branchTo) {
pc = branchTo;
} | 0 |
public void searchOffline(String q) {
searchResult.clear();
ArrayList<Product> off = Main.products;
if(!q.equals(""))
for (int i = 0; i < off.size(); i++) {
if (off.get(i).getpId() == Integer.valueOf(q)) {
searchResult.add(off.get(i));
break;
}
}
} | 3 |
public static ArrayList<bConsultaDef> getConsultaAsistec(String arg_prod, String arg_data) throws SQLException, ClassNotFoundException {
ResultSet rs;
ArrayList<bConsultaDef> sts = new ArrayList<bConsultaDef>();
Connection conPol = conMgr.getConnection("PD");
if (conPol == null) {
... | 3 |
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Customer)) {
return false;
}
Customer other = (Customer) object;
if ((this.customerId == null && other.customer... | 5 |
void makeLink(Match match) {
match.prevHTM = match.prevATM = null;
if (prevMatch.containsKey(match.homeTeam)) {
match.prevHTM = prevMatch.get(match.homeTeam);
}
if (prevMatch.containsKey(match.awayTeam)) {
match.prevATM = prevMatch.get(match.awayTeam);
}
... | 2 |
public String dailySalesReport()
{
ReportService service;
try {
service = new ReportService();
SimpleDateFormat date= new SimpleDateFormat("dd/MM/yyyy");
java.util.Date temp_date=date.parse(this.date);
this.dailyReport=(ArrayList<Item>)service.generateDailySalesReport(temp_date);
for... | 5 |
public static void main(String[] args) throws Exception {
BufferedReader br1 = new BufferedReader(new FileReader(
"res/kaggle_triplets.csv"));
BufferedReader br2 = null;
// train_triplets
// kaggle_visible_evaluation_triplets
BufferedWriter wr = null;
long start = System.currentTimeMillis();
try {
... | 9 |
@Override
public Vector pickWordToFill(Crossword c, Direction direction) {
Preconditions.checkNotNull(direction);
if (direction == Direction.ACROSS) {
for (int y = 0; y < c.getHeight(); ++y) {
for (int x = 0; x < c.getWidth(); ++x) {
String word = c.getWord(x, y, direction);
if (word.length() > 1... | 9 |
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int cases = input.nextInt();
for (int q = 1; q <= cases; ++q) {
int size = input.nextInt();
for (int i = 0; i < size; ++i) {
int j = input.nextInt();
... | 3 |
public BasicAction(String name, String longDescription,
String actionCommand, ImageIcon small_icon, int mnemonic,
KeyStroke keyStroke) {
super();
actionListeners = new EventListenerList();
putValue(Action.NAME, name);
putValue(Action.LONG_DESCRIPTION, longDescription);
putValue(Action.SHORT_DESCRIPTION... | 2 |
public void setPool(ITicketPool value) {
this._pool = value;
} | 0 |
public static void listEmployeesWithProject(EntityManager entityManager) {
TypedQuery<Employee> query = entityManager.createQuery(
"select e from Employee e join fetch e.projects",
Employee.class);
List<Employee> resultList = query.getResultList();
entityManager.close();
for (Employee employee : resul... | 1 |
@Override
public String execute(SessionRequestContent request) throws ServletLogicException {
String page = ConfigurationManager.getProperty("path.page.order");
String prevPage = (String) request.getSessionAttribute(JSP_PAGE);
showSelectedOrder(request);
if(page == null ? prevPage ==... | 2 |
protected void handleProxyPost(HttpRequest request) {
URL url = request.getUrl();
Socket socket;
InputStream remoteInputStream = null;
OutputStream remoteOutputStream = null;
try {
int port = url.getPort();
socket = new Socket(url.getHost(), port == -1 ? 8... | 2 |
public void SetAverageNumberOfPersons()
{
if(averageNumberOfPersons != 0)
{
if(Count() !=0)
{
averageNumberOfPersons = (averageNumberOfPersons + Count())/2;
}
//System.out.println("Bus-Stop: " +this.busStopNumber+", Average number of Persons: "+ave... | 3 |
private void loadIdCounts()
{
try
{
idCounts.clear();
if (saveHandler == null)
{
return;
}
File file = saveHandler.getMapFileFromName("idcounts");
if (file != null && file.exists())
{
... | 7 |
public static Stella_Object selectInstanceWithBacklinks(Cons instances, Surrogate relation) {
relation = relation;
{ Stella_Object i = null;
Cons iter000 = instances;
for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
i = iter000.value;
if ((i != null) &&
(!false)... | 8 |
private boolean readFeed()
{
try
{
// Set header values intial to the empty string
String title = "";
String link = "";
// First create a new XMLInputFactory
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
// Setup... | 8 |
@Test
public void testAddToEnd() throws Exception {
List<String> list = new List<>();
list.addToEnd("test1");
list.addToEnd("test2");
list.addToEnd("test3");
for (String current : list) {
assertTrue(list.exist(current));
}
} | 1 |
@Override
public void keyPressed(KeyEvent e)
{
if (gameRunning)
{
/*
* If the change in direction cannot be applied immediately, keep
* track of the direction specified in case the change in
* direction can be applied later.
*/
... | 9 |
public static void checkVersion(LauncherAPI api) throws Exception
{
boolean update = false;
final List<Map<String, Object>> versions = api.getConfig().getMapList(
"updater.versions");
for (final Map<String, Object> version : versions)
{
i... | 8 |
private static TipusEquip llegirEquip(String msg) {
TipusEquip equip = null;
try {
boolean ok = false;
String s;
int x = 0;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
while(!ok) {
System.out.print(... | 9 |
public String Ganador(boolean Estado, int opcion2, String jugador2, String jugador1, String turno2) {
if (opcion2 == 5 && this.turno2.equals("j2") || opcion2 == 8 && this.turno1.equals("j1")) {
return "Ganador de la partida" + ": " + jugador2;
}
return "Perdedor de la partida" + ": ... | 4 |
@Override
public void run() {
try {
while (true) {
Object obj = in.readObject();
Server.s.handleMessage(clientNR, obj);
}
} catch (IOException e) {
System.out.println("Client["+clientNR+"] quits");
try {
out.close();
} catch (IOException e1) {
e1.printStackTrace();
}
... | 4 |
public static boolean checkBipartite(Graph graph) throws Exception {
// get all vertices
ArrayList<Vertex> vertices = graph.getVertices();
// pick an initial color
Color initialColor = Color.BLACK;
// get initial vertex
Vertex initialVertex = vertices.get(0);
// paint initial vertex with initial color
i... | 7 |
public X509DataType createX509DataType() {
return new X509DataType();
} | 0 |
public void input(String string) {
myTarget=string;
startParseInput(string, null);
} | 0 |
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
SearchState other = (SearchState) obj;
if (board == null) {
if (other.board != null)
retu... | 8 |
public Double getUnnormalizedDataPoint(String sample, String taxa)
throws Exception
{
int x = -1;
for (int i = 0; x == -1 && i < getSampleNames().size(); i++)
if (sample.equals(getSampleNames().get(i)))
x = i;
int y = -1;
for (int i = 0; y == -1 && i < getOtuNames().size(); i++)
if (taxa.equals(... | 8 |
public PulsPlugin(String name, String password) {
try {
String pulsLogin= "https://puls.uni-potsdam.de/qisserver/rds?state=user&type=1&" +
"asdf=" + name + "&fdsa="+ password + "&category=auth.login&startpage=portal.vm";
answer = new SimpleHttpReader().readURL(pulsLogin);
} catch (Exception e){
answer... | 1 |
private static int parseIntFragment(String str) {
if (str == null) {
return 0;
}
int parsed = 0;
boolean isNeg = false;
char[] strip = str.toCharArray();
char c = strip[0];
if (c == '-') {
isNeg = true;
} else if (c >= '0' && c <= '... | 8 |
public FSATransition(State from, State to, String label) {
super(from, to);
setLabel(label);
} | 0 |
public int getLargestCapture() {
return largestCapture;
} | 0 |
private void openConfig() {
int returnVal = configChooser.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
SPContainer spc = null;
String fileName = "";
try {
File file = configChooser.getSelectedFile();
String path = ... | 3 |
public boolean updateEdge(String edge_id, Map<String,String> params)
{
boolean isUpdated = false;
int count = 0;
try
{
while((!isUpdated) && (count != retryCount))
{
if(count > 0)
{
//System.out.println("ADD... | 6 |
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
BankAccount other = (BankAccount) obj;
if (balance != other.balance)
return false;
return true;
} | 4 |
public Dimension getDimension(String text) {
FAName fn = getFAName(text);
if (fn != null) {
return new Dimension(fn.width, fn.height);
}
int width = 0;
for (int i=0; i<text.length(); i++) {
FALetter fl = getLetter(text.charAt(i));
width += fl.... | 6 |
public static boolean clashesWithFunctionPropositionP(Proposition nextproposition, Proposition referenceproposition) {
{ boolean alwaysP000 = true;
{ Stella_Object superarg = null;
Iterator iter000 = referenceproposition.arguments.butLast();
Stella_Object subarg = null;
Iterator iter0... | 9 |
@Override
public boolean modificarDepartamento(Departamento departamento)
{
boolean correcto = true;
EntityManager em = null;
EntityManagerFactory ef =null;
try {
ef= Persistence.createEntityManagerFactory("MerkaSoftPU");
em = ef.createEntityMa... | 7 |
@Override
public void paintOverlay( Graphics2D g ) {
if( selection.isSelected() ) {
Color color = Color.GRAY;
if( selection.isPrimary() ) {
color = Color.GREEN;
}
Point p1 = connection.getSourceEndPoint().getAttachement().getLanding();
Point p2 = connection.getTargetEndPoint().getAttachement().ge... | 2 |
private JPanel buildLoginPanel() {
TransparentPanel panel = new TransparentPanel();
panel.setInsets(4, 0, 4, 0);
BorderLayout layout = new BorderLayout();
layout.setHgap(0);
layout.setVgap(8);
panel.setLayout(layout);
GridLayout gl1 = new GridLayout(0, 1);
gl1.setVgap(2);
GridLayout gl2 = new GridLa... | 7 |
public void testConstructor_ObjectStringEx2() throws Throwable {
try {
new LocalDateTime("1970-04-06T10:20:30.040+14:00");
fail();
} catch (IllegalArgumentException ex) {}
} | 1 |
public String nextToken() throws JSONException {
char c;
char q;
StringBuilder sb = new StringBuilder();
do {
c = next();
} while (Character.isWhitespace(c));
if (c == '"' || c == '\'') {
q = c;
for (;;) {
c = next();
... | 9 |
private static void raiseOverflowException(Number number,
Class<?> targetClass) {
throw new IllegalArgumentException("Could not convert number ["
+ number + "] of type [" + number.getClass().getName()
+ "] to target class [" + targetClass.getName() + "]: overflow");
} | 1 |
public void printComponent(Graphics g) {
treeDerivationPane.print(g);
} | 0 |
@Id
@GenericGenerator(name = "generator", strategy = "increment")
@GeneratedValue(generator = "generator")
@Column(name = "item_id")
public int getItemId() {
return itemId;
} | 0 |
public boolean isEmptyRunTimeStack() {
return runStack.isEmpty();
} | 0 |
public void sort(int a[])throws Exception{
if(null==a||0>=a.length)
throw new Exception("需要排序的数组不能为空");
//用来存储需要排序的 数组片段
Stack<NextData> nextDatas= new Stack<NextData>();
nextDatas.push(new NextData(0,a.length-1)); //首先将下标为[0,a.length-1]的字段片段放入到栈中
while(!nextDatas.empty())... | 9 |
@Override
public String toString() {
return "BookEntity ["
+ (id != null ? "id=" + id + ", " : "")
+ (title != null ? "title=" + title + ", " : "")
+ (author != null ? "author=" + author + ", " : "")
+ (numberPage != null ? "numberPage=" + numberPage + ", " : "")
+ (imprintDate != null ? "imprint... | 9 |
@Override
public String toString() {
int i, j;
String str = " ";
for (j = 0; j < tailleY; j++) {
str += j % 10;
}
str += "\n .";
for (j = 0; j < tailleY; j++) {
str += '-';
}
str += ".\n";
for (i = 0; i < tailleX; i++)... | 6 |
@Override
public DetailedAisTarget getTargetDetails(int id, boolean pastTrack) {
DetailedAisTarget aisTarget = new DetailedAisTarget();
AisVesselTarget target = getById(id);
if (target != null) {
aisTarget.init(target);
}
if (pastTrack) {
// Determine secondsBack based on source
int secondsBack = 12... | 3 |
private void DumpToStdOut(Map<String, Integer> someMap) {
if (!useOutputDebugStuff){
return;
}
for (String key : someMap.keySet()) {
String val = someMap.get(key).toString();
System.out.println(key + " ==> " + val);
}
System.out.printl... | 2 |
public int getHeldRsrceType() {return this.proffession.getHeldRsrceType();} | 0 |
@Override
//takes in state and returns if that state is a valid successor state to the current state
public void nextStates(Tree.Node node) {
ArrayList<Integer> next = new ArrayList<Integer>();
if(node.state.get(0) == 0) {
if(node.state.get(1) == 0 && node.state.get(2) != 0 && node.state.get(3) != 0) {
nex... | 9 |
public ArrayList<ArrayList<ArrayList<String>>> erstelleDutyelementListAll(
ArrayList<Dienstplan> dienstplanliste) {
ArrayList<ArrayList<ArrayList<String>>> ListPlaeneGesamt = new ArrayList<ArrayList<ArrayList<String>>>();
int zaehler = 0;
for (int i = 0; i < dienstplanliste.size(); i++) {
ArrayList<ArrayL... | 6 |
public void write(String data) {
try {
output.writeBytes(data);
output.close();
} catch (Exception ex) {
ex.printStackTrace();
}
} | 1 |
private Item findFakeLimb(MOB tmob, String named)
{
if(named.length()>0)
{
named=named.toUpperCase();
if(named.startsWith("RIGHT "))
named=named.substring(6).trim();
else
if(named.startsWith("LEFT "))
named=named.substring(5).trim();
for(int i=0;i<tmob.numItems();i++)
{
final Item I=t... | 9 |
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onEntityExplode(EntityExplodeEvent e) {
if (Settings.world
|| WorldSettings.worlds.contains(e.getEntity().getWorld()
.getName())) {
if (Settings.expwr > 3 || Settings.expwr < 0) {
writeWarn("[EM] Explosion level is i... | 7 |
public void trainByWholePool(Instance inst, int windowSize) {
int instsInitSize = 0;
int instsSecondarySize = 0;
if (Insts == null) {
ArrayList attList = Collections.list(inst.enumerateAttributes());
attList.add(inst.attribute(inst.classIndex()));
Insts = new... | 8 |
private String headerRep(final String pLength, final String pCode) {
Date date = new Date();
String mimetostring;
if (!pCode.substring(0, 1).equals("4")
&& !pCode.substring(0, 1).equals("5")) { // si erreur
mimetostring = Mime.extractTypeMime(hostpath + headerQuest.getCible());
}... | 5 |
public void setup(final EvolutionState state, final Parameter base)
{
// What's my name?
name = state.parameters.getString(base.push(P_NAME),null);
if (name==null)
state.output.fatal("No name was given for this function set.",
base.push(P_NAME));
// Re... | 9 |
public static PlayerMovementServer getInstance() {
if(instance == null)
instance = new PlayerMovementServer();
return instance;
} | 1 |
public static void playSlideshow(){
SafetyNet.updateGui();
Transport.setDirectNavigationText(Integer.toString(currentSlideID));
if(Debug.engine) System.out.println("Engine -> playSlideshow -> Current Slide being viewed:" + currentSlideID);
// If the current slide is a normal Slide, then call the renderer as u... | 5 |
private static int[][] FileToWeightedGraphArray(String dat) {
int[][] A = null;
FileInputStream fis = null;
try {
fis = new FileInputStream(dat);
} catch (Exception e) {
System.out.println(dat + " konnte nicht geoeffnet werden");
System.out.println(e.getMessage());
}
try {
... | 7 |
private Set<Card> kingQueenNineSixFourThreeTwo() {
return convertToCardSet("3S,6S,2D,QS,KD,4C,9H");
} | 0 |
public Line[] getDjs() {
String l = Pattern.compile("djs:\\{").split(line)[1];
String data = l.substring(1, l.indexOf("}"));
if (data.equals("")) {
return new Line[] { new Line("null") };
}
String[] djs = Pattern.compile("[0-9]\\: ").split(data);
Line[] array = new Line[djs.length];
for (int i = 0; i ... | 2 |
void setHistogram(ImageStatistics stats, Color color) {
this.color = color;
histogram = stats.histogram;
if (histogram.length!=256)
{histogram=null; return;}
for (int i=0; i<128; i++)
histogram[i] = (histogram[2*i]+histogram[2*i+1])/2;
int maxCount = 0;
int mode = 0;
for (int i=0; i<128; i++) {
i... | 9 |
static void skipWhitespace(IXMLReader reader,
StringBuffer buffer)
throws IOException
{
char ch;
if (buffer == null) {
do {
ch = reader.read();
} while ((ch == ' ') || (ch == '\t') || (ch == '\n'));
} else {
for (;;) {
... | 9 |
public static void startupNeuralNetwork() {
{ Object old$Module$000 = Stella.$MODULE$.get();
Object old$Context$000 = Stella.$CONTEXT$.get();
try {
Native.setSpecial(Stella.$MODULE$, Stella.getStellaModule("/LOGIC", Stella.$STARTUP_TIME_PHASE$ > 1));
Native.setSpecial(Stella.$CONTEXT$, ... | 7 |
public void main() {
System.out.println("Starting ...");
long start = System.currentTimeMillis();
Thread t1 = new Thread(new Runnable() {
public void run() {
process();
}
});
Thread t2 = new Thread(new Runnable() {
public void ... | 1 |
public void update(){
counter++;
if(counter % (60) == 0){
int x = random.nextInt(18) + 11;
int y = random.nextInt(40);
map.addMob(new Enemy(new Vector2(x * map.tileSize, y * map.tileSize), null, mobTextures));
}
if(MainMenu.open){
menu.update();
}else{
map.update();
followPlayer... | 2 |
@BeforeTest
@Test(groups = { "MaxHeapCharacters" })
public void testMaxHeapCharPushPop() {
Reporter.log("[ ** MaxHeap Character Push ** ]\n");
testQueueChar = new MaxPriorityQueue<>(new Character[seed], true);
try {
Reporter.log("Insertion : \n");
timeKeeper = System.currentTimeMillis();
for (int ... | 6 |
public void renderInventory(GuiItems guiItems)
{
for(int y = 0; y < 133; y++)
{
for(int x = 0; x < 133; x++)
{
if(x < -133 || x >= width || y < 0 || y >= height) break;
if(x < 0) x = 0;
pixels[x + (133/2 + 10) + (y + 10)* width] = guiItems.pixels[x + y * 133];
}
}
} | 7 |
public Message getMessageById(String id) {
for (int i=0; i<messages.size(); i++) if (id.equals(messages.get(i).getId())) return messages.get(i);
return null;
} | 2 |
@Override
protected List<SearchResult<SequenceMatcher>> doSearchForwards(final WindowReader reader,
final long fromPosition, final long toPosition) throws IOException {
// Get info needed to search with:
final SearchInfo info = forwardInfo.get();
final int[] safeShifts = info.sh... | 9 |
@Before
public void setUp() {
} | 0 |
public static String numberToString(Number number) throws JSONException {
if (number == null) {
throw new JSONException("Null pointer");
}
testValidity(number);
// Shave off trailing zeros and decimal point, if possible.
String string = number.toString();
if (string... | 6 |
public static void sort(int ar[]) {
int temp;
System.out.print("Array Before Sorting :\t");
for (int element : ar) {
System.out.print(element + " ");
}
// logic for increasing order
for (int i = 0; i < ar.length; i++) {
for (int j = i; j < ar.length; j++) {
if (ar[i] > ar[j]) {
temp = ar[i];
... | 9 |
public Clock getTimeStamp(){
return this.hostTimeStamp;
} | 0 |
private void element() throws CompilationException {
// deciding between <LITERAL>, '(' conditional ')', <ID> invocation
// there must be at least one of these
switch (type) {
case 60: // <LITERAL>
paramOPs.push(new OPload(val));
nextToken();
break;
case 41: // '('
ne... | 4 |
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://down... | 6 |
@Override
public void documentRemoved(DocumentRepositoryEvent e) {} | 0 |
public static boolean attemptPlayerMove(Point dir) {
HashMap<Integer, Tile> tiles = activemap.getTileMap();
HashMap<Integer, Actor> actors = activemap.getActorHash();
Point newloc = player.getPos().copy();
newloc.push(dir);
int newkey = activemap.genKey(newloc.getX(), newloc.getY... | 4 |
@Override
public CardImpl getRandomCard(int box) {
CardImpl theCard = null;
ArrayList<CardImpl> cardsForBox = new ArrayList<CardImpl>();
cardsForBox = getCards(box);
if (cardsForBox.size() > 0) {
Random random = new Random();
int min = 1;
int max = cardsForBox.size();
int rndNumb = random.nextInt(m... | 3 |
private static Node minValue(Node n, int color, int depth, int alpha, int beta) {
// Test if we have hit the max depth, or if the node has a state of solved
if (depth <= 0 || n.b.gameIsOver()) {
return n;
}
Node b = new Node();
b.evaluation = beta;
int opponentColor = Board.opponentColor(color);
Arra... | 5 |
void setInterestRateCD(int duration, double newRate)
{
switch(duration)
{
case 0:
BankGlobal.InterestRateCD6Month = newRate;
break;
case 1:
InterestRateCD1Year = newRate;
break;
case 2:
InterestRateCD2Year = newRate;
break;
case 3:
InterestRateCD3Year = newRate;
break;
case 4:
... | 6 |
public void setPrecio(double precio) {
this.precio = precio;
} | 0 |
public void loadDatabase()
{
ArrayList<String> getID = getTrackList();
for(int i = 0; i < getID.size(); i++){
Map<String,String> result = getEntry(getID.get(i));
Track newTrack = new Track();
for(Map.Entry<String, String> entry : result.entrySet()){
//make a track
newTrack.put(entry.getKey(), resu... | 2 |
public void play_human() {
Submission temp;
for ( Player player : players_ ) {
if ( player.is_human() ) {
// Player will draw a card from the draw pile
if (game_.turn_.draw()) {
player.take_card(deck_.draw());
}
... | 5 |
public static void transmit() {
ObjectOutputStream out;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
out = new ObjectOutputStream(socket.getOutputStream());
while (true) {
String message = reader.readLine();
if (message.startsWith("\\")) {
if (... | 5 |
@EventHandler
public void WitherWaterBreathing(EntityDamageByEntityEvent event) {
Entity e = event.getEntity();
Entity damager = event.getDamager();
String world = e.getWorld().getName();
boolean dodged = false;
Random random = new Random();
double randomChance = plugin.getZombieConfig().getDouble("Wither.... | 7 |
@Override
public void run() {
long pretime, dif, sleep;
pretime = System.currentTimeMillis();
while(running) {
this.tick();
this.repaint();
//System.out.println(pretime);
dif = System.currentTimeMillis() - pretime;
sleep = 15 - dif;
if(sleep < 0) {
sleep = 1;
}
try {
... | 3 |
public static double log(final double x, final double base) {
return Math.log(x)/Math.log(base);
} | 0 |
static void mark_sprites_palette()
{
//UBytePtr umap = &palette_used_colors[Machine.drv.gfxdecodeinfo[2].color_codes_start];
UBytePtr umap = new UBytePtr(palette_used_colors,Machine.drv.gfxdecodeinfo[2].color_codes_start);
/*unsigned*/ int cmap = 0;
UBytePtr pt = new UBytePtr(sf1_objectram , 0x20... | 9 |
public void laitetaasPariPientaEstetta() {
t = new Taso(10, 10);
pe = new Pelaaja();
pe.setTaso(t);
t.lisaaEste(new Este(0, 100, 1000, 200));
t.lisaaEste(new Este(400, 90, 600, 200));
} | 0 |
public void go(Point3 p){
pos.add(p);
System.out.println("Go + " + pos);
} | 0 |
Subsets and Splits
SQL Console for giganticode/java-cmpx-v1
The query retrieves a limited number of text entries within a specific length range, providing basic filtering but minimal analytical insight.