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
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/DictionaryNumbers.java
Java
gpl3
1,360
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/DictionaryStringArray.java
Java
gpl3
1,857
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/DictionaryFactory.java
Java
gpl3
4,599
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/DictionaryFlat.java
Java
gpl3
2,080
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/DictionaryLetters.java
Java
gpl3
1,379
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/dictionary/IDictionary.java
Java
gpl3
1,023
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/Grid.java
Java
gpl3
13,332
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/Word.java
Java
gpl3
2,837
package com.dahl.brendan.wordsearch.model; import android.content.res.ColorStateList; import android.graphics.Color; import android.os.Bundle; import com.dahl.brendan.wordsearch.view.R; public enum Theme { ORIGINAL(0, Color.parseColor("white"), Color.parseColor("green"), Color.parseColor("yellow"), Color.parseColor...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/Theme.java
Java
gpl3
3,504
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/Preferences.java
Java
gpl3
5,630
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/Selection.java
Java
gpl3
2,902
// This file is part of Open WordSearch. // // Open WordSearch is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/HighScore.java
Java
gpl3
6,864
package com.dahl.brendan.wordsearch.model; import android.os.Parcel; import android.os.Parcelable; public enum ColorState implements Parcelable { FOUND, SELECTED, NORMAL; public static final Parcelable.Creator<ColorState> CREATOR = new Parcelable.Creator<ColorState>() { public ColorState createFromParcel(Parcel i...
zywhlc-wordsearch-project
src/com/dahl/brendan/wordsearch/model/ColorState.java
Java
gpl3
599
package com.dahl.brendan.util; import android.content.Context; import android.content.pm.PackageManager.NameNotFoundException; import android.os.AsyncTask; import com.google.android.apps.analytics.GoogleAnalyticsTracker; public class AnalyticsTask extends AsyncTask<String, Integer, Boolean> { public final static St...
zywhlc-wordsearch-project
src/com/dahl/brendan/util/AnalyticsTask.java
Java
gpl3
1,729
checkout source at http://code.google.com/p/wordsearch-android/source/checkout setup eclipse to work with android projects (see http://developer.android.com/intl/zh-CN/guide/developing/eclipse-adt.html) import project into eclipse set project build target, currently using 1.6 for releases
zywhlc-wordsearch-project
BUILD
Starlark
gpl3
290
from distutils.core import setup setup( name='webscraping', version='1', packages=['webscraping'], package_dir={'webscraping':'.'}, # look for package contents in current directory author='Richard Penman', author_email='richard@sitescraper.net', description='Pure python library aimed to mak...
zyuansun-webscraping
setup.py
Python
lgpl
414
__doc__ = """ pdict has a dictionary like interface and a sqlite backend It uses pickle to store Python objects and strings, which are then compressed Multithreading is supported """ import os import sys import datetime import sqlite3 import zlib import threading import md5 import shutil try: import cPickle as pic...
zyuansun-webscraping
pdict.py
Python
lgpl
15,608
__doc__ = 'High level functions for extracting and storing data' import os import re import csv import math import logging from collections import defaultdict import common import settings import xpath def get_excerpt(html, try_meta=False, max_chars=255): """Extract excerpt from this HTML by finding largest text...
zyuansun-webscraping
alg.py
Python
lgpl
4,258
__doc__ = 'Framework for crawling and scraping webpages with JQuery' import sys import os import re import urllib2 import random from time import time, sleep from datetime import datetime from PyQt4.QtGui import QApplication, QDesktopServices, QImage, QPainter from PyQt4.QtCore import QByteArray, QString, QUrl, QTimer...
zyuansun-webscraping
webkit.py
Python
lgpl
20,877
__doc__ = 'default application wide settings' import sys import os import logging # default location to store output state files dirname, filename = os.path.split(sys.argv[0]) state_dir = os.path.join(dirname, '.' + filename.replace('.py', '')) if not os.path.exists(state_dir): os.mkdir(state_dir) cache_file =...
zyuansun-webscraping
settings.py
Python
lgpl
3,233
__doc__ = """ This module implements a subset of the XPath standard: - tags - indices - attributes - descendants Plus a few extensions useful to my work: - attributes can contain regular expressions - indices can be negative Generally XPath solutions will normalize the HTML into XHTML before selecting nodes. How...
zyuansun-webscraping
xpath.py
Python
lgpl
12,973
__doc__ = """ Description: Helper methods to download and crawl web content using threads Website: http://code.google.com/p/webscraping/ License: LGPL """ import os import re import copy import collections import random import urllib import urllib2 import urlparse import StringIO import time import datetime import su...
zyuansun-webscraping
download.py
Python
lgpl
33,764
# -*- coding: utf-8 -*- __doc__ = 'Common web scraping related functions' import os import re import sys import csv csv.field_size_limit(sys.maxint) import time import glob import string import urllib import string import urllib2 import urlparse import cookielib import itertools import htmlentitydefs import logging i...
zyuansun-webscraping
common.py
Python
lgpl
18,820
__doc__ = """ Description: webscraping library Website: http://code.google.com/p/webscraping/ License: LGPL """ if __name__ == '__main__': import doctest for name in ['adt', 'alg', 'common', 'download', 'pdict', 'settings', 'webkit', 'xpath']: module = __import__(name) print name print ...
zyuansun-webscraping
__init__.py
Python
lgpl
344
__doc__ = """ Description: High level abstract datatypes Website: http://code.google.com/p/webscraping/ License: LGPL """ from datetime import datetime, timedelta from collections import defaultdict, deque class Bag(dict): """Dictionary object with attribute like access """ def __init__(self, *args, **kw...
zyuansun-webscraping
adt.py
Python
lgpl
1,203
/*** 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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
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-003
src/com/ch_linghu/fanfoudroid/db/dao/Query.java
Java
asf20
6,960