code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
read('sim.p4_tPickle') t = var.trees[0] read('d.nex') t.data = Data() t.optLogLike(newtAndBrentPowell=True, allBrentPowell=False) t.model.dump()
[ [ 8, 0, 0.1667, 0.1667, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.3333, 0.1667, 0, 0.66, 0.2, 15, 6, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.5, 0.1667, 0, 0.66, ...
[ "read('sim.p4_tPickle')", "t = var.trees[0]", "read('d.nex')", "t.data = Data()", "t.optLogLike(newtAndBrentPowell=True, allBrentPowell=False)", "t.model.dump()" ]
var.warnReadNoFile = 0 var.verboseRead = 0 func.reseedCRandomizer(os.getpid()) nTax = 5 taxNames = list(string.uppercase[:nTax]) a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=100) d = Data([a]) read('(B:0.5, ((D:0.4, A:0.3), C:0.5), E:0.5);') t = var.trees[0] t.taxNames = taxNames t.data = d c...
[ [ 14, 0, 0.0333, 0.0333, 0, 0.66, 0, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0667, 0.0333, 0, 0.66, 0.04, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1, 0.0333, 0, 0.66, ...
[ "var.warnReadNoFile = 0", "var.verboseRead = 0", "func.reseedCRandomizer(os.getpid())", "nTax = 5", "taxNames = list(string.uppercase[:nTax])", "a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=100)", "d = Data([a])", "read('(B:0.5, ((D:0.4, A:0.3), C:0.5), E:0.5);')", "t = var.t...
var.verboseRead = 0 var.warnReadNoFile = 0 read('data.nex') d = Data() d.compoSummary() read('(A,B,C,D,E);') t = var.trees[0] t.data = d c1 = t.newComp(free=1, spec='empirical') c2 = t.newComp(free=1, spec='empirical') # Put the c1 comp on all the nodes of the tree. Then put c2 on the # root, over-riding c1 that is ...
[ [ 14, 0, 0.0357, 0.0357, 0, 0.66, 0, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0714, 0.0357, 0, 0.66, 0.05, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1071, 0.0357, 0, 0.66...
[ "var.verboseRead = 0", "var.warnReadNoFile = 0", "read('data.nex')", "d = Data()", "d.compoSummary()", "read('(A,B,C,D,E);')", "t = var.trees[0]", "t.data = d", "c1 = t.newComp(free=1, spec='empirical')", "c2 = t.newComp(free=1, spec='empirical')", "t.setModelThing(c1, node=0, clade=1)", "t.se...
var.verboseRead = 0 var.warnReadNoFile = 0 func.reseedCRandomizer(os.getpid()) taxNames = list(string.uppercase[:5]) a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=3000) d = Data([a]) read('(A:0.3, B:0.3, C:0.3, D:0.3, E:0.3);') t = var.trees[0] t.data = d c1 = t.newComp(free=0, spec='specified', ...
[ [ 14, 0, 0.0455, 0.0455, 0, 0.66, 0, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0909, 0.0455, 0, 0.66, 0.0588, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1364, 0.0455, 0, 0....
[ "var.verboseRead = 0", "var.warnReadNoFile = 0", "func.reseedCRandomizer(os.getpid())", "taxNames = list(string.uppercase[:5])", "a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=3000)", "d = Data([a])", "read('(A:0.3, B:0.3, C:0.3, D:0.3, E:0.3);')", "t = var.trees[0]", "t.data ...
var.warnReadNoFile = 0 var.verboseRead = 0 func.reseedCRandomizer(os.getpid()) read('d.nex') d = Data() read('((A:0.4, B:0.4), C:0.4, D:0.4);') t = var.trees[0] t.data = d print '==== Homogeneous model =========================' t.newComp(free=1, spec='empirical') t.newRMatrix(free=1, spec='ones') t.setNGammaCat(nGam...
[ [ 14, 0, 0.0227, 0.0227, 0, 0.66, 0, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0455, 0.0227, 0, 0.66, 0.0312, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.0682, 0.0227, 0, 0....
[ "var.warnReadNoFile = 0", "var.verboseRead = 0", "func.reseedCRandomizer(os.getpid())", "read('d.nex')", "d = Data()", "read('((A:0.4, B:0.4), C:0.4, D:0.4);')", "t = var.trees[0]", "t.data = d", "print('==== Homogeneous model =========================')", "t.newComp(free=1, spec='empirical')", ...
var.warnReadNoFile = 0 var.verboseRead = 0 func.reseedCRandomizer(os.getpid()) nTax = 4 taxNames = list(string.uppercase[:nTax]) a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=500) d = Data([a]) read('((A:0.4, B:0.4), C:0.4, D:0.4);') t = var.trees[0] t.data = d c1 = t.newComp(free=1, spec='speci...
[ [ 14, 0, 0.0476, 0.0476, 0, 0.66, 0, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0952, 0.0476, 0, 0.66, 0.0556, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1429, 0.0476, 0, 0....
[ "var.warnReadNoFile = 0", "var.verboseRead = 0", "func.reseedCRandomizer(os.getpid())", "nTax = 4", "taxNames = list(string.uppercase[:nTax])", "a = func.newEmptyAlignment(dataType='dna', taxNames=taxNames, length=500)", "d = Data([a])", "read('((A:0.4, B:0.4), C:0.4, D:0.4);')", "t = var.trees[0]",...
var.verboseRead = 0 read('t.nex') t = var.trees[0] read('d.nex') t.data = Data() t.newComp(free=1, spec='empirical') t.newRMatrix(free=1, spec='ones') t.setPInvar(free=1, val=0.0) t.setNGammaCat(nGammaCat=4) t.newGdasrv(free=1, val=1.0) t.optLogLike() # If I wanted to save the tree (with branch lengths, of course), I ...
[ [ 14, 0, 0.0526, 0.0526, 0, 0.66, 0, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1053, 0.0526, 0, 0.66, 0.1, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.1579, 0.0526, 0, 0.66,...
[ "var.verboseRead = 0", "read('t.nex')", "t = var.trees[0]", "read('d.nex')", "t.data = Data()", "t.newComp(free=1, spec='empirical')", "t.newRMatrix(free=1, spec='ones')", "t.setPInvar(free=1, val=0.0)", "t.setNGammaCat(nGammaCat=4)", "t.newGdasrv(free=1, val=1.0)", "t.optLogLike()" ]
def pepper(self, proportion=0.1, andAmbiguities=1): """Pepper the alignment (self) with random gaps and ambiguities.""" import random import math ambigs = 'rymkswhbvdnnn' #ambigs = 'n' for s in self.sequences: s.sequence = list(s.sequence) for i in range(self.length): ...
[ [ 2, 0, 0.2714, 0.5143, 0, 0.66, 0, 290, 0, 3, 0, 0, 0, 0, 10 ], [ 8, 1, 0.0571, 0.0286, 1, 0.4, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0857, 0.0286, 1, 0.4, 0....
[ "def pepper(self, proportion=0.1, andAmbiguities=1):\n \"\"\"Pepper the alignment (self) with random gaps and ambiguities.\"\"\"\n import random\n import math\n ambigs = 'rymkswhbvdnnn'\n #ambigs = 'n'\n for s in self.sequences:\n s.sequence = list(s.sequence)", " \"\"\"Pepper the alig...
taxNames = list(string.uppercase[:7]) t = func.randomTree(taxNames) t.writeNexus('t.nex')
[ [ 14, 0, 0.3333, 0.3333, 0, 0.66, 0, 585, 3, 1, 0, 0, 430, 10, 1 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 15, 3, 1, 0, 0, 569, 10, 1 ], [ 8, 0, 1, 0.3333, 0, 0.66,...
[ "taxNames = list(string.uppercase[:7])", "t = func.randomTree(taxNames)", "t.writeNexus('t.nex')" ]
read('../A_NavidiAlignFromYang/navidiSSRNA.nex') a = var.alignments[0] print '%20s %7s%7s%7s%7s%7s' % ('species', 'T', 'C', 'A', 'G', 'G + C') for i in range(len(a.sequences)): s = a.sequences[i] c = a.composition([i]) # comp of an individual sequence print '%20s ' % s.name, for b in [3, 1, 0, 2]: ...
[ [ 8, 0, 0.0526, 0.0526, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.1053, 0.0526, 0, 0.66, 0.125, 475, 6, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.2105, 0.0526, 0, 0.66...
[ "read('../A_NavidiAlignFromYang/navidiSSRNA.nex')", "a = var.alignments[0]", "print('%20s %7s%7s%7s%7s%7s' % ('species', 'T', 'C', 'A', 'G', 'G + C'))", "for i in range(len(a.sequences)):\n s = a.sequences[i]\n c = a.composition([i]) # comp of an individual sequence\n print('%20s ' % s.name,)\n ...
read('../A_NavidiAlignFromYang/navidiSSRNA.nex') read('t.nex') d = Data() d.calcUnconstrainedLogLikelihood1() u = d.unconstrainedLogLikelihood #fResults = open('results', 'w') fResults = sys.stdout fResults.write('\nYang and Roberts Table 3, HKY + dG + N1\n\n') fResults.write('tree diff kappa shape\n') for t...
[ [ 8, 0, 0.0204, 0.0204, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.0408, 0.0204, 0, 0.66, 0.1111, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.0816, 0.0204, 0, 0.6...
[ "read('../A_NavidiAlignFromYang/navidiSSRNA.nex')", "read('t.nex')", "d = Data()", "d.calcUnconstrainedLogLikelihood1()", "u = d.unconstrainedLogLikelihood", "fResults = sys.stdout", "fResults.write('\\nYang and Roberts Table 3, HKY + dG + N1\\n\\n')", "fResults.write('tree diff kappa shape\\n'...
read('../A_NavidiAlignFromYang/navidiSSRNA.nex') d = Data() read('t.nex') #readFile('t31.WithRates.nex') t=var.trees[0] t.data = d t.newComp(free=1, spec='empirical') t.newComp(free=1, spec='empirical') t.newComp(free=1, spec='empirical') t.newComp(free=1, spec='empirical') t.newComp(free=1, spec='empirical') t.newCom...
[ [ 8, 0, 0.0217, 0.0217, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.0435, 0.0217, 0, 0.66, 0.0312, 355, 3, 0, 0, 0, 467, 10, 1 ], [ 8, 0, 0.0652, 0.0217, 0, ...
[ "read('../A_NavidiAlignFromYang/navidiSSRNA.nex')", "d = Data()", "read('t.nex')", "t=var.trees[0]", "t.data = d", "t.newComp(free=1, spec='empirical')", "t.newComp(free=1, spec='empirical')", "t.newComp(free=1, spec='empirical')", "t.newComp(free=1, spec='empirical')", "t.newComp(free=1, spec='em...
read('../A_NavidiAlignFromYang/navidiSSRNA.nex') read('t.nex') d=Data() d.calcUnconstrainedLogLikelihood1() u = d.unconstrainedLogLikelihood #fResults = open('results', 'w') fResults = sys.stdout fResults.write('\nTable 2\n=======\n\nHKY, no rates\n\n') fResults.write(' tree diff kapp...
[ [ 8, 0, 0.0204, 0.0204, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.0408, 0.0204, 0, 0.66, 0.0833, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.0816, 0.0204, 0, 0.6...
[ "read('../A_NavidiAlignFromYang/navidiSSRNA.nex')", "read('t.nex')", "d=Data()", "d.calcUnconstrainedLogLikelihood1()", "u = d.unconstrainedLogLikelihood", "fResults = sys.stdout", "fResults.write('\\nTable 2\\n=======\\n\\nHKY, no rates\\n\\n')", "fResults.write(' tree diff ...
var.warnReadNoFile = 0 var.verboseRead = 0 read('protein.nex') a = var.alignments[0] a.recodeDayhoff() #a.writePhylip(None) read('(((A:0.4, (B:0.4, C:0.4):0.05):0.05, D:0.4):0.1, E:0.4, F:0.4);') t = var.trees[0] t.data = Data() t.newComp(free=1, spec='empirical') t.newRMatrix(free=1, spec='ones') t.setNGammaCat(nGamma...
[ [ 14, 0, 0.0625, 0.0625, 0, 0.66, 0, 635, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.125, 0.0625, 0, 0.66, 0.0714, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.1875, 0.0625, 0, 0.6...
[ "var.warnReadNoFile = 0", "var.verboseRead = 0", "read('protein.nex')", "a = var.alignments[0]", "a.recodeDayhoff()", "read('(((A:0.4, (B:0.4, C:0.4):0.05):0.05, D:0.4):0.1, E:0.4, F:0.4);')", "t = var.trees[0]", "t.data = Data()", "t.newComp(free=1, spec='empirical')", "t.newRMatrix(free=1, spec=...
# Read in the tree and the data read('t.nex') t = var.trees[0] read('d.nex') # Make a Data object and attach it to the tree. t.data = Data() # Define the model. This is the Juke-Cantor model with no among-site # rate variation. t.newComp(free=0, spec='equal') t.newRMatrix(free=0, spec='ones') t.setPInvar(free=0, val...
[ [ 8, 0, 0.1053, 0.0526, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.1579, 0.0526, 0, 0.66, 0.125, 15, 6, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.2105, 0.0526, 0, 0.66,...
[ "read('t.nex')", "t = var.trees[0]", "read('d.nex')", "t.data = Data()", "t.newComp(free=0, spec='equal')", "t.newRMatrix(free=0, spec='ones')", "t.setPInvar(free=0, val=0.0)", "t.setNGammaCat(nGammaCat=1)", "t.optLogLike()" ]
var.verboseRead = 0 read('t.nex') t = var.trees[0] read('d.nex') var.alignments[0].setCharPartition('cp1') t.data = Data() # Model for Part 0 pNum = 0 t.newComp(partNum=pNum, free=1, spec='empirical') t.newRMatrix(partNum=pNum, free=1, spec='ones') t.setPInvar(partNum=pNum, free=1, val=0.1) t.setNGammaCat(partNum=pNum...
[ [ 14, 0, 0.025, 0.025, 0, 0.66, 0, 141, 1, 0, 0, 0, 0, 1, 0 ], [ 8, 0, 0.05, 0.025, 0, 0.66, 0.0357, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.075, 0.025, 0, 0.66, ...
[ "var.verboseRead = 0", "read('t.nex')", "t = var.trees[0]", "read('d.nex')", "var.alignments[0].setCharPartition('cp1')", "t.data = Data()", "pNum = 0", "t.newComp(partNum=pNum, free=1, spec='empirical')", "t.newRMatrix(partNum=pNum, free=1, spec='ones')", "t.setPInvar(partNum=pNum, free=1, val=0....
read('t.nex') t = var.trees[0] a = func.newEmptyAlignment(dataType='dna', symbols=None, taxNames=t.taxNames, length=1500) b = func.newEmptyAlignment(dataType='standard', symbols='xyz', taxNames=t.taxNames, length=1000) read('setsForSim.nex') a.setCharPartition('cp1') d = Data([a,b]) t.data = d # Model for Part 0 pNum...
[ [ 8, 0, 0.0263, 0.0263, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.0526, 0.0263, 0, 0.66, 0.0357, 15, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0789, 0.0263, 0, 0.6...
[ "read('t.nex')", "t = var.trees[0]", "a = func.newEmptyAlignment(dataType='dna', symbols=None, taxNames=t.taxNames, length=1500)", "b = func.newEmptyAlignment(dataType='standard', symbols='xyz', taxNames=t.taxNames, length=1000)", "read('setsForSim.nex')", "a.setCharPartition('cp1')", "d = Data([a,b])",...
read('opt.p4_tPickle') t = var.trees[0] print 'The rate matrix for the second partition is:' print t.model.parts[1].rMatrices[0].val print 'The composition of the model in the last partition is:' print t.model.parts[2].comps[0].val print 'The relative rate of the first partition is:' print t.model.parts[0].relRate ...
[ [ 8, 0, 0.0714, 0.0714, 0, 0.66, 0, 453, 3, 1, 0, 0, 0, 0, 1 ], [ 14, 0, 0.1429, 0.0714, 0, 0.66, 0.1429, 15, 6, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.2857, 0.0714, 0, 0.66...
[ "read('opt.p4_tPickle')", "t = var.trees[0]", "print('The rate matrix for the second partition is:')", "print(t.model.parts[1].rMatrices[0].val)", "print('The composition of the model in the last partition is:')", "print(t.model.parts[2].comps[0].val)", "print('The relative rate of the first partition i...
taxNames = list(string.uppercase[:5]) t = func.randomTree(taxNames) t.writeNexus('t.nex')
[ [ 14, 0, 0.3333, 0.3333, 0, 0.66, 0, 585, 3, 1, 0, 0, 430, 10, 1 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 15, 3, 1, 0, 0, 569, 10, 1 ], [ 8, 0, 1, 0.3333, 0, 0.66,...
[ "taxNames = list(string.uppercase[:5])", "t = func.randomTree(taxNames)", "t.writeNexus('t.nex')" ]
from distutils.core import setup from distutils.extension import Extension setup(name="p4", ext_modules=[ Extension("fastReducedRF", ['fastReducedRF.cpp'], # Adjust the following to be able to find pyublas, numpy, and boost. Maybe need library_dirs as well? include_dirs = ["/usr/lo...
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.1667, 0.0833, 0, 0.66, 0.5, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 8, 0, 0.6667, 0.75, 0, 0.66,...
[ "from distutils.core import setup", "from distutils.extension import Extension", "setup(name=\"p4\",\n ext_modules=[\n Extension(\"fastReducedRF\", ['fastReducedRF.cpp'],\n # Adjust the following to be able to find pyublas, numpy, and boost. Maybe need library_dirs as well?\n in...
import fastReducedRF import numpy import pyublas # not explicitly used--but makes converters available nTax = 7 import string tNames = list(string.uppercase[:nTax]) # Here is a supertree, the first of many. var.warnReadNoFile = False read("(((D, E), A), B, (C, (F, G)));") bigT = var.trees.pop() bigT.taxNames = tNames...
[ [ 1, 0, 0.0097, 0.0097, 0, 0.66, 0, 675, 0, 1, 0, 0, 675, 0, 0 ], [ 1, 0, 0.0194, 0.0097, 0, 0.66, 0.0357, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0291, 0.0097, 0, ...
[ "import fastReducedRF", "import numpy", "import pyublas # not explicitly used--but makes converters available", "nTax = 7", "import string", "tNames = list(string.uppercase[:nTax])", "var.warnReadNoFile = False", "read(\"(((D, E), A), B, (C, (F, G)));\")", "bigT = var.trees.pop()", "bigT.taxNames ...
#!/usr/bin/python # Optimized for yEd 3.7.0.2 # Author: Jinho D. Choi (choijd@colorado.edu) import Tkinter import tkFont import operator import sys PREFIX = '\n'.join([\ '<?xml version="1.0" encoding="UTF-8" standalone="no"?>',\ '<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/...
[ [ 1, 0, 0.0115, 0.0029, 0, 0.66, 0, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 1, 0, 0.0144, 0.0029, 0, 0.66, 0.0455, 24, 0, 1, 0, 0, 24, 0, 0 ], [ 1, 0, 0.0172, 0.0029, 0, 0....
[ "import Tkinter", "import tkFont", "import operator", "import sys", "PREFIX = '\\n'.join([\\\n'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>',\\\n'<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:y=\"http://www.yworks.com/x...
#!/usr/bin/python # Optimized for yEd 3.7.0.2 # Author: Jinho D. Choi (choijd@colorado.edu) import Tkinter import tkFont import operator import sys import re PREFIX = '\n'.join([\ '<?xml version="1.0" encoding="UTF-8" standalone="no"?>',\ '<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3...
[ [ 1, 0, 0.0103, 0.0026, 0, 0.66, 0, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 1, 0, 0.0129, 0.0026, 0, 0.66, 0.0455, 24, 0, 1, 0, 0, 24, 0, 0 ], [ 1, 0, 0.0155, 0.0026, 0, 0....
[ "import Tkinter", "import tkFont", "import operator", "import sys", "import re", "PREFIX = '\\n'.join([\\\n'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>',\\\n'<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:y=\"http://w...
#!/usr/bin/python import sys fin = open(sys.argv[1]) fout = open(sys.argv[2],'w') vpos = sys.argv[3] tree = [] pred = [] for line in fin: l = line.split() if not l: rTree = [] for node in tree: args = [] for i,arg in enumerate(node[7:]): if arg == '_': continue predId = pred[i] if not tree[...
[ [ 1, 0, 0.0392, 0.0196, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.0588, 0.0196, 0, 0.66, 0.1667, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.0784, 0.0196, 0, ...
[ "import sys", "fin = open(sys.argv[1])", "fout = open(sys.argv[2],'w')", "vpos = sys.argv[3]", "tree = []", "pred = []", "for line in fin:\n\tl = line.split()\n\t\n\tif not l:\n\t\trTree = []\n\t\tfor node in tree:\n\t\t\targs = []\n\t\t\tfor i,arg in enumerate(node[7:]):", "\tl = line.split()", "\...
#!/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>[\\+\\*])...
#!/usr/bin/python import getopt, sys import re from string import Template def type_to_signature(itype): if len(itype) > 2: if itype[-2:] == '[]': return "[%s" % type_to_signature(itype[:-2]) if itype == "int": return "I" if itype == "long": return "J" if itype == "void": return "V" if itype == "boolea...
[ [ 1, 0, 0.0172, 0.0172, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0345, 0.0172, 0, 0.66, 0.2, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0517, 0.0172, 0, 0.6...
[ "import getopt, sys", "import re", "from string import Template", "def type_to_signature(itype):\n\tif len(itype) > 2:\n\t\tif itype[-2:] == '[]':\n\t\t\treturn \"[%s\" % type_to_signature(itype[:-2])\n\tif itype == \"int\":\n\t\treturn \"I\"\n\tif itype == \"long\":\n\t\treturn \"J\"", "\tif len(itype) > 2...
#!/usr/bin/python import getopt, sys import re from string import Template def type_to_signature(itype): if len(itype) > 2: if itype[-2:] == '[]': return "[%s" % type_to_signature(itype[:-2]) if itype == "int": return "I" if itype == "long": return "J" if itype == "void": return "V" if itype == "boolea...
[ [ 1, 0, 0.0172, 0.0172, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0345, 0.0172, 0, 0.66, 0.2, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0517, 0.0172, 0, 0.6...
[ "import getopt, sys", "import re", "from string import Template", "def type_to_signature(itype):\n\tif len(itype) > 2:\n\t\tif itype[-2:] == '[]':\n\t\t\treturn \"[%s\" % type_to_signature(itype[:-2])\n\tif itype == \"int\":\n\t\treturn \"I\"\n\tif itype == \"long\":\n\t\treturn \"J\"", "\tif len(itype) > 2...
#!/usr/bin/python import re import sys def remove_rtti(text): return text.replace("dynamic_cast<SwigDirector_Callback *>", "(SwigDirector_Callback*)") def make_dalvik_compat(text): init_text = """/* Utility class for managing the JNI environment */ class JNIEnvWrapper { const Director *director_; ...
[ [ 1, 0, 0.0526, 0.0132, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0658, 0.0132, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.1118, 0.0263, 0, 0....
[ "import re", "import sys", "def remove_rtti(text):\n\treturn text.replace(\"dynamic_cast<SwigDirector_Callback *>\", \"(SwigDirector_Callback*)\")", "\treturn text.replace(\"dynamic_cast<SwigDirector_Callback *>\", \"(SwigDirector_Callback*)\")", "def make_dalvik_compat(text):\n\tinit_text = \"\"\"/* Utilit...
#!/usr/bin/python import re import sys, os def make_dalvik_compat(text): init_text = """pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, true);""" final_text = """pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, false);""" return text.replace(init_text, final_text) if __name__ == '_...
[ [ 1, 0, 0.25, 0.0625, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3125, 0.0625, 0, 0.66, 0.3333, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5312, 0.25, 0, 0.66...
[ "import re", "import sys, os", "def make_dalvik_compat(text):\n\tinit_text = \"\"\"pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, true);\"\"\"\n\tfinal_text = \"\"\"pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, false);\"\"\"\n\treturn text.replace(init_text, final_text)", "\...
#!/usr/bin/python import re import sys def remove_comments(text): """ remove c-style comments. text: blob of text with comments (can include newlines) returns: text with comments removed """ pattern = r""" ## --------- COMMENT --------- /\* ...
[ [ 1, 0, 0.0333, 0.0111, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0444, 0.0111, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.3111, 0.5, 0, 0.6...
[ "import re", "import sys", "def remove_comments(text):\n \"\"\" remove c-style comments.\n text: blob of text with comments (can include newlines)\n returns: text with comments removed\n \"\"\"\n pattern = r\"\"\"\n ## --------- COMMENT ---------\n /\...
#!/usr/bin/python import re import sys, os def make_dalvik_compat(text): init_text = """pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, true);""" final_text = """pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, false);""" return text.replace(init_text, final_text) if __name__ == '_...
[ [ 1, 0, 0.25, 0.0625, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3125, 0.0625, 0, 0.66, 0.3333, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5312, 0.25, 0, 0.66...
[ "import re", "import sys, os", "def make_dalvik_compat(text):\n\tinit_text = \"\"\"pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, true);\"\"\"\n\tfinal_text = \"\"\"pjsuaJNI.Callback_director_connect(this, swigCPtr, swigCMemOwn, false);\"\"\"\n\treturn text.replace(init_text, final_text)", "\...
#!/usr/bin/python import re import sys def remove_rtti(text): return text.replace("dynamic_cast<SwigDirector_Callback *>", "(SwigDirector_Callback*)") def make_dalvik_compat(text): init_text = """/* Utility class for managing the JNI environment */ class JNIEnvWrapper { const Director *director_; ...
[ [ 1, 0, 0.0526, 0.0132, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0658, 0.0132, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.1118, 0.0263, 0, 0....
[ "import re", "import sys", "def remove_rtti(text):\n\treturn text.replace(\"dynamic_cast<SwigDirector_Callback *>\", \"(SwigDirector_Callback*)\")", "\treturn text.replace(\"dynamic_cast<SwigDirector_Callback *>\", \"(SwigDirector_Callback*)\")", "def make_dalvik_compat(text):\n\tinit_text = \"\"\"/* Utilit...
#!/usr/bin/python import re import sys def remove_comments(text): """ remove c-style comments. text: blob of text with comments (can include newlines) returns: text with comments removed """ pattern = r""" ## --------- COMMENT --------- /\* ...
[ [ 1, 0, 0.0333, 0.0111, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0444, 0.0111, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.3111, 0.5, 0, 0.6...
[ "import re", "import sys", "def remove_comments(text):\n \"\"\" remove c-style comments.\n text: blob of text with comments (can include newlines)\n returns: text with comments removed\n \"\"\"\n pattern = r\"\"\"\n ## --------- COMMENT ---------\n /\...
# $Id: setup-vc.py 2394 2008-12-23 17:27:53Z bennylp $ # # pjsua Setup script for Visual Studio # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # 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 Softwar...
[ [ 1, 0, 0.3889, 0.0185, 0, 0.66, 0, 152, 0, 2, 0, 0, 152, 0, 0 ], [ 1, 0, 0.4074, 0.0185, 0, 0.66, 0.1111, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.4259, 0.0185, 0, ...
[ "from distutils.core import setup, Extension", "import os", "import sys", "pj_version=\"\"", "f = open('../../../pjlib/src/pj/config.c', 'r')", "for line in f:\n if line.find(\"PJ_VERSION\") != -1:\n pj_version = line.split(\"=\")[1].strip('\";\\r\\n ')\n break", " if line.find(\"PJ_...
# $Id: registration.py 2171 2008-07-24 09:01:33Z bennylp $ # # SIP account and registration sample. In this sample, the program # will block to wait until registration is complete # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # This program is free software; you can redistribute it and/or modify # it ...
[ [ 1, 0, 0.0435, 0.0435, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.087, 0.0435, 0, 0.66, 0.25, 34, 0, 1, 0, 0, 34, 0, 0 ], [ 1, 0, 0.1304, 0.0435, 0, 0.66,...
[ "import sys", "import pjsua as pj", "import threading", "def log_cb(level, str, len):\n print(str,)", " print(str,)", "class MyAccountCallback(pj.AccountCallback):\n sem = None\n\n def __init__(self, account):\n pj.AccountCallback.__init__(self, account)\n\n def wait(self):\n ...
# $Id: simplecall.py 2171 2008-07-24 09:01:33Z bennylp $ # # SIP account and registration sample. In this sample, the program # will block to wait until registration is complete # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # This program is free software; you can redistribute it and/or modify # it un...
[ [ 1, 0, 0.037, 0.037, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0741, 0.037, 0, 0.66, 0.3333, 34, 0, 1, 0, 0, 34, 0, 0 ], [ 2, 0, 0.1667, 0.0741, 0, 0.66,...
[ "import sys", "import pjsua as pj", "def log_cb(level, str, len):\n print(str,)", " print(str,)", "class MyCallCallback(pj.CallCallback):\n def __init__(self, call=None):\n pj.CallCallback.__init__(self, call)\n\n # Notification when call state has changed\n def on_state(self):\n ...
# $Id: presence.py 2171 2008-07-24 09:01:33Z bennylp $ # # Presence and instant messaging # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # 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 Foun...
[ [ 1, 0, 0.0213, 0.0213, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0426, 0.0213, 0, 0.66, 0.25, 34, 0, 1, 0, 0, 34, 0, 0 ], [ 2, 0, 0.0957, 0.0426, 0, 0.66...
[ "import sys", "import pjsua as pj", "def log_cb(level, str, len):\n print(str,)", " print(str,)", "class MyAccountCallback(pj.AccountCallback):\n def __init__(self, account=None):\n pj.AccountCallback.__init__(self, account)\n\n def on_incoming_subscribe(self, buddy, from_uri, contact_uri...
# $Id: setup.py 3999 2012-03-30 07:10:13Z bennylp $ # # pjsua Setup script. # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # 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...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 152, 0, 2, 0, 0, 152, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "from distutils.core import setup, Extension", "import os", "import sys", "import platform" ]
# $Id: config.py 2912 2009-08-24 11:56:13Z bennylp $ # # Confbot settings # import pjsua as pj # Set of admins. If empty then everyone is admin! admins = set([]) # acc_cfg holds the account config (set it to None to disable account) acc_cfg = None acc_cfg = pj.AccountConfig() if acc_cfg: acc_cfg.id = "sip:bot@pjsip....
[ [ 1, 0, 0.122, 0.0244, 0, 0.66, 0, 34, 0, 1, 0, 0, 34, 0, 0 ], [ 14, 0, 0.1951, 0.0244, 0, 0.66, 0.0714, 868, 3, 1, 0, 0, 21, 10, 1 ], [ 14, 0, 0.2683, 0.0244, 0, 0...
[ "import pjsua as pj", "admins = set([])", "acc_cfg = None", "acc_cfg = pj.AccountConfig()", "if acc_cfg:\n\tacc_cfg.id = \"sip:bot@pjsip.org\"\n\tacc_cfg.reg_uri = \"sip:pjsip.org\"\n\tacc_cfg.proxy = [ \"sip:pjsip.org;lr;transport=tcp\" ]\n\tacc_cfg.auth_cred = [ pj.AuthCred(\"*\", \"bot\", \"secretpass\")...
import py_pjsua status = py_pjsua.create() print "py status " + `status` # # Create configuration objects # ua_cfg = py_pjsua.config_default() log_cfg = py_pjsua.logging_config_default() media_cfg = py_pjsua.media_config_default() # # Logging callback. # def logging_cb1(level, str, len): print str, # # Config...
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 782, 0, 1, 0, 0, 782, 0, 0 ], [ 2, 0, 0.5833, 0.3333, 0, 0.66, 1, 415, 0, 3, 0, 0, 0, 0, 1 ], [ 8, 1, 0.6667, 0.1667, 1, 0.8, ...
[ "import py_pjsua", "def logging_cb1(level, str, len):\n print(str,)", " print(str,)" ]
from distutils.core import setup, Extension import os import sys # Fill in pj_inc_dirs pj_inc_dirs = [] f = os.popen("make -f helper.mak inc_dir") for line in f: pj_inc_dirs.append(line.rstrip("\r\n")) f.close() # Fill in pj_lib_dirs pj_lib_dirs = [] f = os.popen("make -f helper.mak lib_dir") for line in f: pj_lib_...
[ [ 1, 0, 0.0227, 0.0227, 0, 0.66, 0, 152, 0, 2, 0, 0, 152, 0, 0 ], [ 1, 0, 0.0455, 0.0227, 0, 0.66, 0.0625, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0682, 0.0227, 0, ...
[ "from distutils.core import setup, Extension", "import os", "import sys", "pj_inc_dirs = []", "f = os.popen(\"make -f helper.mak inc_dir\")", "for line in f:\n\tpj_inc_dirs.append(line.rstrip(\"\\r\\n\"))", "\tpj_inc_dirs.append(line.rstrip(\"\\r\\n\"))", "f.close()", "pj_lib_dirs = []", "f = os.p...
# # cfg_gnu.py - GNU target configurator # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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 License, or # (at...
[ [ 1, 0, 0.274, 0.0137, 0, 0.66, 0, 656, 0, 1, 0, 0, 656, 0, 0 ], [ 1, 0, 0.2877, 0.0137, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3014, 0.0137, 0, 0...
[ "import builder", "import os", "import sys", "def create_builder(args):\n usage = \"\"\"\\\nUsage:\n main.py cfg_gnu [-h|--help] [cfg_site]\n\nArguments:\n cfg_site: site configuration module. If not specified, \"cfg_site\" \n is implied", " usage = \"\"\"\\\nUsage:\...
# # cfg_msvc.py - MSVC/Visual Studio target configurator # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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 L...
[ [ 1, 0, 0.2439, 0.0122, 0, 0.66, 0, 656, 0, 1, 0, 0, 656, 0, 0 ], [ 1, 0, 0.2561, 0.0122, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2683, 0.0122, 0, ...
[ "import builder", "import os", "import sys", "def create_builder(args):\n usage = \"\"\"\\\nUsage:\n main.py cfg_msvc [-h|--help] [-t|--target TARGET] [cfg_site]\n\nArguments:\n cfg_site: site configuration module. If not specified, \"cfg_site\" \n is implied", " usa...
#!/bin/env python # # main.py - main entry for PJSIP's CDash tests # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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...
[ [ 1, 0, 0.5476, 0.0238, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.6548, 0.1429, 0, 0.66, 0.125, 0, 0, 0, 0, 0, 0, 0, 6 ], [ 8, 1, 0.619, 0.0238, 1, 0.01, ...
[ "import sys", "if len(sys.argv)==1:\n print(\"Usage: main.py cfg_file [cfg_site]\")\n print(\"Example:\")\n print(\" main.py cfg_gnu\")\n print(\" main.py cfg_gnu custom_cfg_site\")\n sys.exit(1)", " print(\"Usage: main.py cfg_file [cfg_site]\")", " print(\"Example:\")", " print(\"...
#!/bin/env python # # main.py - main entry for PJSIP's CDash tests # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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...
[ [ 1, 0, 0.5476, 0.0238, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.6548, 0.1429, 0, 0.66, 0.125, 0, 0, 0, 0, 0, 0, 0, 6 ], [ 8, 1, 0.619, 0.0238, 1, 0.13, ...
[ "import sys", "if len(sys.argv)==1:\n print(\"Usage: main.py cfg_file [cfg_site]\")\n print(\"Example:\")\n print(\" main.py cfg_gnu\")\n print(\" main.py cfg_gnu custom_cfg_site\")\n sys.exit(1)", " print(\"Usage: main.py cfg_file [cfg_site]\")", " print(\"Example:\")", " print(\"...
# # cfg_site_sample.py - Sample site configuration # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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 License...
[ [ 1, 0, 0.4, 0.02, 0, 0.66, 0, 656, 0, 1, 0, 0, 656, 0, 0 ], [ 14, 0, 0.46, 0.02, 0, 0.66, 0.1111, 658, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.52, 0.02, 0, 0.66, 0.2...
[ "import builder", "SITE_NAME=\"Newham3\"", "URL = \"http://192.168.0.2/dash/submit.php?project=PJSIP\"", "GROUP = \"Experimental\"", "BASE_DIR = \"/root/project/pjproject\"", "OPTIONS = []", "CONFIG_SITE = \"\"", "USER_MAK = \"\"", "EXCLUDE = []", "NOT_EXCLUDE = []" ]
# # cfg_symbian.py - Symbian target configurator # # Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) # # 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 License, ...
[ [ 1, 0, 0.2326, 0.0116, 0, 0.66, 0, 656, 0, 1, 0, 0, 656, 0, 0 ], [ 1, 0, 0.2442, 0.0116, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2558, 0.0116, 0, ...
[ "import builder", "import os", "import sys", "def create_builder(args):\n usage = \"\"\"\\\nUsage:\n main.py cfg_symbian [-h|--help] [-t|--target TARGET] [cfg_site]\n \nArguments:\n cfg_site: site configuration module. If not specified, \"cfg_site\" \n is implied", " ...
# $Id: 100_simple.py 2028 2008-06-16 13:04:44Z bennylp $ # # Just about the simple pjsua command line parameter, which should # never fail in any circumstances from inc_cfg import * test_param = TestParam( "Basic run", [ InstanceParam("pjsua", "--null-audio --rtp-port 0") ] )
[ [ 1, 0, 0.3846, 0.0769, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7308, 0.4615, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Basic run\", \n\t\t[\n\t\t\tInstanceParam(\"pjsua\", \"--null-audio --rtp-port 0\")\n\t\t]\n\t\t)" ]
# $Id: 200_register.py 2028 2008-06-16 13:04:44Z bennylp $ # from inc_cfg import * # Basic registration test_param = TestParam( "Basic registration", [ InstanceParam( "client", "--null-audio"+ " --id=\"<sip:test1@pjsip.org>\""+ " --registrar=sip:sip.pjsip.org" + " --username=test1" + ...
[ [ 1, 0, 0.15, 0.05, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.625, 0.7, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Basic registration\",\n\t\t[\n\t\t\tInstanceParam(\t\"client\", \n\t\t\t\t\t\"--null-audio\"+\n\t\t\t\t\t\t\" --id=\\\"<sip:test1@pjsip.org>\\\"\"+\n\t\t\t\t\t\t\" --registrar=sip:sip.pjsip.org\" +\n\t\t\t\t\t\t\" --username=test1\" +" ]
# $Id: 100_resample_lf_8_44.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 44 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 44100 --play-file wavs/input.8.wav --rec-file wavs/tmp.44.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 44 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 44100 --play-file wavs/input.8.wav --rec-file wavs/tmp.44.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_32.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 32 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 32000 --play-file wavs/input.11.wav --rec-file wavs/tmp.32.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 32 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 32000 --play-file wavs/input.11.wav --rec-file wavs/tmp.32.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_22.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 22 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 22050 --play-file wavs/input.11.wav --rec-file wavs/tmp.22.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 22 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 22050 --play-file wavs/input.11.wav --rec-file wavs/tmp.22.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_8_48.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 48 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 48000 --play-file wavs/input.8.wav --rec-file wavs/tmp.48.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 48 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 48000 --play-file wavs/input.8.wav --rec-file wavs/tmp.48.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_8.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 8 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 8000 --play-file wavs/input.11.wav --rec-file wavs/tmp.8.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 8 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 8000 --play-file wavs/input.11.wav --rec-file wavs/tmp.8.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_8_11.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 11 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 11025 --play-file wavs/input.8.wav --rec-file wavs/tmp.11.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 11 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 11025 --play-file wavs/input.8.wav --rec-file wavs/tmp.11.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_8_22.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 22 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 22050 --play-file wavs/input.8.wav --rec-file wavs/tmp.22.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 22 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 22050 --play-file wavs/input.8.wav --rec-file wavs/tmp.22.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_8_32.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 32 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 32000 --play-file wavs/input.8.wav --rec-file wavs/tmp.32.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 32 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 32000 --play-file wavs/input.8.wav --rec-file wavs/tmp.32.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_44.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 44 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 44100 --play-file wavs/input.11.wav --rec-file wavs/tmp.44.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 44 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 44100 --play-file wavs/input.11.wav --rec-file wavs/tmp.44.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_48.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 48 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 48000 --play-file wavs/input.11.wav --rec-file wavs/tmp.48.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 48 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 48000 --play-file wavs/input.11.wav --rec-file wavs/tmp.48.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_8_16.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 8 KHZ to 16 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 16000 --play-file wavs/input.8.wav --rec-file wavs/tmp.16.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 8 KHZ to 16 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 16000 --play-file wavs/input.8.wav --rec-file wavs/tmp.16.wav\")\n\t\t]\n\t\t)" ]
# $Id: 100_resample_lf_11_16.py 2052 2008-06-25 18:18:32Z nanang $ # from inc_cfg import * # simple test test_param = TestParam( "Resample (large filter) 11 KHZ to 16 KHZ", [ InstanceParam("endpt", "--null-audio --quality 10 --clock-rate 16000 --play-file wavs/input.11.wav --rec-file wavs/tmp.16.wav") ] )
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 160, 0, 1, 0, 0, 160, 0, 0 ], [ 14, 0, 0.7727, 0.5455, 0, 0.66, 1, 109, 3, 2, 0, 0, 27, 10, 2 ] ]
[ "from inc_cfg import *", "test_param = TestParam(\n\t\t\"Resample (large filter) 11 KHZ to 16 KHZ\",\n\t\t[\n\t\t\tInstanceParam(\"endpt\", \"--null-audio --quality 10 --clock-rate 16000 --play-file wavs/input.11.wav --rec-file wavs/tmp.16.wav\")\n\t\t]\n\t\t)" ]
# $Id: inc_cfg.py 2237 2008-08-26 12:13:25Z bennylp $ import random import config_site DEFAULT_ECHO = True DEFAULT_TRACE = True DEFAULT_START_SIP_PORT = 50000 # Shared vars ARGS = [] # arguments containing script module & config HAS_SND_DEV = config_site.HAS_SND_DEV # Individual pjsua instance configuration class c...
[ [ 1, 0, 0.0187, 0.0093, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.028, 0.0093, 0, 0.66, 0.1111, 971, 0, 1, 0, 0, 971, 0, 0 ], [ 14, 0, 0.0467, 0.0093, 0, ...
[ "import random", "import config_site", "DEFAULT_ECHO = True", "DEFAULT_TRACE = True", "DEFAULT_START_SIP_PORT = 50000", "ARGS = []\t\t# arguments containing script module & config", "HAS_SND_DEV = config_site.HAS_SND_DEV", "class InstanceParam:\n\t# Name to identify this pjsua instance (e.g. \"caller\...
# $Id: 300_srtp_receive_no_key_1.py 2036 2008-06-20 17:43:55Z nanang $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=tester c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=crypto:0 AES_CM_12...
[ [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, 0.66, 0.1667, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4423, 0.5385, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101", "args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"", "include = []", "exclude = []", "sendto_cfg = sip....
# $Id: 173_timer_offer_no_refresher.py 2858 2009-08-11 12:42:38Z nanang $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=pjmedia c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 """ pjsua_args ...
[ [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4231, 0.5, 0, 0....
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101", "pjsua_args = \"--null-audio --auto-answer 200 --timer-min-se 90\"", "extra_headers = \"Supported: timer\\nSession-Expires: 1800\\n\"", "in...
# $Id: 174_timer_se_too_small.py 2858 2009-08-11 12:42:38Z nanang $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=pjmedia c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 """ pjsua_args = "--n...
[ [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4231, 0.5, 0, 0....
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101", "pjsua_args = \"--null-audio --auto-answer 200 --timer-min-se 2000 --timer-se 2000\"", "extra_headers = \"Supported: timer\\nSession-Expires:...
# $Id: 140_sdp_with_direction_attr_in_session_2.py 3086 2010-02-03 14:43:25Z nanang $ import inc_sip as sip import inc_sdp as sdp # Offer contains "inactive" attribute in the session, however the media # also has "sendonly" attribute. Answer should appropriately respond # direction attribute in media, instead of the o...
[ [ 1, 0, 0.0667, 0.0333, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1, 0.0333, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4333, 0.3667, 0, 0....
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\na=inactive", "pjsua_args = \"--null-audio --auto-answer 200\"", "extra_headers = \"\"", "include = [\"Content-Type: application/sdp\",\t# response must include SDP\n\t ...
# $Id: 121_sdp_with_video_static_2.py 2081 2008-06-27 21:59:15Z bennylp $ import inc_sip as sip import inc_sdp as sdp # Video uses static payload type which will cause failure # when session.c looks-up the codec in codec manager sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=- c=IN IP4 127.0.0.1 t=0 0 m=video 4000 RTP/AVP...
[ [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4107, 0.3571, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=video 4000 RTP/AVP 54", "pjsua_args = \"--null-audio --auto-answer 200\"", "extra_headers = \"\"", "include = [\"Content-Type: application/sdp\",\t# response must include S...
# $Id: 999_asterisk_err.py 2081 2008-06-27 21:59:15Z bennylp $ import inc_sip as sip import inc_sdp as sdp # http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-June/003426.html: # # Report in pjsip mailing list on 27/6/2008 that this message will # cause pjsip to respond with 500 and then second request will ...
[ [ 1, 0, 0.0444, 0.0222, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.0667, 0.0222, 0, 0.66, 0.3333, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.5556, 0.6889, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "complete_msg = \\\n\"\"\"INVITE sip:5001@192.168.1.200:5060;transport=UDP SIP/2.0\nVia: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK74a60ee5;rport\nFrom: \\\"A user\\\" <sip:66660000@192.168.1.11>;tag=as2858a32c\nTo: <sip:5001@192.168.1.200:5060;transport=UDP>\...
# $Id: 157_err_sdp_bad_addr_type.py 2066 2008-06-26 19:51:01Z bennylp $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=pjmedia c=IN IP7 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 """ pjsua_args = ...
[ [ 1, 0, 0.0741, 0.037, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1111, 0.037, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4074, 0.4815, 0, 0...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP7 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101", "pjsua_args = \"--null-audio --auto-answer 200\"", "extra_headers = \"\"", "include = [ \"Warning: \" ]\t# better have Warning header", "...
# $Id: 160_err_duplicate_replaces.py 2066 2008-06-26 19:51:01Z bennylp $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=pjmedia c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 """ pjsua_args = "--null-audio --auto-answer 200" extra_headers = "Replaces: abcd;from_tag=1\r\nReplac...
[ [ 1, 0, 0.087, 0.0435, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1304, 0.0435, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.3913, 0.3913, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0", "pjsua_args = \"--null-audio --auto-answer 200\"", "extra_headers = \"Replaces: abcd;from_tag=1\\r\\nReplaces: efgh;from_tag=2\\r\\n\"", "inclu...
# $Id: 412_fmtp_amrnb_offer_band_eff2.py 3664 2011-07-19 03:42:28Z nanang $ import inc_sip as sip import inc_sdp as sdp # Answer for codec AMR should not contain fmtp octet-align=1 sdp = \ """ v=0 o=- 3428650655 3428650655 IN IP4 192.168.1.9 s=pjmedia c=IN IP4 192.168.1.9 t=0 0 a=X-nat:0 m=audio 4000 RTP/AVP 99 101 a...
[ [ 1, 0, 0.0625, 0.0312, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4531, 0.5, 0, 0....
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0", "pjsua_args = \"--null-audio --auto-answer 200 --add-codec AMR\"", "extra_headers = \"\"", "include = [\"\"]", "exclude = [\"octet-a...
# $Id: 401_fmtp_g7221_with_bitrate_24000.py 3664 2011-07-19 03:42:28Z nanang $ import inc_sip as sip import inc_sdp as sdp # Answer with codec G722.1 should choose the same bitrate # which in this test is 24000 sdp = \ """ v=0 o=- 3428650655 3428650655 IN IP4 192.168.1.9 s=pjmedia c=IN IP4 192.168.1.9 t=0 0 a=X-nat:0...
[ [ 1, 0, 0.0571, 0.0286, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.0857, 0.0286, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.4429, 0.4571, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0", "pjsua_args = \"--null-audio --auto-answer 200 --add-codec G7221\"", "extra_headers = \"\"", "include = [\"a=rtpmap:[\\d]+ G7221/16000...
# $Id: 153_err_sdp_unsupported_codec.py 2081 2008-06-27 21:59:15Z bennylp $ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=pjmedia c=IN IP4 127.0.0.1 t=0 0 m=video 4000 RTP/AVP 101 a=rtpmap:101 my-proprietary-codec """ pjsua_args = "--null-audio --auto-answer 200" extra_headers...
[ [ 1, 0, 0.0833, 0.0417, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.125, 0.0417, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.3958, 0.4167, 0, ...
[ "import inc_sip as sip", "import inc_sdp as sdp", "sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=video 4000 RTP/AVP 101", "pjsua_args = \"--null-audio --auto-answer 200\"", "extra_headers = \"\"", "include = []", "exclude = []", "sendto_cfg = sip.SendtoCfg(\"...