code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package client.messages;
import LevelObjects.Box;
public class MoveBoxRequest extends MoveRequest {
// What box needs to be moved
public Box box;
// Should the box be removed from a goal to enable a solution
public boolean removeFromGoal;
}
| Java |
package client;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReade... | Java |
package client;
import java.util.Arrays;
import java.util.Scanner;
public class Output {
private static Scanner scan = new Scanner(System.in);
/*public Output()
{
scan = new Scanner(System.in);
}*/
public static boolean[] Send(Command[] commands)
{
// System.err.println("Sending: [" + Arr... | Java |
package client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import constants.Constants.Color;
import constants.Constants.dir;
import ... | Java |
package client.clients;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Random;
import client.Command;
import client.Output;
import client.Parser;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Level;
... | Java |
package client.clients;
import java.io.IOException;
import javax.swing.text.StyledEditorKit.BoldAction;
import agent.objectives.DockABox;
import agent.objectives.Objective;
import constants.Constants;
import constants.Constants.dir;
import utils.Communication;
import utils.Timer;
import utils.Utils;
... | Java |
package client.clients;
import java.io.*;
import java.util.*;
import client.Command;
public class RandomWalkClient {
private static Random rand = new Random();
public class Agent {
// We don't actually use these for Randomly Walking Around
private char id;
private String color;
Agent( char id, String col... | Java |
package datastructures;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import client.Command;
import LevelObjects.Box;
import LevelObjects.Field;
public class MoveActionSequence extends ActionSequence {
private Field startField;
private Field endField;
public ... | Java |
package datastructures;
import LevelObjects.Field;
public class MoveBoxActionSequence extends ActionSequence {
private Field agentLocation;
private Field boxLocation;
private Field targetLocation;
public Field getAgentLocation() {
return agentLocation;
}
public void setAgentLocation(Field agen... | Java |
package datastructures;
import LevelObjects.Field;
public class GoalActionSequence extends ActionSequence {
private Field agentStartLocation;
private Field agentEndField;
private Field boxStartLocation;
private Field boxEndLocation;
public Field getBoxStartLocation() {
return boxStartLocatio... | Java |
package datastructures;
public class FieldBlockedChange {
public int time;
public boolean changeToBlocked;
public FieldBlockedChange(int time, boolean c){
this.time = time;
this.changeToBlocked = c;
}
}
| Java |
package datastructures;
import java.util.ArrayList;
import LevelObjects.Agent;
import LevelObjects.Field;
public class FieldInState extends ObjectInState {
public ArrayList<FieldBlockedChange> blockedTimeChangeIndexes;
public FieldInState(Field f) {
super();
this.f = f;
blockedTimeChangeIndexes = new Array... | Java |
package datastructures;
import java.util.ArrayList;
import LevelObjects.Field;
import client.Command;
public abstract class ActionSequence {
private ActionSequence parent;
public ArrayList<Field> fields;
public ActionSequence getParent() {
return parent;
}
public void setParent(ActionSequ... | Java |
package datastructures;
import LevelObjects.Agent;
import LevelObjects.Field;
public class AgentInState extends ObjectInState {
public Agent a;
public AgentInState(Agent a, Field f) {
super();
this.a = a;
this.f = f;
}
}
| Java |
package datastructures;
import java.util.ArrayList;
import LevelObjects.Goal;
import client.Command;
public class State implements Comparable<State> {
public int g;
public int f;
public ArrayList<AgentInState> agents;
public ArrayList<BoxInState> boxes;
public ArrayList<FieldInState> fields;
public State p... | Java |
package datastructures;
import LevelObjects.Box;
import LevelObjects.Field;
public class BoxInState extends ObjectInState {
public Box b;
public BoxInState(Box b, Field f) {
super();
this.b = b;
this.f = f;
}
}
| Java |
package datastructures;
import LevelObjects.Field;
public abstract class ObjectInState implements Comparable<ObjectInState> {
public Field f;
@Override
public int compareTo(ObjectInState o) {
if (this.f.x != o.f.y) {
return this.f.x-o.f.x;
}
else{
return this.f.y-o.f.y;
}
}
}
| Java |
package datastructures;
import java.util.ArrayList;
import LevelObjects.*;
public class BoxCost {
public Box box;
public int cost;
public ArrayList<GoalCost> goalCosts;
public BoxCost()
{
goalCosts = new ArrayList<GoalCost>();
}
}
| Java |
package datastructures;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
public class StateGoal {
public Field agentToPos;
public Field boxToPos;
public BoxInState box;
public AgentInState agent;
public boolean isMoveToBoxGoal;
public boolean isClearPathGoal;
public int nextGoalI... | Java |
package datastructures;
import LevelObjects.Field;
import client.Command;
public class GoalSequenceNode implements Comparable<GoalSequenceNode> {
public GoalSequenceNode parent;
public Field boxLocation;
public Field agentLocation;
public Command action;
public int timeStep;
public int f;
public int g;
pub... | Java |
package datastructures;
import LevelObjects.*;
public class GoalCost {
public GoalCost(Goal goal, int cost) {
this.cost = cost;
this.goal = goal;
}
public Goal goal;
public int cost;
}
| Java |
package utils;
public class Timer
{
private long _time;
public volatile long time;
public Timer()
{
time = 0;
_time = System.currentTimeMillis();
}
public void takeTime()
{
time = 0;
_time = System.currentTimeMillis();
}
public long stop()
{
time = System.currentTimeMillis()... | Java |
package utils;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import LevelObjects.Field;
public class BFS {
public enum NodeColour { WHITE, GRAY, BLACK }
privat... | Java |
package utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Goal;
import LevelObjects.Level;
public class GoalPriority {
/**
* Goal prioritizat... | Java |
package utils;
import constants.Constants.dir;
import LevelObjects.Field;
import client.Command;
public class AStarField implements Comparable<AStarField> {
public Field field;
public int g;
public int f;
public int h;
public Command c;
public int timeStep;
public AStarField(Field field... | Java |
package utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Set;
import constants.Cons... | Java |
package utils;
import java.util.ArrayList;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Level;
public class Communication {
/**
* find agent to move a given box that might be in the way for another agent
* @param box
* @param level
* @retur... | Java |
package utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import constants.Constants.dir;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Level;
import client.Command;
import datastructures.ActionSequence;
import da... | Java |
package utils;
import java.util.ArrayList;
import LevelObjects.Field;
import client.Command;
import datastructures.AgentInState;
import datastructures.BoxInState;
import datastructures.FieldInState;
import datastructures.State;
public class PrioriGoalUtils {
public static ArrayList<FieldInState> getBlockedFields(S... | Java |
package utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Set;
import utils.Utils.HeuristicType;
import LevelObjects.Agent;
import LevelObjects.... | Java |
package utils;
import java.util.ArrayList;
import java.util.List;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Level;
public class FindFreeSpaces {
public static void FindSpaces(Level level){
System.err.println("------------------Fields------------------");
Lis... | Java |
package aStar;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Set;
import LevelObjects.*;
import client.Command;
import constants.Constants.*;
public class Pathfinding {
// Sho... | Java |
package LevelObjects;
import java.io.Serializable;
import constants.Constants;
import constants.Constants.Color;
public class Box implements Comparable<Box> {
private char id; // stored as lowercase so we can easily compare with goals
private Color color;
private Field atField;
public Box(char id, Color co... | Java |
package LevelObjects;
import java.awt.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
import agent.objectives.*;
import agent.planners.AgentPlanner;
import utils.Communicati... | Java |
package LevelObjects;
import java.util.ArrayList;
public class Level {
public ArrayList<Agent> agents = new ArrayList<Agent>();
public ArrayList<Box> boxes = new ArrayList<Box>();
public ArrayList<Field> fields = new ArrayList<Field>();
public ArrayList<Goal> goals = new ArrayList<Goal>();
public Field[][] fiel... | Java |
package LevelObjects;
import java.util.Comparator;
import constants.Constants.dir;
public class Field implements Comparator<Field> {
// Order of directions.
/*public static enum dir {
N, W, E, S
};*/
// Example: neighbours[Constants.Constants.dir.N]
public Field[] neighbours = new Field[4];
public int... | Java |
package LevelObjects;
import java.util.ArrayList;
public class Conflict {
private Agent helpAgent;
private Object obstacle;
private Box moveaBox;
private int priority;
public ArrayList<Field> avoidFields = new ArrayList<Field>();
public Conflict(Agent helpAgent, ArrayList<Field> avoidFields, Object... | Java |
package LevelObjects;
public class Goal extends Field implements Comparable<Goal> {
private char id;
public int priority;
public char getId() {
return id;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority){
this.priority = priority;
}
public Goal(char id, i... | Java |
package agent.planners;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import utils.Utils;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Goal;
import LevelObjects.Level;
import client.Command;
import constants.Constants;
i... | Java |
package agent.planners;
import java.util.List;
import LevelObjects.Agent;
import LevelObjects.Box;
import LevelObjects.Field;
import LevelObjects.Goal;
public abstract class AgentPlanner {
public abstract boolean goalABox(Agent agent, Box box, Goal goal);
public abstract boolean move(Agent agent, Li... | Java |
package agent.objectives;
import java.util.List;
import LevelObjects.*;
public class Move extends Objective {
public List<Field> blockedFields;
public int numberOfRounds;
public List<Field> escapeFromFields;
public Move(List<Field> escapeFromField, List<Field> blockedFields, int numberOfRounds) {
... | Java |
package agent.objectives;
public abstract class Objective {
}
| Java |
package agent.objectives;
import LevelObjects.*;
public class GoalABox extends Objective {
public GoalABox(Box b, Goal g) {
goal = g;
box = b;
}
public Goal goal;
public Box box;
}
| Java |
package agent.objectives;
import java.util.List;
import LevelObjects.*;
public class DockABox extends Objective {
public Field field;
public List<Field> blockedFields;
public Box box;
public int numberOfRounds;
public DockABox(Field field, Box box, int numberOfRounds) {
super();
this.field... | Java |
package agent.objectives;
import java.util.List;
import LevelObjects.*;
public class Wait extends Objective {
public int numberOfRounds;
public List<Field> blockedFields;
} | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, schilly <email@email.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software ... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
// Sage Android Client.
// Connect to a Sage server, remotely execute commands and display results.
//
// Copyright (C) 2010, Harald Schilly <harald.schilly@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// th... | Java |
/**
* Copyright (C) 2011, Karsten Priegnitz
*
* Permission to use, copy, modify, and distribute this piece of software
* for any purpose with or without fee is hereby granted, provided that
* the above copyright notice and this permission notice appear in the
* source code of all copies.
*
* It would be appreci... | Java |
package org.sagemath.singlecellserver;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.text.DateFormat;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.Timer;
import jav... | Java |
package org.sagemath.singlecellserver;
import org.json.JSONException;
import org.json.JSONObject;
/*
*
* jQuery({
* "content": [{
* "parent_header": {
* "username": "", "msg_id": "749529bd-bcfe-43a7-b660-2cea20df3f32",
* "session": "7af9a99a-2a0d-438f-8576-5e0bd853501a"},
* "msg_type"... | Java |
package org.sagemath.singlecellserver;
import java.util.UUID;
import junit.framework.Assert;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
/**
* The base class for a server reply
*
* @author vbraun
*
*/
public class CommandReply extends Command {
private final static St... | Java |
package org.sagemath.singlecellserver;
import java.util.UUID;
import junit.framework.Assert;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
/**
* The base class for server communication. All derived classes should
* derive from CommandRequest and CommandReply, but not from C... | Java |
package org.sagemath.singlecellserver;
import org.json.JSONException;
import org.json.JSONObject;
public class ExecuteReply extends CommandOutput {
private final static String TAG = "ExecuteReply";
private String status;
protected ExecuteReply(JSONObject json) throws JSONException {
super(json);
JSONObject... | Java |
package org.sagemath.singlecellserver;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.LinkedList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class HtmlFiles extends CommandOutput {
private final static String TA... | Java |
package org.sagemath.singlecellserver;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Roughly, a CommandOutput is any JSON object that has a "output_block" field. These are intended
* to be displayed on the screen.
*
* @author vbraun
*
*/
public class CommandOutput extends CommandReply {
pr... | Java |
package org.sagemath.singlecellserver;
import junit.framework.Assert;
import org.json.JSONException;
import org.json.JSONObject;
public class DisplayData extends CommandOutput {
private final static String TAG = "DisplayData";
private JSONObject data;
protected String value, mime;
protected DisplayData(JSONO... | Java |
package org.sagemath.singlecellserver;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.Buffer;
import org.apache.http.HttpEntity;
i... | Java |
package org.sagemath.singlecellserver;
import org.json.JSONException;
import org.json.JSONObject;
/**
* <h1>Streams (stdout, stderr, etc)</h1>
* <p>
* <pre><code>
* Message type: ``stream``::
* content = {
* # The name of the stream is one of 'stdin', 'stdout', 'stderr'
* 'name' : str,
*
... | Java |
package org.sagemath.singlecellserver;
public class HttpError extends CommandReply {
private final static String TAG = "HttpError";
protected String message;
protected HttpError(CommandRequest request, String message) {
super(request);
this.message = message;
}
public String toString() {
return "HTTP... | Java |
package org.sagemath.singlecellserver;
import java.util.LinkedList;
import java.util.UUID;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class ExecuteRequest extends CommandRequest {
private final static String TAG = "ExecuteRequest";
String input;
boolean sage;
... | Java |
package org.sagemath.singlecellserver;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.UUID... | Java |
package org.sagemath.singlecellserver;
import org.json.JSONException;
import org.json.JSONObject;
public class SessionEnd extends CommandReply {
public final static String TAG = "SessionEnd";
protected SessionEnd(JSONObject json) throws JSONException {
super(json);
}
public String toString() {
return "End o... | Java |
package org.sagemath.singlecellserver;
import java.io.StringWriter;
/**
*
* @author Elad Tabak
* @since 28-Nov-2011
* @version 0.1
*
*/
public class JSONWriter extends StringWriter {
private int indent = 0;
@Override
public void write(int c) {
if (((char)c) == '[' || ((char)c) == '{') {
... | Java |
package org.sagemath.singlecellserver;
import java.util.Iterator;
import org.json.JSONException;
import org.json.JSONObject;
/**
* <h1>Python output</h1>
* <p>
* When Python produces output from code that has been compiled in with the
* 'single' flag to :func:`compile`, any expression that produces a value (suc... | Java |
package org.sagemath.singlecellserver;
import java.util.LinkedList;
import java.util.ListIterator;
public class Transaction {
protected final SageSingleCell server;
protected final CommandRequest request;
protected final LinkedList<CommandReply> reply;
public static class Factory {
public Transaction newTrans... | Java |
package org.sagemath.droid;
import sheetrock.panda.changelog.ChangeLog;
import com.example.android.actionbarcompat.ActionBarActivity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import java.util.ListIterator;
import junit.framework.Assert;
import org.sagemath.singlecellserver.CommandOutput;
import org.sagemath.singlecellserver.CommandReply;
import org.sagemath.singlecellserver.Interact;
import org.sagemath.singlecellserver.SageSingleC... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import ... | Java |
package org.sagemath.droid;
import org.sagemath.droid.CellGroupsFragment.OnGroupSelectedListener;
import sheetrock.panda.changelog.ChangeLog;
import com.example.android.actionbarcompat.ActionBarActivity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import ... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import java.util.ListIterator;
import junit.framework.Assert;
import org.sagemath.singlecellserver.CommandOutput;
import org.sagemath.singlecellserver.DataFile;
import org.sagemath.singlecellserver.DisplayData;
import org.sagemath.singlecellserver.ExecuteReply... | Java |
package org.sagemath.droid;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.text.format.Formatter;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarCha... | Java |
package org.sagemath.droid;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.LinkedList;
import java.util.UUID;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import ... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class CellListAdapter extends ArrayAdapter<CellData> {
priv... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import org.sagemath.droid.CellGroupsFragment.OnGroupSelectedListener;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListV... | Java |
package org.sagemath.droid;
import android.content.Context;
import android.widget.LinearLayout;
public abstract class InteractControlBase
extends LinearLayout {
private final static String TAG = "InteractControlBase";
protected final String variable;
protected final InteractView interactView;
public Int... | Java |
package org.sagemath.droid;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
i... | Java |
package org.sagemath.droid;
import org.sagemath.droid.CellGroupsFragment.OnGroupSelectedListener;
import com.example.android.actionbarcompat.ActionBarActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
public class CellListActivity
exte... | Java |
package org.sagemath.droid;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.sagemath.singlecellserver.Interact;
import android.conten... | Java |
package org.sagemath.droid;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.UUID;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.Docu... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.text.format.Formatter;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import andro... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.text.format.Formatter;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.wid... | Java |
package org.sagemath.droid;
import java.util.LinkedList;
import javax.crypto.spec.IvParameterSpec;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class CellGroupsA... | Java |
/*
* Copyright 2011 The Android Open Source Project
*
* Licensed 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 applicab... | Java |
/*
* Copyright 2011 The Android Open Source Project
*
* Licensed 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 applicab... | Java |
/*
* Copyright 2011 The Android Open Source Project
*
* Licensed 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 applicab... | Java |
/*
* Copyright 2011 The Android Open Source Project
*
* Licensed 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 applicab... | Java |
/*
* Copyright 2011 The Android Open Source Project
*
* Licensed 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 applicab... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.