text stringlengths 14 410k | label int32 0 9 |
|---|---|
public NodoG[] buscarHijos(boolean white, Board tablero) {
ArrayList<Board> listaTableros = new ArrayList<>();
ArrayList<Integer> ies = new ArrayList<>();
ArrayList<Integer> js = new ArrayList<>();
ArrayList<Integer> mov = new ArrayList<>();
for (int a = 0; a < size; a++) {
... | 9 |
static public void random(CPLayer l, CPRect r) {
int[] data = l.getData();
CPRect rect = l.getSize();
rect.clip(r);
Random rnd = new Random();
for (int j = rect.top; j < rect.bottom; j++) {
for (int i = rect.left; i < rect.right; i++) {
data[i + j * l.getWidth()] = rnd.nextInt();
}
}
} | 2 |
public static void main(String[] args) throws InterruptedException {
Tetris tetris = new Tetris();
Kayttoliittyma kayttoliittyma = new Kayttoliittyma(tetris);
SwingUtilities.invokeLater(kayttoliittyma);
PegasusAI ai = new PegasusAI(tetris);
tetris.lisaaAI(ai);
wh... | 1 |
public List<Double> getMaxValueList() {
List<Double> result= new ArrayList<Double>();
double[] values= this.getMaxValueArray();
for (int i= 0; i< values.length; ++i) {
result.add(Double.valueOf(values[i]));
}
return result;
} | 1 |
private ARG xmlToARG(org.w3c.dom.Document doc) throws FileParseException {
Node documentRoot = doc.getDocumentElement();
Node topLevelChild = documentRoot.getFirstChild();
//Search for (the first) element
while(topLevelChild != null) {
if (topLevelChild.getNodeType() == Node.ELEMENT_NODE && topLevelChil... | 8 |
int sum1toN(int n){
int sum=0;
for(int i=0;i<=n;i++){
sum+=i;
}
return sum;
} | 1 |
private int readTypeTable
(ResTable_Type typeTable,
byte[] data,
int offset) throws IOException {
typeTable.id = readUInt8(data, offset);
offset += 1;
typeTable.res0 = readUInt8(data, offset);
if (typeTable.res0 != 0)
throw new RuntimeException("File format error, res0 was not zero");
offset +=... | 2 |
public synchronized void deleteWay(int pos, long wayId){
if (ways.size()>pos)
ways.remove(wayId);
} | 1 |
public String convertToString(){
StringBuilder builder = new StringBuilder();
for(Record record: log.getRecords()){
builder.append(record.toString());
builder.append(NewL);
}
return builder.toString();
} | 1 |
private void factor() {
// System.out.println("factor " + data.get(0).getTokenType().name() + ":" + data.get(0).getValue());
Token t = popToken();
switch(t.getTokenType()) {
case SCONSTANT:
case SSTRING:
case SFALSE:
case STRUE:
// constant();
break;
case SIDENTIFIER:
pushToken(t);
variable()... | 7 |
@Override
public void b(PacketDataSerializer packetDataSerializer) throws IOException {
packetDataSerializer.b(action.ordinal());
if(action.ordinal() == Action.SET_SIZE.ordinal())
{
packetDataSerializer.writeDouble(newRadius);
}
if(action.ordinal() == Action.LERP_... | 6 |
@Override
public String getMessage() {
String msg = super.getMessage();
if (msg != null)
return msg;
msg = getProblem();
if (msg != null)
return msg;
Object response = getParameters().get(HTTP_RESPONSE);
if (response != null) {
msg ... | 7 |
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ID3v2FrameSet other = (ID3v2FrameSet) obj;
if (frames == null) {
if (other.frames != null)
return false;
} else if (!frames.equals(other... | 9 |
static final void method168(Player player, int animationID, int animationDelay) {
if (((Mobile) (player)).animation == animationID && animationID != -1) {
Animation animation = Class66.animationForID(animationID);
int k = animation.anInt1647;
if (k == 1) {
pl... | 8 |
public String toString()
{
// Adds on parent tables
StringBuffer sb = new StringBuffer();
if (this.parent!=null)
sb.append(parent.toString());
String indent = new String();
for (int i = 0; i < depth; i++) {
indent += " ";
}
... | 3 |
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((link == null) ? 0 : link.hashCode());
return result;
} | 1 |
public void setId(String value) {
this.id = value;
} | 0 |
protected void reindexFacesAndVertices() {
for (int i = 0; i < numPoints; i++) {
pointBuffer[i].index = -1;
}
// remove inactive faces and mark active vertices
numFaces = 0;
for (Iterator it = faces.iterator(); it.hasNext();) {
Face face = (Face) it.next()... | 5 |
@SuppressWarnings("unchecked")
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Node<K> other = (Node<K>) obj;
if (frequency == null) {
if (other.frequency != null)
return false;
} els... | 9 |
public String Print()
{
String face = "";
for(int i = 0; i < 70; i ++)
{
for(int j = 0; j < 60; j++)
{
if(this.faceImage[i][j]==0){
face += " ";
}else if(this.faceImage[i][j]==1)
{
face += "#";
}
}
face += "\n";
}
return face;
} | 4 |
private Coordinate getWallCoordinate(int dir) {
int xc = x, yc = y;
switch (dir) {
case Display.NORTH: //Check in front, not behind
case Display.EAST: //Check in front, not behind
break;
case Display.SOUTH: //Checking behind current location
yc--;
break;
case Display.WEST: //Checking behind... | 4 |
private void reproduce() {
// List<Entity> test = new ArrayList<Entity>();
// for(Entity ent : entityList) {
// test.add(ent);
// }
int births = 0;
List<Entity> birthEnt = new ArrayList<Entity>();
for(Entity ent : new ArrayList<Entity>(entityList)) {
// System.out.println(entityList.size());
//... | 5 |
private boolean potDemanarPista()
{
elements_de_control_partida = PresentacioCtrl.getInstancia().getElementsDeControlPartida();
elements_de_control_jugadors = PresentacioCtrl.getInstancia().getElementsDeControlJugadors();
int i = ( Integer ) elements_de_control_partida[2] % 2;
return ( !processant_moviment &&... | 5 |
@RequestMapping(value="{tripID}/detailsTravelTrip", method=RequestMethod.GET)
@ResponseBody
public TravelTrip API_detailsTravelTrip(@PathVariable("tripID") String tripID, Model model){
return travelTripDao.findById(Integer.parseInt(tripID));
} | 0 |
public static String poisson(ArrayList<String> parameters) throws ScriptException
{
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine engine = mgr.getEngineByName("JavaScript");
double lambda = (double)engine.eval(parameters.get(LAMBDA));
String k = parameters.get(K);
double time = Double.par... | 3 |
public void evolve(){
int numberOfGenerations = 0;
double bestSolution = Double.MAX_VALUE;
double worstSolution = Double.MIN_VALUE;
Individual bestSolInd=null;
int bestSolIndex=-1;
int worstFinalIndex=-1;//might not use
double lastSolution = 0;
double numberOfRepeats = 0;
long startTime = System.curre... | 9 |
public boolean hasTraits(MonsterCard mc1, MonsterCard mc2, boolean strict) {
if(strict) {
MonsterType mt1 = MonsterType.fromString(this.t1.toString());
MonsterType mt2 = MonsterType.fromString(this.t2.toString());
if(mc1.type == mt1 && mc2.type == mt2)
return true;
if(mc1.type == mt2 && mc2.type == mt... | 9 |
@Override
public StateDist search() {
stateDistQueue.clear();
StateDist result = null;
addState(getInitialState(), 0, 0);
int counter = 0;
while (!stateDistQueue.isEmpty()) {
StateDist stateDist = stateDistQueue.poll();
SearchState oldState = stateDist.state;
int oldDist = stat... | 7 |
public void findPieces(String fileName)
{
File file = new File(fileName);
BufferedReader buffer = null;
try
{
try
{
buffer = new BufferedReader(new FileReader(file));
}
catch(FileNotFoundException f)
{
System.out.println("The command line has an invalid file name! Please input a prop... | 7 |
public void bounceOffPaddle(Paddle paddle, Player player) {
if (vx < 0) {
if (x < (paddle.getX() + PADDLE_WIDTH) && x > paddle.getX()
&& y < (paddle.getY() + paddle.getLength()) && y > paddle.getY()) {
changeAngle(paddle);
player.ballReturned();
... | 9 |
public boolean equals(Object p_other) {
if ( this == p_other ) {
return true;
}
else if ( p_other == null ) {
return false;
}
ComboLeg l_theOther = (ComboLeg)p_other;
if (m_conId != l_theOther.m_conId ||
m_ratio != l_theOther.m_r... | 9 |
public void visitMemExpr(final MemExpr expr) {
if (expr instanceof MemRefExpr) {
visitMemRefExpr((MemRefExpr) expr);
} else if (expr instanceof VarExpr) {
visitVarExpr((VarExpr) expr);
}
} | 2 |
@SuppressWarnings({"unchecked"})
IteratorImpl( int position ) {
if ( position < 0 || position > _size ) {
throw new IndexOutOfBoundsException();
}
_nextIndex = position;
if ( position == 0 ) {
_next = _head;
} else if (... | 7 |
public final void method43(AbstractToolkit var_ha, int i) {
if (i != -14218)
aClass30_10127 = null;
anInt10144++;
Object object = null;
r var_r;
if (aR10128 != null || !aBoolean10137) {
var_r = aR10128;
aR10128 = null;
} else {
Class2 class2 = method2491((byte) -51, true, 262144, var_ha);
... | 5 |
protected Object doInBackground(){
// Initialize the algorithm variables
Wavelet.init( Settings.waveletType );
DensityHelper.initializeTranslates();
DensityHelper.initializeCoefficients();
// Intialize the current sample index to 1.
int sampInd = 1;
// Buffer reader used t... | 9 |
public void setJaar(int jaar) {
this.jaar = jaar;
} | 0 |
@Override
public void setValue(int newValue) {
if (head == null) {
return;
}
if (currentValue > newValue) {
// move down to new value using next values
while (currentValue > newValue && text.hasNext()) {
text = text.next();
currentValue--;
}
} else if (currentValue < newValue) {
// mov... | 9 |
@Test
public void testCalcProductTotal() throws Exception {
BigDecimal bd1 = product.calcProductTotal(5);
BigDecimal bd2 = BigDecimal.valueOf(25.00);
bd2 = bd2.setScale(2,BigDecimal.ROUND_HALF_DOWN);
assertTrue(bd1.equals(bd2));
bd1 = product.calcProductTotal(9);
bd2 = BigDecimal.valueOf(70.00);
bd2 = ... | 0 |
private Interface parseInterfaceContent(NodeList childNodes)
{
Interface interFace = new Interface();
for (int count = 0; count < childNodes.getLength(); count++)
{
Node node = childNodes.item(count);
if ("attribute".equals(node.getNodeName().toLowerCase()))
... | 7 |
public synchronized void gridletSubmit(Gridlet gl, boolean ack)
{
// update the current Gridlets in exec list up to this point in time
updateGridletProcessing();
// reset number of PE since at the moment, it is not supported
if (gl.getNumPE() > 1)
{
String userNa... | 4 |
BlogResult(JSONObject jsonObject) {
this.Title = (String)jsonObject.get("title");
this.Abstract = (String)jsonObject.get("abstract");
this.Provider = (String)jsonObject.get("provider");
this.DisplayURL = (String)jsonObject.get("dispurl");
this.KeyTerms = (String)jsonObject.get("keyterms");
this.Author = (St... | 4 |
public void union(BinomiSolmu uusi) {
merge(uusi);
BinomiSolmu edellinen = null;
BinomiSolmu kasiteltava = juurilistanEka;
BinomiSolmu seuraava = kasiteltava.getSisarus();
while (seuraava != null) {
if ((kasiteltava.getAste() != seuraava.getAste()) ||
... | 6 |
public Boolean preparate() {
if (this.txtcad.getText().length() != 0 && this.txtfilename.getSelectedItem().toString().length() != 0) {
return true;
}
return false;
} | 2 |
@Override
public int compare(JukeboxTrackRequest request1, JukeboxTrackRequest request2) {
boolean greaterThan = request1.getDateForState(state).getTime() > request1.getDateForState(state).getTime();
boolean lessThan = request1.getDateForState(state).getTime() < request1.getDateForState(... | 5 |
public boolean getBoolean(String key) throws JSONException {
Object o = get(key);
if (o.equals(Boolean.FALSE) ||
(o instanceof String &&
((String) o).equalsIgnoreCase("false"))) {
return false;
} else if (o.equals(Boolean.TRUE) ||
... | 6 |
public void testFactory_FromDateFields_null() throws Exception {
try {
TimeOfDay.fromDateFields(null);
fail();
} catch (IllegalArgumentException ex) {}
} | 1 |
public int GetInternalMemorySize()
{
return internalMemory.size();
} | 0 |
@SuppressWarnings("unused")
@Override
public void produceExcel(String fname, String savaPath) throws Exception {
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(fname));// 创建一个Excel表对象
cellStyle = new CellStyle(workbook);
excelUtils = new ExcelUtils();
HSSFSheet sheet = workbook.getSheetAt(0);// ... | 1 |
@Override
public Room getRoomInDir(int direction)
{
if((direction<0)||(direction>=doors.length)||(amDestroyed))
return null;
Room nextRoom=rawDoors()[direction];
if(gridParent!=null)
nextRoom=gridParent.prepareGridLocale(this,nextRoom,direction);
if(nextRoom!=null)
{
nextRoom=nextRoom.prepareRoomIn... | 7 |
final boolean method1180(boolean flag, boolean flag1) {
int j = anInt2134;
int k = anInt2151;
int i = anInt2133;
if (flag) {
k = anInt2180;
j = anInt2171;
i = anInt2202;
}
if (i == -1) {
return true;
}
if (fl... | 8 |
private void login(String[] accountinfo){
username = accountinfo[0];
System.out.println("User: " + username + " logged in");
reply("loggedin");
} | 0 |
private LinkedList<Diff> diff_lineMode(String text1, String text2,
long deadline) {
// Scan the text on a line-by-line basis first.
LinesToCharsResult b = diff_linesToChars(text1, text2);
text1 = b.chars1;
text2 = b.chars2;
List<String> linearray = b.lineArra... | 9 |
public String getConcepto() {
return concepto;
} | 0 |
public truncate()
{
this.info = "truncate Appointment, Reminder and Venue tables";
} | 0 |
public void assignMuseumTickets(int day) {
// LIst to store interested clients and their respective values
List<ClientValuePair> museumInterest = new ArrayList<ClientValuePair>();
// Find each customer that could use an alligator ticket that day
for (int ii = 0; ii < 9; ii++) {
if (ii < 8) {
Client clie... | 9 |
@Override
public boolean setWeapon(Wearable weapon) throws NoSuchItemException, WrongItemTypeException {
if (weapon != null) {
if (weapon instanceof Weapon) {
if (weapon.getLevelRequirement() > level || weapon.getStrengthRequirement() > stats[0]
|| weapon.getDexterityRequirement() > stats[1] || weapon.g... | 8 |
private boolean check()
{
if (!isSizeConsistent(root))
{
System.out.println("Size is not consistent");
return false;
}
if (!isRankConsistent(root))
{
System.out.println("Rank is not consistent");
return false;
}
return true;
} | 2 |
public void setGratingPitch(double pitch){
this.gratingPitch = pitch;
this.setGratingPitch = true;
if(this.setMeasurementsGrating && super.setWavelength)this.calcEffectiveRefractiveIndices();
} | 2 |
public void setSatisfied(boolean satisfied) {
Satisfied = satisfied;
} | 0 |
public static void main(String[] args) {
System.out.println("Apple price list:");
for (Apple apple : Apple.values()) {
System.out.println("\t" + apple + " costs " + apple.getPrice()
+ " cents.");
}
System.out.println("Apple ordinal values(its possiton in the list of constants):");
for (Apple apple : ... | 2 |
public static final JsonObject createTemplateJsonFromNepticalConfiguration(final Configuration configuration){
Iterator<String> keyIter = configuration.getKeys();
JsonObject jsonModel = new JsonObject();
while(keyIter.hasNext()){
String key = keyIter.next();
appendPropertyToJsonTemplateModel(jsonModel,... | 1 |
@Override
protected Void doInBackground() {
build(calculateFromScratch).display();
return null;
} | 0 |
private PkItem get(ConcurrentLinkedQueue<PkItem> list, int id) {
for (PkItem item : list)
if (item.id == id)
return item;
return null;
} | 2 |
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
String uri = request.getRequestURI();
// Ignore static resources
if (!uri.contains(RESOURCES_URL)) {
imageService.removeOldImagesIfNecessary();
}
return true;
} | 1 |
public void getMouseEvent(int button) {
if (AIE != null){
AIE.getMouseEvent(button);
} else if (TE != null){
TE.getMouseEvent(button);
}
} | 2 |
public ClassInfo getClassInfo() {
if (classType instanceof ClassInterfacesType)
return ((ClassInterfacesType) classType).getClassInfo();
return null;
} | 1 |
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 |
private void selectBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selectBotonActionPerformed
int index = serverTable.getSelectedRow();
if(index>=0){
String server = (String)serverTable.getModel().getValueAt(index, 0);
conexion.principal.setCurren... | 2 |
@SuppressWarnings("unchecked")
protected static String[] split(String str, String sep) {
if (str == null) {
throw new NullPointerException("str");
}
if (sep == null) {
throw new NullPointerException("sep");
}
Vector l = new Vector();
... | 8 |
public ModelAndView login(Usuario usuario, UsuarioDAO usuarioDAO) {
feedbacks.clear();
ModelAndView mav = new ModelAndView();
String retorno;
Usuario usuarioDB = usuario.existe(usuarioDAO);
if (isLogado() || usuarioDB != null) {
this.usuario = usuarioDB;
retorno = getPaginaDeRetorno();
} else ... | 6 |
public IdentificadorVariavelRegistro(String nome, int deslocamento,
Collection<IdentificadorVariavelCampoRegistro> listaCampos) {
super(nome, deslocamento, Tipo.REGISTRO);
this.listaCampos = new HashMap<String, IdentificadorVariavelCampoRegistro>();
if(listaCampos != null)
for(IdentificadorVariavelCampo... | 2 |
public static void main(String[] args)throws Exception {
//no parameter
Class noparams[] = {};
//String parameter
Class[] paramString = new Class[1];
paramString[0] = String.class;
//int parameter
Class[] paramInt = new Class[1];
paramInt[0] = Integer.TYPE;
try{
//load the App... | 6 |
private void findNN(Node node, ResultSet resultSet, double[] query,
int[] checks, int maxChecks, PriorityQueue<Branch<Node>> heap) {
// Pruning. Ignore those clusters that are too far away -----
double bsq = metric.distance(query, node.pivot);
double rsq = node.radius;
double wsq = resultSet.worstDistance();... | 6 |
public ArrayList<String> getArticleList() throws IOException {
ArrayList<String> articleList = new ArrayList<String>();
for (String pageUrl : pageList) {
String html = "error";
for (int i = 0; i < 5 && html.equals("error"); i++) {
System.out.print("in Board....."+... | 6 |
public int getCrawlStyle() {
return crawlStyle;
} | 0 |
public TreeMap<TimeStamp, ArrayList<TileEntry>> getUsageEventMap() {
TreeMap<TimeStamp, ArrayList<TileEntry>> map = new TreeMap<>();
for (ArrayList<TileEntry> tiles : knownTiles.values())
for (TileEntry tile : tiles) {
for (TimeStamp usageEvent : tile.usages.getNonNullEventIndices()) {
i... | 4 |
public static void main(String[] args) {
ArrayList apples = new ArrayList();
for (int i = 0; i < 3; i++)
apples.add(new Apple());
// Not prevented from adding an Orange to apples:
apples.add(new Orange());
for (int i = 0; i < apples.size(); i++)
((Apple) apples.get(i)).id();
// Orange is dete... | 2 |
public void keyPressed(KeyEvent e) {
int key = e.getKeyCode();
if (key == KeyEvent.VK_LEFT) {
directionX = -1;
}
if (key == KeyEvent.VK_RIGHT) {
directionX = 1;
}
if (key == KeyEvent.VK_UP) {
directionY = -1;
}
if (... | 4 |
public static void startUpdater(int time) {
Thread t = new Thread(new Updater(time));
t.start();
} | 0 |
@Override
public void ejecutar(Stack<Valor> st, MemoriaDatos md, Cp cp)
throws Exception {
if (st.isEmpty())
throw new Exception("IR_V: pila vacia");
Valor op = st.pop();
if (op instanceof Booleano) {
if ((boolean) op.getValor())
cp.set((int) pd.getValor());
else
cp.incr();
}
else
t... | 3 |
@Override
public void mouseClicked(MouseEvent e) {
if (token == ' ') {
this.token = turn;
this.repaint();
if (winGame()) {
jlblStatus.setText(turn + " wins the game.");
removeListeners();
} else if (drawGame()) {
jlblStatus.setText("Draw game, reset to play again.");
} else {
... | 6 |
public final void method23(int i, int i_0_) {
if (i != 15959)
anInt8516 = -78;
anInt8516 = ((Class68) aClass68_8518).anInt1178 * i_0_;
if (anInt8521 < anInt8516) {
int i_1_ = 8;
int i_2_;
if (aBoolean8519) {
i_1_ |= 0x200;
i_2_ = 0;
} else
i_2_ = 1;
if (null != ((Class142) this).a... | 5 |
boolean checkTrigger () {
int forwardGrab=0,backwardGrab=0;
// Description
String description=descriptionField.getText();
if ((description==null)||(description.length()<1)) {
JOptionPane.showMessageDialog(null,"You must enter a description for a trigger","Rivet", JOptionPane.INFORMATION_MESSAGE);
return f... | 9 |
public void inserirLinkTratado(Produto pProduto)
{
StringBuilder sb = new StringBuilder();
ConexaoMySql cn = new ConexaoMySql();
sb.append("Insert Into etl_link_tratado "
+ "(Loja_Cliente_Id, Produto_Nome, Produto_Preco, Produto_Foto_URL, Produto_Descricao) "
... | 2 |
public boolean confirm() {
int n = JOptionPane.showConfirmDialog(this,
srcname+"想要傳送檔案"+filename+"(大小"+filesize+"bytes),是否接收?",
"傳送檔案確認", JOptionPane.YES_NO_OPTION);
if( n==JOptionPane.YES_OPTION ) return true;
else return false;
} | 1 |
public static Object add(Object v1, Object v2)
{
int type = getNumericType(v1, v2, true);
switch(type) {
case BIGINT:
return bigIntValue(v1).add(bigIntValue(v2));
case BIGDEC:
return bigDecValue(v1).add(bigDecValue(v2));
case FLOAT:
case DOUBLE... | 9 |
public double rawPersonStandardDeviation(int index){
if(!this.dataPreprocessed)this.preprocessData();
if(index<1 || index>this.nPersons)throw new IllegalArgumentException("The person index, " + index + ", must lie between 1 and the number of persons," + this.nPersons + ", inclusive");
if(!this.v... | 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... | 7 |
public char nextClean() throws JSONException {
for (;;) {
char c = this.next();
if (c == 0 || c > ' ') {
return c;
}
}
} | 3 |
private void listSeries() {
Logger.getLogger(MainInterface.class.getName()).entering(MainInterface.class.getName(), "listSeries");
previewComponent.setNoPreviewImage();
Thread listSeriesThread = new Thread(() -> {
Logger.getLogger(MainInterface.class.getName()).log(Level.INFO, "Refre... | 6 |
public int calculate(int player,int moveType, int newVal, ArrayList<Field> pole)
{
this.moveable = 0;
this.player = player;
this.moveType = moveType;
this.pole = pole;
this.newVal = newVal;
moveEnable(pole,player,newVal); // vypocet moznosti tahu
if(m... | 9 |
public Object showStudentScoreList(String couId) {
String command = "show;course_student_list;" + couId;
ArrayList<String> list = null;
String[][] content = null;
try {
NetService client = initNetService();
client.sendCommand(command);
list = client.receiveList();
content = new String[list.size()][]... | 5 |
public void addToConsole(String data) {
try {
Document doc = textPane.getDocument();
doc.insertString(doc.getLength(), data + "\n", null);
textPane.select(doc.getLength() - 1, doc.getLength() - 1);
} catch (Exception ex) {
}
} | 1 |
public MediaConfModel getMediaConfModel () {
MediaConfModel mediaConf = new MediaConfModel();
JsonNode node = rootNode.get("Media");
mediaConf.setExecute(node.get("execute").getBooleanValue());
return mediaConf;
} | 0 |
public static void createAbilitySet(ConfigurationSection cfg)
{
// If there are no options return
if (cfg == null)
return;
// Fetch the Sets name from the map
String name = cfg.getName();
// If no name is given return
if (name == null)
{
MMComponent.getAbilities().warning("Must provide a name... | 8 |
public double getPrice() {
return price;
} | 0 |
public void fusionWithOverlayFullAlpha(CPLayer fusion, CPRect rc) {
CPRect rect = new CPRect(0, 0, width, height);
rect.clip(rc);
for (int j = rect.top; j < rect.bottom; j++) {
int off = rect.left + j * width;
for (int i = rect.left; i < rect.right; i++, off++) {
int color1 = data[off];
int alpha1 ... | 7 |
public static void main(String args[]){
CMS cms = new CMS();
Scanner sc = new Scanner(System.in);
//sc.useDelimiter(System.getProperty("line.separator"));
int R = 0;
do{
try {
System.out.println("\n1. Agregar Autor");
System.out.println... | 8 |
protected static boolean compareBiomesById(final int p_151616_0_, final int p_151616_1_)
{
if (p_151616_0_ == p_151616_1_)
{
return true;
}
else if (p_151616_0_ != BiomeGenBase.mesaPlateau_F.biomeID && p_151616_0_ != BiomeGenBase.mesaPlateau.biomeID)
{
... | 7 |
public FireHeadArmor() {
this.name = Constants.FIRE_HEAD_ARMOR;
this.defenseScore = 11;
this.money = 350;
} | 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.