answer stringlengths 17 10.2M |
|---|
package mm.tstring.impl;
import mm.tstring.IFile;
import mm.tstring.IFileProvider;
import mm.tstring.ITStringManager;
import mm.tstring.ITstringParser;
import mm.tstring.objects.FileTString;
import mm.tstring.objects.TString;
import mm.tstring.util.Util;
import java.util.*;
import java.util.logging.Logger;
public class... |
package net.cvcg.ian.tictactoe;
import java.util.Random;
public class TicTacToeBoard {
private Player[][] board;
public TicTacToeBoard() {
board = new Player[3][3]; // default initial value is null
}
public void move(Player player, int x, int y) {
assert player != null;
board[x][... |
package cn.webfuse.framework.core.kit.concurrent.threadpool;
import cn.webfuse.framework.core.kit.concurrent.JstackKits;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
im... |
package net.probossgamers.turtlemod;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity... |
package net.quedex.api.common;
import net.quedex.api.market.StreamFailureListener;
import org.java_websocket.client.DefaultSSLWebSocketClientFactory;
import org.java_websocket.client.DefaultWebSocketClientFactory;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.drafts.Draft_17;
import org.ja... |
package net.sf.jabref.model.entry;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import java.beans.VetoableChangeSupport;
import java.text.DateFormat;
import java.text.FieldPosition;
import java.text.ParseException;
import java.text.ParsePositi... |
package org.animotron.manipulator;
import org.animotron.Executor;
import org.animotron.io.PipedInput;
import org.animotron.io.PipedOutput;
import org.animotron.marker.Marker;
import org.animotron.statement.Statement;
import org.animotron.statement.Statements;
import org.animotron.statement.operator.Evaluable;
import or... |
package org.dita.dost.writer;
import org.dita.dost.exception.DITAOTException;
import org.dita.dost.log.MessageUtils;
import org.dita.dost.util.Job.FileInfo;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sa... |
package org.jbake.template;
import de.neuland.jade4j.Jade4J;
import de.neuland.jade4j.JadeConfiguration;
import de.neuland.jade4j.exceptions.JadeCompilerException;
import de.neuland.jade4j.filter.CDATAFilter;
import de.neuland.jade4j.filter.CssFilter;
import de.neuland.jade4j.filter.JsFilter;
import de.neuland.jade4j.m... |
package org.jenkinsci.plugins.ease;
import java.io.IOException;
import java.io.PrintStream;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import com.apperian.api.ApperianApi;
import com.apperian.api.ConnectionExceptio... |
package org.jenkinsci.plugins.koji;
import org.apache.xmlrpc.XmlRpcException;
import org.jenkinsci.plugins.koji.xmlrpc.MyTypeFactory;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory;
import java.net.Malfo... |
package org.jenkinsci.plugins.koji;
import org.apache.xmlrpc.XmlRpcException;
import org.jenkinsci.plugins.koji.xmlrpc.MyTypeFactory;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory;
import java.net.Malfo... |
package org.lightmare.utils.reflect;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.... |
package org.markdownwriterfx.editor;
import static javafx.scene.input.KeyCode.*;
import static javafx.scene.input.KeyCombination.*;
import static org.fxmisc.wellbehaved.event.EventPattern.keyPressed;
import static org.fxmisc.wellbehaved.event.InputMap.consume;
import static org.fxmisc.wellbehaved.event.InputMap.sequenc... |
package org.ndexbio.model.object.network;
import java.util.ArrayList;
import java.util.List;
import org.ndexbio.model.object.NdexProperty;
import org.ndexbio.model.object.PropertiedObject;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Node extends... |
package org.nem.beta.utility;
import org.apache.http.client.methods.*;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.*;
import org.apache.http.util.EntityUtils;
import org.nem.core.crypto.PublicKey;
import org.nem.core.model.Address;
import org.nem.core.model.FeeUnitAwareTransactionFeeC... |
package org.twdata.pkgscanner;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.net.URL;
import java.net.URISyntaxException;
import java.util.*;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.io.IOException;
import java.io.File;
/**
* Does the a... |
package permafrost.tundra.time;
import javax.xml.datatype.DatatypeConstants;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.Duration;
import javax.xml.datatype.DatatypeConfigurationException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.... |
package redis.clients.jedis;
import static redis.clients.jedis.Protocol.Keyword.MESSAGE;
import static redis.clients.jedis.Protocol.Keyword.PMESSAGE;
import static redis.clients.jedis.Protocol.Keyword.PSUBSCRIBE;
import static redis.clients.jedis.Protocol.Keyword.PUNSUBSCRIBE;
import static redis.clients.jedis.Protocol... |
package seedu.task.logic.commands;
import seedu.task.commons.core.EventsCenter;
import seedu.task.commons.events.ui.ExitAppRequestEvent;
//@@author A0146789H
/**
* Terminates the program.
*/
public class ExitCommand extends Command {
public static final String[] COMMAND_WORDS = new String[] {"exit", "quit"};
... |
package seedu.task.logic.commands;
/**
* Lists all tasks in the task manager to the user.
*/
//@@author A0142360U
public class RedoCommand extends Command {
public static final String COMMAND_WORD = "redo";
public static final String SHORTCUT = "r";
public static final String MESSAGE_SUCCESS = "Your Undo ... |
package seedu.todo.controllers;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import com.joestelmach.natty.DateGroup;
import com.joestelmach.natty.Parser;
import se... |
package seedu.todo.controllers;
import java.util.Arrays;
import seedu.todo.ui.UiManager;
import seedu.todo.ui.views.HelpView;
/**
* Controller to show commands help.
*
* @author louietyj
*
*/
public class HelpController implements Controller {
private static String NAME = "Help";
private static String DESC... |
package taro.spreadsheet.model;
import static com.google.common.collect.Maps.*;
import static taro.spreadsheet.model.SpreadsheetCellStyle.DEFAULT;
import java.util.Map;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.ClientAnchor;
import org.apac... |
package tigase.xmpp.impl.roster;
import tigase.util.TigaseStringprepException;
import tigase.util.XMPPStringPrepFactory;
import tigase.xml.Element;
import tigase.xml.XMLUtils;
import tigase.xmpp.JID;
import tigase.xmpp.XMPPResourceConnection;
import static tigase.xmpp.impl.roster.RosterAbstract.SubscriptionType;
import... |
package uk.ac.ebi.phenotype.chart;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
import uk.ac.ebi.phenotype.pojo.SexType;
import uk.ac.ebi.phenotype.pojo.ZygosityType;
/**
* class to keep static variab... |
package org.codehaus.groovy.control;
import org.codehaus.groovy.control.messages.ExceptionMessage;
import org.codehaus.groovy.control.messages.Message;
import org.codehaus.groovy.control.messages.SyntaxErrorMessage;
import org.codehaus.groovy.control.messages.WarningMessage;
import org.codehaus.groovy.syntax.SyntaxExce... |
package org.smbarbour.mcu.util;
// Credit for this class goes to Peter Koeleman, who graciously provided the initial code.
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import ... |
package org.smbarbour.mcu.util;
// Credit for this class goes to Peter Koeleman, who graciously provided the initial code.
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import ... |
package de.matchbox.client;
import com.google.gson.Gson;
import de.matchbox.client.forms.FrmMain;
import de.matchbox.communication.MessageObject;
import de.matchbox.communication.StandardGsonBuilder;
import de.matchbox.communication.contentobjects.ErrorContentObject;
import de.matchbox.communication.contentobjects.serv... |
package org.commcare.util.screen;
import org.commcare.cases.entity.EntityUtil;
import org.commcare.cases.query.QueryContext;
import org.commcare.cases.query.queryset.CurrentModelQuerySet;
import org.commcare.modern.session.SessionWrapper;
import org.commcare.session.CommCareSession;
import org.commcare.suite.model.Acti... |
package org.commcare.util.screen;
import org.commcare.cases.entity.EntityUtil;
import org.commcare.cases.query.QueryContext;
import org.commcare.cases.query.queryset.CurrentModelQuerySet;
import org.commcare.modern.session.SessionWrapper;
import org.commcare.session.CommCareSession;
import org.commcare.suite.model.Acti... |
package com.alcoapps.actionbarextras;
import java.lang.reflect.Method;
import java.util.HashMap;
import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.KrollModule;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.titanium.TiApplication;
... |
package com.googlecode.jmxtrans.model.output;
import com.googlecode.jmxtrans.model.Query;
import com.googlecode.jmxtrans.model.Result;
import com.googlecode.jmxtrans.util.BaseOutputWriter;
import com.googlecode.jmxtrans.util.JmxUtils;
import com.googlecode.jmxtrans.util.ValidationException;
import java.io.ByteArrayOutp... |
package com.interview.multithreaded;
import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.ut... |
package com.jayantkrish.jklol.ccg.lexinduct;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;... |
package com.jwetherell.algorithms.data_structures;
import java.util.ArrayList;
import java.util.List;
public class SkipList<T extends Comparable<T>> {
private int size = 0;
private List<List<ExpressNode<T>>> lanes = null;
private Node<T> head = null;
public SkipList() { }
private int determineNumber... |
package com.tronacademy.phantom.utils;
import android.view.View;
/**
* <p>
* PWidgetListener.java
* </p>
*
* <p>
* Callbacks for events on ControlInputs.
* </p>
*
* @author George Xian
* @since 2015-03-22
*
*/
public interface ControlInputListener {
/**
* Called when a sub-channel value of a Phanto... |
package org.ow2.proactive.utils;
import java.io.IOException;
import java.io.Writer;
/**
* BoundedStringWriter that keeps a limited amount (maxLength) of chars into
* a sliding (elements are added and removed from the head) buffer and always prints them to stdout.
* It ensures the size is never greater than the maxim... |
package dr.evomodel.branchratemodel;
import dr.evolution.tree.NodeRef;
import dr.evolution.tree.Tree;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.tree.TreeParameterModel;
import dr.evomodelxml.DiscretizedBranchRatesParser;
import dr.inference.distribution.ParametricDistributionModel;
import dr.inference.model... |
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io... |
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io... |
package org.batfish.question;
import java.util.Map;
import java.util.Map.Entry;
import org.batfish.main.BatfishException;
import org.batfish.main.BatfishLogger;
import org.batfish.main.Settings;
public class Assertion implements Statement {
private final String _assertionText;
private final BooleanExpr _expr;
... |
package phrase;
import gnu.trove.TIntArrayList;
import io.FileUtil;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;
import phrase.Corpus.Edge;
public class Agree {
private PhraseCluster model1;
private C2F model2;
Corpus c;
private int K,n_phrases, n_w... |
package org.semtag.core.model;
import org.semtag.SemTagException;
import org.semtag.core.dao.ConceptDao;
import org.semtag.core.dao.DaoException;
import org.semtag.core.model.concept.Concept;
import java.sql.Timestamp;
/**
* @author Ari Weiland
*/
public class TagApp implements Similar<TagApp> {
private final lon... |
package org.spine3.server.reflect;
import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableSet;
import com.google.protobuf.Message;
import org.spine3.Internal;
import javax.annotation.CheckReturnValue;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.la... |
package org.croudtrip.trips;
import com.google.common.collect.Lists;
import org.croudtrip.api.account.User;
import org.croudtrip.api.directions.Route;
import org.croudtrip.api.directions.RouteLocation;
import org.croudtrip.api.trips.JoinTripRequest;
import org.croudtrip.api.trips.JoinTripStatus;
import org.croudtrip.ap... |
package be.ibridge.kettle.core.dialog;
import java.util.ArrayList;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.ShellAdapter;
i... |
package org.slc.sli.api.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
import com.mongodb.Comma... |
package cyclops.control;
import java.util.Iterator;
import java.util.Objects;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supp... |
// Sep 14, 2000:
// Fixed comments to preserve whitespaces and add a line break
// when indenting. Reported by Gervase Markham <GRM@dataconnection.com>
// Sep 14, 2000:
// Fixed serializer to report IO exception directly, instead at
// the end of document processing.
// Reported by Patrick Higgins <phiggins@transz... |
package org.opencms.gwt.client.ui.tree;
import org.opencms.gwt.client.ui.CmsList;
import org.opencms.gwt.client.ui.CmsSimpleListItem;
import org.opencms.gwt.client.ui.css.I_CmsImageBundle;
import org.opencms.gwt.client.ui.css.I_CmsLayoutBundle;
import org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.I_CmsListTreeCss;
im... |
package com.jediterm.terminal.display;
import com.google.common.collect.Lists;
import com.jediterm.terminal.StyledTextConsumer;
import com.jediterm.terminal.TextStyle;
import org.apache.log4j.Logger;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
... |
package monopoly.gui;
import javax.swing.JPanel;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Dimension;
import java.awt.Color;
import java.util.HashMap;
import monopoly.jeu.Case;
enum CouleurGroupe {
VIOLET (251, 73, 123),
BLEU_ROI (2, 79, 149),
BLEU_CIEL (1, 176, 243),
... |
package com.markehme.factionsalias.support;
import java.util.List;
/**
* Just our Support Base. Nothing fancy.
*
* @author MarkehMe<mark@markeh.me>
*
*/
public interface SupportBase {
public void add(List<String> aliases,
Boolean requiresFactionsEnabled,
Boolean requiresIsPlayer,
... |
package com.mcbans.firestar.mcbans.pluginInterface;
import java.util.HashMap;
import org.bukkit.ChatColor;
import com.mcbans.firestar.mcbans.bukkitInterface;
import com.mcbans.firestar.mcbans.request.jsonHandler;
public class ban extends Thread {
private bukkitInterface MCBans;
private String PlayerName = null;... |
package com.smartnsoft.droid4me.app;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityGroup;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Camera;
import android.graphics.Matrix;
import android.os.Bundle;
imp... |
package com.twolattes.json;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.json.JSONException;
import org.json.JSONObject;
class PolymorphicEntityDescriptor<T> implements EntityDescriptor<T> {
/**
* Subclasses' descriptors used if the described entity is ... |
package burlap.behavior.stochasticgame;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import burlap.behavior.singleagent.Policy;
import burlap.datastructures.HashedAggregator;
import burlap.oomdp.core.AbstractGroundedAction;
import burlap.oomdp.core.State;
import burlap.oomdp.stochasticgames.... |
package ca.eandb.jmist.framework.material;
import ca.eandb.jmist.framework.Intersection;
import ca.eandb.jmist.framework.ScatterRecorder;
import ca.eandb.jmist.framework.ScatterResult;
import ca.eandb.jmist.framework.color.Color;
import ca.eandb.jmist.framework.color.ColorModel;
import ca.eandb.jmist.framework.color.Co... |
package ca.eandb.jmist.framework.material;
import ca.eandb.jmist.framework.Painter;
import ca.eandb.jmist.framework.ScatteredRay;
import ca.eandb.jmist.framework.SurfacePoint;
import ca.eandb.jmist.framework.color.Color;
import ca.eandb.jmist.framework.color.Spectrum;
import ca.eandb.jmist.framework.color.WavelengthPac... |
package com.SemNomeAindaCartolaFC.Athletes;
import java.util.ArrayList;
public class AthletesContainer {
//TODO: Add save file formatter to save results.
private String savePath;
private ArrayList<Athlete> athletes = new ArrayList<Athlete>();
public Athlete[] getAthletes() {
return (Athlete[]) t... |
package com.apigee.appservices.android_template;
import java.util.HashMap;
import java.util.Map;
import org.usergrid.android.client.Client;
import org.usergrid.android.client.callbacks.ApiResponseCallback;
import org.usergrid.android.client.response.ApiResponse;
import android.os.Bundle;
import android.app.Activity;
im... |
package com.dmdirc.addons.ui_swing.dialogs;
import com.dmdirc.addons.ui_swing.UIUtilities;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.event.KeyEvent;
import javax.swing.JButton;
/**
* Dialog key listener.
*/
public class DialogKeyListener implements KeyEventDispatcher {
... |
package com.esotericsoftware.yamlbeans.emitter;
import java.io.IOException;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
/** @author <a href="mailto:misc@n4te.com">Nathan Sweet</a>
* @author <a href="mailto:ola.bini@ki.se">Ola Bini</a> */
class EmitterWriter {
private static final Map<Int... |
package com.jcwhatever.bukkit.arborianquests.scripting;
import com.jcwhatever.bukkit.arborianquests.ArborianQuests;
import com.jcwhatever.bukkit.arborianquests.items.ScriptItem;
import com.jcwhatever.bukkit.generic.items.floating.FloatingItem;
import com.jcwhatever.bukkit.generic.items.floating.FloatingItem.PickupHandl... |
package com.jwetherell.algorithms.data_structures;
public class LinkedList<T> {
private Node<T> head = null;
private Node<T> tail = null;
private int size = 0;
public LinkedList() { }
public LinkedList(T[] nodes) {
for (T n : nodes) {
add(new Node<T>(n));
}
}
publ... |
package com.ldimitrov.burnmessenger;
import android.app.Application;
import com.ldimitrov.burnmessenger.activities.MainActivity;
import com.ldimitrov.burnmessenger.activities.R;
import com.ldimitrov.burnmessenger.util.ParseConstants;
import com.parse.Parse;
import com.parse.ParseInstallation;
import com.parse.ParseUser... |
package com.mebigfatguy.fbcontrib.detect;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Deque;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import... |
package com.mebigfatguy.fbcontrib.detect;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Deque;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
impor... |
package com.syncleus.dann.associativemap;
import com.syncleus.dann.*;
import java.util.Hashtable;
import java.util.Set;
public class BrainAssociativeMap extends AssociativeMap
{
private Brain brain;
private int dimentions;
private Hashtable<Neuron, NetworkNodeAssociativeNode> neurons = new Hashtable<Neuron,... |
package edu.colorado.csdms.wmt.client.data;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
public class ModelJSO extends JavaScriptObject {
// Overlay types always have protected, zero-arg constructors.
protected ModelJSO() {
}
/**
* Gets the name of the model,... |
package me.nallar.tickthreading.minecraft;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import me.nallar.tickthreading.Log;
im... |
package io.hawt.jmx;
import javax.management.openmbean.CompositeData;
import javax.management.openmbean.CompositeDataSupport;
import javax.management.openmbean.TabularData;
import javax.management.openmbean.TabularDataSupport;
import java.util.List;
import java.util.Map;
import io.hawt.util.MBeanSupport;
/**
* Dummy v... |
package com.buddycloud.http;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnKeyListener;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import... |
package de.jungblut.ner;
import gnu.trove.list.array.TIntArrayList;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.google.common.collect.HashMultiset;
import de.jungblut.distance.CosineDistance;
import de.jungblut.distance.DistanceMeasurer;
import de.jungblut.distance.SimilarityM... |
package com.baidu.cafe.local;
import java.util.ArrayList;
import java.util.concurrent.locks.LockSupport;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.view... |
package fi.hu.cs.titokone;
import fi.hu.cs.ttk91.*;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.text.ParseException;
import java.util.ResourceBundle;
import java.util.logging.Logger;
/** Control class offers the extenal interface to titokone. Using the
methods of th... |
package alma.jconttest.ContainerServicesTesterImpl;
import java.util.Random;
import java.util.logging.Level;
import org.omg.CORBA.StringHolder;
import edu.emory.mathcs.backport.java.util.concurrent.ExecutorService;
import edu.emory.mathcs.backport.java.util.concurrent.Executors;
import edu.emory.mathcs.backport.java.ut... |
package dr.evomodel.continuous;
import dr.evolution.tree.Tree;
import dr.evolution.tree.NodeRef;
import dr.xml.*;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.tree.TreeStatistic;
import dr.inference.model.Statistic;
/**
* @author Marc Suchard
* @author Philippe Lemey
*/
public class TreeDispersionStatistic ... |
package com.m7md.controllers;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
public class Student implements Serializable {
@NotNull
@Size(min = 2)
private String name;
@Size(min = 2, max = 4)
private String age;
public String ... |
package org.eclipse.birt.report.designer.data.ui.util;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.birt.report.designer.core.model.SessionHa... |
package com.opencms.file;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import java.text.*;
import java.security.*;
import java.lang.reflect.*;
import org.w3c.dom.*;
import com.opencms.template.*;
import com.opencms.core.*;
public class CmsRegistry extends A_CmsXmlContent implements I_CmsRegistry {
... |
package gameEngine.view.gameFrame.cheatCode;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.table.DefaultTableModel;
import net.miginfocom.swing.MigLay... |
package com.opencms.file;
import com.opencms.core.I_CmsConstants;
import com.opencms.flex.util.CmsUUID;
import java.io.Serializable;
/**
* This is the base class for all resources in OpenCms.<p>
*
* @author Alexander Kandzior (a.kandzior@alkacon.com)
* @author Michael Emmerich (m.emmerich@alkacon.com)
* @author Th... |
package com.ecyrd.jspwiki.plugin;
import com.ecyrd.jspwiki.*;
import junit.framework.*;
import java.io.*;
import java.util.*;
public class PluginManagerTest extends TestCase
{
public static final String NAME1 = "Test1";
Properties props = new Properties();
WikiEngine engine;
WikiContext context;
Plu... |
package edu.wpi.first.wpilibj.templates.subsystems;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
* @author AtidSpikes
*/
public class Arm extends Subsystem {
private Relay spike;
private DigitalInput up, down;
// Put ... |
package com.exedio.cope.instrument;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.lang.reflect.Modifier;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
impor... |
package com.rtg.launcher;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import com.rtg.util.cli.CFlags;
import com.rtg.util.cli.Flag;
import com.rtg.util.diagnostic.Diagnostic;
import com.rtg.util.io.AdjustableGZIPOutputStream;
/**
* A global ... |
package com.simpleplugin;
import com.intellij.formatting.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.TokenType;
import com.intellij.psi.formatter.common.AbstractBlock;
import com.simpleplugin.psi.SimpleTypes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import ja... |
package in.ac.lnmiit.wimic;
import android.app.ActionBar;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.DhcpInfo;
import android.net.Netw... |
package com.urd.triple.core;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import com.urd.triple.core... |
package eu.europa.ec.markt.dss.validation102853.xades;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.Ha... |
package io.geeteshk.hyper.widget;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.v7.ap... |
package net.ficbook.gfoxsh;
import android.app.Activity;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.os.Build;
import android.view.View;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.D... |
package net.squanchy.support.lang;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public final class Lists {
public static <T, R> List<R> map(List<T> list, Func1<T, R> function) {
if (list == null || list.isEmpty()) {
return Collections.... |
package org.intermine.bio.dataconversion;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.intermine.objectstore.query.ConstraintOp;
import org.intermine.o... |
package top.lightblog.helper;
public class StatusCode {
public static boolean switchStatus = false;
public static boolean blinkMod = false; //true false
public static final int BLINK_ON = 1;
public static final int BLINK_OFF = 2;
} |
package vn.mbm.phimp.me.image;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import and... |
package org.commcare.models;
import android.util.Log;
import org.commcare.CommCareApplication;
import org.commcare.android.database.user.models.FormRecord;
import org.commcare.android.database.user.models.SessionStateDescriptor;
import org.commcare.core.interfaces.RemoteInstanceFetcher;
import org.commcare.models.datab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.