This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import string | |
import pickle | |
from operator import itemgetter | |
from nltk.corpus import stopwords as sw | |
from nltk.corpus import wordnet as wn | |
from nltk import wordpunct_tokenize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- View your api_dev_key here: http://pastebin.com/api | |
local PASTEBIN_API_DEVELOPER_KEY = "" | |
-- Generate your api_user_key here: http://pastebin.com/api/api_user_key.html | |
local PASTEBIN_API_USER_KEY = "" | |
-- This makes a paste public or private, public = 0, unlisted = 1, private = 2 | |
local PASTEBIN_API_PASTE_PRIVATE = "1" | |
--[[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple log filter to turn debug logging on and off on a per-module | |
# basis, when using tornado-style logging. Note that this works based | |
# on the module where the log statement occurs, not the name passed to | |
# logging.getLogger(), so it works even with libraries write directly | |
# to the root logger. | |
# | |
# One drawback to this approach (as opposed to using distinct | |
# per-module loggers and setting their levels appropriately) is that | |
# logger.isEnabledFor(DEBUG) will return true even when called from a | |
# module where debug output is not enabled, so modules that perform |
NewerOlder