code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/python import time, sys from math import sqrt, ceil, floor """ The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? """ def isprime(num): ans = True if num <= 1: return False if num % 2 == 0: return False for n in xr...
[ [ 1, 0, 0.0652, 0.0217, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.087, 0.0217, 0, 0.66, 0.2, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1739, 0.1087, 0, 0.66...
[ "import time, sys", "from math import sqrt, ceil, floor", "\"\"\" \nThe prime factors of 13195 are 5, 7, 13 and 29.\n\nWhat is the largest prime factor of the number 600851475143 ?\n\"\"\"", "def isprime(num):\n ans = True\n if num <= 1:\n return False\n if num % 2 == 0:\n return False\...
#!/usr/bin/python import time, sys """ The nth term of the sequence of triangle numbers is given by, tn = 0.5 * n(n+1); so the first ten triangle numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... By converting each letter in a word to a number corresponding to its alphabetical position and adding these values...
[ [ 1, 0, 0.0526, 0.0175, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 8, 0, 0.1754, 0.193, 0, 0.66, 0.2, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.307, 0.0351, 0, 0.66, ...
[ "import time, sys", "\"\"\" \n\nThe nth term of the sequence of triangle numbers is given by, tn = 0.5 * n(n+1); so the first ten triangle numbers are:\n\n1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...\n\nBy converting each letter in a word to a number corresponding to its alphabetical position and adding these values ...
#!/usr/bin/python # http://projecteuler.net/problem=14 # import time """ Starting in the top left corner of a 2 x 2 grid, there are 6 routes (without backtracking) to the bottom right corner. How many routes are there through a 20 x 20 grid? """ def main(): start = time.time() start r prin...
[ [ 1, 0, 0.2, 0.04, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 8, 0, 0.42, 0.24, 0, 0.66, 0.3333, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.68, 0.2, 0, 0.66, 0.6667, ...
[ "import time", "\"\"\" \nStarting in the top left corner of a 2 x 2 grid, there are 6 routes (without backtracking) to the bottom right corner.\n\n\nHow many routes are there through a 20 x 20 grid?\n\"\"\"", "def main():\n start = time.time()\n \n \n print('{0:.2f} s'.format(time.time() - start))",...
#!/usr/bin/python import time, sys from math import ceil, sqrt, floor def isprime(num): ans = True if num <= 1: return False if num % 2 == 0: return False for n in xrange(3, int(ceil(sqrt(num)))+1, 2): if num % n == 0: ans = False break return ans ...
[ [ 1, 0, 0.0435, 0.0435, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.087, 0.0435, 0, 0.66, 0.3333, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 2, 0, 0.3913, 0.4783, 0, 0...
[ "import time, sys", "from math import ceil, sqrt, floor", "def isprime(num):\n ans = True\n if num <= 1:\n return False\n if num % 2 == 0:\n return False\n for n in xrange(3, int(ceil(sqrt(num)))+1, 2):\n if num % n == 0:", " ans = True", " if num <= 1:\n return...
#!/usr/bin/python import time, sys from math import sqrt, ceil, floor """ The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? """ def isprime(num): ans = True if num <= 1: return False if num % 2 == 0: return False for n in xr...
[ [ 1, 0, 0.0652, 0.0217, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.087, 0.0217, 0, 0.66, 0.2, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1739, 0.1087, 0, 0.66...
[ "import time, sys", "from math import sqrt, ceil, floor", "\"\"\" \nThe prime factors of 13195 are 5, 7, 13 and 29.\n\nWhat is the largest prime factor of the number 600851475143 ?\n\"\"\"", "def isprime(num):\n ans = True\n if num <= 1:\n return False\n if num % 2 == 0:\n return False\...
#!/usr/bin/python import time, sys """ Problem 17 If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? NOTE: D...
[ [ 1, 0, 0.0357, 0.0119, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 8, 0, 0.125, 0.119, 0, 0.66, 0.25, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.375, 0.3571, 0, 0.66, ...
[ "import time, sys", "\"\"\" \nProblem 17\n\nIf the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.\n\nIf all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?\n\nNOTE: Do...
#!/usr/bin/python # version 2 import time, sys import itertools """ In the 20 x 20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88...
[ [ 1, 0, 0.0364, 0.0091, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0455, 0.0091, 0, 0.66, 0.1111, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 8, 0, 0.1864, 0.2545, 0, ...
[ "import time, sys", "import itertools", "\"\"\" \nIn the 20 x 20 grid below, four numbers along a diagonal line have been marked in red.\n\n08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08\n49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00\n81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49...
#!/usr/bin/python # http://projecteuler.net/problem=14 # import time """ The following iterative sequence is defined for the set of positive integers: n n/2 (n is even) n 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 40 20 10 5 16 8 4 2 1 It can b...
[ [ 1, 0, 0.0833, 0.0167, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 8, 0, 0.2583, 0.2667, 0, 0.66, 0.25, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.5, 0.1833, 0, 0.66, ...
[ "import time", "\"\"\" \nThe following iterative sequence is defined for the set of positive integers:\n\nn n/2 (n is even)\nn 3n + 1 (n is odd)\n\nUsing the rule above and starting with 13, we generate the following sequence:", "def collatz(n):\n i = 1\n \n while n > 1:\n if n%2 != 0:\n ...
#!/usr/bin/python import time, sys from math import pow as power """ The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)^2 = 552 = 3025 Hence the difference between the sum of the squares of the first...
[ [ 1, 0, 0.0714, 0.0238, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0952, 0.0238, 0, 0.66, 0.1667, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 8, 0, 0.2619, 0.2619, 0, ...
[ "import time, sys", "from math import pow as power", "\"\"\" \nThe sum of the squares of the first ten natural numbers is,\n\n1^2 + 2^2 + ... + 10^2 = 385\nThe square of the sum of the first ten natural numbers is,\n\n(1 + 2 + ... + 10)^2 = 552 = 3025\nHence the difference between the sum of the squares of the ...
#!/usr/bin/python import time, sys from math import sqrt, ceil, floor, log10 """ The Fibonacci sequence is defined by the recurrence relation: fn = fn1 + fn2, where F1 = 1 afnd F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F12 = 144 The 12th term, F12,...
[ [ 1, 0, 0.0303, 0.0101, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0404, 0.0101, 0, 0.66, 0.25, 526, 0, 4, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1667, 0.2222, 0, 0....
[ "import time, sys", "from math import sqrt, ceil, floor, log10", "\"\"\" \nThe Fibonacci sequence is defined by the recurrence relation:\n\nfn = fn1 + fn2, where F1 = 1 afnd F2 = 1.\nHence the first 12 terms will be:\n\nF1 = 1\nF2 = 1", "def main():\n start = time.time()\n \n a, b, fn = 0, 1, 1 \n ...
#!/usr/bin/python import time, sys """ The nth term of the sequence of triangle numbers is given by, tn = 0.5 * n(n+1); so the first ten triangle numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... By converting each letter in a word to a number corresponding to its alphabetical position and adding these values...
[ [ 1, 0, 0.0526, 0.0175, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 8, 0, 0.1754, 0.193, 0, 0.66, 0.2, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.307, 0.0351, 0, 0.66, ...
[ "import time, sys", "\"\"\" \n\nThe nth term of the sequence of triangle numbers is given by, tn = 0.5 * n(n+1); so the first ten triangle numbers are:\n\n1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...\n\nBy converting each letter in a word to a number corresponding to its alphabetical position and adding these values ...
#!/usr/bin/python import time, sys from math import sqrt, ceil, floor """ The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million """ def isprime(num): ans = True if num <= 1: return False if num == 2: return True for n in xrange(2,...
[ [ 1, 0, 0.0638, 0.0213, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0851, 0.0213, 0, 0.66, 0.2, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1702, 0.1064, 0, 0.6...
[ "import time, sys", "from math import sqrt, ceil, floor", "\"\"\" \nThe sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.\n\nFind the sum of all the primes below two million \n\"\"\"", "def isprime(num):\n ans = True\n if num <= 1:\n return False\n if num == 2:\n return True\n for...
#!/usr/bin/python import time, sys from math import sqrt, ceil, floor """ A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99. Find the largest palindrome made from the product of two 3-digit numbers. """ def ispalindrome(x): x = s...
[ [ 1, 0, 0.0769, 0.0256, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, 0.2, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 8, 0, 0.2051, 0.1282, 0, 0.6...
[ "import time, sys", "from math import sqrt, ceil, floor", "\"\"\" \nA palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99.\n\nFind the largest palindrome made from the product of two 3-digit numbers.\n\"\"\"", "def ispalindrome(x):\...
#!/usr/bin/python import time, sys from math import ceil, sqrt, floor """ A Hamming number is a positive number which has no prime factor larger than 5. So the first few Hamming numbers are 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15. There are 1105 Hamming numbers not exceeding 10^8. We will call a positive number a gene...
[ [ 1, 0, 0.0273, 0.0091, 0, 0.66, 0, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0364, 0.0091, 0, 0.66, 0.1667, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1136, 0.1091, 0, ...
[ "import time, sys", "from math import ceil, sqrt, floor", "\"\"\" \n\nA Hamming number is a positive number which has no prime factor larger than 5.\nSo the first few Hamming numbers are 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15.\nThere are 1105 Hamming numbers not exceeding 10^8.\n\nWe will call a positive number a g...
#!/usr/bin/python # Database Module for functional genes # by Aaron (ams@bio.aau.dk) import Bio.SeqIO as SeqIO import Bio.Entrez as Entrez import os Entrez.email = "ams@bio.aau.dk"
[ [ 1, 0, 0.5, 0.1, 0, 0.66, 0, 917, 0, 1, 0, 0, 917, 0, 0 ], [ 1, 0, 0.6, 0.1, 0, 0.66, 0.3333, 27, 0, 1, 0, 0, 27, 0, 0 ], [ 1, 0, 0.7, 0.1, 0, 0.66, 0.6667, ...
[ "import Bio.SeqIO as SeqIO", "import Bio.Entrez as Entrez", "import os", "Entrez.email = \"ams@bio.aau.dk\"" ]
#!/usr/bin/python # ams@bio.aau.au from Bio.SeqIO.QualityIO import FastqGeneralIterator import os.path def reformat_for_qiime(filehandle, outfilepath): """takes a fh of a fastq-illumina file and reformats to fasta for qiime the output is compatible with the outpur of the slipt_libraries.py """ fastqfile =...
[ [ 1, 0, 0.1212, 0.0303, 0, 0.66, 0, 904, 0, 1, 0, 0, 904, 0, 0 ], [ 1, 0, 0.1515, 0.0303, 0, 0.66, 0.5, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 2, 0, 0.5909, 0.7879, 0, 0.66,...
[ "from Bio.SeqIO.QualityIO import FastqGeneralIterator", "import os.path", "def reformat_for_qiime(filehandle, outfilepath):\n \"\"\"takes a fh of a fastq-illumina file and reformats to fasta for qiime\n the output is compatible with the outpur of the slipt_libraries.py \"\"\"\n fastqfile = filehandle\n...
#!/usr/bin/python # Database Module for functional genes # by Aaron (ams@bio.aau.dk) import Bio.SeqIO as SeqIO import Bio.Entrez as Entrez import os Entrez.email = "ams@bio.aau.dk"
[ [ 1, 0, 0.5, 0.1, 0, 0.66, 0, 917, 0, 1, 0, 0, 917, 0, 0 ], [ 1, 0, 0.6, 0.1, 0, 0.66, 0.3333, 27, 0, 1, 0, 0, 27, 0, 0 ], [ 1, 0, 0.7, 0.1, 0, 0.66, 0.6667, ...
[ "import Bio.SeqIO as SeqIO", "import Bio.Entrez as Entrez", "import os", "Entrez.email = \"ams@bio.aau.dk\"" ]
#!/usr/bin/python from Bio import SeqIO from Bio.SeqRecord import SeqRecord import os import os.path import re import subprocess def phd2fasta(filename, inpath, qualflag = 'TRUE'): '''Biopython implementation of phd2fasta ''' if filename[-6:] == '.phd.1': stubname = filename[:-6] elif filename [-4...
[ [ 1, 0, 0.0221, 0.0074, 0, 0.66, 0, 631, 0, 1, 0, 0, 631, 0, 0 ], [ 1, 0, 0.0294, 0.0074, 0, 0.66, 0.0625, 195, 0, 1, 0, 0, 195, 0, 0 ], [ 1, 0, 0.0368, 0.0074, 0, ...
[ "from Bio import SeqIO", "from Bio.SeqRecord import SeqRecord", "import os", "import os.path", "import re", "import subprocess", "def phd2fasta(filename, inpath, qualflag = 'TRUE'):\n '''Biopython implementation of phd2fasta '''\n if filename[-6:] == '.phd.1':\n stubname = filename[:-6]\n ...
#!/usr/bin/python # ams@bio.aau.dk import subprocess # make an alignment # muscle -in strep.mod.seqs.txt -out strep.align.txt # degap the alignment # calculate a tree # FastTree -nt strep.align.txt > strep.tree.txt # print the tree # in R # library(ape) # tree = read.tree('tree.nwk') # plot(tree)...
[ [ 1, 0, 0.2, 0.05, 0, 0.66, 0, 394, 0, 1, 0, 0, 394, 0, 0 ] ]
[ "import subprocess" ]
#!/usr/bin/python # by Aaron (ams@bio.aau.dk) DNA_complements = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C', 'a': 't', 't': 'a', 'c': 'g', 'g': 'c',} RNA_complements = {'A': 'U', 'U': 'A', 'C': 'G', 'G': 'C', 'a': 'u', 'u': 'a', 'c': 'g', 'g': 'c',} DNA_codon_table = { ...
[ [ 14, 0, 0.0789, 0.0351, 0, 0.66, 0, 279, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.1316, 0.0351, 0, 0.66, 0.25, 342, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.3246, 0.3158, 0, 0.6...
[ "DNA_complements = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C',\n 'a': 't', 't': 'a', 'c': 'g', 'g': 'c',}", "RNA_complements = {'A': 'U', 'U': 'A', 'C': 'G', 'G': 'C',\n 'a': 'u', 'u': 'a', 'c': 'g', 'g': 'c',}", "DNA_codon_table = {\n 'TTT': 'F', 'TCT': 'S', 'TAT': 'Y', 'TGT...
#!/usr/bin/python from Bio import SeqIO from Bio.SeqRecord import SeqRecord import os import os.path import re import subprocess def phd2fasta(filename, inpath, qualflag = 'TRUE'): '''Biopython implementation of phd2fasta ''' if filename[-6:] == '.phd.1': stubname = filename[:-6] elif filename [-4...
[ [ 1, 0, 0.0221, 0.0074, 0, 0.66, 0, 631, 0, 1, 0, 0, 631, 0, 0 ], [ 1, 0, 0.0294, 0.0074, 0, 0.66, 0.0625, 195, 0, 1, 0, 0, 195, 0, 0 ], [ 1, 0, 0.0368, 0.0074, 0, ...
[ "from Bio import SeqIO", "from Bio.SeqRecord import SeqRecord", "import os", "import os.path", "import re", "import subprocess", "def phd2fasta(filename, inpath, qualflag = 'TRUE'):\n '''Biopython implementation of phd2fasta '''\n if filename[-6:] == '.phd.1':\n stubname = filename[:-6]\n ...
#!/usr/bin/python # ams@bio.aau.au from Bio.SeqIO.QualityIO import FastqGeneralIterator import os.path def reformat_for_qiime(filehandle, outfilepath): """takes a fh of a fastq-illumina file and reformats to fasta for qiime the output is compatible with the outpur of the slipt_libraries.py """ fastqfile =...
[ [ 1, 0, 0.1212, 0.0303, 0, 0.66, 0, 904, 0, 1, 0, 0, 904, 0, 0 ], [ 1, 0, 0.1515, 0.0303, 0, 0.66, 0.5, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 2, 0, 0.5909, 0.7879, 0, 0.66,...
[ "from Bio.SeqIO.QualityIO import FastqGeneralIterator", "import os.path", "def reformat_for_qiime(filehandle, outfilepath):\n \"\"\"takes a fh of a fastq-illumina file and reformats to fasta for qiime\n the output is compatible with the outpur of the slipt_libraries.py \"\"\"\n fastqfile = filehandle\n...
#!/usr/bin/python # by Aaron (ams@bio.aau.dk) DNA_complements = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C', 'a': 't', 't': 'a', 'c': 'g', 'g': 'c',} RNA_complements = {'A': 'U', 'U': 'A', 'C': 'G', 'G': 'C', 'a': 'u', 'u': 'a', 'c': 'g', 'g': 'c',} DNA_codon_table = { ...
[ [ 14, 0, 0.0789, 0.0351, 0, 0.66, 0, 279, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.1316, 0.0351, 0, 0.66, 0.25, 342, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.3246, 0.3158, 0, 0.6...
[ "DNA_complements = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C',\n 'a': 't', 't': 'a', 'c': 'g', 'g': 'c',}", "RNA_complements = {'A': 'U', 'U': 'A', 'C': 'G', 'G': 'C',\n 'a': 'u', 'u': 'a', 'c': 'g', 'g': 'c',}", "DNA_codon_table = {\n 'TTT': 'F', 'TCT': 'S', 'TAT': 'Y', 'TGT...
#!/usr/bin/python # fasta.py # ams@bio.aau.dk def parse_rnammer_fasta_header(header): """take a header and returns gi, acc, start, stop, strand(PLUS/MINUS), molecule """ main, molecule, score = header.strip().split() fields = main.split('|') gi = fields[1] acc, version = fie...
[ [ 2, 0, 0.1584, 0.1881, 0, 0.66, 0, 576, 0, 1, 1, 0, 0, 0, 8 ], [ 8, 1, 0.0891, 0.0297, 1, 0.42, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.1089, 0.0099, 1, 0.42, ...
[ "def parse_rnammer_fasta_header(header):\n \"\"\"take a header and returns \n gi, acc, start, stop, strand(PLUS/MINUS), molecule\n \"\"\"\n main, molecule, score = header.strip().split()\n fields = main.split('|')\n gi = fields[1]\n acc, version = fields[3].split('.')", " \"\"\"take a head...
#!/usr/bin/python # ams@bio.aau.dk import subprocess # make an alignment # muscle -in strep.mod.seqs.txt -out strep.align.txt # degap the alignment # calculate a tree # FastTree -nt strep.align.txt > strep.tree.txt # print the tree # in R # library(ape) # tree = read.tree('tree.nwk') # plot(tree)...
[ [ 1, 0, 0.2, 0.05, 0, 0.66, 0, 394, 0, 1, 0, 0, 394, 0, 0 ] ]
[ "import subprocess" ]
#!/usr/bin/python from optparse import OptionParser import re import subprocess import sys """ This script generates a release note from the output of git log between the specified tags. Options: --issues Show output the commits with issues associated with them. --issue-numbers Show outputs issue numbers o...
[ [ 1, 0, 0.0187, 0.0093, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.028, 0.0093, 0, 0.66, 0.0526, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0374, 0.0093, 0, 0...
[ "from optparse import OptionParser", "import re", "import subprocess", "import sys", "\"\"\"\nThis script generates a release note from the output of git log\nbetween the specified tags.\n\nOptions:\n--issues Show output the commits with issues associated with them.\n--issue-numbers Show outputs ...
#!/usr/bin/python # # Copyright (C) 2012 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 ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 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 ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/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...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 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 ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2011 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 or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # Copyright (C) 2010 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 l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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 l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" 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_...
"""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 ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[]
[]
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.121, 0.0064, 0, 0.66, 0, 223, 0, 1, 0, 0, 223, 0, 0 ], [ 1, 0, 0.1274, 0.0064, 0, 0.66, 0.0417, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.1338, 0.0064, 0, 0...
[ "import tarfile", "from StringIO import StringIO", "from random import shuffle", "import sys", "from time import time", "from pyext._MakeDataPyExt import resizeJPEG", "import itertools", "import os", "import cPickle", "import scipy.io", "import math", "import argparse as argp", "CROP_TO_SQUA...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.0519, 0.0035, 0, 0.66, 0, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0554, 0.0035, 0, 0.66, 0.05, 181, 0, 1, 0, 0, 181, 0, 0 ], [ 1, 0, 0.0588, 0.0035, 0, 0....
[ "import numpy as n", "import numpy.random as nr", "import random as r", "from python_util.util import *", "from python_util.data import *", "from python_util.options import *", "from python_util.gpumodel import *", "import sys", "import math as m", "import layer as lay", "from convdata import Im...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.0515, 0.0034, 0, 0.66, 0, 260, 0, 1, 0, 0, 260, 0, 0 ], [ 1, 0, 0.055, 0.0034, 0, 0.66, 0.0625, 181, 0, 1, 0, 0, 181, 0, 0 ], [ 1, 0, 0.0584, 0.0034, 0, 0...
[ "from python_util.data import *", "import numpy.random as nr", "import numpy as n", "import random as r", "from time import time", "from threading import Thread", "from math import sqrt", "import sys", "from PIL import Image", "from StringIO import StringIO", "from time import time", "import i...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.2778, 0.0185, 0, 0.66, 0, 658, 0, 1, 0, 0, 658, 0, 0 ], [ 1, 0, 0.2963, 0.0185, 0, 0.66, 0.1111, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.3148, 0.0185, 0, ...
[ "from python_util.gpumodel import *", "import numpy as n", "import numpy.random as nr", "def get_src(filename):\n src = IGPUModel.load_checkpoint(filename)\n return src['model_state']['layers']", " src = IGPUModel.load_checkpoint(filename)", " return src['model_state']['layers']", "def makew...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.0055, 0.0055, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0109, 0.0055, 0, 0.66, 0.0625, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0164, 0.0055, 0, ...
[ "import os", "import sys", "from tarfile import TarFile, TarInfo", "from matplotlib import pylab as pl", "import numpy as n", "import getopt as opt", "from python_util.util import *", "from math import sqrt, ceil, floor", "from python_util.gpumodel import IGPUModel", "import random as r", "impor...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.1596, 0.0106, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1702, 0.0106, 0, 0.66, 0.0714, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.1809, 0.0106, 0, ...
[ "import re", "import cPickle", "import os", "from cStringIO import StringIO", "class UnpickleError(Exception):\n pass", "GPU_LOCK_NO_SCRIPT = -2", "GPU_LOCK_NO_LOCK = -1", "def pickle(filename, data):\n fo = filename\n if type(filename) == str:\n fo = open(filename, \"w\")\n \n c...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[ [ 1, 0, 0.0773, 0.0052, 0, 0.66, 0, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0825, 0.0052, 0, 0.66, 0.0769, 181, 0, 3, 0, 0, 181, 0, 0 ], [ 1, 0, 0.0876, 0.0052, 0, ...
[ "import numpy as n", "from numpy.random import randn, rand, random_integers", "import os", "from threading import Thread", "from util import *", "BATCH_META_FILE = \"batches.meta\"", "class DataLoaderThread(Thread):\n def __init__(self, path, tgt):\n Thread.__init__(self)\n self.path = ...
# Copyright 2014 Google Inc. All rights reserved. # # 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 or...
[]
[]
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
[ [ 1, 0, 0.0816, 0.0102, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1224, 0.0102, 0, 0.66, 0.0714, 792, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1531, 0.0102, 0, ...
[ "import os, re, mimetypes, sys", "SOURCE = sys.argv[1:]", "COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)", "COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)", "COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)", "EXCLUDE_TYPES = [\n \"application/xml\...
# GTK imports import pygtk pygtk.require("2.0") import gtk import gobject import os.path import serial from time import gmtime, strftime # Numpy module from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas from matplotlib.figure import Figure # Com scanning module need testing from comsc...
[ [ 1, 0, 0.0063, 0.0032, 0, 0.66, 0, 106, 0, 1, 0, 0, 106, 0, 0 ], [ 8, 0, 0.0095, 0.0032, 0, 0.66, 0.0714, 66, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0127, 0.0032, 0, 0.6...
[ "import pygtk", "pygtk.require(\"2.0\")", "import gtk", "import gobject", "import os.path", "import serial", "from time import gmtime, strftime", "from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas", "from matplotlib.figure import Figure", "from comscan import comsca...
import random import md5 from django.db import models from ft_auth.models import OAuthAccessToken STATUS_CODES = { 1 : 'In Queue (%s ahead of you)', 2 : 'Initial Processing', 3 : 'Importing into Fusion Tables', 4 : 'Complete', 6 : 'Error' } class shapeUpload(models.Model): """An upload -- includes location ...
[ [ 1, 0, 0.0204, 0.0204, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0408, 0.0204, 0, 0.66, 0.2, 604, 0, 1, 0, 0, 604, 0, 0 ], [ 1, 0, 0.0816, 0.0204, 0, 0.6...
[ "import random", "import md5", "from django.db import models", "from ft_auth.models import OAuthAccessToken", "STATUS_CODES = {\n 1 : 'In Queue (%s ahead of you)',\n 2 : 'Initial Processing',\n 3 : 'Importing into Fusion Tables',\n 4 : 'Complete',\n 6 : 'Error'\n}", "class shapeUpload(models.Model):\n \"...
#!/usr/bin/env python # # Copyright 2010 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 or ...
[ [ 1, 0, 0.64, 0.04, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.68, 0.04, 0, 0.66, 0.5, 547, 0, 1, 0, 0, 547, 0, 0 ], [ 14, 0, 0.88, 0.28, 0, 0.66, 1, ...
[ "from django.conf.urls.defaults import *", "from views import *", "urlpatterns = patterns('',\n\n (r'^upload/$', generic_import),\n url(r'^uploads/(?P<upload_ids>[a-gA-F\\d]*)/$', upload_detail, name=\"upload_detail\"),\n (r'^$', static, {'template':'index.html'}),\n\n)" ]
from django.conf import settings from django.conf.urls.defaults import * from django.contrib import databrowse from django.contrib import admin admin.autodiscover() #from shapeft.custom_admin import editor #from registration.views import register urlpatterns = patterns('', (r'^_admin_/', include(admin.site.url...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0.2, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0.6...
[ "from django.conf import settings", "from django.conf.urls.defaults import *", "from django.contrib import databrowse", "from django.contrib import admin", "admin.autodiscover()", "urlpatterns = patterns('',\n (r'^_admin_/', include(admin.site.urls)),\n# (r'^editor/(.*)', editor.root),\n (r'^data...
from django import forms from django.contrib.auth.models import User class ContactForm(forms.Form): name = forms.CharField(max_length=100, help_text="Full Name", widget=forms.TextInput(attrs={'size':'40'}),required=False) subject = forms.CharField(max_length=100, help_text="Subject of ...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 294, 0, 1, 0, 0, 294, 0, 0 ], [ 1, 0, 0.1333, 0.0667, 0, 0.66, 0.5, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 3, 0, 0.6333, 0.8, 0, 0.66, ...
[ "from django import forms", "from django.contrib.auth.models import User", "class ContactForm(forms.Form):\n name = forms.CharField(max_length=100,\n help_text=\"Full Name\", widget=forms.TextInput(attrs={'size':'40'}),required=False)\n subject = forms.CharField(max_length=100,\n he...
from django.conf.urls.defaults import * from views import * urlpatterns = patterns('', (r'^', contact), (r'^thanks/$', static, {'template':'contact_thanks.html'}), )
[ [ 1, 0, 0.125, 0.125, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.25, 0.125, 0, 0.66, 0.5, 547, 0, 1, 0, 0, 547, 0, 0 ], [ 14, 0, 0.6875, 0.5, 0, 0.66, ...
[ "from django.conf.urls.defaults import *", "from views import *", "urlpatterns = patterns('',\n (r'^', contact),\n (r'^thanks/$', static, {'template':'contact_thanks.html'}),\n)" ]
#r!/usr/bin/env python # # Copyright 2010 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 or...
[ [ 1, 0, 0.3333, 0.0196, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.3529, 0.0196, 0, 0.66, 0.2, 852, 0, 1, 0, 0, 852, 0, 0 ], [ 1, 0, 0.3725, 0.0196, 0, 0.6...
[ "from django.conf import settings", "from django.shortcuts import render_to_response", "from django.http import HttpResponseRedirect", "from forms import *", "def static(request, template):\n return render_to_response(template, RequestContext(request,{}))", " return render_to_response(template, RequestC...
#!/usr/bin/env python # # Copyright 2010 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 or ...
[ [ 1, 0, 0.4146, 0.0244, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.439, 0.0244, 0, 0.66, 0.3333, 886, 0, 1, 0, 0, 886, 0, 0 ], [ 3, 0, 0.622, 0.2439, 0, 0.66...
[ "from django.db import models", "from django.contrib.gis.geos import Point", "class OAuthRequestToken(models.Model):\n \"\"\"OAuth Request Token.\"\"\"\n session_key = models.CharField(max_length=250)\n ft_token = models.CharField(max_length=250)\n ft_token_secret = models.CharField(max_length=250)\...
#!/usr/bin/env python # # Copyright 2010 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 or ...
[ [ 1, 0, 0.68, 0.04, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.72, 0.04, 0, 0.66, 0.5, 547, 0, 2, 0, 0, 547, 0, 0 ], [ 14, 0, 0.9, 0.24, 0, 0.66, 1, ...
[ "from django.conf.urls.defaults import *", "from views import FTVerify, FTAuthenticate", "urlpatterns = patterns('',\n\n (r'^FTVerify/$', FTVerify),\n (r'^FTAuthenticate/$', FTAuthenticate),\n\n)" ]
#!/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 or ...
[ [ 1, 0, 0.1356, 0.0085, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1441, 0.0085, 0, 0.66, 0.0588, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1525, 0.0085, 0, ...
[ "import os", "import random", "from datetime import datetime", "from django.conf import settings", "from django.shortcuts import render_to_response, get_object_or_404", "from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, Http404", "from django.template import RequestConte...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 7, 0, 0.5, 0.5455, 0, 0.66, 0.5, 0, 0, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.3636, 0.0909, 1, 0.63, ...
[ "from django.core.management import execute_manager", "try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj...
#!/usr/bin/python # # Copyright (C) 2012 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 ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/python # # Copyright (C) 2012 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 ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 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 ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright (C) 2011 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 or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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 l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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 l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 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 or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...