Quantcast
Channel: Security Tools – Security List Network™
Viewing all 443 articles
Browse latest View live

Cuckoo Sandbox v-2.0-dev released : is an automated dynamic malware analysis system.

$
0
0

Latest Change v-2.0 dev:
– analyzer; cosmetic changes
– conf; get rid of web.py and all occurences of the bottle library
– requirements.txt; get rid of web.py and all occurences of the bottle library
– modules; report owner in analysisinfo module.
– lib; some more av variants
– and many more..

cuckoo

Has been tested on Kali2.0,All Debian,Ubuntu 14 Trusty

Cuckoo Sandbox is an automated dynamic malware analysis system.
What does that mean? It simply means that you can throw any suspicious file at it and in a matter of seconds Cuckoo will provide you back some detailed results outlining what such file did when executed inside an isolated environment.

Installation:
– git clone https://github.com/cuckoobox/cuckoo
– cd cuckoo
– pip install -r requirements.txt
– python cuckoo.py -h For show help display
Usage:

Cuckoo Usage

Cuckoo Usage

Source : http://www.cuckoosandbox.org| Our Post before


Dnstwist v1.00 released.

$
0
0

Dnstwist is a tools for Generate and resolve domain variations to detect typo squatting, phishing and corporate espionage. Find similar-looking domains that adversaries can use to attack you. Can detect typosquatters, phishing attacks, fraud and corporate espionage. Useful as an additional source of targeted threat intelligence.

dns twistv1.00

dns twistv1.00

Key features:
Just not to waste time there are several good reasons to give it a try:
+ Wide range of efficient domain fuzzing algorithms
+ Multithreaded job distribution
+ Resolving domain names to IPv4 and IPv6
+ Querying for NS and MX records
+ Optional: Evaluating web page similarity with fuzzy hashes
+ Optional: GeoIP location information
+ Optional: Banner grabbing for HTTP and SMTP services
+ Optional: WHOIS lookups for creation and modification date
+ Optional: Output in CSV format

Required modules
If you want dnstwist to develop full power, please make sure the following Python modules are present on your system. If missing, dnstwist will still work, but without some cool features.
+ Python GeoIP https://pypi.python.org/pypi/GeoIP/
+ A DNS toolkit for Python http://www.dnspython.org/
+ WHOIS https://pypi.python.org/pypi/whois
+ Requests: HTTP for Humans http://www.python-requests.org/
+ ssdeep Python wrapper https://pypi.python.org/pypi/ssdeep

This tool has been tested on windows XP/7/Vista/8.1/10 and All Unix Environment.
Download : v1.00.zip | v1.00.tar.gz
Source : https://github.com/elceef/ | Our Post Before

CPPPyScan – Quick and dirty regex scanner for dangerous C++ code.

$
0
0

CPPPyScan is a Quick and dirty regex scanner for dangerous C++ code.
With optional arguments:
-h, –help show this help message and exit
-i, –infile File for all regex rules. Default is ‘rules.txt’
-r, –recursive Do not recursively search all files in the given directory
-v, –verbose Turn on (extremely) verbose mode
-e [EXTENSION], –extension [EXTENSION] filetype(s) to restrict search to. seperate lists via commas with no spaces
-o [OUTFILE], –outfile [OUTFILE] specify output file. Default is ‘results.csv’. NOTE: will overwrite file if it currently exists
-d DIRECTORY, –directory DIRECTORY directory to search
-f FILE, –file FILE file to search
-t THREADS, –threads THREADS
-z, –disableerrorhandling disable error handling to see full stack traces on errors

CPPPyScan is a Quick and dirty regex scanner for dangerous C++ code.

CPPPyScan is a Quick and dirty regex scanner for dangerous C++ code.

Script :

#! python2

from os import walk, path
from operator import itemgetter
import sys, getopt, re, argparse, threading

parser = argparse.ArgumentParser(description='Do stuff with files.', prog='cpppyscan.py', usage='%(prog)s [-h, -r, -v, -z, -e <extension(s)>, -i <filename>, -o <filename>] -d|-f <directory|filename>', \
    formatter_class=lambda prog: argparse.HelpFormatter(prog,max_help_position=65, width =150))
group = parser.add_mutually_exclusive_group(required=True)
parser.add_argument("-i", "--infile", action='store_true', help="File for all regex rules. Default is 'rules.txt'")
parser.add_argument("-r", "--recursive", action='store_false', help="Do not recursively search all files in the given directory")
parser.add_argument("-v", "--verbose", action='store_true', help="Turn on (extremely) verbose mode")
parser.add_argument("-e", "--extension", nargs='?', default=None, help="filetype(s) to restrict search to. seperate lists via commas with no spaces")
parser.add_argument("-o", "--outfile", nargs='?', default=None, help="specify output file. Default is 'results.txt'. NOTE: will overwrite file if it currently exists")
group.add_argument("-d", "--directory", default=None, help="directory to search")
group.add_argument("-f", "--file", default=None, help="file to search")
parser.add_argument("-z", "--disableerrorhandling", action='store_true', help="disable error handling to see full stack traces on errors")
args = parser.parse_args()

outfile = 'results.txt'
infile = 'rules.txt'
tosearch = None
targettype = None
searchrules = None
extfilter = None
verbose = False
recursive = True
errorhandling = False
resultdict = {}
progresstracker = None

lcount = 0
fcount = 0
rcount = 0

def printline(str):
    global outfile
    with open(outfile, 'a') as f:
        f.write(str(str)+"\n")

def vprint(str):
    global verbose
    if verbose:
        print(str)

def main():
    global outfile,infile,tosearch,targettype,searchrules,extfilter,verbose,recursive,errorhandling,recursive,resultdict

    if args.infile:
        infile = args.infile

    with open(infile,'r') as f:
        searchrules = [l.strip() for l in f]

    for rule in searchrules:
        resultdict[rule] = []

    if args.outfile:
        outfile = args.outfile

    try:
        tosearch = args.directory
        targettype = 'd'
    except:
        tosearch = args.file
        targettype = 'f'
            
    try:
        extfilter = args.extension.split(',')
        for i,e in enumerate(extfilter):
            if e[0] == '.':
                extfilter[i] = e[1:]
    except:
        extfilter = []

    recursive = args.recursive
    verbose = args.verbose

    errorhandling = args.disableerrorhandling

    if errorhandling:
        start()
    else:
        try:
            start()
        except:
            printline('[!] An error ocurred:\n')
            for e in sys.exc_info():
                printline(e)
            printline('[*] Note that this script may break on some filetypes when run with 3.4. Please use 2.7')
            try:
                progresstracker.done = True
            except:
                pass
           
def start():
    global tosearch,targettype,searchrules,progresstracker
            
    if targettype == 'd':
        print('[*] Enumerating all files to search...')
        files = findfiles(tosearch)
    else:
        files = [tosearch]

    print('[*] Getting line count...')
    numlines = linecount(files)
    print('[*] Lines to check: %s'%numlines)

    progresstracker = Progress(numlines,len(searchrules))
    progresstracker.start()

    for f in files:
        searchfile(f)

    progresstracker.done = True
    dumpresults()
    
def linecount(files):
    count = 0
    for file in files:
        with open(file,'r') as f:
            count += sum([1 for l in f])

    return count

def findfiles(dir):
    global recursive,extfilter
    flist = []

    for (dirpath,dirname,filenames) in walk(dir):
        flist.extend(['%s/%s'%(dirpath,filename) for filename in filenames])
        if not recursive:
            break

    if len(extfilter) > 0:
        flist2 = []
        for f in flist:
            if f.split('.')[-1] in extfilter:
                flist2.append(f)

    try:
        return flist2
    except:
        return flist

def searchfile(file):
    global searchrules,resultdict,progresstracker

    with open(file) as f:
        for rule in searchrules:
            linenum = 1
            f.seek(0)
            prog = re.compile(rule)
            for l in f:
                progresstracker.checksdone += 1
                if prog.search(l):
                    resultdict[rule].append('"%s","%s","%s"'%(file,linenum,l.strip()))
                linenum += 1

def dumpresults():
    global outfile,resultdict

    with open(outfile,'w') as f:
        for key,values in resultdict.iteritems():
            f.write('%s\n'%key)
            for value in values:
                f.write('%s\n'%value)

class Progress(threading.Thread):
    def __init__(self,numlines,numrules):
        threading.Thread.__init__(self)
        self.numchecks = float(numlines * numrules)
        self.checksdone = 0.0
        self.done = False

    def run(self):
        while not self.done:
            self.progress = self.checksdone / self.numchecks
            barLength = 20 # Modify this to change the length of the progress bar
            if isinstance(self.progress, int):
                self.progress = float(self.progress)
            if self.progress >= 1:
                self.progress = 1
            block = int(round(barLength*self.progress))
            text = "\r[{0}] {1:.2f}%".format( "#"*block + "-"*(barLength-block), self.progress*100)
            sys.stdout.write(text)
            sys.stdout.flush()

        text = "\r[{0}] {1:.2f}%\n".format( "#"*barLength, 100)
        sys.stdout.write(text)
        sys.stdout.flush()

if __name__ == "__main__":
    main()

result.txt:

malloc\(
\[[0-9]+\]
..//cp1.py,135,c += res.count(k[0].upper()+k[1])
..//cp1.py,136,c += res.count(k[0]+k[1].upper())
..//cp1.py,145,print(singlebytexor(brutexor(binascii.unhexlify(v))[0][0],binascii.unhexlify(v)).decode('utf-8'))
..//cp1.py,154,result[key[0][0]] = singlebytexor(key[0][0],ct)
..//cp1.py,163,print(detectxor(cts)[0][1].decode('utf-8'))
..//cp1.py,215,print(detectaesecb(cts)[0])
../CPPPyScan/cpppyscan.py,71,if e[0] == '.':
../cryptopals/cp1.py,135,c += res.count(k[0].upper()+k[1])
../cryptopals/cp1.py,136,c += res.count(k[0]+k[1].upper())
../cryptopals/cp1.py,145,print(singlebytexor(brutexor(binascii.unhexlify(v))[0][0],binascii.unhexlify(v)).decode('utf-8'))
../cryptopals/cp1.py,154,result[key[0][0]] = singlebytexor(key[0][0],ct)
../cryptopals/cp1.py,163,print(detectxor(cts)[0][1].decode('utf-8'))
../cryptopals/cp1.py,205,sortedkeysizes[keysize] = ham/len(chunks)/len(chunks[0])
../cryptopals/cp1.py,209,ret = [b''] * len(val[0])
../cryptopals/cp1.py,211,for i in range(len(val[0])):
../cryptopals/cp1.py,223,tarray = transpose([ct[i:i+keysize[0]] for i in range(0,len(ct),keysize[0])])
../cryptopals/cp1.py,225,key[t] = brutexor(tarray[t])[0][0]
../cryptopals/cp1.py,269,print(detectaesecb(cts)[0])
../django/setup.py,13,if lib_paths[0].startswith("/usr/lib/"):
../django/django/apps/config.py,30,self.label = app_name.rpartition(".")[2]
../django/django/apps/config.py,75,return upath(paths[0])
../django/django/apps/registry.py,239,if subpath == '' or subpath[0] == '.':
../django/django/apps/registry.py,242,return sorted(candidates, key=lambda ac: -len(ac.name))[0]
../django/django/apps/registry.py,351,model_key, more_models = model_keys[0], model_keys[1:]
../django/django/contrib/admin/checks.py,126,elif not isinstance(fieldset[1], dict):
../django/django/contrib/admin/checks.py,127,return must_be('a dictionary', option='%s[1]' % label, obj=cls, id='admin.E010')
../django/django/contrib/admin/checks.py,128,elif 'fields' not in fieldset[1]:
../django/django/contrib/admin/checks.py,131,"The value of '%s[1]' must contain the key 'fields'." % label,
../django/django/contrib/admin/checks.py,137,elif not isinstance(fieldset[1]['fields'], (list, tuple)):
../django/django/contrib/admin/checks.py,138,return must_be('a list or tuple', option="fieldsets[1]['fields']", obj=cls, id='admin.E008')
../django/django/contrib/admin/checks.py,140,fields = flatten(fieldset[1]['fields'])
../django/django/contrib/admin/checks.py,144,"There are duplicate field(s) in '%s[1]'." % label,
../django/django/contrib/admin/checks.py,151,self._check_field_spec(cls, model, fieldset_fields, '%s[1]["fields"]' % label)
../django/django/contrib/admin/checks.py,152,for fieldset_fields in fieldset[1]['fields']
../django/django/contrib/admin/checks.py,157,fieldset[1]['fields'] for any `fieldset` in `fieldsets`. It should be a
../django/django/contrib/admin/checks.py,709,return must_inherit_from(parent='FieldListFilter', option='%s[1]' % label,
../django/django/contrib/admin/checks.py,799,elif (cls.list_display[0] in cls.list_editable and cls.list_display[0] != cls.list_editable[0] and
../django/django/contrib/admin/checks.py,805,label, cls.list_display[0]
../django/django/contrib/admin/checks.py,900,return [checks.Error(e.args[0], hint=None, obj=cls, id='admin.E202')]
../django/django/contrib/admin/options.py,366,valid_lookups.append(filter_item[0])
../django/django/contrib/admin/options.py,1093,value = request.resolver_match.args[0]
../django/django/contrib/admin/options.py,1209,func = self.get_actions(request)[action][0]
../django/django/contrib/admin/utils.py,83,res = [list[0]]
../django/django/contrib/admin/utils.py,85,del list[0]
../django/django/contrib/admin/widgets.py,95,_('Date:'), rendered_widgets[0],
../django/django/contrib/admin/widgets.py,96,_('Time:'), rendered_widgets[1])
../django/django/contrib/admin/templatetags/admin_urls.py,26,parsed_qs = dict(parse_qsl(parsed_url[4]))
../django/django/contrib/admin/templatetags/admin_urls.py,32,match_url = '/%s' % url.partition(get_script_prefix())[2]
../django/django/contrib/admin/templatetags/admin_urls.py,54,parsed_url[4] = urlencode(merged_qs)
../django/django/contrib/admin/templatetags/log.py,49,if not tokens[1].isdigit():
../django/django/contrib/admin/templatetags/log.py,52,if tokens[2] != 'as':
../django/django/contrib/admin/templatetags/log.py,56,if tokens[4] != 'for_user':
../django/django/contrib/admin/templatetags/log.py,59,return AdminLogNode(limit=tokens[1], varname=tokens[3], user=(tokens[5] if len(tokens) > 5 else None))
../django/django/contrib/admin/views/main.py,154,six.reraise(IncorrectLookupParameters, IncorrectLookupParameters(e), sys.exc_info()[2])
../django/django/contrib/admindocs/utils.py,32,trimmed = [lines[0].lstrip()] + [line[indent:].rstrip() for line in lines[1:]]
../django/django/contrib/admindocs/utils.py,42,title = parts[0]
../django/django/contrib/admindocs/views.py,246,if (inspect.isfunction(func) and len(inspect.getargspec(func)[0]) == 1):
../django/django/contrib/auth/hashers.py,116,return get_hashers()[0]
../django/django/contrib/auth/hashers.py,145,algorithm = encoded.split('$', 1)[0]
../django/django/contrib/auth/views.py,132,querystring = QueryDict(login_url_parts[4], mutable=True)
../django/django/contrib/auth/views.py,134,login_url_parts[4] = querystring.urlencode(safe='/')
../django/django/contrib/auth/management/__init__.py,46,builtin_codenames = set(p[0] for p in builtin)
../django/django/contrib/contenttypes/fields.py,450,join_cols = rel.field.get_joining_columns(reverse_join=True)[0]
../django/django/contrib/contenttypes/fields.py,451,self.source_col_name = qn(join_cols[0])
../django/django/contrib/contenttypes/fields.py,452,self.target_col_name = qn(join_cols[1])
../django/django/contrib/contenttypes/fields.py,486,queryset._add_hints(instance=instances[0])
../django/django/contrib/contenttypes/fields.py,496,object_id_converter = instances[0]._meta.pk.to_python
../django/django/contrib/contenttypes/views.py,55,object_domain = getattr(obj, field.name).all()[0].domain
../django/django/contrib/flatpages/templatetags/flatpages.py,76,dict(tag_name=bits[0]))
../django/django/contrib/flatpages/templatetags/flatpages.py,82,prefix = bits[1]
../django/django/contrib/gis/feeds.py,19,return ' '.join('%f %f' % (coord[1], coord[0]) for coord in coords)
../django/django/contrib/gis/feeds.py,45,if isinstance(geom[0], (list, tuple)):
../django/django/contrib/gis/feeds.py,79,handler.addQuickElement('georss:polygon', self.georss_coords(geom[0].coords))
../django/django/contrib/gis/views.py,12,slug = url.partition('/')[0]
../django/django/contrib/gis/db/backends/base/models.py,205,radius, flattening = sphere_params[0], sphere_params[2]
../django/django/contrib/gis/db/backends/oracle/introspection.py,32,six.reraise(Exception, Exception(new_msg), sys.exc_info()[2])
../django/django/contrib/gis/db/backends/oracle/operations.py,147,ll, ur = shell[0][:2], shell[2][:2]
../django/django/contrib/gis/db/backends/oracle/operations.py,184,value = value[0]
../django/django/contrib/gis/db/backends/oracle/operations.py,250,in six.moves.zip(placeholders[0], params[0]) if pholder != 'NULL'], ]
../django/django/contrib/gis/db/backends/oracle/schema.py,42,'dim0': field._extent[0],
../django/django/contrib/gis/db/backends/oracle/schema.py,43,'dim1': field._extent[1],
../django/django/contrib/gis/db/backends/oracle/schema.py,44,'dim2': field._extent[2],
../django/django/contrib/gis/db/backends/oracle/schema.py,45,'dim3': field._extent[3],
../django/django/contrib/gis/db/backends/postgis/introspection.py,46,cursor.execute(oid_sql, (field_type[0],))
../django/django/contrib/gis/db/backends/postgis/introspection.py,48,postgis_types[result[0]] = field_type[1]
../django/django/contrib/gis/db/backends/postgis/introspection.py,96,field_type = OGRGeomType(row[2]).django
../django/django/contrib/gis/db/backends/postgis/introspection.py,99,dim = row[0]
../django/django/contrib/gis/db/backends/postgis/introspection.py,100,srid = row[1]
../django/django/contrib/gis/db/backends/postgis/operations.py,233,value, option = dist_val[0], None
../django/django/contrib/gis/db/backends/postgis/operations.py,291,return cursor.fetchone()[0]
../django/django/contrib/gis/db/backends/spatialite/base.py,64,six.reraise(ImproperlyConfigured, ImproperlyConfigured(new_msg), sys.exc_info()[2])
../django/django/contrib/gis/db/backends/spatialite/introspection.py,44,ogr_type = row[2]
../django/django/contrib/gis/db/backends/spatialite/introspection.py,53,dim = row[0]
../django/django/contrib/gis/db/backends/spatialite/introspection.py,54,srid = row[1]
../django/django/contrib/gis/db/backends/spatialite/introspection.py,71,indexes[row[0]] = {'primary_key': False, 'unique': False}
../django/django/contrib/gis/db/backends/spatialite/models.py,78,spatial_version = connection.ops.spatial_version[0]
../django/django/contrib/gis/db/backends/spatialite/operations.py,112,six.reraise(ImproperlyConfigured, ImproperlyConfigured(new_msg), sys.exc_info()[2])
../django/django/contrib/gis/db/backends/spatialite/operations.py,158,xmin, ymin = shell[0][:2]
../django/django/contrib/gis/db/backends/spatialite/operations.py,159,xmax, ymax = shell[2][:2]
../django/django/contrib/gis/db/backends/spatialite/operations.py,187,value = value[0]
../django/django/contrib/gis/db/backends/spatialite/operations.py,236,return row[0]
../django/django/contrib/gis/db/models/fields.py,197,geom = value[0]
../django/django/contrib/gis/db/models/fields.py,278,params = [connection.ops.Adapter(value[0])]
../django/django/contrib/gis/db/models/functions.py,231,src_field = self.get_source_fields()[0]
../django/django/contrib/gis/db/models/functions.py,244,self.source_expressions[2] = Value(geo_field._spheroid)
../django/django/contrib/gis/db/models/functions.py,287,src_field = self.get_source_fields()[0]
../django/django/contrib/gis/db/models/lookups.py,63,params = [connection.ops.Adapter(value[0])] + list(value)[1:]
../django/django/contrib/gis/db/models/lookups.py,86,geom = self.rhs[0]
../django/django/contrib/gis/db/models/lookups.py,278,backend_op.check_relate_argument(value[1])
../django/django/contrib/gis/db/models/lookups.py,280,pattern = value[1]
../django/django/contrib/gis/db/models/lookups.py,305,params = [connection.ops.Adapter(value[0])]
../django/django/contrib/gis/db/models/query.py,326,size = args[0]
../django/django/contrib/gis/db/models/query.py,691,if not str(Geometry(six.memoryview(params[0].ewkb)).geom_type) == 'Point':
../django/django/contrib/gis/db/models/query.py,701,procedure_args.update({'function': backend.distance_spheroid, 'spheroid': params[1]})
../django/django/contrib/gis/db/models/query.py,710,procedure_args.update({'function': backend.length_spheroid, 'spheroid': params[1]})
../django/django/contrib/gis/db/models/query.py,781,return col.as_sql(compiler, compiler.connection)[0]
../django/django/contrib/gis/gdal/envelope.py,44,if isinstance(args[0], OGREnvelope):
../django/django/contrib/gis/gdal/envelope.py,46,self._envelope = args[0]
../django/django/contrib/gis/gdal/envelope.py,47,elif isinstance(args[0], (tuple, list)):
../django/django/contrib/gis/gdal/envelope.py,49,if len(args[0]) != 4:
../django/django/contrib/gis/gdal/envelope.py,50,raise GDALException('Incorrect number of tuple elements (%d).' % len(args[0]))
../django/django/contrib/gis/gdal/envelope.py,52,self._from_sequence(args[0])
../django/django/contrib/gis/gdal/envelope.py,54,raise TypeError('Incorrect type of argument: %s' % str(type(args[0])))
../django/django/contrib/gis/gdal/envelope.py,77,return (self.min_x == other[0]) and (self.min_y == other[1]) and \
../django/django/contrib/gis/gdal/envelope.py,78,(self.max_x == other[2]) and (self.max_y == other[3])
../django/django/contrib/gis/gdal/envelope.py,89,self._envelope.MinX = seq[0]
../django/django/contrib/gis/gdal/envelope.py,90,self._envelope.MinY = seq[1]
../django/django/contrib/gis/gdal/envelope.py,91,self._envelope.MaxX = seq[2]
../django/django/contrib/gis/gdal/envelope.py,92,self._envelope.MaxY = seq[3]
../django/django/contrib/gis/gdal/envelope.py,105,if isinstance(args[0], Envelope):
../django/django/contrib/gis/gdal/envelope.py,106,return self.expand_to_include(args[0].tuple)
../django/django/contrib/gis/gdal/envelope.py,107,elif hasattr(args[0], 'x') and hasattr(args[0], 'y'):
../django/django/contrib/gis/gdal/envelope.py,108,return self.expand_to_include(args[0].x, args[0].y, args[0].x, args[0].y)
../django/django/contrib/gis/gdal/envelope.py,109,elif isinstance(args[0], (tuple, list)):
../django/django/contrib/gis/gdal/envelope.py,111,if len(args[0]) == 2:
../django/django/contrib/gis/gdal/envelope.py,112,return self.expand_to_include((args[0][0], args[0][1], args[0][0], args[0][1]))
../django/django/contrib/gis/gdal/envelope.py,113,elif len(args[0]) == 4:
../django/django/contrib/gis/gdal/envelope.py,114,(minx, miny, maxx, maxy) = args[0]
../django/django/contrib/gis/gdal/envelope.py,124,raise GDALException('Incorrect number of tuple elements (%d).' % len(args[0]))
../django/django/contrib/gis/gdal/envelope.py,126,raise TypeError('Incorrect type of argument: %s' % str(type(args[0])))
../django/django/contrib/gis/gdal/envelope.py,129,return self.expand_to_include((args[0], args[1], args[0], args[1]))
../django/django/contrib/gis/gdal/envelope.py,134,raise GDALException('Incorrect number (%d) of arguments.' % len(args[0]))
../django/django/contrib/gis/gdal/geometries.py,607,return self[0]  # First ring is the shell
../django/django/contrib/gis/gdal/raster/band.py,103,size = (self.width - offset[0], self.height - offset[1])
../django/django/contrib/gis/gdal/raster/band.py,108,if size[0] > self.width or size[1] > self.height:
../django/django/contrib/gis/gdal/raster/band.py,112,ctypes_array = GDAL_TO_CTYPES[self.datatype()] * (size[0] * size[1])
../django/django/contrib/gis/gdal/raster/band.py,130,capi.band_io(self._ptr, access_flag, offset[0], offset[1],
../django/django/contrib/gis/gdal/raster/band.py,131,size[0], size[1], byref(data_array), size[0],
../django/django/contrib/gis/gdal/raster/band.py,132,size[1], self.datatype(), 0, 0)
../django/django/contrib/gis/gdal/raster/source.py,28,x = raster.geotransform[self.indices[prop][0]]
../django/django/contrib/gis/gdal/raster/source.py,29,y = raster.geotransform[self.indices[prop][1]]
../django/django/contrib/gis/gdal/raster/source.py,36,return self[0]
../django/django/contrib/gis/gdal/raster/source.py,41,gtf[self.indices[self._prop][0]] = value
../django/django/contrib/gis/gdal/raster/source.py,46,return self[1]
../django/django/contrib/gis/gdal/raster/source.py,51,gtf[self.indices[self._prop][1]] = value
../django/django/contrib/gis/geos/collections.py,31,if isinstance(args[0], (tuple, list)):
../django/django/contrib/gis/geos/collections.py,32,init_geoms = args[0]
../django/django/contrib/gis/geos/coordseq.py,67,self.setX(index, value[0])
../django/django/contrib/gis/geos/coordseq.py,68,self.setY(index, value[1])
../django/django/contrib/gis/geos/coordseq.py,70,self.setZ(index, value[2])
../django/django/contrib/gis/geos/coordseq.py,162,return self[0]
../django/django/contrib/gis/geos/geometry.py,643,xmin, ymin = env[0][0]
../django/django/contrib/gis/geos/geometry.py,644,xmax, ymax = env[0][2]
../django/django/contrib/gis/geos/linestring.py,31,coords = args[0]
../django/django/contrib/gis/geos/linestring.py,40,ndim = len(coords[0])
../django/django/contrib/gis/geos/linestring.py,55,self._checkdim(shape[1])
../django/django/contrib/gis/geos/linestring.py,56,ncoords = shape[0]
../django/django/contrib/gis/geos/linestring.py,57,ndim = shape[1]
../django/django/contrib/gis/geos/mutable_list.py,228,temp.sort(key=lambda x: x[0], reverse=reverse)
../django/django/contrib/gis/geos/mutable_list.py,229,self[:] = [v[1] for v in temp]
../django/django/contrib/gis/geos/point.py,140,self._cs[0] = tup
../django/django/contrib/gis/geos/polygon.py,35,ext_ring = args[0]
../django/django/contrib/gis/geos/polygon.py,40,if n_holes == 1 and isinstance(init_holes[0], (tuple, list)):
../django/django/contrib/gis/geos/polygon.py,41,if len(init_holes[0]) == 0:
../django/django/contrib/gis/geos/polygon.py,44,elif isinstance(init_holes[0][0], LinearRing):
../django/django/contrib/gis/geos/polygon.py,45,init_holes = init_holes[0]
../django/django/contrib/gis/geos/polygon.py,127,interior ring at the given index (e.g., poly[1] and poly[2] would
../django/django/contrib/gis/geos/polygon.py,156,return self[0]
../django/django/contrib/gis/geos/polygon.py,160,self[0] = ring
../django/django/contrib/gis/geos/polygon.py,177,return "<Polygon><outerBoundaryIs>%s</outerBoundaryIs>%s</Polygon>" % (self[0].kml, inner_kml)
../django/django/contrib/gis/management/commands/inspectdb.py,12,geo_col = row[0]
../django/django/contrib/gis/maps/google/gmap.py,190,if isinstance(args[0], (tuple, list)):
../django/django/contrib/gis/maps/google/gmap.py,191,self.maps = args[0]
../django/django/contrib/gis/maps/google/overlays.py,316,return 'new GLatLng(%s,%s)' % (coords[1], coords[0])
../django/django/contrib/gis/maps/google/zoom.py,99,lon = (px[0] - npix) / self._degpp[zoom]
../django/django/contrib/gis/maps/google/zoom.py,102,lat = RTOD * (2 * atan(exp((px[1] - npix) / (-1.0 * self._radpp[zoom]))) - 0.5 * pi)
../django/django/contrib/gis/maps/google/zoom.py,122,ll = self.pixel_to_lonlat((px[0] - delta, px[1] - delta), zoom)
../django/django/contrib/gis/maps/google/zoom.py,123,ur = self.pixel_to_lonlat((px[0] + delta, px[1] + delta), zoom)
../django/django/contrib/gis/maps/google/zoom.py,126,return Polygon(LinearRing(ll, (ll[0], ur[1]), ur, (ur[0], ll[1]), ll), srid=4326)
../django/django/contrib/gis/maps/google/zoom.py,161,ul = Point(extent[0], extent[3])
../django/django/contrib/gis/sitemaps/kml.py,60,kwargs={'label': obj[0],
../django/django/contrib/gis/sitemaps/kml.py,61,'model': obj[1],
../django/django/contrib/gis/sitemaps/kml.py,62,'field_name': obj[2],
../django/django/contrib/gis/utils/layermapping.py,364,digits = dtup[1]
../django/django/contrib/gis/utils/layermapping.py,365,d_idx = dtup[2]  # index where the decimal is
../django/django/contrib/gis/utils/layermapping.py,459,six.reraise(LayerMapError, LayerMapError(new_msg), sys.exc_info()[2])
../django/django/contrib/humanize/templatetags/humanize.py,32,return mark_safe("%d%s" % (value, suffixes[0]))
../django/django/contrib/messages/storage/cookie.py,35,if obj[0] == MessageEncoder.message_key:
../django/django/contrib/messages/storage/cookie.py,39,if obj[1]:
../django/django/contrib/messages/storage/cookie.py,40,obj[3] = mark_safe(obj[3])
../django/django/contrib/messages/storage/cookie.py,110,return len(cookie.value_encode(val)[1])
../django/django/contrib/postgres/fields/ranges.py,24,return self.range_type(value[0], value[1])
../django/django/contrib/postgres/fields/ranges.py,31,value = self.range_type(value[0], value[1])
../django/django/contrib/staticfiles/handlers.py,34,return path.startswith(self.base_url[2]) and not self.base_url[1]
../django/django/contrib/staticfiles/handlers.py,40,relative_url = url[len(self.base_url[2]):]
../django/django/contrib/staticfiles/storage.py,113,unparsed_name[2] = hashed_name
../django/django/contrib/staticfiles/storage.py,116,if '?#' in name and not unparsed_name[3]:
../django/django/contrib/staticfiles/storage.py,117,unparsed_name[2] += '?'
../django/django/contrib/staticfiles/storage.py,140,if fragment and not urlparts[4]:
../django/django/contrib/staticfiles/storage.py,141,urlparts[4] = fragment
../django/django/contrib/staticfiles/storage.py,142,if query_fragment and not urlparts[3]:
../django/django/contrib/staticfiles/storage.py,143,urlparts[2] += '?'
../django/django/core/urlresolvers.py,279,urlconf_repr = '<%s list>' % self.urlconf_name[0].__class__.__name__
../django/django/core/urlresolvers.py,376,sub_tried = e.args[0].get('tried')
../django/django/core/urlresolvers.py,549,view = parts[0]
../django/django/core/urlresolvers.py,569,ns = app_list[0]
../django/django/core/validators.py,98,scheme = value.split('://')[0].lower()
../django/django/core/validators.py,121,potential_ip = host_match.groups()[0]
../django/django/core/cache/backends/db.py,67,expires = row[2]
../django/django/core/cache/backends/db.py,81,value = connection.ops.process_clob(row[1])
../django/django/core/cache/backends/db.py,102,num = cursor.fetchone()[0]
../django/django/core/cache/backends/db.py,131,current_expires = result[1]
../django/django/core/cache/backends/db.py,192,num = cursor.fetchone()[0]
../django/django/core/cache/backends/db.py,200,[cursor.fetchone()[0]])
../django/django/core/files/images.py,18,return self._get_image_dimensions()[0]
../django/django/core/files/images.py,22,return self._get_image_dimensions()[1]
../django/django/core/files/images.py,63,if e.args[0].startswith("Error -5"):
../django/django/core/files/locks.py,5,Cookbook [1] (licensed under the Python Software License) and a ctypes port by
../django/django/core/files/locks.py,6,Anatoly Techtonik for Roundup [2] (license [3]).
../django/django/core/files/locks.py,8,[1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
../django/django/core/files/locks.py,9,[2] http://sourceforge.net/p/roundup/code/ci/default/tree/roundup/backends/portalocker.py
../django/django/core/files/locks.py,10,[3] http://sourceforge.net/p/roundup/code/ci/default/tree/COPYING.txt
../django/django/core/files/temp.py,8,if the same flag is not provided [1][2]. Note that this does not address the
../django/django/core/mail/__init__.py,94,message, settings.SERVER_EMAIL, [a[1] for a in settings.ADMINS],
../django/django/core/mail/__init__.py,107,message, settings.SERVER_EMAIL, [a[1] for a in settings.MANAGERS],
../django/django/core/management/__init__.py,65,commands = {name: 'django.core' for name in find_commands(upath(__path__[0]))}
../django/django/core/management/__init__.py,104,opt_mapping = {sorted(s_opt.option_strings)[0].lstrip('-').replace('-', '_'): s_opt.dest
../django/django/core/management/__init__.py,130,self.prog_name = os.path.basename(self.argv[0])
../django/django/core/management/__init__.py,232,elif cwords[0] in subcommands and cwords[0] != 'help':
../django/django/core/management/__init__.py,233,subcommand_cls = self.fetch_command(cwords[0])
../django/django/core/management/__init__.py,235,if cwords[0] in ('dumpdata', 'sqlmigrate', 'sqlsequencereset', 'test'):
../django/django/core/management/__init__.py,244,parser = subcommand_cls.create_parser('', cwords[0])
../django/django/core/management/__init__.py,246,options.extend((sorted(s_opt.option_strings)[0], s_opt.nargs != 0) for s_opt in
../django/django/core/management/__init__.py,252,prev_opts = [x.split('=')[0] for x in cwords[1:cword - 1]]
../django/django/core/management/__init__.py,253,options = [opt for opt in options if opt[0] not in prev_opts]
../django/django/core/management/__init__.py,258,opt_label = option[0]
../django/django/core/management/__init__.py,260,if option[1]:
../django/django/core/management/__init__.py,271,subcommand = self.argv[1]
../django/django/core/management/__init__.py,314,self.fetch_command(options.args[0]).print_help(self.prog_name, options.args[0])
../django/django/core/management/base.py,335,parser = self.create_parser(argv[0], argv[1])
../django/django/core/management/templates.py,179,Use django.__path__[0] as the default because we don't
../django/django/core/management/templates.py,183,return path.join(django.__path__[0], 'conf', subdir)
../django/django/core/management/templates.py,253,ext = self.splitext(guessed_filename)[1]
../django/django/core/management/templates.py,303,scheme = template.split(':', 1)[0].lower()
../django/django/core/management/utils.py,26,(args[0], strerror)), sys.exc_info()[2])
../django/django/core/management/commands/compilemessages.py,106,base_path = os.path.splitext(po_path)[0]
../django/django/core/management/commands/flush.py,76,six.reraise(CommandError, CommandError(new_msg), sys.exc_info()[2])
../django/django/core/management/commands/inspectdb.py,76,column_name = row[0]
../django/django/core/management/commands/inspectdb.py,94,rel_to = "self" if relations[column_name][1] == table_name else table2model(relations[column_name][1])
../django/django/core/management/commands/inspectdb.py,118,if row[6]:  # If it's NULL...
../django/django/core/management/commands/inspectdb.py,184,if new_name[0].isdigit():
../django/django/core/management/commands/inspectdb.py,210,field_type = connection.introspection.get_field_type(row[1], row)
../django/django/core/management/commands/inspectdb.py,222,if field_type == 'CharField' and row[3]:
../django/django/core/management/commands/inspectdb.py,223,field_params['max_length'] = int(row[3])
../django/django/core/management/commands/inspectdb.py,226,if row[4] is None or row[5] is None:
../django/django/core/management/commands/inspectdb.py,230,field_params['max_digits'] = row[4] if row[4] is not None else 10
../django/django/core/management/commands/inspectdb.py,231,field_params['decimal_places'] = row[5] if row[5] is not None else 5
../django/django/core/management/commands/inspectdb.py,233,field_params['max_digits'] = row[4]
../django/django/core/management/commands/inspectdb.py,234,field_params['decimal_places'] = row[5]
../django/django/core/management/commands/loaddata.py,302,return zipfile.ZipFile.read(self, self.namelist()[0])
../django/django/core/management/commands/makemessages.py,87,file_ext = os.path.splitext(self.file)[1]
../django/django/core/management/commands/makemessages.py,283,os.path.basename(sys.argv[0]), sys.argv[1]))
../django/django/core/management/commands/makemessages.py,294,self.default_locale_path = self.locale_paths[0]
../django/django/core/management/commands/makemessages.py,302,self.default_locale_path = self.locale_paths[0]
../django/django/core/management/commands/makemessages.py,431,file_ext = os.path.splitext(filename)[1]
../django/django/core/management/commands/makemigrations.py,205,all_items_equal = lambda seq: all(item == seq[0] for item in seq[1:])
../django/django/core/management/commands/migrate.py,131,targets = [key for key in executor.loader.graph.leaf_nodes() if key[0] == app_label]
../django/django/core/management/commands/migrate.py,152,if targets[0][1] is None:
../django/django/core/management/commands/migrate.py,154,"  Unapply all migrations: ") + "%s" % (targets[0][0], )
../django/django/core/management/commands/migrate.py,159,% (targets[0][1], targets[0][0])
../django/django/core/management/commands/showmigrations.py,64,if plan_node not in shown and plan_node[0] == app_name:
../django/django/core/management/commands/showmigrations.py,66,title = plan_node[1]
../django/django/core/management/commands/showmigrations.py,101,if dep[1] == "__first__":
../django/django/core/management/commands/showmigrations.py,102,roots = graph.root_nodes(dep[0])
../django/django/core/management/commands/showmigrations.py,103,dep = roots[0] if roots else (dep[0], "__first__")
../django/django/core/management/commands/sqlmigrate.py,56,plan = [(executor.loader.graph.nodes[targets[0]], options['backwards'])]
../django/django/core/management/commands/squashmigrations.py,74,answer = answer[0].lower()
../django/django/core/management/commands/squashmigrations.py,97,elif dependency[0] != smigration.app_label:
../django/django/core/serializers/__init__.py,232,for model, deps in sorted(skipped, key=lambda obj: obj[0].__name__))
../django/django/core/serializers/json.py,84,six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
../django/django/core/serializers/pyyaml.py,84,six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
../django/django/core/servers/basehttp.py,57,sys.exc_info()[2])
../django/django/core/servers/basehttp.py,62,return issubclass(exc_type, socket.error) and exc_value.args[0] == 32
../django/django/core/servers/basehttp.py,103,return self.client_address[0]
../django/django/core/servers/basehttp.py,115,if args[1][0] == '2':
../django/django/core/servers/basehttp.py,118,elif args[1][0] == '1':
../django/django/core/servers/basehttp.py,120,elif args[1] == '304':
../django/django/core/servers/basehttp.py,122,elif args[1][0] == '3':
../django/django/core/servers/basehttp.py,124,elif args[1] == '404':
../django/django/core/servers/basehttp.py,126,elif args[1][0] == '4':
../django/django/core/servers/basehttp.py,128,if args[0].startswith(str('\x16\x03')):
../django/django/core/servers/basehttp.py,151,path = path.partition('?')[0]
../django/django/db/backends/utils.py,151,seconds = times[2]
../django/django/db/backends/utils.py,157,return datetime.datetime(int(dates[0]), int(dates[1]), int(dates[2]),
../django/django/db/backends/utils.py,158,int(times[0]), int(times[1]), int(seconds),
../django/django/db/backends/base/introspection.py,145,if column[1]['primary_key']:
../django/django/db/backends/base/introspection.py,146,return column[0]
../django/django/db/backends/base/operations.py,156,return cursor.fetchone()[0]
../django/django/db/backends/base/schema.py,349,self.execute(self._delete_constraint_sql(sql, model, constraint_names[0]))
../django/django/db/backends/base/schema.py,710,"changes": fragment[0],
../django/django/db/backends/base/schema.py,712,fragment[1],
../django/django/db/backends/base/schema.py,801,'%s_%s' % (model._meta.db_table, self._digest(column_names[0])),
../django/django/db/backends/base/schema.py,810,table_name, column_names[0], index_unique_name, suffix,
../django/django/db/backends/base/schema.py,813,part = ('_%s%s%s' % (column_names[0], index_unique_name, suffix))
../django/django/db/backends/base/schema.py,816,if index_name[0] == "_":
../django/django/db/backends/base/schema.py,822,if index_name[0].isdigit():
../django/django/db/backends/base/schema.py,832,if len(fields) == 1 and fields[0].db_tablespace:
../django/django/db/backends/base/schema.py,833,tablespace_sql = self.connection.ops.tablespace_sql(fields[0].db_tablespace)
../django/django/db/backends/mysql/base.py,47,(len(version) < 5 or version[3] != 'final' or version[4] < 2))):
../django/django/db/backends/mysql/base.py,116,if e.args[0] in self.codes_for_integrityerror:
../django/django/db/backends/mysql/base.py,117,six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
../django/django/db/backends/mysql/base.py,126,if e.args[0] in self.codes_for_integrityerror:
../django/django/db/backends/mysql/base.py,127,six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
../django/django/db/backends/mysql/base.py,345,% (table_name, bad_row[0],
../django/django/db/backends/mysql/base.py,346,table_name, column_name, bad_row[1],
../django/django/db/backends/mysql/features.py,41,return result[0]
../django/django/db/backends/mysql/introspection.py,50,return [TableInfo(row[0], {'BASE TABLE': 't', 'VIEW': 'v'}.get(row[1]))
../django/django/db/backends/mysql/introspection.py,67,field_info = {line[0]: InfoLine(*line) for line in cursor.fetchall()}
../django/django/db/backends/mysql/introspection.py,73,col_name = force_text(line[0])
../django/django/db/backends/mysql/introspection.py,77,+ (to_int(field_info[col_name].max_len) or line[3],
../django/django/db/backends/mysql/introspection.py,78,to_int(field_info[col_name].num_prec) or line[4],
../django/django/db/backends/mysql/introspection.py,79,to_int(field_info[col_name].num_scale) or line[5])
../django/django/db/backends/mysql/introspection.py,80,+ (line[6],)
../django/django/db/backends/mysql/introspection.py,121,if row[3] > 1:
../django/django/db/backends/mysql/introspection.py,122,multicol_indexes.add(row[2])
../django/django/db/backends/mysql/introspection.py,125,if row[2] in multicol_indexes:
../django/django/db/backends/mysql/introspection.py,127,if row[4] not in indexes:
../django/django/db/backends/mysql/introspection.py,128,indexes[row[4]] = {'primary_key': False, 'unique': False}
../django/django/db/backends/mysql/introspection.py,130,if row[2] == 'PRIMARY':
../django/django/db/backends/mysql/introspection.py,131,indexes[row[4]]['primary_key'] = True
../django/django/db/backends/mysql/introspection.py,132,if not row[1]:
../django/django/db/backends/mysql/introspection.py,133,indexes[row[4]]['unique'] = True
../django/django/db/backends/mysql/introspection.py,148,return result[0]
../django/django/db/backends/mysql/schema.py,74,first_field = model._meta.get_field(fields[0])
../django/django/db/backends/mysql/schema.py,76,constraint_names = self._constraint_names(model, fields[0], index=True)
../django/django/db/backends/mysql/schema.py,79,self._create_index_sql(model, [model._meta.get_field(fields[0])], suffix="")
../django/django/db/backends/oracle/base.py,277,x = e.args[0]
../django/django/db/backends/oracle/base.py,280,six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
../django/django/db/backends/oracle/base.py,320,return int(self.oracle_full_version.split('.')[0])
../django/django/db/backends/oracle/base.py,433,if hasattr(params_list[0], 'keys'):
../django/django/db/backends/oracle/base.py,442,sizes = [None] * len(params_list[0])
../django/django/db/backends/oracle/base.py,483,if hasattr(e.args[0], 'code') and e.args[0].code == 1400 and not isinstance(e, IntegrityError):
../django/django/db/backends/oracle/base.py,484,six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
../django/django/db/backends/oracle/base.py,503,if hasattr(e.args[0], 'code') and e.args[0].code == 1400 and not isinstance(e, IntegrityError):
../django/django/db/backends/oracle/base.py,504,six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
../django/django/db/backends/oracle/base.py,564,if value is not None and desc[1] is Database.NUMBER:
../django/django/db/backends/oracle/base.py,593,elif desc[1] in (Database.STRING, Database.FIXED_CHAR,
../django/django/db/backends/oracle/introspection.py,56,return [TableInfo(row[0].lower(), row[1]) for row in cursor.fetchall()]
../django/django/db/backends/oracle/introspection.py,66,name = force_text(desc[0])  # cx_Oracle always returns a 'str' on both Python 2 and 3
../django/django/db/backends/oracle/introspection.py,80,return {d[0]: i for i, d in enumerate(self.get_table_description(cursor, table_name))}
../django/django/db/backends/oracle/introspection.py,104,relations[row[0].lower()] = (row[2].lower(), row[1].lower())
../django/django/db/backends/oracle/introspection.py,145,indexes[row[0]] = {'primary_key': bool(row[1]),
../django/django/db/backends/oracle/introspection.py,146,'unique': bool(row[2])}
../django/django/db/backends/oracle/operations.py,257,return cursor.fetchone()[0]
../django/django/db/backends/oracle/schema.py,97,if nn[0] == '"' and nn[-1] == '"':
../django/django/db/backends/oracle/utils.py,9,if int(Database.version.split('.', 1)[0]) >= 5 and \
../django/django/db/backends/oracle/utils.py,10,(int(Database.version.split('.', 2)[1]) >= 1 or
../django/django/db/backends/postgresql_psycopg2/base.py,28,version = psycopg2.__version__.split(' ', 1)[0]
../django/django/db/backends/postgresql_psycopg2/introspection.py,54,return [TableInfo(row[0], {'r': 't', 'v': 'v'}.get(row[1]))
../django/django/db/backends/postgresql_psycopg2/introspection.py,56,if row[0] not in self.ignored_tables]
../django/django/db/backends/postgresql_psycopg2/introspection.py,66,field_map = {line[0]: line[1:] for line in cursor.fetchall()}
../django/django/db/backends/postgresql_psycopg2/introspection.py,68,return [FieldInfo(*((force_text(line[0]),) + line[1:6]
../django/django/db/backends/postgresql_psycopg2/introspection.py,69,+ (field_map[force_text(line[0])][0] == 'YES', field_map[force_text(line[0])][1])))
../django/django/db/backends/postgresql_psycopg2/introspection.py,82,LEFT JOIN pg_attribute a1 ON c1.oid = a1.attrelid AND a1.attnum = con.conkey[1]
../django/django/db/backends/postgresql_psycopg2/introspection.py,83,LEFT JOIN pg_attribute a2 ON c2.oid = a2.attrelid AND a2.attnum = con.confkey[1]
../django/django/db/backends/postgresql_psycopg2/introspection.py,88,relations[row[1]] = (row[2], row[0])
../django/django/db/backends/postgresql_psycopg2/introspection.py,118,AND attr.attnum = idx.indkey[0]
../django/django/db/backends/postgresql_psycopg2/introspection.py,122,# row[1] (idx.indkey) is stored in the DB as an array. It comes out as
../django/django/db/backends/postgresql_psycopg2/introspection.py,126,if ' ' in row[1]:
../django/django/db/backends/postgresql_psycopg2/introspection.py,128,if row[0] not in indexes:
../django/django/db/backends/postgresql_psycopg2/introspection.py,129,indexes[row[0]] = {'primary_key': False, 'unique': False}
../django/django/db/backends/postgresql_psycopg2/introspection.py,131,if row[3]:
../django/django/db/backends/postgresql_psycopg2/introspection.py,132,indexes[row[0]]['primary_key'] = True
../django/django/db/backends/postgresql_psycopg2/introspection.py,133,if row[2]:
../django/django/db/backends/postgresql_psycopg2/introspection.py,134,indexes[row[0]]['unique'] = True
../django/django/db/backends/postgresql_psycopg2/introspection.py,169,"foreign_key": tuple(used_cols[0].split(".", 1)) if kind.lower() == "foreign key" else None,
../django/django/db/backends/postgresql_psycopg2/operations.py,20,return 'CAST(%%s AS %s)' % output_field.db_type(self.connection).split('(')[0]
../django/django/db/backends/postgresql_psycopg2/operations.py,84,return cursor.fetchone()[0]
../django/django/db/backends/postgresql_psycopg2/version.py,44,return _parse_version(cursor.fetchone()[0])
../django/django/db/backends/sqlite3/base.py,289,% (table_name, bad_row[0], table_name, column_name, bad_row[1],
../django/django/db/backends/sqlite3/introspection.py,69,return [TableInfo(row[0], row[1][0]) for row in cursor.fetchall()]
../django/django/db/backends/sqlite3/introspection.py,113,results = cursor.fetchone()[0].strip()
../django/django/db/backends/sqlite3/introspection.py,135,field_name = m.groups()[0].strip('"')
../django/django/db/backends/sqlite3/introspection.py,137,field_name = field_desc.split()[0].strip('"')
../django/django/db/backends/sqlite3/introspection.py,140,result = cursor.fetchall()[0]
../django/django/db/backends/sqlite3/introspection.py,141,other_table_results = result[0].strip()
../django/django/db/backends/sqlite3/introspection.py,150,other_name = other_desc.split(' ', 1)[0].strip('"')
../django/django/db/backends/sqlite3/introspection.py,166,results = cursor.fetchone()[0].strip()
../django/django/db/backends/sqlite3/introspection.py,194,for index, unique in [(field[1], field[2]) for field in cursor.fetchall()]:
../django/django/db/backends/sqlite3/introspection.py,200,name = info[0][2]  # seqno, cid, name
../django/django/db/backends/sqlite3/introspection.py,214,results = row[0].strip()
../django/django/db/backends/sqlite3/introspection.py,220,return m.groups()[0]
../django/django/db/backends/sqlite3/introspection.py,227,'name': field[1],
../django/django/db/backends/sqlite3/introspection.py,228,'type': field[2],
../django/django/db/backends/sqlite3/introspection.py,229,'size': get_field_size(field[2]),
../django/django/db/backends/sqlite3/introspection.py,230,'null_ok': not field[3],
../django/django/db/backends/sqlite3/introspection.py,231,'default': field[4],
../django/django/db/backends/sqlite3/introspection.py,232,'pk': field[5],  # undocumented
../django/django/db/backends/sqlite3/schema.py,25,self._initial_pragma_fk = c.fetchone()[0]
../django/django/db/migrations/autodetector.py,82,del deconstruction[2]['to']
../django/django/db/migrations/autodetector.py,201,if dep[0] == app_label:
../django/django/db/migrations/autodetector.py,237,if dep[0] == "__setting__":
../django/django/db/migrations/autodetector.py,242,resolved_app_label, resolved_object_name = getattr(settings, dep[1]).split('.')
../django/django/db/migrations/autodetector.py,244,dep = (resolved_app_label, resolved_object_name.lower(), dep[2], dep[3])
../django/django/db/migrations/autodetector.py,246,if dep[0] != app_label and dep[0] != "__setting__":
../django/django/db/migrations/autodetector.py,249,for other_operation in self.generated_operations.get(dep[0], []):
../django/django/db/migrations/autodetector.py,257,operation_dependencies.add((original_dep[0], original_dep[1]))
../django/django/db/migrations/autodetector.py,258,elif dep[0] in self.migrations:
../django/django/db/migrations/autodetector.py,259,operation_dependencies.add((dep[0], self.migrations[dep[0]][-1].name))
../django/django/db/migrations/autodetector.py,267,if graph and graph.leaf_nodes(dep[0]):
../django/django/db/migrations/autodetector.py,268,operation_dependencies.add(graph.leaf_nodes(dep[0])[0])
../django/django/db/migrations/autodetector.py,270,operation_dependencies.add((dep[0], "__first__"))
../django/django/db/migrations/autodetector.py,321,if dependency[2] is None and dependency[3] is True:
../django/django/db/migrations/autodetector.py,324,operation.name_lower == dependency[1].lower()
../django/django/db/migrations/autodetector.py,327,elif dependency[2] is not None and dependency[3] is True:
../django/django/db/migrations/autodetector.py,331,operation.name_lower == dependency[1].lower() and
../django/django/db/migrations/autodetector.py,332,any(dependency[2] == x for x, y in operation.fields)
../django/django/db/migrations/autodetector.py,336,operation.model_name_lower == dependency[1].lower() and
../django/django/db/migrations/autodetector.py,337,operation.name_lower == dependency[2].lower()
../django/django/db/migrations/autodetector.py,341,elif dependency[2] is not None and dependency[3] is False:
../django/django/db/migrations/autodetector.py,344,operation.model_name_lower == dependency[1].lower() and
../django/django/db/migrations/autodetector.py,345,operation.name_lower == dependency[2].lower()
../django/django/db/migrations/autodetector.py,348,elif dependency[2] is None and dependency[3] is False:
../django/django/db/migrations/autodetector.py,351,operation.name_lower == dependency[1].lower()
../django/django/db/migrations/autodetector.py,354,elif dependency[2] is not None and dependency[3] == "alter":
../django/django/db/migrations/autodetector.py,357,operation.model_name_lower == dependency[1].lower() and
../django/django/db/migrations/autodetector.py,358,operation.name_lower == dependency[2].lower()
../django/django/db/migrations/autodetector.py,361,elif dependency[2] is not None and dependency[3] == "order_wrt_unset":
../django/django/db/migrations/autodetector.py,364,operation.name_lower == dependency[1].lower() and
../django/django/db/migrations/autodetector.py,365,(operation.order_with_respect_to or "").lower() != dependency[2].lower()
../django/django/db/migrations/autodetector.py,368,elif dependency[2] is not None and dependency[3] == "foo_together_change":
../django/django/db/migrations/autodetector.py,372,operation.name_lower == dependency[1].lower()
../django/django/db/migrations/autodetector.py,392,model = self.new_apps.get_model(item[0], item[1])
../django/django/db/migrations/autodetector.py,394,string_version = "%s.%s" % (item[0], item[1])
../django/django/db/migrations/autodetector.py,401,return ("___" + item[0], "___" + item[1])
../django/django/db/migrations/autodetector.py,504,fields=[d for d in model_state.fields if d[0] not in related_fields],
../django/django/db/migrations/autodetector.py,700,dependencies.append((through_user[0], through_user[1], through_user[2], False))
../django/django/db/migrations/autodetector.py,739,if field.remote_field and field.remote_field.model and 'to' in old_field_dec[2]:
../django/django/db/migrations/autodetector.py,740,old_rel_to = old_field_dec[2]['to']
../django/django/db/migrations/autodetector.py,742,old_field_dec[2]['to'] = self.renamed_models_rel[old_rel_to]
../django/django/db/migrations/autodetector.py,963,if option[0] in AlterModelOptions.ALTER_OPTION_KEYS
../django/django/db/migrations/autodetector.py,967,if option[0] in AlterModelOptions.ALTER_OPTION_KEYS
../django/django/db/migrations/autodetector.py,1033,if leaf[0] == app_label:
../django/django/db/migrations/autodetector.py,1047,next_number = (self.parse_number(app_leaf[1]) or 0) + 1
../django/django/db/migrations/autodetector.py,1104,if isinstance(ops[0], operations.CreateModel):
../django/django/db/migrations/autodetector.py,1105,return ops[0].name_lower
../django/django/db/migrations/autodetector.py,1106,elif isinstance(ops[0], operations.DeleteModel):
../django/django/db/migrations/autodetector.py,1107,return "delete_%s" % ops[0].name_lower
../django/django/db/migrations/autodetector.py,1108,elif isinstance(ops[0], operations.AddField):
../django/django/db/migrations/autodetector.py,1109,return "%s_%s" % (ops[0].model_name_lower, ops[0].name_lower)
../django/django/db/migrations/autodetector.py,1110,elif isinstance(ops[0], operations.RemoveField):
../django/django/db/migrations/autodetector.py,1111,return "remove_%s_%s" % (ops[0].model_name_lower, ops[0].name_lower)
../django/django/db/migrations/autodetector.py,1124,return int(name.split("_")[0])
../django/django/db/migrations/executor.py,34,if target[1] is None:
../django/django/db/migrations/executor.py,36,if root[0] == target[0]:
../django/django/db/migrations/executor.py,51,if n[0] == target[0]
../django/django/db/migrations/executor.py,74,migrations_to_run = {m[0] for m in plan}
../django/django/db/migrations/graph.py,209,if (not any(key[0] == node[0] for key in self.node_map[node].parents)
../django/django/db/migrations/graph.py,210,and (not app or app == node[0])):
../django/django/db/migrations/graph.py,224,if (not any(key[0] == node[0] for key in self.node_map[node].children)
../django/django/db/migrations/graph.py,225,and (not app or app == node[0])):
../django/django/db/migrations/graph.py,265,if not isinstance(nodes[0], tuple):
../django/django/db/migrations/loader.py,95,import_name = name.rsplit(".", 1)[0]
../django/django/db/migrations/loader.py,96,if import_name[0] not in "_.~":
../django/django/db/migrations/loader.py,139,return self.disk_migrations[results[0]]
../django/django/db/migrations/loader.py,142,if (key[1] != "__first__" and key[1] != "__latest__") or key in self.graph:
../django/django/db/migrations/loader.py,148,if key[0] == current_app:
../django/django/db/migrations/loader.py,151,if key[0] in self.unmigrated_apps:
../django/django/db/migrations/loader.py,156,if key[0] in self.migrated_apps:
../django/django/db/migrations/loader.py,158,if key[1] == "__first__":
../django/django/db/migrations/loader.py,159,return list(self.graph.root_nodes(key[0]))[0]
../django/django/db/migrations/loader.py,161,return list(self.graph.leaf_nodes(key[0]))[0]
../django/django/db/migrations/loader.py,166,raise ValueError("Dependency on app with no migrations: %s" % key[0])
../django/django/db/migrations/loader.py,167,raise ValueError("Dependency on unknown app: %s" % key[0])
../django/django/db/migrations/loader.py,261,migration, missing[0], missing[1], tries
../django/django/db/migrations/loader.py,265,six.reraise(NodeNotFoundError, exc_value, sys.exc_info()[2])
../django/django/db/migrations/loader.py,272,if parent[0] != key[0] or parent[1] == '__first__':
../django/django/db/migrations/loader.py,286,if parent[0] == key[0]:
../django/django/db/migrations/loader.py,289,parent = self.check_key(parent, key[0])
../django/django/db/migrations/loader.py,298,child = self.check_key(child, key[0])
../django/django/db/migrations/migration.py,185,return SwappableTuple((value.split(".", 1)[0], "__first__"), value)
../django/django/db/migrations/questioner.py,51,filenames = os.listdir(list(migrations_module.__path__)[0])
../django/django/db/migrations/questioner.py,83,while len(result) < 1 or result[0].lower() not in "yn":
../django/django/db/migrations/questioner.py,85,return result[0].lower() == "y"
../django/django/db/migrations/state.py,27,return (tuple(split) if len(split) == 2 else (app_label, split[0]))
../django/django/db/migrations/state.py,468,sorted(managers_mapping.items(), key=lambda v: v[1])
../django/django/db/migrations/state.py,512,sorted_managers = sorted(self.managers, key=lambda v: v[1].creation_counter)
../django/django/db/migrations/writer.py,61,self.feed('%s: %s' % (key_string, args[0]))
../django/django/db/migrations/writer.py,90,self.feed('%s=%s' % (_arg_name, args[0]))
../django/django/db/migrations/writer.py,174,if dependency[0] == "__setting__":
../django/django/db/migrations/writer.py,175,dependencies.append("        migrations.swappable_dependency(settings.%s)," % dependency[1])
../django/django/db/migrations/writer.py,180,dependencies.append("        %s," % self.serialize(dependency)[0])
../django/django/db/migrations/writer.py,188,migration_imports.add(line.split("import")[1].strip())
../django/django/db/migrations/writer.py,202,sorted_imports = sorted(imports, key=lambda i: i.split()[1])
../django/django/db/migrations/writer.py,213,items['replaces_str'] = "\n    replaces = %s\n" % self.serialize(self.migration.replaces)[0]
../django/django/db/migrations/operations/base.py,49,self._constructor_args[0],
../django/django/db/migrations/operations/base.py,50,self._constructor_args[1],
../django/django/db/migrations/operations/base.py,117,", ".join(map(repr, self._constructor_args[0])),
../django/django/db/migrations/operations/base.py,118,",".join(" %s=%r" % x for x in self._constructor_args[1].items()),
../django/django/db/models/__init__.py,39,return reverse(bits[0], None, *bits[1:3])
../django/django/db/models/aggregates.py,21,if c.source_expressions[0].contains_aggregate and not summarize:
../django/django/db/models/aggregates.py,22,name = self.source_expressions[0].name
../django/django/db/models/aggregates.py,30,return self.source_expressions[0]
../django/django/db/models/aggregates.py,34,if hasattr(self.source_expressions[0], 'name'):
../django/django/db/models/aggregates.py,35,return '%s__%s' % (self.source_expressions[0].name, self.name.lower())
../django/django/db/models/base.py,444,raise TypeError("'%s' is an invalid keyword argument for this function" % list(kwargs)[0])
../django/django/db/models/base.py,856,return qs[0]
../django/django/db/models/base.py,994,key = unique_check[0]
../django/django/db/models/base.py,1059,field = opts.get_field(unique_check[0])
../django/django/db/models/base.py,1266,if fields and not fields[0].primary_key and cls._meta.pk.name == 'id':
../django/django/db/models/deletion.py,26,field.remote_field.model.__name__, sub_objs[0].__class__.__name__, field.name
../django/django/db/models/deletion.py,100,model = objs[0].__class__
../django/django/db/models/deletion.py,123,model = objs[0].__class__
../django/django/db/models/deletion.py,203,model = new_objs[0].__class__
../django/django/db/models/expressions.py,670,self.expression = exprs[0]
../django/django/db/models/expressions.py,692,self.result = self._parse_expressions(then)[0]
../django/django/db/models/expressions.py,760,self.default = self._parse_expressions(default)[0]
../django/django/db/models/expressions.py,929,self.expression = exprs[0]
../django/django/db/models/functions.py,83,return ConcatPair(expressions[0], self._paired(expressions[1:]))
../django/django/db/models/lookups.py,235,params[0] = connection.ops.prep_for_iexact_query(params[0])
../django/django/db/models/lookups.py,338,params[0] = "%%%s%%" % connection.ops.prep_for_like_query(params[0])
../django/django/db/models/lookups.py,358,params[0] = "%s%%" % connection.ops.prep_for_like_query(params[0])
../django/django/db/models/lookups.py,371,params[0] = "%s%%" % connection.ops.prep_for_like_query(params[0])
../django/django/db/models/lookups.py,384,params[0] = "%%%s" % connection.ops.prep_for_like_query(params[0])
../django/django/db/models/lookups.py,397,params[0] = "%%%s" % connection.ops.prep_for_like_query(params[0])
../django/django/db/models/lookups.py,413,return "BETWEEN %s AND %s" % (rhs[0], rhs[1])
../django/django/db/models/manager.py,114,self._constructor_args[0],  # args
../django/django/db/models/manager.py,115,self._constructor_args[1],  # kwargs
../django/django/db/models/options.py,294,field = already_created[0]
../django/django/db/models/query.py,59,model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
../django/django/db/models/query.py,60,init_list = [f[0].target.attname
../django/django/db/models/query.py,159,yield row[0]
../django/django/db/models/query.py,297,return list(qs)[0]
../django/django/db/models/query.py,383,return clone._result_cache[0]
../django/django/db/models/query.py,545,return objects[0]
../django/django/db/models/query.py,554,return objects[0]
../django/django/db/models/query.py,1418,first_obj = obj_list[0]
../django/django/db/models/query.py,1558,val = vals[0] if vals else None
../django/django/db/models/query.py,1618,self.cols_start = select_fields[0]
../django/django/db/models/query.py,1621,f[0].target.attname for f in select[self.cols_start:self.cols_end]
../django/django/db/models/query.py,1630,field = select[idx][0].target
../django/django/db/models/query.py,1634,self.init_list = [v[1] for v in reorder_map]
../django/django/db/models/query_utils.py,101,aggregate, aggregate_lookups = refs_aggregate(obj[0].split(LOOKUP_SEP), existing_aggregates)
../django/django/db/models/query_utils.py,102,if not aggregate and hasattr(obj[1], 'refs_aggregate'):
../django/django/db/models/query_utils.py,103,return obj[1].refs_aggregate(existing_aggregates)
../django/django/db/models/query_utils.py,142,f = [f for f in opts.fields if f.attname == self.field_name][0]
../django/django/db/models/fields/__init__.py,796,named_groups = choices and isinstance(choices[0][1], (list, tuple))
../django/django/db/models/fields/__init__.py,2433,bounds = self.year_lookup_bounds(connection, rhs_params[0])
../django/django/db/models/fields/__init__.py,2445,start, finish = self.year_lookup_bounds(connection, rhs_params[0])
../django/django/db/models/fields/related.py,386,return target_fields[0]
../django/django/db/models/fields/related.py,430,queryset._add_hints(instance=instances[0])
../django/django/db/models/fields/related.py,568,queryset._add_hints(instance=instances[0])
../django/django/db/models/fields/related.py,573,related_field = self.field.foreign_related_fields[0]
../django/django/db/models/fields/related.py,582,query = {'%s__in' % related_field.name: set(instance_attr(inst)[0] for inst in instances)}
../django/django/db/models/fields/related.py,742,queryset._add_hints(instance=instances[0])
../django/django/db/models/fields/related.py,979,queryset._add_hints(instance=instances[0])
../django/django/db/models/fields/related.py,1079,fk_val = (self.target_field.get_foreign_related_value(obj)[0]
../django/django/db/models/fields/related.py,1144,target_field_name).get_foreign_related_value(obj)[0]
../django/django/db/models/fields/related.py,1163,source_field_name: self.related_val[0],
../django/django/db/models/fields/related.py,1179,'%s_id' % source_field_name: self.related_val[0],
../django/django/db/models/fields/related.py,1203,fk_val = self.target_field.get_foreign_related_value(obj)[0]
../django/django/db/models/fields/related.py,1330,return target_fields[0]
../django/django/db/models/fields/related.py,1546,field = opts.get_field(self.through_fields[0])
../django/django/db/models/fields/related.py,1552,return field.foreign_related_fields[0]
../django/django/db/models/fields/related.py,1621,field_name = self.foreign_related_fields[0].name
../django/django/db/models/fields/related.py,1946,return self.foreign_related_fields[0]
../django/django/db/models/fields/related.py,2014,return smart_text(choice_list[1][0])
../django/django/db/models/fields/related.py,2124,to = make_model_tuple(to_model)[1]
../django/django/db/models/fields/related.py,2395,self.remote_field.through_fields[0] and self.remote_field.through_fields[1]):
../django/django/db/models/fields/related.py,2561,link_field_name = self.remote_field.through_fields[0]
../django/django/db/models/fields/related.py,2580,link_field_name = self.remote_field.through_fields[1]
../django/django/db/models/fields/related.py,2611,data = [choices_list[0][0]]
../django/django/db/models/fields/related_lookups.py,42,self.rhs = [get_normalized_value(val, self.lhs)[0] for val in self.rhs]
../django/django/db/models/fields/related_lookups.py,86,self.rhs = get_normalized_value(self.rhs, self.lhs)[0]
../django/django/db/models/sql/aggregates.py,87,clone.col = (change_map.get(self.col[0], self.col[0]), self.col[1])
../django/django/db/models/sql/compiler.py,149,getattr(expr, 'alias', None) == self.query.tables[0]):
../django/django/db/models/sql/compiler.py,325,select_sql = [t[1] for t in select]
../django/django/db/models/sql/compiler.py,801,fields = [s[0] for s in self.select[0:self.col_count]]
../django/django/db/models/sql/compiler.py,888,return '%s.%s IN (%s)' % (qn(alias), qn2(columns[0]), sql), params
../django/django/db/models/sql/compiler.py,956,params = params[0]
../django/django/db/models/sql/compiler.py,958,result.append("VALUES (%s)" % ", ".join(placeholders[0]))
../django/django/db/models/sql/compiler.py,998,result = ['DELETE FROM %s' % qn(self.query.tables[0])]
../django/django/db/models/sql/compiler.py,1014,table = self.query.tables[0]
../django/django/db/models/sql/compiler.py,1117,idents.extend(r[0] for r in rows)
../django/django/db/models/sql/query.py,71,return [converter(column_meta[0])
../django/django/db/models/sql/query.py,319,obj.deferred_loading = copy.copy(self.deferred_loading[0]), self.deferred_loading[1]
../django/django/db/models/sql/query.py,693,alias = alias_list[0]
../django/django/db/models/sql/query.py,791,old_alias = col[0]
../django/django/db/models/sql/query.py,792,return (change_map.get(old_alias, old_alias), col[1])
../django/django/db/models/sql/query.py,880,alias = self.tables[0]
../django/django/db/models/sql/query.py,921,self.ref_alias(reuse[0])
../django/django/db/models/sql/query.py,922,return reuse[0]
../django/django/db/models/sql/query.py,1083,name = lookups[0]
../django/django/db/models/sql/query.py,1187,lookup_class = field.get_lookup(lookups[0])
../django/django/db/models/sql/query.py,1189,lhs = targets[0].get_col(alias, field)
../django/django/db/models/sql/query.py,1195,col = targets[0].get_col(alias, field)
../django/django/db/models/sql/query.py,1205,self.is_nullable(targets[0]) or
../django/django/db/models/sql/query.py,1216,lookup_class = targets[0].get_lookup('isnull')
../django/django/db/models/sql/query.py,1217,clause.add(lookup_class(targets[0].get_col(alias, sources[0]), False), AND)
../django/django/db/models/sql/query.py,1221,self.add_q(Q(**{filter_clause[0]: filter_clause[1]}))
../django/django/db/models/sql/query.py,1332,cur_names_with_path[1].append(
../django/django/db/models/sql/query.py,1340,cur_names_with_path[1].extend(pathinfos[0:inner_pos + 1])
../django/django/db/models/sql/query.py,1348,cur_names_with_path[1].extend(pathinfos)
../django/django/db/models/sql/query.py,1428,targets = tuple(r[0] for r in info.join_field.related_fields if r[1].column in cur_targets)
../django/django/db/models/sql/query.py,1455,col = targets[0].get_col(join_list[-1], sources[0])
../django/django/db/models/sql/query.py,1489,col = query.select[0]
../django/django/db/models/sql/query.py,1502,# Note that the query.select[0].alias is different from alias
../django/django/db/models/sql/query.py,1504,lookup = lookup_class(pk.get_col(query.select[0].alias),
../django/django/db/models/sql/query.py,1901,lookup_tables = [t for t in self.tables if t in self._lookup_joins or t == self.tables[0]]
../django/django/db/models/sql/query.py,1920,join_field.foreign_related_fields[0].name)
../django/django/db/models/sql/query.py,1926,select_fields = [r[0] for r in join_field.related_fields]
../django/django/db/models/sql/query.py,1937,select_fields = [r[1] for r in join_field.related_fields]
../django/django/db/models/sql/query.py,1977,if field[0] == '-':
../django/django/db/models/sql/query.py,1978,return field[1:], dirn[1]
../django/django/db/models/sql/query.py,1979,return field, dirn[0]
../django/django/dispatch/dispatcher.py,108,assert argspec[2] is not None, \
../django/django/dispatch/dispatcher.py,242,err.__traceback__ = sys.exc_info()[2]
../django/django/dispatch/dispatcher.py,254,if isinstance(r[1], weakref.ReferenceType) and r[1]() is None:
../django/django/forms/fields.py,692,), sys.exc_info()[2])
../django/django/forms/fields.py,722,if not url_fields[0]:
../django/django/forms/fields.py,724,url_fields[0] = 'http'
../django/django/forms/fields.py,725,if not url_fields[1]:
../django/django/forms/fields.py,728,url_fields[1] = url_fields[2]
../django/django/forms/fields.py,729,url_fields[2] = ''
../django/django/forms/fields.py,1058,DateField.clean(value[0]) and TimeField.clean(value[1]).
../django/django/forms/fields.py,1205,if data_list[0] in self.empty_values:
../django/django/forms/fields.py,1207,if data_list[1] in self.empty_values:
../django/django/forms/fields.py,1217,self.default_validators = validators.ip_address_validators(protocol, unpack_ipv4)[0]
../django/django/forms/forms.py,46,current_fields.sort(key=lambda x: x[1].creation_counter)
../django/django/forms/formsets.py,250,if k[1] is None:
../django/django/forms/formsets.py,252,return (0, k[1])
../django/django/forms/formsets.py,256,return [self.forms[i[0]] for i in self._ordering]
../django/django/forms/formsets.py,383,return self.forms[0].is_multipart()
../django/django/forms/formsets.py,392,return self.forms[0].media
../django/django/forms/models.py,723,"field": unique_check[0],
../django/django/forms/models.py,734,'field_name': date_check[2],
../django/django/forms/models.py,735,'date_field': date_check[3],
../django/django/forms/models.py,736,'lookup': six.text_type(date_check[1]),
../django/django/forms/models.py,965,fk = fks_to_parent[0]
../django/django/forms/models.py,985,fk = fks_to_parent[0]
../django/django/forms/utils.py,96,message = list(error)[0]
../django/django/forms/utils.py,137,return list(error)[0]
../django/django/forms/utils.py,172,), sys.exc_info()[2])
../django/django/forms/widgets.py,465,self.format or formats.get_format(self.format_key)[0])
../django/django/forms/widgets.py,626,self.choice_value = force_text(choice[0])
../django/django/forms/widgets.py,627,self.choice_label = force_text(choice[1])
../django/django/forms/widgets.py,953,self.year_none_value = (0, empty_label[0])
../django/django/forms/widgets.py,954,self.month_none_value = (0, empty_label[1])
../django/django/forms/widgets.py,955,self.day_none_value = (0, empty_label[2])
../django/django/forms/widgets.py,988,input_format = get_format('DATE_INPUT_FORMATS')[0]
../django/django/forms/widgets.py,1024,input_format = get_format('DATE_INPUT_FORMATS')[0]
../django/django/http/multipartparser.py,135,return result[0], result[1]
../django/django/http/multipartparser.py,146,counters = [0] * len(handlers)
../django/django/http/multipartparser.py,158,disposition = meta_data['content-disposition'][1]
../django/django/http/multipartparser.py,165,transfer_encoding = transfer_encoding[0].strip()
../django/django/http/multipartparser.py,194,content_length = int(meta_data.get('content-length')[0])
../django/django/http/multipartparser.py,198,counters = [0] * len(handlers)
../django/django/http/multipartparser.py,227,six.reraise(MultiPartParserError, MultiPartParserError(msg), sys.exc_info()[2])
../django/django/http/request.py,236,six.reraise(UnreadablePostError, UnreadablePostError(*e.args), sys.exc_info()[2])
../django/django/http/request.py,279,for f in chain.from_iterable(l[1] for l in self._files.lists()):
../django/django/http/request.py,295,six.reraise(UnreadablePostError, UnreadablePostError(*e.args), sys.exc_info()[2])
../django/django/http/request.py,302,six.reraise(UnreadablePostError, UnreadablePostError(*e.args), sys.exc_info()[2])
../django/django/http/request.py,549,return bits[0], ''
../django/django/http/response.py,152,return self._headers[header.lower()][1]
../django/django/http/response.py,164,return self._headers.get(header.lower(), (None, alternate))[1]
../django/django/middleware/common.py,64,if (settings.PREPEND_WWW and old_url[0] and
../django/django/middleware/common.py,65,not old_url[0].startswith('www.')):
../django/django/middleware/common.py,66,new_url[0] = 'www.' + old_url[0]
../django/django/middleware/common.py,70,if settings.APPEND_SLASH and (not old_url[1].endswith('/')):
../django/django/middleware/common.py,74,new_url[1] = request.get_full_path(force_append_slash=True)
../django/django/middleware/common.py,87,if new_url[0] != old_url[0]:
../django/django/middleware/common.py,90,new_url[0], new_url[1])
../django/django/middleware/common.py,92,newurl = new_url[1]
../django/django/template/base.py,289,message = force_text(exception.args[0])
../django/django/template/base.py,353,sentinal = bit[2] + ')'
../django/django/template/base.py,484,command = token.contents.split()[0]
../django/django/template/base.py,566,del self.tokens[0]
../django/django/template/base.py,814,if var.find(VARIABLE_ATTRIBUTE_SEPARATOR + '_') > -1 or var[0] == '_':
../django/django/template/base.py,1042,match = kwarg_re.match(bits[0])
../django/django/template/base.py,1047,if len(bits) < 3 or bits[1] != 'as':
../django/django/template/base.py,1053,match = kwarg_re.match(bits[0])
../django/django/template/base.py,1059,if len(bits) < 3 or bits[1] != 'as':
../django/django/template/base.py,1061,key, value = bits[2], bits[0]
../django/django/template/base.py,1065,if bits[0] != 'and':
../django/django/template/defaultfilters.py,47,args[0] = force_text(args[0])
../django/django/template/defaultfilters.py,48,if (isinstance(args[0], SafeData) and
../django/django/template/defaultfilters.py,80,return value and value[0].upper() + value[1:]
../django/django/template/defaultfilters.py,168,units = len(tupl[1]) - tupl[2]
../django/django/template/defaultfilters.py,551,return value[0]
../django/django/template/defaultfilters.py,870,yes, no, maybe = bits[0], bits[1], bits[1]
../django/django/template/defaulttags.py,217,context[self.loopvars[0]] = item
../django/django/template/defaulttags.py,496,project_name = settings.SETTINGS_MODULE.split('.')[0]
../django/django/template/defaulttags.py,587,arg = args[1]
../django/django/template/defaulttags.py,653,if ',' in args[1]:
../django/django/template/defaulttags.py,660,args[1:2] = ['"%s"' % arg for arg in args[1].split(",")]
../django/django/template/defaulttags.py,664,name = args[1]
../django/django/template/defaulttags.py,893,raise TemplateSyntaxError("%r takes two arguments" % bits[0])
../django/django/template/defaulttags.py,894,end_tag = 'end' + bits[0]
../django/django/template/defaulttags.py,902,val1 = parser.compile_filter(bits[1])
../django/django/template/defaulttags.py,903,val2 = parser.compile_filter(bits[2])
../django/django/template/defaulttags.py,1115,if bits[2] == 'parsed':
../django/django/template/defaulttags.py,1119," must be 'parsed'" % bits[0])
../django/django/template/defaulttags.py,1120,filepath = parser.compile_filter(bits[1])
../django/django/template/defaulttags.py,1215,tagname = bits[0]
../django/django/template/defaulttags.py,1255,format_string = bits[1][1:-1]
../django/django/template/defaulttags.py,1309,target = parser.compile_filter(bits[1])
../django/django/template/defaulttags.py,1310,if bits[2] != 'by':
../django/django/template/defaulttags.py,1312,if bits[4] != 'as':
../django/django/template/defaulttags.py,1315,var_name = bits[5]
../django/django/template/defaulttags.py,1324,bits[3])
../django/django/template/defaulttags.py,1386,tag = bits[1]
../django/django/template/defaulttags.py,1461," (path to a view)" % bits[0])
../django/django/template/defaulttags.py,1462,viewname = parser.compile_filter(bits[1])
../django/django/template/defaulttags.py,1572,"assignment" % bits[0])
../django/django/template/defaulttags.py,1575,(bits[0], remaining_bits[0]))
../django/django/template/engine.py,92,return django_engines[0].engine
../django/django/template/engine.py,131,loader = loader[0]
../django/django/template/engine.py,266,if exc.args[0] not in not_found:
../django/django/template/engine.py,267,not_found.append(exc.args[0])
../django/django/template/library.py,251,if params[0] == 'context':
../django/django/template/loader_tags.py,209,raise TemplateSyntaxError("'%s' tag takes only one argument" % bits[0])
../django/django/template/loader_tags.py,210,block_name = bits[1]
../django/django/template/loader_tags.py,215,raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))
../django/django/template/loader_tags.py,243,raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
../django/django/template/loader_tags.py,244,parent_name = parser.compile_filter(bits[1])
../django/django/template/loader_tags.py,247,raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
../django/django/template/loader_tags.py,272,"be included." % bits[0]
../django/django/template/loader_tags.py,285,'one keyword argument.' % bits[0])
../django/django/template/loader_tags.py,290,(bits[0], option))
../django/django/template/loader_tags.py,294,return IncludeNode(parser.compile_filter(bits[1]), extra_context=namemap,
../django/django/template/backends/django.py,107,six.reraise(exc.__class__, new, sys.exc_info()[2])
../django/django/template/backends/django.py,144,module = import_module(entry[1])
../django/django/template/backends/django.py,148,"trying to load '%s': %s" % (entry[1], e)
../django/django/template/backends/django.py,152,yield entry[1]
../django/django/template/backends/jinja2.py,47,sys.exc_info()[2],
../django/django/template/backends/jinja2.py,52,six.reraise(TemplateSyntaxError, new, sys.exc_info()[2])
../django/django/template/backends/jinja2.py,91,during = lines[lineno - 1][1]
../django/django/template/loaders/base.py,31,if 'template_dirs' in getargspec(self.get_template_sources)[0]:
../django/django/template/loaders/cached.py,54,if 'template_dirs' in getargspec(loader.get_template_sources)[0]:
../django/django/templatetags/cache.py,83,raise TemplateSyntaxError("'%r' tag requires at least 2 arguments." % tokens[0])
../django/django/templatetags/cache.py,90,parser.compile_filter(tokens[1]),
../django/django/templatetags/cache.py,91,tokens[2],  # fragment_name can't be a variable.
../django/django/templatetags/i18n.py,42,if len(language[0]) > 1:
../django/django/templatetags/i18n.py,43,return translation.get_language_info(language[0])
../django/django/templatetags/i18n.py,202,if len(args) != 3 or args[1] != 'as':
../django/django/templatetags/i18n.py,204,return GetAvailableLanguagesNode(args[2])
../django/django/templatetags/i18n.py,222,if len(args) != 5 or args[1] != 'for' or args[3] != 'as':
../django/django/templatetags/i18n.py,223,raise TemplateSyntaxError("'%s' requires 'for string as variable' (got %r)" % (args[0], args[1:]))
../django/django/templatetags/i18n.py,224,return GetLanguageInfoNode(parser.compile_filter(args[2]), args[4])
../django/django/templatetags/i18n.py,246,if len(args) != 5 or args[1] != 'for' or args[3] != 'as':
../django/django/templatetags/i18n.py,247,raise TemplateSyntaxError("'%s' requires 'for sequence as variable' (got %r)" % (args[0], args[1:]))
../django/django/templatetags/i18n.py,248,return GetLanguageInfoListNode(parser.compile_filter(args[2]), args[4])
../django/django/templatetags/i18n.py,281,if len(args) != 3 or args[1] != 'as':
../django/django/templatetags/i18n.py,283,return GetCurrentLanguageNode(args[2])
../django/django/templatetags/i18n.py,301,if len(args) != 3 or args[1] != 'as':
../django/django/templatetags/i18n.py,303,return GetCurrentLanguageBidiNode(args[2])
../django/django/templatetags/i18n.py,350,raise TemplateSyntaxError("'%s' takes at least one argument" % bits[0])
../django/django/templatetags/i18n.py,351,message_string = parser.compile_filter(bits[1])
../django/django/templatetags/i18n.py,372,msg = "No argument provided to the '%s' tag for the context option." % bits[0]
../django/django/templatetags/i18n.py,373,six.reraise(TemplateSyntaxError, TemplateSyntaxError(msg), sys.exc_info()[2])
../django/django/templatetags/i18n.py,376,"Invalid argument '%s' provided to the '%s' tag for the context option" % (value, bits[0]),
../django/django/templatetags/i18n.py,383,msg = "No argument provided to the '%s' tag for the as option." % bits[0]
../django/django/templatetags/i18n.py,384,six.reraise(TemplateSyntaxError, TemplateSyntaxError(msg), sys.exc_info()[2])
../django/django/templatetags/i18n.py,390,bits[0], option,
../django/django/templatetags/i18n.py,446,'one keyword argument.' % bits[0])
../django/django/templatetags/i18n.py,451,'one keyword argument.' % bits[0])
../django/django/templatetags/i18n.py,459,'exactly one argument.') % bits[0]
../django/django/templatetags/i18n.py,460,six.reraise(TemplateSyntaxError, TemplateSyntaxError(msg), sys.exc_info()[2])
../django/django/templatetags/i18n.py,465,(bits[0], option))
../django/django/templatetags/i18n.py,469,countervar, counter = list(options['count'].items())[0]
../django/django/templatetags/i18n.py,518,raise TemplateSyntaxError("'%s' takes one argument (language)" % bits[0])
../django/django/templatetags/i18n.py,519,language = parser.compile_filter(bits[1])
../django/django/templatetags/l10n.py,59,elif len(bits) > 2 or bits[1] not in ('on', 'off'):
../django/django/templatetags/l10n.py,60,raise TemplateSyntaxError("%r argument should be 'on' or 'off'" % bits[0])
../django/django/templatetags/l10n.py,62,use_l10n = bits[1] == 'on'
../django/django/templatetags/static.py,27,if len(tokens) > 1 and tokens[1] != 'as':
../django/django/templatetags/static.py,29,"First argument in '%s' must be 'as'" % tokens[0])
../django/django/templatetags/static.py,31,varname = tokens[2]
../django/django/templatetags/static.py,124,"'%s' takes at least one argument (path to file)" % bits[0])
../django/django/templatetags/static.py,126,path = parser.compile_filter(bits[1])
../django/django/templatetags/static.py,129,varname = bits[3]
../django/django/templatetags/tz.py,144,elif len(bits) > 2 or bits[1] not in ('on', 'off'):
../django/django/templatetags/tz.py,146,bits[0])
../django/django/templatetags/tz.py,148,use_tz = bits[1] == 'on'
../django/django/templatetags/tz.py,173,bits[0])
../django/django/templatetags/tz.py,174,tz = parser.compile_filter(bits[1])
../django/django/templatetags/tz.py,194,if len(args) != 3 or args[1] != 'as':
../django/django/templatetags/tz.py,197,return GetCurrentTimezoneNode(args[2])
../django/django/test/client.py,203,content_type = mimetypes.guess_type(filename)[0]
../django/django/test/client.py,285,path = force_str(parsed[2])
../django/django/test/client.py,287,if parsed[3]:
../django/django/test/client.py,288,path += str(";") + force_str(parsed[3])
../django/django/test/client.py,374,query_string = force_bytes(parsed[4])
../django/django/test/client.py,484,response.context = response.context[0]
../django/django/test/html.py,235,if not isinstance(document.children[0], six.string_types):
../django/django/test/html.py,236,document = document.children[0]
../django/django/test/runner.py,281,All tests of type classes[0] are placed first, then tests of type
../django/django/test/runner.py,282,classes[1], etc. Tests with no match in classes are placed last.
../django/django/test/runner.py,347,item[1].add(alias)
../django/django/test/testcases.py,295,self.assertEqual(response.redirect_chain[0][1], status_code,
../django/django/test/testcases.py,298,(response.redirect_chain[0][1], status_code))
../django/django/test/testcases.py,1123,return path.startswith(self.base_url[2]) and not self.base_url[1]
../django/django/test/testcases.py,1129,relative_url = url[len(self.base_url[2]):]
../django/django/test/testcases.py,1295,possible_ports.append(extremes[0])
../django/django/test/testcases.py,1298,for port in range(extremes[0], extremes[1] + 1):
../django/django/test/testcases.py,1302,six.reraise(ImproperlyConfigured, ImproperlyConfigured(msg), sys.exc_info()[2])
../django/django/test/utils.py,231,self.operations = args[0]
../django/django/test/utils.py,371,and s[0] == s[-1]
../django/django/test/utils.py,372,and s[0] in ('"', "'"))
../django/django/test/utils.py,377,and s[0] == 'u'
../django/django/test/utils.py,378,and s[1] == s[-1]
../django/django/test/utils.py,379,and s[1] in ('"', "'"))
../django/django/test/utils.py,628,self.old_stream = self.logger.handlers[0].stream
../django/django/test/utils.py,630,self.logger.handlers[0].stream = self.logger_output
../django/django/test/utils.py,633,self.logger.handlers[0].stream = self.old_stream
../django/django/utils/archive.py,151,name = self.split_leading_dir(name)[1]
../django/django/utils/archive.py,192,name = self.split_leading_dir(name)[1]
../django/django/utils/autoreload.py,227,filename = traceback.extract_tb(tb)[-1][0]
../django/django/utils/autoreload.py,244,if not attr_list[3] & termios.ECHO:
../django/django/utils/autoreload.py,245,attr_list[3] |= termios.ECHO
../django/django/utils/baseconv.py,73,if str(number)[0] == sign:
../django/django/utils/baseconv.py,86,res = to_digits[0]
../django/django/utils/cache.py,50,return (t[0].lower(), t[1])
../django/django/utils/cache.py,52,return (t[0].lower(), True)
../django/django/utils/cache.py,55,if t[1] is True:
../django/django/utils/cache.py,56,return t[0]
../django/django/utils/cache.py,58,return '%s=%s' % (t[0], t[1])
../django/django/utils/cache.py,276,return t[0].lower(), t[1]
../django/django/utils/cache.py,277,return t[0].lower(), True
../django/django/utils/datastructures.py,213,other_dict = args[0]
../django/django/utils/datastructures.py,240,>>> a[3] = '4'
../django/django/utils/dateformat.py,266,return self.data.isocalendar()[0]
../django/django/utils/dateformat.py,287,return '%02d' % calendar.monthrange(self.data.year, self.data.month)[1]
../django/django/utils/dateparse.py,104,if tzinfo[0] == '-':
../django/django/utils/deconstruct.py,46,obj._constructor_args[0],
../django/django/utils/deconstruct.py,47,obj._constructor_args[1],
../django/django/utils/deprecation.py,53,old_method_name = renamed_method[0]
../django/django/utils/deprecation.py,55,new_method_name = renamed_method[1]
../django/django/utils/deprecation.py,57,deprecation_warning = renamed_method[2]
../django/django/utils/encoding.py,289,encoding = locale.getdefaultlocale()[1] or 'ascii'
../django/django/utils/formats.py,64,locales.append(locale.split('_')[0])
../django/django/utils/formats.py,198,format = force_str(default or get_format('DATETIME_INPUT_FORMATS')[0])
../django/django/utils/formats.py,202,format = force_str(default or get_format('DATE_INPUT_FORMATS')[0])
../django/django/utils/formats.py,205,format = force_str(default or get_format('TIME_INPUT_FORMATS')[0])
../django/django/utils/functional.py,382,[0, 1, 2, 3], [4]
../django/django/utils/html.py,246,query_parts = [(unquote(force_str(q[0])), unquote(force_str(q[1])))
../django/django/utils/http.py,161,six.reraise(ValueError, ValueError("%r is not a valid date" % date), sys.exc_info()[2])
../django/django/utils/http.py,296,if unicodedata.category(url[0])[0] == 'C':
../django/django/utils/ipv6.py,116,int(hextets[6][0:2], 16),
../django/django/utils/ipv6.py,117,int(hextets[6][2:4], 16),
../django/django/utils/ipv6.py,118,int(hextets[7][0:2], 16),
../django/django/utils/ipv6.py,119,int(hextets[7][2:4], 16),
../django/django/utils/ipv6.py,144,return ip_str.rsplit(':', 1)[1]
../django/django/utils/ipv6.py,239,sep = len(hextet[0].split(':')) + len(hextet[1].split(':'))
../django/django/utils/ipv6.py,240,new_ip = hextet[0].split(':')
../django/django/utils/ipv6.py,244,new_ip += hextet[1].split(':')
../django/django/utils/lorem_ipsum.py,66,return '%s%s%s' % (s[0].upper(), s[1:], random.choice('?.'))
../django/django/utils/lru_cache.py,41,elif len(key) == 1 and type(key[0]) in fasttypes:
../django/django/utils/lru_cache.py,42,return key[0]
../django/django/utils/lru_cache.py,140,root = nonlocal_root[0] = oldroot[NEXT]
../django/django/utils/lru_cache.py,164,root = nonlocal_root[0]
../django/django/utils/module_loading.py,18,six.reraise(ImportError, ImportError(msg), sys.exc_info()[2])
../django/django/utils/module_loading.py,27,six.reraise(ImportError, ImportError(msg), sys.exc_info()[2])
../django/django/utils/module_loading.py,163,return paths[0]
../django/django/utils/numberformat.py,33,if str_number[0] == '-':
../django/django/utils/regex_helper.py,281,return int(values[0]), ch
../django/django/utils/regex_helper.py,307,if source[1] is None:
../django/django/utils/regex_helper.py,310,params = [source[1]]
../django/django/utils/regex_helper.py,311,return [source[0]], [params]
../django/django/utils/regex_helper.py,320,piece += elt[0]
../django/django/utils/regex_helper.py,321,param = elt[1]
../django/django/utils/six.py,36,PY2 = sys.version_info[0] == 2
../django/django/utils/six.py,37,PY3 = sys.version_info[0] == 3
../django/django/utils/six.py,601,if sys.version_info[1] <= 1:
../django/django/utils/six.py,625,return ord(bs[0])
../django/django/utils/termcolors.py,45,if text == '' and len(opts) == 1 and opts[0] == 'reset':
../django/django/utils/text.py,22,capfirst = lambda x: x and force_text(x)[0].upper() + force_text(x)[1:]
../django/django/utils/text.py,262,return force_text(list_[0])
../django/django/utils/text.py,368,if text[0] == '#':
../django/django/utils/text.py,371,if text[0] in 'xX':
../django/django/utils/text.py,406,if s[0] not in "\"'" or s[-1] != s[0]:
../django/django/utils/text.py,408,quote = s[0]
../django/django/utils/timezone.py,149,six.reraise(exc_type, exc_value, sys.exc_info()[2])
../django/django/utils/version.py,22,if version[3] == 'alpha' and version[4] == 0:
../django/django/utils/version.py,27,elif version[3] != 'final':
../django/django/utils/version.py,29,sub = mapping[version[3]] + str(version[4])
../django/django/utils/version.py,37,parts = 2 if version[2] == 0 else 3
../django/django/utils/version.py,49,assert version[3] in ('alpha', 'beta', 'rc', 'final')
../django/django/utils/version.py,56,if version[3] != 'final':
../django/django/utils/version.py,74,timestamp = git_log.communicate()[0]
../django/django/utils/translation/__init__.py,218,return get_language_info(lang_info['fallback'][0])
../django/django/utils/translation/__init__.py,223,generic_lang_code = lang_code.split('-')[0]
../django/django/utils/translation/trans_real.py,258,base_lang = get_language().split('-')[0]
../django/django/utils/translation/trans_real.py,440,generic_lang_code = lang_code.split('-')[0]
../django/django/utils/translation/trans_real.py,666,if g[0] == '"':
../django/django/utils/translation/trans_real.py,668,elif g[0] == "'":
../django/django/utils/translation/trans_real.py,675,if message_context[0] == '"':
../django/django/utils/translation/trans_real.py,677,elif message_context[0] == "'":
../django/django/utils/translation/trans_real.py,690,if message_context[0] == '"':
../django/django/utils/translation/trans_real.py,692,elif message_context[0] == "'":
../django/django/utils/translation/trans_real.py,708,cmatch = constant_re.match(parts[0])
../django/django/utils/translation/trans_real.py,713,out.write(' %s ' % p.split(':', 1)[1])
../django/django/utils/translation/trans_real.py,749,result.sort(key=lambda k: k[1], reverse=True)
../django/django/views/debug.py,302,unicode_str = self.exc_value.args[1]
../django/django/views/debug.py,370,if isinstance(source[0], six.binary_type):
../django/django/views/debug.py,471,error_url = exception.args[0]['path']
../django/django/views/debug.py,476,tried = exception.args[0]['tried']
../django/django/views/debug.py,483,and len(tried[0]) == 1
../django/django/views/debug.py,484,and getattr(tried[0][0], 'app_name', '') == getattr(tried[0][0], 'namespace', '') == 'admin')):
../django/django/views/debug.py,649,var s = link.getElementsByTagName('span')[0];
../django/django/views/defaults.py,28,message = exception.args[0]
../django/django/views/i18n.py,113,return (typeof(value) == 'string') ? value : value[0];
../django/django/views/i18n.py,259,plural = l.split(':', 1)[1].strip()
../django/django/views/i18n.py,264,plural = [el.strip() for el in plural.split(';') if el.strip().startswith('plural=')][0].split('=', 1)[1]
../django/django/views/i18n.py,275,msgid = k[0]
../django/django/views/i18n.py,276,cnt = k[1]
../django/django/views/decorators/cache.py,26,if len(args) != 1 or callable(args[0]):
../django/django/views/decorators/cache.py,28,cache_timeout = args[0]
../django/django/views/generic/dates.py,777,result = getattr(qs[0], date_field)
../django/docs/_ext/applyxrefs.py,41,if lines[0].startswith('.. _'):
../django/docs/_ext/applyxrefs.py,69,print('%s: %s' % (fn, lines[0]))
../django/docs/_ext/djangodocs.py,136,lang = self.hlsettingstack[-1][0]
../django/docs/_ext/djangodocs.py,137,linenos = code.count('\n') >= self.hlsettingstack[-1][1] - 1
../django/docs/_ext/djangodocs.py,185,literal['language'] = self.arguments[0]
../django/docs/_ext/djangodocs.py,210,if self.arguments[0] == env.config.django_next_version:
../django/docs/_ext/djangodocs.py,213,node['version'] = self.arguments[0]
../django/docs/_ext/djangodocs.py,300,command = sig.split(' ')[0]
../django/docs/_ext/literals_to_xrefs.py,67,if next_line[0] in "!-/:-@[-`{-~" and all(c == next_line[0] for c in next_line):
../django/docs/_ext/literals_to_xrefs.py,156,if text == '' and len(opts) == 1 and opts[0] == 'reset':
../django/docs/_ext/literals_to_xrefs.py,172,fixliterals(sys.argv[1])
../django/scripts/manage_translations.py,51,res_names = [d[0] for d in dirs]
../django/scripts/manage_translations.py,52,dirs = [ld for ld in dirs if ld[0] in resources]
../django/scripts/manage_translations.py,178,if options.cmd[0] in RUNABLE_SCRIPTS:
../django/scripts/manage_translations.py,179,eval(options.cmd[0])(options.resources, options.languages)
../django/tests/runtests.py,322,print("***** Source of error: %s" % test_labels[0])
../django/tests/admin_checks/tests.py,86,("The value of 'list_editable[0]' refers to 'original_release', "
../django/tests/admin_checks/tests.py,128,Tests for a tuple/list within fieldsets[1]['fields'].
../django/tests/admin_checks/tests.py,142,"The value of 'fieldsets[1]['fields']' must be a list or tuple.",
../django/tests/admin_checks/tests.py,152,Tests for a tuple/list within the second fieldsets[2]['fields'].
../django/tests/admin_checks/tests.py,167,"The value of 'fieldsets[1]['fields']' must be a list or tuple.",
../django/tests/admin_checks/tests.py,388,("The value of 'raw_id_fields[0]' refers to 'nonexisting', which is "
../django/tests/admin_checks/tests.py,485,("The value of 'readonly_fields[1]' is not a callable, an attribute "
../django/tests/admin_checks/tests.py,502,("The value of 'readonly_fields[0]' is not a callable, an attribute "
../django/tests/admin_checks/tests.py,560,("The value of 'fieldsets[1][1][\"fields\"]' cannot include the ManyToManyField "
../django/tests/admin_checks/tests.py,663,"There are duplicate field(s) in 'fieldsets[0][1]'.",
../django/tests/admin_custom_urls/tests.py,117,response, reverse('admin_custom_urls:admin_custom_urls_person_history', args=[persons[0].pk]))
../django/tests/admin_custom_urls/tests.py,128,person = Person.objects.all()[0]
../django/tests/admin_custom_urls/tests.py,147,response, reverse('admin_custom_urls:admin_custom_urls_car_history', args=[cars[0].pk]))
../django/tests/admin_filters/tests.py,21,return [x for x in dictlist if x[key] == value][0]
../django/tests/admin_filters/tests.py,269,filterspec = changelist.get_filters(request)[0][4]
../django/tests/admin_filters/tests.py,294,filterspec = changelist.get_filters(request)[0][4]
../django/tests/admin_filters/tests.py,319,filterspec = changelist.get_filters(request)[0][4]
../django/tests/admin_filters/tests.py,342,filterspec = changelist.get_filters(request)[0][4]
../django/tests/admin_filters/tests.py,370,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,380,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,383,self.assertEqual(choices[2]['selected'], True)
../django/tests/admin_filters/tests.py,384,self.assertEqual(choices[2]['query_string'], '?year=2002')
../django/tests/admin_filters/tests.py,392,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,398,self.assertEqual(choices[0]['query_string'], '?')
../django/tests/admin_filters/tests.py,399,self.assertEqual(choices[1]['query_string'], '?year=1999')
../django/tests/admin_filters/tests.py,400,self.assertEqual(choices[2]['query_string'], '?year=2009')
../django/tests/admin_filters/tests.py,409,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,421,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,431,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,445,filterspec = changelist.get_filters(request)[0][2]
../django/tests/admin_filters/tests.py,457,filterspec = changelist.get_filters(request)[0][2]
../django/tests/admin_filters/tests.py,467,filterspec = changelist.get_filters(request)[0][2]
../django/tests/admin_filters/tests.py,485,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,495,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,510,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,520,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,533,filterspec = changelist.get_filters(request)[0][4]
../django/tests/admin_filters/tests.py,544,filterspec = changelist.get_filters(request)[0][5]
../django/tests/admin_filters/tests.py,586,filterspec = changelist.get_filters(request)[0][3]
../django/tests/admin_filters/tests.py,600,filterspec = changelist.get_filters(request)[0][3]
../django/tests/admin_filters/tests.py,614,filterspec = changelist.get_filters(request)[0][3]
../django/tests/admin_filters/tests.py,650,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,653,self.assertEqual(choices[0]['display'], 'All')
../django/tests/admin_filters/tests.py,654,self.assertEqual(choices[0]['selected'], True)
../django/tests/admin_filters/tests.py,655,self.assertEqual(choices[0]['query_string'], '?')
../django/tests/admin_filters/tests.py,667,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,670,self.assertEqual(choices[1]['display'], 'the 1980\'s')
../django/tests/admin_filters/tests.py,671,self.assertEqual(choices[1]['selected'], True)
../django/tests/admin_filters/tests.py,672,self.assertEqual(choices[1]['query_string'], '?publication-decade=the+80s')
../django/tests/admin_filters/tests.py,684,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,687,self.assertEqual(choices[2]['display'], 'the 1990\'s')
../django/tests/admin_filters/tests.py,688,self.assertEqual(choices[2]['selected'], True)
../django/tests/admin_filters/tests.py,689,self.assertEqual(choices[2]['query_string'], '?publication-decade=the+90s')
../django/tests/admin_filters/tests.py,701,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,704,self.assertEqual(choices[3]['display'], 'the 2000\'s')
../django/tests/admin_filters/tests.py,705,self.assertEqual(choices[3]['selected'], True)
../django/tests/admin_filters/tests.py,706,self.assertEqual(choices[3]['query_string'], '?publication-decade=the+00s')
../django/tests/admin_filters/tests.py,718,filterspec = changelist.get_filters(request)[0][1]
../django/tests/admin_filters/tests.py,721,self.assertEqual(choices[3]['display'], 'the 2000\'s')
../django/tests/admin_filters/tests.py,722,self.assertEqual(choices[3]['selected'], True)
../django/tests/admin_filters/tests.py,723,self.assertEqual(choices[3]['query_string'], '?author__id__exact=%s&publication-decade=the+00s' % self.alfred.pk)
../django/tests/admin_filters/tests.py,725,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,759,filterspec = changelist.get_filters(request)[0]
../django/tests/admin_filters/tests.py,777,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,782,self.assertEqual(choices[0]['display'], 'All')
../django/tests/admin_filters/tests.py,783,self.assertEqual(choices[0]['selected'], True)
../django/tests/admin_filters/tests.py,784,self.assertEqual(choices[0]['query_string'], '?')
../django/tests/admin_filters/tests.py,786,self.assertEqual(choices[1]['display'], 'the 1990\'s')
../django/tests/admin_filters/tests.py,787,self.assertEqual(choices[1]['selected'], False)
../django/tests/admin_filters/tests.py,788,self.assertEqual(choices[1]['query_string'], '?publication-decade=the+90s')
../django/tests/admin_filters/tests.py,790,self.assertEqual(choices[2]['display'], 'the 2000\'s')
../django/tests/admin_filters/tests.py,791,self.assertEqual(choices[2]['selected'], False)
../django/tests/admin_filters/tests.py,792,self.assertEqual(choices[2]['query_string'], '?publication-decade=the+00s')
../django/tests/admin_filters/tests.py,807,filterspec = changelist.get_filters(request)[0][-1]
../django/tests/admin_filters/tests.py,810,self.assertEqual(choices[2]['selected'], True)
../django/tests/admin_filters/tests.py,811,self.assertEqual(choices[2]['query_string'], '?no=207')
../django/tests/admin_filters/tests.py,830,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,833,self.assertEqual(choices[2]['display'], 'the 1990\'s')
../django/tests/admin_filters/tests.py,834,self.assertEqual(choices[2]['selected'], True)
../django/tests/admin_filters/tests.py,835,self.assertEqual(choices[2]['query_string'], '?decade__in=the+90s')
../django/tests/admin_filters/tests.py,847,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_filters/tests.py,850,self.assertEqual(choices[2]['display'], 'the 1990\'s')
../django/tests/admin_filters/tests.py,851,self.assertEqual(choices[2]['selected'], True)
../django/tests/admin_filters/tests.py,852,self.assertEqual(choices[2]['query_string'], '?decade__isnull=the+90s')
../django/tests/admin_filters/tests.py,869,filterspec = changelist.get_filters(request)[0][-1]
../django/tests/admin_filters/tests.py,872,self.assertEqual(choices[1]['display'], 'DEV')
../django/tests/admin_filters/tests.py,873,self.assertEqual(choices[1]['selected'], True)
../django/tests/admin_filters/tests.py,874,self.assertEqual(choices[1]['query_string'], '?department=%s' % self.john.pk)
../django/tests/admin_filters/tests.py,890,filterspec = changelist.get_filters(request)[0][-1]
../django/tests/admin_filters/tests.py,893,self.assertEqual(choices[1]['display'], 'DEV')
../django/tests/admin_filters/tests.py,894,self.assertEqual(choices[1]['selected'], True)
../django/tests/admin_filters/tests.py,895,self.assertEqual(choices[1]['query_string'], '?department__whatever=%s' % self.john.pk)
../django/tests/admin_filters/tests.py,911,filterspec = changelist.get_filters(request)[0][-1]
../django/tests/admin_filters/tests.py,915,self.assertEqual(choices[0]['display'], 'All')
../django/tests/admin_filters/tests.py,916,self.assertEqual(choices[0]['selected'], True)
../django/tests/admin_filters/tests.py,917,self.assertEqual(choices[0]['query_string'], '?')
../django/tests/admin_filters/tests.py,919,self.assertEqual(choices[1]['display'], 'Development')
../django/tests/admin_filters/tests.py,920,self.assertEqual(choices[1]['selected'], False)
../django/tests/admin_filters/tests.py,921,self.assertEqual(choices[1]['query_string'], '?department__code__exact=DEV')
../django/tests/admin_filters/tests.py,923,self.assertEqual(choices[2]['display'], 'Design')
../django/tests/admin_filters/tests.py,924,self.assertEqual(choices[2]['selected'], False)
../django/tests/admin_filters/tests.py,925,self.assertEqual(choices[2]['query_string'], '?department__code__exact=DSN')
../django/tests/admin_filters/tests.py,936,filterspec = changelist.get_filters(request)[0][-1]
../django/tests/admin_filters/tests.py,940,self.assertEqual(choices[0]['display'], 'All')
../django/tests/admin_filters/tests.py,941,self.assertEqual(choices[0]['selected'], False)
../django/tests/admin_filters/tests.py,942,self.assertEqual(choices[0]['query_string'], '?')
../django/tests/admin_filters/tests.py,944,self.assertEqual(choices[1]['display'], 'Development')
../django/tests/admin_filters/tests.py,945,self.assertEqual(choices[1]['selected'], True)
../django/tests/admin_filters/tests.py,946,self.assertEqual(choices[1]['query_string'], '?department__code__exact=DEV')
../django/tests/admin_filters/tests.py,948,self.assertEqual(choices[2]['display'], 'Design')
../django/tests/admin_filters/tests.py,949,self.assertEqual(choices[2]['selected'], False)
../django/tests/admin_filters/tests.py,950,self.assertEqual(choices[2]['query_string'], '?department__code__exact=DSN')
../django/tests/admin_filters/tests.py,960,filterspec = changelist.get_filters(request)[0][0]
../django/tests/admin_inlines/tests.py,61,inner_formset = response.context['inline_admin_formsets'][0].formset
../django/tests/admin_inlines/tests.py,739,'.dynamic-profile_set')[0].get_attribute('id'),
../django/tests/admin_inlines/tests.py,754,'.dynamic-profile_set')[1].get_attribute('id'), 'profile_set-1')
../django/tests/admin_inlines/tests.py,765,'.dynamic-profile_set')[2].get_attribute('id'), 'profile_set-2')
../django/tests/admin_scripts/tests.py,114,backend_pkg = __import__(result[0])
../django/tests/admin_utils/tests.py,48,self._check([0, 1, [2]])
../django/tests/admin_utils/tests.py,59,self._check([0])
../django/tests/admin_utils/tests.py,66,self._check([0, [1, [2]]])
../django/tests/admin_utils/tests.py,82,EventGuide.objects.create(event=objs[0])
../django/tests/admin_views/test_adminsite.py,61,admin_views = apps[0]
../django/tests/admin_views/test_adminsite.py,64,self.assertEqual(admin_views['models'][0]['object_name'], 'Article')
../django/tests/admin_views/test_adminsite.py,67,auth = apps[1]
../django/tests/admin_views/test_adminsite.py,70,user = auth['models'][0]
../django/tests/admin_views/tests.py,838,color2_addition_log = LogEntry.objects.all()[0]
../django/tests/admin_views/tests.py,847,color2_change_log = LogEntry.objects.all()[0]
../django/tests/admin_views/tests.py,854,color2_delete_log = LogEntry.objects.all()[0]
../django/tests/admin_views/tests.py,904,article_pk = CustomArticle.objects.all()[0].pk
../django/tests/admin_views/tests.py,1480,form = login.context[0].get('form')
../django/tests/admin_views/tests.py,1481,self.assertEqual(form.errors['username'][0], 'This field is required.')
../django/tests/admin_views/tests.py,1585,self.assertEqual(mail.outbox[0].subject, 'Greetings from a created object')
../django/tests/admin_views/tests.py,1589,addition_log = LogEntry.objects.all()[0]
../django/tests/admin_views/tests.py,1733,self.assertEqual(mail.outbox[0].subject, 'Greetings from a deleted object')
../django/tests/admin_views/tests.py,3206,self.assertEqual(FooAccount.objects.all()[0].username, foo_user)
../django/tests/admin_views/tests.py,3207,self.assertEqual(BarAccount.objects.all()[0].username, bar_user)
../django/tests/admin_views/tests.py,3208,self.assertEqual(Persona.objects.all()[0].accounts.count(), 2)
../django/tests/admin_views/tests.py,3210,persona_id = Persona.objects.all()[0].id
../django/tests/admin_views/tests.py,3211,foo_id = FooAccount.objects.all()[0].id
../django/tests/admin_views/tests.py,3212,bar_id = BarAccount.objects.all()[0].id
../django/tests/admin_views/tests.py,3245,self.assertEqual(FooAccount.objects.all()[0].username, "%s-1" % foo_user)
../django/tests/admin_views/tests.py,3246,self.assertEqual(BarAccount.objects.all()[0].username, "%s-1" % bar_user)
../django/tests/admin_views/tests.py,3247,self.assertEqual(Persona.objects.all()[0].accounts.count(), 2)
../django/tests/admin_views/tests.py,3271,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3277,self.assertEqual(mail.outbox[0].subject, 'Greetings from a ModelAdmin action')
../django/tests/admin_views/tests.py,3371,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3377,self.assertEqual(mail.outbox[0].subject, 'Greetings from a function action')
../django/tests/admin_views/tests.py,3382,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3396,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3407,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3419,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3470,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,3480,self.assertEqual(mail.outbox[0].subject, 'Greetings from a function action')
../django/tests/admin_views/tests.py,4041,self.assertEqual(Widget.objects.all()[0].name, "Widget 1")
../django/tests/admin_views/tests.py,4042,widget_id = Widget.objects.all()[0].id
../django/tests/admin_views/tests.py,4055,self.assertEqual(Widget.objects.all()[0].name, "Widget 1")
../django/tests/admin_views/tests.py,4064,self.assertEqual(Widget.objects.all()[0].name, "Widget 1 Updated")
../django/tests/admin_views/tests.py,4074,self.assertEqual(Grommet.objects.all()[0].name, "Grommet 1")
../django/tests/admin_views/tests.py,4082,self.post_data['grommet_set-0-code'] = str(Grommet.objects.all()[0].code)
../django/tests/admin_views/tests.py,4087,self.assertEqual(Grommet.objects.all()[0].name, "Grommet 1")
../django/tests/admin_views/tests.py,4091,self.post_data['grommet_set-0-code'] = str(Grommet.objects.all()[0].code)
../django/tests/admin_views/tests.py,4096,self.assertEqual(Grommet.objects.all()[0].name, "Grommet 1 Updated")
../django/tests/admin_views/tests.py,4107,self.assertEqual(DooHickey.objects.all()[0].name, "Doohickey 1")
../django/tests/admin_views/tests.py,4120,self.assertEqual(DooHickey.objects.all()[0].name, "Doohickey 1")
../django/tests/admin_views/tests.py,4129,self.assertEqual(DooHickey.objects.all()[0].name, "Doohickey 1 Updated")
../django/tests/admin_views/tests.py,4140,self.assertEqual(Whatsit.objects.all()[0].name, "Whatsit 1")
../django/tests/admin_views/tests.py,4153,self.assertEqual(Whatsit.objects.all()[0].name, "Whatsit 1")
../django/tests/admin_views/tests.py,4162,self.assertEqual(Whatsit.objects.all()[0].name, "Whatsit 1 Updated")
../django/tests/admin_views/tests.py,4172,self.assertEqual(FancyDoodad.objects.all()[0].name, "Fancy Doodad 1")
../django/tests/admin_views/tests.py,4173,doodad_pk = FancyDoodad.objects.all()[0].pk
../django/tests/admin_views/tests.py,4186,self.assertEqual(FancyDoodad.objects.all()[0].name, "Fancy Doodad 1")
../django/tests/admin_views/tests.py,4195,self.assertEqual(FancyDoodad.objects.all()[0].name, "Fancy Doodad 1 Updated")
../django/tests/admin_views/tests.py,4423,self.selenium.find_elements_by_link_text('Add another Related prepopulated')[0].click()
../django/tests/admin_views/tests.py,4443,self.selenium.find_elements_by_link_text('Add another Related prepopulated')[1].click()
../django/tests/admin_views/tests.py,4546,self.selenium.find_elements_by_link_text('Show')[0].click()
../django/tests/admin_views/tests.py,4684,p = Post.objects.order_by('-id')[0]
../django/tests/admin_views/tests.py,4693,su = User.objects.filter(is_superuser=True)[0]
../django/tests/admin_views/tests.py,4800,popup_url = m.groups()[0].decode().replace("&amp;", "&")
../django/tests/admin_views/tests.py,4823,popup_url = m.groups()[0].decode().replace("&amp;", "&")
../django/tests/admin_views/tests.py,4843,popup_url = m.groups()[0].decode().replace("&amp;", "&")
../django/tests/admin_views/tests.py,5031,new_user = User.objects.order_by('-id')[0]
../django/tests/admin_views/tests.py,5037,u = User.objects.all()[0]
../django/tests/admin_views/tests.py,5047,u = User.objects.all()[0]
../django/tests/admin_views/tests.py,5078,Group.objects.order_by('-id')[0]
../django/tests/admin_views/tests.py,5201,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,5584,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_views/tests.py,5613,ACTION_CHECKBOX_NAME: [1],
../django/tests/admin_widgets/tests.py,699,selected = tds[6]
../django/tests/admin_widgets/tests.py,750,may_translation = month_names.split(' ')[4]
../django/tests/admin_widgets/tests.py,1245,self.assertEqual(profiles[0].user.username, username_value)
../django/tests/aggregation/tests.py,782,qstr = captured_queries[0]['sql'].lower()
../django/tests/aggregation/tests.py,790,[', '.join(f[1][0] for f in forced_ordering).lower()]
../django/tests/aggregation/tests.py,990,sql, params = compiler.compile(self.source_expressions[0])
../django/tests/aggregation_regress/tests.py,496,self.assertEqual(qs[0].EntryID, e)
../django/tests/aggregation_regress/tests.py,497,self.assertIs(qs[0].EntryID.Exclude, False)
../django/tests/aggregation_regress/tests.py,609,self.assertEqual(results[0]['name'], 'Adrian Holovaty')
../django/tests/aggregation_regress/tests.py,610,self.assertEqual(results[0]['age'], 1)
../django/tests/aggregation_regress/tests.py,615,self.assertEqual(results[0]['name'], 'Adrian Holovaty')
../django/tests/aggregation_regress/tests.py,616,self.assertEqual(results[0]['age'], 32.0)
../django/tests/aggregation_regress/tests.py,621,self.assertEqual(results[0]['name'], 'Adrian Holovaty')
../django/tests/aggregation_regress/tests.py,622,self.assertEqual(results[0]['friends'], 2)
../django/tests/aggregation_regress/tests.py,635,query = qs.query.get_compiler(qs.db).as_sql()[0]
../django/tests/aggregation_regress/tests.py,638,qs2.query.get_compiler(qs2.db).as_sql()[0],
../django/tests/aggregation_regress/tests.py,708,sorted_publishers[0].n_books,
../django/tests/aggregation_regress/tests.py,712,sorted_publishers[1].n_books,
../django/tests/aggregation_regress/tests.py,845,self.assertEqual(books[0], ('Sams', 1, 23.09, 45.0, 528.0))
../django/tests/aggregation_regress/tests.py,1025,self.assertIn('id', group_by[0][0])
../django/tests/aggregation_regress/tests.py,1026,self.assertNotIn('name', group_by[0][0])
../django/tests/aggregation_regress/tests.py,1027,self.assertNotIn('age', group_by[0][0])
../django/tests/aggregation_regress/tests.py,1051,self.assertIn('id', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1052,self.assertNotIn('name', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1053,self.assertNotIn('age', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1079,self.assertIn('id', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1080,self.assertNotIn('name', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1081,self.assertNotIn('contact', grouping[0][0])
../django/tests/aggregation_regress/tests.py,1255,self.assertIs(qs[0].alfa, None)
../django/tests/aggregation_regress/tests.py,1263,self.assertEqual(qs[0].alfa, a)
../django/tests/annotations/tests.py,220,self.assertEqual(books[0].author_age, 34)
../django/tests/annotations/tests.py,221,self.assertEqual(books[1].author_age, 35)
../django/tests/auth_tests/test_forms.py,446,self.assertEqual(mail.outbox[0].subject, 'Custom password reset on example.com')
../django/tests/auth_tests/test_forms.py,471,self.assertEqual(mail.outbox[0].subject, 'Forgot your password?')
../django/tests/auth_tests/test_forms.py,472,self.assertEqual(mail.outbox[0].bcc, ['site_monitor@example.com'])
../django/tests/auth_tests/test_forms.py,473,self.assertEqual(mail.outbox[0].content_subtype, "plain")
../django/tests/auth_tests/test_forms.py,521,message = mail.outbox[0].message()
../django/tests/auth_tests/test_forms.py,525,self.assertEqual(len(mail.outbox[0].alternatives), 0)
../django/tests/auth_tests/test_forms.py,541,self.assertEqual(len(mail.outbox[0].alternatives), 1)
../django/tests/auth_tests/test_forms.py,542,message = mail.outbox[0].message()
../django/tests/auth_tests/test_models.py,114,content_type=default_objects[1],
../django/tests/auth_tests/test_models.py,119,content_type=other_objects[0],
../django/tests/auth_tests/test_models.py,134,self.assertEqual(perm_default.content_type_id, default_objects[1].id)
../django/tests/auth_tests/test_models.py,135,self.assertEqual(perm_other.content_type_id, other_objects[0].id)
../django/tests/auth_tests/test_models.py,185,message = mail.outbox[0]
../django/tests/auth_tests/test_remote_user.py,178,return username.split('@')[0]
../django/tests/auth_tests/test_signals.py,58,self.assertEqual(self.login_failed[0]['username'], 'testclient')
../django/tests/auth_tests/test_signals.py,60,self.assertIn('***', self.login_failed[0]['password'])
../django/tests/auth_tests/test_signals.py,65,self.assertEqual(self.logged_in[0].username, 'testclient')
../django/tests/auth_tests/test_signals.py,75,self.assertEqual(self.logged_out[0], None)
../django/tests/auth_tests/test_signals.py,81,self.assertEqual(self.logged_out[0].username, 'testclient')
../django/tests/auth_tests/test_views.py,171,self.assertIn("http://", mail.outbox[0].body)
../django/tests/auth_tests/test_views.py,172,self.assertEqual(settings.DEFAULT_FROM_EMAIL, mail.outbox[0].from_email)
../django/tests/auth_tests/test_views.py,175,self.assertFalse(mail.outbox[0].message().is_multipart())
../django/tests/auth_tests/test_views.py,185,message = mail.outbox[0].message()
../django/tests/auth_tests/test_views.py,198,self.assertEqual("staffmember@example.com", mail.outbox[0].from_email)
../django/tests/auth_tests/test_views.py,210,self.assertIn("http://adminsite.com", mail.outbox[0].body)
../django/tests/auth_tests/test_views.py,211,self.assertEqual(settings.DEFAULT_FROM_EMAIL, mail.outbox[0].from_email)
../django/tests/auth_tests/test_views.py,252,return self._read_signup_email(mail.outbox[0])
../django/tests/auth_tests/test_views.py,257,return urlmatch.group(), urlmatch.groups()[0]
../django/tests/auth_tests/test_views.py,391,return self._read_signup_email(mail.outbox[0])
../django/tests/auth_tests/test_views.py,396,return urlmatch.group(), urlmatch.groups()[0]
../django/tests/auth_tests/test_views.py,956,).groups()[0]
../django/tests/backends/tests.py,89,self.assertEqual(long_str, row[0].read())
../django/tests/backends/tests.py,107,self.assertEqual(cursor.fetchone()[0], 1)
../django/tests/backends/tests.py,123,match = re.search('"id" ([^,]+),', statements[0])
../django/tests/backends/tests.py,188,self.assertEqual(w[0].message.__class__, RuntimeWarning)
../django/tests/backends/tests.py,233,db_default_tz = cursor.fetchone()[0]
../django/tests/backends/tests.py,250,tz = cursor.fetchone()[0]
../django/tests/backends/tests.py,303,return cursor.fetchone()[0]
../django/tests/backends/tests.py,308,self.assertEqual(a[0], b[0])
../django/tests/backends/tests.py,313,self.assertEqual(a[0], b[0])
../django/tests/backends/tests.py,520,self.assertEqual(cursor.fetchall()[0][0], '%s')
../django/tests/backends/tests.py,525,self.assertEqual(cursor.fetchall()[0], ('%', '%d'))
../django/tests/backends/tests.py,533,response = cursor.fetchall()[0][0]
../django/tests/backends/tests.py,739,self.assertIsInstance(connection.queries[0], dict)
../django/tests/backends/tests.py,740,six.assertCountEqual(self, connection.queries[0].keys(), ['sql', 'time'])
../django/tests/backends/tests.py,780,self.assertEqual(str(w[0].message), "Limit for query logging "
../django/tests/backends/tests.py,996,self.assertIsInstance(exceptions[0], DatabaseError)
../django/tests/backends/tests.py,1003,self.assertIsInstance(exceptions[0], DatabaseError)
../django/tests/basic/tests.py,341,self.assertEqual(articles[0].undashedvalue, 2)
../django/tests/cache/tests.py,567,self.assertIsInstance(w[0].message, CacheKeyWarning)
../django/tests/cache/tests.py,573,self.assertIsInstance(w[0].message, CacheKeyWarning)
../django/tests/cache/tests.py,2147,self.assertIsNot(c[0], c[1])
../django/tests/check_framework/tests.py,31,calls[0] += 1
../django/tests/check_framework/tests.py,40,calls = [0]
../django/tests/check_framework/tests.py,59,self.assertEqual(calls[0], 2)
../django/tests/check_framework/tests.py,64,self.assertEqual(sorted(errors), [4])
../django/tests/contenttypes_tests/test_models.py,192,response._headers.get("location")[1])
../django/tests/contenttypes_tests/test_models.py,197,response._headers.get("location")[1])
../django/tests/contenttypes_tests/test_models.py,264,str(warns[0].message),
../django/tests/contenttypes_tests/tests.py,86,an_author = Author.objects.all()[0]
../django/tests/contenttypes_tests/tests.py,92,an_author = Author.objects.all()[0]
../django/tests/custom_pk/tests.py,161,self.assertEqual(emps[123], self.dan)
../django/tests/datatypes/tests.py,58,Donut.objects.filter(baked_date__year=2007)[0].name)
../django/tests/datatypes/tests.py,61,Donut.objects.filter(baked_date__year=2006)[0].name)
../django/tests/datetimes/tests.py,98,self.assertEqual(qs[0], now)
../django/tests/decorators/tests.py,35,result = functions[0](*args, **kwargs)
../django/tests/defer/tests.py,33,self.assert_delayed(qs.defer("name")[0], 1)
../django/tests/defer/tests.py,35,self.assert_delayed(qs.defer("related__first")[0], 0)
../django/tests/defer/tests.py,36,self.assert_delayed(qs.defer("name").defer("value")[0], 2)
../django/tests/defer/tests.py,40,self.assert_delayed(qs.only("name")[0], 2)
../django/tests/defer/tests.py,42,self.assert_delayed(qs.only("name").only("value")[0], 2)
../django/tests/defer/tests.py,43,self.assert_delayed(qs.only("related__first")[0], 2)
../django/tests/defer/tests.py,46,self.assert_delayed(qs.only("pk")[0], 3)
../django/tests/defer/tests.py,48,self.assert_delayed(self.s1.primary_set.all().only('pk')[0], 3)
../django/tests/defer/tests.py,52,self.assert_delayed(qs.only("name", "value").defer("name")[0], 2)
../django/tests/defer/tests.py,53,self.assert_delayed(qs.defer("name").only("value", "name")[0], 2)
../django/tests/defer/tests.py,54,self.assert_delayed(qs.defer("name").only("value")[0], 2)
../django/tests/defer/tests.py,55,self.assert_delayed(qs.only("name").defer("value")[0], 2)
../django/tests/defer/tests.py,59,self.assert_delayed(qs.defer("name")[0], 1)
../django/tests/defer/tests.py,60,self.assert_delayed(qs.defer("name").defer("name")[0], 1)
../django/tests/defer/tests.py,64,self.assert_delayed(qs.defer("name", "value")[0], 2)
../django/tests/defer/tests.py,65,self.assert_delayed(qs.defer(None)[0], 0)
../django/tests/defer/tests.py,66,self.assert_delayed(qs.only("name").defer(None)[0], 0)
../django/tests/defer/tests.py,75,self.assert_delayed(qs.defer("name").extra(select={"a": 1})[0], 1)
../django/tests/defer/tests.py,76,self.assert_delayed(qs.extra(select={"a": 1}).defer("name")[0], 1)
../django/tests/defer/tests.py,81,self.assertEqual(Primary.objects.defer("name").values()[0], {
../django/tests/defer/tests.py,89,self.assertEqual(Primary.objects.only("name").values()[0], {
../django/tests/defer/tests.py,103,obj = Primary.objects.select_related().defer("related__first", "related__second")[0]
../django/tests/defer/tests.py,108,obj = Primary.objects.select_related().only("related__first")[0]
../django/tests/defer/tests.py,118,Primary.objects.defer("related").select_related("related")[0]
../django/tests/defer/tests.py,122,Primary.objects.only("name").select_related("related")[0]
../django/tests/defer/tests.py,128,obj = Primary.objects.defer("related").select_related()[0]
../django/tests/defer/tests.py,217,child = children[0]
../django/tests/defer_regress/tests.py,47,self.assertEqual(items[0].name, "first")
../django/tests/defer_regress/tests.py,48,self.assertEqual(items[1].name, "no I'm first")
../django/tests/defer_regress/tests.py,61,obj = Leaf.objects.only("name", "child").select_related()[0]
../django/tests/defer_regress/tests.py,74,c1 = ctype(Item.objects.all()[0])
../django/tests/defer_regress/tests.py,75,c2 = ctype(Item.objects.defer("name")[0])
../django/tests/defer_regress/tests.py,76,c3 = ctype(Item.objects.only("name")[0])
../django/tests/defer_regress/tests.py,82,self.assertEqual(results[0].child.name, "c1")
../django/tests/defer_regress/tests.py,83,self.assertEqual(results[0].second_child.name, "c2")
../django/tests/defer_regress/tests.py,88,self.assertEqual(results[0].child.name, "c1")
../django/tests/defer_regress/tests.py,89,self.assertEqual(results[0].second_child.name, "c2")
../django/tests/defer_regress/tests.py,153,obj = Base.objects.select_related("derived").defer("text")[0]
../django/tests/defer_regress/tests.py,178,self.assertEqual('Foobar', qs[0].name)
../django/tests/defer_regress/tests.py,194,i = Item.objects.select_related('one_to_one_item')[0]
../django/tests/defer_regress/tests.py,199,'value', 'one_to_one_item__name')[0]
../django/tests/defer_regress/tests.py,229,obj = ProxyRelated.objects.all().select_related().only('item__name')[0]
../django/tests/delete/models.py,15,get_default_r = lambda: R.objects.get_or_create(is_default=True)[0]
../django/tests/delete/tests.py,256,self.assertEqual(deletions[0], 1)
../django/tests/deprecation/tests.py,39,msg = str(recorded[0].message)
../django/tests/dispatch/tests.py,134,err = result[0][1]
../django/tests/distinct_on_fields/tests.py,108,Celebrity.objects.annotate(Max('id')).distinct('id')[0]
../django/tests/distinct_on_fields/tests.py,110,Celebrity.objects.distinct('id').annotate(Max('id'))[0]
../django/tests/distinct_on_fields/tests.py,114,Celebrity.objects.distinct('id').annotate(Max('id')).distinct()[0]
../django/tests/expressions/tests.py,214,c = Company.objects.all()[0]
../django/tests/extra_regress/tests.py,81,qs = qs.extra(select={"alpha": "%s"}, select_params=[5])
../django/tests/extra_regress/tests.py,96,.extra(select={"beta": "%s"}, select_params=(2,))[0].alpha),
../django/tests/extra_regress/tests.py,103,.extra(select={"alpha": "%s"}, select_params=(2,))[0].alpha),
../django/tests/field_subclassing/fields.py,54,return Small(value[0], value[1])
../django/tests/field_subclassing/tests.py,79,obj = list(serializers.deserialize("json", stream))[0]
../django/tests/file_storage/tests.py,413,basename, ext = parts[0], parts[1:]
../django/tests/file_storage/tests.py,498,self.assertEqual(names[0], "tests/multiple_files.txt")
../django/tests/file_storage/tests.py,499,six.assertRegex(self, names[1], "tests/multiple_files_%s.txt" % FILE_SUFFIX_REGEX)
../django/tests/file_storage/tests.py,518,self.assertEqual(names[0], 'tests/%s' % filename)
../django/tests/file_storage/tests.py,519,six.assertRegex(self, names[1], 'tests/fi_%s.ext' % FILE_SUFFIX_REGEX)
../django/tests/file_storage/tests.py,523,objs[0].limited_length.save(filename, ContentFile('Same Content'))
../django/tests/file_storage/tests.py,526,objs[1].limited_length.save, *(filename, ContentFile('Same Content'))
../django/tests/file_storage/tests.py,556,str(warns[0].message),
../django/tests/file_storage/tests.py,562,str(warns[1].message),
../django/tests/file_storage/tests.py,672,self.assertEqual(files[0], 'conflict')
../django/tests/file_storage/tests.py,673,six.assertRegex(self, files[1], 'conflict_%s' % FILE_SUFFIX_REGEX)
../django/tests/file_storage/tests.py,691,actual_mode = os.stat(self.storage.path(name))[0] & 0o777
../django/tests/file_storage/tests.py,698,mode = os.stat(self.storage.path(fname))[0] & 0o777
../django/tests/file_storage/tests.py,705,dir_mode = os.stat(os.path.dirname(self.storage.path(name)))[0] & 0o777
../django/tests/file_storage/tests.py,712,dir_mode = os.stat(os.path.dirname(self.storage.path(name)))[0] & 0o777
../django/tests/file_storage/tests.py,736,self.assertEqual(files[0], 'test')
../django/tests/file_storage/tests.py,737,six.assertRegex(self, files[1], 'test_%s' % FILE_SUFFIX_REGEX)
../django/tests/file_storage/tests.py,749,self.assertEqual(files[0], '.test')
../django/tests/file_storage/tests.py,750,six.assertRegex(self, files[1], '.test_%s' % FILE_SUFFIX_REGEX)
../django/tests/file_uploads/tests.py,423,self.assertTrue(files[0].closed)
../django/tests/file_uploads/tests.py,424,self.assertTrue(files[1].closed)
../django/tests/file_uploads/tests.py,552,self.assertEqual(exc_info.exception.args[0],
../django/tests/file_uploads/tests.py,577,self.assertEqual(parsed[1]['title'], expected_title)
../django/tests/file_uploads/tests.py,594,self.assertEqual(parsed[1]['title'], expected_title)
../django/tests/fixtures/tests.py,307,self.assertIn("Multiple fixtures named 'fixture5'", cm.exception.args[0])
../django/tests/fixtures/tests.py,331,self.assertIn("Could not load fixtures.Article(pk=1):", cm.exception.args[0])
../django/tests/fixtures/tests.py,410,self.assertEqual(force_text(w[0].message),
../django/tests/fixtures/tests.py,436,self.assertIn("Multiple fixtures named 'fixture2'", cm.exception.args[0])
../django/tests/fixtures_model_package/tests.py,58,self.assertTrue(w[0].message, "No fixture named 'unknown' found.")
../django/tests/fixtures_regress/tests.py,107,self.assertEqual(Animal.specimens.all()[0].name, 'Lion')
../django/tests/fixtures_regress/tests.py,120,self.assertEqual(Animal.specimens.all()[0].name, 'Wolf')
../django/tests/fixtures_regress/tests.py,134,self.assertEqual(Stuff.objects.all()[0].name, None)
../django/tests/fixtures_regress/tests.py,135,self.assertEqual(Stuff.objects.all()[0].owner, None)
../django/tests/fixtures_regress/tests.py,149,self.assertEqual(Stuff.objects.all()[0].name, '')
../django/tests/fixtures_regress/tests.py,150,self.assertEqual(Stuff.objects.all()[0].owner, None)
../django/tests/fixtures_regress/tests.py,305,self.assertEqual(Parent.objects.all()[0].id, 1)
../django/tests/fixtures_regress/tests.py,306,self.assertEqual(Child.objects.all()[0].id, 1)
../django/tests/fixtures_regress/tests.py,437,self.assertEqual(Book.objects.all()[0].id, 1)
../django/tests/fixtures_regress/tests.py,438,self.assertEqual(Person.objects.all()[0].id, 4)
../django/tests/fixtures_regress/tests.py,466,self.assertEqual(Book.objects.all()[0].id, 1)
../django/tests/fixtures_regress/tests.py,467,self.assertEqual(Person.objects.all()[0].id, 4)
../django/tests/foreign_object/tests.py,384,'active_translation')[0].active_translation.title,
../django/tests/forms_tests/models.py,82,default=lambda: [1])
../django/tests/forms_tests/tests/test_fields.py,1167,self.assertEqual(['1'], f.clean([1]))
../django/tests/forms_tests/tests/test_fields.py,1181,self.assertEqual(['1'], f.clean([1]))
../django/tests/forms_tests/tests/test_fields.py,1193,self.assertEqual(['1'], f.clean([1]))
../django/tests/forms_tests/tests/test_fields.py,1218,self.assertEqual([1], f.clean(['1']))
../django/tests/forms_tests/tests/test_fields.py,1305,f.choices = [p for p in f.choices if p[0].endswith('.py')]
../django/tests/forms_tests/tests/test_fields.py,1317,self.assertEqual(exp[1], got[1])
../django/tests/forms_tests/tests/test_fields.py,1318,self.assertTrue(got[0].endswith(exp[0]))
../django/tests/forms_tests/tests/test_fields.py,1337,self.assertEqual(exp[1], got[1])
../django/tests/forms_tests/tests/test_fields.py,1338,self.assertTrue(got[0].endswith(exp[0]))
../django/tests/forms_tests/tests/test_fields.py,1357,self.assertEqual(exp[1], got[1])
../django/tests/forms_tests/tests/test_fields.py,1358,self.assertTrue(got[0].endswith(exp[0]))
../django/tests/forms_tests/tests/test_fields.py,1368,self.assertEqual(exp[1], got[1])
../django/tests/forms_tests/tests/test_fields.py,1369,self.assertTrue(got[0].endswith(exp[0]))
../django/tests/forms_tests/tests/test_fields.py,1384,self.assertEqual(exp[1], got[1])
../django/tests/forms_tests/tests/test_fields.py,1385,self.assertTrue(got[0].endswith(exp[0]))
../django/tests/forms_tests/tests/test_fields.py,1528,self.assertEqual(cm.exception.messages[0], 'Enter a valid UUID.')
../django/tests/forms_tests/tests/test_forms.py,855,self.fields[field[0]] = field[1]
../django/tests/forms_tests/tests/test_forms.py,874,self.fields[field[0]] = field[1]
../django/tests/forms_tests/tests/test_forms.py,963,f1.fields['myfield'].validators[0] = MaxValueValidator(12)
../django/tests/forms_tests/tests/test_forms.py,964,self.assertNotEqual(f1.fields['myfield'].validators[0], f2.fields['myfield'].validators[0])
../django/tests/forms_tests/tests/test_forms.py,2082,self.assertIsNot(field2.fields[0].choices, field.fields[0].choices)
../django/tests/forms_tests/tests/test_forms.py,2385,control['__all__'][0]['message'] = '&lt;p&gt;Non-field error.&lt;/p&gt;'
../django/tests/forms_tests/tests/test_formsets.py,232,self.assertFalse(formset.forms[0].empty_permitted)
../django/tests/forms_tests/tests/test_formsets.py,233,self.assertTrue(formset.forms[1].empty_permitted)
../django/tests/forms_tests/tests/test_formsets.py,892,self.assertEqual(formset[0], forms[0])
../django/tests/forms_tests/tests/test_formsets.py,894,formset[3]
../django/tests/forms_tests/tests/test_formsets.py,912,self.assertEqual(str(reverse_formset[0]), str(forms[-1]))
../django/tests/forms_tests/tests/test_formsets.py,913,self.assertEqual(str(reverse_formset[1]), str(forms[-2]))
../django/tests/forms_tests/tests/test_formsets.py,946,self.assertEqual(formset.forms[0].error_class, CustomErrorList)
../django/tests/forms_tests/tests/test_formsets.py,1162,self.assertTrue(formset.forms[0].is_bound)
../django/tests/forms_tests/tests/test_formsets.py,1164,self.assertTrue(formset.forms[0].is_valid())
../django/tests/forms_tests/tests/test_formsets.py,1196,self.assertFalse(empty_forms[0].is_bound)
../django/tests/forms_tests/tests/test_formsets.py,1197,self.assertFalse(empty_forms[1].is_bound)
../django/tests/forms_tests/tests/test_formsets.py,1200,self.assertHTMLEqual(empty_forms[0].as_p(), empty_forms[1].as_p())
../django/tests/forms_tests/tests/test_widgets.py,457,self.assertHTMLEqual(w.render('nums', [2], choices=[('1', '1'), ('2', '2'), ('3', '3')]), """<select multiple="multiple" name="nums">
../django/tests/forms_tests/tests/test_widgets.py,467,self.assertHTMLEqual(w.render('nums', [2], choices=[(1, 1), (2, 2), (3, 3)]), """<select multiple="multiple" name="nums">
../django/tests/forms_tests/tests/test_widgets.py,477,self.assertHTMLEqual(w.render('nums', [2], choices=get_choices()), """<select multiple="multiple" name="nums">
../django/tests/forms_tests/tests/test_widgets.py,487,self.assertHTMLEqual(w.render('nums', [2]), """<select multiple="multiple" name="nums">
../django/tests/forms_tests/tests/test_widgets.py,494,self.assertHTMLEqual(w.render('nums', [2], choices=[(4, 4), (5, 5)]), """<select multiple="multiple" name="nums">
../django/tests/forms_tests/tests/test_widgets.py,685,self.assertHTMLEqual(str(r[1]), '<label><input type="radio" name="beatle" value="P" /> Paul</label>')
../django/tests/forms_tests/tests/test_widgets.py,686,self.assertHTMLEqual(str(r[0]), '<label><input checked="checked" type="radio" name="beatle" value="J" /> John</label>')
../django/tests/forms_tests/tests/test_widgets.py,687,self.assertTrue(r[0].is_checked())
../django/tests/forms_tests/tests/test_widgets.py,688,self.assertFalse(r[1].is_checked())
../django/tests/forms_tests/tests/test_widgets.py,689,self.assertEqual((r[1].name, r[1].value, r[1].choice_value, r[1].choice_label), ('beatle', 'J', 'P', 'Paul'))
../django/tests/forms_tests/tests/test_widgets.py,693,r[1].render(attrs={'extra': 'value'}),
../django/tests/forms_tests/tests/test_widgets.py,698,r[10]
../django/tests/forms_tests/tests/test_widgets.py,820,self.assertHTMLEqual(w.render('nums', [2], choices=[('1', '1'), ('2', '2'), ('3', '3')]), """<ul>
../django/tests/forms_tests/tests/test_widgets.py,830,self.assertHTMLEqual(w.render('nums', [2], choices=[(1, 1), (2, 2), (3, 3)]), """<ul>
../django/tests/forms_tests/tests/test_widgets.py,840,self.assertHTMLEqual(w.render('nums', [2], choices=get_choices()), """<ul>
../django/tests/forms_tests/tests/test_widgets.py,850,self.assertHTMLEqual(w.render('nums', [2]), """<ul>
../django/tests/forms_tests/tests/test_widgets.py,857,self.assertHTMLEqual(w.render('nums', [2], choices=[(4, 4), (5, 5)]), """<ul>
../django/tests/forms_tests/tests/test_widgets.py,903,self.assertHTMLEqual(force_text(r[1]),
../django/tests/forms_tests/tests/test_widgets.py,908,r[42]
../django/tests/forms_tests/tests/test_widgets.py,1044,return [data[0], list(data[1]), datetime.datetime.strptime(data[2], "%Y-%m-%d %H:%M:%S")]
../django/tests/forms_tests/tests/test_widgets.py,1077,return '%s,%s,%s' % (data_list[0], ''.join(data_list[1]), data_list[2])
../django/tests/forms_tests/tests/test_widgets.py,1254,self.widgets[0].choices = choices
../django/tests/forms_tests/tests/test_widgets.py,1260,return self.widgets[0].choices
../django/tests/forms_tests/tests/tests.py,72,self.assertEqual('a', field.clean(self.groups[0].pk).name)
../django/tests/forms_tests/tests/tests.py,97,self.assertEqual(choices[0], (option.pk, six.text_type(option)))
../django/tests/from_db_value/tests.py,18,self.assertIsInstance(values_list[0], Cash)
../django/tests/generic_inline_admin/tests.py,118,self.assertHTMLEqual(formset.forms[0].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/podcast.mp3" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p>' % self.mp3_media_pk)
../django/tests/generic_inline_admin/tests.py,119,self.assertHTMLEqual(formset.forms[1].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p>' % self.png_media_pk)
../django/tests/generic_inline_admin/tests.py,120,self.assertHTMLEqual(formset.forms[2].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-2-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-2-url" type="url" name="generic_inline_admin-media-content_type-object_id-2-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-2-id" id="id_generic_inline_admin-media-content_type-object_id-2-id" /></p>')
../django/tests/generic_inline_admin/tests.py,125,self.assertHTMLEqual(formset.forms[0].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p>' % self.png_media_pk)
../django/tests/generic_inline_admin/tests.py,126,self.assertHTMLEqual(formset.forms[1].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" value="http://example.com/podcast.mp3" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p>' % self.mp3_media_pk)
../django/tests/generic_inline_admin/tests.py,127,self.assertHTMLEqual(formset.forms[2].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-2-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-2-url" type="url" name="generic_inline_admin-media-content_type-object_id-2-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-2-id" id="id_generic_inline_admin-media-content_type-object_id-2-id" /></p>')
../django/tests/generic_inline_admin/tests.py,132,self.assertHTMLEqual(formset.forms[0].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-0-url" type="url" name="generic_inline_admin-media-content_type-object_id-0-url" value="http://example.com/logo.png" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-0-id" value="%s" id="id_generic_inline_admin-media-content_type-object_id-0-id" /></p>' % self.png_media_pk)
../django/tests/generic_inline_admin/tests.py,133,self.assertHTMLEqual(formset.forms[1].as_p(), '<p><label for="id_generic_inline_admin-media-content_type-object_id-1-url">Url:</label> <input id="id_generic_inline_admin-media-content_type-object_id-1-url" type="url" name="generic_inline_admin-media-content_type-object_id-1-url" maxlength="200" /><input type="hidden" name="generic_inline_admin-media-content_type-object_id-1-id" id="id_generic_inline_admin-media-content_type-object_id-1-id" /></p>')
../django/tests/generic_inline_admin/tests.py,171,formset = response.context['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,190,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,210,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,230,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,249,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,268,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,287,formset = response.context_data['inline_admin_formsets'][0].formset
../django/tests/generic_inline_admin/tests.py,382,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/generic_inline_admin/tests.py,412,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/generic_inline_admin/tests.py,428,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/generic_relations/tests.py,433,self.assertEqual(formset.forms[0].initial, initial_data[0])
../django/tests/generic_relations/tests.py,482,form = Formset().forms[0]
../django/tests/generic_relations/tests.py,508,new_obj = formset.save()[0]
../django/tests/generic_relations_regress/tests.py,41,self.assertEqual('Chef', qs[0].name)
../django/tests/generic_relations_regress/tests.py,237,self.assertEqual(qs[0].links__sum, l.id)
../django/tests/generic_relations_regress/tests.py,245,self.assertIs(qs[0].links__sum, None)
../django/tests/generic_views/test_dates.py,311,self.assertEqual(res.context['date_list'][0], b.pubdate)
../django/tests/generic_views/test_dates.py,394,self.assertEqual(res.context['book_list'][0], Book.objects.get(pubdate=datetime.date(2008, 10, 1)))
../django/tests/generic_views/test_detail.py,149,self.assertEqual(FormContext().get_template_names()[0], 'generic_views/author_detail.html')
../django/tests/generic_views/test_edit.py,75,self.assertEqual(w[0].category, RemovedInDjango20Warning)
../django/tests/generic_views/test_edit.py,77,str(w[0].message),
../django/tests/generic_views/test_list.py,35,self.assertEqual(res.context['object_list'][0]['first'], 'John')
../django/tests/generic_views/test_list.py,58,self.assertEqual(res.context['author_list'][0].name, 'Author 00')
../django/tests/generic_views/test_list.py,79,self.assertEqual(res.context['author_list'][0].name, 'Author 30')
../django/tests/generic_views/test_list.py,88,self.assertEqual(res.context['author_list'][0].name, 'Author 90')
../django/tests/generic_views/test_list.py,98,self.assertEqual(res.context['author_list'][0].name, 'Author 60')
../django/tests/generic_views/test_list.py,126,self.assertEqual(res.context['author_list'][0].name, 'Author 30')
../django/tests/generic_views/test_list.py,223,self.assertEqual(res.context['object_list'][0].name, '2066')
../django/tests/generic_views/test_list.py,224,self.assertEqual(res.context['object_list'][1].name, 'Dreaming in Code')
../django/tests/generic_views/test_list.py,225,self.assertEqual(res.context['object_list'][2].name, 'Zebras for Dummies')
../django/tests/generic_views/test_list.py,229,self.assertEqual(res.context['object_list'][0].name, 'Dreaming in Code')
../django/tests/generic_views/test_list.py,230,self.assertEqual(res.context['object_list'][1].name, 'Zebras for Dummies')
../django/tests/generic_views/test_list.py,231,self.assertEqual(res.context['object_list'][2].name, '2066')
../django/tests/get_earliest_or_latest/tests.py,167,self.assertRaises(IndexError, lambda: IndexErrorArticle.objects.all()[0])
../django/tests/get_or_create/tests.py,28,)[1]
../django/tests/get_or_create/tests.py,37,)[1]
../django/tests/get_or_create/tests.py,55,)[1]
../django/tests/gis_tests/test_geoip.py,108,lat_lon = (lat_lon[1], lat_lon[0])
../django/tests/gis_tests/test_geoip.py,110,self.assertAlmostEqual(lon, tup[0], 4)
../django/tests/gis_tests/test_geoip.py,111,self.assertAlmostEqual(lat, tup[1], 4)
../django/tests/gis_tests/test_spatialrefsys.py,88,if not spatialite or connection.ops.spatial_version[0] >= 4:
../django/tests/gis_tests/tests.py,19,if e.args and e.args[0].startswith('Could not import user-defined GEOMETRY_BACKEND'):
../django/tests/gis_tests/tests.py,61,ops = FakePostGISOperations(expect[0])
../django/tests/gis_tests/tests.py,67,ops = FakePostGISOperations(expect[0])
../django/tests/gis_tests/tests.py,79,ops = FakePostGISOperations(version[0])
../django/tests/gis_tests/distapp/tests.py,86,dist = dist[1]
../django/tests/gis_tests/distapp/tests.py,88,dist = dist[0]
../django/tests/gis_tests/distapp/tests.py,355,self.assertAlmostEqual(len_m1, qs[0].length.m, tol)
../django/tests/gis_tests/distapp/tests.py,631,self.assertAlmostEqual(len_m1, qs[0].length.m, tol)
../django/tests/gis_tests/gdal_tests/test_ds.py,113,self.assertAlmostEqual(source.extent[0], layer.extent.min_x, 5)
../django/tests/gis_tests/gdal_tests/test_ds.py,114,self.assertAlmostEqual(source.extent[1], layer.extent.min_y, 5)
../django/tests/gis_tests/gdal_tests/test_ds.py,115,self.assertAlmostEqual(source.extent[2], layer.extent.max_x, 5)
../django/tests/gis_tests/gdal_tests/test_ds.py,116,self.assertAlmostEqual(source.extent[3], layer.extent.max_y, 5)
../django/tests/gis_tests/gdal_tests/test_ds.py,147,source = ds_list[0]
../django/tests/gis_tests/gdal_tests/test_ds.py,151,feats = ds[0][sl]
../django/tests/gis_tests/gdal_tests/test_ds.py,153,for fld_name in ds[0].fields:
../django/tests/gis_tests/gdal_tests/test_ds.py,162,source = ds_list[0]
../django/tests/gis_tests/gdal_tests/test_ds.py,170,return ds[0]
../django/tests/gis_tests/gdal_tests/test_ds.py,178,self.assertEqual(str(lyr[0]['str']), "1")
../django/tests/gis_tests/gdal_tests/test_ds.py,229,lyr = ds[0]
../django/tests/gis_tests/gdal_tests/test_ds.py,245,self.assertEqual('Pueblo', feats[0].get('Name'))
../django/tests/gis_tests/gdal_tests/test_ds.py,257,self.assertEqual('Houston', feats[0].get('Name'))
../django/tests/gis_tests/gdal_tests/test_ds.py,270,feat = ds[0][0]
../django/tests/gis_tests/gdal_tests/test_geom.py,228,self.assertAlmostEqual(p.centroid[0], x, 9)
../django/tests/gis_tests/gdal_tests/test_geom.py,229,self.assertAlmostEqual(p.centroid[1], y, 9)
../django/tests/gis_tests/gdal_tests/test_geom.py,236,ring = poly[0]
../django/tests/gis_tests/gdal_tests/test_geom.py,238,self.assertEqual(p.ext_ring_cs, poly[0].tuple)
../django/tests/gis_tests/gdal_tests/test_geom.py,292,a = OGRGeometry(self.geometries.topology_geoms[0].wkt_a, sr)
../django/tests/gis_tests/gdal_tests/test_geom.py,293,b = OGRGeometry(self.geometries.topology_geoms[0].wkt_b, sr)
../django/tests/gis_tests/gdal_tests/test_geom.py,356,self.assertAlmostEqual(ls_trans.x[0], ls_orig.x[0], prec)
../django/tests/gis_tests/gdal_tests/test_geom.py,357,self.assertAlmostEqual(ls_trans.y[0], ls_orig.y[0], prec)
../django/tests/gis_tests/gdal_tests/test_geom.py,436,poly = OGRGeometry(self.geometries.polygons[3].wkt)
../django/tests/gis_tests/gdal_tests/test_geom.py,478,self.assertEqual(2, geom[0].coord_dim)
../django/tests/gis_tests/gdal_tests/test_geom.py,484,self.assertEqual(3, geom[0].coord_dim)
../django/tests/gis_tests/gdal_tests/test_raster.py,122,self.assertIsInstance(self.rs.bands[0], GDALBand)
../django/tests/gis_tests/gdal_tests/test_raster.py,130,'datatype': self.rs.bands[0].datatype(),
../django/tests/gis_tests/gdal_tests/test_raster.py,141,'data': self.rs.bands[0].data(),
../django/tests/gis_tests/gdal_tests/test_raster.py,142,'nodata_value': self.rs.bands[0].nodata_value
../django/tests/gis_tests/gdal_tests/test_raster.py,152,restored_raster.bands[0].data(),
../django/tests/gis_tests/gdal_tests/test_raster.py,153,self.rs.bands[0].data()
../django/tests/gis_tests/gdal_tests/test_raster.py,156,self.assertEqual(restored_raster.bands[0].data(), self.rs.bands[0].data())
../django/tests/gis_tests/gdal_tests/test_raster.py,165,self.band = rs.bands[0]
../django/tests/gis_tests/gdal_tests/test_raster.py,180,band = rs.bands[0]
../django/tests/gis_tests/gdal_tests/test_raster.py,196,bandmem = rsmem.bands[0]
../django/tests/gis_tests/gdal_tests/test_raster.py,263,bandmemjson = rsmemjson.bands[0]
../django/tests/gis_tests/gdal_tests/test_srs.py,216,self.assertEqual(tup[0], srs.auth_name(target))
../django/tests/gis_tests/gdal_tests/test_srs.py,217,self.assertEqual(tup[1], srs.auth_code(target))
../django/tests/gis_tests/gdal_tests/test_srs.py,224,att = tup[0]  # Attribute to test
../django/tests/gis_tests/gdal_tests/test_srs.py,225,exp = tup[1]  # Expected result
../django/tests/gis_tests/gdal_tests/test_srs.py,235,key = tup[0]
../django/tests/gis_tests/gdal_tests/test_srs.py,236,exp = tup[1]
../django/tests/gis_tests/gdal_tests/test_srs.py,239,exp = tup[2]
../django/tests/gis_tests/geo3d/tests.py,101,bbox_3d = Polygon(tuple((x, y, z) for (x, y), z in zip(bbox_2d[0].coords, bbox_z)), srid=32140)
../django/tests/gis_tests/geo3d/tests.py,134,z = pnt_data[2]
../django/tests/gis_tests/geo3d/tests.py,304,self.assertEqual(city_dict[city.name][2] * zscale, city.scale.z)
../django/tests/gis_tests/geo3d/tests.py,316,self.assertEqual(city_dict[city.name][2] + ztrans, city.translate.z)
../django/tests/gis_tests/geo3d/tests.py,396,self.assertEqual(city_dict[city.name][2] * zscale, city.scale.z)
../django/tests/gis_tests/geo3d/tests.py,406,self.assertEqual(city_dict[city.name][2] + ztrans, city.translate.z)
../django/tests/gis_tests/geoapp/test_feeds.py,38,self.assertChildNodes(feed2.getElementsByTagName('channel')[0],
../django/tests/gis_tests/geoapp/test_feeds.py,47,chan = feed.getElementsByTagName('channel')[0]
../django/tests/gis_tests/geoapp/test_feeds.py,80,chan = feed.getElementsByTagName('channel')[0]
../django/tests/gis_tests/geoapp/test_functions.py,157,self.assertAlmostEqual(qs[0].circle.area, 168.89, 2)
../django/tests/gis_tests/geoapp/test_functions.py,158,self.assertAlmostEqual(qs[1].circle.area, 135.95, 2)
../django/tests/gis_tests/geoapp/test_functions.py,161,self.assertAlmostEqual(qs[0].circle.area, 168.44, 2)
../django/tests/gis_tests/geoapp/test_functions.py,162,self.assertAlmostEqual(qs[1].circle.area, 135.59, 2)
../django/tests/gis_tests/geoapp/test_functions.py,313,self.assertAlmostEqual(c1[0] * xfac, c2[0], tol)
../django/tests/gis_tests/geoapp/test_functions.py,314,self.assertAlmostEqual(c1[1] * yfac, c2[1], tol)
../django/tests/gis_tests/geoapp/test_functions.py,317,self.assertGreater(qs[0].scaled.area, qs[0].mpoly.area)
../django/tests/gis_tests/geoapp/test_functions.py,416,self.assertAlmostEqual(c1[0] + xfac, c2[0], 5)
../django/tests/gis_tests/geoapp/test_functions.py,417,self.assertAlmostEqual(c1[1] + yfac, c2[1], 5)
../django/tests/gis_tests/geoapp/test_regress.py,55,self.assertEqual(founded, PennsylvaniaCity.objects.datetimes('founded', 'day')[0])
../django/tests/gis_tests/geoapp/test_serializers.py,33,self.assertEqual(geodata['features'][0]['geometry']['type'], 'Point')
../django/tests/gis_tests/geoapp/test_serializers.py,34,self.assertEqual(geodata['features'][0]['properties']['name'], 'Chicago')
../django/tests/gis_tests/geoapp/test_serializers.py,47,self.assertEqual(geodata['features'][0]['geometry']['type'], 'Point')
../django/tests/gis_tests/geoapp/test_serializers.py,52,self.assertEqual(geodata['features'][0]['geometry']['type'], 'Polygon')
../django/tests/gis_tests/geoapp/test_serializers.py,63,self.assertIn('county', geodata['features'][0]['properties'])
../django/tests/gis_tests/geoapp/test_serializers.py,64,self.assertNotIn('founded', geodata['features'][0]['properties'])
../django/tests/gis_tests/geoapp/test_serializers.py,70,[int(c) for c in geodata['features'][0]['geometry']['coordinates']],
../django/tests/gis_tests/geoapp/test_sitemaps.py,56,kml_url = url.getElementsByTagName('loc')[0].childNodes[0].data.split('http://example.com')[1]
../django/tests/gis_tests/geoapp/test_sitemaps.py,65,self.assertEqual('doc.kml', zf.filelist[0].filename)
../django/tests/gis_tests/geoapp/tests.py,104,ns.poly[1] = new_inner
../django/tests/gis_tests/geoapp/tests.py,105,ply[1] = new_inner
../django/tests/gis_tests/geoapp/tests.py,186,self.assertEqual(f_3.geom, f_4.geom[2])
../django/tests/gis_tests/geoapp/tests.py,212,self.assertIsInstance(cities2[0].point, Point)
../django/tests/gis_tests/geoapp/tests.py,246,self.assertEqual('Kansas', qs2[0].name)
../django/tests/gis_tests/geoapp/tests.py,292,self.assertEqual('Texas', qs[0].name)
../django/tests/gis_tests/geoapp/tests.py,375,self.assertEqual('Puerto Rico', nullqs[0].name)
../django/tests/gis_tests/geoapp/tests.py,760,self.assertAlmostEqual(c1[0] * xfac, c2[0], tol)
../django/tests/gis_tests/geoapp/tests.py,761,self.assertAlmostEqual(c1[1] * yfac, c2[1], tol)
../django/tests/gis_tests/geoapp/tests.py,858,self.assertAlmostEqual(c1[0] + xfac, c2[0], 5)
../django/tests/gis_tests/geoapp/tests.py,859,self.assertAlmostEqual(c1[1] + yfac, c2[1], 5)
../django/tests/gis_tests/geos_tests/test_geos.py,234,self.assertAlmostEqual(p.x, pnt.tuple[0], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,235,self.assertAlmostEqual(p.y, pnt.tuple[1], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,241,self.assertEqual(p.z, pnt.tuple[2], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,282,self.assertAlmostEqual(mp.centroid[0], mpnt.centroid.tuple[0], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,283,self.assertAlmostEqual(mp.centroid[1], mpnt.centroid.tuple[1], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,330,self.assertAlmostEqual(l.centroid[0], ml.centroid.x, 9)
../django/tests/gis_tests/geos_tests/test_geos.py,331,self.assertAlmostEqual(l.centroid[1], ml.centroid.y, 9)
../django/tests/gis_tests/geos_tests/test_geos.py,393,self.assertAlmostEqual(p.centroid[0], poly.centroid.tuple[0], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,394,self.assertAlmostEqual(p.centroid[1], poly.centroid.tuple[1], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,408,self.assertEqual(p.ext_ring_cs, poly[0].tuple)  # Testing __getitem__
../django/tests/gis_tests/geos_tests/test_geos.py,426,self.assertEqual(poly, Polygon(rings[0], rings[1:]))
../django/tests/gis_tests/geos_tests/test_geos.py,474,poly = fromstr(self.geometries.polygons[1].wkt)
../django/tests/gis_tests/geos_tests/test_geos.py,475,ring1 = poly[0]
../django/tests/gis_tests/geos_tests/test_geos.py,476,ring2 = poly[1]
../django/tests/gis_tests/geos_tests/test_geos.py,481,ring1 = poly[0]
../django/tests/gis_tests/geos_tests/test_geos.py,482,ring2 = poly[1]
../django/tests/gis_tests/geos_tests/test_geos.py,604,self.assertAlmostEqual(exp_ring[k][0], buf_ring[k][0], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,605,self.assertAlmostEqual(exp_ring[k][1], buf_ring[k][1], 9)
../django/tests/gis_tests/geos_tests/test_geos.py,617,poly = fromstr(self.geometries.polygons[1].wkt, srid=4269)
../django/tests/gis_tests/geos_tests/test_geos.py,675,new_coords.append((point[0] + 500., point[1] + 500.))
../django/tests/gis_tests/geos_tests/test_geos.py,682,self.assertEqual(poly[0], new_shell)
../django/tests/gis_tests/geos_tests/test_geos.py,709,r[k] = (r[k][0] + 500., r[k][1] + 500.)
../django/tests/gis_tests/geos_tests/test_geos.py,722,# mpoly[0][0][0] = (3.14, 2.71)
../django/tests/gis_tests/geos_tests/test_geos.py,723,# self.assertEqual((3.14, 2.71), mpoly[0][0][0])
../django/tests/gis_tests/geos_tests/test_geos.py,725,# self.assertEqual((3.14, 2.71), mpoly[0].shell[0])
../django/tests/gis_tests/geos_tests/test_geos.py,741,ls[0] = (1., 2., 3.)
../django/tests/gis_tests/geos_tests/test_geos.py,742,self.assertEqual((1., 2., 3.), ls[0])
../django/tests/gis_tests/geos_tests/test_geos.py,798,self.assertEqual(0, len(g[0]))
../django/tests/gis_tests/geos_tests/test_geos.py,969,poly = fromstr(self.geometries.polygons[3].wkt)
../django/tests/gis_tests/geos_tests/test_mutable_list.py,292,ul[1] = 50
../django/tests/gis_tests/geos_tests/test_mutable_list.py,394,self.assertNotEqual(ul, pl + [2], 'cmp for not equal')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,400,self.assertGreater(pl + [5], ul, 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,401,self.assertGreaterEqual(pl + [5], ul, 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,402,self.assertLess(pl, ul + [2], 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,403,self.assertLessEqual(pl, ul + [2], 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,404,self.assertGreater(ul + [5], pl, 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,405,self.assertGreaterEqual(ul + [5], pl, 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,406,self.assertLess(ul, pl + [2], 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,407,self.assertLessEqual(ul, pl + [2], 'cmp')
../django/tests/gis_tests/geos_tests/test_mutable_list.py,410,ul_longer = ul + [2]
../django/tests/gis_tests/geos_tests/test_mutable_list.py,416,pl[1] = 20
../django/tests/gis_tests/geos_tests/test_mutable_list.py,419,pl[1] = -20
../django/tests/gis_tests/layermap/tests.py,80,layer = ds[0]
../django/tests/gis_tests/layermap/tests.py,112,valid_feats = ds[0][:2]
../django/tests/gis_tests/layermap/tests.py,124,self.assertAlmostEqual(p1[0], p2[0], 6)
../django/tests/gis_tests/layermap/tests.py,125,self.assertAlmostEqual(p1[1], p2[1], 6)
../django/tests/gis_tests/layermap/tests.py,236,self.assertEqual('Galveston', qs[0].name)
../django/tests/gis_tests/layermap/tests.py,313,self.assertEqual(City.objects.all()[0].name, "Zürich")
../django/tests/gis_tests/relatedapp/tests.py,64,check_pnt(GEOSGeometry(wkt, srid), qs[0].location.point)
../django/tests/gis_tests/relatedapp/tests.py,95,cities[0].points_extent,
../django/tests/gis_tests/relatedapp/tests.py,171,self.assertEqual('P2', qs[0].name)
../django/tests/gis_tests/relatedapp/tests.py,178,self.assertEqual('P2', qs[0].name)
../django/tests/gis_tests/relatedapp/tests.py,184,self.assertEqual('P1', qs[0].name)
../django/tests/gis_tests/relatedapp/tests.py,190,self.assertEqual('P1', qs[0].name)
../django/tests/gis_tests/relatedapp/tests.py,204,self.assertIsInstance(t[1], Geometry)
../django/tests/gis_tests/relatedapp/tests.py,206,self.assertEqual(m.point, t[1])
../django/tests/gis_tests/relatedapp/tests.py,269,self.assertEqual(3, qs[0].num_books)
../django/tests/gis_tests/relatedapp/tests.py,271,self.assertEqual(3, vqs[0]['num_books'])
../django/tests/gis_tests/relatedapp/tests.py,281,self.assertEqual(2, qs[0]['num_cities'])
../django/tests/gis_tests/relatedapp/tests.py,282,self.assertIsInstance(qs[0]['point'], GEOSGeometry)
../django/tests/httpwrappers/tests.py,287,self.assertEqual(l[0], ('foo', 'bar'))
../django/tests/httpwrappers/tests.py,288,self.assertIsInstance(l[0][0], str)
../django/tests/httpwrappers/tests.py,295,self.assertEqual(l[0], ('foo', 'bar'))
../django/tests/httpwrappers/tests.py,296,self.assertIsInstance(l[0][0], str)
../django/tests/humanize_tests/tests.py,98,self.humanize_tester([100], ['100'], 'intcomma')
../django/tests/i18n/test_compilation.py,52,self.assertIn("file has a BOM (Byte Order Mark)", cm.exception.args[0])
../django/tests/i18n/test_extraction.py,305,self, str(ws[0].message),
../django/tests/i18n/test_extraction.py,309,self, str(ws[1].message),
../django/tests/i18n/test_extraction.py,313,self, str(ws[2].message),
../django/tests/i18n/test_extraction.py,366,found_exts = set([os.path.splitext(tfile.file)[1] for tfile in found_files])
../django/tests/i18n/test_extraction.py,372,found_exts = set([os.path.splitext(tfile.file)[1] for tfile in found_files])
../django/tests/i18n/test_extraction.py,730,* translations outside of that app are in LOCALE_PATHS[0]
../django/tests/i18n/test_extraction.py,734,os.path.join(settings.LOCALE_PATHS[0], LOCALE), True)
../django/tests/indexes/tests.py,35,index_sql[0]
../django/tests/indexes/tests.py,50,self.assertIn('("headline" varchar_pattern_ops)', index_sql[2])
../django/tests/indexes/tests.py,51,self.assertIn('("body" text_pattern_ops)', index_sql[3])
../django/tests/indexes/tests.py,54,self.assertIn('("slug" varchar_pattern_ops)', index_sql[4])
../django/tests/inspectdb/tests.py,39,out_def = re.search(r'^\s*%s = (models.*)$' % name, output, re.MULTILINE).groups()[0]
../django/tests/introspection/tests.py,70,self.assertEqual([r[0] for r in desc],
../django/tests/introspection/tests.py,77,[datatype(r[1], r) for r in desc],
../django/tests/introspection/tests.py,92,[r[3] for r in desc if datatype(r[1], r) == 'CharField'],
../django/tests/introspection/tests.py,102,[r[6] for r in desc],
../django/tests/introspection/tests.py,113,self.assertEqual(datatype(desc[0][1], desc[0]), 'FloatField')
../django/tests/introspection/tests.py,181,return dt[0]
../django/tests/known_related_objects/tests.py,25,pool = tournament.pool_set.all()[0]
../django/tests/known_related_objects/tests.py,31,pool = tournament.pool_set.all()[0]
../django/tests/known_related_objects/tests.py,37,pool1 = tournaments[0].pool_set.all()[0]
../django/tests/known_related_objects/tests.py,38,self.assertIs(tournaments[0], pool1.tournament)
../django/tests/known_related_objects/tests.py,39,pool2 = tournaments[1].pool_set.all()[0]
../django/tests/known_related_objects/tests.py,40,self.assertIs(tournaments[1], pool2.tournament)
../django/tests/known_related_objects/tests.py,55,first = pools.filter(pk=self.p1.pk)[0]
../django/tests/known_related_objects/tests.py,78,first = pools.filter(pk=self.p1.pk)[0]
../django/tests/known_related_objects/tests.py,97,self.assertIs(poolstyles[0], poolstyles[0].pool.poolstyle)
../django/tests/known_related_objects/tests.py,98,self.assertIs(poolstyles[1], poolstyles[1].pool.poolstyle)
../django/tests/known_related_objects/tests.py,109,self.assertIs(poolstyles[0], poolstyles[0].pool.poolstyle)
../django/tests/known_related_objects/tests.py,110,self.assertIs(poolstyles[1], poolstyles[1].pool.poolstyle)
../django/tests/known_related_objects/tests.py,133,self.assertIs(pools[1], pools[1].poolstyle.pool)
../django/tests/known_related_objects/tests.py,134,self.assertIs(pools[2], pools[2].poolstyle.pool)
../django/tests/known_related_objects/tests.py,139,self.assertIs(pools[1], pools[1].poolstyle.pool)
../django/tests/known_related_objects/tests.py,140,self.assertIs(pools[2], pools[2].poolstyle.pool)
../django/tests/logging_tests/tests.py,119,output = force_text(self.outputs[0].getvalue())
../django/tests/logging_tests/tests.py,126,output = force_text(self.outputs[0].getvalue())
../django/tests/logging_tests/tests.py,170,][0]
../django/tests/logging_tests/tests.py,200,self.assertEqual(mail.outbox[0].to, ['admin@example.com'])
../django/tests/logging_tests/tests.py,201,self.assertEqual(mail.outbox[0].subject,
../django/tests/logging_tests/tests.py,235,self.assertEqual(mail.outbox[0].to, ['admin@example.com'])
../django/tests/logging_tests/tests.py,236,self.assertEqual(mail.outbox[0].subject,
../django/tests/logging_tests/tests.py,261,self.assertNotIn('\n', mail.outbox[0].subject)
../django/tests/logging_tests/tests.py,262,self.assertNotIn('\r', mail.outbox[0].subject)
../django/tests/logging_tests/tests.py,263,self.assertEqual(mail.outbox[0].subject, expected_subject)
../django/tests/logging_tests/tests.py,285,self.assertEqual(mail.outbox[0].subject, expected_subject)
../django/tests/logging_tests/tests.py,334,msg = mail.outbox[0]
../django/tests/logging_tests/tests.py,353,self.assertEqual(mail.outbox[0].to, ['manager@example.com'])
../django/tests/logging_tests/tests.py,407,self.assertEqual(calls[0], 'dubious')
../django/tests/logging_tests/tests.py,413,self.assertEqual(calls[0], 'dubious')
../django/tests/logging_tests/tests.py,422,self.assertIn('path:/suspicious/,', mail.outbox[0].body)
../django/tests/lookup/tests.py,120,self.assertEqual(Article.objects.in_bulk([1000]), {})
../django/tests/lookup/tests.py,673,pedro_feliz.games = Game.objects.filter(season__year__in=[2011])
../django/tests/lookup/tests.py,675,johnson.games = Game.objects.filter(season__year__in=[2011])
../django/tests/m2m_through/tests.py,456,[choice[0] for choice in field.get_choices(include_blank=False)],
../django/tests/mail/test_sendtestemail.py,20,mail_message = mail.outbox[0]
../django/tests/mail/test_sendtestemail.py,29,call_command("sendtestemail", recipients[0], recipients[1])
../django/tests/mail/test_sendtestemail.py,31,mail_message = mail.outbox[0]
../django/tests/mail/tests.py,292,self.assertEqual(payload[0].get_content_type(), 'multipart/alternative')
../django/tests/mail/tests.py,293,self.assertEqual(payload[1].get_content_type(), 'application/pdf')
../django/tests/mail/tests.py,306,self.assertEqual(payload[1].get_filename(), 'une pièce jointe.pdf')
../django/tests/mail/tests.py,358,self.assertEqual(connection.test_outbox[0].subject, 'Subject')
../django/tests/mail/tests.py,367,self.assertEqual(connection.test_outbox[0].subject, 'Subject1')
../django/tests/mail/tests.py,368,self.assertEqual(connection.test_outbox[1].subject, 'Subject2')
../django/tests/mail/tests.py,374,self.assertEqual(connection.test_outbox[0].subject, '[Django] Admin message')
../django/tests/mail/tests.py,380,self.assertEqual(connection.test_outbox[0].subject, '[Django] Manager message')
../django/tests/mail/tests.py,496,return mailbox[0]
../django/tests/mail/tests.py,523,self.assertEqual(messages[0].get_payload(), "Content1")
../django/tests/mail/tests.py,524,self.assertEqual(messages[1].get_payload(), "Content2")
../django/tests/mail/tests.py,712,opened[0] = True
../django/tests/mail/tests.py,716,closed[0] = True
../django/tests/mail/tests.py,719,self.assertTrue(opened[0])
../django/tests/mail/tests.py,721,self.assertFalse(closed[0])
../django/tests/mail/tests.py,722,self.assertTrue(closed[0])
../django/tests/mail/tests.py,788,with open(os.path.join(self.tmp_dir, os.listdir(self.tmp_dir)[0]), 'rb') as fp:
../django/tests/mail/tests.py,840,message = force_bytes(s.getvalue().split('\n' + ('-' * 79) + '\n')[0])
../django/tests/mail/tests.py,884,maddr = parseaddr(m.get('from'))[1]
../django/tests/mail/tests.py,926,EMAIL_PORT=cls.server.socket.getsockname()[1])
../django/tests/many_to_many/tests.py,97,a6 = self.p2.article_set.all()[3]
../django/tests/many_to_one/tests.py,236,self.assertEqual(queryset.query.get_compiler(queryset.db).as_sql()[0].count('INNER JOIN'), 1)
../django/tests/messages_tests/test_cookie.py,119,self.assertEqual(unstored_messages[0].message, '0' * msg_size)
../django/tests/messages_tests/test_session.py,54,self.assertIsInstance(list(storage)[0].message, SafeData)
../django/tests/middleware/tests.py,304,self.assertIn('Broken', mail.outbox[0].subject)
../django/tests/middleware/tests.py,331,self.assertIn('User agent: \u043b\u0438\ufffd\ufffd\n', mail.outbox[0].body)
../django/tests/middleware_exceptions/tests.py,879,calls[0],
../django/tests/middleware_exceptions/tests.py,891,calls[0],
../django/tests/migrations/test_autodetector.py,437,self.assertEqual(changes["testapp"][0].name, "0003_author")
../django/tests/migrations/test_autodetector.py,438,self.assertEqual(changes["testapp"][0].dependencies, [("testapp", "0002_foobar")])
../django/tests/migrations/test_autodetector.py,439,self.assertEqual(changes["otherapp"][0].name, "0002_pony_stable")
../django/tests/migrations/test_autodetector.py,440,self.assertEqual(changes["otherapp"][0].dependencies, [("otherapp", "0001_initial")])
../django/tests/migrations/test_autodetector.py,455,changes["testapp"][0].dependencies.append(("otherapp", "0001_initial"))
../django/tests/migrations/test_autodetector.py,458,self.assertEqual(changes["testapp"][0].name, "0001_initial")
../django/tests/migrations/test_autodetector.py,459,self.assertEqual(changes["otherapp"][0].name, "0001_initial")
../django/tests/migrations/test_autodetector.py,482,self.assertEqual(changes["testapp"][0].name, "0003_%s" % migration_name)
../django/tests/migrations/test_autodetector.py,483,self.assertEqual(changes["testapp"][0].dependencies, [("testapp", "0002_foobar")])
../django/tests/migrations/test_autodetector.py,484,self.assertEqual(changes["otherapp"][0].name, "0002_%s" % migration_name)
../django/tests/migrations/test_autodetector.py,485,self.assertEqual(changes["otherapp"][0].dependencies, [("otherapp", "0001_initial")])
../django/tests/migrations/test_autodetector.py,498,self.assertEqual([name for name, mgr in changes['otherapp'][0].operations[0].managers],
../django/tests/migrations/test_autodetector.py,815,self.assertNotIn("unique_together", changes['eggs'][0].operations[0].options)
../django/tests/migrations/test_autodetector.py,816,self.assertNotIn("unique_together", changes['eggs'][0].operations[1].options)
../django/tests/migrations/test_autodetector.py,933,ops = ', '.join(o.__class__.__name__ for o in changes['a'][0].operations)
../django/tests/migrations/test_autodetector.py,1102,self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'id')
../django/tests/migrations/test_autodetector.py,1110,self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'pk_field')
../django/tests/migrations/test_autodetector.py,1160,self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'id')
../django/tests/migrations/test_autodetector.py,1168,self.assertEqual(changes['otherapp'][0].operations[0].fields[2][1].remote_field.field_name, 'pk_field')
../django/tests/migrations/test_autodetector.py,1192,fk_field = changes['testapp'][0].operations[0].field
../django/tests/migrations/test_autodetector.py,1542,self.assertNotIn("_order", [name for name, field in changes['testapp'][0].operations[0].fields])
../django/tests/migrations/test_autodetector.py,1557,self.assertEqual([name for name, mgr in changes['otherapp'][0].operations[0].managers],
../django/tests/migrations/test_autodetector.py,1559,self.assertEqual(changes['otherapp'][0].operations[0].managers[1][1].args, ('a', 'b', 1, 2))
../django/tests/migrations/test_autodetector.py,1560,self.assertEqual(changes['otherapp'][0].operations[0].managers[2][1].args, ('x', 'y', 3, 4))
../django/tests/migrations/test_base.py,40,self.assertEqual([c.null_ok for c in self.get_table_description(table) if c.name == column][0], True)
../django/tests/migrations/test_base.py,43,self.assertEqual([c.null_ok for c in self.get_table_description(table) if c.name == column][0], False)
../django/tests/migrations/test_executor.py,68,leaves = [key for key in executor.loader.graph.leaf_nodes() if key[0] == "migrations"]
../django/tests/migrations/test_executor.py,234,self.assertEqual(executor.detect_soft_applied(None, migration)[0], True)
../django/tests/migrations/test_loader.py,181,len([x for x in migration_loader.graph.nodes if x[0] == "migrations"]),
../django/tests/migrations/test_loader.py,188,len([x for x in migration_loader.graph.nodes if x[0] == "migrations"]),
../django/tests/migrations/test_operations.py,193,self.assertEqual(definition[0], "CreateModel")
../django/tests/migrations/test_operations.py,194,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,195,self.assertEqual(sorted(definition[2].keys()), ["fields", "name"])
../django/tests/migrations/test_operations.py,199,self.assertNotIn('managers', definition[2])
../django/tests/migrations/test_operations.py,345,self.assertEqual(definition[0], "CreateModel")
../django/tests/migrations/test_operations.py,346,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,347,self.assertEqual(sorted(definition[2].keys()), ["bases", "fields", "name", "options"])
../django/tests/migrations/test_operations.py,400,self.assertEqual(managers[0][0], "food_qs")
../django/tests/migrations/test_operations.py,401,self.assertIsInstance(managers[0][1], models.Manager)
../django/tests/migrations/test_operations.py,402,self.assertEqual(managers[1][0], "food_mgr")
../django/tests/migrations/test_operations.py,403,self.assertIsInstance(managers[1][1], FoodManager)
../django/tests/migrations/test_operations.py,404,self.assertEqual(managers[1][1].args, ("a", "b", 1, 2))
../django/tests/migrations/test_operations.py,405,self.assertEqual(managers[2][0], "food_mgr_kwargs")
../django/tests/migrations/test_operations.py,406,self.assertIsInstance(managers[2][1], FoodManager)
../django/tests/migrations/test_operations.py,407,self.assertEqual(managers[2][1].args, ("x", "y", 3, 4))
../django/tests/migrations/test_operations.py,431,self.assertEqual(definition[0], "DeleteModel")
../django/tests/migrations/test_operations.py,432,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,433,self.assertEqual(list(definition[2]), ["name"])
../django/tests/migrations/test_operations.py,482,self.assertEqual("test_rnmo.Horse", new_state.models["test_rnmo", "rider"].fields[1][1].remote_field.model)
../django/tests/migrations/test_operations.py,493,self.assertEqual("Pony", original_state.models["test_rnmo", "rider"].fields[1][1].remote_field.model)
../django/tests/migrations/test_operations.py,501,self.assertEqual(definition[0], "RenameModel")
../django/tests/migrations/test_operations.py,502,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,503,self.assertEqual(definition[2], {'old_name': "Pony", 'new_name': "Horse"})
../django/tests/migrations/test_operations.py,518,self.assertEqual("test_rmwsrf.HorseRider", new_state.models["test_rmwsrf", "horserider"].fields[2][1].remote_field.model)
../django/tests/migrations/test_operations.py,556,project_state.models["test_rmwsc", "rider"].fields[1][1].remote_field.model,
../django/tests/migrations/test_operations.py,557,new_state.models["test_rmwsc", "rider"].fields[1][1].remote_field.model
../django/tests/migrations/test_operations.py,659,][0]
../django/tests/migrations/test_operations.py,672,self.assertEqual(definition[0], "AddField")
../django/tests/migrations/test_operations.py,673,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,674,self.assertEqual(sorted(definition[2]), ["field", "model_name", "name"])
../django/tests/migrations/test_operations.py,836,][0]
../django/tests/migrations/test_operations.py,848,self.assertEqual(definition[0], "AddField")
../django/tests/migrations/test_operations.py,849,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,850,self.assertEqual(sorted(definition[2]), ["field", "model_name", "name", "preserve_default"])
../django/tests/migrations/test_operations.py,969,self.assertEqual(definition[0], "RemoveField")
../django/tests/migrations/test_operations.py,970,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,971,self.assertEqual(definition[2], {'model_name': "Pony", 'name': 'pink'})
../django/tests/migrations/test_operations.py,1015,self.assertEqual(definition[0], "AlterModelTable")
../django/tests/migrations/test_operations.py,1016,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1017,self.assertEqual(definition[2], {'name': "Pony", 'table': "test_almota_pony_2"})
../django/tests/migrations/test_operations.py,1093,self.assertEqual(definition[0], "AlterField")
../django/tests/migrations/test_operations.py,1094,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1095,self.assertEqual(sorted(definition[2]), ["field", "model_name", "name"])
../django/tests/migrations/test_operations.py,1134,][0]
../django/tests/migrations/test_operations.py,1139,][0]
../django/tests/migrations/test_operations.py,1166,self.assertIn("blue", new_state.models["test_rnfl", "pony"].options['unique_together'][0])
../django/tests/migrations/test_operations.py,1167,self.assertNotIn("pink", new_state.models["test_rnfl", "pony"].options['unique_together'][0])
../django/tests/migrations/test_operations.py,1169,self.assertIn("blue", new_state.models["test_rnfl", "pony"].options['index_together'][0])
../django/tests/migrations/test_operations.py,1170,self.assertNotIn("pink", new_state.models["test_rnfl", "pony"].options['index_together'][0])
../django/tests/migrations/test_operations.py,1196,self.assertEqual(definition[0], "RenameField")
../django/tests/migrations/test_operations.py,1197,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1198,self.assertEqual(definition[2], {'model_name': "Pony", 'old_name': "pink", 'new_name': "blue"})
../django/tests/migrations/test_operations.py,1237,self.assertEqual(definition[0], "AlterUniqueTogether")
../django/tests/migrations/test_operations.py,1238,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1239,self.assertEqual(definition[2], {'name': "Pony", 'unique_together': {("pink", "weight")}})
../django/tests/migrations/test_operations.py,1269,self.assertEqual(definition[0], "AlterIndexTogether")
../django/tests/migrations/test_operations.py,1270,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1271,self.assertEqual(definition[2], {'name': "Pony", 'index_together': {("pink", "weight")}})
../django/tests/migrations/test_operations.py,1289,self.assertEqual(new_state.models["test_almoop", "pony"].options["permissions"][0][0], "can_groom")
../django/tests/migrations/test_operations.py,1292,self.assertEqual(definition[0], "AlterModelOptions")
../django/tests/migrations/test_operations.py,1293,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1294,self.assertEqual(definition[2], {'name': "Pony", 'options': {"permissions": [("can_groom", "Can groom")]}})
../django/tests/migrations/test_operations.py,1310,self.assertEqual(definition[0], "AlterModelOptions")
../django/tests/migrations/test_operations.py,1311,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1312,self.assertEqual(definition[2], {'name': "Pony", 'options': {}})
../django/tests/migrations/test_operations.py,1339,self.assertEqual(updated_riders[0]._order, 0)
../django/tests/migrations/test_operations.py,1340,self.assertEqual(updated_riders[1]._order, 0)
../django/tests/migrations/test_operations.py,1347,self.assertEqual(definition[0], "AlterOrderWithRespectTo")
../django/tests/migrations/test_operations.py,1348,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1349,self.assertEqual(definition[2], {'name': "Rider", 'order_with_respect_to': "pony"})
../django/tests/migrations/test_operations.py,1373,self.assertEqual(managers[0][0], "food_qs")
../django/tests/migrations/test_operations.py,1374,self.assertIsInstance(managers[0][1], models.Manager)
../django/tests/migrations/test_operations.py,1375,self.assertEqual(managers[1][0], "food_mgr")
../django/tests/migrations/test_operations.py,1376,self.assertIsInstance(managers[1][1], FoodManager)
../django/tests/migrations/test_operations.py,1377,self.assertEqual(managers[1][1].args, ("a", "b", 1, 2))
../django/tests/migrations/test_operations.py,1378,self.assertEqual(managers[2][0], "food_mgr_kwargs")
../django/tests/migrations/test_operations.py,1379,self.assertIsInstance(managers[2][1], FoodManager)
../django/tests/migrations/test_operations.py,1380,self.assertEqual(managers[2][1].args, ("x", "y", 3, 4))
../django/tests/migrations/test_operations.py,1392,self.assertEqual(managers[0][0], "food_qs")
../django/tests/migrations/test_operations.py,1393,self.assertIsInstance(managers[0][1], models.Manager)
../django/tests/migrations/test_operations.py,1394,self.assertEqual(managers[1][0], "food_mgr")
../django/tests/migrations/test_operations.py,1395,self.assertIsInstance(managers[1][1], FoodManager)
../django/tests/migrations/test_operations.py,1396,self.assertEqual(managers[1][1].args, ("a", "b", 1, 2))
../django/tests/migrations/test_operations.py,1397,self.assertEqual(managers[2][0], "food_mgr_kwargs")
../django/tests/migrations/test_operations.py,1398,self.assertIsInstance(managers[2][1], FoodManager)
../django/tests/migrations/test_operations.py,1399,self.assertEqual(managers[2][1].args, ("x", "y", 3, 4))
../django/tests/migrations/test_operations.py,1500,self.assertEqual(cursor.fetchall()[0][0], 2)
../django/tests/migrations/test_operations.py,1502,self.assertEqual(cursor.fetchall()[0][0], 1)
../django/tests/migrations/test_operations.py,1504,self.assertEqual(cursor.fetchall()[0][0], 1)
../django/tests/migrations/test_operations.py,1512,self.assertEqual(definition[0], "RunSQL")
../django/tests/migrations/test_operations.py,1513,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1514,self.assertEqual(sorted(definition[2]), ["reverse_sql", "sql", "state_operations"])
../django/tests/migrations/test_operations.py,1554,self.assertEqual(cursor.fetchall()[0][0], 3)
../django/tests/migrations/test_operations.py,1560,self.assertEqual(cursor.fetchall()[0][0], 0)
../django/tests/migrations/test_operations.py,1644,self.assertEqual(definition[0], "RunPython")
../django/tests/migrations/test_operations.py,1645,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1646,self.assertEqual(sorted(definition[2]), ["code", "reverse_code"])
../django/tests/migrations/test_operations.py,1671,self.assertEqual(definition[0], "RunPython")
../django/tests/migrations/test_operations.py,1672,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1673,self.assertEqual(sorted(definition[2]), ["code"])
../django/tests/migrations/test_operations.py,1727,definition = non_atomic_migration.operations[0].deconstruct()
../django/tests/migrations/test_operations.py,1728,self.assertEqual(definition[0], "RunPython")
../django/tests/migrations/test_operations.py,1729,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1730,self.assertEqual(sorted(definition[2]), ["atomic", "code"])
../django/tests/migrations/test_operations.py,1834,self.assertEqual(definition[0], "SeparateDatabaseAndState")
../django/tests/migrations/test_operations.py,1835,self.assertEqual(definition[1], [])
../django/tests/migrations/test_operations.py,1836,self.assertEqual(sorted(definition[2]), ["database_operations", "state_operations"])
../django/tests/migrations/test_state.py,121,self.assertEqual(author_state.fields[1][1].max_length, 255)
../django/tests/migrations/test_state.py,122,self.assertEqual(author_state.fields[2][1].null, False)
../django/tests/migrations/test_state.py,123,self.assertEqual(author_state.fields[3][1].null, True)
../django/tests/migrations/test_state.py,130,self.assertEqual(book_state.fields[1][1].max_length, 1000)
../django/tests/migrations/test_state.py,131,self.assertEqual(book_state.fields[2][1].null, False)
../django/tests/migrations/test_state.py,132,self.assertEqual(book_state.fields[3][1].__class__.__name__, "ManyToManyField")
../django/tests/migrations/test_state.py,150,self.assertEqual(food_state.managers[0][1].args, ('a', 'b', 1, 2))
../django/tests/migrations/test_state.py,160,self.assertEqual(food_no_default_manager_state.managers[0][1].__class__, models.Manager)
../django/tests/migrations/test_state.py,161,self.assertIsInstance(food_no_default_manager_state.managers[1][1], FoodManager)
../django/tests/migrations/test_state.py,245,self.assertIs(managers[0][1], Food._default_manager)
../django/tests/migrations/test_state.py,470,return [mod for mod in state.apps.get_models() if mod._meta.model_name == 'a'][0]
../django/tests/migrations/test_state.py,513,return [mod for mod in state.apps.get_models() if mod._meta.model_name == 'a'][0]
../django/tests/migrations/test_state.py,821,self.assertEqual(author_state.fields[1][1].max_length, 255)
../django/tests/migrations/test_state.py,822,self.assertEqual(author_state.fields[2][1].null, False)
../django/tests/migrations/test_state.py,823,self.assertEqual(author_state.fields[3][1].null, True)
../django/tests/migrations/test_state.py,850,self.assertEqual(food_state.managers[0][1].args, ('a', 'b', 1, 2))
../django/tests/migrations/test_writer.py,310,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,316,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,322,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,328,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,334,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,339,string = MigrationWriter.serialize(validator)[0]
../django/tests/migrations/test_writer.py,539,string = MigrationWriter.serialize(models.CharField(default=DeconstructableInstances))[0]
../django/tests/model_fields/test_durationfield.py,39,[self.objs[0]]
../django/tests/model_fields/test_durationfield.py,45,[self.objs[0], self.objs[1]]
../django/tests/model_fields/test_durationfield.py,58,instance = list(serializers.deserialize('json', self.test_data))[0].object
../django/tests/model_fields/test_uuid.py,69,[self.objs[1]]
../django/tests/model_fields/test_uuid.py,75,[self.objs[2]]
../django/tests/model_fields/test_uuid.py,88,instance = list(serializers.deserialize('json', self.test_data))[0].object
../django/tests/model_fields/tests.py,361,select={'string_col': 'string'})[0]
../django/tests/model_fields/tests.py,504,self.assertEqual(f.get_choices(True)[0], ('', '---------'))
../django/tests/model_fields/tests.py,557,self.assertEqual(qs[0].value, min_value)
../django/tests/model_fields/tests.py,564,self.assertEqual(qs[0].value, max_value)
../django/tests/model_forms/tests.py,268,self.assertIn('no-field', e.args[0])
../django/tests/model_forms/tests.py,1138,self.assertEqual(c1, Category.objects.all()[0])
../django/tests/model_forms/tests.py,1456,self.assertEqual(gen_one[2], (self.c2.pk, "It's a test"))
../django/tests/model_forms/tests.py,1979,names = [p[1] for p in form['path'].field.choices]
../django/tests/model_forms/tests.py,2260,self.assertQuerysetEqual(field.clean([86]), ['Apple'])
../django/tests/model_formsets/test_uuid.py,16,self.assertIsNone(formset.forms[0].fields['parent'].initial)
../django/tests/model_formsets/tests.py,154,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,156,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,158,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,192,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,194,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,196,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,216,author3 = saved[0]
../django/tests/model_formsets/tests.py,230,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,233,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,236,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,239,self.assertHTMLEqual(formset.forms[3].as_p(),
../django/tests/model_formsets/tests.py,290,self.assertEqual(saved[0], Author.objects.get(name='Walt Whitman'))
../django/tests/model_formsets/tests.py,326,self.assertQuerysetEqual(instances[0].authors.all(), [
../django/tests/model_formsets/tests.py,456,self.assertNotIn("subtitle", formset.forms[0].fields)
../django/tests/model_formsets/tests.py,460,self.assertNotIn("subtitle", formset.forms[0].fields)
../django/tests/model_formsets/tests.py,483,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,506,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,509,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,538,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,540,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,542,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,572,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,574,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,576,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,636,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,638,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,651,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,683,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,774,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,776,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,778,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,780,self.assertHTMLEqual(formset.forms[3].as_p(),
../django/tests/model_formsets/tests.py,782,self.assertHTMLEqual(formset.forms[4].as_p(),
../django/tests/model_formsets/tests.py,803,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,805,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,807,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,851,poem = formset.save()[0]
../django/tests/model_formsets/tests.py,866,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,877,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,879,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,901,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,904,self.assertHTMLEqual(formset.forms[1].as_p(),
../django/tests/model_formsets/tests.py,906,self.assertHTMLEqual(formset.forms[2].as_p(),
../django/tests/model_formsets/tests.py,932,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,947,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,968,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,997,self.assertHTMLEqual(formset.forms[0].as_p(),
../django/tests/model_formsets/tests.py,1146,form = formset.forms[0]
../django/tests/model_formsets/tests.py,1230,self.assertEqual(sorted(FormSet().forms[0].fields.keys()), ['restaurant', 'tacos_are_yummy'])
../django/tests/model_formsets/tests.py,1246,self.assertFalse(formset.extra_forms[0].has_changed())
../django/tests/model_formsets/tests.py,1262,self.assertFalse(formset.extra_forms[0].has_changed())
../django/tests/model_formsets/tests.py,1320,'book_set-0-id': str(book_ids[0]),
../django/tests/model_formsets/tests.py,1324,'book_set-1-id': str(book_ids[1]),
../django/tests/model_formsets_regress/tests.py,51,self.assertEqual(usersite[0]['data'], 10)
../django/tests/model_formsets_regress/tests.py,52,self.assertEqual(usersite[0]['user_id'], 'apollo13')
../django/tests/model_formsets_regress/tests.py,61,'usersite_set-0-id': six.text_type(usersite[0]['id']),
../django/tests/model_formsets_regress/tests.py,69,self.assertEqual(usersite[0]['data'], 11)
../django/tests/model_formsets_regress/tests.py,70,self.assertEqual(usersite[0]['user_id'], 'apollo13')
../django/tests/model_formsets_regress/tests.py,79,'usersite_set-0-id': six.text_type(usersite[0]['id']),
../django/tests/model_formsets_regress/tests.py,89,self.assertEqual(usersite[0]['data'], 11)
../django/tests/model_formsets_regress/tests.py,90,self.assertEqual(usersite[0]['user_id'], 'apollo13')
../django/tests/model_formsets_regress/tests.py,91,self.assertEqual(usersite[1]['data'], 42)
../django/tests/model_formsets_regress/tests.py,92,self.assertEqual(usersite[1]['user_id'], 'apollo13')
../django/tests/model_formsets_regress/tests.py,125,self.assertEqual(manager[0]['name'], 'Guido Van Rossum')
../django/tests/model_formsets_regress/tests.py,134,'manager_set-0-id': six.text_type(manager[0]['id']),
../django/tests/model_formsets_regress/tests.py,141,self.assertEqual(manager[0]['name'], 'Terry Gilliam')
../django/tests/model_formsets_regress/tests.py,150,'manager_set-0-id': six.text_type(manager[0]['id']),
../django/tests/model_formsets_regress/tests.py,158,self.assertEqual(manager[0]['name'], 'John Cleese')
../django/tests/model_formsets_regress/tests.py,159,self.assertEqual(manager[1]['name'], 'Terry Gilliam')
../django/tests/model_formsets_regress/tests.py,175,self.assertEqual(formset[0].instance.user_id, "guido")
../django/tests/model_formsets_regress/tests.py,192,self.assertEqual(formset[0].instance.profile_id, 1)
../django/tests/model_formsets_regress/tests.py,251,self.assertEqual(formset.forms[0].initial['data'], 7)
../django/tests/model_formsets_regress/tests.py,252,self.assertEqual(formset.extra_forms[0].initial['data'], 41)
../django/tests/model_formsets_regress/tests.py,253,self.assertIn('value="42"', formset.extra_forms[1].as_p())
../django/tests/model_formsets_regress/tests.py,286,self.assertEqual(formset.forms[0].initial['username'], "bibi")
../django/tests/model_formsets_regress/tests.py,287,self.assertEqual(formset.extra_forms[0].initial['username'], "apollo11")
../django/tests/model_formsets_regress/tests.py,288,self.assertIn('value="apollo12"', formset.extra_forms[1].as_p())
../django/tests/model_formsets_regress/tests.py,335,form = Formset().forms[0]
../django/tests/model_formsets_regress/tests.py,343,form = Formset().forms[0]
../django/tests/model_inheritance/tests.py,115,expected_sql = captured_queries[0]['sql']
../django/tests/model_inheritance/tests.py,309,2, lambda: ItalianRestaurant.objects.all()[0].chef
../django/tests/model_inheritance/tests.py,312,1, lambda: ItalianRestaurant.objects.select_related("chef")[0].chef
../django/tests/model_inheritance/tests.py,328,self.assertTrue(objs[1].italianrestaurant.serves_gnocchi)
../django/tests/model_inheritance/tests.py,331,self.assertEqual(qs[0].name, 'Demon Dogs')
../django/tests/model_inheritance/tests.py,332,self.assertEqual(qs[0].rating, 2)
../django/tests/model_inheritance/tests.py,333,self.assertEqual(qs[1].italianrestaurant.name, 'Ristorante Miron')
../django/tests/model_inheritance/tests.py,334,self.assertEqual(qs[1].italianrestaurant.rating, 4)
../django/tests/model_inheritance_regress/tests.py,96,self.assertEqual(places[0].name, 'Derelict lot')
../django/tests/model_inheritance_regress/tests.py,97,self.assertEqual(places[1].name, "Guido's All New House of Pasta")
../django/tests/model_inheritance_regress/tests.py,162,ident = ItalianRestaurant.objects.all()[0].id
../django/tests/model_inheritance_regress/tests.py,268,sql = qs.query.get_compiler(qs.db).as_sql()[0]
../django/tests/model_inheritance_regress/tests.py,469,p = Place.objects.all().select_related('restaurant')[0]
../django/tests/model_inheritance_regress/tests.py,491,jane = Supplier.objects.order_by("name").select_related("restaurant")[0]
../django/tests/model_meta/test_legacy.py,35,key_name = lambda self, r: r[0]
../django/tests/model_meta/test_legacy.py,120,self.assertIsInstance(field_info[0], CharField)
../django/tests/model_meta/test_legacy.py,125,self.assertIsInstance(field_info[0], related.ManyToManyField)
../django/tests/model_meta/test_legacy.py,130,self.assertTrue(field_info[0].auto_created)
../django/tests/model_meta/test_legacy.py,135,self.assertTrue(field_info[0].auto_created)
../django/tests/model_meta/test_legacy.py,140,self.assertIsInstance(field_info[0], GenericRelation)
../django/tests/model_meta/tests.py,104,key_name = lambda self, r: r[0]
../django/tests/model_meta/tests.py,166,self.assertIsInstance(field_info[0], CharField)
../django/tests/model_meta/tests.py,171,self.assertIsInstance(field_info[0], related.ManyToManyField)
../django/tests/model_meta/tests.py,176,self.assertIsInstance(field_info[0], related.ForeignObjectRel)
../django/tests/model_meta/tests.py,181,self.assertIsInstance(field_info[0], related.ForeignObjectRel)
../django/tests/model_meta/tests.py,186,self.assertIsInstance(field_info[0], GenericRelation)
../django/tests/model_meta/tests.py,224,self.assertTrue(self.all_models[0]._meta._relation_tree)
../django/tests/model_options/test_tablespaces.py,16,return editor.collected_sql[0]
../django/tests/model_package/tests.py,53,Article.publications.through._meta.fields[1].name, 'article'
../django/tests/model_package/tests.py,56,Article.publications.through._meta.fields[1].get_attname_column(),
../django/tests/model_package/tests.py,60,Article.publications.through._meta.fields[2].name, 'publication'
../django/tests/model_package/tests.py,63,Article.publications.through._meta.fields[2].get_attname_column(),
../django/tests/model_regress/test_pickle.py,91,tests_path = os.path.split(model_regress_path)[0]
../django/tests/model_regress/tests.py,40,query.insert_values([Party._meta.fields[0]], [], raw=False)
../django/tests/model_regress/tests.py,152,p = Party.objects.filter(when__month=1)[0]
../django/tests/modeladmin/tests.py,221,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/modeladmin/tests.py,267,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/modeladmin/tests.py,341,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/modeladmin/tests.py,410,fieldsets = list(inline_instances[0].get_fieldsets(request))
../django/tests/modeladmin/tests.py,411,self.assertEqual(fieldsets[0][1]['fields'], ['main_band', 'opening_band', 'day', 'transport'])
../django/tests/modeladmin/tests.py,412,fieldsets = list(inline_instances[0].get_fieldsets(request, inline_instances[0].model))
../django/tests/modeladmin/tests.py,413,self.assertEqual(fieldsets[0][1]['fields'], ['day'])
../django/tests/modeladmin/tests.py,535,list(list(ma.get_formsets_with_inlines(request))[0][0]().forms[0].fields),
../django/tests/modeladmin/tests.py,563,error = errors[0]
../django/tests/modeladmin/tests.py,592,("The value of 'raw_id_fields[0]' refers to 'non_existent_field', "
../django/tests/modeladmin/tests.py,602,"The value of 'raw_id_fields[0]' must be a ForeignKey or ManyToManyField.",
../django/tests/modeladmin/tests.py,636,"The value of 'fieldsets[0]' must be a list or tuple.",
../django/tests/modeladmin/tests.py,645,"The value of 'fieldsets[0]' must be of length 2.",
../django/tests/modeladmin/tests.py,654,"The value of 'fieldsets[0][1]' must be a dictionary.",
../django/tests/modeladmin/tests.py,663,"The value of 'fieldsets[0][1]' must contain the key 'fields'.",
../django/tests/modeladmin/tests.py,687,"There are duplicate field(s) in 'fieldsets[0][1]'.",
../django/tests/modeladmin/tests.py,785,("The value of 'filter_vertical[0]' refers to 'non_existent_field', "
../django/tests/modeladmin/tests.py,795,"The value of 'filter_vertical[0]' must be a ManyToManyField.",
../django/tests/modeladmin/tests.py,822,("The value of 'filter_horizontal[0]' refers to 'non_existent_field', "
../django/tests/modeladmin/tests.py,832,"The value of 'filter_horizontal[0]' must be a ManyToManyField.",
../django/tests/modeladmin/tests.py,918,("The value of 'prepopulated_fields[\"slug\"][0]' refers to 'non_existent_field', "
../django/tests/modeladmin/tests.py,957,("The value of 'list_display[0]' refers to 'non_existent_field', which is not a callable, an attribute "
../django/tests/modeladmin/tests.py,967,"The value of 'list_display[0]' must not be a ManyToManyField.",
../django/tests/modeladmin/tests.py,999,"The value of 'list_display_links[0]' refers to 'non_existent_field', which is not defined in 'list_display'.",
../django/tests/modeladmin/tests.py,1008,"The value of 'list_display_links[0]' refers to 'name', which is not defined in 'list_display'.",
../django/tests/modeladmin/tests.py,1047,"The value of 'list_filter[0]' refers to 'non_existent_field', which does not refer to a Field.",
../django/tests/modeladmin/tests.py,1059,"The value of 'list_filter[0]' must inherit from 'ListFilter'.",
../django/tests/modeladmin/tests.py,1071,"The value of 'list_filter[0][1]' must inherit from 'FieldListFilter'.",
../django/tests/modeladmin/tests.py,1090,"The value of 'list_filter[0][1]' must inherit from 'FieldListFilter'.",
../django/tests/modeladmin/tests.py,1099,"The value of 'list_filter[0]' must not inherit from 'FieldListFilter'.",
../django/tests/modeladmin/tests.py,1214,"The value of 'ordering[0]' refers to 'non_existent_field', which is not an attribute of 'modeladmin.ValidationTestModel'.",
../django/tests/multiple_database/tests.py,158,self.assertEqual([o.year for o in years], [2009])
../django/tests/multiple_database/tests.py,163,self.assertEqual([o.month for o in months], [5])
../django/tests/null_fk/tests.py,39,self.assertIsNone(Comment.objects.select_related('post').filter(post__isnull=True)[0].post)
../django/tests/order_with_respect_to/tests.py,33,a1 = Answer.objects.filter(question=self.q1)[0]
../django/tests/order_with_respect_to/tests.py,43,a1 = Answer.objects.filter(question=self.q1)[1]
../django/tests/ordering/tests.py,43,self.assertEqual(Article.objects.all()[0], self.a4)
../django/tests/pagination/tests.py,49,ten = nine + [10]
../django/tests/pagination/tests.py,50,eleven = ten + [11]
../django/tests/pagination/tests.py,62,((ten, 4, 6, False), (10, 1, [1])),
../django/tests/pagination/tests.py,68,((ten, 4, 6, True), (10, 1, [1])),
../django/tests/pagination/tests.py,70,(([1], 4, 0, False), (1, 1, [1])),
../django/tests/pagination/tests.py,71,(([1], 4, 1, False), (1, 1, [1])),
../django/tests/pagination/tests.py,72,(([1], 4, 2, False), (1, 1, [1])),
../django/tests/pagination/tests.py,74,(([1], 4, 0, True), (1, 1, [1])),
../django/tests/pagination/tests.py,75,(([1], 4, 1, True), (1, 1, [1])),
../django/tests/pagination/tests.py,76,(([1], 4, 2, True), (1, 1, [1])),
../django/tests/pagination/tests.py,82,(([], 4, 0, True), (0, 1, [1])),
../django/tests/pagination/tests.py,83,(([], 4, 1, True), (0, 1, [1])),
../django/tests/pagination/tests.py,84,(([], 4, 2, True), (0, 1, [1])),
../django/tests/pagination/tests.py,86,(([], 1, 0, True), (0, 1, [1])),
../django/tests/pagination/tests.py,88,(([1], 2, 0, True), (1, 1, [1])),
../django/tests/pagination/tests.py,89,((nine, 10, 0, True), (9, 1, [1])),
../django/tests/pagination/tests.py,91,(([1], 1, 0, True), (1, 1, [1])),
../django/tests/pagination/tests.py,92,(([1, 2], 2, 0, True), (2, 1, [1])),
../django/tests/pagination/tests.py,93,((ten, 10, 0, True), (10, 1, [1])),
../django/tests/pagination/tests.py,99,(([1, 2], 1, 1, True), (2, 1, [1])),
../django/tests/pagination/tests.py,100,(([1, 2, 3], 2, 1, True), (3, 1, [1])),
../django/tests/pagination/tests.py,101,((eleven, 10, 1, True), (11, 1, [1])),
../django/tests/pagination/tests.py,189,(([1], 4, 0, False), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,190,(([1], 4, 1, False), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,191,(([1], 4, 2, False), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,193,(([1], 4, 0, True), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,194,(([1], 4, 1, True), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,195,(([1], 4, 2, True), (1, 1), (1, 1)),
../django/tests/pagination/tests.py,304,self.assertEqual(p[0], Article.objects.get(headline='Article 1'))
../django/tests/postgres_tests/test_aggregates.py,141,self.assertIsInstance(func.source_expressions[0], Value)
../django/tests/postgres_tests/test_aggregates.py,142,self.assertIsInstance(func.source_expressions[1], F)
../django/tests/postgres_tests/test_array.py,63,self.assertEqual(loaded.field, [1])
../django/tests/postgres_tests/test_array.py,105,NullableIntegerArrayModel.objects.create(field=[1]),
../django/tests/postgres_tests/test_array.py,106,NullableIntegerArrayModel.objects.create(field=[2]),
../django/tests/postgres_tests/test_array.py,114,NullableIntegerArrayModel.objects.filter(field__exact=[1]),
../django/tests/postgres_tests/test_array.py,126,NullableIntegerArrayModel.objects.filter(field__gt=[0]),
../django/tests/postgres_tests/test_array.py,132,NullableIntegerArrayModel.objects.filter(field__lt=[2]),
../django/tests/postgres_tests/test_array.py,138,NullableIntegerArrayModel.objects.filter(field__in=[[1], [2]]),
../django/tests/postgres_tests/test_array.py,150,NullableIntegerArrayModel.objects.filter(field__contains=[2]),
../django/tests/postgres_tests/test_array.py,214,NullableIntegerArrayModel.objects.filter(field__0_1=[2]),
../django/tests/postgres_tests/test_array.py,227,NestedIntegerArrayModel.objects.filter(field__0__0_1=[1]),
../django/tests/postgres_tests/test_array.py,239,self.assertEqual(errors[0].id, 'postgres.E001')
../django/tests/postgres_tests/test_array.py,246,self.assertEqual(errors[0].id, 'postgres.E002')
../django/tests/postgres_tests/test_array.py,306,instance = list(serializers.deserialize('json', self.test_data))[0].object
../django/tests/postgres_tests/test_array.py,329,self.assertEqual(cm.exception.messages[0], 'List contains 4 items, it should contain no more than 3.')
../django/tests/postgres_tests/test_array.py,337,self.assertEqual(cm.exception.messages[0], 'Nested arrays must have the same length.')
../django/tests/postgres_tests/test_array.py,343,field.clean([0], None)
../django/tests/postgres_tests/test_array.py,345,self.assertEqual(cm.exception.messages[0], 'Item 0 in the array did not validate: Ensure this value is greater than or equal to 1.')
../django/tests/postgres_tests/test_array.py,359,self.assertEqual(cm.exception.messages[0], 'Item 0 in the array did not validate: Enter a whole number.')
../django/tests/postgres_tests/test_array.py,365,self.assertEqual(cm.exception.messages[0], 'Item 2 in the array did not validate: This field is required.')
../django/tests/postgres_tests/test_array.py,371,self.assertEqual(cm.exception.messages[0], 'Item 0 in the array did not validate: Enter a valid value.')
../django/tests/postgres_tests/test_array.py,392,self.assertEqual(cm.exception.messages[0], 'List contains 3 items, it should contain no more than 2.')
../django/tests/postgres_tests/test_array.py,398,self.assertEqual(cm.exception.messages[0], 'List contains 3 items, it should contain no fewer than 4.')
../django/tests/postgres_tests/test_array.py,404,self.assertEqual(cm.exception.messages[0], 'This field is required.')
../django/tests/postgres_tests/test_hstore.py,138,instance = list(serializers.deserialize('json', self.test_data))[0].object
../django/tests/postgres_tests/test_hstore.py,163,self.assertEqual(cm.exception.messages[0], 'Could not load JSON data.')
../django/tests/postgres_tests/test_hstore.py,192,self.assertEqual(cm.exception.messages[0], 'Some keys were missing: b')
../django/tests/postgres_tests/test_hstore.py,203,self.assertEqual(cm.exception.messages[0], 'Some unknown keys were provided: c')
../django/tests/postgres_tests/test_hstore.py,213,self.assertEqual(cm.exception.messages[0], 'Foobar')
../django/tests/postgres_tests/test_hstore.py,217,self.assertEqual(cm.exception.messages[0], 'Some unknown keys were provided: c')
../django/tests/postgres_tests/test_ranges.py,112,[self.objs[0]],
../django/tests/postgres_tests/test_ranges.py,118,[self.objs[4]],
../django/tests/postgres_tests/test_ranges.py,124,[self.objs[3]],
../django/tests/postgres_tests/test_ranges.py,130,[self.objs[0], self.objs[1]],
../django/tests/postgres_tests/test_ranges.py,136,[self.objs[0]],
../django/tests/postgres_tests/test_ranges.py,142,[self.objs[0], self.objs[1], self.objs[3]],
../django/tests/postgres_tests/test_ranges.py,148,[self.objs[0], self.objs[1]],
../django/tests/postgres_tests/test_ranges.py,154,[self.objs[2]],
../django/tests/postgres_tests/test_ranges.py,166,[self.objs[1]],
../django/tests/postgres_tests/test_ranges.py,172,[self.objs[0], self.objs[2]],
../django/tests/postgres_tests/test_ranges.py,178,[self.objs[1], self.objs[2]],
../django/tests/postgres_tests/test_ranges.py,184,[self.objs[0]],
../django/tests/postgres_tests/test_ranges.py,190,[self.objs[2]],
../django/tests/postgres_tests/test_ranges.py,196,[self.objs[0], self.objs[1]],
../django/tests/postgres_tests/test_ranges.py,213,dumped[0]['fields']['ints'] = json.loads(dumped[0]['fields']['ints'])
../django/tests/postgres_tests/test_ranges.py,215,check[0]['fields']['ints'] = json.loads(check[0]['fields']['ints'])
../django/tests/postgres_tests/test_ranges.py,219,instance = list(serializers.deserialize('json', self.test_data))[0].object
../django/tests/postgres_tests/test_ranges.py,232,self.assertEqual(cm.exception.messages[0], 'Ensure that this range is completely less than or equal to 5.')
../django/tests/postgres_tests/test_ranges.py,240,self.assertEqual(cm.exception.messages[0], 'Ensure that this range is completely greater than or equal to 5.')
../django/tests/postgres_tests/test_ranges.py,325,self.assertEqual(cm.exception.messages[0], 'The start of the range must not exceed the end of the range.')
../django/tests/postgres_tests/test_ranges.py,337,self.assertEqual(cm.exception.messages[0], 'Enter two whole numbers.')
../django/tests/postgres_tests/test_ranges.py,344,self.assertEqual(cm.exception.messages[0], 'Enter a whole number.')
../django/tests/postgres_tests/test_ranges.py,350,self.assertEqual(cm.exception.messages[0], 'Enter a whole number.')
../django/tests/postgres_tests/test_ranges.py,356,self.assertEqual(cm.exception.messages[0], 'This field is required.')
../django/tests/postgres_tests/test_ranges.py,364,self.assertEqual(cm.exception.messages[0], 'The start of the range must not exceed the end of the range.')
../django/tests/postgres_tests/test_ranges.py,376,self.assertEqual(cm.exception.messages[0], 'Enter two numbers.')
../django/tests/postgres_tests/test_ranges.py,383,self.assertEqual(cm.exception.messages[0], 'Enter a number.')
../django/tests/postgres_tests/test_ranges.py,389,self.assertEqual(cm.exception.messages[0], 'Enter a number.')
../django/tests/postgres_tests/test_ranges.py,395,self.assertEqual(cm.exception.messages[0], 'This field is required.')
../django/tests/postgres_tests/test_ranges.py,403,self.assertEqual(cm.exception.messages[0], 'The start of the range must not exceed the end of the range.')
../django/tests/postgres_tests/test_ranges.py,415,self.assertEqual(cm.exception.messages[0], 'Enter two valid dates.')
../django/tests/postgres_tests/test_ranges.py,422,self.assertEqual(cm.exception.messages[0], 'Enter a valid date.')
../django/tests/postgres_tests/test_ranges.py,428,self.assertEqual(cm.exception.messages[0], 'Enter a valid date.')
../django/tests/postgres_tests/test_ranges.py,434,self.assertEqual(cm.exception.messages[0], 'This field is required.')
../django/tests/postgres_tests/test_ranges.py,442,self.assertEqual(cm.exception.messages[0], 'The start of the range must not exceed the end of the range.')
../django/tests/postgres_tests/test_ranges.py,454,self.assertEqual(cm.exception.messages[0], 'Enter two valid date/times.')
../django/tests/postgres_tests/test_ranges.py,461,self.assertEqual(cm.exception.messages[0], 'Enter a valid date/time.')
../django/tests/postgres_tests/test_ranges.py,467,self.assertEqual(cm.exception.messages[0], 'Enter a valid date/time.')
../django/tests/postgres_tests/test_ranges.py,473,self.assertEqual(cm.exception.messages[0], 'This field is required.')
../django/tests/prefetch_related/models.py,202,return sorted(self.houses.all(), key=lambda house: -house.rooms.count())[0]
../django/tests/prefetch_related/tests.py,78,book = Book.objects.prefetch_related('bookwithyear').all()[0]
../django/tests/prefetch_related/tests.py,118,self.assertIn(qs[0], qs)
../django/tests/prefetch_related/tests.py,251,related = getattr(obj, part[0])
../django/tests/prefetch_related/tests.py,301,related_objs_from_traverse = [[inner[0] for inner in o[1]]
../django/tests/prefetch_related/tests.py,542,self.assertEqual(len(lst2[0].houses_lst), 1)
../django/tests/prefetch_related/tests.py,543,self.assertEqual(lst2[0].houses_lst[0], self.house1)
../django/tests/prefetch_related/tests.py,544,self.assertEqual(len(lst2[1].houses_lst), 1)
../django/tests/prefetch_related/tests.py,545,self.assertEqual(lst2[1].houses_lst[0], self.house3)
../django/tests/prefetch_related/tests.py,579,self.assertEqual(len(lst2[0].houses_lst[0].rooms_lst), 2)
../django/tests/prefetch_related/tests.py,580,self.assertEqual(lst2[0].houses_lst[0].rooms_lst[0], self.room1_1)
../django/tests/prefetch_related/tests.py,581,self.assertEqual(lst2[0].houses_lst[0].rooms_lst[1], self.room1_2)
../django/tests/prefetch_related/tests.py,582,self.assertEqual(lst2[0].houses_lst[0].rooms_lst[0].main_room_of, self.house1)
../django/tests/prefetch_related/tests.py,583,self.assertEqual(len(lst2[1].houses_lst), 0)
../django/tests/prefetch_related/tests.py,756,bookmark = Bookmark.objects.filter(pk=b.pk).prefetch_related('tags', 'favorite_tags')[0]
../django/tests/prefetch_related/tests.py,1161,prefetcher = get_prefetcher(self.rooms[0], 'house')[0]
../django/tests/prefetch_related/tests.py,1162,queryset = prefetcher.get_prefetch_queryset(list(Room.objects.all()))[0]
../django/tests/proxy_models/tests.py,354,associated_bug=ProxyProxyBug.objects.all()[0])
../django/tests/proxy_models/tests.py,417,tracker_user = TrackerUser.objects.all()[0]
../django/tests/proxy_models/tests.py,418,base_user = BaseUser.objects.all()[0]
../django/tests/proxy_models/tests.py,419,issue = Issue.objects.all()[0]
../django/tests/proxy_models/tests.py,444,delete_str = response.context['deleted_objects'][0]
../django/tests/proxy_models/tests.py,447,delete_str = response.context['deleted_objects'][0]
../django/tests/queries/tests.py,503,self.assertTrue(repr(qs[0].note), '<Note: n2>')
../django/tests/queries/tests.py,504,self.assertEqual(repr(qs[0].creator.extra.note), '<Note: n1>')
../django/tests/queries/tests.py,530,self.assertIn('note_id', ExtraInfo.objects.values()[0])
../django/tests/queries/tests.py,559,d = Item.objects.extra(select=OrderedDict(s), select_params=params).values('a', 'b')[0]
../django/tests/queries/tests.py,600,self.assertEqual(Item.objects.datetimes('created', 'day')[0], datetime.datetime(2007, 12, 19, 0, 0))
../django/tests/queries/tests.py,682,query = qs.query.get_compiler(qs.db).as_sql()[0]
../django/tests/queries/tests.py,685,query2.get_compiler(qs.db).as_sql()[0],
../django/tests/queries/tests.py,791,n_obj = Note.objects.all()[0]
../django/tests/queries/tests.py,859,first = qs[0]
../django/tests/queries/tests.py,1379,self.assertEqual(combined[0].name, 'a1')
../django/tests/queries/tests.py,1417,obj = m1.children.select_related("person__details")[0]
../django/tests/queries/tests.py,1424,self.assertIn('ORDER BY', qs.query.get_compiler(qs.db).as_sql()[0])
../django/tests/queries/tests.py,1656,r = Ranking.objects.filter(author__name='a1')[0]
../django/tests/queries/tests.py,1688,Note.objects.extra(select={'foo': "'%%s'"})[0].foo,
../django/tests/queries/tests.py,1692,Note.objects.extra(select={'foo': "'%%s bar %%s'"})[0].foo,
../django/tests/queries/tests.py,1696,Note.objects.extra(select={'foo': "'bar %%s'"})[0].foo,
../django/tests/queries/tests.py,1829,qs.query.get_compiler(qs.db).as_sql()[0].count('SELECT'),
../django/tests/queries/tests.py,1945,qstr = captured_queries[0]
../django/tests/queries/tests.py,2072,self.assertEqual(ExtraInfo.objects.filter(note__in=n_list)[0].info, 'good')
../django/tests/queries/tests.py,2144,self.assertValueQuerysetEqual(qs, [72])
../django/tests/queries/tests.py,2184,select_params=[1],
../django/tests/queries/tests.py,2212,self.assertQuerysetEqual(qs, [72], self.identity)
../django/tests/queries/tests.py,2235,self.assertEqual(self.get_ordered_articles()[0].name, 'Article 1')
../django/tests/queries/tests.py,2495,sql = query.get_compiler(DEFAULT_DB_ALIAS).as_sql()[0]
../django/tests/queries/tests.py,2543,b_info = [('un', 1, objectas[0]), ('deux', 2, objectas[0]), ('trois', 3, objectas[2])]
../django/tests/queries/tests.py,2548,c_info = [('ein', objectas[2], objectbs[2]), ('zwei', objectas[1], objectbs[1])]
../django/tests/queries/tests.py,2624,alex = Person.objects.get_or_create(name='Alex')[0]
../django/tests/queries/tests.py,2625,jane = Person.objects.get_or_create(name='Jane')[0]
../django/tests/queries/tests.py,2627,oracle = Company.objects.get_or_create(name='Oracle')[0]
../django/tests/queries/tests.py,2628,google = Company.objects.get_or_create(name='Google')[0]
../django/tests/queries/tests.py,2629,microsoft = Company.objects.get_or_create(name='Microsoft')[0]
../django/tests/queries/tests.py,2630,intel = Company.objects.get_or_create(name='Intel')[0]
../django/tests/queries/tests.py,3147,self.assertEqual(qs[0].a, fk1)
../django/tests/queries/tests.py,3148,self.assertIs(qs[0].b, None)
../django/tests/queries/tests.py,3568,self.assertIs(qs[0].parent.parent_bool, True)
../django/tests/queryset_pickle/tests.py,72,original = Container.SomeModel.objects.defer('somefield')[0]
../django/tests/raw_query/tests.py,143,author = Author.objects.all()[2]
../django/tests/raw_query/tests.py,158,author = Author.objects.all()[2]
../django/tests/raw_query/tests.py,251,third_author = Author.objects.raw(query)[2]
../django/tests/reserved_names/tests.py,51,self.assertEqual(Thing.objects.filter(where__month=1)[0].when, 'a')
../django/tests/schema/tests.py,90,d[0]: (connection.introspection.get_field_type(d[1], d), d)
../django/tests/schema/tests.py,99,columns[name] = (type[0], desc)
../django/tests/schema/tests.py,281,self.assertEqual(columns['age'][0], "IntegerField")
../django/tests/schema/tests.py,282,self.assertEqual(columns['age'][1][6], True)
../django/tests/schema/tests.py,304,self.assertEqual(columns['surname'][0], "CharField")
../django/tests/schema/tests.py,305,self.assertEqual(columns['surname'][1][6],
../django/tests/schema/tests.py,330,field_type = columns['awesome'][0]
../django/tests/schema/tests.py,384,self.assertIn(columns['bits'][0], ("BinaryField", "TextField"))
../django/tests/schema/tests.py,395,self.assertEqual(columns['name'][0], "CharField")
../django/tests/schema/tests.py,396,self.assertEqual(bool(columns['name'][1][6]), bool(connection.features.interprets_empty_strings_as_nulls))
../django/tests/schema/tests.py,405,self.assertEqual(columns['name'][0], "TextField")
../django/tests/schema/tests.py,406,self.assertEqual(columns['name'][1][6], True)
../django/tests/schema/tests.py,414,self.assertEqual(columns['name'][0], "TextField")
../django/tests/schema/tests.py,415,self.assertEqual(bool(columns['name'][1][6]), bool(connection.features.interprets_empty_strings_as_nulls))
../django/tests/schema/tests.py,471,self.assertTrue(columns['height'][1][6])
../django/tests/schema/tests.py,486,self.assertFalse(columns['height'][1][6])
../django/tests/schema/tests.py,532,self.assertTrue(columns['height'][1][6])
../django/tests/schema/tests.py,541,self.assertFalse(columns['height'][1][6])
../django/tests/schema/tests.py,554,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,571,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,631,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,654,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,678,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,700,self.assertEqual(columns['author_id'][0], "IntegerField")
../django/tests/schema/tests.py,741,self.assertEqual(columns['name'][0], "CharField")
../django/tests/schema/tests.py,751,self.assertEqual(columns['display_name'][0], "CharField")
../django/tests/schema/tests.py,779,self.assertEqual(columns['tagm2mtest_id'][0], "IntegerField")
../django/tests/schema/tests.py,818,self.assertEqual(columns['book_id'][0], "IntegerField")
../django/tests/schema/tests.py,819,self.assertEqual(columns['tag_id'][0], "IntegerField")
../django/tests/schema/tests.py,858,self.assertEqual(columns['tagm2mtest_id'][0], "IntegerField")
../django/tests/schema/tests.py,1199,self.assertEqual(columns['name'][0], "CharField")
../django/tests/schema/tests.py,1206,self.assertEqual(columns['name'][0], "CharField")
../django/tests/schema/tests.py,1213,self.assertEqual(columns['name'][0], "CharField")
../django/tests/schema/tests.py,1437,item = cursor.fetchall()[0]
../django/tests/schema/tests.py,1438,self.assertEqual(item[0], None if connection.features.interprets_empty_strings_as_nulls else '')
../django/tests/schema/tests.py,1457,item = cursor.fetchall()[0]
../django/tests/schema/tests.py,1458,self.assertEqual(item[0], 'surname default')
../django/tests/select_for_update/tests.py,158,people[0].name = 'Fred'
../django/tests/select_for_update/tests.py,159,people[0].save()
../django/tests/select_related/tests.py,105,.extra(select={'a': 'select_related_species.id + 10'})[0])
../django/tests/select_related/tests.py,162,obj = queryset[0]
../django/tests/select_related_regress/tests.py,68,e_related = Enrollment.objects.all().select_related()[0]
../django/tests/select_related_regress/tests.py,87,self.assertEqual(Client.objects.select_related()[0].status, active)
../django/tests/select_related_regress/tests.py,88,self.assertEqual(Client.objects.select_related('state')[0].status, active)
../django/tests/select_related_regress/tests.py,89,self.assertEqual(Client.objects.select_related('state', 'status')[0].status, active)
../django/tests/select_related_regress/tests.py,90,self.assertEqual(Client.objects.select_related('state__country')[0].status, active)
../django/tests/select_related_regress/tests.py,91,self.assertEqual(Client.objects.select_related('state__country', 'status')[0].status, active)
../django/tests/select_related_regress/tests.py,92,self.assertEqual(Client.objects.select_related('status')[0].status, active)
../django/tests/select_related_regress/tests.py,154,self.assertEqual(qs[0].state, wa)
../django/tests/select_related_regress/tests.py,161,self.assertIs(qs[0].state, None)
../django/tests/select_related_regress/tests.py,162,self.assertEqual(qs[1].state, wa)
../django/tests/select_related_regress/tests.py,171,self.assertEqual(Chick.objects.all()[0].mother.name, 'Hen')
../django/tests/select_related_regress/tests.py,172,self.assertEqual(Chick.objects.select_related()[0].mother.name, 'Hen')
../django/tests/select_related_regress/tests.py,183,qs_c = results[0]
../django/tests/serializers/tests.py,184,self.assertEqual(self._get_field_values(serial_str, "title")[0], movie_title)
../django/tests/serializers/tests.py,185,self.assertEqual(self._get_field_values(serial_str, "actor")[0], actor_name)
../django/tests/serializers/tests.py,188,mv_obj = obj_list[0].object
../django/tests/serializers/tests.py,211,pk_value = self._get_pk_values(serial_str)[0]
../django/tests/serializers/tests.py,215,serial_str))[0].object
../django/tests/serializers/tests.py,225,self.assertEqual(deserial_objs[0].object.score, Approximate(3.4, places=1))
../django/tests/serializers/tests.py,239,self.assertEqual(team[0], team_str)
../django/tests/serializers/tests.py,242,self.assertEqual(deserial_objs[0].object.team.to_string(),
../django/tests/serializers/tests.py,256,self.assertEqual(date_values[0].replace('T', ' '), "0001-02-03 04:05:06")
../django/tests/serializers/tests.py,277,'first_category_pk': categories[0],
../django/tests/serializers/tests.py,278,'second_category_pk': categories[1],
../django/tests/serializers/tests.py,302,art_obj = Article.objects.all()[0]
../django/tests/serializers/tests.py,624,"categories": [1],
../django/tests/serializers/tests.py,715,categories: [1]
../django/tests/serializers/tests.py,786,categories: [1]
../django/tests/serializers_regress/tests.py,63,instance.data = data[0]
../django/tests/serializers_regress/tests.py,148,testcase.assertEqual(data[0], instance.data)
../django/tests/serializers_regress/tests.py,389,if not (data[0] == data_obj and
../django/tests/serializers_regress/tests.py,390,data[2]._meta.get_field('data').empty_strings_allowed and
../django/tests/serializers_regress/tests.py,391,data[3] is None)]
../django/tests/serializers_regress/tests.py,461,objects.extend(func[0](pk, klass, datum))
../django/tests/serializers_regress/tests.py,479,func[1](self, pk, klass, datum)
../django/tests/serializers_regress/tests.py,493,objects.extend(func[0](pk, klass, datum))
../django/tests/serializers_regress/tests.py,509,func[1](self, pk, klass, datum)
../django/tests/serializers_regress/tests.py,571,self.assertEqual(books[0].object.title, book1['title'])
../django/tests/serializers_regress/tests.py,572,self.assertEqual(books[0].object.pk, adrian.pk)
../django/tests/serializers_regress/tests.py,573,self.assertEqual(books[1].object.title, book2['title'])
../django/tests/serializers_regress/tests.py,574,self.assertEqual(books[1].object.pk, None)
../django/tests/sessions_tests/tests.py,107,self.assertEqual(list(self.session.values()), [1])
../django/tests/sessions_tests/tests.py,127,self.assertEqual(list(i), [1])
../django/tests/sessions_tests/tests.py,296,self.assertIn('corrupted', calls[0])
../django/tests/settings_tests/tests.py,301,self.assertEqual(os.path.splitext(w[0].filename)[0],
../django/tests/settings_tests/tests.py,302,os.path.splitext(__file__)[0])
../django/tests/settings_tests/tests.py,303,self.assertEqual(str(w[0].message),
../django/tests/settings_tests/tests.py,489,force_text(warn[0].message),
../django/tests/staticfiles_tests/tests.py,183,with codecs.open(force_text(lines[0].strip()), "r", "utf-8") as f:
../django/tests/staticfiles_tests/tests.py,195,self.assertIn('project', force_text(lines[1]))
../django/tests/staticfiles_tests/tests.py,196,self.assertIn('apps', force_text(lines[2]))
../django/tests/staticfiles_tests/tests.py,207,self.assertIn('project', force_text(lines[0]))
../django/tests/staticfiles_tests/tests.py,208,self.assertIn('apps', force_text(lines[1]))
../django/tests/staticfiles_tests/tests.py,219,self.assertIn('project', force_text(lines[1]))
../django/tests/staticfiles_tests/tests.py,220,self.assertIn('apps', force_text(lines[2]))
../django/tests/staticfiles_tests/tests.py,221,self.assertIn("Looking in the following locations:", force_text(lines[3]))
../django/tests/staticfiles_tests/tests.py,229,self.assertIn(TEST_SETTINGS['STATICFILES_DIRS'][1][1], searched_locations)
../django/tests/staticfiles_tests/tests.py,230,self.assertIn(TEST_SETTINGS['STATICFILES_DIRS'][0], searched_locations)
../django/tests/staticfiles_tests/tests.py,959,file_mode = os.stat(test_file)[0] & 0o777
../django/tests/staticfiles_tests/tests.py,960,dir_mode = os.stat(test_dir)[0] & 0o777
../django/tests/staticfiles_tests/tests.py,970,file_mode = os.stat(test_file)[0] & 0o777
../django/tests/staticfiles_tests/tests.py,971,dir_mode = os.stat(test_dir)[0] & 0o777
../django/tests/staticfiles_tests/tests.py,982,file_mode = os.stat(test_file)[0] & 0o777
../django/tests/staticfiles_tests/tests.py,983,dir_mode = os.stat(test_dir)[0] & 0o777
../django/tests/syndication_tests/tests.py,58,elem.getElementsByTagName(k)[0].firstChild.wholeText, v)
../django/tests/syndication_tests/tests.py,91,feed = feed_elem[0]
../django/tests/syndication_tests/tests.py,98,chan = chan_elem[0]
../django/tests/syndication_tests/tests.py,124,chan.getElementsByTagName('atom:link')[0].getAttribute('href'),
../django/tests/syndication_tests/tests.py,134,self.assertChildNodeContent(items[0], {
../django/tests/syndication_tests/tests.py,142,self.assertCategories(items[0], ['python', 'testing'])
../django/tests/syndication_tests/tests.py,147,'guid')[0].attributes.get('isPermaLink'))
../django/tests/syndication_tests/tests.py,158,'rss')[0].getElementsByTagName('channel')[0]
../django/tests/syndication_tests/tests.py,162,item.getElementsByTagName('guid')[0].attributes.get(
../django/tests/syndication_tests/tests.py,174,'rss')[0].getElementsByTagName('channel')[0]
../django/tests/syndication_tests/tests.py,178,item.getElementsByTagName('guid')[0].attributes.get(
../django/tests/syndication_tests/tests.py,192,feed = feed_elem[0]
../django/tests/syndication_tests/tests.py,199,chan = chan_elem[0]
../django/tests/syndication_tests/tests.py,211,chan.getElementsByTagName('atom:link')[0].getAttribute('href'),
../django/tests/syndication_tests/tests.py,217,self.assertChildNodeContent(items[0], {
../django/tests/syndication_tests/tests.py,254,summary = entry.getElementsByTagName('summary')[0]
../django/tests/syndication_tests/tests.py,266,published = entries[0].getElementsByTagName('published')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,267,updated = entries[0].getElementsByTagName('updated')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,279,updated = feed.getElementsByTagName('updated')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,289,updated = feed.getElementsByTagName('updated')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,320,summary = entry.getElementsByTagName('summary')[0]
../django/tests/syndication_tests/tests.py,330,link = item.getElementsByTagName('link')[0]
../django/tests/syndication_tests/tests.py,332,title = item.getElementsByTagName('title')[0]
../django/tests/syndication_tests/tests.py,343,updated = doc.getElementsByTagName('updated')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,356,published = doc.getElementsByTagName('published')[0].firstChild.wholeText
../django/tests/syndication_tests/tests.py,396,chan = doc.getElementsByTagName('channel')[0]
../django/tests/syndication_tests/tests.py,398,chan.getElementsByTagName('link')[0].firstChild.wholeText[0:5],
../django/tests/syndication_tests/tests.py,401,atom_link = chan.getElementsByTagName('atom:link')[0]
../django/tests/syndication_tests/tests.py,423,feed = doc.getElementsByTagName('rss')[0]
../django/tests/syndication_tests/tests.py,424,chan = feed.getElementsByTagName('channel')[0]
../django/tests/syndication_tests/tests.py,427,self.assertChildNodeContent(items[0], {
../django/tests/syndication_tests/tests.py,440,feed = doc.getElementsByTagName('rss')[0]
../django/tests/syndication_tests/tests.py,441,chan = feed.getElementsByTagName('channel')[0]
../django/tests/syndication_tests/tests.py,444,self.assertChildNodeContent(items[0], {
../django/tests/template_loader/tests.py,39,e.exception.chain[-1].tried[0][0].template_name,
../django/tests/template_loader/tests.py,68,e.exception.chain[0].tried[0][0].template_name,
../django/tests/template_loader/tests.py,71,self.assertEqual(e.exception.chain[0].backend.name, 'dummy')
../django/tests/template_loader/tests.py,73,e.exception.chain[-1].tried[0][0].template_name,
../django/tests/template_loader/tests.py,104,e.exception.chain[-1].tried[0][0].template_name,
../django/tests/template_loader/tests.py,133,e.exception.chain[0].tried[0][0].template_name,
../django/tests/template_loader/tests.py,136,self.assertEqual(e.exception.chain[0].backend.name, 'dummy')
../django/tests/template_loader/tests.py,138,e.exception.chain[1].tried[0][0].template_name,
../django/tests/template_loader/tests.py,141,self.assertEqual(e.exception.chain[1].backend.name, 'django')
../django/tests/template_loader/tests.py,143,e.exception.chain[2].tried[0][0].template_name,
../django/tests/template_loader/tests.py,146,self.assertEqual(e.exception.chain[2].backend.name, 'dummy')
../django/tests/template_loader/tests.py,148,e.exception.chain[3].tried[0][0].template_name,
../django/tests/template_loader/tests.py,151,self.assertEqual(e.exception.chain[3].backend.name, 'django')
../django/tests/template_tests/test_custom.py,78,t = self.engine.from_string(entry[0])
../django/tests/template_tests/test_custom.py,79,self.assertEqual(t.render(c), entry[1])
../django/tests/template_tests/test_custom.py,82,t = self.engine.from_string("%s as var %%}Result: {{ var }}" % entry[0][0:-2])
../django/tests/template_tests/test_custom.py,83,self.assertEqual(t.render(c), "Result: %s" % entry[1])
../django/tests/template_tests/test_custom.py,100,with self.assertRaisesMessage(TemplateSyntaxError, entry[0]):
../django/tests/template_tests/test_custom.py,101,self.engine.from_string(entry[1])
../django/tests/template_tests/test_custom.py,104,with self.assertRaisesMessage(TemplateSyntaxError, entry[0]):
../django/tests/template_tests/test_custom.py,105,self.engine.from_string("%s as var %%}" % entry[1][0:-2])
../django/tests/template_tests/test_custom.py,163,t = self.engine.from_string(entry[0])
../django/tests/template_tests/test_custom.py,164,self.assertEqual(t.render(c), entry[1])
../django/tests/template_tests/test_custom.py,188,with self.assertRaisesMessage(TemplateSyntaxError, entry[0]):
../django/tests/template_tests/test_custom.py,189,self.engine.from_string(entry[1])
../django/tests/template_tests/test_custom.py,231,t = self.engine.from_string(entry[0])
../django/tests/template_tests/test_custom.py,232,self.assertEqual(t.render(c), entry[1])
../django/tests/template_tests/test_extends.py,40,self.assertEqual(tried[0][0].template_name, 'missing.html')
../django/tests/template_tests/test_extends.py,87,cache = engine.template_loaders[0].get_template_cache
../django/tests/template_tests/test_extends.py,161,cache = engine.template_loaders[0].template_cache
../django/tests/template_tests/test_loaders.py,41,self.assertEqual(template.origin.loader, self.engine.template_loaders[0].loaders[0])
../django/tests/template_tests/test_loaders.py,43,cache = self.engine.template_loaders[0].get_template_cache
../django/tests/template_tests/test_loaders.py,50,self.assertEqual(template.origin.loader, self.engine.template_loaders[0].loaders[0])
../django/tests/template_tests/test_loaders.py,55,e = self.engine.template_loaders[0].get_template_cache['doesnotexist.html']
../django/tests/template_tests/test_loaders.py,56,self.assertEqual(e.args[0], 'doesnotexist.html')
../django/tests/template_tests/test_loaders.py,60,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,64,cache = self.engine.template_loaders[0].template_cache
../django/tests/template_tests/test_loaders.py,65,self.assertEqual(cache['index.html'][0], template)
../django/tests/template_tests/test_loaders.py,68,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,77,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,160,cls.loader = cls.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,174,self.assertEqual(template.origin.loader, self.engine.template_loaders[0])
../django/tests/template_tests/test_loaders.py,181,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,233,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,249,self.assertEqual(template.origin.loader, self.engine.template_loaders[0])
../django/tests/template_tests/test_loaders.py,254,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,283,loader = engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,337,self.assertEqual(template.origin.loader, self.engine.template_loaders[0])
../django/tests/template_tests/test_loaders.py,342,loader = self.engine.template_loaders[0]
../django/tests/template_tests/test_loaders.py,368,self.assertEqual(template.origin.loader, self.engine.template_loaders[0])
../django/tests/template_tests/test_loaders.py,372,loader = self.engine.template_loaders[0]
../django/tests/template_tests/tests.py,42,tb = sys.exc_info()[2]
../django/tests/template_tests/tests.py,76,e.exception.args[0],
../django/tests/template_tests/filter_tests/test_pluralize.py,24,self.assertEqual(pluralize([1]), '')
../django/tests/template_tests/syntax_tests/test_cache.py,133,cachenode = t.nodelist[1]
../django/tests/template_tests/syntax_tests/test_if.py,159,output = self.engine.render_to_string('if-tag-in-01', {'x': [1]})
../django/tests/template_tests/syntax_tests/test_if.py,164,output = self.engine.render_to_string('if-tag-in-02', {'x': [1]})
../django/tests/template_tests/syntax_tests/test_if.py,169,output = self.engine.render_to_string('if-tag-not-in-01', {'x': [1]})
../django/tests/template_tests/syntax_tests/test_if.py,174,output = self.engine.render_to_string('if-tag-not-in-02', {'x': [1]})
../django/tests/template_tests/syntax_tests/test_if.py,539,str(warns[0].message),
../django/tests/template_tests/syntax_tests/test_if_changed.py,99,{'days': [{'hours': [1, 2, 3], 'day': 1}, {'hours': [3], 'day': 2}]},
../django/tests/template_tests/syntax_tests/test_if_changed.py,113,{'days': [{'hours': [1, 2, 3], 'day': 1}, {'hours': [3], 'day': 2}]},
../django/tests/template_tests/syntax_tests/test_include.py,218,self.assertEqual(e.exception.args[0], 'missing.html')
../django/tests/template_tests/syntax_tests/test_include.py,230,self.assertEqual(e.exception.args[0], 'missing.html')
../django/tests/template_tests/syntax_tests/test_include.py,245,self.assertEqual(e.exception.args[0], 'missing.html')
../django/tests/template_tests/syntax_tests/test_include.py,251,self.assertEqual(e.exception.args[0], 'missing.html')
../django/tests/template_tests/syntax_tests/test_setup.py,23,self.assertEqual(cases[0], ['', False])
../django/tests/template_tests/syntax_tests/test_setup.py,24,self.assertEqual(cases[1], ['', False])
../django/tests/template_tests/syntax_tests/test_setup.py,25,self.assertEqual(cases[2], ['INVALID', False])
../django/tests/template_tests/syntax_tests/test_setup.py,26,self.assertEqual(cases[3], ['INVALID', False])
../django/tests/template_tests/syntax_tests/test_setup.py,27,self.assertEqual(cases[4], ['', True])
../django/tests/template_tests/syntax_tests/test_setup.py,28,self.assertEqual(cases[5], ['', True])
../django/tests/test_client/tests.py,72,self.assertEqual(response.templates[0].name, 'GET Template')
../django/tests/test_client/tests.py,80,self.assertEqual(response.templates[0].name, 'Empty GET Template')
../django/tests/test_client/tests.py,90,self.assertEqual(response.templates[0].name, 'Empty POST Template')
../django/tests/test_client/tests.py,104,self.assertEqual(response.templates[0].name, 'POST Template')
../django/tests/test_client/tests.py,112,self.assertEqual(response.templates[0].name, 'TRACE Template')
../django/tests/test_client/tests.py,163,self.assertEqual(response.templates[0].name, "Book template")
../django/tests/test_client/tests.py,517,self.assertEqual(mail.outbox[0].subject, 'Test message')
../django/tests/test_client/tests.py,518,self.assertEqual(mail.outbox[0].body, 'This is a test email')
../django/tests/test_client/tests.py,519,self.assertEqual(mail.outbox[0].from_email, 'from@example.com')
../django/tests/test_client/tests.py,520,self.assertEqual(mail.outbox[0].to[0], 'first@example.com')
../django/tests/test_client/tests.py,521,self.assertEqual(mail.outbox[0].to[1], 'second@example.com')
../django/tests/test_client/tests.py,530,self.assertEqual(mail.outbox[0].subject, 'First Test message')
../django/tests/test_client/tests.py,531,self.assertEqual(mail.outbox[0].body, 'This is the first test email')
../django/tests/test_client/tests.py,532,self.assertEqual(mail.outbox[0].from_email, 'from@example.com')
../django/tests/test_client/tests.py,533,self.assertEqual(mail.outbox[0].to[0], 'first@example.com')
../django/tests/test_client/tests.py,534,self.assertEqual(mail.outbox[0].to[1], 'second@example.com')
../django/tests/test_client/tests.py,536,self.assertEqual(mail.outbox[1].subject, 'Second Test message')
../django/tests/test_client/tests.py,537,self.assertEqual(mail.outbox[1].body, 'This is the second test email')
../django/tests/test_client/tests.py,538,self.assertEqual(mail.outbox[1].from_email, 'from@example.com')
../django/tests/test_client/tests.py,539,self.assertEqual(mail.outbox[1].to[0], 'second@example.com')
../django/tests/test_client/tests.py,540,self.assertEqual(mail.outbox[1].to[1], 'third@example.com')
../django/tests/test_client_regress/tests.py,387,self.assertEqual(response.redirect_chain[0], ('/no_template_view/', 302))
../django/tests/test_client_regress/tests.py,396,self.assertEqual(response.redirect_chain[0], ('/redirects/further/', 302))
../django/tests/test_client_regress/tests.py,397,self.assertEqual(response.redirect_chain[1], ('/redirects/further/more/', 302))
../django/tests/test_client_regress/tests.py,398,self.assertEqual(response.redirect_chain[2], ('/no_template_view/', 302))
../django/tests/test_client_regress/tests.py,995,self.assertEqual(e.args[0], 'does-not-exist')
../django/tests/test_client_regress/tests.py,1010,self.assertEqual(e.args[0], 'does-not-exist')
../django/tests/test_client_regress/tests.py,1367,self.assertEqual(b'--TEST_BOUNDARY', encoded_file[0])
../django/tests/test_client_regress/tests.py,1368,self.assertEqual(b'Content-Disposition: form-data; name="TEST_KEY"; filename="test_name.bin"', encoded_file[1])
../django/tests/test_client_regress/tests.py,1373,encode_file('IGNORE', 'IGNORE', DummyFile("file.bin"))[2])
../django/tests/test_client_regress/tests.py,1375,encode_file('IGNORE', 'IGNORE', DummyFile("file.txt"))[2])
../django/tests/test_client_regress/tests.py,1376,self.assertIn(encode_file('IGNORE', 'IGNORE', DummyFile("file.zip"))[2], (
../django/tests/test_client_regress/tests.py,1382,encode_file('IGNORE', 'IGNORE', DummyFile("file.unknown"))[2])
../django/tests/test_runner/test_discover_runner.py,74,suite._tests[0].id().split(".")[0],
../django/tests/test_runner/test_discover_runner.py,110,suite._tests[0].__class__.__name__,
../django/tests/test_runner/test_discover_runner.py,114,suite._tests[1].__class__.__name__,
../django/tests/test_runner/test_discover_runner.py,141,self.assertIn('DjangoCase', suite[0].id(),
../django/tests/test_runner/test_discover_runner.py,143,self.assertIn('SimpleCase', suite[4].id(),
../django/tests/test_runner/test_discover_runner.py,145,self.assertIn('DjangoCase2', suite[0].id(),
../django/tests/test_runner/test_discover_runner.py,147,self.assertIn('SimpleCase2', suite[4].id(),
../django/tests/test_runner/test_discover_runner.py,149,self.assertIn('UnittestCase2', suite[8].id(),
../django/tests/test_runner/test_discover_runner.py,151,self.assertIn('test_2', suite[0].id(),
../django/tests/test_runner/test_discover_runner.py,153,self.assertIn('test_2', suite[4].id(),
../django/tests/test_runner/test_discover_runner.py,155,self.assertIn('test_2', suite[8].id(),
../django/tests/test_utils/tests.py,225,self.assertIn(self.person_pk, captured_queries[0]['sql'])
../django/tests/test_utils/tests.py,235,self.assertIn(self.person_pk, captured_queries[0]['sql'])
../django/tests/test_utils/tests.py,254,self.assertIn(self.person_pk, captured_queries[0]['sql'])
../django/tests/test_utils/tests.py,259,self.assertIn(self.person_pk, captured_queries[0]['sql'])
../django/tests/test_utils/tests.py,265,self.assertIn(self.person_pk, captured_queries[0]['sql'])
../django/tests/test_utils/tests.py,266,self.assertIn(self.person_pk, captured_queries[1]['sql'])
../django/tests/test_utils/tests.py,370,self.assertEqual(cm.exception.args[0], "No templates used to render the response")
../django/tests/test_utils/tests.py,410,self.assertEqual(element.children[0].name, 'p')
../django/tests/test_utils/tests.py,411,self.assertEqual(element.children[0].children[0], 'Hello')
../django/tests/test_utils/tests.py,418,self.assertEqual(dom[0], 'foo')
../django/tests/test_utils/tests.py,433,self.assertEqual(dom.children[0], "<p>foo</p> '</scr'+'ipt>' <span>bar</span>")
../django/tests/test_utils/tests.py,441,self.assertEqual(dom[0], 'Hello')
../django/tests/test_utils/tests.py,442,self.assertEqual(dom[1].name, tag)
../django/tests/test_utils/tests.py,443,self.assertEqual(dom[2], 'world')
../django/tests/test_utils/tests.py,447,self.assertEqual(dom[0], 'Hello')
../django/tests/test_utils/tests.py,448,self.assertEqual(dom[1].name, tag)
../django/tests/test_utils/tests.py,449,self.assertEqual(dom[2], 'world')
../django/tests/timezones/tests.py,251,self.assertEqual(cursor.fetchall()[0][0], dt)
../django/tests/timezones/tests.py,272,msg = str(recorded[0].message)
../django/tests/timezones/tests.py,286,msg = str(recorded[0].message)
../django/tests/timezones/tests.py,300,msg = str(recorded[0].message)
../django/tests/timezones/tests.py,315,msg = str(recorded[0].message)
../django/tests/timezones/tests.py,567,self.assertEqual(cursor.fetchall()[0][0], dt)
../django/tests/timezones/tests.py,576,self.assertEqual(cursor.fetchall()[0][0], utc_naive_dt)
../django/tests/timezones/tests.py,669,self.assertEqual(objects[0]['fields']['dt'], dt)
../django/tests/timezones/tests.py,675,field = parseString(xml).getElementsByTagName('field')[0]
../django/tests/timezones/tests.py,676,self.assertXMLEqual(field.childNodes[0].wholeText, dt)
../django/tests/unmanaged_models/tests.py,25,a2 = A02.objects.all()[0]
../django/tests/unmanaged_models/tests.py,29,b2 = B02.objects.all()[0]
../django/tests/unmanaged_models/tests.py,41,self.assertIsInstance(resp[0], C02)
../django/tests/unmanaged_models/tests.py,42,self.assertEqual(resp[0].f_a, 'barney')
../django/tests/update/tests.py,138,self.assertEqual(bar_qs[0].foo_id, a_foo.target)
../django/tests/update/tests.py,140,self.assertEqual(bar_qs[0].foo_id, b_foo.target)
../django/tests/update_only_fields/tests.py,206,self.assertEqual(len(pre_save_data[0]), 1)
../django/tests/update_only_fields/tests.py,207,self.assertIn('name', pre_save_data[0])
../django/tests/update_only_fields/tests.py,209,self.assertEqual(len(post_save_data[0]), 1)
../django/tests/update_only_fields/tests.py,210,self.assertIn('name', post_save_data[0])
../django/tests/urlpatterns_reverse/namespace_urls.py,46,url(r'^other[246]/', include(otherobj2.urls)),
../django/tests/urlpatterns_reverse/namespace_urls.py,48,url(r'^ns-included[135]/', include('urlpatterns_reverse.included_namespace_urls', namespace='inc-ns1')),
../django/tests/urlpatterns_reverse/tests.py,75,('places', '/places/3/', [3], {}),
../django/tests/urlpatterns_reverse/tests.py,85,('places3', '/places/4/', [4], {}),
../django/tests/urlpatterns_reverse/tests.py,100,('named_optional', '/optional/1/', [1], {}),
../django/tests/urlpatterns_reverse/tests.py,251,self.assertEqual('/%257Eme/places/1/', reverse('places', args=[1]))
../django/tests/urlpatterns_reverse/tests.py,274,name, expected, args, kwargs = test_data[0]
../django/tests/urlpatterns_reverse/tests.py,289,sub_resolver = resolver.namespace_dict['test-ns1'][1]
../django/tests/urlpatterns_reverse/tests.py,343,self.assertIn('tried', e.args[0])
../django/tests/urlpatterns_reverse/tests.py,344,tried = e.args[0]['tried']
../django/tests/urlpatterns_reverse/tests.py,345,self.assertEqual(len(e.args[0]['tried']), len(url_types_names), 'Wrong number of tried URLs returned.  Expected %s, got %s.' % (len(url_types_names), len(e.args[0]['tried'])))
../django/tests/urlpatterns_reverse/tests.py,346,for tried, expected in zip(e.args[0]['tried'], url_types_names):
../django/tests/urlpatterns_reverse/tests.py,518,self.assertEqual('/ns-outer/42/normal/', reverse('inc-outer:inc-normal-view', args=[42]))
../django/tests/urlpatterns_reverse/tests.py,522,self.assertEqual('/ns-outer/42/+%5C$*/', reverse('inc-outer:inc-special-view', args=[42]))
../django/tests/urlpatterns_reverse/tests.py,743,self.assertEqual(match[0], func)
../django/tests/urlpatterns_reverse/tests.py,744,self.assertEqual(match[1], args)
../django/tests/urlpatterns_reverse/tests.py,745,self.assertEqual(match[2], kwargs)
../django/tests/utils_tests/test_autoreload.py,88,self.assertTrue(filenames2[0].endswith('fractions.py'))
../django/tests/utils_tests/test_datastructures.py,111,self.assertEqual(d[1], 1)
../django/tests/utils_tests/test_functional.py,84,self.assertEqual(a.value[0], 1)
../django/tests/utils_tests/test_lazyobject.py,81,for t in [True, 1, (1,), {1: 2}, [1], object(), {1}]:
../django/tests/utils_tests/test_lazyobject.py,127,self.assertEqual(obj_list[0], 1)
../django/tests/utils_tests/test_lazyobject.py,129,self.assertEqual(obj_list[1:2], [2])
../django/tests/utils_tests/test_lazyobject.py,134,obj_list[3]
../django/tests/utils_tests/test_lazyobject.py,143,obj_list[0] = 100
../django/tests/utils_tests/test_lazyobject.py,162,del obj_list[3]
../django/tests/utils_tests/test_lazyobject.py,253,i = [0]
../django/tests/utils_tests/test_lazyobject.py,256,i[0] += 1
../django/tests/utils_tests/test_lazyobject.py,261,self.assertEqual(i, [1])
../django/tests/utils_tests/test_lazyobject.py,263,self.assertEqual(i, [1])
../django/tests/utils_tests/test_module_loading.py,182,old_fd = self._cache[fullname][0]
../django/tests/utils_tests/test_timezone.py,40,self.assertIn("install pytz", exc.args[0])
../django/tests/validation/test_picklable.py,12,self.assertIs(unpickled, unpickled.error_list[0])
../django/tests/validation/test_picklable.py,18,self.assertIs(unpickled, unpickled.error_list[0])
../django/tests/validation/test_picklable.py,24,self.assertEqual(original.error_list[0].message, unpickled.error_list[0].message)
../django/tests/validation/test_picklable.py,25,self.assertEqual(original.error_list[1].message, unpickled.error_list[1].message)
../django/tests/validation/test_picklable.py,29,self.assertEqual(original.error_list[0].message, unpickled.error_list[0].message)
../django/tests/validation/test_picklable.py,30,self.assertEqual(original.error_list[1].message, unpickled.error_list[1].message)
../django/tests/validation/test_picklable.py,34,self.assertIs(unpickled.args[0][0], unpickled.error_list[0])
../django/tests/validation/test_picklable.py,35,self.assertEqual(original.error_list[0].message, unpickled.error_list[0].message)
../django/tests/validation/test_picklable.py,36,self.assertEqual(original.error_list[1].message, unpickled.error_list[1].message)
../django/tests/validation/tests.py,75,self.assertEqual(exclude[0], 'number')
../django/tests/view_tests/views.py,113,][0]
../django/tests/view_tests/tests/test_debug.py,142,raising_loc = inspect.trace()[-1][-2][0].strip()
../django/tests/view_tests/tests/test_debug.py,280,(1, LINES[1:3], LINES[3], LINES[4:])
../django/tests/view_tests/tests/test_debug.py,559,email = mail.outbox[0]
../django/tests/view_tests/tests/test_debug.py,569,body_html = force_text(email.alternatives[0][0])
../django/tests/view_tests/tests/test_debug.py,592,email = mail.outbox[0]
../django/tests/view_tests/tests/test_debug.py,602,body_html = force_text(email.alternatives[0][0])
../django/tests/view_tests/tests/test_debug.py,632,email = mail.outbox[0]
../django/tests/view_tests/tests/test_i18n.py,45,lang_code, lang_name = settings.LANGUAGES[0]
../django/tests/view_tests/tests/test_static.py,33,self.assertEqual(mimetypes.guess_type(file_path)[1], response.get('Content-Encoding', None))
../djsco/checks/configurations.py,64,hasher = self.settings.PASSWORD_HASHERS[0]
../djsco/checks/general_injection.py,12,if context['ancestors'][-1].args.args[0].id == context['node'].value.id:
../djsco/classes/ASTParser.py,139,checktype = inspect.stack()[1][3][6:]
../djsco/classes/BaseChecks.py,79,alert.lineno = line[0]
../djsco/classes/BaseChecks.py,80,alert.snippet = line[1]
../djsco/classes/Logger.py,55,return self.cur.fetchone()[0]
../djsco/classes/Logger.py,65,return pickle.loads(self.cur.fetchone()[0])
../djsco/classes/Logger.py,77,keys = [x[0] for x in self.cur.description]
../djsco/classes/ScanManager.py,10,self.root = os.path.dirname(os.path.normpath(sys.argv[0]))
../djsco/classes/ScanManager.py,115,funcs = [x for x in inspect.getmembers(chk) if inspect.ismethod(x[1])]
../djsco/classes/ScanManager.py,117,if func[0].startswith('check_'):
../djsco/classes/ScanManager.py,118,check = func[0][6:]
../djsco/classes/ScanManager.py,121,checks[check][name] = getattr(chk, func[0])
../dnv/taskManager/views.py,168,response['Content-Type']= mimetypes.guess_type(file.path)[0]
../dnv/taskManager/views.py,183,#response['Content-Type']= mimetypes.guess_type(filepath)[0]
../filecrawler/filecrawler.py,46,if e[0] != '.':
../filecrawler/filecrawler.py,125,printline('\t%s %s' % (e[0].ljust(18), prettynumbers(e[1]).ljust(8)))
../filecrawler/filecrawler.py,161,fext = path.splitext(file)[1]
../filecrawler/filecrawler.py,168,if e[0] == fext:
../filecrawler/filecrawler.py,170,e[1] += 1
../keyczar/cpp/src/examples/basic_encrypt.py,37,if (len(sys.argv) != 2 or not os.path.exists(sys.argv[1])):
../keyczar/cpp/src/examples/basic_encrypt.py,40,EncryptAndDecrypt(sys.argv[1])
../keyczar/cpp/src/examples/basic_encrypt.py,41,EncryptAndDecryptBytes(sys.argv[1])
../keyczar/cpp/src/examples/basic_encrypt.py,42,EncryptAndDecryptCompressed(sys.argv[1])
../keyczar/cpp/src/examples/basic_sign.py,26,if (len(sys.argv) != 2 or not os.path.exists(sys.argv[1])):
../keyczar/cpp/src/examples/basic_sign.py,29,Sign(sys.argv[1])
../keyczar/cpp/src/examples/crypted_keyset.py,31,print >> sys.stderr, sys.argv[0], "encrypted_json_keyset_path crypter_keyset_path"
../keyczar/cpp/src/examples/crypted_keyset.py,33,Encrypt(sys.argv[1], sys.argv[2])
../keyczar/cpp/src/examples/encrypt_file.py,26,print >> sys.stderr, "Usage:", sys.argv[0], "/key/path input_file output_file"
../keyczar/cpp/src/examples/encrypt_file.py,28,EncryptDile(sys.argv[1], sys.argv[2], sys.argv[3])
../keyczar/cpp/src/examples/keyczar_tool.py,43,if len(sys.argv) != 2 or not os.path.isdir(sys.argv[1]):
../keyczar/cpp/src/examples/keyczar_tool.py,47,rsa_path = os.path.join(sys.argv[1], 'rsa')
../keyczar/cpp/src/examples/keyczar_tool.py,48,rsa_pub_path = os.path.join(sys.argv[1], 'rsa_pub')
../keyczar/cpp/src/examples/keyczar_tool.py,50,print >> sys.stderr, 'Error:', sys.argv[1], 'is not empty.'
../keyczar/cpp/src/examples/pbe_keyset.py,30,Encrypt(sys.argv[1], sys.argv[2])
../keyczar/cpp/src/keyczar/keyczar_tool/convert_keyset.py,106,doit(sys.argv[1], sys.argv[2])
../keyczar/cpp/src/testing/gtest/scripts/fuse_gtest_files.py,88,my_path = sys.argv[0]  # Path to this script.
../keyczar/cpp/src/testing/gtest/scripts/fuse_gtest_files.py,237,FuseGTest(GetGTestRootDir(), sys.argv[1])
../keyczar/cpp/src/testing/gtest/scripts/fuse_gtest_files.py,240,FuseGTest(sys.argv[1], sys.argv[2])
../keyczar/cpp/src/testing/gtest/scripts/gen_gtest_pred_impl.py,56,SCRIPT_DIR = os.path.dirname(sys.argv[0])
../keyczar/cpp/src/testing/gtest/scripts/gen_gtest_pred_impl.py,76,'command' : '%s %s' % (os.path.basename(sys.argv[0]), n),
../keyczar/cpp/src/testing/gtest/scripts/gen_gtest_pred_impl.py,180,return word[0].upper() + word[1:]
../keyczar/cpp/src/testing/gtest/scripts/gen_gtest_pred_impl.py,334,'command' : '%s %s' % (os.path.basename(sys.argv[0]), sys.argv[1]),
../keyczar/cpp/src/testing/gtest/scripts/gen_gtest_pred_impl.py,727,n = int(sys.argv[1])
../keyczar/cpp/src/testing/gtest/scripts/upload.py,257,auth_token = self._GetAuthToken(credentials[0], credentials[1])
../keyczar/cpp/src/testing/gtest/scripts/upload.py,535,return mimetypes.guess_type(filename)[0] or 'application/octet-stream'
../keyczar/cpp/src/testing/gtest/scripts/upload.py,715,mimetype =  mimetypes.guess_type(filename)[0]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,756,if len(words) == 2 and words[0] == "URL:":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,757,url = words[1]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,840,if line and line[0] == "?":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,865,not status_lines[0] and
../keyczar/cpp/src/testing/gtest/scripts/upload.py,866,status_lines[1].startswith("--- Changelist")):
../keyczar/cpp/src/testing/gtest/scripts/upload.py,867,status = status_lines[2]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,869,status = status_lines[0]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,907,if status[0] == "A" and status[3] != "+":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,916,elif (status[0] in ("M", "D", "R") or
../keyczar/cpp/src/testing/gtest/scripts/upload.py,917,(status[0] == "A" and status[3] == "+") or  # Copied file.
../keyczar/cpp/src/testing/gtest/scripts/upload.py,918,(status[0] == " " and status[1] == "M")):  # Property change.
../keyczar/cpp/src/testing/gtest/scripts/upload.py,934,if status[0] == " ":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,940,if status[0] == "M":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1056,self.base_rev = RunShell(["hg", "parent", "-q"]).split(':')[1].strip()
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1115,if out[0].startswith('%s: ' % relpath):
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1120,oldrelpath = out[1].strip()
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1123,status, _ = out[0].split(' ', 1)
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1189,if len(patch[1]) > MAX_UPLOAD_SIZE:
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1190,print ("Not uploading the patch for " + patch[0] +
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1193,form_fields = [("filename", patch[0])]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1196,files = [("data", "data.diff", patch[1])]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1199,print "Uploading patch for " + patch[0]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1202,if not lines or lines[0] != "OK":
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1205,rv.append([lines[1], patch[0]])
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1307,if "@" in reviewer and not reviewer.split("@")[1].count(".") == 1:
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1312,if "@" in cc and not cc.split("@")[1].count(".") == 1:
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1328,if not info[0] is None:
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1329,checksum = md5.new(info[0]).hexdigest()
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1352,msg = lines[0]
../keyczar/cpp/src/testing/gtest/scripts/upload.py,1353,patchset = lines[1].strip()
../keyczar/cpp/src/testing/gtest/test/gtest_filter_unittest.py,220,tests_run = Run(COMMAND)[0]
../keyczar/cpp/src/testing/gtest/test/gtest_filter_unittest.py,232,tests_run = Run(command)[0]
../keyczar/cpp/src/testing/gtest/test/gtest_filter_unittest.py,262,tests_run = Run(command)[0]
../keyczar/cpp/src/testing/gtest/test/gtest_filter_unittest.py,501,tests_run = Run(command)[0]
../keyczar/cpp/src/testing/gtest/test/gtest_output_test.py,159,os.environ.update(env_cmd[0])
../keyczar/cpp/src/testing/gtest/test/gtest_output_test.py,160,stdin_file, stdout_file = os.popen2(env_cmd[1], 'b')
../keyczar/cpp/src/testing/gtest/test/gtest_test_utils.py,51,_flag_map = {'gtest_source_dir': os.path.dirname(sys.argv[0]),
../keyczar/cpp/src/testing/gtest/test/gtest_test_utils.py,52,'gtest_build_dir': os.path.dirname(sys.argv[0])}
../keyczar/cpp/src/testing/gtest/test/gtest_test_utils.py,157,self.output = p.communicate()[0]
../keyczar/cpp/src/testing/gtest/xcode/Scripts/versiongenerate.py,31,input_dir = sys.argv[1]
../keyczar/cpp/src/testing/gtest/xcode/Scripts/versiongenerate.py,32,output_dir = sys.argv[2]
../keyczar/cpp/src/tools/cpplint.py,584,return self.Split()[1]
../keyczar/cpp/src/tools/cpplint.py,588,return self.Split()[2]
../keyczar/cpp/src/tools/cpplint.py,887,if not ifndef and linesplit[0] == '#ifndef':
../keyczar/cpp/src/tools/cpplint.py,889,ifndef = linesplit[1]
../keyczar/cpp/src/tools/cpplint.py,891,if not define and linesplit[0] == '#define':
../keyczar/cpp/src/tools/cpplint.py,892,define = linesplit[1]
../keyczar/cpp/src/tools/cpplint.py,1107,error(filename, self.classinfo_stack[0].linenum, 'build/class', 5,
../keyczar/cpp/src/tools/cpplint.py,1109,self.classinfo_stack[0].name)
../keyczar/cpp/src/tools/cpplint.py,1710,prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
../keyczar/cpp/src/tools/cpplint.py,1717,prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
../keyczar/cpp/src/tools/cpplint.py,1936,(GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or
../keyczar/cpp/src/tools/cpplint.py,1937,GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and
../keyczar/cpp/src/tools/cpplint.py,1985,return os.path.splitext(filename)[0]
../keyczar/cpp/src/tools/cpplint.py,2159,fnline = line.split('{', 1)[0]
../keyczar/cpp/src/tools/cpplint.py,2513,if not line or line[0] == '#':
../keyczar/cpp/src/tools/cpplint.py,2534,template = required[required_header_unstripped][1]
../keyczar/cpp/src/tools/cpplint.py,2540,error(filename, required[required_header_unstripped][0],
../keyczar/cpp/src/tools/scons/scons-time.py,140,return [ p[0] for p in self.points ]
../keyczar/cpp/src/tools/scons/scons-time.py,143,return [ p[1] for p in self.points ]
../keyczar/cpp/src/tools/scons/scons-time.py,235,line.print_label(inx, line.points[0][0]-1,
../keyczar/cpp/src/tools/scons/scons-time.py,406,action = command[0]
../keyczar/cpp/src/tools/scons/scons-time.py,407,string = command[1]
../keyczar/cpp/src/tools/scons/scons-time.py,530,base = os.path.splitext(file)[0]
../keyczar/cpp/src/tools/scons/scons-time.py,617,if lines[0] == '':
../keyczar/cpp/src/tools/scons/scons-time.py,619,spaces = re.match(' *', lines[0]).group(0)
../keyczar/cpp/src/tools/scons/scons-time.py,655,result = result[0]
../keyczar/cpp/src/tools/scons/scons-time.py,673,matches = [ e for e in statistics.items() if e[0][2] == function ]
../keyczar/cpp/src/tools/scons/scons-time.py,674,r = matches[0]
../keyczar/cpp/src/tools/scons/scons-time.py,675,return r[0][0], r[0][1], r[0][2], r[1][3]
../keyczar/cpp/src/tools/scons/scons-time.py,681,return self.get_function_profile(file, function)[3]
../keyczar/cpp/src/tools/scons/scons-time.py,696,result = result[0]
../keyczar/cpp/src/tools/scons/scons-time.py,705,line = [ l for l in lines if l.endswith(object_string) ][0]
../keyczar/cpp/src/tools/scons/scons-time.py,717,Executes the do_*() function for the specified subcommand (argv[0]).
../keyczar/cpp/src/tools/scons/scons-time.py,721,cmdName = self.command_alias.get(argv[0], argv[0])
../keyczar/cpp/src/tools/scons/scons-time.py,739,sys.stderr.write('%s: Unknown subcommand "%s".\n' % (self.name, argv[0]))
../keyczar/cpp/src/tools/scons/scons-time.py,1216,archive_file_name = os.path.split(self.archive_list[0])[1]
../keyczar/cpp/src/tools/scons/scons-time.py,1219,self.subdir = self.archive_splitext(archive_file_name)[0]
../keyczar/cpp/src/tools/scons/scons-time.py,1222,self.prefix = self.archive_splitext(archive_file_name)[0]
../keyczar/cpp/src/tools/scons/scons-time.py,1254,self.aegis_parent_project = os.path.splitext(self.aegis_project)[0]
../keyczar/cpp/src/tools/scons/scons-time.py,1332,dest = os.path.split(archive)[1]
../keyczar/cpp/src/tools/scons/scons-time.py,1335,suffix = self.archive_splitext(archive)[1]
../keyczar/cpp/src/tools/scons/scons-time.py,1338,dest = os.path.split(archive)[1]
../keyczar/cpp/src/tools/scons/scons.py,59,script_dir = sys.path[0]
../keyczar/cpp/src/tools/scons/sconsign.py,60,script_dir = sys.path[0]
../keyczar/cpp/src/tools/scons/sconsign.py,363,db = self.dbm.open(os.path.splitext(fname)[0], "r")
../keyczar/cpp/src/tools/scons/sconsign.py,390,sys.stderr.write("sconsign: no dir `%s' in `%s'\n" % (dir, args[0]))
../keyczar/cpp/src/tools/scons/sconsign.py,419,printentries(sconsign.entries, args[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,324,cmdstrfunc = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,383,#TODO(1.5) return CommandAction(commands[0], **kw)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,384,return apply(CommandAction, (commands[0],), kw)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,400,return acts[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,527,chdir = str(executor.batches[0].targets[0].dir)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,529,chdir = str(target[0].dir)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,705,try: c = result[0][0][0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,710,result[0][0] = result[0][0][1:]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,712,if not result[0][0]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,713,result[0] = result[0][1:]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,732,return _string_from_cmd_list(cmd_list[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,788,result = spawn(shell, escape, cmd_line[0], cmd_line, ENV)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,828,d = str(cmd_line[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,1065,if (exc_info[1] and
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Action.py,1066,not isinstance(exc_info[1],EnvironmentError)):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,126,suf = max(map(None, map(len, matchsuf), matchsuf))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,157,my_ext = match_splitext(src, suffixes)[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,162,ext = match_splitext(str(source[0]), self.src_suffixes())[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,171,raise UserError("Ambiguous suffixes after environment substitution: %s == %s == %s" % (e[0], e[1], e[2]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,490,t_from_s = slist[0].target_from_source
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,492,raise UserError("Do not know how to create a target from source `%s'" % slist[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,567,executor = tlist[0].get_executor(create = 0)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,635,if suff and not suff[0] in [ '.', '_', '$' ]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,670,return ret[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Builder.py,738,s = self._adjustixes(s, None, src_suf)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/CacheDir.py,43,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/CacheDir.py,61,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/CacheDir.py,74,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/CacheDir.py,149,self.debugFP.write(fmt % (target, os.path.split(cachefile)[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/CacheDir.py,161,subdir = string.upper(sig[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Conftest.py,349,include_quotes[0], header_name, include_quotes[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Conftest.py,467,test_array[0] = 0;
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,161,l[0] = re.compile(l[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,296,(m[0],) + t[m[0]].match(m[1]).groups(),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,325,self.dispatch_table[t[0]](t)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,356,self.current_file = t[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,380,fname = t[2]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,381,for d in self.searchpath[t[1]]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,449,self._do_if_else_condition(self.cpp_namespace.has_key(t[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,455,self._do_if_else_condition(not self.cpp_namespace.has_key(t[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,504,try: del self.cpp_namespace[t[1]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,556,s = t[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,557,while not s[0] in '<"':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/cpp.py,569,return (t[0], s[0], s[1:-1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,96,mstr = string.split(mstr)[22]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,116,return res[4]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,122,backlist = [0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,126,key = tb[0][:3]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,138,callee = tb[1][:3]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,178,return (string.replace(t[0], '/', os.sep), t[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,183,f = func_tuple[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,185,i = string.find(f, t[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,187,if t[1]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Debug.py,188,i = i + len(t[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Defaults.py,123,raise SCons.Errors.UserError, "Source file: %s is static and is not compatible with shared target: %s" % (src, target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Defaults.py,228,if (e[0] == errno.EEXIST or (sys.platform=='win32' and e[0]==183)) \
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Defaults.py,311,if suffix[0] == ' ':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Defaults.py,378,l.append(str(d[0]) + '=' + str(d[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Defaults.py,439,frame = sys.exc_info()[2].tb_frame.f_back
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,102,toolname = tool[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,103,toolargs = tool[1] # should be a dict of kw args
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,556,p = p[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,671,if arg[0] == '!':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,680,dict['CPPDEFINES'].append([t[0], string.join(t[1:], '=')])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,722,elif not arg[0] in ['-', '+']:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,777,elif arg[0] == '+':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1213,if path and path[0] == '#':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1408,dlist = dlist[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1484,lines = filter(lambda l: l[0] != '#', lines)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1498,targets = reduce(lambda x, y: x+y, map(lambda p: p[0], tdlist))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1845,nargs = nargs + self.subst_list(args)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,1959,return result[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,2117,variant_dir = self.arg2nodes(variant_dir, self.fs.Dir)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,2118,src_dir = self.arg2nodes(src_dir, self.fs.Dir)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Environment.py,2124,node = self.arg2nodes(node, self.fs.Entry)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,163,if b.targets[0].is_up_to_date():
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,189,#return SCons.Util.NodeList([rfile(self.batches[0].sources[0]).get_subst_proxy()])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,190,return rfile(self.batches[0].sources[0]).get_subst_proxy()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,196,#return SCons.Util.NodeList([self.batches[0].targets[0].get_subst_proxy()])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,197,return self.batches[0].targets[0].get_subst_proxy()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,219,targets_string = self.action_list[0].get_targets(self.env, self)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,220,if targets_string[0] == '$':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,321,cwd = self.batches[0].targets[0].cwd
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,353,node=self.batches[0].targets,
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,375,sources = filter(lambda x, s=self.batches[0].sources: x not in s, sources)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,376,self.batches[0].sources.extend(sources)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,379,return self.batches[0].sources
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,397,raise SCons.Errors.StopError, msg % (s, self.batches[0].targets[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,453,if self.batches[0].sources:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,598,return self.batches[0].targets
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Executor.py,600,return self.batches[0].targets[0].sources
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Job.py,204,task.targets[0], errstr=interrupt_msg)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Job.py,255,task.targets[0], errstr=interrupt_msg)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Job.py,284,e.args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Job.py,415,task.targets[0], errstr=interrupt_msg)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Memoize.py,167,obj = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Memoize.py,196,obj = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,98,t = open(str(target[0]), "w")
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,99,defname = re.sub('[^A-Za-z0-9_]', '_', string.upper(str(target[0])))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,104,t.write(source[0].get_contents())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,111,return "scons: Configure: creating " + str(target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,151,fd = open(str(target[0]), "w")
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,152,fd.write(source[0].get_contents())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,155,return (str(target[0]) + ' <-\n  |' +
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,156,string.replace( source[0].get_contents(),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,231,exc_type = self.exc_info()[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,241,self.targets[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,288,if not self.targets[0].has_builder():
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,296,raise ConfigureCacheError(self.targets[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,302,"its sources are up to date." % str(self.targets[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,303,binfo = self.targets[0].get_stored_info().binfo
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,307,self.display("\"%s\" is up to date." % str(self.targets[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,308,binfo = self.targets[0].get_stored_info().binfo
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,311,raise ConfigureDryRunError(self.targets[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,316,env = self.targets[0].get_build_env()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,331,self.targets[0].build()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,338,exc_value = sys.exc_info()[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,339,raise SCons.Errors.ExplicitExit(self.targets[0],exc_value.code)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,582,self.lastTarget = nodes[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,707,(tb[0], tb[1], str(self.confdir)) )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConf.py,930,% (include_quotes[0], s, include_quotes[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/SConsign.py,334,mode = os.stat(self.sconsign)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,59,raise SCons.Errors.BuildError, (target[0], msg)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,89,$SOURCES[1].filebase.  We implement the same methods as Literal
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,239,nl0 = nl[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,248,return str(nl[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,253,return repr(nl[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,441,if key[0] == '{' or string.find(key, '.') >= 0:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,442,if key[0] == '{':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,475,var = string.split(key, '.')[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,524,result = result[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,656,if key[0] == '{' or string.find(key, '.') >= 0:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,657,if key[0] == '{':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,683,var = string.split(key, '.')[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Subst.py,722,if a[0] in ' \t\n\r\f\v':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,189,executor = self.targets[0].get_executor()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,237,self.targets[0].build()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,239,exc_value = sys.exc_info()[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,240,raise SCons.Errors.ExplicitExit(self.targets[0], exc_value.code)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,247,buildError.node = self.targets[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,536,return self.targets[0].get_state() == SCons.Node.executing
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,545,if stack[0] == stack[-1]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,780,exc_value = sys.exc_info()[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,959,node = to_visit[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Taskmaster.py,1009,genuine_cycles = filter(lambda t: t[1] or t[0].get_state() != NODE_EXECUTED, nclist)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,151,if var[0] == '{':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,185,def render_tree(root, child_func, prune=0, margin=[0], visited={}):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,225,def print_tree(root, child_func, prune=0, showtags=0, margin=[0], visited={}):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1120,ext = source[0].suffix
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1137,raise KeyError, (s_dict[s_k][0], k, s_k)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1140,return s_dict[ext][1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1166,(ensure_suffix or not splitext(fname)[1]):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1230,last = t[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1441,path=re.compile("/*(.*)").findall(path)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Util.py,1566,return signatures[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Warnings.py,192,if elems[0] == 'no':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Warnings.py,194,del elems[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Warnings.py,196,if len(elems) == 1 and elems[0] == 'all':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/__init__.py,72,dir = os.path.split(__file__)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/__init__.py,96,# Python 2.2 and 2.3 can use the copy of the 2.[45] sets module
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/__init__.py,102,# trying to import the 2.[45] sets module, so back off to a
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/__init__.py,243,version_string = string.split(sys.version)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,329,result.append("%*s%s\n" % (indent_first, "", help_lines[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,621,if not (opt[0] == "-" and opt[1] != "-"):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,628,if not (opt[0:2] == "--" and opt[2] != "-"):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,699,% string.split(str(type(self.choices)), "'")[1], self)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,715,self.dest = string.replace(self._long_opts[0][2:], '-', '_')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,717,self.dest = self._short_opts[0][1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,783,return self._long_opts[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,785,return self._short_opts[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,949,dictionary multiple times. [1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,954,dictionary. [1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,957,values for each destination [1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,959,[1] These mappings are common to (shared by) all components of the
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1026,% string.join(map(lambda co: co[0], conflict_opts), ", "),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1043,if type(args[0]) is types.StringType:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1046,option = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1162,your program (self.prog or os.path.basename(sys.argv[0])).
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1165,os.path.basename(sys.argv[0])).
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1354,if type(args[0]) is types.StringType:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1357,group = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1447,arg = rargs[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1452,del rargs[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1463,del rargs[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1577,return os.path.basename(sys.argv[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1615,(basename of sys.argv[0]).  Does nothing if self.usage is empty
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_optparse.py,1706,return possibilities[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_sets.py,557,return self._data.popitem()[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_shlex.py,270,if newfile[0] == '"':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_shlex.py,312,file = sys.argv[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,220,output = Popen(["mycmd", "myarg"], stdout=PIPE).communicate()[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,229,output = p2.communicate()[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,508,cmd = popenargs[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,927,stdout = stdout[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,929,stderr = stderr[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,1030,executable = args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,1232,plist = Popen(["ps"], stdout=PIPE).communicate()[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,1249,print repr(p2.communicate()[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_subprocess.py,1276,print repr(p2.communicate()[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,195,cur_line.append(chunks[0][0:space_left])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,196,chunks[0] = chunks[0][space_left:]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,245,if string.strip(chunks[0]) == '' and lines:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,246,del chunks[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,249,l = len(chunks[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/_scons_textwrap.py,262,if chunks and len(chunks[0]) > width:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/compat/builtins.py,169,#        while s and s[0] in c:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/__init__.py,833,e = e.args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/__init__.py,850,e = e.args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/__init__.py,864,e = e.args[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/__init__.py,1254,return "%s %s"  % (preamble, lines[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,239,src = source[0].abspath
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,240,dest = target[0].abspath
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,242,if dir and not target[0].fs.isdir(dir):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,247,fs = source[0].fs
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,267,return 'Local copy of %s from %s' % (target[0], source[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,272,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,279,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,440,return SCons.Subst.SpecialAttrWrapper(SCons.Util.splitext(name)[0],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,445,return SCons.Subst.SpecialAttrWrapper(SCons.Util.splitext(name)[1],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,456,return SCons.Subst.SpecialAttrWrapper(SCons.Util.splitext(entry.get_path())[0],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,558,self.suffix = intern(SCons.Util.splitext(name)[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,706,srcnode = srcdir_list[0].Entry(self.name)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,773,return self.dir.Entry(prefix + splitext(self.name)[0] + suffix)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1087,self.defaultDrive = _my_normcase(os.path.splitdrive(self.pathTop)[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1980,if pattern[0] != '.':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1981,#disk_names = [ d for d in disk_names if d[0] != '.' ]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1982,disk_names = filter(lambda x: x[0] != '.', disk_names)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1996,if pattern[0] != '.':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1997,#names = [ n for n in names if n[0] != '.' ]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,1998,names = filter(lambda x: x[0] != '.', names)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Node/FS.py,3140,if f[2] == 'Execute' and f[0][-14:] == 'Environment.py':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/__init__.py,110,importer = zipimport.zipimporter( sys.modules['SCons.Platform'].__path__[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/__init__.py,162,cmd = env.subst_list(self.cmd, SCons.Subst.SUBST_CMD, target, source)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/__init__.py,218,str(cmd[0]) + " " + string.join(args," "))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/__init__.py,219,return [ cmd[0], prefix + native_tmp + '\n' + rm, native_tmp ]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/aix.py,55,xlcVersion = string.split(v)[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/aix.py,56,xlcPath = string.split(p)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,69,stat = os.spawnvpe(os.P_WAIT, l[0], l, env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,80,os.execvpe(l[0], l, env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,82,exitval = exitvalmap.get(e[0], e[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,83,sys.stderr.write("scons: %s: %s\n" % (l[0], e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,96,map(lambda t, e=escape: e(t[0])+'='+e(t[1]), env.items()) + \
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,167,os.execvpe(l[0], l, env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,169,exitval = exitvalmap.get(e[0], e[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/posix.py,170,stderr.write("scons: %s: %s\n" % (l[0], e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,134,ret = exitvalmap[e[0]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,136,sys.stderr.write("scons: unknown OSError exception code %d - %s: %s\n" % (e[0], cmd, e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,138,stderr.write("scons: %s: %s\n" % (cmd, e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,158,result = os.spawnve(os.P_WAIT, l[0], l, env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,161,result = exitvalmap[e[0]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,162,sys.stderr.write("scons: %s: %s\n" % (l[0], e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,166,if len(l[2]) < 1000:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,169,command = l[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,171,command = l[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py,172,sys.stderr.write("scons: unknown OSError exception code %d - '%s': %s\n" % (e[0], command, e[1]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/__init__.py,242,return env.subst_list(self.skeys)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/__init__.py,387,nodes = map(lambda pair: pair[1], nodes)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/__init__.py,401,if include[0] == '"':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/__init__.py,406,n = SCons.Node.FS.find_file(include[1], paths)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/__init__.py,408,return n, intern(include[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/C.py,76,result[c[0]] = c[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/Fortran.py,127,nodes = map(lambda pair: pair[1], nodes)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,221,scannable = node.get_suffix() in env.subst_list(self.suffixes)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,235,filename = include[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,236,if include[0] == 'input':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,240,if (include[0] == 'include'):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,242,if include[0] == 'bibliography':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,246,if include[0] == 'usepackage':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,250,if include[0] == 'includegraphics':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,265,sub_path = path[include[0]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,271,i = SCons.Node.FS.find_file(n, (source_dir,) + sub_path[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,275,i = SCons.Node.FS.find_file(n, (source_dir,) + sub_path[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,303,inc_type = noopt_cre.sub('', include[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,304,inc_list = string.split(include[1],',')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,322,# Handle multiple filenames in include[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,328,if include[0] != 'usepackage':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Scanner/LaTeX.py,336,nodes = map(lambda pair: pair[1], nodes)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,134,print "*** Unknown command: %s" % argv[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,142,if line[0] == '!':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,144,elif line[0] == '?':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,149,argv[0] = self.synonyms.get(argv[0], argv[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,150,if not argv[0]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,154,func = getattr(self, 'do_' + argv[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,196,x.extend(n.alter_targets()[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,311,spaces = re.match(' *', lines[0]).group(0)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Interactive.py,363,sys.stderr.write('scons: %s: %s\n' % (argv[0], e.strerror))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,166,self.progress(self.targets[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,172,if self.top and self.targets[0].has_builder():
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,192,_BuildFailures.append(self.exception[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,207,t = self.targets[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,265,if (buildError.exc_info[2] and buildError.exc_info[1] and
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,268,#    buildError.exc_info[1],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,270,not isinstance(buildError.exc_info[1], EnvironmentError) and
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,271,not isinstance(buildError.exc_info[1], SCons.Errors.StopError) and
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,272,not isinstance(buildError.exc_info[1], SCons.Errors.UserError)):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,286,t = self.targets[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,300,explanation = self.out_of_date[0].explain()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,338,target = self.targets[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,349,target = self.targets[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,391,if self.targets[0].get_state() != SCons.Node.up_to_date or \
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,392,(self.top and not self.targets[0].exists()):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,423,return string.split(sys.version)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,499,for n in map(lambda t: t[0], s):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,516,self.outfp.write(fmt1 % tuple(map(lambda x: x[0], labels)))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,517,self.outfp.write(fmt1 % tuple(map(lambda x: x[1], labels)))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,560,filename = frame[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,563,return tb[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,596,sys.stderr.write("\nscons: warning: %s\n" % e[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,717,if build[0] != '.':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,831,if scripts[0] == "-":
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,834,d = fs.File(scripts[0]).dir
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/Main.py,871,if a[0] == '-':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,87,frame = sys.exc_info()[2].tb_frame.f_back
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,154,call_stack[-1].retval = retval[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,301,return results[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,333,tb = sys.exc_info()[2]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,339,node.creator = traceback.extract_stack(tb)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,369,version = string.split(string.split(version_string, ' ')[0], '.')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,370,v_major = int(version[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,371,v_minor = int(re.match('\d+', version[1]).group())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,373,v_revision = int(re.match('\d+', version[2]).group())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,404,files = ls[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,408,files   = ls[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,409,exports = self.Split(ls[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,430,src_dir, fname = os.path.split(str(files[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,435,fn = files[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConscript.py,484,v = string.split(sys.version, " ", 1)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConsOptions.py,217,raise SCons.Errors.UserError, fmt % self._short_opts[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Script/SConsOptions.py,459,result.append("%*s%s\n" % (indent_first, "", help_lines[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,149,importer = zipimport.zipimporter( sys.modules['SCons.Tool'].__path__[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,624,c_compiler = FindTool(c_compilers, env) or c_compilers[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,641,cxx_compiler = FindTool(cxx_compilers, env) or cxx_compilers[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,642,linker = FindTool(linkers, env) or linkers[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,643,assembler = FindTool(assemblers, env) or assemblers[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,644,fortran_compiler = FindTool(fortran_compilers, env) or fortran_compilers[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/__init__.py,645,ar = FindTool(ars, env) or ars[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/c++.py,53,ext = os.path.splitext(str(s.sources[0]))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/dmd.py,75,ext = os.path.splitext(str(s.sources[0]))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/dvipdf.py,49,abspath = source[0].attributes.path
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/dvipdf.py,90,return not SCons.Util.splitext(str(n))[1] in ['.aux', '.log']
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/FortranCommon.py,57,ext = os.path.splitext(str(s.sources[0]))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/FortranCommon.py,63,node = source[0].rfile()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/FortranCommon.py,93,s = suffixes[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/install.py,59,parent = os.path.split(dest)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/install.py,90,target = str(target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/install.py,91,source = str(source[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/install.py,117,self.dir = env.arg2nodes( dir, env.fs.Dir )[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,164,v = SCons.Util.RegQueryValueEx(k, valuename)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,307,version = vlist[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,324,uname_m = os.uname()[4]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,399,path=get_intel_registry_value(p[1], version, abi)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,405,env.PrependENVPath(p[0], os.path.join(topdir, p[2]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,407,env.PrependENVPath(p[0], string.split(path, os.pathsep))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,408,# print "ICL %s: %s, final=%s"%(p[0], path, str(env['ENV'][p[0]]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/intelc.py,437,reglicdir = SCons.Util.RegQueryValueEx(k, "w_cpp")[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,57,target[0].must_be_same(SCons.Node.FS.Dir)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,58,classdir = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,60,s = source[0].rentry().disambiguate()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,105,d = target[0].Dir(pkg_dir)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,108,d = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,120,t = target[0].Dir(pkg_dir).File(base + class_suffix)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javac.py,122,t = target[0].File(base + class_suffix)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/JavaCommon.py,80,self.anonStacksStack = [[0]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/JavaCommon.py,172,clazz = self.listClasses[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/JavaCommon.py,206,elif token[0] == '<' and token[-1] == '>':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/JavaCommon.py,260,self.outer_state.anonStacksStack.append([0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,54,s = source[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,84,s = source[0].rfile()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,88,if target[0].__class__ is SCons.Node.FS.File:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,91,if not isinstance(target[0], SCons.Node.FS.Dir):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,92,target[0].__class__ = SCons.Node.FS.Dir
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,93,target[0]._morph()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,97,t = target[0].File(fname)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,98,t.attributes.java_lookupdir = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/javah.py,105,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/lex.py,47,sourceBase, sourceExt = os.path.splitext(SCons.Util.to_String(source[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/midl.py,48,base, ext = SCons.Util.splitext(str(target[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/midl.py,49,tlb = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/midl.py,80,env['MIDLCOM']       = '$MIDL $MIDLFLAGS /tlb ${TARGETS[0]} /h ${TARGETS[1]} /iid ${TARGETS[2]} /proxy ${TARGETS[3]} /dlldata ${TARGETS[4]} $SOURCE 2> NUL'
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,51,return ['/PDB:%s' % target[0].attributes.pdb, '/DEBUG']
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,127,pdb = env.arg2nodes('$PDB', target=target, source=source)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,129,target[0].attributes.pdb = pdb
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,175,pdb = env.arg2nodes('$PDB', target=target, source=source)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,177,target[0].attributes.pdb = pdb
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,183,ret = regServerAction([target[0]], [source[0]], env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,185,raise SCons.Errors.UserError, "Unable to register %s" % target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mslink.py,187,print "Registered %s sucessfully" % target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,73,if SCons.Util.splitext(str(t))[1] == '.pch':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,75,if SCons.Util.splitext(str(t))[1] == '.obj':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,79,obj = SCons.Util.splitext(str(pch))[0]+'.obj'
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,136,t = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,137,s = source[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,138,if os.path.splitext(t.name)[0] != os.path.splitext(s.name)[0]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvc.py,245,env['PCHCOM'] = '$CXX /Fo${TARGETS[1]} $CXXFLAGS $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS /c $SOURCES /Yc$PCHSTOP /Fp${TARGETS[0]} $CCPDBFLAGS $PCHPDBFLAGS'
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,111,# use sys.argv[0] to find the SCons "executable," but that doesn't work
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,113,# things and ends up with "-c" as sys.argv[0].  Consequently, we have
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,139,os.path.split(sys.executable)[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,216,bt = buildtarget[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,238,s = outdir[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,260,s = runfile[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,274,self.name = os.path.basename(SCons.Util.splitext(self.dspfile)[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,298,if self.env.has_key(t[1]):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,299,if SCons.Util.is_List(self.env[t[1]]):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,300,for i in self.env[t[1]]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,301,if not i in self.sources[t[0]]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,302,self.sources[t[0]].append(i)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,304,if not self.env[t[1]] in self.sources[t[0]]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,305,self.sources[t[0]].append(self.env[t[1]])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,373,confkey = confkeys[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,722,#sorteditems.sort(lambda a, b: cmp(a[0].lower(), b[0].lower()))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,723,sorteditems.sort(lambda a, b: cmp(string.lower(a[0]), string.lower(b[0])))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,774,if cp and s[0][len(cp)] == os.sep:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,779,commonprefix = os.path.dirname( sources[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,780,sources[0] = os.path.basename( sources[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,878,self.name = os.path.basename(SCons.Util.splitext(self.dswfile)[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1121,dspfile = self.dspfiles[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1174,builddspfile = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1190,builddswfile = target[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1206,GenerateDSW(target[0], source, env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1214,if source[0] == target[0]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1218,(base, suff) = SCons.Util.splitext(str(target[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1220,target[0] = base + suff
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1292,source = source + ' "%s"' % str(target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1295,targetlist = [target[0]]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1311,if source[0] == target[0]:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1315,(base, suff) = SCons.Util.splitext(str(target[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1317,target[0] = base + suff
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1356,source = source + ' "%s"' % str(target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1359,return ([target[0]], source)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/msvs.py,1394,env['MSVSSCONSCRIPT'] = SCons.Script.call_stack[0].sconscript
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/mwcc.py,110,mwv = MWVersion(version[0], path[0], 'Win32-X86')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,65,moc = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,66,cpp = source[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,135,cpp = obj.sources[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,136,if not splitext(str(cpp))[1] in cxx_suffixes:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,147,hname = splitext(cpp.name)[0] + h_ext
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,205,bs = SCons.Util.splitext(str(source[0].name))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,206,bs = os.path.join(str(target[0].get_dir()),bs)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,276,CLVar('$QT_UIC $QT_UICDECLFLAGS -o ${TARGETS[0]} $SOURCE'),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,277,CLVar('$QT_UIC $QT_UICIMPLFLAGS -impl ${TARGETS[0].file} '
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,278,'-o ${TARGETS[1]} $SOURCE'),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,279,CLVar('$QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[2]} ${TARGETS[0]}')],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,283,'$QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[0]} $SOURCE'),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/qt.py,287,CLVar('$QT_MOC $QT_MOCFROMCXXFLAGS -o ${TARGETS[0]} $SOURCE'),
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rmic.py,53,s = source[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rmic.py,91,t = target[0].File(fname)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rmic.py,92,t.attributes.java_lookupdir = target[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rpm.py,52,tar_file_with_included_specfile = source[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rpm.py,58,tmpdir = os.path.join( os.path.dirname( target[0].abspath ), 'rpmtemp' )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rpm.py,78,raise SCons.Errors.BuildError( node=target[0],
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/rpm.py,80,filename=str(target[0]) )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/swig.py,67,mnames.append(m[2])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/swig.py,68,directors = directors or string.find(m[0], 'directors') >= 0
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/swig.py,93,target.extend(map(lambda m, d=target[0].dir:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,147,name_ext = SCons.Util.splitext(testName)[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,180,basename = SCons.Util.splitext(str(source[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,181,basedir = os.path.split(str(source[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,182,basefile = os.path.split(str(basename))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,185,targetext = os.path.splitext(str(target[0]))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,186,targetdir = os.path.split(str(target[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,205,src_content = source[0].get_text_contents()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,345,if not (str(target[0]) == resultfilename  and  os.path.exists(resultfilename)):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,347,print "move %s to %s" % (resultfilename, str(target[0]), )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,348,shutil.move(resultfilename,str(target[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,434,if file_tests[i][0] == None:
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,435,file_tests[i][0] = file_tests_search[i].search(content)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,459,targetbase = SCons.Util.splitext(str(target[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,460,basename = SCons.Util.splitext(str(source[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,461,basefile = os.path.split(str(basename))[1]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,463,basedir = os.path.split(str(source[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,464,targetdir = os.path.split(str(target[0]))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,466,target[0].attributes.path = abspath
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,475,env.SideEffect(auxfilename,target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,476,env.SideEffect(logfilename,target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,477,env.Clean(target[0],auxfilename)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,478,env.Clean(target[0],logfilename)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,480,content = source[0].get_text_contents()
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,540,file_tests = ScanFiles(source[0], target, paths, file_tests, file_tests_search, env, graphics_extensions, targetdir)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,545,env.SideEffect(targetbase + suffix,target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,546,env.Clean(target[0],targetbase + suffix)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,552,env.SideEffect(out_files,target[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/tex.py,553,env.Clean(target[0],out_files)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/wix.py,76,if path[0] == '"' and path[-1:]=='"':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/yacc.py,48,targetBase, targetExt = os.path.splitext(SCons.Util.to_String(target[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/yacc.py,62,base, ext = os.path.splitext(SCons.Util.to_String(source[0]))
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/zip.py,58,zf = zipfile.ZipFile(str(target[0]), 'w', compression)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/MSCommon/common.py,59,yo = SCons.Util.RegGetValue(SCons.Util.HKEY_LOCAL_MACHINE, value)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/MSCommon/common.py,66,return SCons.Util.RegGetValue(SCons.Util.HKEY_LOCAL_MACHINE, value)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/MSCommon/sdk.py,251,set_sdk_by_directory(env, sdks[0].get_sdk_dir())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/MSCommon/vs.py,425,env['MSVS_VERSION'] = versions[0] #use highest version by default
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/MSCommon/vs.py,427,env['MSVS_VERSION'] = SupportedVSList[0].version
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/__init__.py,58,kw_tags[first_tag[0]] = ''
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/__init__.py,146,raise SCons.Errors.UserError( "Missing Packagetag '%s'"%e.args[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/__init__.py,163,% (e.args[0],packager.__name__) )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/__init__.py,183,% (args[0],packager.__name__) )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/__init__.py,274,new_file=env.CopyAs(new_file, file)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/ipk.py,58,buildarchitecture = os.uname()[4]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/ipk.py,75,if str(target[0])=="%s-%s"%(NAME, VERSION):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/ipk.py,122,file=filter(lambda x: x.get_path().rfind(needle)!=-1, haystack)[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,66,if s[0] in '0123456789.':
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,187,return "building WiX file %s"%( target[0].path )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,193,file = open(target[0].abspath, 'w')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,211,build_license_file(target[0].get_dir(), env)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,221,raise SCons.Errors.UserError( '"%s" package field for MSI is missing.' % e.args[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,264,root.getElementsByTagName('Product')[0].childNodes.append( d1 )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,304,Directory = already_created[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,389,SubFeature.attributes['Id']    = convert_to_id( feature[0], id_set )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,390,SubFeature.attributes['Title'] = escape(feature[0])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,391,SubFeature.attributes['Description'] = escape(feature[1])
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,414,root.getElementsByTagName('Product')[0].childNodes.append(Feature)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,420,Product = root.getElementsByTagName('Product')[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/msi.py,489,root.getElementsByTagName('Product')[0].childNodes.append(Media)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,52,if str(target[0])!="%s-%s"%(NAME, VERSION):
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,65,buildarchitecture = os.uname()[4]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,85,#kw['SOURCE_URL']=(str(target[0])+".tar.gz").replace('.rpm', '')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,86,kw['SOURCE_URL']=string.replace(str(target[0])+".tar.gz", '.rpm', '')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,115,#tarball = (str(target[0])+".tar.gz").replace('.rpm', '')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,116,tarball = string.replace(str(target[0])+".tar.gz", '.rpm', '')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,121,raise SCons.Errors.UserError( "Missing PackageTag '%s' for RPM packager" % e.args[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,143,file = open(target[0].abspath, 'w')
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,157,raise SCons.Errors.UserError( '"%s" package field for RPM is missing.' % e.args[0] )
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,340,domestic = filter(lambda t, i=is_international: not i(t[0]), replacements)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,349,international = filter(lambda t, i=is_international: i(t[0]), replacements)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,353,x = filter(lambda t,key=key,s=strip_country_code: s(t[0]) == key, values.items())
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/packaging/rpm.py,354,int_values_for_key = map(lambda t,g=get_country_code: (g(t[0]),t[1]), x)
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Variables/__init__.py,87,option.key     = key[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Variables/__init__.py,164,dir = os.path.split(os.path.abspath(filename))[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Variables/__init__.py,172,del sys.path[0]
../keyczar/cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Variables/PathVariable.py,135,return (key, '%s ( /path/to/%s )' % (help, key[0]), default,
../keyczar/cpp/src/tools/swtoolkit/wrapper.py,62,argname = arg.split('=')[0]
../keyczar/cpp/src/tools/swtoolkit/bin/runtest.py,271,if line and line[0] != "#":
../keyczar/cpp/src/tools/swtoolkit/bin/runtest.py,325,tests[0].total_time = time_func() - total_start_time
../keyczar/cpp/src/tools/swtoolkit/bin/runtest.py,327,print_time(fmt, tests[0].total_time)
../keyczar/cpp/src/tools/swtoolkit/lib/TestFramework.py,273,os.path.splitext(func_file)[0],
../keyczar/cpp/src/tools/swtoolkit/site_scons/http_download.py,74,_CreateDirectory(os.path.split(target)[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/pulse_latest.py,68,build = green_builds[0]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/command_output.py,70,ps_out = ps_task.communicate()[0]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/command_output.py,79,ppid[int(w[0])] = int(w[1])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/command_output.py,206,output_file = open(str(target[0]), 'w')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,254,for input_src in args[0]:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,256,env.Install(env['LIB_DIR'], input_src.split('.i')[0] + '.py')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,293,env.SetTargetProperty(lib_name, TARGET_PATH=lib_outputs[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,399,env.Publish(prog_name, 'run', out_nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,411,env.SetTargetProperty(prog_name, TARGET_PATH=out_nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,466,env.Publish(prog_name, 'run', out_nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,478,env.SetTargetProperty(prog_name, TARGET_PATH=out_nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_builders.py,521,env.SetTargetProperty(test_name, TARGET_PATH=nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets.py,65,items = map(str, SCons.Script.Alias(self.name)[0].sources)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets.py,87,items = map(str, SCons.Script.Alias(self.name)[0].sources)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets.py,180,foo_test = env.Program(...)[0]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,251,project_file = target[0].path
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,252,project_to_main = env.RelativePath(target[0].dir, env.Dir('$MAIN_DIR'),
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,271,tool_attrs['Output'] = env.RelativePath(target[0].dir,
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,437,project_file = target[0].path
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,438,project_dir = target[0].dir
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,447,folders.append((f[0], env.Dir(f[1]).abspath, {}))
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,464,walker = SourceWalker(tmp_alias[0], all_srcs)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,482,if path.startswith(f[1]):
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,483,if f[0] is None:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,486,relpath = path[len(f[1]) + 1:].split(os.sep)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,487,folder_dict = f[2]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,507,if f[0] is None:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,509,vsp.AddFiles(f[0], f[2])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,591,project_file = target[0].path
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,592,project_dir = target[0].dir
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,598,folders.append((f[0], env.Dir(f[1]).abspath, {}))
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,612,if path.startswith(f[1]):
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,613,if f[0] is None:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,616,relpath = path[len(f[1]) + 1:].split(os.sep)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,617,folder_dict = f[2]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,637,if f[0] is None:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,639,vsp.AddFiles(f[0], f[2])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,691,solution_file = target[0].path
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,712,env.RelativePath(target[0].dir, project_file),   # Path to project file
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,723,env.RelativePath(target[0].dir, p),          # Path to project file
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_msvs.py,910,#self.SetTargetProperty(solution_name, TARGET_PATH=out_nodes[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/component_targets_xml.py,50,target_path = target[0].abspath
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/concat_source.py,64,output_file = open(str(target[0]), 'w')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/environment_tools.py,264,while source and target and source[0] == target[0]:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/naclsdk.py,69,stdout=subprocess.PIPE).communicate()[0].replace('\n', '')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/naclsdk.py,123,sync_tgz.SyncTgz(url[0], target, url[1], url[2])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/replace_strings.py,63,fh = open(source[0].abspath, 'rb')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/replace_strings.py,68,text = re.sub(r[0], env.subst(r[1]), text)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/replace_strings.py,70,fh = open(target[0].abspath, 'wb')
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/replicate.py,104,target_name = re.sub(r[0], r[1], target_name)
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/sdl.py,171,if not os.path.exists(env.subst(i[0])):
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/sdl.py,173,for j in i[1]:
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,56,output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,60,files = [i[53:] for i in lines if i[20] != 'D']
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,75,env['SEVEN_ZIP_OUT_DIR'] = target[0].dir
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,80,assert len(files) == 1 and os.path.splitext(files[0])[1] == '.7z'
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,84,cmd = env.subst('$SEVEN_ZIP x $SOURCE -o"%s"' % tmp_dir, source=source[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,88,inner_files = SevenZipGetFiles(env, os.path.join(tmp_dir, files[0]))
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,90,inner_files = [target[0].dir.File(i) for i in inner_files]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,94,working_file = env.Dir(target[0].dir.abspath +
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,95,'.7zip_extract').File(files[0])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/seven_zip.py,100,files = [target[0].dir.File(i) for i in files]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_mac.py,105,'cp -f ${SOURCES[1]} $TARGET/Contents',
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,65,target_path = target[0].abspath
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,113,print 'Warning: mt.exe failed to write to %s; retrying.' % target[0]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,233,source_ext = os.path.splitext(source)[1]
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,247,dest_pdb = os.path.join(os.path.split(dest_pdb)[0],
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,248,os.path.split(source_pdb)[1])
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/target_platform_windows.py,405,env['SHLINKCOM'].list[0].cmdstr = '$SHLINKCOMSTR'
../keyczar/cpp/src/tools/swtoolkit/site_scons/site_tools/visual_studio_solution.py,111,variant=variants[0])
../keyczar/cpp/src/tools/swtoolkit/test/code_coverage_path_test.py,93,env.Replicate('$ARTIFACTS_DIR', prog[0]),
../keyczar/cpp/src/tools/swtoolkit/test/code_coverage_path_test.py,94,env.Replicate('$DESTINATION_ROOT/nocoverage', prog[0]),
../keyczar/cpp/src/tools/swtoolkit/test/command_output_test.py,113,sys.exit(int(sys.argv[1]))
../keyczar/cpp/src/tools/swtoolkit/test/defer_test.py,175,self.assertEqual(self.call_list, [1])
../keyczar/cpp/src/tools/swtoolkit/test/environment_tools_test.py,64,env.FilterOut(TEST1=['dog'], TEST3=[2])
../keyczar/cpp/src/tools/swtoolkit/test/environment_tools_test.py,172,self.assert_(type(env.SubstList2('$STR1')[0]) is str)
../keyczar/cpp/src/tools/swtoolkit/test/runtest_test.py,83,print 'other.py got arg="%s"' % sys.argv[1]
../keyczar/cpp/src/tools/swtoolkit/test/seven_zip_test.py,80,if sys.argv[1] == 'l':
../keyczar/cpp/src/tools/swtoolkit/test/seven_zip_test.py,81,f = open(sys.argv[2], 'rt')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,96,entry_texts = [e[1] for e in log.entries]
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,99,entry_times = [e[0] for e in log.entries]
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,217,self.assertEqual(usage_log.log.entries[-1][1], 'progress sometext')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,261,self.assertEqual(usage_log.log.entries[0][1], 'Interactive start')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,270,self.assertEqual(usage_log.log.entries[0][1], 'Interactive start')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,276,self.assertEqual(self.dumped_entries[0][1], 'Interactive done')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,281,self.assertEqual(self.dumped_entries[0][1], 'usage_log exit')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,378,self.assertEqual(usage_log.log.entries[0][1], 'build_targets start')
../keyczar/cpp/src/tools/swtoolkit/test/usage_log_test.py,379,self.assertEqual(usage_log.log.entries[1][1], 'build_targets done')
../keyczar/interop/interop_unit_test.py,63,"keySizes": [256],
../keyczar/interop/interop_unit_test.py,70,"keySizes": [1024],
../keyczar/interop/interop_unit_test.py,358,"keySizes": [256],
../keyczar/interop/interop_unit_test.py,365,"keySizes": [1024],
../keyczar/interop/interop_unit_test.py,372,"keySizes": [1024],
../keyczar/interop/interop_unit_test.py,465,assert test_keysets[0].purpose != test_keysets[1].purpose
../keyczar/interop/interop_unit_test.py,518,assert sign_keysets[0].name != sign_keysets[1].name
../keyczar/python/setup.py,45,long_description=doclines[0],
../keyczar/python/src/keyczar/keyczar.py,92,version = ord(header[0])
../keyczar/python/src/keyczar/keyczar.py,702,aes_key_bytes = unpacked[0]
../keyczar/python/src/keyczar/keyczar.py,703,hmac_key_bytes = unpacked[1]
../keyczar/python/src/keyczar/keyczart.py,284,cmd = GetCommand(argv[0])
../keyczar/python/src/keyczar/keyczart.py,331,sys.exit(main(sys.argv[1:]))  # sys.argv[0] is name of program
../keyczar/python/src/keyczar/keyinfo.py,52,self.default_size = self.__sizes[0]
../keyczar/python/src/keyczar/keyinfo.py,58,HMAC_SHA1 = KeyType("HMAC_SHA1", 1, [256], 20)
../keyczar/python/src/keyczar/keyinfo.py,59,DSA_PRIV = KeyType("DSA_PRIV", 2, [1024], 48)
../keyczar/python/src/keyczar/keyinfo.py,60,DSA_PUB = KeyType("DSA_PUB", 3, [1024], 48)
../keyczar/python/src/keyczar/keys.py,270,cipher = self.ciphers.values()[0]
../keyczar/python/src/keyczar/keys.py,752,if delimited_message[0] != '\x01':
../keyczar/python/src/keyczar/keys.py,852,byte_string = util.BigIntToBytes(self.key.sign(emsa_encoded, None)[0])
../keyczar/python/src/keyczar/keys.py,1001,ciph_bytes = self.key.encrypt(data, None)[0]  # PyCrypto returns 1-tuple
../keyczar/python/src/keyczar/util.py,112,#  attributes [0] IMPLICIT Attributes OPTIONAL }
../keyczar/python/src/keyczar/util.py,122,seq = ParseASN1Sequence(decoder.decode(Base64WSDecode(pkcs8))[0])
../keyczar/python/src/keyczar/util.py,125,version = int(seq[0])
../keyczar/python/src/keyczar/util.py,128,[oid, alg_params] = ParseASN1Sequence(seq[1])
../keyczar/python/src/keyczar/util.py,129,key = decoder.decode(seq[2])[0]
../keyczar/python/src/keyczar/util.py,134,version = int(key[0])
../keyczar/python/src/keyczar/util.py,171,seq = ParseASN1Sequence(decoder.decode(Base64WSDecode(x509))[0])
../keyczar/python/src/keyczar/util.py,174,[oid, alg_params] = ParseASN1Sequence(seq[0])
../keyczar/python/src/keyczar/util.py,175,pubkey = decoder.decode(univ.OctetString(BinToBytes(seq[1].
../keyczar/python/src/keyczar/util.py,176,prettyPrint()[2:-3])))[0]
../keyczar/python/src/keyczar/util.py,237,seq = decoder.decode(sig)[0]
../keyczar/python/src/keyczar/util.py,427,array_len = struct.unpack(BIG_ENDIAN_INT_SPECIFIER, data[offset:offset + 4])[0]
../keyczar/python/src/keyczar/util.py,570,return result[0]
../keyczar/python/src/keyczar/util.py,697,return result[0]
../keyczar/python/tests/keyczar_tests/crypter_test.py,344,self.__testStreamEncryptAndStreamDecrypt('aes', self.all_data[0],
../keyczar/python/tests/keyczar_tests/crypter_test.py,351,char = chr(ord(ciphertext[2]) ^ 44)
../keyczar/python/tests/keyczar_tests/crypter_test.py,360,char = chr(ord(ciphertext[2]) ^ 44)
../keyczar/python/tests/keyczar_tests/interop_test.py,351,args = json.loads(argv[0])
../keyczar/python/tests/keyczar_tests/interop_test.py,369,sys.exit(main(sys.argv[1:]))  # sys.argv[0] is name of program
../keyczar/python/tests/keyczar_tests/signer_test.py,257,char = chr(ord(sig_bytes[1]) ^ 45)  # Munge key hash info in sig
../keyczar/python/tests/keyczar_tests/signer_test.py,258,bad_sig = util.Base64WSEncode(sig_bytes[0] + char + sig_bytes[2:])
../nimbostratus/core/celery_exploit/command.py,112,body = messages[0].get_body()
../nimbostratus/core/dump_credentials/command.py,42,security = meta_data.values()[0]
../nimbostratus/core/snapshot_rds/command.py,60,db = instances[0]
../nimbostratus/core/snapshot_rds/command.py,125,db = conn.get_all_dbinstances(db_name)[0]
../sqlviking/sqlviking.py,154,print sys.exc_info()[1]
../sqlviking/sqlviking.py,233,if conn.frag[0][IP].src == conn.sip and conn.frag[0][TCP].sport == conn.sport: #is response
../sqlviking/sqlviking.py,255,#self.printLn("[1] %s %s %s %s %s %s"%(c.db.ip,i[1],c.db.port,i[2],pkt[TCP].sport,pkt[TCP].flags))
../sqlviking/sqlviking.py,256,if c.db.ip == i[1] and c.db.port == i[2] and pkt[TCP].sport == i[2]: #make sure to inject after db response to increase likelihood of success
../sqlviking/sqlviking.py,257,#self.printLn("[2] attempting injection")
../sqlviking/sqlviking.py,258,#self.printLn(databaseList[c.db.dbType].encodeQuery(i[0]).encode('hex'))
../sqlviking/sqlviking.py,259,#sendp(Ether(dst=pkt[Ether].src,src=pkt[Ether].dst)/IP(dst=i[1],src=c.cip)/TCP(sport=c.cport,dport=i[2],flags=16,seq=c.nextcseq,ack=pkt[TCP].seq+len(pkt[TCP].payload)))
../sqlviking/sqlviking.py,260,sendp(Ether(dst=pkt[Ether].src,src=pkt[Ether].dst)/IP(dst=i[1],src=c.cip)/TCP(sport=c.cport,dport=i[2],flags=24,seq=c.nextcseq,ack=pkt[TCP].seq+len(pkt[TCP].payload))/DATABASELIST[c.db.dbType].encodeQuery(i[0]),iface=self.interface)
../sqlviking/sqlviking.py,309,l = l.strip().split('#')[0]
../sqlviking/sqlviking.py,323,dbQueue1.put(Database(l[0],l[1].strip(),int(l[2])))
../sqlviking/sqlviking.py,324,dbQueue2.put(Database(l[0],l[1],l[2]))
../sqlviking/sqlviking.py,328,settings[l.split('=')[0].strip()] = l.split('=')[1].strip()
../sqlviking/sqlviking.py,330,settings[l.split('=')[0].strip()] = l.split('=')[1].strip()
../sqlviking/sqlviking.py,487,#print sys.exc_info()[1]
../sqlviking/databases/mysql.py,67,if payloads[0] == '0e': #COM_PING
../sqlviking/databases/mysql.py,71,if payloads[0] == '00000002000000': #OK RESP
../sqlviking/databases/mysql.py,73,elif payloads[0][:2] == 'ff': #ERR RESP
../sqlviking/databases/mysql.py,75,elif len(payloads[0]) == 2 and int(payloads[0], 16) == self.getMysqlCols(payloads): #Query RESP
../sqlviking/databases/mysql.py,86,p = payloads[0][64:] #assumes HandshakeResponse41, no check for HandshakeResponse320. should be fine, 4.1 was released 2004. doubt any dbs are on a decade old version.
../sqlviking/databases/mysql.py,97,if payloads[0][:2] == COM_INIT_DB: #assumes schema is correct. no check for successful response from server
../sqlviking/databases/mysql.py,98,conn.setInstance(payloads[0][2:].decode('hex'))
../sqlviking/databases/mysql.py,99,ret.append('Switched to instance:\t%s'%payloads[0][2:].decode('hex'))
../sqlviking/databases/mysql.py,124,if payloads[0] == '00000002000000': #OK resp
../sqlviking/databases/mysql.py,139,ret.append(sys.exc_info()[1])
../sqlviking/databases/sqlserver.py,34,self.store("--SQLServ Resp--\n%s"%resp.messages[0]['message'])
../sqlviking/databases/pymysql/_compat.py,3,PY2 = sys.version_info[0] == 2
../sqlviking/databases/pymysql/_socketio.py,64,n = e.args[0]
../sqlviking/databases/pymysql/_socketio.py,83,if e.args[0] in _blocking_errnos:
../sqlviking/databases/pymysql/connections.py,127,print("method call[1]:", sys._getframe(1).f_code.co_name)
../sqlviking/databases/pymysql/connections.py,128,print("method call[2]:", sys._getframe(2).f_code.co_name)
../sqlviking/databases/pymysql/connections.py,129,print("method call[3]:", sys._getframe(3).f_code.co_name)
../sqlviking/databases/pymysql/connections.py,130,print("method call[4]:", sys._getframe(4).f_code.co_name)
../sqlviking/databases/pymysql/connections.py,131,print("method call[5]:", sys._getframe(5).f_code.co_name)
../sqlviking/databases/pymysql/connections.py,161,x = (struct.unpack('B', message1[i:i+1])[0] ^
../sqlviking/databases/pymysql/connections.py,162,struct.unpack('B', message2[i:i+1])[0])
../sqlviking/databases/pymysql/connections.py,188,rand_st = RandStruct_323(hash_pass_n[0] ^ hash_message_n[0],
../sqlviking/databases/pymysql/connections.py,189,hash_pass_n[1] ^ hash_message_n[1])
../sqlviking/databases/pymysql/connections.py,222,return struct.unpack('<H', n[0:2])[0]
../sqlviking/databases/pymysql/connections.py,225,return struct.unpack('<I', n + b'\0')[0]
../sqlviking/databases/pymysql/connections.py,228,return struct.unpack('<I', n)[0]
../sqlviking/databases/pymysql/connections.py,231,return struct.unpack('<Q', n)[0]
../sqlviking/databases/pymysql/connections.py,377,self.charsetnr = struct.unpack('<H', self.read(2))[0]
../sqlviking/databases/pymysql/connections.py,378,self.length = struct.unpack('<I', self.read(4))[0]
../sqlviking/databases/pymysql/connections.py,380,self.flags = struct.unpack('<H', self.read(2))[0]
../sqlviking/databases/pymysql/connections.py,426,self.server_status = struct.unpack('<H', self.packet.read(2))[0]
../sqlviking/databases/pymysql/connections.py,427,self.warning_count = struct.unpack('<H', self.packet.read(2))[0]
../sqlviking/databases/pymysql/connections.py,450,self.warning_count = struct.unpack('<h', from_packet.read(2))[0]
../sqlviking/databases/pymysql/connections.py,451,self.server_status = struct.unpack('<h', self.packet.read(2))[0]
../sqlviking/databases/pymysql/connections.py,508,if use_unicode is None and sys.version_info[0] > 2:
../sqlviking/databases/pymysql/connections.py,820,byte2int(packet_header[3])
../sqlviking/databases/pymysql/connections.py,823,bytes_to_read = struct.unpack('<I', bin_length)[0]
../sqlviking/databases/pymysql/connections.py,971,return self.server_thread_id[0]
../sqlviking/databases/pymysql/connections.py,1001,self.server_capabilities = struct.unpack('<H', data[i:i+2])[0]
../sqlviking/databases/pymysql/connections.py,1060,byte2int(packet_header[3])
../sqlviking/databases/pymysql/connections.py,1063,bytes_to_read = struct.unpack('<I', bin_length)[0]
../sqlviking/databases/pymysql/converters.py,243,if timestamp[4] == '-':
../sqlviking/databases/pymysql/converters.py,259,#return struct.unpack(">Q", b)[0]
../sqlviking/databases/pymysql/cursors.py,151,assert q_values[0] == '(' and q_values[-1] == ')'
../sqlviking/databases/pymysql/err.py,94,errno = struct.unpack('<h', data[1:3])[0]
../sqlviking/databases/pymysql/util.py,7,return struct.unpack("!B", b)[0]
../sqlviking/databases/pymysql/util.py,16,rv = bs[0]
../sqlviking/databases/pytds/tds.py,419,encoded = bytearray(ucs2_codec.encode(password)[0])
../sqlviking/databases/pytds/tds.py,452,if sys.version_info[0] >= 3:
../sqlviking/databases/pytds/tds.py,756,return self.unpack(_byte)[0]
../sqlviking/databases/pytds/tds.py,760,return self.unpack(_smallint_le)[0]
../sqlviking/databases/pytds/tds.py,764,return self.unpack(_usmallint_le)[0]
../sqlviking/databases/pytds/tds.py,768,return self.unpack(_int_le)[0]
../sqlviking/databases/pytds/tds.py,772,return self.unpack(_uint_le)[0]
../sqlviking/databases/pytds/tds.py,776,return self.unpack(_uint_be)[0]
../sqlviking/databases/pytds/tds.py,780,return self.unpack(_uint8_le)[0]
../sqlviking/databases/pytds/tds.py,784,return self.unpack(_int8_le)[0]
../sqlviking/databases/pytds/tds.py,789,return ucs2_codec.decode(buf)[0]
../sqlviking/databases/pytds/tds.py,798,return codec.decode(readall(self, size))[0]
../sqlviking/databases/pytds/tds.py,1293,return r.unpack(self._struct[size])[0]
../sqlviking/databases/pytds/tds.py,1313,return r.unpack(_flt4_struct)[0]
../sqlviking/databases/pytds/tds.py,1334,return r.unpack(_flt8_struct)[0]
../sqlviking/databases/pytds/tds.py,1379,return r.unpack(_flt8_struct)[0]
../sqlviking/databases/pytds/tds.py,1381,return r.unpack(_flt4_struct)[0]
../sqlviking/databases/pytds/tds.py,3577,self.conn._mars_enabled = bool(byte_struct.unpack_from(p, off)[0])
../sqlviking/databases/pytds/tds.py,4136,if len(msg) > 3 and _ord(msg[0]) == 5:
../sslyze/sslyze.py,110,xml_result = Element(command, exception=txt_result[1], title=plugin_instance.interface.title)
../sslyze/sslyze.py,127,result_list.sort(key=lambda result: result[0]) # Sort results
../sslyze/plugins/__init__.py,133,plugin_dir = plugins.__path__[0]
../sslyze/plugins/__init__.py,134,full_plugin_dir = os.path.join(sys.path[0], plugin_dir)
../sslyze/plugins/__init__.py,142,module_name = os.path.splitext(os.path.basename(source))[0]
../sslyze/plugins/__init__.py,146,full_name = os.path.splitext(source)[0].replace(os.path.sep,'.')
../sslyze/plugins/PluginCertInfo.py,115,x509_cert = x509_cert_chain[0]  # First cert is always the leaf cert
../sslyze/plugins/PluginCertInfo.py,197,cert_chain_xml.append(self._format_cert_to_xml(x509_cert_chain[0], 'leaf', self._shared_settings['sni']))
../sslyze/plugins/PluginCertInfo.py,297,value['publicKeySize'] = value['publicKeySize'].split(' bit')[0]
../sslyze/plugins/PluginCertInfo.py,329,self.FIELD_FORMAT('Cert Status:', ocsp_resp_dict['responses'][0]['certStatus']),
../sslyze/plugins/PluginCertInfo.py,330,self.FIELD_FORMAT('Cert Serial Number:', ocsp_resp_dict['responses'][0]['certID']['serialNumber']),
../sslyze/plugins/PluginCertInfo.py,331,self.FIELD_FORMAT('This Update:', ocsp_resp_dict['responses'][0]['thisUpdate']),
../sslyze/plugins/PluginCertInfo.py,332,self.FIELD_FORMAT('Next Update:', ocsp_resp_dict['responses'][0]['nextUpdate'])
../sslyze/plugins/PluginCertInfo.py,344,if policy[0] in EV_OIDS:
../sslyze/plugins/PluginCertInfo.py,450,if key[0].isdigit():  # Tags cannot start with a digit
../sslyze/plugins/PluginChromeSha1Deprecation.py,77,leafNotAfter = datetime.datetime.strptime(certChain[0].as_dict()['validity']['notAfter'], "%b %d %H:%M:%S %Y %Z")
../sslyze/plugins/PluginChromeSha1Deprecation.py,100,leafCertNotAfter = certChain[0].as_dict()['validity']['notAfter']
../sslyze/plugins/PluginChromeSha1Deprecation.py,165,cert_b64 = value.split("-----END CERTIFICATE-----")[0].strip()
../sslyze/plugins/PluginHSTS.py,73,hsts_header_split = hsts_header.split('max-age=')[1].split(';')
../sslyze/plugins/PluginHSTS.py,74,hsts_max_age = hsts_header_split[0].strip()
../sslyze/plugins/PluginHSTS.py,76,if len(hsts_header_split) > 1 and 'includeSubdomains' in hsts_header_split[1]:
../sslyze/plugins/PluginHSTS.py,105,sslConn.write(httpGetFormat(httpPath, target[0], httpAppend))
../sslyze/plugins/PluginHSTS.py,138,port = target[2]
../sslyze/plugins/PluginHSTS.py,140,target = (o.hostname, o.hostname, port, target[3])
../sslyze/plugins/PluginOpenSSLCipherSuites.py,116,ssl_cipher = str(job[1][2])
../sslyze/plugins/PluginSessionResumption.py,82,txt_result = [self.PLUGIN_TITLE_FORMAT(cmd_title)+' '+ txt_resum[0]]
../sslyze/plugins/PluginSessionResumption.py,127,txt_result.append(RESUM_FORMAT('With Session IDs:', txt_resum[0]))
../sslyze/plugins/PluginSessionResumption.py,269,session_string = ( (ssl_session.as_text()).split("Session-ID:") )[1]
../sslyze/plugins/PluginSessionResumption.py,270,session_id = ( session_string.split("Session-ID-ctx:") )[0].strip()
../sslyze/plugins/PluginSessionResumption.py,280,session_string = ( (ssl_session.as_text()).split("TLS session ticket:") )[1]
../sslyze/plugins/PluginSessionResumption.py,281,session_tls_ticket = ( session_string.split("Compression:") )[0]
../sslyze/utils/ServersConnectivityTester.py,71,host = (target_str.split(':'))[0] # hostname or ipv4 address
../sslyze/utils/ServersConnectivityTester.py,73,port = int((target_str.split(':'))[1])
../sslyze/utils/ServersConnectivityTester.py,90,ipv6_addr = target_split[0].split('[')[1]
../sslyze/utils/ServersConnectivityTester.py,91,if ':' in target_split[1]: # port was specified
../sslyze/utils/ServersConnectivityTester.py,93,port = int(target_split[1].rsplit(':')[1])
../sslyze/utils/ServersConnectivityTester.py,104,HOST_FORMAT = '{0[0]}:{0[2]}'
../sslyze/utils/ServersConnectivityTester.py,105,IP_FORMAT = '{0[1http://seclist.us/wp-admin/post-new.php?ip-geo-block-auth-nonce=367d263244#]}:{0[2]}'
../sslyze/utils/ServersConnectivityTester.py,200,ipAddr = sslCon._sock.getpeername()[0]
../sslyze/utils/ServersConnectivityTester.py,212,raise InvalidTargetError(targetStr, e[0])
../sslyze/utils/ServersConnectivityTester.py,216,raise InvalidTargetError(targetStr, e[0])
../sslyze/utils/ServersConnectivityTester.py,220,raise InvalidTargetError(targetStr, '{0}: {1}'.format(str(type(e).__name__), e[0]))
../sslyze/utils/SSLyzeSSLConnection.py,357,raise ProxyError(self.ERR_PROXY_OFFLINE.format(e[0]))
../sslyze/utils/SSLyzeSSLConnection.py,359,raise ProxyError(self.ERR_PROXY_OFFLINE.format(e[1]))
../sslyze/utils/SSLyzeSSLConnection.py,544,packet_len = struct.unpack(">H", data[2:])[0] - 4
../sslyze/utils/ThreadPool.py,116,function = job[0]
../sslyze/utils/ThreadPool.py,117,args = job[1]

rules.txt:

malloc\(
calloc\(
realloc\(
aligned_alloc\(
system\(
exec\(
execl\(
fork\(
vfork\(
spawn\(
strcpy\(
memset\(
memcpy\(
gets\(
getenv\(
putenv\(
free\(
readlink\(
rand\(
random\(
[A-Za-z0-9]\[[A-Za-z0-9_]+\]\s*=

 

Source : https://github.com/Atticuss

cloudget v0.72 released – python script to bypass cloudflare from command line.

$
0
0

python script to bypass cloudflare from command line, with extensive scraping, link harvesting, and recursive directory downloading. built upon cfscrape module.

python script to bypass cloudflare from command line

python script to bypass cloudflare from command line

install using pip:
– pip install cfscrape
– pip install BeautifulSoup
Support All OS/Platform
cloudget.py Script:

#!/usr/bin/env python
# cloudget v0.72
# release date: October 21, 2015
# author: vvn < lost @ nobody . ninja >

import sys, argparse, codecs, subprocess, os, re, random, requests, string, time, traceback
from datetime import date, datetime
from urlparse import urlparse
from subprocess import PIPE, check_output, Popen

try:
   import cfscrape
except:
   pass
   try:
      os.system('pip install cfscrape')
      import cfscrape
   except:
      print('unable to install the cfscrape module via pip. this script requires cfscrape to run. get it here: https://github.com/Anorov/cloudflare-scrape')
      sys.exit(1)

intro = '''\n
\033[40m\033[34m=============================================================\033[0m
\033[40m\033[32m=============================================================\033[0m
\033[40m\033[90;1m---------------------- CLOUDGET v0.72 -----------------------\033[0m
\033[40m\033[34;21m=============================================================\033[0m
\033[40m\033[32m=============================================================\033[0m
\033[40m\033[35;1m----------------------- author : vvn ------------------------\033[0m
\033[40m\033[35m--------------- lost [at] nobody [dot] ninja ----------------\033[0m
\033[40m\033[34;1m=============================================================\033[0m
\033[40m\033[37;21m---------------- support my work: buy my EP! ----------------\033[0m
\033[40m\033[35m-------------------- http://dreamcorp.us --------------------\033[0m
\033[40m\033[35m--------------- facebook.com/dreamcorporation ---------------\033[0m
\033[40m\033[37;1m------------------ thanks for the support! ------------------\033[0m
\033[40m\033[34;1m=============================================================\033[0m
\033[21m\n'''

if os.name == 'nt' or sys.platform == 'win32':
   intro = '''\n
   =============================================================
   =============================================================
   ---------------------- CLOUDGET v0.72 -----------------------
   =============================================================
   =============================================================
   ----------------------- author : vvn ------------------------
   --------------- lost [at] nobody [dot] ninja ----------------
   =============================================================
   ---------------- support my work: buy my EP! ----------------
   -------------------- http://dreamcorp.us --------------------
   --------------- facebook.com/dreamcorporation ---------------
   ------------------ thanks for the support! ------------------
   =============================================================
   \n'''

print(intro)

try:
   from bs4 import BeautifulSoup, UnicodeDammit
except:
   pass
   try:
      os.system('pip install BeautifulSoup')
      from bs4 import BeautifulSoup
   except:
      print('BeautifulSoup module is required to run the script.')
      sys.exit(1)

global cfurl
global usecurl
global writeout
global depth
global useproxy
global debug
global depth
global finished
global firsturl
usecurl = 0
writeout = 0
depth = 0
useproxy = 0
debug = 0
depth = 0
links = 0
finished = []

parser = argparse.ArgumentParser(description="a script to automatically bypass anti-robot measures and download links from servers behind a cloudflare proxy")

parser.add_argument('-u', '--url', action='store', help='[**REQUIRED**] full cloudflare URL to retrieve, beginning with http(s)://', required=True)
parser.add_argument('-o', '--out', help='save returned content to \'download\' subdirectory', action='store_true', required=False)
parser.add_argument('-l', '--links', help='scrape content returned from server for links', action='store_true', required=False)
parser.add_argument('-c', '--curl', nargs='?', default='empty', const='curl', dest='curl', metavar='CURL_OPTS', help='use cURL. use %(metavar)s to pass optional cURL parameters. (for more info try \'curl --manual\')', required=False)
parser.add_argument('-p', '--proxy', action='store', metavar='PROXY_SERVER:PORT', help='use a proxy to connect to remote server at [protocol]://[host]:[port] (example: -p http://localhost:8080) **only use HTTP or HTTPS protocols!', required=False)
parser.add_argument('-d', '--debug', help='show detailed stack trace on exceptions', action='store_true', required=False)
parser.add_argument('--version', action='version', version='%(prog)s v0.70 by vvn <lost@nobody.ninja>, released October 12, 2015.')

args = parser.parse_args()
if args.out:
   writeout = 1
if args.links:
   links = 1
if args.debug:
   debug = 1
if args.proxy:
   useproxy = 1
   proxy = args.proxy
   if not re.search(r'^(http[s]?|socks(4[a]?|5)?)', proxy):
      print("\ninvalid argument supplied for proxy server. must specify as [protocol]://[server]:[port], where [protocol] is either http or https. (for example, http://127.0.0.1:8080) \n")
      sys.exit(1)
   x = urlparse(args.proxy)
   proxyhost = str(x.netloc)
   proxytype = str(x.scheme)
if args.curl in 'empty':
   usecurl = 0
elif args.curl is 'curl':
   usecurl = 1
else:
   usecurl = 1
   global curlopts
   curlopts = args.curl

cfurl = args.url
firsturl = cfurl

print("\nURL TO FETCH: %s \n" % cfurl)

if 'proxy' in locals():
   if 'https' in proxytype:
      proxystring = {'https': '%s' % proxyhost}
   else:
      proxystring = {'http': '%s' % proxyhost}
   print("using %s proxy server: %s \n" % (str(proxytype.upper()), str(proxyhost)))
else:
   proxystring = None
   print("not using proxy server \n")

if not re.match(r'^http$', cfurl[:4]):
   print("incomplete URL provided: %s \r\ntrying with http:// prepended..")
   cfurl = "http://" + cfurl

depth = 0

def getCF(cfurl, links):

   checkcurl = ''
   checklinks = ''
   if links == 1:
      checklinks = 'yes'
      global followdirs
   else:
      checklinks = 'no'
   if usecurl == 1:
      checkcurl = 'yes'
   else:
      checkcurl = 'no'

   if debug == 1:
      print("\n\033[32;1mlocals: \n\033[0m")
      for name, val in locals().iteritems():
         print("\033[35;1m%s:\033[32;21m %s \033[0m" % (str(name), str(val)))
      print("\n\033[32;1mglobals: \n\033[0m")
      for name, val in globals().iteritems():
         print("\n\033[35;1m%s:\033[36;21m %s \033[0m" % (str(name), str(val)))
      print('\033[0m\r\n')
      print("\n\033[31;1musing curl:\033[31;21m\033[33m %s \033[0m\n" % checkcurl)
      print("\n\033[34;1mharvesting links:\033[34;21m\033[33m %s \033[0m\n" % checklinks)

   p = urlparse(cfurl)
   part = p.path.split('/')[-1]
   path = p.path.strip(part)
   if '/' not in path[:1]:
      path = '/' + path
   urlfqdn = p.scheme + '://' + p.netloc
   parent = urlfqdn + path
   childdir = path.strip('/')
   domaindir = os.path.join('download', p.netloc)
   parentdir = os.path.join(domaindir, childdir)
   
   if firsturl in finished and cfurl in firsturl:
      print('\nABORTING: already retrieved %s!\n') % firsturl
      sys.exit(1)

   global outfile
   outfile = cfurl.split('?')[0]
   outfile = outfile.split('/')[-1]

   if writeout == 1:
      global existing
      global checkresume
      p = urlparse(cfurl)
      if not os.path.exists('download'):
         os.makedirs('download')
      if not os.path.exists(domaindir):
         os.makedirs(domaindir)
      filename = cfurl.lstrip('https:').strip('/')
      filename = filename.rstrip(outfile)
      dirs = filename.split('/')
      a = 'download'
      i = 1
      for dir in dirs:
         while i < len(dirs):
            if not re.search(r'^(.*)\.[.]+$', dir):
               a = os.path.join(a, dir)
               if not os.path.exists(a):
                  os.makedirs(a)
               i += 1
            else:
               break
      if len(outfile) < 1 or outfile in p.netloc:
         outfile = 'index.html'
         outdir = filename.strip()
      else:
         part = outfile
         outdir = filename.rstrip(part)
      fulloutdir = os.path.join('download', outdir)
      outfile = outfile.strip('/')
      if not os.path.exists(fulloutdir):
         os.makedirs(fulloutdir)
      print("output file: %s \n" % outfile)
      global savefile
      savefile = os.path.join(fulloutdir, outfile)
      cwd = os.getcwd()
      fullsavefile = os.path.join(cwd, savefile)
      print("full path to output file: %s \n" % fullsavefile)
      
   else:
      if len(outfile) < 1 or outfile in p.netloc:
         outfile = 'index.html'

   scraper = cfscrape.create_scraper()
   ualist = [
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36',
'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko',
'Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',
'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',
'Mozilla/5.0 (compatible; MSIE 9.0; AOL 9.7; AOLBuild 4343.19; Windows NT 6.1; WOW64; Trident/5.0; FunWebProducts)',
'Mozilla/5.0 (Windows NT 6.3; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36',
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36',
'Mozilla/5.0 (Windows NT 6.1 WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A',
'Mozilla/5.0 (X11; SunOS i86pc; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; FreeBSD i386; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; Linux i586; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; OpenBSD amd64; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; OpenBSD alpha; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; OpenBSD sparc64; rv:38.0) Gecko/20100101 Firefox/38.0',
'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20121202 Firefox/17.0 Iceweasel/17.0.1',
'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16',
'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14 Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.14',
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14'
]
   n = random.randint(0,len(ualist)) - 1
   ua = ualist[n].strip()
   
   def cfcookie(cfurl):
      sess = requests.session()
      p = urlparse(cfurl)
      mnt = p.scheme + '://'
      sess.mount(mnt, cfscrape.CloudflareAdapter())
      sess.get(cfurl)
      #sess.cookies
      l = sess.get(cfurl)
      b = sess.cookies
      if b:
         c = b.items()
         for s, t in c:
            cs = u''.join(s).encode('utf-8').strip()
            ct = u''.join(t).encode('utf-8').strip()
            print('\033[34;1m' + str(cs) + '\033[0m')
            print('\033[32;1m' + str(ct) + '\033[0m')
         cookies = "\"cf_clearance\"=\"%s\"" % sess.cookies.get('cf_clearance')
         if sess.cookies.get('__cfduid'):
            cookies = cookies + ";\"__cfduid\"=\"%s\"" % sess.cookies.get('__cfduid')
      else:
         cookies = None
      return cookies

   def getpage(cfurl):      
      r = scraper.get(cfurl, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
      if 'text' in r.headers.get('Content-Type'):
         #rt = unicode(r.content.lstrip(codecs.BOM_UTF8), 'utf-8')
         #rt = UnicodeDammit.detwingle(r.text)
         html = BeautifulSoup(r.text, "html.parser")
         print('\r\n--------------------------------------------------------\r\n')
         if debug == 1:
            orenc = str(html.original_encoding)
            print('\n\033[40m\033[35;1mORIGINAL ENCODING: %s \033[0m\n' % orenc)
         bs = html.prettify(formatter=None)
         bsu = u''.join(bs).encode('utf-8').strip()
         print(bsu)
         print('\r\n--------------------------------------------------------\r\n')
      else:
         found = -1
      
      if debug == 1:
         print('\n\033[34mDEBUG: finished list length: \033[37;1m%d \033[0m\n' % len(finished))
         
   # cURL request - using cURL for cloudflare URLs doesn't seem to work
   if usecurl == 1:

      r = scraper.get(cfurl, stream=True, verify=False, allow_redirects=True, proxies=proxystring)
      print("status: ")
      print(r.status_code)
      print("\ngetting cookies for %s.. \n" % cfurl)
      req = "GET / HTTP/1.1\r\n"
      cookie_arg = cfcookie(cfurl)
      if cookie_arg:
         req += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_arg, ua)
         houtput = check_output(["curl", "--cookie", cookie_arg, "-A", ua, "-s", cfurl])
         curlstring = '--cookie \'' + cookie_arg + '\' -A \'' + ua + '\' -k '
         if 'curlopts' in locals():
            curlstring = '--cookie \'' + cookie_arg + '\' ' + curlopts + ' -A \'' + ua + '\' -k '
      else:
         cookie_arg = cfscrape.get_cookie_string(cfurl)
         curlstring = '-A \'' + ua + '\' -k '
         if 'curlopts' in locals():
            curlstring = '-# ' + curlopts + ' -A \'' + ua + '\' -k '
         if proxy:
            curlstring += '-x %s ' % proxy
         if cookie_arg:
            curlstring += '--cookie \'' + cookie_arg + '\' '
            req += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_arg, ua)
            houtput = check_output(["curl", "-A", ua, "--cookie", cookie_arg, "-s", cfurl])
         else:
            req += "User-Agent: %s\r\n" % ua
            houtput = check_output(["curl", "-A", ua, "i", "-s", cfurl])
      
      print('\n\033[34;1msubmitting headers:\n\033[21m\033[37m%s \033[0m\n' % req)
      print("\nRESPONSE: \n%s \n" % str(houtput))
      msg = "\nfetching %s using cURL.. \n" % cfurl
      if writeout == 1:
         if os.path.exists(savefile):
            resumesize = os.path.getsize(savefile)
            print("\n%s already exists! \n" % outfile)
            print("\nlocal file size: %s bytes \n" % str(resumesize))
            if 'existing' not in globals():
               existing = 0
            if existing == 0:
               checkresume = raw_input('choose an option [1-3]: 1) resume download, 2) start new download, 3) skip. --> ')
               while not re.match(r'^[1-3]$', checkresume):
                  checkresume = raw_input('invalid input. enter 1 to resume, 2 to start new, or 3 to skip --> ')
               checkexist = raw_input('\ndo this for all downloads? Y/N --> ')
               while not re.match(r'^[YyNn]$', checkexist):
                  checkexist = raw_input('invalid entry. enter Y to use same action on existing files or N to always ask --> ')
               if checkexist.lower() == 'y':
                  existing = 1
               else:
                  existing = 0
            if checkresume == '1':
               curlstring = curlstring + '-C - -o \'' + savefile + '\' '
               msg = "\ntrying to resume download using cURL to %s.. \n" % savefile
            elif checkresume == '2':
               curlstring = curlstring + '-O '
               msg = "\nstarting new download to %s.. \n" % savefile
            else:
               msg = "\nskipping download for %s \n" % outfile
         else:
            curlstring = curlstring + '-O '
            msg = "\ntrying to download using cURL to %s.. \n" % savefile
         #command_text = 'cd download && { curl ' + curlstring + cfurl + ' ; cd -; }'
      else:
         msg = "\nfetching %s using cURL.. \n" % cfurl
      command_text = 'curl ' + curlstring + '-s ' + cfurl
      print(msg)
      print("\nsubmitting cURL command string: \n%s \n" % command_text)
      output = Popen(command_text, shell=True, stdout=PIPE, stderr=PIPE, stdin=PIPE)
      result, errors = output.communicate()
      if result is not None:
         if writeout == 1 and not re.search(r'(\.(htm)l?|\.php|\.txt|\.xml|\.[aj](sp)x?|\.cfm|\.do|\.md|\.json)$',outfile):
            print('\nsaved file: %s \n' % outfile)
         else:
            ht = BeautifulSoup(r.content, "html.parser")
            htpr = ht.prettify(formatter=None)
            htpr = u''.join(htpr).encode('utf-8').strip()
            print(htpr)
      else:
         if errors:
            print("\nerror: %s\n" % str(errors))
      finished.append(cfurl)

   elif usecurl == 0 and writeout == 1:
      getkb = lambda a: round(float(float(a)/1024),2)
      getmb = lambda b: round(float(float(b)/1048576),2)
      print("\ngetting %s... \n" % cfurl)
      if os.path.exists(savefile): # FOUND SAVED FILE
         # GET SIZE OF EXISTING LOCAL FILE
         resumesize = os.path.getsize(savefile)
         ksize = getkb(resumesize)
         msize = getmb(resumesize)
         sizeqt = 'kb'
         fsize = ksize
         if msize > 1:
            sizeqt = 'mb'
            fsize = msize
         existsize = str(fsize) + ' ' + sizeqt
         print("\n%s already exists! \n" % outfile)
         print("\nlocal file size: %s \n" % existsize)
         if 'existing' not in globals():
            existing = 0
         if existing == 0:
            checkresume = raw_input('choose an option [1-3]: 1) resume download, 2) start new download, 3) skip. --> ')
            while not re.match(r'^[1-3]$', checkresume):
               checkresume = raw_input('invalid input. enter 1 to resume, 2 to start new, or 3 to skip --> ')
            checkexist = raw_input('\ndo this for all downloads? Y/N --> ')
            while not re.match(r'^[YyNn]$', checkexist):
               checkexist = raw_input('invalid entry. enter Y to use same action on existing files or N to always ask --> ')
            if checkexist.lower() == 'y':
               existing = 1
            else:
               existing = 0

         if checkresume == '1': # RESUME DOWNLOAD AT LAST LOCAL BYTE
            dld = int(resumesize)
            resumeheader = {'Range': 'bytes=%s-' % str(dld)}
            dlmsg = "\nattempting to resume download for %s. this may take awhile depending on file size... \n" % outfile
            df = open(savefile, 'a+b')
         elif checkresume == '2': # DISREGARD SAVED FILE, START DOWNLOAD FROM TOP
            resumeheader = None
            dlmsg = "\nwriting content to \'download\' directory as file %s. this may take awhile depending on file size... \n" % outfile
            dld = 0
            df = open(savefile, 'wb+')
         else: # SKIPPING DOWNLOAD
            resumeheader = None
            df = open(savefile, 'r+')
            dlmsg = "\nskipping download for %s\n" % outfile

      else: # NEW DOWNLOAD REQUEST
         checkresume = '2'
         dld = 0
         df = open(savefile, 'wb+')
         resumeheader = None
         dlmsg = "\nwriting content to \'download\' directory as file %s. this may take awhile depending on file size... \n" % outfile

      print(dlmsg)

      if not checkresume == '3': # IF NOT SKIPPING
         r = scraper.get(cfurl, stream=True, headers=resumeheader, verify=False, allow_redirects=True, proxies=proxystring)
         filesize = r.headers.get('Content-Length')
         if checkresume == '1' and filesize is not None:
            filesize = int(filesize) + int(resumesize)
         filetype = r.headers.get('Content-Type')
         start = time.clock()
         #today = datetime.now()
         #startdate = date.strftime(today,"%m-%d-%Y %H:%M:%S ")
         #print("start time: %s \n" % startdate)
         with df as dlfile:
            if filesize is not None and 'text' not in filetype:
               bytesize = int(filesize)
               kbsize = getkb(bytesize)
               mbsize = getmb(bytesize)
               qt = 'bytes'
               size = bytesize
               if kbsize > 10:
                  qt = 'kb'
                  size = kbsize
                  if mbsize > 1 :
                     qt = 'mb'
                     size = mbsize
               print('\nfile size: %d %s \n' % (size, qt))
               for chunk in r.iter_content(chunk_size=4096):
                  if chunk:
                     dld += len(chunk)
                     dlfile.write(chunk)
                     done = int((50 * int(dld)) / int(filesize))
                     dldkb = getkb(dld)
                     dldmb = getmb(dld)
                     unit = 'b'
                     prog = str(round(dld,2))
                     if dldkb > 1:
                        unit = 'kb   '
                        prog = str(round(dldkb,2))
                        if dldmb > 1:
                           unit = 'mb   '
                           prog = str(round(dldmb,2))
                     sys.stdout.write("\rdownloaded: %s %s   [%s%s] %d kb/s\r" % (prog, unit, '#' * done, ' ' * (50 - done), 0.128 * (dldkb / (time.clock() - start))))
                     dlfile.flush()
                     os.fsync(dlfile.fileno())
                  else:
                     break
            elif filesize and 'text' in filetype:
               dlfile.write(r.content)
               dlfile.flush()
               os.fsync(dlfile.fileno())
            else:
               for chunk in r.iter_content(chunk_size=1024):
                  if chunk:
                     dld += len(chunk)
                     dlfile.write(chunk)
                     dlfile.flush()
                     os.fsync(dlfile.fileno())
                  else:
                     break
         print("\r\nfile %s saved! \n" % outfile)
         endclock = time.clock()
         fin = endclock - start
         totalsecs = fin
         if debug == 1:
            print("\n\033[34;1mSTART: \033[35;1m %s \033[0;21m\n" % str(start))
            print("\n\033[34;1mEND: \033[35;1m %s \033[0;21m\n" % str(endclock))
         elapsed = "%s seconds " % str(totalsecs)
         if totalsecs > 60:
            totalmins = float(totalsecs / 60)
            mins = int(totalmins)
            if mins == 1:
               unitmin = "minute"
            else:
               unitmin = "minutes"
            strmin = str(mins) + " " + str(unitmin)
            secs = round((totalsecs % 60), 4)
            elapsed = str(strmin) + " " + str(secs)
            if totalmins > 60:
               totalhours = float(totalmins / 60 )
               hours = int(totalmins / 60)
               if hours == 1:
                  unithr = "hour"
               else:
                  unithr = "hours"
               strhr = str(hours) + " " + str(unithr)
               mins = round((totalmins % 60),3)
               elapsed = "%s, %s mins, %s secs" % (strhr, mins, secs)
            else:
               hours = 0
         else:
            hours = 0
            mins = 0
            secs = round(totalsecs,3)
            elapsed = "%s seconds" % str(secs)
         #ended = datetime.now()
         #enddate = date.strftime(ended,"%m-%d-%Y %H:%M:%S ")
         #print("end time: %s \n" % enddate)
         print("\ndownload time elapsed: %s \n" % str(elapsed))
         time.sleep(4)
         print('\r\n--------------------------------------------------------\r\n')

      else:
         print("\nskipped download from %s.\r\nfile has not been modified.\n" % cfurl)
      
      getpage(cfurl)
      finished.append(cfurl)
      
   else:
      getpage(cfurl)
      finished.append(cfurl)

   def getlinks(cfurl):
      r = scraper.get(cfurl, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
      html = BeautifulSoup(r.text, "html.parser")
      if debug == 1:
         orenc = str(html.original_encoding)
         print('\n\033[40m\033[35;1mORIGINAL ENCODING: %s \033[0m\n' % orenc)
      bs = html.prettify(formatter=None)
      linkresult = html.findAll('a')
      if len(linkresult) > 0:
         foundlinks = len(linkresult)
         print('\nFOUND %s LINKS AT %s:\n' % (str(foundlinks), cfurl))
         for link in linkresult:
            b = link.get('href')
            b = str(b)
            if b not in cfurl and not re.match(r'^(\.\.)?\/$', b):
               print(b)
         print('')
      else:
         print('\nNO LINKS FOUND.\n')
         foundlinks = 0
      time.sleep(4)
      return foundlinks

   def selectdir(geturl):
      r = scraper.get(geturl, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
      html = BeautifulSoup(r.text, "html.parser")
      if debug == 1:
         orenc = str(html.original_encoding)
         print('\n\033[40m\033[35;1mORIGINAL ENCODING: %s \033[0m\n' % orenc)
      findlinks = html.findAll('a')
      dirlist = []
      for link in findlinks:
         b = link.get('href')
         if not re.match(r'^((\.\.)?\/)$', str(b)):
            if re.search(r'^(.*)(\/)$', str(b)):
               dirlist.append(b)

      p = urlparse(geturl)
      part = p.path.split('/')[-1]
      path = p.path.rstrip(part)
      if '/' not in path[:1]:
         path = '/' + path
      urlfqdn = p.scheme + '://' + p.netloc
      parent = urlfqdn + path

      i = 0
      dirtotal = len(dirlist)
      if dirtotal > 0:
         print('\nFOUND %d DIRECTORIES: \n' % dirtotal)
         while i < dirtotal:
            sel = i + 1
            print(str(sel) + ' - ' + str(dirlist[i]))
            i += 1
         print('')
         lim = dirtotal + 1
         matchtop = r'^(%s)(\/)?$' % urlfqdn
         if not re.match(matchtop,geturl):
            print('0 - BACK TO PARENT DIRECTORY \n')
            startsel = '0-%d' % dirtotal
         else:
            startsel = '1-%d' % dirtotal
         selectdir = raw_input('make a selection [%s] --> ' % startsel)
         if not int(selectdir) in range(0, lim):
            selectdir = raw_input('invalid entry. please enter a selection %s --> ' % startsel)
         if selectdir == '0':
            geturl = parent
            subcont = 0
         else:
            n = int(selectdir) - 1
            usedir = dirlist[n]
            geturl = parent + usedir
            subcont = 1
      else:
         print('\nNO DIRECTORIES FOUND. using current directory.. \n')
         subcont = 0
         geturl = parent + part
      return geturl, subcont, parent
      
   def getparent(cfurl):
      cff = re.match(r'^http:\/\/(.*)(\/\/)(.*)', cfurl)
      if cff:
         cf = 'http://' + str(cff.group(1)) + '/' + str(cff.group(3))
      else:
         cf = str(cfurl)
      p = urlparse(cf)
      if '/' not in p.path[-1:]:
         part = p.path.split('/')[-1]
         path = p.path.rstrip(part)
      else:
         path = p.path
      if '/' not in path[:1]:
         path = '/' + path
      urlfqdn = p.scheme + '://' + p.netloc
      parent = urlfqdn + path + '/'
      return parent

   def followlinks(bx):
      p = urlparse(bx)
      if '/' not in p.path[-1:]:
         part = p.path.split('/')[-1]
         path = p.path.rstrip(part)
      else:
         path = p.path
      if '/' not in path[:1]:
         path = '/' + path
      urlfqdn = p.scheme + '://' + p.netloc
      parent = urlfqdn + path + '/'
      s = scraper.get(bx, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
      print('\n----------------------------------------------------------- \n')
      print(s)
      print('\n')
      shtml = BeautifulSoup(s.text, "html.parser")
      if debug == 1:
         orenc = str(shtml.original_encoding)
         print('\n\033[40m\033[35;1mORIGINAL ENCODING: %s \033[0m\n' % orenc)
      print('\n----------------------------------------------------------- \n')
      sfindlinks = shtml.findAll('a')
      slen = len(sfindlinks)
      sdirs = []
      si = 0
      while si < slen:
         for slink in sfindlinks:
            if debug == 1:
               print('\n\033[34;1mSLINK LOOP\r\n\033[32;21m* si = %d, si < %d\033[0m\n' % (si, slen))
            sl = slink.get('href')
            si += 1
            if sl:
               if not re.search(r'^((\.\.)?\/)$', str(sl)):
                  if '/' in bx[-1:]:
                     if 'http' not in sl[:4]:
                        sl = sl.lstrip('/')
                        sx = bx + sl
                     else:
                        sx = sl
                     print(sx)
                     getCF(sx, 0)
                     ss = scraper.get(sx, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
                     bb = BeautifulSoup(ss.text, "html.parser")
                     if bb is not None:
                        if debug == 1:
                           orenc = str(bb.original_encoding)
                           print('\n\033[40m\033[35;1mORIGINAL ENCODING: %s \033[0m\n' % orenc)
                        if bb.html is not None:
                           pagehead = bb.html.head.contents
                           if pagehead is not None and len(pagehead) > 1:
                              pagehead = u''.join(pagehead).encode('utf-8').strip()
                              pagetitle = re.search(r'<title>(.*)<\/title>', pagehead)
                              pagetitle = str(pagetitle.group(1))
                              bigtitle = pagetitle.upper()
                              titlestars = lambda a: '*' * (len(str(a)) + 4)
                              pagestars = titlestars(pagetitle)
                              print('\n\033[40m\033[33m%s\033[0m\n\033[34;1m* %s *\033[0m \n\033[40m\033[33;21m%s\033[0m\n' % (pagestars, bigtitle, pagestars))
                              
                        sb = bb.find_all('a', href = re.compile(r'.+$'))
                        sblen = len(sb)
                        if sblen > 0:
                           n = 0
                           while n < sblen:
                              for sbl in sb:
                                 if debug == 1:
                                    print('\n\033[35;1mSBL LOOP\r\n\033[37;21m* n = %d, n < %d \033[0m\n' % (n, sblen))
                                 if sbl is not None:
                                    sr = sbl.get('href').strip()
                                    sr = str(sr)
                                    print('\n* %s \n') % sr
                                    if not re.search('http', sr[:4]):
                                       parent = getparent(sx)
                                       srs = sr.lstrip('/')
                                       sr = parent + srs
                                    if re.match(r'([^.]+\/)$', str(sr)):
                                       followlinks(sr)
                                       sdirs.append(sr)
                                    else:
                                       if '/' not in sr[-1:]:
                                          getCF(sr, 0)
                                          sdirs.append(sr)
                                    n += 1
                                 else:
                                    n += 1
                                    continue
                     else:
                        n += 1
                        continue
                        
                  elif 'Error-222' in bx:
                     print('\nuh-oh. might have triggered a flag with cloudflare.\n')
                     for i in xrange(10,0,-1):
                        time.sleep(1)        
                        print('delaying request for %d seconds.. \r' % i)
                        sys.stdout.flush()
                     break
                  else:
                     if not re.search('http', str(sl[:4])):
                        parent = getparent(bx)
                        if '/' in sl[:1]:
                           sl = sl.lstrip('/')
                        sx = parent + sl
                     else:
                        sx = str(sl)

                  sx = str(sx)
                  sdirs.append(sx)
                  print(sx)
                  print('\n----------------------------------------------------------- \n')              
                  getCF(sx, 0)
               si += 1

               #if re.search(r'^(.*)(\/)$', str(bx)):
            else:
               print('\nno links found at %s \n' % str(slink))
               si += 1
               continue

      for sd in sdirs:
         if '/' in sd[-1:]:
            print('\nfollowing directory: %s \n' % sd)
            followlinks(sd)
            getCF(sd, 1)
         else:
            print('\nrequesting link: %s \n' % sd)
            getCF(sd, 0)
      return sdirs

   if links == 1:
      if 'found' not in locals():
         found = getlinks(cfurl)
         keep = 1
         depth = 0
      while found > 0 and keep is not 0:
         follow = raw_input('fetch harvested links? enter Y/N --> ')
         while not re.search(r'^[yYnN]$', follow):
            follow = raw_input('invalid entry. enter Y to follow harvested links or N to quit --> ')
         if follow.lower() == 'n':
            break
         elif follow.lower() == 'y':
            r = scraper.get(cfurl, stream=True, verify=False, proxies=proxystring, allow_redirects=True)
            html = BeautifulSoup(r.text, "html.parser", from_encoding='utf-8')
            findlinks = html.findAll('a')
            s = []
            checkfordirs = 0
            if len(findlinks) > 0:
               for d in findlinks:
                  dd = d.get('href')
                  if re.search(r'^(.*)(\/)$', str(dd)):
                     if not re.match(r'^((\.\.)?\/)$', str(dd)) and dd not in cfurl:
                        if 'http' not in dd[:4]:
                           dd = parent + dd
                        s.append(str(dd))
                        checkfordirs = 1

            if len(s) > 0 and checkfordirs == 1:
               if 'followdirs' not in locals():
                  followdirs = raw_input('follow directories? enter Y/N --> ')
                  while not re.search(r'^[yYnN]$', followdirs):
                     followdirs = raw_input('invalid entry. enter Y to follow directories or N to only retrieve files --> ')
                  if followdirs.lower() == 'y':
                     depth = 1
                  else:
                     depth = 0
               else:
                  if followdirs.lower() == 'y':
                     depth += 1
            else:
               followdirs = 'n'

            if debug == 1:
               print("\n\033[35;1mdepth:\033[37;21m %d \033[0m\n" % depth)
            if findlinks:
               total = len(findlinks)
            else:
               total = 0
            if writeout == 1:
               if not os.path.exists(parentdir):
                  os.makedirs(parentdir)
            if total > 0:
               if followdirs.lower() == 'n':
                  for link in findlinks:
                     b = link.get('href')
                     if b:
                        if not re.search(r'^(.*)(\/)$', str(b)):
                           b = parent + b
                           print("\nrequesting harvested URL: %s \r\n(press CTRL + C to skip)\n" % b)
                           try:
                              getCF(b, links)
                           except KeyboardInterrupt:
                              try:
                                 print("\r\nskipping %s... press CTRL + C again to quit.\n" % b)
                                 continue
                              except KeyboardInterrupt:
                                 print("\nrequest cancelled.\n")
                                 break
                           except (KeyboardInterrupt, SystemExit):
                              print("\r\nrequest cancelled by user\n")
                              keep = 0
                              break
                           except Exception, e:
                              print("\r\nan exception has occurred: %s \n" % str(e))
                              raise
                        else:
                           continue
                     else:
                        break
                     total = total - 1
                  links = 1
               elif followdirs.lower() == 'y' and depth > 0:
                  choosedir = raw_input("choose subdirectory? Y/N --> ")
                  while not re.match(r'^[YyNn]$', choosedir):
                     choosedir = raw_input("invalid entry. enter Y to pick subdirectory or N to download everything --> ")
                  if choosedir.lower() == 'n':
                     links = 0
                     for link in findlinks:
                        b = link.get('href')
                        if b:
                           bx = parent + b

                           if not re.match(r'^((\.\.)?\/)$', str(b)):
                              getdirs = followlinks(bx)
                              while len(getdirs) > 0:
                                 for sd in getdirs:
                                    getdirs = followlinks(sd)
                              print("\nrequesting harvested URL: %s \r\n(press CTRL + C to skip)\n" % bx)
                              try:
                                 getCF(bx, links)
                                 if debug == 1:
                                    print("\nfound: %d \n" % found)
                              except KeyboardInterrupt:
                                 try:
                                    print("\r\nskipping %s... press CTRL + C again to quit.\n" % bx)
                                    continue
                                 except KeyboardInterrupt:
                                    print("\nrequest cancelled.\n")
                                    sys.exit()
                              except (KeyboardInterrupt, SystemExit):
                                 print("\r\nrequest cancelled by user\n")
                                 break
                              except Exception, e:
                                 print("\r\nan exception has occurred: %s \n" % str(e))
                                 raise
                                 sys.exit(1)
                     links = 1
                     found = found - 1
                  else:
                     subcont = 1
                     geturl = cfurl
                     while subcont is not 0:
                        depth += 1
                        if subcont < 1:
                           break
                        geturl, subcont, parent = selectdir(geturl)
                        if debug == 1:
                           print("\ndepth: %d \n" % depth)
                        checksubdir = raw_input("enter 1 to select this directory, 2 to choose a subdirectory, or 3 to go back to parent directory --> ")
                        while not re.match(r'^[1-3]$', checksubdir):
                           checksubdir = raw_input("invalid input. enter a value 1-3 --> ")
                        if checksubdir is not 2:
                           if checksubdir == '3':
                              p = urlparse(geturl)
                              droppath = p.path.split('/')[-1]
                              geturl = geturl.rstrip(droppath)
                           break

                     print('\nrequesting harvested URL: %s \r\n(press CTRL + C to skip) \n' % geturl)
                     try:
                        getCF(geturl, links)
                        found = found - 1
                     except KeyboardInterrupt:
                        try:
                           print("\r\nskipping %s... press CTRL + C again to quit.\n" % geturl)
                           continue
                        except KeyboardInterrupt:
                           print("\nrequest cancelled.\n")
                           break
                     except (KeyboardInterrupt, SystemExit):
                        print("\r\nrequest cancelled by user\n")
                        keep = 0
                        break
                     except Exception, e:
                        print("\r\nan exception has occurred: %s \n" % str(e))
                        raise
                        sys.exit(1)
                     finally:
                        depth -= 1
                        if debug == 1:
                           print("\ndepth: %d \n" % depth)

               elif followdirs.lower() == 'y' and depth < 1:
                  for link in findlinks:
                     b = link.get('href')
                     if not re.  match(r'^((\.\.)?\/)$', str(b)):
                        bx = parent + b
                        print("\nrequesting harvested URL: %s \r\n(press CTRL + C to skip)\n" % bx)
                        try:
                           getCF(bx, links)
                        except KeyboardInterrupt:
                           try:
                              print("\r\nskipping %s... press CTRL + C again to quit.\n" % bx)
                              continue
                           except KeyboardInterrupt:
                              print("\nrequest cancelled.\n")
                              break
                        except (KeyboardInterrupt, SystemExit):
                           print("\r\nrequest cancelled by user\n")
                           break
                        except Exception, e:
                           print("\r\nan exception has occurred: %s \n" % str(e))
                           raise
                           sys.exit(1)
                        finally:
                           links = 0
                     else:
                        continue
                     found = found - 1
                     if debug == 1:
                        print("\nfound: %d \n" % found)

               else:
                  for link in findlinks:
                     b = link.get('href')
                     links = 0
                     if debug == 1:
                        print("\nfound: %d \n" % found)
                     while b:
                        if not re.search(r'^(.*)(\/)$', str(b)):
                           b = parent + b
                           print("\nrequesting harvested URL: %s \r\n(press CTRL + C to skip)\n" % b)
                           try:
                              getCF(b, links)
                           except KeyboardInterrupt:
                              print("\r\nskipping %s...\n" % b)
                              continue
                           except (KeyboardInterrupt, SystemExit):
                              print("\r\nrequest cancelled by user\n")
                              break
                           except Exception, e:
                              print("\r\nan exception has occurred: %s \n" % str(e))
                              raise
                        else:
                           continue
                     if debug == 1:
                        found = found - 1
                     print("\nfound: %d \n" % found)
                  links = 1
            else:
               print("\ndid not find any links\n")
               found = found - 1
               if debug == 1:
                  print("\nfound: %d \n" % found)
               keep = 0
               break

         else:
            cpath = p.path.strip('/')
            cpaths = cpath.split('/')
            lastpath = cpaths[-1]
            if len(lastpath) < 1 and len(cpaths) > 1:
               lastpath = cpaths[-2]
            cfurl = cfurl.strip('/')
            matchtop = r'^(%s)$' % urlfqdn
            if found == 0:
               keep = 0
               print("\nfinished following all links.\n")
            break

      else:
         found = 0

         print("\nno more links to fetch at %s.\n" % cfurl)
         if debug == 1:
            print("\nfound: %d \n" % found)
         cpath = p.path.strip('/')
         cpaths = cpath.split('/')
         lastpath = cpaths[-1]
         if len(lastpath) < 1 and len(cpaths) > 1:
            lastpath = cpaths[-2]
         cfurl = cfurl.strip('/')
         urlfqdn = urlfqdn.strip('/')
         print(urlfqdn)
         matchtop = r'^(%s)$' % urlfqdn
         if re.match(matchtop, cfurl) and found == 0:
            keep = 0
            print("\nfinished following all links.\n")
         else:
            cfurl = cfurl.rstrip(lastpath)
            print('\ntrying %s.. \n' % cfurl)

try:
   getCF(cfurl, links)

except (KeyboardInterrupt, SystemExit):
   print("\r\nrequest cancelled by user\n")
   print("\r\nhit CTRL + C again to exit program, or it will automatically continue in 10 seconds.\n")
   try:
      time.sleep(10)
      getCF(cfurl, links)
   except KeyboardInterrupt:
      sys.exit("\nrequest cancelled by user.\n")
   except Exception, exc:
      print("\nan error has occurred: %s \n" % str(exc))
      sys.exit("unable to continue. check the URL and try again.\n")

except requests.exceptions.ConnectionError, e:
   print("\na connection error occurred: %s \n" % str(e))
   pass
   time.sleep(7)
   print("\nattempting to reconnect to %s...\n" % cfurl)
   try:
      getCF(cfurl, links)
   except Exception, exc:
      print("\nan exception has occurred %s \n" % str(exc))
      raise

except RuntimeError, e:
   print("\na runtime error has occurred: %s \n" % str(e))
   raise

except SyntaxError, e:
   print("\na typo is a silly reason to force a program to terminate..\n")
   print("\nespecially this one:\n %s \n" % str(e))
   raise

except IOError, e:
   print("\na connection error has occurred: %s \n" % str(e))
   pass
   time.sleep(7)
   print("\nattempting to reconnect to %s...\n" % cfurl)
   try:
      getCF(cfurl, links)
   except Exception, exc:
      print("\nan exception has occurred %s \n" % str(exc))
      print("unable to continue. please restart the program.\n")
      raise
      exit(1)

except Exception, e:
   print("\nan error has occurred: %s \n" % str(e))
   print("unable to continue. check the parameters and try again.\n")
   raise
   if debug == 1:
      traceback_template = '''Traceback (most recent call last):
      File "%(filename)s", line %(lineno)s, in %(name)s
   %(type)s: %(message)s\n'''
      traceback_details = {
                            'filename': sys.exc_info()[2].tb_frame.f_code.co_filename,
                            'lineno'  : sys.exc_info()[2].tb_lineno,
                            'name'    : sys.exc_info()[2].tb_frame.f_code.co_name,
                            'type'    : sys.exc_info()[0].__name__,
                            'message' : sys.exc_info()[1].message,
                           }
      print
      print(traceback.format_exc())
      #print(traceback.extract_tb(sys.exc_info()[2]))
      print(traceback_template % traceback_details)
   sys.exit(1)

print("\nexiting..\n")
sys.exit(0)

Source : https://github.com/eudemonics

Artillery v1.5 released : is a combination of a honeypot, monitoring tool, and alerting system.

$
0
0

Artillery is a combination of a honeypot, monitoring tool, and alerting system. Eventually this will evolve into a hardening monitoring platform as well to detect insecure configurations from nix systems. It’s relatively simple, run ./setup.py and hit yes, this will install Artillery in /var/artillery and edit your /etc/init.d/rc.local to start artillery on boot up.

The Artillery Project is an open-source blue team tool designed to protect Linux and Windows operating systems through multiple methods

The Artillery Project is an open-source blue team tool designed to protect Linux and Windows operating systems through multiple methods

Features
+ It sets up multiple common ports that are attacked. If someone connects to these ports, it blacklists them forever (to remove blacklisted ip’s, remove them from /var/artillery/banlist.txt)
+ It monitors what folders you specify, by default it checks /var/www and /etc for modifications.
+ It monitors the SSH logs and looks for brute force attempts.
+ It will email you when attacks occur and let you know what the attack was.
Be sure to edit the /var/artillery/config to turn on mail delivery, brute force attempt customizations, and what folders to monitor.

Latest change v1.5:
+ Make sure validipv4
+ multiple bug fixes for sort IP address

Project structure
For those technical folks you can find all of the code in the following structure:
– src/core.py – main central code reuse for things shared between each module
– src/monitor.py – main monitoring module for changes to the filesystem
– src/ssh_monitor.py – main monitoring module for SSH brute forcing
– src/honeypot.py – main module for honeypot detection
– src/harden.py – check for basic hardening to the OS
– database/integrity.data – main database for maintaining sha512 hashes of filesystem
– setup.py – copies files to /var/artillery/ then edits /etc/init.d/artillery to ensure artillery starts per each reboot

Supported platforms
+ Linux
+ Windows

Download : 1.5.zip  | 1.5.tar.gz
Source :https://github.com/BinaryDefense

crsponse – Crypto Ransomware Response Tool.

$
0
0

Latest Update 11/5/2015:
Updated for CryptoWall 4.0 Detection : Updates were made to detect files related to CryptoWall 4.0 that was just released. Also, the output directory name of files now includes the username given as an argument.

A response tool to help in determining whether a machine has been infected with Crypto Ransomware.

crsponse - Crypto Ransomware Response Tool.

crsponse – Crypto Ransomware Response Tool.

Usage:
+ crsponse -user <user> -all Check for files, processes & reg keys
+ Crsponse -user <user> -reg Check for known effected reg keys
+ crsponse -user <user> -proc Check for known effected processes
+ crsponse -user <user> -files Check for known effected files

Examples:
+ crsponse -user bond -all
+ crsponse -user batman -reg
+ crsponse -user superman -proc
+ crsponse -user spiderman -files

Output Files:
1.All files in relevant Crypto Ransomware directories and 1 subdirectory deep of that directory, such as %AppData% or %ProgramData%.
%computername%_info\%computername%_files.csv
2. All processes running on machine. %computername%_info\%computername%_processes.csv
3. All registry keys that can be used by Crypto Ransomware. %computername%_info\%computername%_registry_keys.csv
4. Summary of files, processes, and registry keys. This will remove the “noise”, so that you can perform quicker analysis to determine whether a machine is infected with Crypto Ransomware. Crypto Ransomware related files, such as splash screens would be in this summary file. The file will also contain any processes running out of known Crypto Ransomware directories. Lastly, it will contain all registry values in registry keys used by Crypto Ransomware, such as HKCU\Software\Microsoft\Windows\CurrentVersion\Run. %computername%_info\%computername%_files_SUMMARY.csv

Supported Platforms: Windows

Download : crsponse.zip
Source : https://github.com/hawkbluedevil

Updates RATDecoders v-2015/11/8: Python Decoders for Common Remote Access Trojans.

$
0
0

changelog 2015/11/8:
Adzok Rat Config Extractor
__description__ = ‘Adzok Rat Config Extractor’
__author__ = ‘Kevin Breen http://techanarchy.net http://malwareconfig.com’
__version__ = ‘0.2’
__date__ = ‘2015/11/08’

Adzok Rat Config Extractor

Adzok Rat Config Extractor

Ratdecoders : a collection of Python Scripts that will extract and decode the configuration settings from common rats.

File-RATDecoder

All File Rat Decoder

Here is a list of the currently supported RATS:
– Adwind
– Albertino Advanced RAT
– Arcom
– BlackNix
– BlackShades
– Blue Banana
– Bozok
– ClientMesh
– CyberGate
– DarkComet
– drakddoser
– DarkRat
– Graeme
– jRat
– LostDoor
– LuxNet
– njRat
– Pandora
– PoisionIvy
– Punisher
– SpyGate
– SmallNet
– Unrecom
– Vantom
– Vertex
– VirusRat
– xtreme

Upcoming RATS :
– NetWire
– Gh0st
– Plasma
– Any Other Rats i can find.

Requirements :
There are several modules that are required and each script is different, Please check the individual scripts. This list is a complete listing of all the Python Modules across all decoders

pefile – https://code.google.com/p/pefile/
pycrypto – https://pypi.python.org/pypi/pycrypto/2.6.1
pype32 – https://github.com/crackinglandia/pype32

ToDo :
There will be more decoders coming Finish the Recursive mode on several of the Decoders

Reference :
Malware.lu for the initial xtreme Rat Writeup – https://code.google.com/p/malware-lu/wiki/en_xtreme_RAT

Fireye for their Poison Ivy and Xtreme rat WriteUps (Even though they ignored my tweet and reply ) – http://www.fireeye.com/blog/technical/2014/02/xtremerat-nuisance-or-threat.html

Shawn Denbow and Jesse Herts for their paper here – http://www.matasano.com/research/PEST-CONTROL.pdf

Download : Master.zip  | Clone Url | Our Post Before
Source : https://github.com/kevthehermit

Privesc is a Windows batch script that finds misconfiguration issues which can lead to privilege escalation.

$
0
0
privesc

Privesc is a Windows batch script that finds misconfiguration issues which can lead to privilege escalation.

Privesc is a Windows batch script that finds misconfiguration issues which can lead to privilege escalation.
with Function:
+ Environment variables
+ Information about current user
+ Available drives
+ Network information
+ Running processes
+ Scheduled processes
+ Installed software
+ Startup programs
+ Startup services
+ Installed drivers
+ Applied hotfixes
+ Files that may contain Administrator password
+ Checking AlwaysInstallElevated
+ Checking permissions on services (changing BINARY_PATH_NAME – possible if SERVICE_CHANGE_CONFIG, WRITE_DAC, WRITE_OWNER, GENERIC_WRITE, GENERIC_ALL)
+ Checking BINARY_PATH_NAME for all services (if there is a space and path is not enclosed with quotes then it may be vulnerable – exploit/windows/local/trusted_service_path)
+ Checking file permissions of running processes (File backdooring – exploit/windows/local/service_permissions)
+ Checking directory permissions of running processes (DLL injection)
+ Checking system32 permissions misconfiguration (binaries that are good to backdoor – system32sethc.exe (Sticky Keys), system32utilman.exe)
+ Checking startup directory permissions for all users (executing binaries with permissions of logged user)
+ Checking all possibly exploitable services.

privesc.bat Script:

echo off
setlocal EnableDelayedExpansion

REM if checks that takes much more time should be executed
set long=no

echo This batch needs accesschk.exe for best results.
echo.
echo System Information (use windows-exploit-suggester.py to check for local exploits):
echo.
systeminfo 2>NUL
systeminfo > systeminfo_for_suggester.txt
echo.
echo ----------------------------------------------------------------------------
echo.
echo Environment variables:
echo.
set 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Information about current user:
echo.
net user %USERNAME% 2>NUL
net user %USERNAME% /domain 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Available drives:
echo.
wmic logicaldisk get deviceid,volumename,description | more
echo.
echo ----------------------------------------------------------------------------
echo.
echo Network information:
echo.
ipconfig /all 2>NUL
echo.
route print 2>NUL
echo.
arp -A 2>NUL
echo.
netstat -ano 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Running processes:
echo.
tasklist /V 2>NUL
wmic process list | more
echo.
echo ----------------------------------------------------------------------------
echo.
echo Scheduled processes:
echo.
schtasks /query /fo LIST /v 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Installed software:
echo.
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall 2>NUL
dir "%PROGRAMFILES%" 2>NUL
dir "%ProgramFiles(x86)%" 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Startup programs:
echo.
dir "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" 2>NUL
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run 2>NUL
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce 2>NUL
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run 2>NUL
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Temp files:
echo.
dir "%TEMP%" 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Startup services:
echo.
net start 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Installed drivers:
echo.
driverquery 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Applied hotfixes:
echo.
wmic qfe get Caption,Description,HotFixID,InstalledOn |more
echo.
echo ----------------------------------------------------------------------------
echo.
echo Files that may contain Administrator password:
echo.
type C:\sysprep.inf 2>NUL
type C:\sysprep\sysprep.xml 2>NUL
type "%WINDIR%\Panther\Unattend\Unattended.xml" 2>NUL
type "%WINDIR%\Panther\Unattended.xml" 2>NUL
findstr /S cpassword \\127.0.0.1\sysvol\*.xml
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking AlwaysInstallElevated:
echo.
reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated 2>NUL
reg query HKCU\SOFTWARE\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated 2>NUL
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking permissions on services (changing BINARY_PATH_NAME - possible if SERVICE_CHANGE_CONFIG, WRITE_DAC, WRITE_OWNER, GENERIC_WRITE, GENERIC_ALL):
echo It is also adviced to use Instrsrv.exe and Srvany.exe to try to create user defined service
echo.
for /f "tokens=2" %%x in ('sc query^|find /i "service_name"') do accesschk.exe -accepteula -ucqv %%x
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking BINARY_PATH_NAME for all services (if there is a space and path is not enclosed with quotes then it may be vulnerable - exploit/windows/local/trusted_service_path):
echo.
for /f "tokens=2" %%n in ('sc query ^| findstr SERVICE_NAME') do (
	for /f "delims=: tokens=1*" %%r in ('sc qc "%%~n" ^| findstr BINARY_PATH_NAME') do echo %%~s
)
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking file permissions of running processes (File backdooring - exploit/windows/local/service_permissions):
echo.
for /f "tokens=2 delims='='" %%x in ('wmic service list full^|find /i "pathname"^|find /i /v "system32"') do (for /f eol^=^"^ delims^=^" %%z in ('echo %%x') do cmd.exe /c icacls "%%z" ^| more)
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking directory permissions of running processes (DLL injection):
echo.
for /f "tokens=2 delims='='" %%x in ('wmic service list full^|find /i "pathname"^|find /i /v "system32"') do for /f eol^=^"^ delims^=^" %%y in ('echo %%x') do (
	set tpath=%%~dpy
	cmd.exe /c icacls "!tpath:~,-1!" ^| more
)
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking system32 permissions misconfiguration (binaries that are good to backdoor - system32sethc.exe (Sticky Keys), system32utilman.exe):
echo.
cmd.exe /c icacls "C:\Windows\system32" ^| more
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking startup directory permissions for all users (executing binaries with permissions of logged user):
echo.
cmd.exe /c icacls "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" ^| more
echo.
echo ----------------------------------------------------------------------------
echo.
echo Checking all possibly exploitable services:
echo.
accesschk.exe -accepteula -uwcqv Users *
accesschk.exe -accepteula -uwcqv "Authenticated Users" *
echo.

if "%long%" == "yes" (
	echo ----------------------------------------------------------------------------
	echo.
	echo Weak file/directory permissions on all drives:
	echo.
	for /f %%x in ('wmic logicaldisk get name^| more') do (
		set tdrive=%%x
		if "!tdrive:~1,2!" == ":" (
			accesschk.exe -accepteula -uwdqs Users %%x
			accesschk.exe -accepteula -uwdqs "Authenticated Users" %%x
			accesschk.exe -accepteula -uwqs Users %%x\*.*
			accesschk.exe -accepteula -uwqs "Authenticated Users" %%x\*.*
		)
	)
	echo.
	echo ----------------------------------------------------------------------------
	echo.
	echo Looking for sensitive registry keys:
	echo.
	reg query HKLM /f pass /t REG_SZ /s
	reg query HKCU /f pass /t REG_SZ /s
	reg query HKLM /f pwd /t REG_SZ /s
	reg query HKCU /f pwd /t REG_SZ /s
	echo.
	echo ----------------------------------------------------------------------------
	echo.
	echo Looking for sensitive files:
	echo.
	for /f %%x in ('wmic logicaldisk get name^| more') do (
		set tdrive=%%x
		if "!tdrive:~1,2!" == ":" (
			%%x
			findstr /si pass *.xml *.ini *.txt *.cfg *.config
			findstr /si pwd *.xml *.ini *.txt *.cfg *.config
		)
	)
	echo.
)

Source : https://github.com/enjoiz


Process Dump v1.5 released ; Windows tool for dumping malware PE files from memory.

$
0
0

Windows reverse-engineering command-line tool to dump malware memory components back to disk for analysis. This is a common task for malware researchers who need to dump unpacked or injected code back to disk for analysis with static analysis tools such as IDA.

Windows tool for dumping malware PE files from memory back to disk for analysis

Windows tool for dumping malware PE files from memory back to disk for analysis

Process Dump works for 32 and 64 operating systems, uses an aggressive import reconstruction approach, and allows for dumping of regions without PE headers – in these cases PE headers and import tables will automatically be generated. Process Dump supports creation and use of a clean-hash database, so that dumping of clean files such as kernel32.dll can be skipped
Example Usage:

Dump all modules from all processes (ignoring known clean modules):

    pd64.exe -system

Dump all modules from a specific process identifier:

    pd64.exe -pid 0x18A

Dump all modules by process name:

    pd64.exe -p .chrome.

Build clean-hash database. These hashes will be used to exclude modules from dumping with the above commands:

    pd64.exe -db gen

Dump code from a specific address in PID 0x1a3:

    pd64.exe -pid 0x1a3 -a 0xffb4000 Generates two files (32 and 64 bit) that can be loaded for analysis in IDA with generated PE headers and generated import table: notepad_exe_x64_hidden_FFB40000.exe notepad_exe_x86_hidden_FFB40000.exe

Download executable file for Windows 32&64 bit : pd_latest(100.32 KB)
or you can build itself using Visual Studio here
Source : https://github.com/glmcdona

Lynis v-2.1.5 : is a system and security auditing tool for Unix/Linux.

$
0
0

= Changelog Lynis 2.1.5 =
This is an major release, which includes both new features and enhancements to existing tests.

* Automation tools
——————
CFEngine detection has been further extended. Additional logging and reporting of automation tools.

* Authentication
—————-
Depending on the operating system, Lynis now tries to determine if failed logins are properly logged. This includes checking for /etc/login.defs [AUTH-9408]. Merged password check on Solaris into AUTH-9228.
PAM settings are now analyzed, including:
– Two-factor authentication methods
– Minimum password length, password strength and protection status against brute force cracking
report option: auth_failed_logins_logged

* Compliance
————
Added new compliance_standards option to default.prf, to define if compliance testing should be performed, and for which standards.
Right now these (partial) standards are included:
– HIPAA
– ISO27001/ISO27002
– PCI-DSS

* DNS and Name services
———————–
Support added for Unbound DNS caching tool [NAME-4034]
Configuration check for Unbound [NAME-4036]
Record if a name caching utility is being used like nscd or Unbound. Also logging to report as field name_cache_used

* Firewalls
———–
IPFW firewall on FreeBSD test improved.
Don’t show pflogd status on screen when pf is not available

* Malware
———
ESET and LMD (Linux Malware Detect) is now recognized as a malware scanner. Discovered malware scanners are now also logged to the report.

* Mount points
————–
FILE-6374 is expanded to test for multiple common mount points and define best practice mount flags.

* Operating systems
——————-
Improved support for Debian 8 systems.
Boot loader exception is not longer displayed when only a subset of tests is performed.
FreeBSD systems can now use service command to gather information about enabled services.

* UEFI and Secure Boot
———————-
Initial support to test UEFI settings, including Secure Boot option Options boot_uefi_booted and boot_uefi_booted_secure added to report file

* Virtual machines and Containers
———————————
Detection of virtual machines has been extended in several ways. Now VMware tools (vmtoolsd) are detected and machine state is improved with tools like Puppet Facter, dmidecode, and lscpu. Properly detect Docker on CoreOS systems, where it before gave error as it found directory /usr/libexec/docker.
Check file permissions for Docker files, like socket file [CONT-8108]

* Individual tests
——————
[AUTH-9204] Exclude NIS entries to avoid false positives
[AUTH-9230] Removed test as it was merged into AUTH-9228
[AUTH-9328] Show correct message when no umask is found in /etc/profile. It also includes improved logging, and support for /etc/login.conf on systems like FreeBSD.
[BOOT-5180] Only gets executed if runlevel 2 is found
[CONT-8108] New test to test for Docker file permissions
[FILE-6410] Added /var/lib/locatedb as search path
[HOME-9310] Use POSIX compatible flags to avoid errors on BusyBox
[MALW-3278] New test to detect LMD (Linux Malware Detect)
[SHLL-6230] Test for umask values in shell configuration files (e.g. rc files)
[TIME-3104] Show only suggestion on FreeBSD systems if ntpdate is configured, yet ntpd isn’t running

* Functions
———–
[DigitsOnly] New function to extract only numbers from a text string
[DisplayManual] New function to show text on screen without any markup
[ExitCustom] New function to allow program to exit with a different exit code, depending on outcome
[ReportSuggestion] Allows two additional parameters to store details (text and external reference to a solution)
[ReportWarning] Like ReportSuggestion() has additional parameters
[ShowComplianceFinding] Display compliance findings

* General improvements
———————-
– When using pentest mode, it will continue without any delays (=quick mode)
– Data uploads: provide help when self-signed certificates are used
– Improved output for tests which before showed results as a warning, while actually are just suggestions
– Lynis now uses different exit codes, depending on errors or finding warnings. This helps with automation and any custom scripting you want to apply
– Tool tips are displayed, to make Lynis even easier to use
– PID file has additional checks, including cleanups

* Plugins
———
[PLGN-2804] Limit report output of EXT file systems to 1 item per linelynis-v-2-1-5
Lynis is a security auditing for Unix derivatives like Linux, BSD, and Solaris. It performs an in-depth security scan on the system to detect software and security issues. Besides information related to security, it will also scan for general system information, vulnerable software packages, and possible configuration issues.
We believe software should be simple, updated on a regular basis and open. You should be able to trust, understand, and even alter the software. Many agree with us, as the software is being used by thousands every day to protect their systems.

Main goals:
+ Security auditing (automated)
+ Compliance testing (e.g. PCI-DSS, HIPAA)
+ Vulnerability testing

The software aims to also assist with:
+ Configuration management
+ Software patch management
+ System hardening
+ Penetration testing
+ Malware scanning
+ Intrusion detection
Installation:

git clone https://github.com/CISOfy/lynis
cd lynis
./lynis audit system
-----------------------------------------
update
cd <your lynis folder>
git pull

Or

Download old Binary v2.1.1: 2.1.1.zip  | 2.1.1.tar.gz
Our post Before : http://seclist.us/updates-lynis-v-2-1-0-is-a-system-and-security-auditing-tool-for-unixlinux.html
Source: https://cisofy.com/lynis/

sans – A simple anti-spoofing DNS server.

$
0
0

Simple Anti-spoofing Name Server, designed to defend against DNS spoofing, suitable for embedded devices and low end boxes.
Latest Change 24/12/2015:
+ add homebrew build script.

sans - A simple anti-spoofing DNS server

sans – A simple anti-spoofing DNS server

Features:
+ Support both UDP and TCP
+ Detect if a domain is polluted
+ Query polluted domains over TCP or SOCKS5

sans file

sans file

Note:
+ If SOCKS5 server is not given, polluted domains will be queried over TCP. It’s faster than querying over SOCKS5, but may not work in some networks.
+ Since there is no cache in sans, you may need to set it as an upstream DNS server for Dnsmasq instead of using it directly.

TODO:
– cache
– retry on error
– auto pre-query
– recursive

Installation and usage:

git clone https://github.com/XiaoxiaoPu/sans
autoreconf -if
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
cd src
./sans -h (for helper command)

Update:
cd sans folder
git pull

OSX
brew install --HEAD https://github.com/XiaoxiaoPu/sans/raw/master/contrib/homebrew/sans.rb

setup cross compile tool chain:
export PATH="$PATH:/pato/to/cross/compile/toolchain/"
build
autoreconf -if
./configure --host=arm-unknown-linux-gnueabihf \
    --prefix=/usr --sysconfdir=/etc
make

Build with MinGW:
autoreconf -if
./configure --host=i686-w64-mingw32
make

sample configuration:

user=nobody
group=nobody
listen=127.0.0.1:5300
socks5=127.0.0.1:1080
test_server=8.8.8.8:53
cn_server=114.114.114.114:53
server=8.8.8.8:53

Source : https://github.com/XiaoxiaoPu

Helios is an all-in-one Java reverse engineering tool.

$
0
0

Helios is an all-in-one Java reverse engineering tool. It features integration with the latest up-to-date decompilers.

There are several keybinds that can be used. To open a new file, simply use Ctrl-O. Arrow keys can be used to navigate the file tree. Enter or clicking a file will open that file into the editor view.
+ To open a different view, simply use Ctrl-T and a menu will pop up where the cursor is. You can use your arrow keys or your mouse to select a view.
+ If the file is a class file, you will be able to choose from a variety of decompilers and disassemblers. If the file is not a class file, you will only be able to view the hex representation and the plain text representation.
+ If you want to clear the GUI, you can use Ctrl-N to start a new session. This will reset all open views.
+ If you have modified a file that you are inspecting, you can use F5 to refresh the files. This will reload them from disk.
+ To close the current opened file, use Ctrl-W. To close the current opened view, use Ctrl-Shift-W

All files are stored inside the default temporary file directory on your OS. You can delete these files safely.
The settings file is located within the .helios folder inside your user directory. Inside the .helios folder you will find libraries which are not written in Java, but have been packaged with this program. You will also find the addons folder, where you can install new addons.

Helios is an all-in-one Java reverse engineering tool. It features integration with the latest up-to-date decompilers.

Helios is an all-in-one Java reverse engineering tool. It features integration with the latest up-to-date decompilers.

Addons:
The addon API is currently under development. There are minimal events which you are able to hook into. More will be added as the API progresses.

Here are some basic conventions you should follow. Your coding style is your own but requirements may also change. Please do not be surprised if you find your code has been reformatted.
+ GUI and logic must be separated. If you need to call logic from the GUI use an event. This is so the project is future-proofed should we ever want to switch GUI libraries.
+ If your code could throw an exception, handle it appropriately. If you want a popup to be shown, use ExceptionHandler.handle(exception);
+ Opening brackets should be on the same line as the preceding statement

If you encounter an error while downloading the dependencies, you may need to manually install the Let’s Encrypt intermediary certificate into the Java trusted root store. You can do so using this command:

keytool -trustcacerts -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit -importcert -file lets-encrypt-x1-cross-signed.pem

Download : helios-1.0.0-alpha.jar(24.2 MB)
source : https://github.com/samczsun

Vestigium is a proof of concept implementation of an application profiling framework.

$
0
0

Vestigium is a proof of concept implementation of an application profiling framework. The framework automates the detection of file system and Windows Registry entries. All digital artifacts associated with an application are represented and processing automated by using the standardised DFXML, RegXML and APXML forensic data abstractions.

Vestigium

Vestigium

Vestigium requires three inputs:
1) Forensic image
2) Output directory
3) Application Profile XML (APXML) document(s)

USAGE EXAMPLE:

python3.4 Vestigium.py ~/TDS/1-install.raw /
                       ~/TDS/1-install-output /
                       ~/TDS/TrueCrypt-7.1a-6.1.7601-FINAL.apxml /
                       --dfxml ~/TDS/1-install.xml /
                       --hives ~/TDS/1-install/

INSTALLATION:
git clone https://github.com/thomaslaurenson/Vestigium
cd Vestigium
python34 Vestigium.py

Source : https://github.com/thomaslaurenson

Dnstwist v-1.02b ~ Generate & resolve domain variations to detect typo squatting, phishing&corporate espionage.

$
0
0

Latest change 2/1/2016:
+ dnstwist.py ; Added new feature: JSON output
+ Added another similar projects

The idea is quite straightforward: dnstwist takes in your domain name as a seed, generates a list of potential phishing domains and then checks to see if they are registered. Additionally it can test if the mail server from MX record can be used to intercept misdirected corporate e-mails and it can generate fuzzy hashes of the web pages to see if they are live phishing sites.

dnstwist-1.02B

dnstwist-1.02B

Key features
There are several pretty good reasons to give it a try:
+ Wide range of efficient domain fuzzing algorithms
+ Multithreaded job distribution
+ Resolves domain names to IPv4 and IPv6
+ Queries for NS and MX records
+ Evaluates web page similarity with fuzzy hashes to find live phishing sites
+ Tests if MX host (mail server) can be used to intercept misdirected e-mails (espionage)
+ Generates additional domain variants using dictionary files
+ GeoIP location information
+ Grabs HTTP and SMTP service banners
+ WHOIS lookups for creation and modification date
+ Prints output in CSV format

Requirements:
If you want dnstwist to develop full power, please make sure the following Python modules are present on your system. If missing, dnstwist will still work, but without many cool features. You’ll get a notification in absence of required module.
– A DNS toolkit for Python
– Python GeoIP
– Python WHOIS
– Requests: HTTP for Humans
– ssdeep Python wrapper

dnstwist-helper

dnstwist-helper

Usage and Installation :

git clone https://github.com/elceef/dnstwist
sudo apt-get install python-dnspython python-geoip python-whois \ python-requests python-ssdeep
cd dnstwist
pip install -r requirements.txt
python dnstwist.py (your domain)

Update
cd dnstwist
git pull

Source: https://github.com/elceef | Our Post Before

Fire – Custom LKM firewall passes packets to userland python script.

$
0
0

fire is custom firewall resides in kernel space and userspace Contains 2 components:
+ custom.ko — LKM (linux kernel module)
+ fire.py — Python script (run from user space)
Custom.ko passes ICMP/UDP/TCP packets to fire.py for further inspection and accepts any other package.load-custom-ko

Dependency:
+ nfqueue-bindings
+ scapy

Installation & Usage:

git clone https://github.com/vag-makr/fire && cd fire
apt-get update && apt-get install build-essential libnetfilter-queue-dev linux-headers-$(uname -r)
apt-get install python-nfqueue python-scapy
cd LKM
make

Load custom.ko:
insmod custom.ko
lsmod | grep custom
tail -f /var/log/kern.log

Unload custom.ko:
rmmod custom.ko
dmesg

python fire.py (make sure to load custom.ko)

Source : https://github.com/vag-makr


Stenographer is a full-packet-capture for intrusion detection & incident response purposes.

$
0
0

Stenographer is a full-packet-capture utility for buffering packets to disk for intrusion detection and incident response purposes. It provides a high-performance implementation of NIC-to-disk packet writing, handles deleting those files as disk fills up, and provides methods for reading back specific sets of packets quickly and easily.

steganographer

stenographer

Latest Change 7/1/2016:
+ Prealloc flag fix
+ Mark “–preallocate_file_mb” as important when using

Dependencies for all linux Distros:
+ libaio-dev
+ libleveldb-dev
+ libsnappy-dev
+ g++
+ libcap2-bin
+ libseccomp-dev

It is designed to:
+ Write packets to disk, very quickly (~10Gbps on multi-core, multi-disk machines)
+ Store as much history as it can (managing disk usage, storing longer durations when traffic slows, then deleting the oldest packets when it hits disk limits)
+ Read a very small percentage (<1%) of packets from disk based on analyst needs

It is NOT designed for:
+ Complex packet processing (TCP stream reassembly, etc)
— It’s fast because it doesn’t do this. Even with the very minimal, single-pass processing of packets we do, processing ~1Gbps for indexing alone can take >75% of a single core.
Processing the data by reading it back from disk also doesn’t work: see next bullet point.
+ Reading back large amounts of packets (> 1% of packets written)
— The key concept here is that disk reads compete with disk writes… you can write at 90% of disk speed, but that only gives you 10% of your disk’s time for reading. Also, we’re writing highly sequential data, which disks are very good at doing quickly, and generally reading back sparse data with lots of seeks, which disks do slowly.

For further reading, check out DESIGN.md for a discussion of stenographer’s design, or read INSTALL.md for how to install stenographer on a machine.

Installation and usage:

go get github.com/google/stenographer
or
git clone https://github.com/google/stenographer && cd stenographer
sudo ./install.sh
then Create directories to output packets/indexes to, then update /etc/stenographer/config to point to them
cd stenotype && make
sudo apt-get install jq
cd ..

then run what do you want..sample use, you see a picture. for moredetails please read INSTALL.md for how to install stenographer on a machine.

Source : https://github.com/google

Joy – A package for capturing and analyzing for network research, forensics & security monitoring.

$
0
0

Joy is A package for capturing and analyzing network flow data and intraflow data, for network research, forensics, and security monitoring.
Overview:

Joy is a BSD-licensed libpcap-based software package for extracting data features from live network traffic or packet capture (pcap) files, using a flow-oriented model similar to that of IPFIX or Netflow, and then representing these data features in JSON. It also contains analysis tools that can be applied to these data files. Joy can be used to explore data at scale, especially security and threat-relevant data.Joy

JSON is used in order to make the output easily consumable by data analysis tools. While the JSON output files are somewhat verbose, they are reasonably small, and they respond well to compression.

Joy can be configured to obtain intraflow data, that is, data and information about events that occur within a network flow, including:

* the sequence of lengths and arrival times of IP packets, up to some configurable number of packets,

* the empirical probability distribution of the bytes within the data portion of a flow, and the entropy derived from that value,

* the sequence of lengths and arrival times of TLS records,

* other non-encrypted TLS data, such as the list of offered ciphersuites, the selected ciphersuite, and the length of the clientKeyExchange field,

* the name of the process associated with the flow, for flows originate or terminate on the

Joy is intended for use by security research, forensics, and for the monitoring of (small scale) networks to detect vulnerabilities, threats and other unauthorized or unwanted behavior. Researchers, administrators, penetration testers, and security operations teams can put this information to good use, for the protection of the networks being monitored, and in the case of vulnerabilities, for the benefit of the broader community through improved defensive
posture. As with any network monitoring tool, Joy could potentially be misused; do not use it on any network of which you are not the owner or the administrator.

Flow, in positive psychology, is a state in which a person performing an activity is fully immersed in a feeling of energized focus, deep involvement, and joy. This second meaning inspired the choice of name for this software package.

Joy is alpha/beta software; we hope that you use it and benefit from it, but do understand that it is not suitable for production use.

Joy has been successfully run and tested on Linux (Debian, Ubuntu, and CentOS) and Mac OSX.

Example Usage

Example Usage

Installation & Usage:

Git clone https://github.com/davidmcgrew/joy && cd joy
make
./install-sh

sudo ./pcap2flow interface=eth0 bidir=1 output=data.json (and see picture for output)
Testing packet:
sudo ./pcap2flow_test.sh

Source : https://github.com/davidmcgrew

Lynis v-2.1.8 : is a system and security auditing tool for Unix/Linux.

$
0
0

Changelog v2.1.8 10/1/2016:
+ New version, changed official author name and date
+ [AUTH-9234] Gather users on AIX, and rewriting of tests.
* Networking
+ NETW-2600 collects IPv6 configuration and best practices for Linux.
+ NETW-3004 now collects network interface names from most common operating systems.
* Operating systems
+ [NETW-2600] IPv6 configuration check for Linux

lynis-v-2-1-8

lynis-v-2-1-8

Lynis is a security auditing for Unix derivatives like Linux, BSD, and Solaris. It performs an in-depth security scan on the system to detect software and security issues. Besides information related to security, it will also scan for general system information, vulnerable software packages, and possible configuration issues.
We believe software should be simple, updated on a regular basis and open. You should be able to trust, understand, and even alter the software. Many agree with us, as the software is being used by thousands every day to protect their systems.

Main goals:
+ Security auditing (automated)
+ Compliance testing (e.g. PCI-DSS, HIPAA)
+ Vulnerability testing

The software aims to also assist with:
+ Configuration management
+ Software patch management
+ System hardening
+ Penetration testing
+ Malware scanning
+ Intrusion detection
Installation:

git clone https://github.com/CISOfy/lynis
cd lynis
./lynis audit system
-----------------------------------------
update
cd <your lynis folder>
git pull

Or

Download old Binary v2.1.1: 2.1.1.zip  | 2.1.1.tar.gz
Our post Before : http://seclist.us/lynis-v-2-1-5-is-a-system-and-security-auditing-tool-for-unixlinux.html
Source: https://cisofy.com/lynis/

python scripts that creates an outgoing-incoming ssh tunnel that can bypass some firewalls.

$
0
0

python scripts that creates an outgoing-incoming ssh tunnel that can bypass some firewalls.
Sometimes you want to access a system that is behind a firewall or NAT and you can’t open a port on them. With this kind of tunnel you can make it “call home” and wait for your connection on your local computer or somewhere else.

autossh

autossh

This is what you get:

+----------------+          +-----+   +---------------+          +-------------+
|                |          |     |   |               |          |             |
|                >------------------------------------------------>            |
|        <-----------------------------------------------------------+         |
|                >------------------------------------------------>  |  SSH    |
|  Remote site   |          |     |   |               |          |   |  Server |
|                |          |  F  |   |            +-----------------+         |
|                |          |  i  |   |            |  |          |             |
|                |          |  r  |   |  Internet  |  |          +-------------+
+----------------+          |  e  |   |            |  |
                            |  w  |   |            |  |
                            |  a  |   |            |  |          +--------------+
                            |  l  |   |            |  |          |              |
                            |  l  |   |            +-----------------< You      |
                            |     |   |               |          |              |
                            +-----+   +---------------+          +--------------+

You access a remote site bypassing a firewall with the help of a SSH server. You can see the tunnel going out from the remote site to the SSH server and how your connection can get there through it. From the firewall point of view there is just an output SSH connection. Most firewalls will allow it. The firewall can’t see there is an incomming connection hidden inside it.

Usage:

git clone https://github.com/aalku/ssh-tunnel && cd ssh-tunnel
python autossh.py -h (for print helper)

python autossh.py -tp 22 -sh -lp -su -sq "$@" >> /var/log/autossh.log 2>&1 &

Source : https://github.com/aalku/

Climber – Check UNIX/Linux systems for privilege escalation.

$
0
0

Automated auditing tool to check UNIX/Linux systems misconfigurations which may allow local privilege escalation.
Latest Change 28/1/2016:  Updated Exscript https://github.com/knipknap/exscript (Now This module has been include)

climber

climber

Dependencies:
+ python >= 2.7
+ python-crypto
+ python-mako
+ python-paramiko

Note:
Climber needs Exscript, a Python module and a template processor for automating network connections over protocols such as Telnet or SSH.
Usage:

git clone https://github.com/raffaele-forte/climber && cd climber
python climber.py

Source : https://github.com/raffaele-forte

Viewing all 443 articles
Browse latest View live


Latest Images