code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If val... |
"""SocksiPy - Python SOCKS module.
Version 1.00
Copyright 2006 Dan-Haim. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | [
[
8,
0,
0.0365,
0.0708,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
8,
0,
0.0845,
0.0205,
0,
0.66,
0.04,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0982,
0.0023,
0,
0.66,
... | [
"\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ... |
"""
iri2uri
Converts an IRI to a URI.
"""
__author__ = "Joe Gregorio (joe@bitworking.org)"
__copyright__ = "Copyright 2006, Joe Gregorio"
__contributors__ = []
__version__ = "1.0.0"
__license__ = "MIT"
__history__ = """
"""
import urlparse
# Convert an IRI to a URI following the rules in RFC 3987
#
# The characte... | [
[
8,
0,
0.0318,
0.0545,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0636,
0.0091,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0727,
0.0091,
0,
0.66... | [
"\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"",
"__author__ = \"Joe Gregorio (joe@bitworking.org)\"",
"__copyright__ = \"Copyright 2006, Joe Gregorio\"",
"__contributors__ = []",
"__version__ = \"1.0.0\"",
"__license__ = \"MIT\"",
"__history__ = \"\"\"\n\"\"\"",
"import urlparse",
"escape_... |
#!/usr/bin/env python
import codecs
import re
import jinja2
import markdown
def process_slides():
with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
md = codecs.open('slides.md', encoding='utf8').read()
md_slides = md.split('\n---\n')
print 'Compiled %s slides.' % len(m... | [
[
1,
0,
0.0526,
0.0175,
0,
0.66,
0,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0702,
0.0175,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0877,
0.0175,
0,
... | [
"import codecs",
"import re",
"import jinja2",
"import markdown",
"def process_slides():\n with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:\n md = codecs.open('slides.md', encoding='utf8').read()\n md_slides = md.split('\\n---\\n')\n print('Compiled %s slides.' ... |
import cgi
import urllib
import time
import random
import urlparse
import hmac
import base64
VERSION = '1.0' # Hi Blaine!
HTTP_METHOD = 'GET'
SIGNATURE_METHOD = 'PLAINTEXT'
# Generic exception class
class OAuthError(RuntimeError):
def __init__(self, message='OAuth error occured.'):
self.message = message
... | [
[
1,
0,
0.0019,
0.0019,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0038,
0.0019,
0,
0.66,
0.0435,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0057,
0.0019,
0,
... | [
"import cgi",
"import urllib",
"import time",
"import random",
"import urlparse",
"import hmac",
"import base64",
"VERSION = '1.0' # Hi Blaine!",
"HTTP_METHOD = 'GET'",
"SIGNATURE_METHOD = 'PLAINTEXT'",
"class OAuthError(RuntimeError):\n def __init__(self, message='OAuth error occured.'):\n ... |
import cgi
import os
import base64
import hashlib
import urllib
import json
import oauth
import logging
from datetime import datetime
from datetime import timedelta
from Crypto.PublicKey import RSA
from Crypto.Util import number
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.ap... | [
[
1,
0,
0.0016,
0.0016,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0032,
0.0016,
0,
0.66,
0.0204,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0047,
0.0016,
0,
... | [
"import cgi",
"import os",
"import base64",
"import hashlib",
"import urllib",
"import json",
"import oauth",
"import logging",
"from datetime import datetime",
"from datetime import timedelta",
"from Crypto.PublicKey import RSA",
"from Crypto.Util import number",
"from google.appengine.ext ... |
#
# testdata.py : Test data for the various algorithms
#
# Part of the Python Cryptography Toolkit
#
# Distribute and use freely; there are no restrictions on further
# dissemination and usage except those imposed by the laws of your
# country of residence. This software is provided "as is" without
# warranty of fitn... | [
[
14,
0,
0.0352,
0.0162,
0,
0.66,
0,
922,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.0558,
0.0162,
0,
0.66,
0.037,
290,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.0764,
0.0162,
0,
0.... | [
"md2= [\n (\"\", \"8350e5a3e24c153df2275c9f80692773\"),\n (\"a\", \"32ec01ec4a6dac72c0ab96fb34c0b5d1\"),\n (\"abc\", \"da853b0d3f88d99b30283a69e6ded6bb\"),\n (\"message digest\", \"ab4f496bfb2a530b219ff33031fe06b0\"),\n (\"abcdefghijklmnopqrstuvwxyz\", \"4e8ddff3650292ab5a4108c3aa47940b\"),\n ... |
#
# Test script for the Python Cryptography Toolkit.
#
__revision__ = "$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $"
import os, sys
# Add the build directory to the front of sys.path
from distutils.util import get_platform
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
s = os.path.join(os.getcwd(... | [
[
14,
0,
0.1316,
0.0263,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1842,
0.0263,
0,
0.66,
0.0667,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.2895,
0.0263,
0,
0... | [
"__revision__ = \"$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $\"",
"import os, sys",
"from distutils.util import get_platform",
"s = \"build/lib.%s-%.3s\" % (get_platform(), sys.version)",
"s = os.path.join(os.getcwd(), s)",
"sys.path.insert(0, s)",
"s = os.path.join(os.getcwd(), 'test')",
"... |
"""HMAC (Keyed-Hashing for Message Authentication) Python module.
Implements the HMAC algorithm as described by RFC 2104.
This is just a copy of the Python 2.2 HMAC module, modified to work when
used on versions of Python before 2.2.
"""
__revision__ = "$Id: HMAC.py,v 1.5 2002/07/25 17:19:02 z3p Exp $"
import strin... | [
[
8,
0,
0.037,
0.0648,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0833,
0.0093,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1019,
0.0093,
0,
0.66,
... | [
"\"\"\"HMAC (Keyed-Hashing for Message Authentication) Python module.\n\nImplements the HMAC algorithm as described by RFC 2104.\n\nThis is just a copy of the Python 2.2 HMAC module, modified to work when\nused on versions of Python before 2.2.\n\"\"\"",
"__revision__ = \"$Id: HMAC.py,v 1.5 2002/07/25 17:19:02 z3... |
# Just use the MD5 module from the Python standard library
__revision__ = "$Id: MD5.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
from md5 import *
import md5
if hasattr(md5, 'digestsize'):
digest_size = digestsize
del digestsize
del md5
| [
[
14,
0,
0.3077,
0.0769,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4615,
0.0769,
0,
0.66,
0.3333,
604,
0,
1,
0,
0,
604,
0,
0
],
[
1,
0,
0.6154,
0.0769,
0,
0... | [
"__revision__ = \"$Id: MD5.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $\"",
"from md5 import *",
"import md5",
"if hasattr(md5, 'digestsize'):\n digest_size = digestsize\n del digestsize",
" digest_size = digestsize"
] |
"""Hashing algorithms
Hash functions take arbitrary strings as input, and produce an output
of fixed size that is dependent on the input; it should never be
possible to derive the input data given only the hash function's
output. Hash functions can be used simply as a checksum, or, in
association with a public-key al... | [
[
8,
0,
0.4375,
0.8333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.9167,
0.0417,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9583,
0.0417,
0,
0.66,
... | [
"\"\"\"Hashing algorithms\n\nHash functions take arbitrary strings as input, and produce an output\nof fixed size that is dependent on the input; it should never be\npossible to derive the input data given only the hash function's\noutput. Hash functions can be used simply as a checksum, or, in\nassociation with a... |
# Just use the SHA module from the Python standard library
__revision__ = "$Id: SHA.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
from sha import *
import sha
if hasattr(sha, 'digestsize'):
digest_size = digestsize
del digestsize
del sha
| [
[
14,
0,
0.3636,
0.0909,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5455,
0.0909,
0,
0.66,
0.3333,
263,
0,
1,
0,
0,
263,
0,
0
],
[
1,
0,
0.6364,
0.0909,
0,
0... | [
"__revision__ = \"$Id: SHA.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $\"",
"from sha import *",
"import sha",
"if hasattr(sha, 'digestsize'):\n digest_size = digestsize\n del digestsize",
" digest_size = digestsize"
] |
"""Secret-key encryption algorithms.
Secret-key encryption algorithms transform plaintext in some way that
is dependent on a key, producing ciphertext. This transformation can
easily be reversed, if (and, hopefully, only if) one knows the key.
The encryption modules here all support the interface described in PEP
272... | [
[
8,
0,
0.3788,
0.7273,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8333,
0.1212,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9394,
0.0303,
0,
0.66,
... | [
"\"\"\"Secret-key encryption algorithms.\n\nSecret-key encryption algorithms transform plaintext in some way that\nis dependent on a key, producing ciphertext. This transformation can\neasily be reversed, if (and, hopefully, only if) one knows the key.\n\nThe encryption modules here all support the interface descri... |
#! /usr/bin/env python
__revision__ = "$Id: setup.py,v 1.30 2005/06/14 01:20:22 akuchling Exp $"
from distutils import core
from distutils.core import Extension
from distutils.command.build_ext import build_ext
import os, sys
if sys.version[0:1] == '1':
raise RuntimeError, ("The Python Cryptography Toolkit requi... | [
[
1,
0,
0.0094,
0.0094,
0,
0.66,
0,
901,
0,
1,
0,
0,
901,
0,
0
],
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0.1667,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.0283,
0.0094,
0,
... | [
"from distutils import core",
"from distutils.core import Extension",
"from distutils.command.build_ext import build_ext",
"import os, sys",
"def find_file(filename, std_dirs, paths):\n \"\"\"Searches for the directory where a given file is located,\n and returns a possibly-empty list of additional di... |
#! /usr/bin/env python
__revision__ = "$Id: setup.py,v 1.30 2005/06/14 01:20:22 akuchling Exp $"
from distutils import core
from distutils.core import Extension
from distutils.command.build_ext import build_ext
import os, sys
if sys.version[0:1] == '1':
raise RuntimeError, ("The Python Cryptography Toolkit requi... | [
[
1,
0,
0.0094,
0.0094,
0,
0.66,
0,
901,
0,
1,
0,
0,
901,
0,
0
],
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0.1667,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.0283,
0.0094,
0,
... | [
"from distutils import core",
"from distutils.core import Extension",
"from distutils.command.build_ext import build_ext",
"import os, sys",
"def find_file(filename, std_dirs, paths):\n \"\"\"Searches for the directory where a given file is located,\n and returns a possibly-empty list of additional di... |
"""Python Cryptography Toolkit
A collection of cryptographic modules implementing various algorithms
and protocols.
Subpackages:
Crypto.Cipher Secret-key encryption algorithms (AES, DES, ARC4)
Crypto.Hash Hashing algorithms (MD5, SHA, HMAC)
Crypto.Protocol Cryptographic protocols ... | [
[
8,
0,
0.4,
0.68,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8,
0.04,
0,
0.66,
0.3333,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.88,
0.04,
0,
0.66,
0.6667,
... | [
"\"\"\"Python Cryptography Toolkit\n\nA collection of cryptographic modules implementing various algorithms\nand protocols.\n\nSubpackages:\nCrypto.Cipher Secret-key encryption algorithms (AES, DES, ARC4)\nCrypto.Hash Hashing algorithms (MD5, SHA, HMAC)",
"__all__ = ['Cipher', 'Hash', 'P... |
import time
from Crypto.Util import number
# Test of prime-generation speed
# This randfunc is deterministic, so we should always find the same primes.
chars = ''.join(map(chr, range(255, 0, -1)))
def randfunc (N):
s = ''
while len(s)<N:
s += chars
return s[:N]
def main ():
for i in range(12... | [
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.125,
0.0417,
0,
0.66,
0.2,
888,
0,
1,
0,
0,
888,
0,
0
],
[
14,
0,
0.3333,
0.0417,
0,
0.6... | [
"import time",
"from Crypto.Util import number",
"chars = ''.join(map(chr, range(255, 0, -1)))",
"def randfunc (N):\n s = ''\n while len(s)<N:\n s += chars\n return s[:N]",
" s = ''",
" while len(s)<N:\n s += chars",
" return s[:N]",
"def main ():\n for i in range(12... |
"""Miscellaneous modules
Contains useful modules that don't belong into any of the
other Crypto.* subpackages.
Crypto.Util.number Number-theoretic functions (primality testing, etc.)
Crypto.Util.randpool Random number generation
Crypto.Util.RFC1751 Converts between 128-bit keys and human-readable
... | [
[
8,
0,
0.375,
0.6875,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8125,
0.0625,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9375,
0.0625,
0,
0.66,
... | [
"\"\"\"Miscellaneous modules\n\nContains useful modules that don't belong into any of the\nother Crypto.* subpackages.\n\nCrypto.Util.number Number-theoretic functions (primality testing, etc.)\nCrypto.Util.randpool Random number generation\nCrypto.Util.RFC1751 Converts between 128-bit keys and hu... |
#!/usr/bin/env python
# Script to time fast and slow RSA operations
# Contributed by Joris Bontje.
import time, pprint
from Crypto.PublicKey import *
from Crypto.Util.randpool import RandomPool
from Crypto.Util import number
pool = RandomPool()
pool.stir()
KEYSIZE=2048
COUNT=5
fasttime=0
slowtime=0
for x in range(C... | [
[
1,
0,
0.125,
0.0208,
0,
0.66,
0,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.1458,
0.0208,
0,
0.66,
0.0909,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.1667,
0.0208,
0,
0... | [
"import time, pprint",
"from Crypto.PublicKey import *",
"from Crypto.Util.randpool import RandomPool",
"from Crypto.Util import number",
"pool = RandomPool()",
"pool.stir()",
"KEYSIZE=2048",
"COUNT=5",
"fasttime=0",
"slowtime=0",
"for x in range(COUNT):\n begintime=time.time()\n rsa=RSA.g... |
#!/usr/bin/env python
# Script to time fast and slow RSA operations
# Contributed by Joris Bontje.
import time, pprint
from Crypto.PublicKey import *
from Crypto.Util.randpool import RandomPool
from Crypto.Util import number
pool = RandomPool()
pool.stir()
KEYSIZE=2048
COUNT=5
fasttime=0
slowtime=0
for x in range(C... | [
[
1,
0,
0.125,
0.0208,
0,
0.66,
0,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.1458,
0.0208,
0,
0.66,
0.0909,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.1667,
0.0208,
0,
0... | [
"import time, pprint",
"from Crypto.PublicKey import *",
"from Crypto.Util.randpool import RandomPool",
"from Crypto.Util import number",
"pool = RandomPool()",
"pool.stir()",
"KEYSIZE=2048",
"COUNT=5",
"fasttime=0",
"slowtime=0",
"for x in range(COUNT):\n begintime=time.time()\n rsa=RSA.g... |
"""Public-key encryption and signature algorithms.
Public-key encryption uses two different keys, one for encryption and
one for decryption. The encryption key can be made public, and the
decryption key is kept private. Many public-key algorithms can also
be used to sign messages, and some can *only* be used for sig... | [
[
8,
0,
0.4118,
0.7647,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8824,
0.0588,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9412,
0.0588,
0,
0.66,
... | [
"\"\"\"Public-key encryption and signature algorithms.\n\nPublic-key encryption uses two different keys, one for encryption and\none for decryption. The encryption key can be made public, and the\ndecryption key is kept private. Many public-key algorithms can also\nbe used to sign messages, and some can *only* be... |
"""Cryptographic protocols
Implements various cryptographic protocols. (Don't expect to find
network protocols here.)
Crypto.Protocol.AllOrNothing Transforms a message into a set of message
blocks, such that the blocks can be
recombined to get the mess... | [
[
8,
0,
0.4706,
0.7647,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.9412,
0.0588,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
1,
0.0588,
0,
0.66,
1,... | [
"\"\"\"Cryptographic protocols\n\nImplements various cryptographic protocols. (Don't expect to find\nnetwork protocols here.)\n\nCrypto.Protocol.AllOrNothing Transforms a message into a set of message\n blocks, such that the blocks can be\n recombined t... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
1,
0,
0.1463,
0.0081,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1626,
0.0081,
0,
0.66,
0.0833,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1707,
0.0081,
0,
... | [
"import cgi",
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"class Review(db.Model):\n author = db.StringProperty()\n authorOrkutId = db.StringProperty()\n owner = db.StringProperty()\n ownerOrkutId = db.Str... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
1,
0,
0.1463,
0.0081,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1626,
0.0081,
0,
0.66,
0.0833,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1707,
0.0081,
0,
... | [
"import cgi",
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"class Review(db.Model):\n author = db.StringProperty()\n authorOrkutId = db.StringProperty()\n owner = db.StringProperty()\n ownerOrkutId = db.Str... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
1,
0,
0.1463,
0.0081,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1626,
0.0081,
0,
0.66,
0.0833,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1707,
0.0081,
0,
... | [
"import cgi",
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"class Review(db.Model):\n author = db.StringProperty()\n authorOrkutId = db.StringProperty()\n owner = db.StringProperty()\n ownerOrkutId = db.Str... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
1,
0,
0.1463,
0.0081,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1626,
0.0081,
0,
0.66,
0.0833,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1707,
0.0081,
0,
... | [
"import cgi",
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"class Review(db.Model):\n author = db.StringProperty()\n authorOrkutId = db.StringProperty()\n owner = db.StringProperty()\n ownerOrkutId = db.Str... |
import io
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'), ('Content-length',
str(int(len(string.ascii_lowercase)/2)))]
start_response(status, response_headers)
filelike = io.StringIO(string.ascii_low... | [
[
1,
0,
0.0769,
0.0769,
0,
0.66,
0,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6538,
0.7692,
0,
0.6... | [
"import io",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain'), ('Content-length',\n str(int(len(string.ascii_lowercase)/2)))]\n start_response(status, response_headers)\n\n filelike = io.Stri... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w')
filelike.write(string.ascii_lowercase)
filelike.close()
filelike = op... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.625,
0.8125,
0,
0.66,... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n\n filelike = open('/tmp/filetest.txt', 'w')\n filelike.write(string.ascii_lowercase)",
" status = ... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike1 = open('/tmp/filetest-a.txt', 'w+')
filelike1.write(string.ascii_lowercase)
filelike1.flush()
... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.56,
0.84,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike1 = open('/tmp/filetest-a.txt', 'w+')\n filelike1.write(string.ascii_lowercase)",
... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'), ('Content-length',
str(int(len(string.ascii_lowercase)/2)))]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6176,
0.8235,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain'), ('Content-length',\n str(int(len(string.ascii_lowercase)/2)))]\n start_response(status, response_headers)\n\n filelike = open('/... |
import io
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = io.StringIO(string.ascii_lowercase)
return environ['wsgi.file_wrapper'](filelike)
| [
[
1,
0,
0.0833,
0.0833,
0,
0.66,
0,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.1667,
0.0833,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6667,
0.75,
0,
0.66,... | [
"import io",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n\n filelike = io.StringIO(string.ascii_lowercase)",
" status = '200 OK'",
" response_headers = [(... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.625,
0.8125,
0,
0.66,... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK' \n \n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
import io
import os
def application(environ, start_response):
headers = []
headers.append(('Content-Type', 'text/plain'))
write = start_response('200 OK', headers)
input = environ['wsgi.input']
output = io.StringIO()
print("PID: %s" % os.getpid(), file=output)
print("UID: %s" % os.getuid(... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.5,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.58,
0.88,
0,
0.66,
1,
... | [
"import io",
"import os",
"def application(environ, start_response):\n headers = []\n headers.append(('Content-Type', 'text/plain'))\n write = start_response('200 OK', headers)\n\n input = environ['wsgi.input']\n output = io.StringIO()",
" headers = []",
" headers.append(('Content-Type'... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike1 = open('/tmp/filetest-a.txt', 'w+')
filelike1.write(string.ascii_lowercase)
filelike1.flush()
... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.56,
0.84,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike1 = open('/tmp/filetest-a.txt', 'w+')\n filelike1.write(string.ascii_lowercase)",
... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'), ('Content-length',
str(int(len(string.ascii_lowercase)/4)))]
start_response(status, response_headers)
filelike = open('/tmp/filetest... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6176,
0.8235,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK' \n \n response_headers = [('Content-type', 'text/plain'), ('Content-length',\n str(int(len(string.ascii_lowercase)/4)))]\n start_response(status, response_headers)\n \n filelike ... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
file... | [
[
1,
0,
0.05,
0.05,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1,
0.05,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.575,
0.8,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
def application(environ, start_response):
status = '200 OK'
output = b'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
| [
[
2,
0,
0.5556,
1,
0,
0.66,
0,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.2222,
0.1111,
1,
0.78,
0,
699,
1,
0,
0,
0,
0,
3,
0
],
[
14,
1,
0.3333,
0.1111,
1,
0.78,
0.... | [
"def application(environ, start_response):\n status = '200 OK' \n output = b'Hello World!'\n\n response_headers = [('Content-type', 'text/plain'),\n ('Content-Length', str(len(output)))]\n start_response(status, response_headers)",
" status = '200 OK'",
" output = b'Hell... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike = open('/tmp/filetest-a.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
fi... | [
[
1,
0,
0.0526,
0.0526,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6053,
0.8421,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest-a.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
import StringIO
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),
('Content-length', str(len(string.ascii_lowercase)/2))]
start_response(status, response_headers)
filelike = StringIO.StringIO(string.as... | [
[
1,
0,
0.0769,
0.0769,
0,
0.66,
0,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6538,
0.7692,
0,
0.6... | [
"import StringIO",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain'),\n ('Content-length', str(len(string.ascii_lowercase)/2))]\n start_response(status, response_headers)\n\n filelike = String... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w')
filelike.write(string.ascii_lowercase)
filelike.close()
filelike = op... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.625,
0.8125,
0,
0.66,... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n\n filelike = open('/tmp/filetest.txt', 'w')\n filelike.write(string.ascii_lowercase)",
" status = ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/content_length-1b.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'24'
>>> response.read... | [
[
8,
0,
0.2969,
0.5625,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8125,
0.4062,
0,
0.66,
1,
244,
0,
2,
0,
0,
0,
0,
4
],
[
14,
1,
0.6562,
0.0312,
1,
0.2,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/content_length-1b.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike1 = open('/tmp/filetest-a.txt', 'w+')
filelike1.write(string.ascii_lowercase)
filelike1.flush()
... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.56,
0.84,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike1 = open('/tmp/filetest-a.txt', 'w+')\n filelike1.write(string.ascii_lowercase)",
... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),
('Content-length', str(len(string.ascii_lowercase)/2))]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w+')
... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6176,
0.8235,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain'),\n ('Content-length', str(len(string.ascii_lowercase)/2))]\n start_response(status, response_headers)\n\n filelike = open('/tmp/f... |
import StringIO
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = StringIO.StringIO(string.ascii_lowercase)
return environ['wsgi.file_wrapper'](filelike)
| [
[
1,
0,
0.0833,
0.0833,
0,
0.66,
0,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.1667,
0.0833,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6667,
0.75,
0,
0.66,... | [
"import StringIO",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n\n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n\n filelike = StringIO.StringIO(string.ascii_lowercase)",
" status = '200 OK'",
" response_... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.625,
0.8125,
0,
0.66,... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK' \n \n response_headers = [('Content-type', 'text/plain')]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1g.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-5] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.3333,
0.6296,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8519,
0.3333,
0,
0.66,
1,
244,
0,
2,
0,
0,
0,
0,
4
],
[
14,
1,
0.7407,
0.037,
1,
0.32,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1g.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1c.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-2] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.3333,
0.6296,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8519,
0.3333,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7407,
0.037,
1,
0.48,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1c.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/content_length-1c.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'24'
>>> response.read... | [
[
8,
0,
0.3393,
0.6429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8571,
0.3214,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.75,
0.0357,
1,
0.05,
0,... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/content_length-1c.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> connection.putrequest('GET', '/dump_environ.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
"""
import cStringIO
import os
def application(environ, start_response):
headers = []
headers.... | [
[
8,
0,
0.1667,
0.3056,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3611,
0.0278,
0,
0.66,
0.3333,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.3889,
0.0278,
0,
0.66... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> connection.putrequest('GET', '/dump_environ.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()\n>>> response.status",
"import cStringIO",
"import os",
"def application(environ, start_response):\n heade... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1b.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: status code is not a 3 di... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.57,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1b.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '20 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1a.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: status code is not a 3 di... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.95,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1a.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '' \n ou... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/content_length-1a.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'12'
>>> response.read... | [
[
8,
0,
0.3393,
0.6429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8571,
0.3214,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.75,
0.0357,
1,
0.46,
0,... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/content_length-1a.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1d.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: no space following status... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.05,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1d.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1d.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-2] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.3103,
0.5862,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8276,
0.3793,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.6897,
0.0345,
1,
0.67,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1d.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1b.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-2] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.36,
0.68,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.88,
0.28,
0,
0.66,
1,
244,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.8,
0.04,
1,
0.55,
0,
699,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1b.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1a.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-5] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.45,
0.85,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.975,
0.1,
0,
0.66,
1,
244,
0,
2,
0,
0,
0,
0,
1
]
] | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1a.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n raise RuntimeError(\"ERR... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike1 = open('/tmp/filetest-a.txt', 'w+')
filelike1.write(string.ascii_lowercase)
filelike1.flush()
... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.56,
0.84,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike1 = open('/tmp/filetest-a.txt', 'w+')\n filelike1.write(string.ascii_lowercase)",
... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),
('Content-length', str(len(string.ascii_lowercase)/4))]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt'... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6176,
0.8235,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK' \n \n response_headers = [('Content-type', 'text/plain'),\n ('Content-length', str(len(string.ascii_lowercase)/4))]\n start_response(status, response_headers)\n \n filelike = ope... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike = open('/tmp/filetest.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
file... | [
[
1,
0,
0.05,
0.05,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1,
0.05,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.575,
0.8,
0,
0.66,
1,
... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1h.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-2] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.2727,
0.5152,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.6364,
0.1515,
0,
0.66,
0.5,
621,
0,
2,
0,
0,
0,
0,
0
],
[
2,
1,
0.6212,
0.0606,
1,
0.94,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1h.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"class Iterable:\n def __init__(self, output):\n self.__output... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1h.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] TypeError: expected byte string objec... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.83,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1h.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = None\n o... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1g.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: status code is not a 3 di... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.69,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1g.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = 'XYZ OK' \n... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> connection.putrequest('GET', '/hello_world.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'12'
>>> response.read()
'Hello World!'
"""
def application(env... | [
[
8,
0,
0.32,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.84,
0.36,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.72,
0.04,
1,
0.23,
0,
699,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> connection.putrequest('GET', '/hello_world.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()\n>>> response.status",
"def application(environ, start_response):\n status = '200 OK' \n output = 'Hello Wor... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1f.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-2] # doctest: +ELLIPSIS
"[error] ... Exception occurr... | [
[
8,
0,
0.3333,
0.6296,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8519,
0.3333,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7407,
0.037,
1,
0.96,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1f.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK' \n ... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> connection.putrequest('GET', '/start_response-1e.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'12'
>>> response.read()
'Hello World!'
"""
def applicati... | [
[
8,
0,
0.32,
0.6,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.84,
0.36,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.72,
0.04,
1,
0.9,
0,
699,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> connection.putrequest('GET', '/start_response-1e.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()\n>>> response.status",
"def application(environ, start_response):\n status = '200 ' \n output = 'Hello... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1f.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: control character present... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.84,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1f.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '200 OK\\r\... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/start_response-1c.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
500
>>> messages[-1]
'[error] ValueError: status code is not a 3 di... | [
[
8,
0,
0.3125,
0.5833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0.8333,
0.375,
0,
0.66,
1,
244,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.7083,
0.0417,
1,
0.32,
0... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/start_response-1c.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"def application(environ, start_response):\n status = '2000 OK' \... |
"""
>>> import _testfuncs
>>> connection = _testfuncs.connection()
>>> messages = _testfuncs.messages()
>>> connection.putrequest('GET', '/exceptions-1e.wsgi')
>>> connection.endheaders()
>>> response = connection.getresponse()
>>> response.status
200
>>> response.getheader('Content-Length')
'12'
>>> response.read()
'... | [
[
8,
0,
0.2821,
0.5385,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.6667,
0.1795,
0,
0.66,
0.5,
621,
0,
3,
0,
0,
0,
0,
1
],
[
2,
1,
0.6282,
0.0513,
1,
0.82,
... | [
"\"\"\"\n\n>>> import _testfuncs\n>>> connection = _testfuncs.connection()\n>>> messages = _testfuncs.messages()\n>>> connection.putrequest('GET', '/exceptions-1e.wsgi')\n>>> connection.endheaders()\n>>> response = connection.getresponse()",
"class Iterable:\n def __init__(self, output):\n self.__output... |
import os
import httplib
import re
import time
host = 'wsgi-tests.example.com'
port = '11111'
host = os.environ.get('WSGI_TESTS_HOST', host)
port = int(os.environ.get('WSGI_TESTS_PORT', port))
log_file = '/var/log/apache2/%s-error_log' % host
log_delay = '0.1'
log_file = os.environ.get('WSGI_TEST_LOG_FILE', log_fil... | [
[
1,
0,
0.0169,
0.0169,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0339,
0.0169,
0,
0.66,
0.0714,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.0508,
0.0169,
0,
0.66... | [
"import os",
"import httplib",
"import re",
"import time",
"host = 'wsgi-tests.example.com'",
"port = '11111'",
"host = os.environ.get('WSGI_TESTS_HOST', host)",
"port = int(os.environ.get('WSGI_TESTS_PORT', port))",
"log_file = '/var/log/apache2/%s-error_log' % host",
"log_delay = '0.1'",
"log_... |
import os
import string
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain'),]
start_response(status, response_headers)
filelike = open('/tmp/filetest-a.txt', 'w+')
filelike.write(string.ascii_lowercase)
filelike.flush()
fi... | [
[
1,
0,
0.0526,
0.0526,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0.5,
890,
0,
1,
0,
0,
890,
0,
0
],
[
2,
0,
0.6053,
0.8421,
0,
0.6... | [
"import os",
"import string",
"def application(environ, start_response):\n status = '200 OK'\n \n response_headers = [('Content-type', 'text/plain'),]\n start_response(status, response_headers)\n \n filelike = open('/tmp/filetest-a.txt', 'w+')\n filelike.write(string.ascii_lowercase)",
" ... |
#!/usr/bin/python
"""Test the mutex behavior of a circuit.
To test the basic wait/acquire/release functionality, simply run this script:
$ ./testmutex.py
This will hold the mutex with a thread that sleeps for a few seconds, and
simultaneously start another thread that blocks until the first is complete.
To test th... | [
[
8,
0,
0.142,
0.2222,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2716,
0.0123,
0,
0.66,
0.1,
777,
0,
2,
0,
0,
777,
0,
0
],
[
1,
0,
0.2963,
0.0123,
0,
0.66,
... | [
"\"\"\"Test the mutex behavior of a circuit.\n\nTo test the basic wait/acquire/release functionality, simply run this script:\n\n$ ./testmutex.py\n\nThis will hold the mutex with a thread that sleeps for a few seconds, and\nsimultaneously start another thread that blocks until the first is complete.",
"from __fut... |
#!/usr/bin/python
"""Tests the functionality of the proc ripple."""
from __future__ import division, print_function
import argparse
from lib import circuit
from lib import ripple
def main():
parser = argparse.ArgumentParser()
args = parser.parse_args()
langdir = circuit.local_lang()
proc = ripple.Proc(lan... | [
[
8,
0,
0.0938,
0.0312,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1562,
0.0312,
0,
0.66,
0.1667,
777,
0,
2,
0,
0,
777,
0,
0
],
[
1,
0,
0.2188,
0.0312,
0,
0.66... | [
"\"\"\"Tests the functionality of the proc ripple.\"\"\"",
"from __future__ import division, print_function",
"import argparse",
"from lib import circuit",
"from lib import ripple",
"def main():\n parser = argparse.ArgumentParser()\n args = parser.parse_args()\n\n langdir = circuit.local_lang()\n proc... |
#!/usr/bin/python
"""Tests the functionality of the select ripple."""
from __future__ import division, print_function
import argparse
import random
import sys
import threading
import time
from lib import circuit
from lib import ripple
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--... | [
[
8,
0,
0.0405,
0.0135,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0676,
0.0135,
0,
0.66,
0.1,
777,
0,
2,
0,
0,
777,
0,
0
],
[
1,
0,
0.0946,
0.0135,
0,
0.66,
... | [
"\"\"\"Tests the functionality of the select ripple.\"\"\"",
"from __future__ import division, print_function",
"import argparse",
"import random",
"import sys",
"import threading",
"import time",
"from lib import circuit",
"from lib import ripple",
"def main():\n parser = argparse.ArgumentParser... |
#!/usr/bin/python
"""Utilities for working with local running circuit processes."""
from __future__ import division, print_function
import os
import os.path
import subprocess
class Error(Exception):
"""Module-level error."""
class NoCircuitRunning(Error):
"""Failed to find a local circuit process."""
class No... | [
[
8,
0,
0.039,
0.013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0649,
0.013,
0,
0.66,
0.0909,
777,
0,
2,
0,
0,
777,
0,
0
],
[
1,
0,
0.0909,
0.013,
0,
0.66,
... | [
"\"\"\"Utilities for working with local running circuit processes.\"\"\"",
"from __future__ import division, print_function",
"import os",
"import os.path",
"import subprocess",
"class Error(Exception):\n \"\"\"Module-level error.\"\"\"",
" \"\"\"Module-level error.\"\"\"",
"class NoCircuitRunning(E... |
#!/usr/bin/env python
import os, sys, re, json, requests, base64
from subprocess import call
from fabric import api
from fabric.api import cd, run, put, sudo
from os import environ as env
from datetime import datetime
from time import sleep
# Remove SSH private key as it needs more processing
CONFIG = json.loads(re.s... | [
[
1,
0,
0.0176,
0.0059,
0,
0.66,
0,
688,
0,
6,
0,
0,
688,
0,
0
],
[
1,
0,
0.0235,
0.0059,
0,
0.66,
0.0161,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0294,
0.0059,
0,
... | [
"import os, sys, re, json, requests, base64",
"from subprocess import call",
"from fabric import api",
"from fabric.api import cd, run, put, sudo",
"from os import environ as env",
"from datetime import datetime",
"from time import sleep",
"CONFIG = json.loads(re.sub(r'(\"DOCKER_CI_KEY\".+?\"(.+?)\",)... |
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | [
[
8,
0,
0.12,
0.0514,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1543,
0.0057,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.16,
0.0057,
0,
0.66,
... | [
"\"\"\"\ngithub_buildbot.py is based on git_buildbot.py\n\ngithub_buildbot.py will determine the repository information from the JSON \nHTTP POST it receives from github.com and build the appropriate repository.\nIf your github repository is private, you must add a ssh key to the github\nrepository for the user who... |
#!/usr/bin/python
'''CONFIG_JSON is a json encoded string base64 environment variable. It is used
to clone docker-ci database, generate docker-ci report and submit it by email.
CONFIG_JSON data comes from the file /report/credentials.json inserted in this
container by deployment.py:
{ "DOCKER_CI_PUB": "$(cat do... | [
[
8,
0,
0.059,
0.0833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1111,
0.0069,
0,
0.66,
0.0417,
688,
0,
6,
0,
0,
688,
0,
0
],
[
1,
0,
0.1181,
0.0069,
0,
0.66,... | [
"'''CONFIG_JSON is a json encoded string base64 environment variable. It is used\nto clone docker-ci database, generate docker-ci report and submit it by email.\nCONFIG_JSON data comes from the file /report/credentials.json inserted in this\ncontainer by deployment.py:\n\n{ \"DOCKER_CI_PUB\": \"$(cat docker-c... |
#!/usr/bin/env python
'''Deploy docker-ci report container on Digital Ocean.
Usage:
export CONFIG_JSON='
{ "DROPLET_NAME": "Digital_Ocean_dropplet_name",
"DO_CLIENT_ID": "Digital_Ocean_client_id",
"DO_API_KEY": "Digital_Ocean_api_key",
"DOCKER_KEY_ID": ... | [
[
8,
0,
0.0808,
0.1231,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1538,
0.0077,
0,
0.66,
0.0286,
540,
0,
4,
0,
0,
540,
0,
0
],
[
1,
0,
0.1615,
0.0077,
0,
0.66... | [
"'''Deploy docker-ci report container on Digital Ocean.\nUsage:\n export CONFIG_JSON='\n { \"DROPLET_NAME\": \"Digital_Ocean_dropplet_name\",\n \"DO_CLIENT_ID\": \"Digital_Ocean_client_id\",\n \"DO_API_KEY\": \"Digital_Ocean_api_key\",\n \"DOCKER_KEY_ID\":... |
#!/usr/bin/python2.6
#
# Simple http server to emulate api.playfoursquare.com
import logging
import shutil
import sys
import urlparse
import SimpleHTTPServer
import BaseHTTPServer
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Handle playfoursquare.com requests, for testing."""
def do_GET(self... | [
[
1,
0,
0.0588,
0.0118,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0706,
0.0118,
0,
0.66,
0.125,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0824,
0.0118,
0,
0... | [
"import logging",
"import shutil",
"import sys",
"import urlparse",
"import SimpleHTTPServer",
"import BaseHTTPServer",
"class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',... |
#!/usr/bin/python
import datetime
import sys
import textwrap
import common
from xml.dom import pulldom
PARSER = """\
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquare.parsers;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareError;
import com.joel... | [
[
1,
0,
0.0201,
0.0067,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0268,
0.0067,
0,
0.66,
0.0769,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0336,
0.0067,
0,
... | [
"import datetime",
"import sys",
"import textwrap",
"import common",
"from xml.dom import pulldom",
"PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;",
"BOOLEAN_STANZA = \"\"\"\\\n } else i... |
#!/usr/bin/python
"""
Pull a oAuth protected page from foursquare.
Expects ~/.oget to contain (one on each line):
CONSUMER_KEY
CONSUMER_KEY_SECRET
USERNAME
PASSWORD
Don't forget to chmod 600 the file!
"""
import httplib
import os
import re
import sys
import urllib
import urllib2
import urlparse
import user
from xml.... | [
[
8,
0,
0.0631,
0.0991,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1261,
0.009,
0,
0.66,
0.05,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.1351,
0.009,
0,
0.66,
0.... | [
"\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD",
"import httplib",
"import os",
"import re",
"import sys",
"import urllib",
"import urllib2",
"import urlparse",
"import user",
"from xml.... |
#!/usr/bin/python
import os
import subprocess
import sys
BASEDIR = '../main/src/com/joelapenna/foursquare'
TYPESDIR = '../captures/types/v1'
captures = sys.argv[1:]
if not captures:
captures = os.listdir(TYPESDIR)
for f in captures:
basename = f.split('.')[0]
javaname = ''.join([c.capitalize() for c in basena... | [
[
1,
0,
0.1111,
0.037,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1481,
0.037,
0,
0.66,
0.1429,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.1852,
0.037,
0,
0.6... | [
"import os",
"import subprocess",
"import sys",
"BASEDIR = '../main/src/com/joelapenna/foursquare'",
"TYPESDIR = '../captures/types/v1'",
"captures = sys.argv[1:]",
"if not captures:\n captures = os.listdir(TYPESDIR)",
" captures = os.listdir(TYPESDIR)",
"for f in captures:\n basename = f.split('... |
#!/usr/bin/python
import logging
from xml.dom import minidom
from xml.dom import pulldom
BOOLEAN = "boolean"
STRING = "String"
GROUP = "Group"
# Interfaces that all FoursquareTypes implement.
DEFAULT_INTERFACES = ['FoursquareType']
# Interfaces that specific FoursqureTypes implement.
INTERFACES = {
}
DEFAULT_CLA... | [
[
1,
0,
0.0263,
0.0088,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0439,
0.0088,
0,
0.66,
0.0833,
290,
0,
1,
0,
0,
290,
0,
0
],
[
1,
0,
0.0526,
0.0088,
0,
... | [
"import logging",
"from xml.dom import minidom",
"from xml.dom import pulldom",
"BOOLEAN = \"boolean\"",
"STRING = \"String\"",
"GROUP = \"Group\"",
"DEFAULT_INTERFACES = ['FoursquareType']",
"INTERFACES = {\n}",
"DEFAULT_CLASS_IMPORTS = [\n]",
"CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP... |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you ... | [
[
1,
0,
0.3514,
0.0135,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3649,
0.0135,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3784,
0.0135,
0,
... | [
"import os",
"import re",
"import tempfile",
"import shutil",
"ignore_pattern = re.compile('^(.svn|target|bin|classes)')",
"java_pattern = re.compile('^.*\\.java')",
"annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')",
"def process_dir(dir):\n files = os.listdir(dir)\n for... |
#!/usr/bin/python
#
# Script to generate distorted text images for a captcha system.
#
# Copyright (C) 2005 Neil Harris
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the ... | [
[
1,
0,
0.1239,
0.0044,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1283,
0.0044,
0,
0.66,
0.0667,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.1327,
0.0044,
0,
... | [
"import random",
"import math",
"import hashlib",
"from optparse import OptionParser",
"import os",
"import sys",
"import re",
"try:\n\timport Image\n\timport ImageFont\n\timport ImageDraw\n\timport ImageEnhance\n\timport ImageOps\nexcept:\n\tsys.exit(\"This script requires the Python Imaging Library ... |
#!/usr/bin/python
#
# Copyright 2007 Google Inc. All Rights Reserved.
"""CSS Lexical Grammar rules.
CSS lexical grammar from http://www.w3.org/TR/CSS21/grammar.html
"""
__author__ = ['elsigh@google.com (Lindsey Simon)',
'msamuel@google.com (Mike Samuel)']
# public symbols
__all__ = [ "NEWLINE", "HEX",... | [
[
8,
0,
0.057,
0.0351,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0921,
0.0175,
0,
0.66,
0.0385,
777,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.1228,
0.0088,
0,
0.66,... | [
"\"\"\"CSS Lexical Grammar rules.\n\nCSS lexical grammar from http://www.w3.org/TR/CSS21/grammar.html\n\"\"\"",
"__author__ = ['elsigh@google.com (Lindsey Simon)',\n 'msamuel@google.com (Mike Samuel)']",
"__all__ = [ \"NEWLINE\", \"HEX\", \"NON_ASCII\", \"UNICODE\", \"ESCAPE\", \"NMSTART\", \"NMCHA... |
#!/usr/bin/python
#
# Copyright 2008 Google Inc. All Rights Reserved.
"""Converts a LeftToRight Cascading Style Sheet into a RightToLeft one.
This is a utility script for replacing "left" oriented things in a CSS file
like float, padding, margin with "right" oriented values.
It also does the opposite.
The... | [
[
8,
0,
0.0174,
0.0192,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0296,
0.0017,
0,
0.66,
0.0149,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0314,
0.0017,
0,
0.66... | [
"\"\"\"Converts a LeftToRight Cascading Style Sheet into a RightToLeft one.\n\n This is a utility script for replacing \"left\" oriented things in a CSS file\n like float, padding, margin with \"right\" oriented values.\n It also does the opposite.\n The goal is to be able to conditionally serve one large, ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author Philip
import tarfile as tf
import zipfile as zf
import os, re, shutil, sys, platform
pyversion = platform.python_version()
islinux = platform.system().lower() == 'linux'
if pyversion[:3] in ['2.6', '2.7']:
import urllib as urllib_request
import codecs
... | [
[
1,
0,
0.0102,
0.0026,
0,
0.66,
0,
223,
0,
1,
0,
0,
223,
0,
0
],
[
1,
0,
0.0128,
0.0026,
0,
0.66,
0.0278,
93,
0,
1,
0,
0,
93,
0,
0
],
[
1,
0,
0.0153,
0.0026,
0,
0.... | [
"import tarfile as tf",
"import zipfile as zf",
"import os, re, shutil, sys, platform",
"pyversion = platform.python_version()",
"islinux = platform.system().lower() == 'linux'",
"if pyversion[:3] in ['2.6', '2.7']:\n import urllib as urllib_request\n import codecs\n open = codecs.open\n _unic... |
#!/usr/bin/env pypy
import os, sys, logging, re
import argparse
import fnmatch
configurations = {'lite', 'pro'}
package_dirs = {
'lite': ('src/cx/hell/android/pdfview',),
'pro': ('src/cx/hell/android/pdfviewpro',)
}
file_replaces = {
'lite': (
'cx.hell.android.pdfview.',
'"cx.hell.an... | [
[
1,
0,
0.014,
0.0047,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
1,
0,
0.0187,
0.0047,
0,
0.66,
0.0526,
325,
0,
1,
0,
0,
325,
0,
0
],
[
1,
0,
0.0234,
0.0047,
0,
0... | [
"import os, sys, logging, re",
"import argparse",
"import fnmatch",
"configurations = {'lite', 'pro'}",
"package_dirs = {\n 'lite': ('src/cx/hell/android/pdfview',),\n 'pro': ('src/cx/hell/android/pdfviewpro',)\n}",
"file_replaces = {\n 'lite': (\n 'cx.hell.android.pdfview.',\n '\"c... |
#!/usr/bin/env python
import codecs
import re
import jinja2
import markdown
def process_slides():
with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
md = codecs.open('slides.md', encoding='utf8').read()
md_slides = md.split('\n---\n')
print 'Compiled %s slides.' % len(m... | [
[
1,
0,
0.0526,
0.0175,
0,
0.66,
0,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0702,
0.0175,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0877,
0.0175,
0,
... | [
"import codecs",
"import re",
"import jinja2",
"import markdown",
"def process_slides():\n with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:\n md = codecs.open('slides.md', encoding='utf8').read()\n md_slides = md.split('\\n---\\n')\n print('Compiled %s slides.' ... |
#!/usr/bin/python
import glob, os,sys
#return list of (ipsw,kernel,ramdisk)
def list_bootable():
res = []
for ipsw in glob.glob("data/ipsw/*.ipsw"):
ipsw_id = os.path.basename(ipsw).replace("_Restore.ipsw", "")
kernel = os.path.join("data", "boot", "kernel_%s.patched" % ipsw_id)
ramdis... | [
[
1,
0,
0.0435,
0.0145,
0,
0.66,
0,
958,
0,
3,
0,
0,
958,
0,
0
],
[
2,
0,
0.1522,
0.1449,
0,
0.66,
0.3333,
771,
0,
0,
1,
0,
0,
0,
8
],
[
14,
1,
0.1014,
0.0145,
1,
0... | [
"import glob, os,sys",
"def list_bootable():\n res = []\n for ipsw in glob.glob(\"data/ipsw/*.ipsw\"):\n ipsw_id = os.path.basename(ipsw).replace(\"_Restore.ipsw\", \"\")\n kernel = os.path.join(\"data\", \"boot\", \"kernel_%s.patched\" % ipsw_id)\n ramdisk = os.path.join(\"data\", \"bo... |
#!/usr/bin/env python
import os,sys
REDSNOW_URL="https://sites.google.com/a/iphone-dev.com/files/home/redsn0w_mac_0.9.15b3.zip"
IPSWs = {
#"iphone2g": "http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7481.20100202.4orot/iPhone1,1_3.1.3_7E18_Restore.ipsw",
#"iphone3g": "http://appldn... | [
[
1,
0,
0.0316,
0.0105,
0,
0.66,
0,
688,
0,
2,
0,
0,
688,
0,
0
],
[
14,
0,
0.0526,
0.0105,
0,
0.66,
0.125,
822,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1526,
0.1684,
0,
0... | [
"import os,sys",
"REDSNOW_URL=\"https://sites.google.com/a/iphone-dev.com/files/home/redsn0w_mac_0.9.15b3.zip\"",
"IPSWs = {\n #\"iphone2g\": \"http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7481.20100202.4orot/iPhone1,1_3.1.3_7E18_Restore.ipsw\",\n #\"iphone3g\": \"http://appld... |
import os
import plistlib
from keystore.keybag import Keybag
from util.ramdiskclient import RamdiskToolClient
"""
this wont work on iOS 5 unless the passcode was already bruteforced
"""
def escrow():
client = RamdiskToolClient()
di = client.getDeviceInfos()
key835 = di.get("key835").decode("hex"... | [
[
1,
0,
0.0263,
0.0263,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0.1667,
592,
0,
1,
0,
0,
592,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
... | [
"import os",
"import plistlib",
"from keystore.keybag import Keybag",
"from util.ramdiskclient import RamdiskToolClient",
"\"\"\"\nthis wont work on iOS 5 unless the passcode was already bruteforced\n\"\"\"",
"def escrow():\n client = RamdiskToolClient()\n di = client.getDeviceInfos()\n key835 = ... |
#!/usr/bin/python
from backups.backup3 import decrypt_backup3
from backups.backup4 import MBDB
from icloud.backup import download_backup
from keystore.keybag import Keybag
from util import readPlist, makedirs
import os
import sys
import plistlib
showinfo = ["Device Name", "Display Name", "Last Backup Date", "IMEI",
... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
256,
0,
1,
0,
0,
256,
0,
0
],
[
1,
0,
0.0357,
0.0119,
0,
0.66,
0.0833,
986,
0,
1,
0,
0,
986,
0,
0
],
[
1,
0,
0.0476,
0.0119,
0,
... | [
"from backups.backup3 import decrypt_backup3",
"from backups.backup4 import MBDB",
"from icloud.backup import download_backup",
"from keystore.keybag import Keybag",
"from util import readPlist, makedirs",
"import os",
"import sys",
"import plistlib",
"showinfo = [\"Device Name\", \"Display Name\", ... |
#!/usr/bin/python
import os
import plistlib
import zipfile
import struct
import sys
from optparse import OptionParser
from crypto import aes_ctypes as AES
from util.lzss import decompress_lzss
devices = {"n82ap": "iPhone1,2",
"n88ap": "iPhone2,1",
"n90ap": "iPhone3,1",
"n90bap": "iPho... | [
[
1,
0,
0.0126,
0.0042,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0167,
0.0042,
0,
0.66,
0.0476,
592,
0,
1,
0,
0,
592,
0,
0
],
[
1,
0,
0.0209,
0.0042,
0,
... | [
"import os",
"import plistlib",
"import zipfile",
"import struct",
"import sys",
"from optparse import OptionParser",
"from crypto import aes_ctypes as AES",
"from util.lzss import decompress_lzss",
"devices = {\"n82ap\": \"iPhone1,2\",\n \"n88ap\": \"iPhone2,1\",\n \"n90ap\": \"... |
from crypto.aes import AESencryptCBC, AESdecryptCBC
from emf import cprotect_xattr, EMFFile
from structs import *
from util import write_file, sizeof_fmt
import hashlib
"""
Implementation of the following paper :
Using the HFS+ Journal For Deleted File Recovery. Aaron Burghardt, Adam Feldman. DFRWS 2008
http:... | [
[
1,
0,
0.0066,
0.0066,
0,
0.66,
0,
692,
0,
2,
0,
0,
692,
0,
0
],
[
1,
0,
0.0132,
0.0066,
0,
0.66,
0.0625,
945,
0,
2,
0,
0,
945,
0,
0
],
[
1,
0,
0.0197,
0.0066,
0,
... | [
"from crypto.aes import AESencryptCBC, AESdecryptCBC",
"from emf import cprotect_xattr, EMFFile",
"from structs import *",
"from util import write_file, sizeof_fmt",
"import hashlib",
"\"\"\"\nImplementation of the following paper :\nUsing the HFS+ Journal For Deleted File Recovery. Aaron Burghardt, Adam ... |
from construct import *
from construct.macros import UBInt64
"""
http://developer.apple.com/library/mac/#technotes/tn/tn1150.html
"""
def getString(obj):
return obj.HFSUniStr255.unicode
S_IFLNK = 0120000
kSymLinkFileType = 0x736C6E6B
kSymLinkCreator = 0x72686170
kHardLinkFileType = 0x686C6E6B
kHF... | [
[
1,
0,
0.0029,
0.0029,
0,
0.66,
0,
235,
0,
1,
0,
0,
235,
0,
0
],
[
1,
0,
0.0059,
0.0029,
0,
0.66,
0.0133,
906,
0,
1,
0,
0,
906,
0,
0
],
[
8,
0,
0.0118,
0.0088,
0,
... | [
"from construct import *",
"from construct.macros import UBInt64",
"\"\"\"\nhttp://developer.apple.com/library/mac/#technotes/tn/tn1150.html\n\"\"\"",
"def getString(obj):\n return obj.HFSUniStr255.unicode",
" return obj.HFSUniStr255.unicode",
"kSymLinkFileType = 0x736C6E6B",
"kSymLinkCreator =... |
from structs import *
"""
Probably buggy
HAX, only works on case SENSITIVE
"""
class BTree(object):
def __init__(self, file, keyStruct, dataStruct):
self.file = file
self.keyStruct = keyStruct
self.dataStruct = dataStruct
block0 = self.file.readBlock(0)
btnode ... | [
[
1,
0,
0.0037,
0.0037,
0,
0.66,
0,
466,
0,
1,
0,
0,
466,
0,
0
],
[
8,
0,
0.0168,
0.0149,
0,
0.66,
0.2,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.3638,
0.6716,
0,
0.66,
... | [
"from structs import *",
"\"\"\"\nProbably buggy\nHAX, only works on case SENSITIVE\n\"\"\"",
"class BTree(object):\n def __init__(self, file, keyStruct, dataStruct):\n self.file = file\n self.keyStruct = keyStruct\n self.dataStruct = dataStruct\n block0 = self.file.readBlock(0)\n... |
from construct import Struct, ULInt16, ULInt32, String
from construct.macros import ULInt64, Padding, If
from crypto.aes import AESencryptCBC, AESdecryptCBC
from hfs import HFSVolume, HFSFile
from keystore.keybag import Keybag
from structs import HFSPlusVolumeHeader, kHFSPlusFileRecord, getString, \
kHFSRootP... | [
[
1,
0,
0.0046,
0.0046,
0,
0.66,
0,
235,
0,
4,
0,
0,
235,
0,
0
],
[
1,
0,
0.0091,
0.0046,
0,
0.66,
0.05,
906,
0,
3,
0,
0,
906,
0,
0
],
[
1,
0,
0.0137,
0.0046,
0,
0.... | [
"from construct import Struct, ULInt16, ULInt32, String",
"from construct.macros import ULInt64, Padding, If",
"from crypto.aes import AESencryptCBC, AESdecryptCBC",
"from hfs import HFSVolume, HFSFile",
"from keystore.keybag import Keybag",
"from structs import HFSPlusVolumeHeader, kHFSPlusFileRecord, ge... |
from btree import AttributesTree, CatalogTree, ExtentsOverflowTree
from structs import *
from util import write_file
from util.bdev import FileBlockDevice
import datetime
import hashlib
import os
import struct
import sys
import zlib
def hfs_date(t):
return datetime.datetime(1904,1,1) + datetime.timedelta(seconds=t... | [
[
1,
0,
0.0032,
0.0032,
0,
0.66,
0,
641,
0,
3,
0,
0,
641,
0,
0
],
[
1,
0,
0.0063,
0.0032,
0,
0.66,
0.0714,
466,
0,
1,
0,
0,
466,
0,
0
],
[
1,
0,
0.0095,
0.0032,
0,
... | [
"from btree import AttributesTree, CatalogTree, ExtentsOverflowTree",
"from structs import *",
"from util import write_file",
"from util.bdev import FileBlockDevice",
"import datetime",
"import hashlib",
"import os",
"import struct",
"import sys",
"import zlib",
"def hfs_date(t):\n return dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.