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
    
  
  
    
  | include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go | 
  
    
      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
    
  
  
    
  | diff --git a/tornado/httpclient.py b/tornado/httpclient.py | |
| index 25d07ae..89e1fd4 100644 | |
| --- a/tornado/httpclient.py | |
| +++ b/tornado/httpclient.py | |
| @@ -536,7 +536,8 @@ def _curl_setup_request(curl, request, buffer, headers): | |
| curl.setopt(pycurl.FOLLOWLOCATION, request.follow_redirects) | |
| curl.setopt(pycurl.MAXREDIRS, request.max_redirects) | |
| curl.setopt(pycurl.CONNECTTIMEOUT, int(request.connect_timeout)) | |
| - curl.setopt(pycurl.TIMEOUT, int(request.request_timeout)) | |
| + curl.setopt(pycurl.NOSIGNAL, 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', 'a', 1.0) | |
| ('a', 'u', 0.70833333333333337) | |
| ('a', 'n', 0.69565217391304346) | |
| ('a', 'e', 0.68181818181818177) | |
| ('a', 'z', 0.65000000000000002) | |
| ('a', 'o', 0.625) | |
| ('a', 'x', 0.61904761904761907) | |
| ('a', 'p', 0.6071428571428571) | |
| ('a', 'q', 0.55172413793103448) | |
| ('a', 'c', 0.54166666666666663) | 
  
    
      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
    
  
  
    
  | // Based on http://bit.ly/215MBZ | |
| function FailureDetector(ws) { | |
| // ws stands for window size. | |
| // How many heartbeat intervals we keep track of. | |
| this.ws = ws || 100; | |
| this.window = []; | |
| this.last = null; | |
| } | |
| exports.FailureDetector = FailureDetector; | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env python | |
| __author__ = 'Frank Smit <[email protected]>' | |
| __version__ = '0.1.0' | |
| import functools | |
| import psycopg2 | |
| from tornado.ioloop import IOLoop, PeriodicCallback | 
  
    
      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 unittest, os, os.path, sys, urllib | |
| import tornado.database | |
| import tornado.options | |
| from tornado.options import options | |
| from tornado.testing import AsyncHTTPTestCase | |
| # add application root to sys.path | |
| APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) | |
| sys.path.append(os.path.join(APP_ROOT, '..')) | 
  
    
      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 logging | |
| from math import exp | |
| from random import random | |
| from time import sleep | |
| from time import time | |
| from uuid import uuid1 | |
| from redis.exceptions import WatchError | 
  
    
      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
    
  
  
    
  | from riak import RiakError | |
| class Bucket(object): | |
| """Wrap up retries and conflict resolution""" | |
| def __init__(self, client, name, resolve, retries=5): | |
| self.client = client | |
| self.name = name | |
| self.bucket = client.bucket(name) # base bucket | |
| self.resolve = resolve | |
| self.retries = retries | 
  
    
      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
    
  
  
    
  | # -*- coding: utf-8 -*- | |
| """ | |
| amazon_sender.py | |
| ~~~~~~~~ | |
| Python helper class that can send emails using Amazon SES and boto. | |
| The biggest feature of this class is that encodings are handled properly. | |
| It can send both text and html emails. | |
| This implementation is using Python's standard library (which opens up for a lot more options). | 
  
    
      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
    
  
  
    
  | /* Tiny web server in Golang for sharing a folder | |
| Copyright (c) 2010-2014 Alexis ROBERT <[email protected]> | |
| Contains some code from Golang's http.ServeFile method, and | |
| uses lighttpd's directory listing HTML template. */ | |
| package main | |
| import "net/http" | |
| import "net/url" |