Did I find the right examples for you? yes no

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/g/l/glass.py-HEAD/examples/foursquare/app.py   glass.py(Download)
 
if __name__ == '__main__':
    print "Starting application at %s:%i" % (config.HOST, config.PORT)
    app.run(port=config.PORT, host=config.HOST)
 

src/s/h/Shoreditch-SampleAI-HEAD/player.py   Shoreditch-SampleAI(Download)
	return {"status": "success"}
 
run(host='localhost', port=config.PORT, reloader=True)

src/s/i/sirc-HEAD/bot.py   sirc(Download)
            factory = irc.connection.Factory()
        irc.bot.SingleServerIRCBot.__init__(self,
            [(config.SERVER, config.PORT), ],
            config.BOT_NAME,
            'm',

src/w/e/webot-0.0.1/webot/app.py   webot(Download)
 
if __name__ == '__main__':
    app.run(host=config.HOST, port=config.PORT, debug=True)
 

src/b/y/byd.me-HEAD/byd.me/weixin.py   byd.me(Download)
 
if __name__ == '__main__':
    app.run(host=config.HOST, port=config.PORT, debug=True)
 

src/r/e/regexdict-0.0.1/src/regexdict/app.py   regexdict(Download)
 
if __name__ == '__main__':
    bottle.run(host=config.HOST, port=config.PORT, debug=config.DEBUG)
 

src/r/e/regexdict-HEAD/src/regexdict/app.py   regexdict(Download)
 
if __name__ == '__main__':
    bottle.run(host=config.HOST, port=config.PORT, debug=config.DEBUG)
 

src/e/l/elovalo-HEAD/elocmd/connection.py   elovalo(Download)
    def __init__(self):
        self.ser = serial.Serial(
            port     = config.PORT,
            baudrate = config.BAUDRATE,
            timeout  = config.TIMEOUT,

src/n/o/no.js-HEAD/nodotjs/server.py   no.js(Download)
import urllib2
import json
from config import DB, COOKIE_SECRET, TIMEOUT, PORT
 
from brubeck.connections import WSGIConnection
#
config = {
    'msg_conn': WSGIConnection(port=PORT),
    'handler_tuples': [(r'^/$', IndexHandler),
                       (r'^/rooms$', RoomsHandler),

src/c/l/clevertagger-HEAD/extract_features.py   clevertagger(Download)
from collections import defaultdict
from smor_getpos import get_true_pos
from config import SFST_BIN, SMOR_MODEL, PORT, SMOR_ENCODING
 
class MorphAnalyzer():
        #regex to get coarse POS tag from SMOR output
        self.re_mainclass = re.compile(u'<\+(.*?)>')
        self.PORT = PORT
 
        # start server, and make sure it accepts connection

  1 | 2 | 3  Next