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
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/utilities.cpp
C++
asf20
6,880
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/pixa.cpp
C++
asf20
7,478
/* * Copyright 2010, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/config_auto.h
C
asf20
836
/* * Copyright 2010, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/common.h
C
asf20
1,571
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/readfile.cpp
C++
asf20
5,996
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/box.cpp
C++
asf20
2,672
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/pix.cpp
C++
asf20
7,886
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := liblept # leptonica (minus freetype) BLACKLIST_SRC_FILES := \ %endiantest.c \ %freetype.c \ %xtractprotos.c LEPTONICA_SRC_FILES := \ $(subst $(LOCAL_PATH)/,,$(wildcard $(LEPTONICA_PATH)/src/*.c)) LOCAL_SRC_FILES := \ $(filter-out $(BLACK...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/Android.mk
Makefile
asf20
924
/* * Copyright 2011, Google Inc. * * 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 applicable law or agreed to...
1191149398c-ocr
tesseract-android-tools/jni/com_googlecode_leptonica_android/jni.cpp
C++
asf20
853
APP_STL := gnustl_static APP_ABI := armeabi armeabi-v7a x86 mips APP_OPTIM := release APP_CPPFLAGS += -fexceptions -frtti
1191149398c-ocr
tesseract-android-tools/jni/Application.mk
Makefile
asf20
122
LOCAL_PATH := $(call my-dir) TESSERACT_PATH := $(LOCAL_PATH)/com_googlecode_tesseract_android/src LEPTONICA_PATH := $(LOCAL_PATH)/com_googlecode_leptonica_android/src # Just build the Android.mk files in the subdirs include $(call all-subdir-makefiles)
1191149398c-ocr
tesseract-android-tools/jni/Android.mk
Makefile
asf20
254
#!/bin/bash curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz tar -zxvf tesseract-ocr-3.02.02.tar.gz tar -zxvf leptonica-1.69.tar.gz rm -f tesseract-ocr-3.02.02.tar.gz rm -f leptonica-1.69.tar.gz mv tesseract-ocr jni/com_g...
1191149398c-ocr
tesseract-android-tools/dependencies.sh
Shell
asf20
472
import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.Scanner; public class Client { /** * @param args * @throws IOException * @throws UnknownHostException */ public static void main(String[] args) throws Unkno...
122group2
trunk/MockUpServerClient/src/Client.java
Java
gpl2
752
import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; public class Server { public static void main(String[] args) throws IOException { ServerSocket serverSocket = new ServerSocket(8080); Socket socket = serverSocket....
122group2
trunk/MockUpServerClient/src/Server.java
Java
gpl2
687
package { public class ConfigurationDS { public var awaymode: String; public var awaytime: String; public var soundset: Boolean; public var buddysort: String; public var historylength: int; /*Properties of visuals*/ public var tabcolor: String; public var tabborder: String; public v...
122group2
trunk/Standalone Code/ConfigurationDS.as
ActionScript
gpl2
2,236
package { public class MessageDS { public var type:int; public var userID:String; public var recipientIDs:Array; public var mess:String; public var timestamp:String; public function MessageDS(type:int, user:String, recip:Array, rmess:String, ti...
122group2
trunk/Standalone Code/MessageDS.as
ActionScript
gpl2
1,753
package { public class BuddyDS { public var status:String; public var buddyID:String; public function BuddyDS(statUs:String, buddyId:String) { this.status = statUs; this.buddyID = buddyId; } public function getBuddyStatus():String { return status; } public function getBuddyID(...
122group2
trunk/Standalone Code/BuddyDS.as
ActionScript
gpl2
390
package { public class MessageListDS { public var messageList:Array; public function MessageListDS() { messageList = new Array(); } public function addToMessageList(ms:MessageDS) { messageList.push(ms); } public f...
122group2
trunk/Standalone Code/MessageListDS.as
ActionScript
gpl2
1,233
package { public class Special_Commands { var ACE:String = " A"; var KING:String = " K"; var QUEEN:String = " Q"; var JACK:String = " J"; var picard:String = "\n" + " ________\n" + " , -** **~...
122group2
trunk/Standalone Code/Special_Commands.as
ActionScript
gpl2
9,779
package { import flash.net.*; import flash.xml.*; import flash.events.*; import flash.errors.*; public class CommObject { // Location of pIMp server var SERVICE_URL:String = "ice-storm.ics.uci.edu"; //Port to connect to server var PORT_NUM:int = 4444; //Socket to connect to server...
122group2
trunk/Standalone Code/CommObject.as
ActionScript
gpl2
22,449
package { public class BuddyListDS { import BuddyDS; var BuddyDSlist: Array; public function BuddyListDS() { BuddyDSlist = new Array(); } public function addBuddyDS(bud: BuddyDS): void { if (!this.hasBuddyDS(bud.getBuddyID())) { BuddyDSlist.push(bud); BuddyDS...
122group2
trunk/Standalone Code/BuddyListDS.as
ActionScript
gpl2
1,522
package DBComm; import java.util.Date; public class ChatMessage { private String mySender; private String myReciever; private String myText; private Long mySrvTimeStamp; private Long myClintTimeStamp; public ChatMessage(){ this.mySender = ""; this.setMyReciever(""); this.myText = ""; this.mySrvTimeSt...
122group2
trunk/WebCommCode/src/DBComm/ChatMessage.java
Java
gpl2
1,178
package DBComm; // ReturnCodes.java // A class consisting of static return codes and nothing else // ex: return ReturnCodes.SUCCESS public class ReturnCodes { // general / server response code(s) public static int SERVER_ERROR = 0; public static int SUCCESS = 1; // specific login response code(s) pu...
122group2
trunk/WebCommCode/src/DBComm/ReturnCodes.java
Java
gpl2
673
package DBComm; import java.util.ArrayList; //Dan Morgan public class Configuration { private ArrayList<String> _configuration; //index 0 = _clientID; //index 1 = _tabFill; //index 2 =_tabStroke; //index 3 = _windowFill; //index 4 = _windowStroke; //index 5 = _chatWindowColor; //index 6 = _textCo...
122group2
trunk/WebCommCode/src/DBComm/Configuration.java
Java
gpl2
1,816
package DBComm; //Hold Stats regarding IMing activity // //Scott J. Ditch public class Stats { private int messages; private int aveLength; private int fileShares; private int statusChanges; private int users; private int buddies; private int currentMessages; private long startTime; pub...
122group2
trunk/WebCommCode/src/DBComm/Stats.java
Java
gpl2
1,915
package DBComm; import java.sql.SQLException; import java.util.ArrayList; import messages.ChatMessage; // DBComm is the class responsible for reading and writing information to the database. An SQL implementation of a // database has been used for this project. A jdbc driver is also used and an additional library...
122group2
trunk/WebCommCode/src/DBComm/DBComm.java
Java
gpl2
37,790
package DBComm; public class DBExample{ private java.sql.Connection con = null; private final String url = "jdbc:mysql://"; private final String serverName= "192.168.0.102"; //Robert's IP 192.168.0.102 private final String portNumber = "3306"; //MySQL: 3306. SQL Server 2008: 50479 pr...
122group2
trunk/WebCommCode/src/DBComm/DBExample.java
Java
gpl2
5,561
package DBComm; public class Scrubber { static public String scrub(String str) { str = replaceString(str,"&","&amp;"); str = replaceString(str,"<","&lt;"); str = replaceString(str,">","&gt;"); str = replaceString(str,"\"","&quot;"); str = replaceString(str,"'","&apos;"); return str; } /...
122group2
trunk/WebCommCode/src/DBComm/Scrubber.java
Java
gpl2
1,320
package DBComm; //Dan Morgan import java.util.ArrayList; public class BuddyList { private ArrayList<Buddy> buddyList = new ArrayList<Buddy>(); // private Buddy myBuddy; public BuddyList(){ // this.myBuddy = new Buddy(); } public void addBuddy(Buddy myBuddy ){ buddyList.add(myBuddy); }...
122group2
trunk/WebCommCode/src/DBComm/BuddyList.java
Java
gpl2
395
package DBComm; public class Buddy { private String buddy; private int status; public Buddy(){ this.buddy = ""; this.status = 0; } public Buddy(String buddyName, int status){ this.buddy = buddyName; this.status = status; } public String toString() { return this.buddy + ":" + this.status; } p...
122group2
trunk/WebCommCode/src/DBComm/Buddy.java
Java
gpl2
560
package DBComm; public class RobertsClass { }
122group2
trunk/WebCommCode/src/DBComm/RobertsClass.java
Java
gpl2
48
package DBComm; public class Core { }
122group2
trunk/WebCommCode/src/DBComm/Core.java
Java
gpl2
46
package responder; import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import D...
122group2
trunk/WebCommCode/src/responder/WebResponder.java
Java
gpl2
4,798
package org.json; /** * The JSONException is thrown by the JSON.org classes then things are amiss. * @author JSON.org * @version 2008-09-18 */ public class JSONException extends Exception { private Throwable cause; /** * Constructs a JSONException with an explanatory message. * @param message De...
122group2
trunk/WebCommCode/src/org/json/JSONException.java
Java
gpl2
614
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,...
122group2
trunk/WebCommCode/src/org/json/XML.java
Java
gpl2
14,108
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,...
122group2
trunk/WebCommCode/src/org/json/JSONML.java
Java
gpl2
14,849
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,...
122group2
trunk/WebCommCode/src/org/json/CDL.java
Java
gpl2
9,131
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,...
122group2
trunk/WebCommCode/src/org/json/HTTP.java
Java
gpl2
5,662
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,...
122group2
trunk/WebCommCode/src/org/json/Cookie.java
Java
gpl2
6,414
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,...
122group2
trunk/WebCommCode/src/org/json/HTTPTokener.java
Java
gpl2
2,406
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,...
122group2
trunk/WebCommCode/src/org/json/JSONObject.java
Java
gpl2
51,991
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, publish,...
122group2
trunk/WebCommCode/src/org/json/JSONStringer.java
Java
gpl2
3,188
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,...
122group2
trunk/WebCommCode/src/org/json/XMLTokener.java
Java
gpl2
10,300
package org.json; import java.io.BufferedReader; import java.io.IOException; 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 and associated documentation files (the "Software"), to deal in...
122group2
trunk/WebCommCode/src/org/json/JSONTokener.java
Java
gpl2
11,958
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,...
122group2
trunk/WebCommCode/src/org/json/CookieList.java
Java
gpl2
3,271
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</code...
122group2
trunk/WebCommCode/src/org/json/JSONString.java
Java
gpl2
694
package org.json; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.io.StringWriter; /** * Test class. This file is not formally a member of the org.json library. * It is just a casual test tool. */ public class Test { /** * Entry point. * @param args */ ...
122group2
trunk/WebCommCode/src/org/json/Test.java
Java
gpl2
29,218
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 without limitat...
122group2
trunk/WebCommCode/src/org/json/JSONWriter.java
Java
gpl2
10,205
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,...
122group2
trunk/WebCommCode/src/org/json/JSONArray.java
Java
gpl2
30,158
<% String error = request.getParameter( "error" ); Boolean logged = false; session.setAttribute( "Logged", logged ); %> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <head> <link rel="stylesheet" href="...
122group2
trunk/WebCommCode/122/index.jsp
Java Server Pages
gpl2
5,990
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" href="images/UrbanArtist.css" type="text/css" /> <title>pIMp: Downloads</title> </head> <body> <!-- wrap starts here --> <div id="wrap"> <!--header --> <div id="header"> <!-- <h1 id="logo-...
122group2
trunk/WebCommCode/122/downloads.jsp
Java Server Pages
gpl2
3,133
#content { overflow: hidden; } .buddyWindow { position:absolute; display:none; width:300px; height: 250px; background-color: white; border:1px solid black; font: 10pt arial; } .buddyHandle { height:15px; background-color:#AAAAFF; border-bottom:1px solid black; padding:3px; ...
122group2
trunk/WebCommCode/122/im.css
CSS
gpl2
1,551
/* ---------------------------------------------- Template Name : UrbanArtist Template Code : S-0025 Version : 1.0 Author : Erwin Aligam Author URI : http://www.styleshout.com/ Last Date Modified : June 30, 2008 ------------------------------------------------ */ /* ------------------------...
122group2
trunk/WebCommCode/122/images/UrbanArtist.css
CSS
gpl2
9,334
<html> <head> <link rel="stylesheet" href="im.css"> <script src="jquery-1.3.1.min.js"></script> <script src="jquery-ui-1.7.custom.min.js"></script> <script src="jquery.rpc.js"></script> <script> var zindex = 1; var id = 1; var initOffset = 10; var initXY = 30; function d...
122group2
trunk/WebCommCode/122/---im.html
HTML
gpl2
3,330
<html> <head> <script src="jquery-1.3.1.min.js"></script> <script src="jquery-ui-1.7.custom.min.js"></script> <script> $(document).ready(function(){ $("#register").click(function(){register()}); $("#add").click(function(){add()}); $("#remove").click(function(){remove()}); $("#getlist").click...
122group2
trunk/WebCommCode/122/commtest.html
HTML
gpl2
3,415
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" href="images/UrbanArtist.css" type="text/css" /> <script src="jquery.js" type="text/javascript" charset="utf-8"></script> <script src="jquery.valid8.js" type="text/javascript" charset="utf-8"></script> <!-- <scr...
122group2
trunk/WebCommCode/122/register.jsp
Java Server Pages
gpl2
5,672
(function($){ $.fn.extend({ valid8: function(options) { return this.each(function(){ $(this).data('valid', false); var defaultOptions = { reguglarExpressions: [], ajaxRequests: [], jsFunctions: [], onValid: defaultOnValid, onError: defaultOnErro...
122group2
trunk/WebCommCode/122/jquery.valid8.js
JavaScript
gpl2
5,094
<html> <head> <link rel='stylesheet' href='im.css'> <style type="text/css"> /* pushes the page to the full capacity of the viewing area */ html {height:100%;} body {height:100%; margin:0; padding:0;} /* prepares the background image to full capacity of the viewing area */ #bg ...
122group2
trunk/WebCommCode/122/im.jsp
Java Server Pages
gpl2
3,902
//http://plugins.jquery.com/files/jquery.rpc.js_1.txt window.jQuery = window.jQuery || {}; jQuery.rpc = function(url, dataType, onLoadCallback, version) { return new (function(url, dataType, onLoadCallback, version) { version = version || "1.0"; dataType = dataType || "json"; if(dataType != "json" && dataType ...
122group2
trunk/WebCommCode/122/jquery.rpc.js
JavaScript
gpl2
4,906
//initiailzie stuff when document is ready $(document).ready(function() { // gets username var username = gup("id"); //alert(username); // testing field // a hash map to return the username $("#data").data("username", username); USER_ID = $("#data").data("username"); //get the buddy list getB...
122group2
trunk/WebCommCode/122/im.js
JavaScript
gpl2
16,119
package edu.uci.ics.xmlrpc.webserver; import java.net.InetAddress; import org.apache.xmlrpc.common.TypeConverterFactoryImpl; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.server.XmlRpcServerConfigImpl; import org.apache.xmlrpc.we...
122group2
trunk/pIMp/XMLRPCServer/edu/uci/ics/xmlrpc/webserver/ServletServer.java
Java
gpl2
800
package edu.uci.ics.xmlrpc.webserver; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class Calculator extends XmlRpcServlet { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } }
122group2
trunk/pIMp/XMLRPCServer/edu/uci/ics/xmlrpc/webserver/Calculator.java
Java
gpl2
300
package client; import java.io.*; import java.net.*; public class Client { public static void main(String[] args) throws IOException { String host = "169.234.14.7"; // String host = "169.234.15.29"; int port = 4444; String username = ""; String destination = ""; ...
122group2
trunk/pIMp/ChatSockets/client/Client.java
Java
gpl2
3,531
package parser; public class ChatMessage { private String type; private String from; private String to; private long timestamp; private String text; public ChatMessage(String type, String from, String to, long timestamp, String text) { this.type = type; this.from = from; this.to = to; this.timestamp =...
122group2
trunk/pIMp/ChatSockets/parser/ChatMessage.java
Java
gpl2
1,301
package parser; public class ReturnStatusMessage { private String type; private String username; private int status; public ReturnStatusMessage(String type, String username, int status) { this.type = type; this.username = username; this.status = status; } public void setType(String ty...
122group2
trunk/pIMp/ChatSockets/parser/ReturnStatusMessage.java
Java
gpl2
968
package parser; public class RemoveBuddyMessage { private String type; private String from; private String to; public RemoveBuddyMessage(String type, String from, String to) { this.type = type; this.from = from; this.to = to; } public void setType(String type) {this.type = type;} pu...
122group2
trunk/pIMp/ChatSockets/parser/RemoveBuddyMessage.java
Java
gpl2
838
package parser; public class AddBuddyMessage { private String type; private String from; private String to; public AddBuddyMessage(String type, String from, String to) { this.type = type; this.from = from; this.to = to; } public void setType(String type) {this.type = type;} public v...
122group2
trunk/pIMp/ChatSockets/parser/AddBuddyMessage.java
Java
gpl2
832
package parser; import messages.Message; public class GetBuddyListMessage extends Message { private String type; private String username; public GetBuddyListMessage() {} public GetBuddyListMessage(String type, String username) { super("ReturnStatus"); this.type = type; this.username = usern...
122group2
trunk/pIMp/ChatSockets/parser/GetBuddyListMessage.java
Java
gpl2
1,207
package parser; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class MessageParser { public MessageParser() {} public ChatMessage getChatMessage(Element docEle) { // get the "from" tag NodeList users = docEle.getElementsByTagName("from"); Element userFrom = (Element)u...
122group2
trunk/pIMp/ChatSockets/parser/MessageParser.java
Java
gpl2
4,166
package server; import java.net.*; import java.io.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.xml.sax.I...
122group2
trunk/pIMp/ChatSockets/server/ServerThread.java
Java
gpl2
6,847
package server; import java.net.*; import java.io.*; public class Server { public static void main(String[] args) throws IOException { ServerSocket serverSocket = null; boolean listening = true; int port = 4444; try { serverSocket = new ServerSocket(port); // print out the server ...
122group2
trunk/pIMp/ChatSockets/server/Server.java
Java
gpl2
1,129
// ChatterServer // Receives XML-RPC messages sent by Client on the client side // and sends XML-RPC messages to ChatterClient on the client side package edu.uci.ics.xmlrpc.webserver; import java.net.URL; import java.util.HashMap; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.clien...
122group2
trunk/pIMp/ChatXMLRPCServer/edu/uci/ics/xmlrpc/webserver/ChatterServer.java
Java
gpl2
3,138
package edu.uci.ics.xmlrpc.webserver; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.webserver.ServletWebServer; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterServletServer { private static final int port...
122group2
trunk/pIMp/ChatXMLRPCServer/edu/uci/ics/xmlrpc/webserver/ChatterServletServer.java
Java
gpl2
1,390
// CommServerThread.java by Communications Team // March 9, 2009 // Thread for the Server Socket (one thread per connected client) package comm; public class CommServerThread { }
122group2
trunk/pIMp/Comm/comm/CommServerThread.java
Java
gpl2
192
// CommServerSocket.java by Communications Team // March 9, 2009 // Server socket pool that the Comm libraries will connect to package comm; public class CommServerSocket { }
122group2
trunk/pIMp/Comm/comm/CommServerSocket.java
Java
gpl2
188
// ChatterClient // Receives XML-RPC messages from ChatterServer on the server package edu.uci.ics.xmlrpc; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterClient extends XmlRpcServlet { /** * */ private static final long serialVersionUID = 1L; // receive a message after ...
122group2
trunk/pIMp/ChatXMLRPCClient/edu/uci/ics/xmlrpc/ChatterClient.java
Java
gpl2
618
package edu.uci.ics.xmlrpc; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory; public class ClientConsole{ ...
122group2
trunk/pIMp/ChatXMLRPCClient/edu/uci/ics/xmlrpc/ClientConsole.java
Java
gpl2
2,973
package edu.uci.ics.xmlrpc; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.webserver.ServletWebServer; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterServletServer { private static final int port = 8081; ...
122group2
trunk/pIMp/ChatXMLRPCClient/edu/uci/ics/xmlrpc/ChatterServletServer.java
Java
gpl2
1,336
public class Main { public static void main(String[] args) { ClientServerFrame frame = new ClientServerFrame(); frame.setVisible(true); } }
122group2
trunk/pIMp/PrototypeTransfer/Main.java
Java
gpl2
157
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.util.ArrayList; import java.util.Scanner; public class Connector implements Runnable { private String name; private String address; private int port; ...
122group2
trunk/pIMp/PrototypeTransfer/Connector.java
Java
gpl2
4,108
public interface AcceptorListener { void acceptorSucceeded(String clientAddress, String clientName); void acceptorFailed(String clientAddress, Exception reason); void pictureAccepted(byte[] bytes, String description); void pictureQuery(); void completedServer(); void getText(String line); }
122group2
trunk/pIMp/PrototypeTransfer/AcceptorListener.java
Java
gpl2
313
public class ProtocolException extends Exception { public ProtocolException(String message) { super(message); } }
122group2
trunk/pIMp/PrototypeTransfer/ProtocolException.java
Java
gpl2
132
import java.awt.*; import java.awt.event.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; public class ClientServerFrame extends JFrame implements ConnectorListener, AcceptorListener { ...
122group2
trunk/pIMp/PrototypeTransfer/ClientServerFrame.java
Java
gpl2
22,917
import javax.swing.*; public class PictureFrame extends JFrame { public JLabel pictureLabel; public JScrollPane scroll; public int height; public int width; public ImageIcon image; public byte[] filebytes; public PictureFrame(byte[] filebytes, int width, int height) { ...
122group2
trunk/pIMp/PrototypeTransfer/PictureFrame.java
Java
gpl2
873
import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.Scanner; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; // An Acceptor object represents a task that can be...
122group2
trunk/pIMp/PrototypeTransfer/Acceptor.java
Java
gpl2
5,512
public interface ConnectorListener { void connectorSucceeded(String serverAddress, String serverName); void connectorFailed(String serverAddress, Exception reason); void pictureSent(); void rejected(); void completedClient(); }
122group2
trunk/pIMp/PrototypeTransfer/ConnectorListener.java
Java
gpl2
247
import java.net.Socket; import java.util.Scanner; import javax.swing.JFrame; public class ChatDevice implements Runnable { Socket socket; Thread chatDevice; AcceptorListener gui; public ChatDevice(Socket socket, AcceptorListener gui) { this.socket = socket; chatDevice = new Thread(this); ...
122group2
trunk/pIMp/PrototypeTransfer/ChatDevice.java
Java
gpl2
741
package edu.uci.ics.xmlrpc; import java.net.MalformedURLException; import java.net.URL; import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory; import org.apa...
122group2
trunk/pIMp/XMLRPCClient/edu/uci/ics/xmlrpc/Client.java
Java
gpl2
1,327
package DBComm; // ReturnCodes.java // A class consisting of static return codes and nothing else // ex: return ReturnCodes.SUCCESS public class ReturnCodes { // general / server response code(s) public static int SERVER_ERROR = 0; public static int SUCCESS = 1; // specific login response code(s) pu...
122group2
trunk/pIMp/Server/DBComm/ReturnCodes.java
Java
gpl2
673
package DBComm; import java.util.ArrayList; //Dan Morgan public class Configuration { private ArrayList<String> _configuration; //index 0 = _clientID; //index 1 = _tabFill; //index 2 =_tabStroke; //index 3 = _windowFill; //index 4 = _windowStroke; //index 5 = _chatWindowColor; //index 6 = _textCo...
122group2
trunk/pIMp/Server/DBComm/Configuration.java
Java
gpl2
1,816
package DBComm; //Hold Stats regarding IMing activity // //Scott J. Ditch public class Stats { private int messages; private int aveLength; private int fileShares; private int statusChanges; private int users; private int buddies; private int currentMessages; private long startTime; pub...
122group2
trunk/pIMp/Server/DBComm/Stats.java
Java
gpl2
1,915
package DBComm; import java.sql.SQLException; import java.util.ArrayList; import messages.ChatMessage; // DBComm is the class responsible for reading and writing information to the database. An SQL implementation of a // database has been used for this project. A jdbc driver is also used and an additional library...
122group2
trunk/pIMp/Server/DBComm/DBComm.java
Java
gpl2
37,790
package DBComm; public class DBExample{ private java.sql.Connection con = null; private final String url = "jdbc:mysql://"; private final String serverName= "192.168.0.102"; //Robert's IP 192.168.0.102 private final String portNumber = "3306"; //MySQL: 3306. SQL Server 2008: 50479 pr...
122group2
trunk/pIMp/Server/DBComm/DBExample.java
Java
gpl2
5,561
package DBComm; public class Scrubber { static public String scrub(String str) { str = replaceString(str,"&","&amp;"); str = replaceString(str,"<","&lt;"); str = replaceString(str,">","&gt;"); str = replaceString(str,"\"","&quot;"); str = replaceString(str,"'","&apos;"); return str; } /...
122group2
trunk/pIMp/Server/DBComm/Scrubber.java
Java
gpl2
1,320
package DBComm; //Dan Morgan import java.util.ArrayList; public class BuddyList { private ArrayList<Buddy> buddyList = new ArrayList<Buddy>(); // private Buddy myBuddy; public BuddyList(){ // this.myBuddy = new Buddy(); } public void addBuddy(Buddy myBuddy ){ buddyList.add(myBuddy); }...
122group2
trunk/pIMp/Server/DBComm/BuddyList.java
Java
gpl2
395
package DBComm; public class Buddy { private String buddy; private int status; public Buddy(){ this.buddy = ""; this.status = 0; } public Buddy(String buddyName, int status){ this.buddy = buddyName; this.status = status; } public String toString() { return this.buddy + ":" + this.status; } p...
122group2
trunk/pIMp/Server/DBComm/Buddy.java
Java
gpl2
560
package DBComm; public class RobertsClass { }
122group2
trunk/pIMp/Server/DBComm/RobertsClass.java
Java
gpl2
48
package DBComm; public class Core { }
122group2
trunk/pIMp/Server/DBComm/Core.java
Java
gpl2
46
package messages; public class AwayMessage extends Message { private String mySender; private String myReciever; private String myText; private Long mySrvTimeStamp; private Long myClintTimeStamp; public AwayMessage(){ super("Away"); this.mySender = ""; this.setMyReciever(""); this.myText...
122group2
trunk/pIMp/Server/messages/AwayMessage.java
Java
gpl2
1,832
// ResultMessage.java // Provides a message-formatted XML response package messages; import java.util.ArrayList; public class ResultMessage extends Message { private int value = 0; // return value private ArrayList<String> details = new ArrayList<String>(); // <details> <first>, <second>, <third>, etc. ...
122group2
trunk/pIMp/Server/messages/ResultMessage.java
Java
gpl2
1,396