code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
// 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... | 12085952-sageandroid | app-v1/src/org/sagemath/android/SageConnection.java | Java | gpl3 | 19,057 |
// 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... | 12085952-sageandroid | app-v1/src/org/sagemath/android/SageAndroid.java | Java | gpl3 | 22,638 |
/**
* 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... | 12085952-sageandroid | app-v2/src/sheetrock/panda/changelog/ChangeLog.java | Java | gpl3 | 9,829 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/CommandRequest.java | Java | gpl3 | 6,409 |
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"... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/Interact.java | Java | gpl3 | 7,079 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/CommandReply.java | Java | gpl3 | 3,160 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/Command.java | Java | gpl3 | 1,530 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/ExecuteReply.java | Java | gpl3 | 534 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/HtmlFiles.java | Java | gpl3 | 1,111 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/CommandOutput.java | Java | gpl3 | 729 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/DisplayData.java | Java | gpl3 | 853 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/DataFile.java | Java | gpl3 | 2,176 |
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,
*
... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/ResultStream.java | Java | gpl3 | 1,255 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/HttpError.java | Java | gpl3 | 424 |
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;
... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/ExecuteRequest.java | Java | gpl3 | 1,336 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/SageSingleCell.java | Java | gpl3 | 19,442 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/SessionEnd.java | Java | gpl3 | 429 |
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) == '{') {
... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/JSONWriter.java | Java | gpl3 | 921 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/PythonOutput.java | Java | gpl3 | 3,522 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/singlecellserver/Transaction.java | Java | gpl3 | 2,152 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/SageActivity.java | Java | gpl3 | 6,803 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/OutputView.java | Java | gpl3 | 4,481 |
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 ... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellGroupsFragment.java | Java | gpl3 | 1,864 |
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 ... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellActivity.java | Java | gpl3 | 2,054 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/OutputBlock.java | Java | gpl3 | 4,441 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/InteractContinuousSlider.java | Java | gpl3 | 3,288 |
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 ... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellCollectionXMLParser.java | Java | gpl3 | 2,762 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellListAdapter.java | Java | gpl3 | 1,644 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellListFragment.java | Java | gpl3 | 1,439 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/InteractControlBase.java | Java | gpl3 | 800 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellData.java | Java | gpl3 | 4,219 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellListActivity.java | Java | gpl3 | 1,219 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/InteractView.java | Java | gpl3 | 4,070 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellCollection.java | Java | gpl3 | 2,697 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/InteractDiscreteSlider.java | Java | gpl3 | 2,644 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/InteractSelector.java | Java | gpl3 | 3,240 |
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... | 12085952-sageandroid | app-v2/src/org/sagemath/droid/CellGroupsAdapter.java | Java | gpl3 | 1,392 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/ActionBarHelper.java | Java | gpl3 | 3,551 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/SimpleMenu.java | Java | gpl3 | 6,417 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/SimpleMenuItem.java | Java | gpl3 | 5,673 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/ActionBarHelperICS.java | Java | gpl3 | 1,267 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/ActionBarHelperHoneycomb.java | Java | gpl3 | 2,818 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/ActionBarHelperBase.java | Java | gpl3 | 11,530 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/ActionBarActivity.java | Java | gpl3 | 2,756 |
/*
* 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... | 12085952-sageandroid | app-v2/src/com/example/android/actionbarcompat/MainActivity.java | Java | gpl3 | 3,079 |
/** Automatically generated file. DO NOT MODIFY */
package org.sagemath.droid;
public final class BuildConfig {
public final static boolean DEBUG = true;
} | 12085952-sageandroid | app-v2/gen/org/sagemath/droid/BuildConfig.java | Java | gpl3 | 160 |
package android.text.format;
import java.util.Calendar;
import java.util.Date;
public class Time {
private final static String TAG = "Time";
private Date date;
public void setToNow() {
Calendar cal = Calendar.getInstance();
date = cal.getTime();
}
public String toMillis(boolean ignoreDst) {
return St... | 12085952-sageandroid | commandline/src/android/text/format/Time.java | Java | gpl3 | 356 |
package android.util;
public class Log {
private static final String TAG = "Log";
public static void d(String tag, String msg) {
System.out.println(tag + "\t" + msg);
}
public static void e(String tag, String msg) {
System.out.println(tag + "\t" + msg);
}
}
| 12085952-sageandroid | commandline/src/android/util/Log.java | Java | gpl3 | 275 |
package org.json;
/**
* The JSONException is thrown by the JSON.org classes when things are amiss.
* @author JSON.org
* @version 2010-12-24
*/
public class JSONException extends Exception {
private static final long serialVersionUID = 0;
private Throwable cause;
/**
* Constructs a JSONExcep... | 12085952-sageandroid | commandline/src/org/json/JSONException.java | Java | gpl3 | 700 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 12085952-sageandroid | commandline/src/org/json/XML.java | Java | gpl3 | 17,113 |
package org.json;
/*
Copyright (c) 2008 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 12085952-sageandroid | commandline/src/org/json/JSONML.java | Java | gpl3 | 15,093 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/CDL.java | Java | gpl3 | 10,004 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/HTTP.java | Java | gpl3 | 5,919 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/Cookie.java | Java | gpl3 | 6,675 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/HTTPTokener.java | Java | gpl3 | 2,499 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 12085952-sageandroid | commandline/src/org/json/JSONObject.java | Java | gpl3 | 55,756 |
package org.json;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/JSONStringer.java | Java | gpl3 | 3,266 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/XMLTokener.java | Java | gpl3 | 10,758 |
package org.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software a... | 12085952-sageandroid | commandline/src/org/json/JSONTokener.java | Java | gpl3 | 12,847 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 12085952-sageandroid | commandline/src/org/json/CookieList.java | Java | gpl3 | 3,394 |
package org.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSONString... | 12085952-sageandroid | commandline/src/org/json/JSONString.java | Java | gpl3 | 712 |
package org.json;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.io.StringWriter;
import junit.framework.TestCase;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
... | 12085952-sageandroid | commandline/src/org/json/Test.java | Java | gpl3 | 71,256 |
package org.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including witho... | 12085952-sageandroid | commandline/src/org/json/JSONWriter.java | Java | gpl3 | 10,677 |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 12085952-sageandroid | commandline/src/org/json/JSONArray.java | Java | gpl3 | 29,953 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/CommandRequest.java | Java | gpl3 | 6,402 |
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"... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/Interact.java | Java | gpl3 | 7,079 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/CommandReply.java | Java | gpl3 | 3,296 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/Command.java | Java | gpl3 | 1,530 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/ExecuteReply.java | Java | gpl3 | 534 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/HtmlFiles.java | Java | gpl3 | 1,111 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/CommandOutput.java | Java | gpl3 | 729 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/DisplayData.java | Java | gpl3 | 853 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/DataFile.java | Java | gpl3 | 2,176 |
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,
*
... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/ResultStream.java | Java | gpl3 | 1,255 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/HttpError.java | Java | gpl3 | 424 |
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;
... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/ExecuteRequest.java | Java | gpl3 | 1,336 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/SageSingleCell.java | Java | gpl3 | 19,545 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/SessionEnd.java | Java | gpl3 | 429 |
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) == '{') {
... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/JSONWriter.java | Java | gpl3 | 921 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/PythonOutput.java | Java | gpl3 | 3,522 |
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... | 12085952-sageandroid | commandline/src/org/sagemath/singlecellserver/Transaction.java | Java | gpl3 | 2,152 |
package org.sagemath.commandline;
import java.util.LinkedList;
import org.sagemath.singlecellserver.CommandOutput;
import org.sagemath.singlecellserver.CommandReply;
import org.sagemath.singlecellserver.Interact;
import org.sagemath.singlecellserver.SageSingleCell;
import org.sagemath.singlecellserver.SageSingleCell.... | 12085952-sageandroid | commandline/src/org/sagemath/commandline/Testcase.java | Java | gpl3 | 2,308 |
package org.sagemath.commandline;
import java.io.Console;
import junit.framework.Assert;
public class Client {
private static final String TAG = "Client";
private Console console;
public Client() {
console = System.console();
}
public static void main(String[] args) {
Client client = new Client();
if... | 12085952-sageandroid | commandline/src/org/sagemath/commandline/Client.java | Java | gpl3 | 540 |
package org.sagemath.commandline;
import java.util.LinkedList;
import org.sagemath.singlecellserver.CommandReply;
import org.sagemath.singlecellserver.CommandRequest;
import org.sagemath.singlecellserver.SageSingleCell;
import org.sagemath.singlecellserver.Transaction;
public class MyTransaction extends Transaction... | 12085952-sageandroid | commandline/src/org/sagemath/commandline/MyTransaction.java | Java | gpl3 | 794 |
package org.sagemath.commandline;
import java.io.Console;
import java.util.LinkedList;
import java.util.ListIterator;
import javax.swing.SingleSelectionModel;
import org.sagemath.singlecellserver.CommandOutput;
import org.sagemath.singlecellserver.CommandReply;
import org.sagemath.singlecellserver.ExecuteRequest;
im... | 12085952-sageandroid | commandline/src/org/sagemath/commandline/Test.java | Java | gpl3 | 3,345 |
/* Javadoc style sheet */
/*
Overall document style
*/
body {
background-color:#ffffff;
color:#353833;
font-family:Arial, Helvetica, sans-serif;
font-size:76%;
margin:0;
}
a:link, a:visited {
text-decoration:none;
color:#4c6b87;
}
a:hover, a:focus {
text-decoration:none;
color:#bb7a2... | 12085952-sageandroid | commandline/doc/stylesheet.css | CSS | gpl3 | 11,139 |
/*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ================... | 11hca1-java-web | trunk/web/style.css | CSS | gpl3 | 22,629 |
<%--
Document : index
Created on : Sep 7, 2012, 11:49:06 AM
Author : 4pril
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[... | 11hca1-java-web | trunk/web/index.jsp | Java Server Pages | gpl3 | 12,508 |
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if ... | 11hca1-java-web | trunk/web/js/plugins.js | JavaScript | gpl3 | 898 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Function from :
* http://trentgardner.net/jquery/serialize-json-with-jquery/
*/
(function( $ ){
$.fn.serializeJSON=function() {
var json = {};
jQuery.map($(this).serializeArray(... | 11hca1-java-web | trunk/web/js/myScript.js | JavaScript | gpl3 | 4,120 |
// XRegExp 1.5.1
// (c) 2007-2012 Steven Levithan
// MIT License
// <http://xregexp.com>
// Provides an augmented, extensible, cross-browser implementation of regular expressions,
// including support for additional syntax, flags, and methods
var XRegExp;
if (XRegExp) {
// Avoid running twice, since that would br... | 11hca1-java-web | trunk/web/js/libs/sh/XRegExp.js | JavaScript | gpl3 | 29,440 |
(function() {
var sh = SyntaxHighlighter;
/**
* Provides functionality to dynamically load only the brushes that a needed to render the current page.
*
* There are two syntaxes that autoload understands. For example:
*
* SyntaxHighlighter.autoloader(
* [ 'applescript', 'Scripts/shBrushAppleScript.... | 11hca1-java-web | trunk/web/js/libs/sh/shAutoloader.js | JavaScript | gpl3 | 2,315 |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | 11hca1-java-web | trunk/web/js/libs/jquery.mousewheel-3.0.6.pack.js | JavaScript | gpl3 | 1,384 |
<%--
Document : login_page
Created on : Sep 12, 2012, 10:47:34 AM
Author : 4pril
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->... | 11hca1-java-web | trunk/web/login_page.jsp | Java Server Pages | gpl3 | 4,529 |
.syntaxhighlighter a,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody,
.syntaxhighlighter table thead,
.syntaxhighlighter table caption,
.syntaxhighlighter textarea {
-moz-border-radius: 0 0 0 0 !import... | 11hca1-java-web | trunk/web/css/shCore.css | CSS | gpl3 | 5,826 |
.syntaxhighlighter {
background-color: white !important;
}
.syntaxhighlighter .line.alt1 {
background-color: white !important;
}
.syntaxhighlighter .line.alt2 {
background-color: white !important;
}
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
background-color: #e0e0e0 ... | 11hca1-java-web | trunk/web/css/shThemeDefault.css | CSS | gpl3 | 2,499 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import pojo.User;
/**
*
* @author 4pril
*/
public class UserDAO extends MyQuery{
@Override
protected Class getPOJOClass() {
return this.getCl... | 11hca1-java-web | trunk/src/java/dao/UserDAO.java | Java | gpl3 | 2,033 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import org.hibernate.Hibernate;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import util.HibernateUtil;
/**
... | 11hca1-java-web | trunk/src/java/dao/MyQuery.java | Java | gpl3 | 4,490 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import pojo.ObjType;
/**
*
* @author 4pril
*/
public class ObjectTypeDAO extends MyQuery{
public static ObjType getObjectTypeByName(String obj_name){
St... | 11hca1-java-web | trunk/src/java/dao/ObjectTypeDAO.java | Java | gpl3 | 683 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import pojo.Object;
/**
*
* @author 4pril
*/
public class ObjectDAO extends MyQuery{
@Override
protected Class getPOJOClass() {
return this.getClass();
}
... | 11hca1-java-web | trunk/src/java/dao/ObjectDAO.java | Java | gpl3 | 429 |