Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 256 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 260 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 258 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 395 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 284 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 318 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 401 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 406 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 1,929 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 280 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 1,429 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 209 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 3,411 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 3,199 |
github-java-corpus | 2,012 | /*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* no... | 1,322 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 4,616 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 1,243 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 423 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 1,556 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 7,390 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 616 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 293 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 598 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 1,260 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 871 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 625 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 632 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 3,916 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 752 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 1,933 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 712 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 413 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 2,104 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 291 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 303 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 219 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 255 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 398 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 224 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 360 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable l... | 298 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 6,173 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 8,612 |
github-java-corpus | 2,012 | /*
* Copyright 2012 University of Osnabrueck
* Licensed under the Educational Community License, Version 2.0
* (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by appl... | 2,082 |
github-java-corpus | 2,012 | package com.tictactoe.game;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* Represents a game of Tic Tac Toe. Contains players and a game board.
*
* @author Kevin Webber
*/
public class Game {
private static int GAME_COUNT = 0;
public enum Status {
WAITING, IN_PROGRE... | 857 |
github-java-corpus | 2,012 | package com.tictactoe.game;
import org.jboss.netty.channel.Channel;
import com.tictactoe.game.Game.PlayerLetter;
/**
* Represents a player for a game of Tic Tac Toe.
*
* @author Kevin Webber
*/
public class Player {
// The player's websocket channel. Used for communications.
private Channel channel;
// ... | 145 |
github-java-corpus | 2,012 | package com.tictactoe.game;
import com.tictactoe.game.Game.PlayerLetter;
/**
* A board for a game of Tic Tac Toe. Represents the current state of the game and which cells have been selected by whom.
*
* @author Kevin Webber
*/
public class Board {
/* The number of winning combinations are small, so we'll kee... | 627 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
public class GameOverMessageBean extends MessageBean {
public enum Result {
YOU_WIN, TIED
}
private final String type = "game_over";
private Result result;
public GameOverMessageBean(Result r) {
result = r;
}
public String getType() {
return type;
}
public R... | 89 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
import com.google.gson.Gson;
public class HandshakeMessageBean extends MessageBean {
private final String type = "handshake";
private int gameId;
private String player;
public HandshakeMessageBean(int gameId, String player) {
this.gameId = gameId;
this.player = player;... | 162 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
public class IncomingMessageBean {
private int gameId;
private String player;
private String gridId;
public int getGameId() {
return gameId;
}
public void setGameId(int gameId) {
this.gameId = gameId;
}
public String getPlayer() {
return player;
}
public void set... | 148 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
public class OutgoingMessageBean extends MessageBean {
private final String type = "response";
private String opponent;
private String gridId;
private boolean winner;
private boolean tied;
public OutgoingMessageBean(String opponent, String grid, boolean winner, boolean tie... | 160 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
public class TurnMessageBean extends MessageBean {
public enum Turn {
WAITING, YOUR_TURN
}
private final String type = "turn";
private Turn turn;
public TurnMessageBean(Turn t) {
turn = t;
}
public String getType() {
return type;
}
public Turn getTurn() {
... | 89 |
github-java-corpus | 2,012 | package com.tictactoe.server.message;
import com.google.gson.Gson;
public class MessageBean {
public String toJson() {
Gson gson = new Gson();
return gson.toJson(this);
}
}
| 43 |
github-java-corpus | 2,012 | /*
* Copyright 2010 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 422 |
github-java-corpus | 2,012 | package com.tictactoe.server;
import static com.tictactoe.server.message.GameOverMessageBean.Result.TIED;
import static com.tictactoe.server.message.GameOverMessageBean.Result.YOU_WIN;
import static com.tictactoe.server.message.TurnMessageBean.Turn.WAITING;
import static com.tictactoe.server.message.TurnMessageBean.Tu... | 2,633 |
github-java-corpus | 2,012 | package com.tictactoe.server;
import java.net.InetSocketAddress;
import java.util.concurrent.Executors;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.ChannelFactory;
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;
public class TicTacToeServer {
public ... | 172 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Tools;
/*
* This class extends the standard LCD20x4 class to add extra functionality,
* currently the only one writes text to the LCD not line by line. You can still
* use the LCD as you would if you... | 539 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Tools;
import com.tinkerforge.BrickletLCD20x4;
import com.tinkerforge.BrickletTemperatureIR;
import com.tinkerforge.IPConnection;
import com.tinkerforge.IPConnection.TimeoutException;
import java.util.... | 765 |
github-java-corpus | 2,012 | package com.serenity.slowchat;
import org.bukkit.plugin.java.JavaPlugin;
public class SlowChat extends JavaPlugin {
@Override
public void onEnable() {
// Copy the default configuration
this.getConfig().options().copyDefaults(true);
this.saveConfig();
// Register events
... | 105 |
github-java-corpus | 2,012 | package com.serenity.slowchat;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
public class SlowChatCommand implements CommandExecutor {
private SlowChat parent;
public SlowChatCommand(SlowChat parent) {
... | 283 |
github-java-corpus | 2,012 | package com.serenity.slowchat;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerChatEvent;
im... | 435 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.util.ArrayList;
import java.util.Iterator;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.i... | 16,052 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.event.server.PluginEnableEvent;
import org.bukkit.event.server.ServerListener;
import com.nijiko.coelho.iConomy.iConomy;
import com.nijiko.permissions.PermissionHandler;
import com.nijikokun.bukkit.Permissi... | 415 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import com.nijiko.coelho.iConomy.iConomy;
import com.nijiko.coelho.iConomy.syst... | 1,415 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import... | 4,414 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Level;
imp... | 1,177 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.NoSuchElementException... | 2,765 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
public class ShopMessages {
static String chatPrefix = ChatColor.AQUA + "[" + ChatColor.WHITE + "Shop" + ChatColor.AQUA + "] ";
static String shopAlreadyExists = "$CHATPREFIX $AQUA Could not create shop. ... | 435 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.bl... | 1,363 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.ChatColor;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
impo... | 1,865 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import org.bukkit.Material;
public class PluginProperties {
public static void loadProperties(PropertyHandler properties) {
if(properties.keyExists("charge-for-shop")) {
ShopData.chargeForShop = properties.getBoolean("charge-for-shop");
} else {
properties.setBoo... | 466 |
github-java-corpus | 2,012 | package net.centerleft.localshops;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class Shop {
private String worldName;
private String shopName;
private Location shopLocation;
private String shopOwner;
p... | 1,992 |
github-java-corpus | 2,012 | package cuboidLocale;
import org.bukkit.World;
public class PrimitiveCuboid{
public String name = null;
public String world = null;
public long[] xyzA = {0,0,0};
public long[] xyzB = {0,0,0};
long lowIndex[] = new long[3];
long highIndex[] = new long[3];
/**
* Normalize the corners so that all A i... | 458 |
github-java-corpus | 2,012 | package cuboidLocale;
import java.util.ArrayList;
import java.util.Stack;
public class QuadTree{
QuadNode root;
int ct = 0;
private void beginTree(PrimitiveCuboid c){
long size = 2;
long minSize = Math.abs(c.xyzA[0] - c.xyzB[0]);
long minSizeB = Math.abs(c.xyzA[2] - c.xyzB[2]);
if(minSize < m... | 2,875 |
github-java-corpus | 2,012 | package cuboidLocale;
import java.util.ArrayList;
public class QuadNode{
QuadNode parent = null;
//children. Lower Left 0; Right + 1; Upper + 2
/* +0 |+1
* +2 2 | 3
* ------------
* +0 0 | 1
*
*/
QuadNode[] quads = new QuadNode[4];
QuadNode(long x, long z, long size, QuadNode pare... | 407 |
github-java-corpus | 2,012 | package cuboidLocale;
public class Test{
public static void main(String[] argc){
QuadTree tree = new QuadTree();
java.util.Random rng = new java.util.Random();
PrimitiveCuboid test;
int x, y, z;
int i;
for(i=0;i<100000;i++){
x = (rng.nextInt()) % 10000;
y = (rng.nextInt()) % 10000... | 364 |
github-java-corpus | 2,012 | package cuboidLocale;
import java.util.ArrayList;
public class BookmarkedResult{
public ArrayList<PrimitiveCuboid> results;
public QuadNode bookmark;
public BookmarkedResult(){}
public BookmarkedResult(QuadNode node, ArrayList<PrimitiveCuboid> c){
bookmark = node;
results = c;
}
}
| 73 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 3,683 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,124 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 2,891 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 923 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,098 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,483 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 847 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 914 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 707 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 327 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,666 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 868 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 631 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 621 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 775 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 681 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 680 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,066 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 327 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 779 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 655 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 1,545 |
github-java-corpus | 2,012 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 532 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.