code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
package org.dodgybits.shuffle.web.client.command;
import java.util.ArrayList;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import org.dodgybits.shuffle.web.client.service.TaskServiceAsync;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.in... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/command/GetTasksCommand.java | Java | asf20 | 1,060 |
package org.dodgybits.shuffle.web.client.command;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import org.dodgybits.shuffle.web.client.service.TaskServiceAsync;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
public class Sa... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/command/SaveTaskCommand.java | Java | asf20 | 1,226 |
package org.dodgybits.shuffle.web.client;
import gwtupload.client.IUploader;
import gwtupload.client.SingleUploader;
import org.dodgybits.shuffle.web.client.gin.ShuffleGinjector;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/Shuffle.java | Java | asf20 | 6,365 |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.inject.Inject;
p... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/Main.java | Java | asf20 | 966 |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.Ui... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/Navigation.java | Java | asf20 | 1,342 |
/*
* 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 in writing, software
* distributed... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/TopPanel.java | Java | asf20 | 2,640 |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.inject.Inject;
public class CentrePanel extends ResizeComposite {
TaskList taskList;
@Inject
public CentrePanel(TaskList taskList) {
this.taskList = taskList;
initWidget(taskList);... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/client/CentrePanel.java | Java | asf20 | 328 |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Identi... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/model/Context.java | Java | asf20 | 1,746 |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeys;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import static org.dodgybits.shuffle.web.... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/model/Task.java | Java | asf20 | 3,093 |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Identi... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/model/Project.java | Java | asf20 | 2,210 |
package org.dodgybits.shuffle.web.server.persistence;
import java.util.ArrayList;
import java.util.List;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import org.dodgybits.shuffle.web.client.model.KeyValue;
import com.google.appengine.api.datastore.Key;... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/persistence/JdoUtils.java | Java | asf20 | 2,158 |
package org.dodgybits.shuffle.web.server.persistence;
import javax.servlet.*;
import java.io.IOException;
/**
* Ensures we properly release persistence resources even in
* the face of exceptions.
*/
public class PersistenceFilter implements javax.servlet.Filter {
public void destroy() {
}
publi... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/persistence/PersistenceFilter.java | Java | asf20 | 622 |
package org.dodgybits.shuffle.web.server.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import org.dodgybits.shuffle.web.client.model.TaskFilter;
import org.dodgybits.shuffle.web.client.model.Tas... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/service/TaskServiceImpl.java | Java | asf20 | 5,361 |
package org.dodgybits.shuffle.web.server.service;
import gwtupload.server.UploadAction;
import gwtupload.server.exceptions.UploadActionException;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
import org.dodgybits.... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/service/RestoreServlet.java | Java | asf20 | 1,726 |
package org.dodgybits.shuffle.web.server.service;
import org.dodgybits.shuffle.web.client.model.LoginInfo;
import org.dodgybits.shuffle.web.client.service.LoginService;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFacto... | zyking1987-beiwanglu | server/src/org/dodgybits/shuffle/web/server/service/LoginServiceImpl.java | Java | asf20 | 1,088 |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| zyking1987-beiwanglu | createBackup.sh | Shell | asf20 | 232 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace zyaoCommon {
public class Class1 {
}
}
| zyaoproject | zyaoCommon/trunk/zyaoCommon/Class1.cs | C# | mpl11 | 156 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("zyaoCommon")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]... | zyaoproject | zyaoCommon/trunk/zyaoCommon/Properties/AssemblyInfo.cs | C# | mpl11 | 1,370 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 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 ap... | zyqm86-002 | src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java | Java | asf20 | 4,627 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 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 ap... | zyqm86-002 | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,418 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import a... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 19,305 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.HashSet;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.widget.ListView;
import com... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 7,652 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,245 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 15,398 |
package com.ch_linghu.fanfoudroid.service;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import com.ch_linghu.fanfoudroid.FanfouWidget;
import com.ch_linghu.fanfoudroid.R;
imp... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,494 |
package com.ch_linghu.fanfoudroid.data;
import com.ch_linghu.fanfoudroid.weibo.DirectMessage;
import com.ch_linghu.fanfoudroid.weibo.User;
import com.ch_linghu.fanfoudroid.helper.Utils;
public class Dm extends Message {
@SuppressWarnings("unused")
private static final String TAG = "Dm";
public bool... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 874 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
import android.os.Parcel;
import android.os.Parcelable;
public class User implements Parcelable {
public String id;
public String name;
public String screenName;
public String location;
public String description;
public String profil... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,792 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,276 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
public class Message {
public String id;
public String screenName;
public String text;
public String profileImageUrl;
public Date createdAt;
public String userId;
public String favorited;
public String truncated;
public St... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
package com.ch_linghu.fanfoudroid.data;
import android.content.ContentValues;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| zyqm86-002 | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 222 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 6,765 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.ch_linghu.fanfoudro... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 11,669 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/WriteActivity.java | Java | asf20 | 20,670 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.db.TwitterDatabase;
... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 7,284 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,004 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.io.File;
import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 8,987 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.animatio... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 7,082 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 8,211 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 17,171 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuI... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 13,976 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 16,914 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.preference.PreferenceManager;... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,822 |
package com.ch_linghu.fanfoudroid.ui.module;
import com.ch_linghu.fanfoudroid.R;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
im... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 2,701 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 7,009 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.preference.PreferenceManager;
import android.util.Lo... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 5,400 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphic... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,344 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.graphics.Color;
import android.text.Editable;
import android.text.InputFilter;
import android.text.Selection;
import android.text.TextWatcher;
import android.view.View.OnKeyListener;
import android.widget.EditText;
import android.widget.TextView;
... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,607 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.helper.ImageCache;
import com.ch_linghu.fanfoudroid.helper.Preferences... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 4,268 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.AbsListView;
import android.widget.ListView;
public class MyListView extends ListView implements ListView.OnScrollListener {
private int mS... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,620 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.widget.ListAdapter;
public interface TweetAdapter extends ListAdapter{
void refresh();
}
| zyqm86-002 | src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java | Java | asf20 | 152 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.base.UserArrayBaseActivity;
import com.ch_linghu.f... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/FollowersActivity.java | Java | asf20 | 2,557 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/MentionActivity.java | Java | asf20 | 3,419 |
package com.ch_linghu.fanfoudroid.http;
/**
* HTTP StatusCode is not 200
*/
public class HttpException extends Exception {
private int statusCode = -1;
public HttpException(String msg) {
super(msg);
}
public HttpException(Exception cause) {
super(cause);
}
public HttpE... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/http/HttpException.java | Java | asf20 | 741 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList;
import... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/http/HttpClient.java | Java | asf20 | 26,105 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Patter... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/http/Response.java | Java | asf20 | 8,925 |
package com.ch_linghu.fanfoudroid.http;
import java.util.HashMap;
import java.util.Map;
public class HTMLEntity {
public static String escape(String original) {
StringBuffer buf = new StringBuffer(original);
escape(buf);
return buf.toString();
}
public static void escape(StringBuf... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java | Java | asf20 | 26,524 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/LoginActivity.java | Java | asf20 | 10,440 |
/*
* Copyright (C) 2009 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 agree... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/FavoritesActivity.java | Java | asf20 | 4,526 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoud... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/UserTimelineActivity.java | Java | asf20 | 11,104 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.database.Cursor;
import android.os.Bundle;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfo... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/BrowseActivity.java | Java | asf20 | 1,977 |
package com.ch_linghu.fanfoudroid.task;
import java.util.HashMap;
import org.json.JSONException;
import com.ch_linghu.fanfoudroid.http.HttpException;
/**
* 暂未使用,待观察是否今后需要此类
* @author lds
*
*/
public class TaskParams {
private HashMap<String, Object> params = null;
public TaskParams() {
params = new Has... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TaskParams.java | Java | asf20 | 3,288 |
package com.ch_linghu.fanfoudroid.task;
import android.util.Log;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.base.BaseActivity... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TweetCommonTask.java | Java | asf20 | 2,896 |
package com.ch_linghu.fanfoudroid.task;
public interface TaskListener {
String getName();
void onPreExecute(GenericTask task);
void onPostExecute(GenericTask task, TaskResult result);
void onProgressUpdate(GenericTask task, Object param);
void onCancelled(GenericTask task);
}
| zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TaskListener.java | Java | asf20 | 285 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.util.Log;
public class TaskManager extends Observable {
private static final String TAG = "TaskManager";
public static final Integer CANCEL_ALL = 1;
public void cancelAll() {
... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TaskManager.java | Java | asf20 | 506 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public abstract class GenericTask extends AsyncTask<TaskParams, Object, TaskResult> ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/GenericTask.java | Java | asf20 | 2,154 |
package com.ch_linghu.fanfoudroid.task;
public abstract class TaskAdapter implements TaskListener {
public abstract String getName();
public void onPreExecute(GenericTask task) {};
public void onPostExecute(GenericTask task, TaskResult result) {};
public void onProgressUpdate(GenericTask task, Object... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TaskAdapter.java | Java | asf20 | 384 |
package com.ch_linghu.fanfoudroid.task;
public enum TaskResult {
OK,
FAILED,
CANCELLED,
NOT_FOLLOWED_ERROR,
IO_ERROR,
AUTH_ERROR
} | zyqm86-002 | src/com/ch_linghu/fanfoudroid/task/TaskResult.java | Java | asf20 | 141 |
/*
Copyright (c) 2007-2009
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following dis... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Query.java | Java | asf20 | 6,707 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Photo.java | Java | asf20 | 3,159 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/QueryResult.java | Java | asf20 | 6,404 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/WeiboSupport.java | Java | asf20 | 2,561 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Trend.java | Java | asf20 | 3,322 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.weibo;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Serializ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/UserWapper.java | Java | asf20 | 1,280 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/WeiboResponse.java | Java | asf20 | 9,545 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Weibo.java | Java | asf20 | 61,326 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Configuration.java | Java | asf20 | 12,101 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/User.java | Java | asf20 | 25,388 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Trends.java | Java | asf20 | 6,594 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Status.java | Java | asf20 | 13,533 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/IDs.java | Java | asf20 | 5,037 |
package com.ch_linghu.fanfoudroid.weibo;
/**
* An exception class that will be thrown when WeiboAPI calls are failed.<br>
* In case the Fanfou server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
*/
public class WeiboException extends Exception {
private int statusCode... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/WeiboException.java | Java | asf20 | 981 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/RetweetDetails.java | Java | asf20 | 6,254 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/RefuseError.java | Java | asf20 | 4,493 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/RateLimitStatus.java | Java | asf20 | 4,014 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/DirectMessage.java | Java | asf20 | 7,765 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/Paging.java | Java | asf20 | 3,846 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/weibo/SavedSearch.java | Java | asf20 | 5,040 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/PreferencesActivity.java | Java | asf20 | 2,577 |
/*
* Copyright (C) 2009 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... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/AboutDialog.java | Java | asf20 | 1,798 |
package com.ch_linghu.fanfoudroid.db;
import java.util.Date;
/**
* All information of status table
*
*/
public final class StatusTablesInfo {
} | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/StatusTablesInfo.java | Java | asf20 | 159 |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.User;
public final class UserInfoTable implements BaseColumns {
public static final String TAG = "U... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/UserInfoTable.java | Java | asf20 | 4,479 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.ArrayList;
import java.util.Arrays;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Wrapper of SQliteDatabse#query, OOP style.
*
* Usage:
* ------------------------------------------------
*... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/Query.java | Java | asf20 | 6,960 |
package com.ch_linghu.fanfoudroid.db.dao;
import android.database.Cursor;
/**
* Some as Spring JDBC RowMapper
*
* @see org.springframework.jdbc.core.RowMapper
* @see com.ch_linghu.fanfoudroid.db.dao.SqliteTemplate
* @param <T>
*/
public interface RowMapper<T> {
public T mapRow(Cursor cursor, int rowNum);
}... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/RowMapper.java | Java | asf20 | 321 |
package com.ch_linghu.fanfoudroid.db.dao;
import com.ch_linghu.fanfoudroid.db.MessageTable;
// TODO
public class DirectMessageDAO {
private static final String TAG = "DirectMessageDAO";
private SqliteTemplate sqliteTemplate;
public DirectMessageDAO() {
sqliteTemplate = new SqliteTemplat... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/DirectMessageDAO.java | Java | asf20 | 356 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.ch_linghu.fanfoudroid.db.TwitterDatabase;
/**
* Some as Spring JdbcTe... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/SqliteTemplate.java | Java | asf20 | 2,373 |
package com.ch_linghu.fanfoudroid.db.dao;
public class DAOFactory {
public StatusDAO getStatusDAO() {
return new StatusDAO();
}
public DirectMessageDAO getDirectMessageDAO() {
return new DirectMessageDAO();
}
} | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/DAOFactory.java | Java | asf20 | 249 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data2.Status;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/dao/StatusDAO.java | Java | asf20 | 6,275 |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Dm;
/**
* Table - Direct Messages
*
*/
public final class MessageTable implements BaseColumns {
publ... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/MessageTable.java | Java | asf20 | 3,293 |
package com.ch_linghu.fanfoudroid.db;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.helper.Utils;
/**
* T... | zyqm86-002 | src/com/ch_linghu/fanfoudroid/db/StatusTable.java | Java | asf20 | 6,758 |