text stringlengths 14 410k | label int32 0 9 |
|---|---|
public void process() {
for (OutputVariable outputVariable : outputVariables) {
outputVariable.fuzzyOutput().clear();
}
/*
* BEGIN: Debug information
*/
if (FuzzyLite.debug()) {
Logger logger = FuzzyLite.logger();
for (InputVariable i... | 9 |
@Override
public void execute(CommandExecutor player, String[] args)
{
try {
player.getServer().Stop();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} | 2 |
@Override
public void register() {
// TODO: register new user (which, if successful, also logs them in)
String username=this.getLoginView().getRegisterUsername();
String password1=this.getLoginView().getRegisterPassword();
String password2=this.getLoginView().getRegisterPasswordRepeat();
String usernam... | 7 |
private void displayData() {
if (this.states != null) {
System.out.println("#################################################");
System.out.println("States: " + this.states);
if (this.emissions != null) {
System.out.println("Emissions: " + this.emissions);
if (this.stateProb != null) {
System... | 8 |
public Updater(Plugin plugin, int id, File file, UpdateType type, boolean announce) {
this.plugin = plugin;
this.type = type;
this.announce = announce;
this.file = file;
this.id = id;
this.updateFolder = plugin.getServer().getUpdateFolder();
final File pluginFile... | 8 |
private int getNumberOfNeighbors(int row, int col) {
int neighborCount = 0;
for (int leftIndex = -1; leftIndex < 2; leftIndex++) {
for (int topIndex = -1; topIndex < 2; topIndex++) {
if ((leftIndex == 0) && (topIndex == 0)) continue; // skip own
... | 7 |
public int getGroupMembershipIndexByUsernameAndGroupID(int groupMembershipID, String username){
for(GroupMembership groupMembership : groupMemberships){
if(groupMembershipID == groupMembership.getGroupID() && username.equals(groupMembership.getUsername())) return groupMemberships.indexOf(groupMember... | 3 |
@Override
public void delete(Key key)
{
if (isEmpty())
return;
for (Node x = first, p = null; x != null; p = x, x = x.next)
if (key.equals(x.key))
{
N--;
if (x == first)
{
x = x.next;
first = x;
}
else
p.next = x.next;
return;
}
} | 4 |
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ChangeOfValue other = (ChangeOfValue) obj;
if (newValue == null) {
if (ot... | 9 |
public boolean func_862_a(int var1, int var2, int var3) {
return !this.field_1235_h?false:var1 == this.field_1242_a && var2 == this.field_1241_b && var3 == this.field_1240_c;
} | 3 |
public static int floodFill(int r, int c) {
int area = 1;
for (int i = 0; i < dir.length; i++)
if (r + dir[i][0] >= 0 && r + dir[i][0] < n && c + dir[i][1] >= 0
&& c + dir[i][1] < m && !used[r + dir[i][0]][c + dir[i][1]]
&& map[r + dir[i][0]][c + dir[i][1]] == '0') {
used[r + dir[i][0]][c + dir[i][... | 7 |
public Table(int playersNumber, int botsNumber)
{
players = new ArrayList<>();
deck = new Deck();
while (playersNumber-- > 0)
{
addPlayer(new Human("Player " + (playersNumber + 1)));
}
while (botsNumber-- > 0)
{
addPlayer(new Bot("Bot ... | 2 |
public PatternRecord(IXMLElement elt){
if (!elt.getName().equals("pattern"))
throw new RuntimeException("<pattern> node expected, but found "+elt.getName());
Enumeration children = elt.enumerateChildren();
while (children.hasMoreElements()){
IXMLElement e = (IXMLElement)children.nextElement();
if (e.... | 8 |
public static void main(String[] args)
{
int result = sum(new int[] {1,3,3});
System.out.println(result);
int result1 = sum(1,2,3,4);
System.out.println(result1);
} | 0 |
public static void main(String [] args){
String usage = "java mobilemedia.startMobileMediaClient --hostName <String> --portNum <String> --archName <String>\n";
String hostName=null,portNum=null;
String archName=null;
for(int i=0; i < args.length; i++){
if(args[i].equals("--hostName")){
hostName = ar... | 7 |
public int onesCount()
{
int a = bits;
int count = 0;
for(int i = 0 ; i < 32 ; i ++){
if((a & 0x1) == 0x1){
count ++ ;
}
a = a >> 1;
}
return count;
} | 2 |
public boolean checkSum(int x, int y, int z) {
if (getSquare(x + y))
if (getSquare(x - y))
if (getSquare(x + z))
if (getSquare(x - z))
if (getSquare(z + y))
if (getSquare(y - z))
r... | 6 |
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
... | 7 |
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final DefaultSchema other = (DefaultSchema) obj;
if (this.mappingType != other.mappingType && (this.mappingType... | 8 |
private boolean r_mark_suffix_with_optional_U_vowel() {
int v_1;
int v_2;
int v_3;
int v_4;
int v_5;
int v_6;
int v_7;
// (, line 159
// or, line 161
lab0: do {
... | 9 |
public static void main(String[] args) {
int x = 5;
double y = 5.332542;
// The old way:
System.out.println("Row 1: [" + x + " " + y + "]");
// The new way:
System.out.format("Row 1: [%d %f]\n", x, y);
// or
System.out.printf("Row 1: [%d %f]\n", x, y);
System.out.println(String.format("Row 1: [%d %... | 0 |
public static ConfigurationIcon iconForConfiguration(
Configuration configuration) {
if (configuration instanceof FSAConfiguration)
return new FSAConfigurationIcon(configuration);
else if (configuration instanceof PDAConfiguration)
return new PDAConfigurationIcon(configuration);
else if (configuration in... | 4 |
public void run() {
try {
InputStream in = socket.getInputStream();
// the server socket is the part that listens,
// you listen by calling serverSocket.accept();
// when someone connects to you, the server is returned.
// client initiate connections to server
BufferedReader reader = new BufferedRea... | 2 |
public void add(T value) {
if (root == null) {
root = new BinaryTree();
root.setValue(value);
amount++;
} else {
BinaryTree node = root;
while (true) {
if (root == null) {
root = new BinaryTree();
root.setValue(value);
amount++;
break;
} else {
if (value.compareTo(roo... | 7 |
@Override
public void ParseIn(Connection Main, Server Environment)
{
if (Main.Data.LoadingRoom != 0)
{
Room Room = Environment.RoomManager.GetRoom(Main.Data.LoadingRoom);
if (Room == null)
{
return;
}
if (Room.Model ==... | 5 |
public void renderSheet(int xp, int yp, SpriteSheet sheet, boolean fixed) {
if (fixed) {
xp -= xOffset;
yp -= yOffset;
}
for (int y = 0; y < sheet.HEIGHT; y++) {
int ya = y + yp;
for (int x = 0; x < sheet.WIDTH; x++) {
int xa = x + xp;
if (xa < 0 || xa >= width || ya < 0 || ya >= height) conti... | 7 |
public CobaltFont(String fontPath, String textureName)
{
glyphHeight = 16;
characters = new HashMap<Character, TextureRegion>();
Texture texture = new Texture("res/font/", textureName);
try
{
String file = "";
@SuppressWarnings("resource")
Scanner scanner = new Scanner(new File(rootDirectory ... | 7 |
private void getBipolarQuestionList() {
titleDLM.removeAllElements();
bipolarQuestionList = bipolarQuestion.getBipolarQuestionList(fileName, publicFileName, counterTeamType);
if (bipolarQuestionList.size() != 0) {
for (int i = 0; i < bipolarQuestionList.size(); i++) {
titleDLM.addElement(bipolarQuestionLis... | 7 |
public void setTitel(String titel) {
this.titel = titel;
} | 0 |
public void run() {
File processedFileDir = new File(Lunar.OUT_DIR + Lunar.ROW_DIR
+ Lunar.PROCESSED_DIR);
try {
while (true) {
File row = ImageStorage.rowFilesPoll();
if (row != null) {
BufferedReader in = new BufferedReader(new FileReader(row));
String line;
StringBuffer stmtBuffer ... | 6 |
@Override
public void show () {
System.out.println(i);
if(i != 1){
System.out.println("|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||");
universe.generateWorlds(false);
}
i++;
} | 1 |
@Override
@SuppressWarnings("RefusedBequest")
// Not calling superclass is intended, but not optimal. All buffers should in
// my current oppinion be the same buffer Collection. Right now there are some actions that are both added to the AttackData
// class and the placable itself which is weird. Bette... | 3 |
public void mouseMoved(MouseEvent e) {
int x = e.getX();
int y = e.getY();
if (state == RESIZE) {
if (rect1.contains(x, y) || rect2.contains(x, y)) {
setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
}
else {
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
... | 8 |
@Override
public void run() {
init();
long start = 0;
long elapsed = 0;
long wait = 0;
while(running){
start = System.nanoTime();
update();
render();
renderScreen();
elapsed = System.nanoTime() - start;
... | 3 |
public int turretTracker(){
int loop;
for (loop = 0; loop < turretBuilder.size(); loop++){
if (turretBuilder.get(loop).focused){
return loop;
}
}
return -1;
} | 2 |
@RequestMapping("createAndSaveDept")
@ResponseBody
public String createAndSaveDept(HttpServletRequest request, HttpServletResponse response)
{
String deptName = request.getParameter("deptName");
if (null == deptName || "".equals(deptName))
{
System.out.println("Department Name cannot be NULL!");
retur... | 2 |
public static void DisplayGreetings(Player color) {
Game.board.Display();
PrintSeparator('_');
if (color.equals(Player.white)){
System.out.println("Congrats!!!!!!!!!! White has Won.");
}
else{
System.out.println("Congrats!!!!!!!!!! Black ... | 1 |
public boolean ParseMobCommand(Mob mob,String command){
boolean found = true;
if (!this.parsePlayerCommand(mob,command)){ // mobs are players.
String token;
StringTokenizer st = new StringTokenizer(command, " ");
if (st.hasMoreTokens()) {
token = st.... | 9 |
@Test
public void testBuildCity() {
VertexLocationRequest location1 = new VertexLocationRequest(0, 0, VertexDirection.NorthWest);
BuildCityRequest request = new BuildCityRequest(0, location1);
ServerModel aGame;
aGame = gamesList.get(1);
int totalCitiesBEFORE = aGame.getMap().getCities().size();
int pla... | 5 |
public static void main(String[] args) throws InterruptedException {
new LoaderManager(LoaderManager.ServerAPI.StandAlone, null);//todo
a = new Date();
System.out.println("Starting... Running checks on every Service");
IsMinecraftDown.checkAllStatus();
while (!IsMinecraftDown.... | 3 |
@Override
public PlayerAction chooseAction(State state, IPlayer player) throws Exception {
lastAction = new PlayerAction();
lastAction.oldStake = player.getCurrentBet();
// minimum raise
double payToCall = state.getBiggestRaise() - player.getCurrentBet();
double handStrength = 0;
if (state.getStage() == ... | 6 |
public static final int task1() {
int sum = 0;
for (int i = 0; i < 1000; i++) {
if ((i % 3 == 0) || (i % 5 == 0)) {
sum += i;
}
}
return sum;
} | 3 |
public XMLConfiguration get(QcRequest request)
throws QcException, Exception
{
XMLConfiguration xmlData = null;
log.debug("Requested Url :" + request.getURL());
//Open HTTP connection to the url
HttpURLConnection conn = (HttpURLConnection) new URL(request.getUR... | 4 |
protected void doHurt(int damage, int attackDir) {
if (hurtTime > 0 || invulnerableTime > 0) return;
Sound.playerHurt.play();
//level.add(new TextParticle("" + damage, x, y, Color.get(-1, 504, 504, 504)));
health -= damage;
if (attackDir == 0) yKnockback = +6;
if (attackDir == 1) yKnockback = -6;
if (att... | 6 |
public void lisaaJonoonLaskutoimitus(Laskutoimitus lisattava) throws IllegalArgumentException, IllegalStateException {
if (lisattava == null) {
throw new IllegalArgumentException();
}
if (seuraavaArvollinen == null) {
throw new IllegalStateException();
}
... | 3 |
public void putAll( Map<? extends Double, ? extends Short> map ) {
Iterator<? extends Entry<? extends Double,? extends Short>> it =
map.entrySet().iterator();
for ( int i = map.size(); i-- > 0; ) {
Entry<? extends Double,? extends Short> e = it.next();
this.put( e.get... | 8 |
public static void update(Level lvl,long gametime){
Statistique.gametime = gametime;
if(Avatar.isDead)
Statistique.numberOfDeath++;
if(lvl.isCompleted())
Statistique.currentLvl++;
} | 2 |
@Override
public boolean propertyEquals(String key, Object test_value) {
if (propertyExists(key)) {
Object value = getProperty(key);
if (value != null) {
return value.equals(test_value);
} else {
if (test_value == null) {
return true;
} else {
return false;
}
}
} else {
ret... | 3 |
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
input.useLocale(Locale.US);
System.out.println("Inserire la lunghezza dei due cateti : ");
double cateto1 = input.nextDouble();
double cateto2 = input.nextDouble();
input.close();
double ipotenusa = Math.sqrt... | 8 |
public int getMDef(){
int value = 0;
for (Armor armor : armorList) {
if(armor != null) value += armor.getStats().getmDef();
}
return value;
} | 2 |
public boolean validChosenItemIndex() {
return getChosenItemIndex() >= 0 && getChosenItemIndex() < items.size();
} | 1 |
public void start() {
this.stop = false;
this.forceStop = false;
if (this.thread == null || !this.thread.isAlive()) {
this.thread = new Thread(this);
this.thread.setName("bt-announce");
this.thread.start();
}
} | 2 |
protected void rnt(TouchFrame frame) {
float cx = getWidth() * 0.5f;
float cy = getHeight() * 0.5f;
float tx1 = frame.getLocalX();
float ty1 = frame.getLocalY();
float tx0 = frame.getLastLocalX();
float ty0 = frame.getLastLocalY();
float r = (float)Math.sqrt((tx0 - cx) * (tx0 -... | 5 |
public void printTopologyOrder(Graph<T> g) throws EdgeVerticeNotFound{
DFSSearch(g);
ArrayList<Integer> result=new ArrayList<Integer>();
ArrayList<Integer> newInput=new ArrayList<Integer>();
for(int i:clock2){
newInput.add(i);
}
while(result.size()!=clock2.length){
int max=0;
int maxIndex=-1;
... | 5 |
public void initMaze() {
for (int i = 0; i < newRun.BOARD_MAX; i++) {
for (int j = 0; j < newRun.BOARD_MAX; j++) {
board[i][j].setBorder(findBorder(j, i, true));
}
}
} | 2 |
public static GeneralValidator isGreaterThanEqualsTo() {
return GREATER_THAN_EQUALS_TO_VALIDATOR;
} | 0 |
@Override
public void run() {
mainLoop:
while (true) {
// update running status
for (int i = 0; i < maxClients; i++) {
handshaked[i] = listeners[i].handshakesFinished();
running[i] = listeners[i].clientRunning();
... | 7 |
public SchachbrettFeld getKoenigPosition(boolean farbe) // figurFarbe ist true für schwarz
{
SchachbrettFeld feld = null;
for (SchachbrettFeld f : this.felder) {
if (f.figur != null && f.figur.getClass().getSimpleName().equals("Koenig") && f.figur.figurFarbe == farbe) {
f... | 4 |
private Document initDocument(String responseContent, Document document, boolean namespaceAware) {
if(document == null) {
try {
final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(namespaceAware);
final DocumentBuilder builder = factory.newDocumentBuil... | 5 |
public boolean buttonDown(int button) {
return poll[button - 1] == MouseState.ONCE
|| poll[button - 1] == MouseState.PRESSED;
} | 1 |
void playSound(boolean capturing) {
if (tile != null) {
if (tile instanceof Bear)
AUDIO_BEAR.play();
else if (tile instanceof Duck)
AUDIO_DUCK.play();
else if (tile instanceof Fox)
AUDIO_FOX.play();
else if (tile instanceof Hunter) {
if (capturing)
A... | 9 |
private void DisableOther(CommandSender sender, String[] args) {
if (args.length < 2 && extraauth.DB.Contains(args[1])) {
send(sender, extraauth.Lang._("Command.NoPlayer"));
return;
}
final PreUnregistrationEvent event = new PreUnregistrationEvent(
new PlayerInformation(args[1]));
ex... | 6 |
private void trSort (final int ISA, final int n, final int depth) {
final int[] SA = this.SA;
int first = 0, last;
int t;
if (-n < SA[0]) {
TRBudget budget = new TRBudget (n, trLog (n) * 2 / 3 + 1);
do {
if ((t = SA[first]) < 0) {
first -= t;
}
else {
last = SA[ISA + t] + 1;
... | 6 |
public static void main(String[] args) {
// TODO Auto-generated method stub
//程序自带数组
int[] systemArray = {23,12,14,2,5,7,46,130,25,3};
int sy[] = new int[10];
//System.out.println(sy.length +" " +systemArray.length);
System.out.println("请选择待排序数组的产生类型");
System.out.println("1.程序自定义数据2.随机产生3.用户输入4.退出");
S... | 4 |
private String updateTask(String taskName, String newName, String startTime,
String endTime) {
backUp();
ArrayList<Task> found = searchKeyword(taskName);
for(int i = 0; i < found.size(); i++){
resetTaskKeyword(found.get(i));
}
if (!(found.get(0).getTaskName().equalsIgnoreCase("searchFound"))){
re... | 7 |
@Override
public void update(Observable o, Object arg) {
if (presenter.getState().getStatus().equals("Discarding")){
initDiscardValues();
if(totalResources>=7 && !hasDiscarded) { // !hasDiscarded = issue 209 fix
discardView.showModal();
updateResourceValues();
}
else if(totalResources<7 || hasDis... | 8 |
public static void dcopy_f77 (int n, double dx[], int incx, double
dy[], int incy) {
double dtemp;
int i,ix,iy,m;
if (n <= 0) return;
if ((incx == 1) && (incy == 1)) {
// both increments equal to 1
m = n%7;
for (i = 1; i <= m; i++) {
d... | 8 |
private void setValues(boolean config) {
if (!config) {
return;
}
try
{
mConfig.addDefault("MySQL.Hostname", "localhost");
mConfig.addDefault("MySQL.Username", "root");
mConfig.addDefault("MySQL.Password", "password");
mConfig.addDefault("MySQL.Database", "paintballpvp");
mConfig.addDefaul... | 2 |
public void setDAO(String daoLine) {
if (daoLine.equals("Mock")) {
dao = new MockDAO();
}
else if (daoLine.equals("MySQL")) {
dao = new MySQLDAO();
}
} | 2 |
public String getTipoPago(String tipo){
if (tipo.equals("Efectivo")){
return "E";
} else if (tipo.equals("Vale")){
return "V";
} else if(tipo.equals("Voucher")){
return "O";
} else if(tipo.equals("Cuenta de Cobro")){
return "C";
} e... | 6 |
protected SortKeyDefinition[] makeSortKeys() throws XPathException {
// handle sort keys if any
int numberOfSortKeys = 0;
AxisIterator kids = iterateAxis(Axis.CHILD);
while (true) {
Item child = kids.next();
if (child == null) {
break;
... | 9 |
public void testConstructor_ObjectStringEx2() throws Throwable {
try {
new YearMonthDay("T10:20:30.040+14:00");
fail();
} catch (IllegalArgumentException ex) {
// expected
}
} | 1 |
private static String initialise(Token currentToken,
int[][] expectedTokenSequences,
String[] tokenImage) {
String eol = System.getProperty("line.separator", "\n");
StringBuffer expected = new StringBuffer();
int maxSize = 0;
for (int i = 0; i < expe... | 8 |
public static void main(String[] args) {
JPopupMenu jp = new JPopupMenu();
jp.add(new JMenuItem("Menu 1"));
JFrame frame = new JFrame("Hello There");
FileSystemView fsv = new SingleRootFileSystemView(new File("C:/Watcher"));
//new File DirectoryRestrictedFileSystemView(new File("C:\\"));
J... | 2 |
public void die(){
} | 0 |
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
if (mDragDockable != null && mDragInsertIndex >= 0) {
Insets insets = getInsets();
int count = getComponentCount();
int x;
if (mDragInsertIndex < count) {
Component child = getComponent(mDragInsertIndex);
if (child i... | 6 |
private void pickCustomColor() {
Color c = JColorChooser.showDialog(SwingUtilities.getAncestorOfClass(Dialog.class, this), "Select Color", lastSelection != null ? ((ColorValue) lastSelection).color : null);
if (c != null) {
setSelectedColor(c);
} else if (lastSelection != null) {
... | 3 |
public void setAccountId(String accountId) {
this.accountId = accountId;
} | 0 |
@Override
public String execute(SessionRequestContent request) throws ServletLogicException {
String page = (String)request.getSessionAttribute(JSP_PAGE);
if (page == null) {
page = ConfigurationManager.getProperty("path.page.index");
request.setSessionAttribute(JSP_PAGE, pag... | 4 |
void assignPrefixes() {
for (Map.Entry<String, Map<String, PrefixUsage>> entry : namespacePrefixUsageMap.entrySet()) {
String ns = entry.getKey();
if (!ns.equals("") && !ns.equals(WellKnownNamespaces.XML)) {
Map<String, PrefixUsage> prefixUsageMap = entry.getValue();
if (prefix... | 9 |
public static String readString(ByteBuffer buffer)
{
// Check that the buffer contains a short with the length of the string
if (buffer.remaining() < 2) {
return null;
}
// The first 2 bytes is the string length.
int stringLength = buffer.getShort();
// Check that the buffer contains the entire st... | 3 |
public void setRandCode(String randCode) {
this.randCode = randCode;
} | 0 |
public static void setLogLevel(int logLevel) {
logLevel = logLevelEquivalents.get(logLevel) == null ? 4 : logLevelEquivalents.get(logLevel);
org.apache.log4j.Logger.getRootLogger().setLevel(Level.toLevel(logLevel));
} | 1 |
public void sql_change_acct_info(int choice) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
Statement s = GUI.con.createStatement();
if(choice == 1)
{
s.executeUpdate ("UPDATE all_users SET Hierarchy = \'"+c... | 6 |
private static Move BackwardRightForWhite(int r, int c, Board board){
Move backwardRight = null;
if(r>=1 && c<Board.cols-1 &&
board.cell[r-1][c+1] == CellEntry.empty
)
{
backwardRight = new Move(r,c,r-1,c+1);
}
return backwardRight;
} | 3 |
@Override
public void keyReleased(KeyEvent e) {
int keyCode = e.getKeyCode();
// Controls for player 1
if(keyCode == KeyEvent.VK_W) {
GameMaster.player.moveUp = false;
}
if(keyCode == KeyEvent.VK_S) {
GameMaster.player.moveDown = false;
}
// Controls for player 2
if(keyCode == KeyEvent.VK... | 4 |
public void setTaille(int taille) {
this.taille = taille;
} | 0 |
public int getNextIncompleteIndex(int row, int col)
{
boolean notFound = true ;
int len = translations.size() ;
int t = row ;
int back = -1 ;
while ( (t < len) && notFound)
{
TMultiLanguageEntry dummy = (TMultiLanguageEntry) translations.get(t) ;
String str = dummy.getTrans... | 4 |
public void testByteFloatConvert() {
byte[] data = ByteUtils.floatToByte(1.23f);
float f = ByteUtils.byte2Float(data);
assertEquals(1.23f, f, 0);
} | 0 |
public static void soloDecimales(JTextField Texto)
{
Texto.addKeyListener(new KeyAdapter()
{
@Override
public void keyTyped(KeyEvent e)
{
char c = e.getKeyChar();
if(!Character.isDigit(c) && Character.isLetter(c))
{... | 2 |
public void mouseMoved(MouseEvent e) {
if (searchPage == null || head2tail || peaks1 == null) {
return;
}
// ポップアップが表示されている場合
if ((selectPopup != null && selectPopup.isVisible())
|| contextPopup != null && contextPopup.isVisible()) {
return;
}
cursorPoint = e.getPoint();
P... | 7 |
private Map splitFilename(String filename, PodCastFileNameFormat format, Map parentProps)
{
Map returnValues = new HashMap();
//Allow access to parent props in messages.
returnValues.putAll(parentProps);
returnValues.put(PodCastFileProperties.FILE_VALID, Boolean.TRUE);
//If... | 9 |
@Override
protected void keyboardFocusLost() {
if (state != null) {
state.keyboardFocusLost();
}
} | 1 |
private List<Edge> getEdgesTriees() {
ArrayList<Edge> edgesTriees = new ArrayList<>();
Integer p;
for (int i = 0; i < vertex.length; i++) {
for (int j = 0; j < vertex.length; j++) {
p = this.edges[i][j];
if (p != null) {
edgesTriees... | 3 |
public static void test2(){
try
{
InputStream returnStream = null;
HttpsURLConnection conn = null;
int connectTimeout=15000;
int readTimeout=30000;
String requestMethod="GET";
String charEncode="utf-8";
String url="https... | 9 |
public void setId(Integer id) {
this.id = id;
} | 0 |
public Pyramid4(int side)
{
setSide(side);
base = DimensionalTrasform.scale(side, base);
coloredEx = new ArrayList<Excel>();
setColoredExes();
} | 0 |
@Override
public PermissionType getType() {
return PermissionType.GROUP;
} | 0 |
public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) {
final ChatColor yellow = ChatColor.YELLOW;
final ChatColor red = ChatColor.RED;
final ArrayList<Player> cMagic = CrazyFeet.CrazyMagic;
if(args.length < 1) {
if(sender instanceof Player) {
Player player... | 9 |
private void startNextTrial() {
gui.showCursor();
if (!currentTrialGroup.isEmpty()) {
if (experimentPhase == PHASE_XP) {
globalTrialNb++;
}
currentTrial = currentTrialGroup.remove(0);
showPreTrialBlankScreen();
} else {
//all trials have been shown, ask participant to complete the pattern ... | 2 |
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.