rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
def copy_click(self, widget, name): (model, iter) = self.contactSelection.get_selected() vcard = model[iter][2]
def copyButton_click(self, widget, name): (model, paths) = self.contactSelection.get_selected_rows() vcard = model[paths[0]][2]
def copy_click(self, widget, name): (model, iter) = self.contactSelection.get_selected() vcard = model[iter][2] value = vcard.getChildValue(name) if value is not None: if name == "fn": value = unescape(value) self.clipboard.set_text(value)
2ad15db6a51bfcf2a0840391722baa6f915c8e69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/2ad15db6a51bfcf2a0840391722baa6f915c8e69/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3616, 67, 7475, 12, 2890, 16, 3604, 16, 508, 4672, 261, 2284, 16, 2953, 13, 273, 365, 18, 8994, 6233, 18, 588, 67, 8109, 67, 3870, 1435, 29760, 273, 938, 63, 4481, 63, 20, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3616, 67, 7475, 12, 2890, 16, 3604, 16, 508, 4672, 261, 2284, 16, 2953, 13, 273, 365, 18, 8994, 6233, 18, 588, 67, 8109, 67, 3870, 1435, 29760, 273, 938, 63, 4481, 63, 20, 65, ...
log(self, "Didn't find channel", 3)
log(self, "Didn't find channel", 4)
def findChannel(self, name): log(self, "Looking for %s in %s" % (name, self.channels), 3) for channel in self.channels: if(channel.name == name): log(self, "Found channel %s" % channel, 3) return channel log(self, "Didn't find channel", 3) return None
b57a5fbeb81758827f3878702b9a32dde97ccced /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11670/b57a5fbeb81758827f3878702b9a32dde97ccced/IRC_Server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2909, 12, 2890, 16, 508, 4672, 613, 12, 2890, 16, 315, 9794, 310, 364, 738, 87, 316, 738, 87, 6, 738, 261, 529, 16, 365, 18, 9114, 3631, 890, 13, 364, 1904, 316, 365, 18, 911...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2909, 12, 2890, 16, 508, 4672, 613, 12, 2890, 16, 315, 9794, 310, 364, 738, 87, 316, 738, 87, 6, 738, 261, 529, 16, 365, 18, 9114, 3631, 890, 13, 364, 1904, 316, 365, 18, 911...
value=value.replace(match1.group(0),html) return value if re.match('(.*)vimeo(.*)', match1.group(0)): match2 = re.match('(.*)vimeo.com/(\S+)',match1.group(1))
value=value.replace(url,html) if re.search('vimeo', url): match2 = re.match('(.*)vimeo.com/(\S+)',url)
def media_content(self,value): regex1 = re.compile('media=(.*);') match1 = regex1.search(value) if match1: if re.match('(.*)youtube(.*)', match1.group(0)): match2 = re.match('(.*)watch\?v=(\S+)', match1.group(1)) html = '<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/%s"&hl=en&f...
066cc13df84d269cecba0b54279e7bb4cce36c0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2580/066cc13df84d269cecba0b54279e7bb4cce36c0a/BaseHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3539, 67, 1745, 12, 2890, 16, 1132, 4672, 3936, 21, 273, 283, 18, 11100, 2668, 5829, 33, 7444, 1769, 6134, 845, 21, 273, 3936, 21, 18, 3072, 12, 1132, 13, 309, 845, 21, 30, 309, 283,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3539, 67, 1745, 12, 2890, 16, 1132, 4672, 3936, 21, 273, 283, 18, 11100, 2668, 5829, 33, 7444, 1769, 6134, 845, 21, 273, 3936, 21, 18, 3072, 12, 1132, 13, 309, 845, 21, 30, 309, 283,...
print "FTP:", self.error
def close(self): print "FTP:", self.error self.host.set_active(False)
b19d6e06ac1299e6f85f89d08dc3c1f36953daf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/b19d6e06ac1299e6f85f89d08dc3c1f36953daf4/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 282, 365, 18, 2564, 18, 542, 67, 3535, 12, 8381, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 282, 365, 18, 2564, 18, 542, 67, 3535, 12, 8381, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
}
},
def fycomp(x,y): x = x.replace("y","i")+x.count("y")*"!" y = y.replace("y","i")+y.count("y")*"!" return cmp(x,y)
77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
return collection.hasAttributeValue('sharedURL') and collection.sharedURL
return collection.hasAttributeValue('sharedURL') and (collection.sharedURL is not None)
def isShared(collection): # @@@ Temporary hack until there is a better way to test for isShared return collection.hasAttributeValue('sharedURL') and collection.sharedURL
c45ce84ce7d79ff27c4030d2a2476d1d561bd7fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c45ce84ce7d79ff27c4030d2a2476d1d561bd7fe/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 7887, 12, 5548, 4672, 468, 22175, 36, 22791, 11769, 3180, 1915, 353, 279, 7844, 4031, 358, 1842, 364, 353, 7887, 327, 1849, 18, 5332, 14942, 2668, 11574, 1785, 6134, 471, 261, 5548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 7887, 12, 5548, 4672, 468, 22175, 36, 22791, 11769, 3180, 1915, 353, 279, 7844, 4031, 358, 1842, 364, 353, 7887, 327, 1849, 18, 5332, 14942, 2668, 11574, 1785, 6134, 471, 261, 5548, ...
counter = counter + 1 file = os.path.join(dir, pre + `counter` + suffix)
i = _counter.get_next() file = os.path.join(dir, pre + str(i) + suffix)
def mktemp(suffix=""): """User-callable function to return a unique temporary file name.""" global counter dir = gettempdir() pre = gettempprefix() while 1: counter = counter + 1 file = os.path.join(dir, pre + `counter` + suffix) if not os.path.exists(file): return file
1baa22aff0a9cde81e2b19b36662e7987b83356b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1baa22aff0a9cde81e2b19b36662e7987b83356b/tempfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 5814, 12, 8477, 1546, 6, 4672, 3536, 1299, 17, 7293, 445, 358, 327, 279, 3089, 6269, 585, 508, 12123, 2552, 3895, 1577, 273, 336, 5814, 1214, 1435, 675, 273, 336, 5814, 3239, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 5814, 12, 8477, 1546, 6, 4672, 3536, 1299, 17, 7293, 445, 358, 327, 279, 3089, 6269, 585, 508, 12123, 2552, 3895, 1577, 273, 336, 5814, 1214, 1435, 675, 273, 336, 5814, 3239, 1435,...
raise RuntimeError, '%s\nRank not provably correct.'%X
X= "".join(X.split("\n")[-4:-2]) print X raise RuntimeError, 'Rank not provably correct.'
def rank(self, use_database=False, verbose=False, only_use_mwrank=True, algorithm='mwrank_shell', proof=None): """ Return the rank of this elliptic curve, assuming no conjectures.
0a7462a8254bbdbdaadd0cad0db79747b36f7434 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0a7462a8254bbdbdaadd0cad0db79747b36f7434/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 16, 999, 67, 6231, 33, 8381, 16, 3988, 33, 8381, 16, 1338, 67, 1202, 67, 81, 91, 11500, 33, 5510, 16, 4886, 2218, 81, 91, 11500, 67, 10304, 2187, 14601, 33, 7036, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 16, 999, 67, 6231, 33, 8381, 16, 3988, 33, 8381, 16, 1338, 67, 1202, 67, 81, 91, 11500, 33, 5510, 16, 4886, 2218, 81, 91, 11500, 67, 10304, 2187, 14601, 33, 7036, 467...
closure of this relatice number field.
closure of this relative number field.
def galois_closure(self, names=None): """ Return the absolute number field $K$ that is the Galois closure of this relatice number field.
4dd81fd2e9264ed5b382ce8790517ddde39af870 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4dd81fd2e9264ed5b382ce8790517ddde39af870/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 20823, 12, 2890, 16, 1257, 33, 7036, 4672, 3536, 2000, 326, 4967, 1300, 652, 271, 47, 8, 716, 353, 326, 611, 287, 19606, 7213, 434, 333, 26513, 1812, 1300, 652, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 20823, 12, 2890, 16, 1257, 33, 7036, 4672, 3536, 2000, 326, 4967, 1300, 652, 271, 47, 8, 716, 353, 326, 611, 287, 19606, 7213, 434, 333, 26513, 1812, 1300, 652, 18, 2...
return action in permissions
return action in permissions or None
def check_permission(self, action, username, resource, perm): now = time()
5228913669c395c013991eea866366fb2635d670 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/5228913669c395c013991eea866366fb2635d670/perm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9827, 12, 2890, 16, 1301, 16, 2718, 16, 1058, 16, 4641, 4672, 2037, 273, 813, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9827, 12, 2890, 16, 1301, 16, 2718, 16, 1058, 16, 4641, 4672, 2037, 273, 813, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
console.indent()
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
474f20bb18433ee7f8d0f5b7d32755ffd9c7fdc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/474f20bb18433ee7f8d0f5b7d32755ffd9c7fdc5/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 31909, 12, 2890, 16, 1207, 5664, 87, 4672, 2983, 18, 1376, 2932, 7798, 3352, 316, 738, 87, 6, 738, 2890, 18, 1214, 13, 14732, 273, 2618, 364, 1365, 16, 7717, 16, 1390, 316, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 31909, 12, 2890, 16, 1207, 5664, 87, 4672, 2983, 18, 1376, 2932, 7798, 3352, 316, 738, 87, 6, 738, 2890, 18, 1214, 13, 14732, 273, 2618, 364, 1365, 16, 7717, 16, 1390, 316, 1140, ...
FvExtHeaderFile = open (FvExtHeaderFileName,'wb')
FvExtHeaderFile = StringIO.StringIO()
def __InitializeInf__ (self, BaseAddress = None, BlockSize= None, BlockNum = None, ErasePloarity='1', VtfDict=None) : # # Create FV inf file # self.InfFileName = os.path.join(GenFdsGlobalVariable.FvDir, self.UiFvName + '.inf') self.FvInfFile = StringIO.StringIO()
fcb31b4c41db0af11550e51bf01e60007488c66a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/fcb31b4c41db0af11550e51bf01e60007488c66a/Fv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 7520, 13149, 972, 261, 2890, 16, 3360, 1887, 273, 599, 16, 3914, 1225, 33, 599, 16, 3914, 2578, 273, 599, 16, 512, 5648, 52, 383, 20498, 2218, 21, 2187, 776, 6632, 5014, 33, 7036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 7520, 13149, 972, 261, 2890, 16, 3360, 1887, 273, 599, 16, 3914, 1225, 33, 599, 16, 3914, 2578, 273, 599, 16, 512, 5648, 52, 383, 20498, 2218, 21, 2187, 776, 6632, 5014, 33, 7036...
maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax() minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin() x = self._constraintingObject.GetX() y = self._constraintingObject.GetY() dc = wx.ClientDC(self._constraintingObject.GetCanvas()) self._constraintingObject.GetCanvas().PrepareDC(dc)
maxWidth, maxHeight = self._constrainingObject.GetBoundingBoxMax() minWidth, minHeight = self._constrainingObject.GetBoundingBoxMin() x = self._constrainingObject.GetX() y = self._constrainingObject.GetY() dc = wx.ClientDC(self._constrainingObject.GetCanvas()) self._constrainingObject.GetCanvas().PrepareDC(dc)
def Evaluate(self): """Evaluate this constraint and return TRUE if anything changed.""" maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax() minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin() x = self._constraintingObject.GetX() y = self._constraintingObject.GetY()
14fe087a0cebfafb2bfa7a39337e9457006daf40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/14fe087a0cebfafb2bfa7a39337e9457006daf40/_composit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18176, 12, 2890, 4672, 3536, 15369, 333, 4954, 471, 327, 5383, 309, 6967, 3550, 12123, 17681, 16, 23185, 273, 365, 6315, 13364, 310, 921, 18, 967, 19020, 2747, 1435, 1131, 2384, 16, 1131, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18176, 12, 2890, 4672, 3536, 15369, 333, 4954, 471, 327, 5383, 309, 6967, 3550, 12123, 17681, 16, 23185, 273, 365, 6315, 13364, 310, 921, 18, 967, 19020, 2747, 1435, 1131, 2384, 16, 1131, ...
print "error: %s(%r) failed with: %s" % (func.__name__, e)
print "error: %s(%r) failed with: %s" % (funcName(func), arg, e)
def tryFunc(func, arg, desVal): try: if isinstance(desVal, float): isOK = (RO.MathUtil.compareFloats(asFloat(arg), desVal) == 0) else: isOK = (func(arg) == desVal) if not isOK: print "error: %s(%r) != %r" % (func.__name__, arg, desVal) except StandardError, e: print "error: %s(%r) failed with: %s" % (func.__name__, e)
166d0aa4288cdb380258ce4a9ad33d61983f65a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6353/166d0aa4288cdb380258ce4a9ad33d61983f65a3/CnvUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 2622, 12, 644, 16, 1501, 16, 2832, 3053, 4672, 775, 30, 309, 1549, 12, 5489, 3053, 16, 1431, 4672, 353, 3141, 273, 261, 1457, 18, 10477, 1304, 18, 9877, 4723, 87, 12, 345, 4723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 2622, 12, 644, 16, 1501, 16, 2832, 3053, 4672, 775, 30, 309, 1549, 12, 5489, 3053, 16, 1431, 4672, 353, 3141, 273, 261, 1457, 18, 10477, 1304, 18, 9877, 4723, 87, 12, 345, 4723, ...
cmd = ['git-svn', 'fetch'] buildscript.execute(cmd, 'git-svn', cwd=self.get_checkoutdir()) cmd = ['git', 'merge', 'remotes/git-svn'] buildscript.execute(cmd, 'git merge', cwd=self.get_checkoutdir()) cmd = ['git-svn', 'show-ignore', '>>', '.git/info/exclude'] buildscript.execute(cmd, 'git-svn', cwd=self.get_checko...
cwd = self.get_checkoutdir() cmd = ['git', 'stash', 'jhbuild-build'] buildscript.execute(cmd, 'git stash', cwd=cwd) cmd = ['git', 'checkout', 'master'] buildscript.execute(cmd, 'git checkout master', cwd=cwd) cmd = ['git-svn', 'rebase'] buildscript.execute(cmd, 'git-svn rebase', cwd=cwd) try: cmd = ['git-svn', 's...
def _update(self, buildscript): if self.config.sticky_date: raise FatalError('date based checkout not yet supported\n')
95420d8a1181941d80a26906c017394f7125606d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4596/95420d8a1181941d80a26906c017394f7125606d/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 1361, 4263, 4672, 309, 365, 18, 1425, 18, 334, 13055, 67, 712, 30, 1002, 10375, 668, 2668, 712, 2511, 13926, 486, 4671, 3260, 64, 82, 6134, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 1361, 4263, 4672, 309, 365, 18, 1425, 18, 334, 13055, 67, 712, 30, 1002, 10375, 668, 2668, 712, 2511, 13926, 486, 4671, 3260, 64, 82, 6134, 2, -100, -100, -100...
hg.bin(p1), hg.bin(p2), extra=extra)
bin(p1), bin(p2), extra=extra)
def putcommit(self, files, parents, commit): if not files: return hex(self.repo.changelog.tip())
f10cfed47880318b36165400664328a0784cc1ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/f10cfed47880318b36165400664328a0784cc1ed/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 7371, 12, 2890, 16, 1390, 16, 6298, 16, 3294, 4672, 309, 486, 1390, 30, 327, 3827, 12, 2890, 18, 7422, 18, 24083, 12970, 18, 14587, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 7371, 12, 2890, 16, 1390, 16, 6298, 16, 3294, 4672, 309, 486, 1390, 30, 327, 3827, 12, 2890, 18, 7422, 18, 24083, 12970, 18, 14587, 10756, 2, -100, -100, -100, -100, -100, -100, ...
msgs = []
if self._dict.has_key('Install-command'): return "%s: Binary package cannot have Install-command" % self.fullname()
def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ign...
6fde1cef4aa2498f965f95c2d467f4b57face862 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6fde1cef4aa2498f965f95c2d467f4b57face862/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
log.debug("Skiping blacklist check, no dnspython package")
log.warning("Skiping blacklist check, no dnspython package")
def validate_python(self, value, state): if ('recaptcha_challenge_field' or 'recaptcha_response_field') in request.POST: log.debug("Skiping ip blacklist") return if not HAVE_DNSPYTHON: log.debug("Skiping blacklist check, no dnspython package") return
95d22a8719dadcdbc4bf607d11a08e86e60d4fcb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5816/95d22a8719dadcdbc4bf607d11a08e86e60d4fcb/validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 309, 7707, 3927, 12248, 67, 25092, 67, 1518, 11, 578, 296, 3927, 12248, 67, 2740, 67, 1518, 6134, 316, 590, 18, 3798, 30, 613, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 309, 7707, 3927, 12248, 67, 25092, 67, 1518, 11, 578, 296, 3927, 12248, 67, 2740, 67, 1518, 6134, 316, 590, 18, 3798, 30, 613, 18, 4...
parts = ctype.split('/') if len(parts) > 0: return ctype.split('/')[0] return failobj
if ctype.count('/') <> 1: return failobj return ctype.split('/')[0]
def get_main_type(self, failobj=None): """Return the message's main content type if present.""" missing = [] ctype = self.get_type(missing) if ctype is missing: return failobj parts = ctype.split('/') if len(parts) > 0: return ctype.split('/')[0] return failobj
f0780af3dafb43f79f08732b4f49c531fae31558 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f0780af3dafb43f79f08732b4f49c531fae31558/Message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5254, 67, 723, 12, 2890, 16, 2321, 2603, 33, 7036, 4672, 3536, 990, 326, 883, 1807, 2774, 913, 618, 309, 3430, 12123, 3315, 273, 5378, 11920, 273, 365, 18, 588, 67, 723, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5254, 67, 723, 12, 2890, 16, 2321, 2603, 33, 7036, 4672, 3536, 990, 326, 883, 1807, 2774, 913, 618, 309, 3430, 12123, 3315, 273, 5378, 11920, 273, 365, 18, 588, 67, 723, 12, ...
self.bye() self.stopSession()
if self.queueIsEmpty(): self.bye() self.stopSession()
def onEmptyQueue(self):
65cffa7f3c4ff318b8d41d2bb08dcacad50ced72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6943/65cffa7f3c4ff318b8d41d2bb08dcacad50ced72/mailbox_query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1921, 3183, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1921, 3183, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if len(binWin) != 4: raise ValueError("binWin=%r; must have 4 elements" % (binWin,)) if len(binFac) != 2: raise ValueError("binFac=%r; must have 2 elements" % (binFac,))
def unbinWindow(self, binWin, binFac): """Converts binned window to unbinned. The output is constrained to be in range for the given bin factor.
bc449c514ddbedcc3dbea6e9f61a46eec42f89fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6353/bc449c514ddbedcc3dbea6e9f61a46eec42f89fb/ImageWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 4757, 3829, 12, 2890, 16, 4158, 18049, 16, 4158, 6645, 4672, 3536, 5692, 4158, 11748, 2742, 358, 640, 4757, 11748, 18, 225, 1021, 876, 353, 27666, 358, 506, 316, 1048, 364, 326, 864...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 4757, 3829, 12, 2890, 16, 4158, 18049, 16, 4158, 6645, 4672, 3536, 5692, 4158, 11748, 2742, 358, 640, 4757, 11748, 18, 225, 1021, 876, 353, 27666, 358, 506, 316, 1048, 364, 326, 864...
errors.append(self.__class__.PasswordNeeded())
errors.append(self.__class__.PasswordNeeded(self.jid))
def _xmpp_presence_handler(self, xmpp_c, presence): if presence.getFrom() == self.jid: errors = [] if presence.getAttr('type') == 'error': for c in presence.getChildren(): if c.getName() == 'error': for cc in c.getChildren(): if cc.getNamespace() == 'urn:ietf:params:xml:ns:xmpp-stanzas' and cc.getName() != 'text': err ...
868e8f57e51aee70649f00eba567d1a2b7de0d1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/868e8f57e51aee70649f00eba567d1a2b7de0d1c/muc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 24109, 67, 21731, 67, 4176, 12, 2890, 16, 619, 24109, 67, 71, 16, 9805, 4672, 309, 9805, 18, 588, 1265, 1435, 422, 365, 18, 18252, 30, 1334, 273, 5378, 309, 9805, 18, 588, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 24109, 67, 21731, 67, 4176, 12, 2890, 16, 619, 24109, 67, 71, 16, 9805, 4672, 309, 9805, 18, 588, 1265, 1435, 422, 365, 18, 18252, 30, 1334, 273, 5378, 309, 9805, 18, 588, 3...
members_options += \ '<option img="%s" value="%s" caption="%s"/>' % \ (user.__image__, user.id, user.displayName.value) self.params['MEMBERS_OPTIONS'] = members_options policies_options = ''
members_options += [xmlUtils.XMLEncode(user.__image__), user.id, xmlUtils.XMLEncode(user.displayName.value)] self.params['MEMBERS'] = ';'.join(members_options) policies_options = []
def setParams(self): self.response.setHeader('cache-control', 'no-cache') sLang = self.request.getLang()
19d016592fde3a93ded6b6761dfcf716d2874a72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/19d016592fde3a93ded6b6761dfcf716d2874a72/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, -100, -100, -100, -10...
info =self._storage.undoInfo()
info = self._storage.undoInfo()
def checkTwoObjectUndoAgain(self): p32, p33, p52, p53 = map(pickle.dumps, (32, 33, 52, 53)) # Like the above, but the first revision of the objects are stored in # different transactions. oid1 = self._storage.new_oid() oid2 = self._storage.new_oid() revid1 = self._dostore(oid1, data=31) revid2 = self._dostore(oid2, dat...
f8d1d748f6f1881c067d94a9a0868707bc5ec509 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/f8d1d748f6f1881c067d94a9a0868707bc5ec509/TransactionalUndoStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 11710, 921, 31224, 23530, 12, 2890, 4672, 293, 1578, 16, 293, 3707, 16, 293, 9401, 16, 293, 8643, 273, 852, 12, 20847, 18, 13302, 1121, 16, 261, 1578, 16, 13159, 16, 18106, 16, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 11710, 921, 31224, 23530, 12, 2890, 4672, 293, 1578, 16, 293, 3707, 16, 293, 9401, 16, 293, 8643, 273, 852, 12, 20847, 18, 13302, 1121, 16, 261, 1578, 16, 13159, 16, 18106, 16, 15...
// print type(z)
def local_test(x,y): m1=Module() m1.lx=[x]#cast Result to Member m1.ly=[y]#cast Result to Member m1.dx={"x":x} m1.dy={"y":y} m1.tx=(x,)#cast Result to Member m1.ty=(y,)#cast Result to Member m1.x=x m1.y=y
8774bdefd3c2e3a1b496494ed8678f5b1af4e6cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/8774bdefd3c2e3a1b496494ed8678f5b1af4e6cc/test_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 3813, 12, 92, 16, 93, 4672, 312, 21, 33, 3120, 1435, 312, 21, 18, 80, 92, 22850, 92, 65, 7, 4155, 3438, 358, 8596, 312, 21, 18, 715, 22850, 93, 65, 7, 4155, 3438, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 3813, 12, 92, 16, 93, 4672, 312, 21, 33, 3120, 1435, 312, 21, 18, 80, 92, 22850, 92, 65, 7, 4155, 3438, 358, 8596, 312, 21, 18, 715, 22850, 93, 65, 7, 4155, 3438, 358, ...
@type content: L{Object}
@type content: L{Content}
def suspend(self, content): """ Appending this content has suspended. @param content: The content for which proccessing has been suspended. @type content: L{Object} """ pass
b32e18cba5f033e50e0cf3ace265b9a572aa984e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/b32e18cba5f033e50e0cf3ace265b9a572aa984e/marshaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20413, 12, 2890, 16, 913, 4672, 3536, 6181, 310, 333, 913, 711, 21850, 18, 632, 891, 913, 30, 1021, 913, 364, 1492, 450, 850, 310, 711, 2118, 21850, 18, 632, 723, 913, 30, 511, 95, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20413, 12, 2890, 16, 913, 4672, 3536, 6181, 310, 333, 913, 711, 21850, 18, 632, 891, 913, 30, 1021, 913, 364, 1492, 450, 850, 310, 711, 2118, 21850, 18, 632, 723, 913, 30, 511, 95, 1...
self.check_sizeof(self.file, h + 4*p + self.align(2*i) + 4*p +\ self.align(3*i) + 3*p + self.align(i))
self.check_sizeof(self.file, size(h + '4P2i4P3i3Pi'))
def method(): pass
5c5f6ea02a90835741c65e40e2b7c4e412c33d55 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5c5f6ea02a90835741c65e40e2b7c4e412c33d55/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
errorlog = '' errorlog = loggerCompas() errorlog.wb = waybill errorlog.user = request.user errorlog.errorDisp = '' errorlog.timestamp = datetime.datetime.now() errorlog.save()
try: errorlog =loggerCompas.objects.get(wb=waybill) errorlog.delete() except: pass
def singleWBDispatchToCompas(request,wb_id): profile = '' try: profile=request.user.get_profile() except: pass waybill = Waybill.objects.get(id=wb_id)
90b15de904014b9f6a0701a8386a1d11fee22cc3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/90b15de904014b9f6a0701a8386a1d11fee22cc3/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2202, 59, 38, 5325, 774, 2945, 345, 12, 2293, 16, 9464, 67, 350, 4672, 3042, 273, 875, 775, 30, 3042, 33, 2293, 18, 1355, 18, 588, 67, 5040, 1435, 1335, 30, 1342, 4031, 17240, 273, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2202, 59, 38, 5325, 774, 2945, 345, 12, 2293, 16, 9464, 67, 350, 4672, 3042, 273, 875, 775, 30, 3042, 33, 2293, 18, 1355, 18, 588, 67, 5040, 1435, 1335, 30, 1342, 4031, 17240, 273, 6...
List.appendUnique( sqlLinkList, "`%s%s`.`%s` = `key%s`.`id`" % ( tableType, typeName, field, field ) ) sqlGroupList.append( "`key%s`.`value`" % field )
List.appendUnique( sqlLinkList, "`%s`.`%s` = `%s`.`id`" % ( tableName, field, self.__getTableName( "key", field ) ) ) sqlGroupList.append( "`%s`.`value`" % self.__getTableName( "key", field ) )
def __queryType( self, typeName, startTime, endTime, condDict, valueFields, groupFields, tableType ): cmd = "SELECT" sqlValues = [] sqlLinkList = [] #Calculate fields to retrieve for vTu in valueFields: if vTu[0] in self.dbCatalog[ typeName ][ 'keys' ]: sqlValues.append( "`key%s`.`value`" % ( vTu[0] ) ) List.appendUniq...
7663d95782c4987a99eb5394bb9f465c2ab982d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/7663d95782c4987a99eb5394bb9f465c2ab982d5/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 6941, 5014, 16, 460, 2314, 16, 1041, 2314, 16, 1014, 559, 262, 30, 1797, 273, 315, 4803, 6, 1847, 1972, 273, 5378, 1847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 6941, 5014, 16, 460, 2314, 16, 1041, 2314, 16, 1014, 559, 262, 30, 1797, 273, 315, 4803, 6, 1847, 1972, 273, 5378, 1847, ...
results.append([self.dispatch(method_name, params)]) except xmlrpclib.Fault, fault: results.append( {'faultCode': fault.faultCode, 'faultString': fault.faultString} )
result = self.dispatch(method_name, params) if not isinstance(result, xmlrpclib.Fault): results.append([result]) else: results.append( {'faultCode': result.faultCode, 'faultString': result.faultString} )
def xmlrpc_system_multicall(self, call_list): """system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => [[4], ...]
90b375859aa7ee9e64fe5c8d06b27d4268119c48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/90b375859aa7ee9e64fe5c8d06b27d4268119c48/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31811, 67, 4299, 67, 5421, 335, 454, 12, 2890, 16, 745, 67, 1098, 4672, 3536, 4299, 18, 5421, 335, 454, 3816, 27828, 2039, 461, 4278, 296, 1289, 2187, 296, 2010, 4278, 306, 22, 16, 576...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31811, 67, 4299, 67, 5421, 335, 454, 12, 2890, 16, 745, 67, 1098, 4672, 3536, 4299, 18, 5421, 335, 454, 3816, 27828, 2039, 461, 4278, 296, 1289, 2187, 296, 2010, 4278, 306, 22, 16, 576...
print 'source file '+chroot+file+' exists, deleting'
print 'destination file '+chroot+file+' exists, deleting'
def copy_binaries_and_libs(chroot, binarieslist, force_overwrite=0, be_verbose=0, check_libs=1): """copies a list of executables and their libraries to the chroot""" if (chroot[-1] == '/'): chroot = chroot[:-1] for file in binarieslist: if (not os.path.exists(file)): if (be_verbose): print 'source file '+file+' does no...
97a8c0be5fce087dca094850073d40ed1bbcacb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6201/97a8c0be5fce087dca094850073d40ed1bbcacb2/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 4672, 3536, 22295,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 4672, 3536, 22295,...
os.unlink(sFile)
os.unlink(os.path.join(sSourceDir, sFile))
def run(request, response, func=download_from_web): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running once an item is None.''' while 1: item = request.get() if item is None: break (sUrl, sFile, download_size, checksum) = s...
b8e894b2e6e1e7f672d95da72ee9cabedb9e55db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12499/b8e894b2e6e1e7f672d95da72ee9cabedb9e55db/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 7813, 67, 2080, 67, 4875, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 7813, 67, 2080, 67, 4875, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
self.users.add(client.avatar) self.stats_set.get_or_create(persona=client.avatar.getPersona())
def dbOps(): if client.avatar not in self.users.all(): ## set mode for user in this channel info = UserIrcInfo.objects.get_or_create(user=client.avatar, channel=self)[0]
e710791392c2ad52acd2af354b12f501b3a5e301 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10390/e710791392c2ad52acd2af354b12f501b3a5e301/peerchat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 8132, 13332, 309, 1004, 18, 19660, 486, 316, 365, 18, 5577, 18, 454, 13332, 7541, 444, 1965, 364, 729, 316, 333, 1904, 1123, 273, 2177, 45, 1310, 966, 18, 6911, 18, 588, 67, 280,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 8132, 13332, 309, 1004, 18, 19660, 486, 316, 365, 18, 5577, 18, 454, 13332, 7541, 444, 1965, 364, 729, 316, 333, 1904, 1123, 273, 2177, 45, 1310, 966, 18, 6911, 18, 588, 67, 280,...
def check_split(self, wrapper, text, expect): result = wrapper._split(text)
def check_split(self, text, expect): result = self.wrapper._split(text)
def check_split(self, wrapper, text, expect): result = wrapper._split(text) self.assertEquals(result, expect, "\nexpected %r\n" "but got %r" % (expect, result))
08071b794b13ced20be2ca3d2774957575a42ca7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/08071b794b13ced20be2ca3d2774957575a42ca7/test_textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 4939, 12, 2890, 16, 977, 16, 4489, 4672, 563, 273, 365, 18, 8376, 6315, 4939, 12, 955, 13, 365, 18, 11231, 8867, 12, 2088, 16, 4489, 16, 1548, 82, 3825, 738, 86, 64, 82, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 4939, 12, 2890, 16, 977, 16, 4489, 4672, 563, 273, 365, 18, 8376, 6315, 4939, 12, 955, 13, 365, 18, 11231, 8867, 12, 2088, 16, 4489, 16, 1548, 82, 3825, 738, 86, 64, 82, 6...
v, s, g, r = self.parse(vs, rs)
v, s, g, r, backup = self.parse(vs, rs)
def collect(self, vs=None, rs=None): """ Collect data for an Alteon """ v, s, g, r = self.parse(vs, rs) if v is not None: if r is not None: # Collect data to refresh a specific real server d = self.process_rs(v, s, g, r) else: # Collect data to refresh a virtual server d = self.process_vs(v, s, g) else: # Otherwise, co...
7c642c83662e6df49097c3079102e8ab494ded57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13049/7c642c83662e6df49097c3079102e8ab494ded57/alteon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 12, 2890, 16, 6195, 33, 7036, 16, 3597, 33, 7036, 4672, 3536, 9302, 501, 364, 392, 2262, 736, 265, 3536, 331, 16, 272, 16, 314, 16, 436, 16, 5114, 273, 365, 18, 2670, 12, 6904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 12, 2890, 16, 6195, 33, 7036, 16, 3597, 33, 7036, 4672, 3536, 9302, 501, 364, 392, 2262, 736, 265, 3536, 331, 16, 272, 16, 314, 16, 436, 16, 5114, 273, 365, 18, 2670, 12, 6904,...
from warnings import DeprecationWarning, warn
from warnings import warn
def from_values(cls, *args, **kwargs): """Create a new request object based on the values provided. If environ is given missing values are filled from there. This method is useful for small scripts when you need to simulate a request from an URL. Do not use this method for unittesting, there is a full featured client...
87aaa84a8d3a16e3b43b4b5b68334934cdd29857 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14437/87aaa84a8d3a16e3b43b4b5b68334934cdd29857/wrappers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 2372, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1684, 279, 394, 590, 733, 2511, 603, 326, 924, 2112, 18, 225, 971, 5473, 353, 864, 3315, 924, 854, 6300, 628, 1915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 2372, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1684, 279, 394, 590, 733, 2511, 603, 326, 924, 2112, 18, 225, 971, 5473, 353, 864, 3315, 924, 854, 6300, 628, 1915, ...
def testConnect(self):
def test_connect(self):
def testConnect(self): s = ssl.wrap_socket(socket.socket(socket.AF_INET), cert_reqs=ssl.CERT_NONE) s.connect(("svn.python.org", 443)) c = s.getpeercert() if c: self.fail("Peer cert %s shouldn't be here!") s.close()
f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3612, 12, 2890, 4672, 272, 273, 5832, 18, 4113, 67, 7814, 12, 7814, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 3631, 3320, 67, 25782, 33, 8157, 18, 22367, 67, 9826, 13, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3612, 12, 2890, 4672, 272, 273, 5832, 18, 4113, 67, 7814, 12, 7814, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 3631, 3320, 67, 25782, 33, 8157, 18, 22367, 67, 9826, 13, 272, ...
self.temp_files.append(prog)
def _link (self, body, headers, include_dirs, libraries, library_dirs, lang): (src, obj) = self._compile(body, headers, include_dirs, lang) prog = os.path.splitext(os.path.basename(src))[0] self.temp_files.append(prog) # XXX should be prog + exe_ext self.compiler.link_executable([obj], prog, libraries=libraries, lib...
35d55aa44505fc3fe326d00a510c1a6022c363a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/35d55aa44505fc3fe326d00a510c1a6022c363a7/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1232, 261, 2890, 16, 1417, 16, 1607, 16, 2341, 67, 8291, 16, 14732, 16, 5313, 67, 8291, 16, 3303, 4672, 261, 4816, 16, 1081, 13, 273, 365, 6315, 11100, 12, 3432, 16, 1607, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1232, 261, 2890, 16, 1417, 16, 1607, 16, 2341, 67, 8291, 16, 14732, 16, 5313, 67, 8291, 16, 3303, 4672, 261, 4816, 16, 1081, 13, 273, 365, 6315, 11100, 12, 3432, 16, 1607, 16, 2...
proutn("COMMAND> ")
def makemoves(): # command-interpretation loop v = 0 clrscr() setwnd(message_window) while True: # command loop drawmaps(1) while True: # get a command hitme = False game.justin = False game.optime = 0.0 chew() setwnd(prompt_window) clrscr() proutn("COMMAND> ") if scan() == IHEOL: if game.options & OPTION_CURSES: make...
7bd7a884799555ab23f60b565f0906f17d22c385 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/7bd7a884799555ab23f60b565f0906f17d22c385/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 351, 10829, 13332, 468, 1296, 17, 24713, 367, 2798, 331, 273, 374, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 1323, 1053, 30, 225, 202, 7, 1296, 2798, 3724, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 351, 10829, 13332, 468, 1296, 17, 24713, 367, 2798, 331, 273, 374, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 1323, 1053, 30, 225, 202, 7, 1296, 2798, 3724, 10...
return "[+ FOR program +]" + under_conditional(each_platform(lambda p: program(p))) + "[+ ENDFOR +]"
return "[+ FOR program +]" + each_platform( lambda p: under_platform_specific_conditionals(p, program(p))) + "[+ ENDFOR +]"
def program_rules(): return "[+ FOR program +]" + under_conditional(each_platform(lambda p: program(p))) + "[+ ENDFOR +]"
c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5402, 67, 7482, 13332, 327, 5158, 15, 12108, 5402, 397, 4279, 397, 1517, 67, 9898, 12, 3195, 293, 30, 3613, 67, 9898, 67, 12524, 67, 4175, 1031, 12, 84, 16, 5402, 12, 84, 20349, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5402, 67, 7482, 13332, 327, 5158, 15, 12108, 5402, 397, 4279, 397, 1517, 67, 9898, 12, 3195, 293, 30, 3613, 67, 9898, 67, 12524, 67, 4175, 1031, 12, 84, 16, 5402, 12, 84, 20349, 397, ...
r.SetSpacing( spacing )
r.SetDataOrigin( origin ) r.SetDataSpacing( spacing )
def PrintProgress(object, event): assert event == "ProgressEvent" print "Progress:", object.GetProgress()
5d99fbbd3f51d3c95cdc83074f9f4d68e8a22ecf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13995/5d99fbbd3f51d3c95cdc83074f9f4d68e8a22ecf/TestvtkGDCMThreadedImageReader2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 5491, 12, 1612, 16, 871, 4672, 1815, 871, 422, 315, 5491, 1133, 6, 1172, 315, 5491, 2773, 16, 733, 18, 967, 5491, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 5491, 12, 1612, 16, 871, 4672, 1815, 871, 422, 315, 5491, 1133, 6, 1172, 315, 5491, 2773, 16, 733, 18, 967, 5491, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if node[0] < len(self.values):
if node[0] + 1 < len(self.values):
def on_iter_next(self, node): assert len(node) == 1 if node[0] < len(self.values): return (node[0] + 1,) return None
a42e5485fac3d5da9c5eeec12cf59ea620b49e8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/a42e5485fac3d5da9c5eeec12cf59ea620b49e8f/FormComposer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2165, 67, 4285, 12, 2890, 16, 756, 4672, 1815, 562, 12, 2159, 13, 422, 404, 309, 756, 63, 20, 65, 397, 404, 411, 562, 12, 2890, 18, 2372, 4672, 327, 261, 2159, 63, 20, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2165, 67, 4285, 12, 2890, 16, 756, 4672, 1815, 562, 12, 2159, 13, 422, 404, 309, 756, 63, 20, 65, 397, 404, 411, 562, 12, 2890, 18, 2372, 4672, 327, 261, 2159, 63, 20, 65,...
elif collection[0] == 'Fedora Extras':
elif collection[0] == 'Fedora' and collection[1] == '7': aclUsers = fedoraOwners.getAclAccounts(pkg, 'F-' + str(collection[1])) elif collection[0] == 'Fedora' and collection[1] == 'devel': aclUsers = fedoraOwners.getAclAccounts(pkg, 'devel') elif collection[0] == 'Fedora':
def import_data(self, fedoraOwners, epelOwners, olpcOwners, cvs, updatedb): '''Import data from owners and cvs into the DB.
207a9ae6fdfc28643d37feaf12c85459e5d63192 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/207a9ae6fdfc28643d37feaf12c85459e5d63192/pkgdb-import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 892, 12, 2890, 16, 28869, 5460, 414, 16, 5529, 292, 5460, 414, 16, 8793, 2436, 5460, 414, 16, 276, 6904, 16, 3526, 70, 4672, 9163, 5010, 501, 628, 25937, 471, 276, 6904, 1368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 892, 12, 2890, 16, 28869, 5460, 414, 16, 5529, 292, 5460, 414, 16, 8793, 2436, 5460, 414, 16, 276, 6904, 16, 3526, 70, 4672, 9163, 5010, 501, 628, 25937, 471, 276, 6904, 1368...
self.setName("NatCheckClient") self.setDaemon(True) self.lock = Lock()
self._lock = thread.allocate_lock() self._running = False
def __init__(self, session): Thread.__init__(self) if NatCheckClient.__single: raise RuntimeError, "NatCheckClient is singleton" NatCheckClient.__single = self
698c4e731a473819061b683aa113c7cd992f5d04 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/698c4e731a473819061b683aa113c7cd992f5d04/NatCheckMsgHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 4884, 16186, 2738, 972, 12, 2890, 13, 309, 423, 270, 1564, 1227, 16186, 7526, 30, 1002, 7265, 16, 315, 23779, 1564, 1227, 353, 6396, 6, 423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 4884, 16186, 2738, 972, 12, 2890, 13, 309, 423, 270, 1564, 1227, 16186, 7526, 30, 1002, 7265, 16, 315, 23779, 1564, 1227, 353, 6396, 6, 423, ...
if capab(user.name, "owner"):
if capab(user, "owner"):
def capab(user, capability): capability = capability.lower() capabilities = list(user.capabilities) # Capability hierarchy # if capability == "bantracker": if capab(user.name, "admin"): return True if capability == "admin": if capab(user.name, "owner"): return True # End # if capability in capabilities: return True els...
fc610a5794d13d56da1f08364e46989c258a64e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3124/fc610a5794d13d56da1f08364e46989c258a64e9/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3523, 378, 12, 1355, 16, 12593, 4672, 12593, 273, 12593, 18, 8167, 1435, 12359, 273, 666, 12, 1355, 18, 22140, 13, 468, 28075, 9360, 468, 309, 12593, 422, 315, 21515, 16543, 6877, 309, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3523, 378, 12, 1355, 16, 12593, 4672, 12593, 273, 12593, 18, 8167, 1435, 12359, 273, 666, 12, 1355, 18, 22140, 13, 468, 28075, 9360, 468, 309, 12593, 422, 315, 21515, 16543, 6877, 309, 3...
PersonMeetingAttendanceInlineFormSet = inlineformset_factory(Screening, PersonMeetingAttendance, form=PersonMeetingAttendanceForm, extra=0) screening = Screening.objects.get(id = id) formset = PersonMeetingAttendanceInlineFormSet(instance = screening) personInMeeting = Person.objects.filter(id__in = PersonMeetingAttend...
PersonMeetingAttendanceInlineFormSet = inlineformset_factory(Screening, PersonMeetingAttendance, form=PersonMeetingAttendanceForm, extra=0) screening = Screening.objects.get(id = id) formset = PersonMeetingAttendanceInlineFormSet(instance = screening) personInMeeting = Person.objects.filter(id__in = PersonMeetingAttend...
def get_attendance(request, id): PersonMeetingAttendanceInlineFormSet = inlineformset_factory(Screening, PersonMeetingAttendance, form=PersonMeetingAttendanceForm, extra=0) screening = Screening.objects.get(id = id) formset = PersonMeetingAttendanceInlineFormSet(instance = screening) personInMeeting = Person.objects.fi...
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4558, 409, 1359, 12, 2293, 16, 612, 4672, 11573, 4667, 21747, 3075, 409, 1359, 10870, 1204, 694, 273, 6370, 687, 542, 67, 6848, 12, 7956, 310, 16, 11573, 4667, 21747, 3075, 409,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4558, 409, 1359, 12, 2293, 16, 612, 4672, 11573, 4667, 21747, 3075, 409, 1359, 10870, 1204, 694, 273, 6370, 687, 542, 67, 6848, 12, 7956, 310, 16, 11573, 4667, 21747, 3075, 409,...
args = list(args) + options.modules + options.packages
def main(args): import cPickle options, args = parse_args(args) args = list(args) + options.modules + options.packages exitcode = 0 if options.configfile: readConfigFile(options) try: # step 1: make/find the system if options.systemclass: systemclass = findClassFromDottedName(options.systemclass, '--system-class') ...
1552bff816cfaf3624af269680d7867848f008db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5471/1552bff816cfaf3624af269680d7867848f008db/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 1930, 276, 17968, 298, 702, 16, 833, 273, 1109, 67, 1968, 12, 1968, 13, 225, 2427, 710, 273, 374, 225, 309, 702, 18, 1425, 768, 30, 855, 13705, 12, 2116, 13, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 1930, 276, 17968, 298, 702, 16, 833, 273, 1109, 67, 1968, 12, 1968, 13, 225, 2427, 710, 273, 374, 225, 309, 702, 18, 1425, 768, 30, 855, 13705, 12, 2116, 13, 22...
deps = [filename] + deps
try: deps = deps_of[filename] except KeyError: return True
def check_dependencies(filename, outfile, deps_of): """ INPUT: filename -- The name of a .pyx, .pxd, or .pxi to check dependencies in the SAGE source. outfile -- The output file for which we are determining out-of-date-ness OUTPUT: bool -- whether or not outfile must be regenerated. """ deps = deps_of[filename] # add ...
9bf46afaefc6aecb3a496664f314aaaa5bef9c2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9bf46afaefc6aecb3a496664f314aaaa5bef9c2c/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 11037, 12, 3459, 16, 8756, 16, 8740, 67, 792, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 263, 2074, 92, 16, 263, 4430, 72, 16, 578, 263, 4430, 77, 358, 866, 503...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 11037, 12, 3459, 16, 8756, 16, 8740, 67, 792, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 263, 2074, 92, 16, 263, 4430, 72, 16, 578, 263, 4430, 77, 358, 866, 503...
nose.run(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", "checkin"])
nose.run(argv=argv) sys.stdout, sys.stderr = _stdout, _stderr os.chdir(_curdir)
def test_coverage(dir): """ Run nose programmatically, so that it uses the same python version as this script uses Nose expects to receive a sys.argv, of which the first arg is the script path (usually nosetests). Since this isn't being run that way, a filler entry was created to satisfy the library's needs. """ if n...
f4b50ece9d470537fd7113e703421c6cd458778c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/f4b50ece9d470537fd7113e703421c6cd458778c/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16356, 12, 1214, 4672, 3536, 1939, 1158, 307, 5402, 26500, 1230, 16, 1427, 716, 518, 4692, 326, 1967, 5790, 1177, 487, 333, 2728, 4692, 225, 423, 2584, 10999, 358, 6798, 279, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16356, 12, 1214, 4672, 3536, 1939, 1158, 307, 5402, 26500, 1230, 16, 1427, 716, 518, 4692, 326, 1967, 5790, 1177, 487, 333, 2728, 4692, 225, 423, 2584, 10999, 358, 6798, 279, 2...
"""Creates a name for the TLS group using the selected residue ranges.
"""Creates a name for the TLS group using the selected residue ranges.
def calc_tls_name(self): """Creates a name for the TLS group using the selected residue ranges. """ listx = [] for (chain_id1, frag_id1, chain_id2, frag_id2, sel) in self.range_list: listx.append("%s%s-%s%s %s" % (chain_id1, frag_id1, chain_id2, frag_id2, sel)) return ";".join(listx)
4293dee160eba41d42fb83ab7a7352ba89fb81ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/4293dee160eba41d42fb83ab7a7352ba89fb81ad/TLS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 17116, 67, 529, 12, 2890, 4672, 3536, 2729, 279, 508, 364, 326, 8098, 1041, 1450, 326, 3170, 14765, 7322, 18, 3536, 666, 92, 273, 5378, 364, 261, 5639, 67, 350, 21, 16, 10111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 17116, 67, 529, 12, 2890, 4672, 3536, 2729, 279, 508, 364, 326, 8098, 1041, 1450, 326, 3170, 14765, 7322, 18, 3536, 666, 92, 273, 5378, 364, 261, 5639, 67, 350, 21, 16, 10111...
sys.stdout.write('do_get_preferred_width(%s)' %(for_height))
def do_get_preferred_width(self, for_height): sys.stdout.write('do_get_preferred_width(%s)' %(for_height)) min_width = 0 natural_width = 0 for child in self._children: if not child.props.visible: continue child_min_width, child_natural_width = child.get_preferred_width( for_height) min_width += child_min_width natural_...
d925c2d19e9e55dcdf063a37583b7ade7e8889be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5279/d925c2d19e9e55dcdf063a37583b7ade7e8889be/flowbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 67, 23616, 67, 2819, 12, 2890, 16, 364, 67, 4210, 4672, 225, 1131, 67, 2819, 273, 374, 15145, 67, 2819, 273, 374, 364, 1151, 316, 365, 6315, 5906, 30, 309, 486, 1151, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 67, 23616, 67, 2819, 12, 2890, 16, 364, 67, 4210, 4672, 225, 1131, 67, 2819, 273, 374, 15145, 67, 2819, 273, 374, 364, 1151, 316, 365, 6315, 5906, 30, 309, 486, 1151, 1...
contAttrs = [] for attr in data.domain.attributes: if attr.varType == orange.VarTypes.Continuous: contAttrs.append(attr.name) attrVals = [(measure(attr, data), attr) for attr in contAttrs] attrVals.sort() attrVals.reverse() attrNames = [attrVals[i][1] for i in range(len(attrVals))] numClasses = len(data.domain.classV...
if isinstance(measure, S2NMeasureMix): measure(data.domain.attributes[0].name, data) attrNames = [data.domain[ind].name for ind in measure.sortedAttrList] numClasses = len(data.domain.classVar.values) cls = [attrNames[i::numClasses] for i in range(numClasses)] else: attrVals = [(measure(attr.name, data), attr.name) for...
def findAttributeGroupsForRadviz(data, measure): contAttrs = [] for attr in data.domain.attributes: if attr.varType == orange.VarTypes.Continuous: contAttrs.append(attr.name) attrVals = [(measure(attr, data), attr) for attr in contAttrs] attrVals.sort() attrVals.reverse() attrNames = [attrVals[i][1] for i in range(len...
26d741f3cc960895833942ba0fa8e057b9e5b3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/26d741f3cc960895833942ba0fa8e057b9e5b3dd/OWVisAttrSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1499, 3621, 1290, 6621, 23167, 12, 892, 16, 6649, 4672, 466, 8262, 273, 5378, 364, 1604, 316, 501, 18, 4308, 18, 4350, 30, 309, 1604, 18, 1401, 559, 422, 578, 726, 18, 1537, 2016...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1499, 3621, 1290, 6621, 23167, 12, 892, 16, 6649, 4672, 466, 8262, 273, 5378, 364, 1604, 316, 501, 18, 4308, 18, 4350, 30, 309, 1604, 18, 1401, 559, 422, 578, 726, 18, 1537, 2016...
sums = ["ROUND((COALESCE(SUM(rx_bytes + tx_bytes) / 1000, 0)::numeric, 2)"]
sums = ["ROUND(COALESCE(SUM(rx_bytes + tx_bytes) / 1000, 0)::numeric, 2)"]
def get_graph(self, end_date, report_days, host=None, user=None, email=None): if host or user or email: return None
e42703a484a8e4ba1027af8c4bfab31aa7bac7c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/e42703a484a8e4ba1027af8c4bfab31aa7bac7c2/untangle_node_openvpn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 1479, 578, 729, 578, 2699, 30, 327, 599, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 1479, 578, 729, 578, 2699, 30, 327, 599, 2, -10...
self.set_window_title()
self.update_title()
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, reset_cursor): # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg_next == True and self.preloading_images == True: # Set current image as preload_prev_image self.preloadimg_prev_name = self.currimg_n...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2704, 67, 2730, 12, 2890, 16, 999, 67, 1484, 945, 6081, 67, 4285, 16, 999, 67, 1484, 945, 6081, 67, 10001, 16, 2715, 67, 9216, 4672, 468, 971, 1915, 353, 279, 675, 4230, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2704, 67, 2730, 12, 2890, 16, 999, 67, 1484, 945, 6081, 67, 4285, 16, 999, 67, 1484, 945, 6081, 67, 10001, 16, 2715, 67, 9216, 4672, 468, 971, 1915, 353, 279, 675, 4230, 13...
class CheckStyle(AbstractPatchProcessingCommand):
class AbstractPatchSequencingCommand(AbstractPatchProcessingCommand): prepare_steps = None main_steps = None @staticmethod def _create_step_sequence(steps): if not steps: return None, [] step_sequence = StepSequence(steps) return step_sequence, step_sequence.options() def __init__(self, help_text, args_description): ...
def execute(self, options, args, tool): self._prepare_to_process(options, args, tool) patches = self._fetch_list_of_patches_to_process(options, args, tool)
740b86ff29d9244b9b7731cde818daa13c805df5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/740b86ff29d9244b9b7731cde818daa13c805df5/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 702, 16, 833, 16, 5226, 4672, 365, 6315, 9366, 67, 869, 67, 2567, 12, 2116, 16, 833, 16, 5226, 13, 16482, 273, 365, 6315, 5754, 67, 1098, 67, 792, 67, 30278, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 702, 16, 833, 16, 5226, 4672, 365, 6315, 9366, 67, 869, 67, 2567, 12, 2116, 16, 833, 16, 5226, 13, 16482, 273, 365, 6315, 5754, 67, 1098, 67, 792, 67, 30278, 67, ...
while ser.inWaiting() > 0:
while TOPSerial.inWaiting() > 0:
def connect_action(self, event): cs = "serial.Serial(" for k,v in self.options.items(): print k,v n, t = v cs = cs + "%s = " %k if t == 'str': cs = cs + "'" + eval("self.option%s_value.get()" %n) + "'" elif t == 'int': try: int(eval("self.option%s_value.get()" %n)) except ValueError: cs = cs + "None" else: cs = cs + s...
ce2478a9b74085542544746ecd71997ddc3a7e63 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5205/ce2478a9b74085542544746ecd71997ddc3a7e63/tkops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 1128, 12, 2890, 16, 871, 4672, 2873, 273, 315, 8818, 18, 6342, 2932, 225, 364, 417, 16, 90, 316, 365, 18, 2116, 18, 3319, 13332, 1172, 417, 16, 90, 290, 16, 268, 273, 331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 1128, 12, 2890, 16, 871, 4672, 2873, 273, 315, 8818, 18, 6342, 2932, 225, 364, 417, 16, 90, 316, 365, 18, 2116, 18, 3319, 13332, 1172, 417, 16, 90, 290, 16, 268, 273, 331, ...
NSApp.sendAction_to_from_("copy:", None, sender)
NSApp().sendAction_to_from_("copy:", None, sender)
def handleMenuItem_(self, sender): if self.action == "HideMiro": NSApp.hide_(None)
1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde/osxmenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12958, 67, 12, 2890, 16, 5793, 4672, 309, 365, 18, 1128, 422, 315, 15690, 49, 11373, 6877, 11472, 3371, 18, 11248, 67, 12, 7036, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12958, 67, 12, 2890, 16, 5793, 4672, 309, 365, 18, 1128, 422, 315, 15690, 49, 11373, 6877, 11472, 3371, 18, 11248, 67, 12, 7036, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 531) else quickfix.CharField.__init__(self, 531, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 6938, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 6938, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, ...
def predict(self, string):
def predict(self, val):
def predict(self, string):
50217656cb09ddf6382337cca40b8f4397b91010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14420/50217656cb09ddf6382337cca40b8f4397b91010/StringSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7810, 12, 2890, 16, 533, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7810, 12, 2890, 16, 533, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
folderbox = Listbox(right)
folderbox = Listbox(right, {'exportselection': 0})
def main(): global root, tk, top, mid, bot global folderbox, foldermenu, scanbox, scanmenu, viewer global folder, seq global mh, mhf # Parse command line options folder = 'inbox' seq = 'all' try: opts, args = getopt.getopt(sys.argv[1:], '') except getopt.error, msg: print msg sys.exit(2) for arg in args: if arg[:1] =...
c7f2283240ca2f10f4af7064def582de8758b514 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c7f2283240ca2f10f4af7064def582de8758b514/mbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 1365, 16, 13030, 16, 1760, 16, 7501, 16, 2512, 2552, 3009, 2147, 16, 3009, 5414, 16, 4135, 2147, 16, 4135, 5414, 16, 14157, 2552, 3009, 16, 3833, 2552, 17819, 16, 1781...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 1365, 16, 13030, 16, 1760, 16, 7501, 16, 2512, 2552, 3009, 2147, 16, 3009, 5414, 16, 4135, 2147, 16, 4135, 5414, 16, 14157, 2552, 3009, 16, 3833, 2552, 17819, 16, 1781...
text = findAbout(path)
text = getAboutUTF8(path)
def get_size(reference): path = str(reference.path) text = findAbout(path) if text is not None: return len(text) raise OSError("[Errno 2] No such file or directory: '%s'" % reference)
16972011369bee6f6e5e388df682403af7d576ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/16972011369bee6f6e5e388df682403af7d576ab/about.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1467, 12, 6180, 4672, 589, 273, 609, 12, 6180, 18, 803, 13, 977, 273, 4506, 70, 659, 5159, 28, 12, 803, 13, 309, 977, 353, 486, 599, 30, 327, 562, 12, 955, 13, 1002, 10002...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1467, 12, 6180, 4672, 589, 273, 609, 12, 6180, 18, 803, 13, 977, 273, 4506, 70, 659, 5159, 28, 12, 803, 13, 309, 977, 353, 486, 599, 30, 327, 562, 12, 955, 13, 1002, 10002...
self.fsema.acquire() elif timeout >= 0: delay = 0.0005
while self._full(): self.not_full.wait() else: if timeout < 0: raise ValueError("'timeout' must be a positive number")
def put(self, item, block=True, timeout=None): """Put an item into the queue.
a3002703c147de35193af30e3a73b4e7695ecc17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a3002703c147de35193af30e3a73b4e7695ecc17/Queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 761, 16, 1203, 33, 5510, 16, 2021, 33, 7036, 4672, 3536, 6426, 392, 761, 1368, 326, 2389, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 761, 16, 1203, 33, 5510, 16, 2021, 33, 7036, 4672, 3536, 6426, 392, 761, 1368, 326, 2389, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
readonly = readonly and access_pool.check_groups(cr, user, group) if readonly: parent = node.parentNode parent.removeChild(node) else: if not self.pool.get('ir.model.access').check_groups(cr, user, group_str): parent = node.parentNode parent.removeChild(node)
readonly = readonly or access_pool.check_groups(cr, user, group) if not readonly: node.setAttribute('invisible', '1') node.removeAttribute('groups')
def __view_look_dom(self, cr, user, node, context=None): if not context: context = {} result = False fields = {} childs = True
88a6b3780ce26ca3cdf98bd109162f6849754122 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/88a6b3780ce26ca3cdf98bd109162f6849754122/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, 21619, 273, 1053, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, 21619, 273, 1053, 2...
if self._use_latex_citations:
if self._use_latex_citations and len(self._bibitems)>0:
def depart_document(self, node): if self._use_latex_citations: widest_label = "" for bi in self._bibitems: if len(widest_label)<len(bi[0]): widest_label = bi[0] self.body.append('\n\\begin{thebibliography}{%s}\n'%widest_label) for bi in self._bibitems: self.body.append('\\bibitem[%s]{%s}{%s}\n' % (bi[0], bi[0], bi[1]))...
20c01eb6a7829c20542e73824c0802b3de17878d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/20c01eb6a7829c20542e73824c0802b3de17878d/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 5457, 12, 2890, 16, 756, 4672, 225, 309, 365, 6315, 1202, 67, 26264, 67, 71, 18282, 471, 562, 12, 2890, 6315, 70, 495, 3319, 13, 34, 20, 30, 15481, 395, 67, 1925, 273, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 5457, 12, 2890, 16, 756, 4672, 225, 309, 365, 6315, 1202, 67, 26264, 67, 71, 18282, 471, 562, 12, 2890, 6315, 70, 495, 3319, 13, 34, 20, 30, 15481, 395, 67, 1925, 273, 140...
dbchecksum = res[0][1] if checksum == dbchecksum:
matched = False for r in res: dbchecksum = r[1] if checksum == dbchecksum: matched = True if matched:
def run_ingestion(): """ Ingestion procedure of FITS images in the database """ global log, email, script_args, ingestionId, g, ittdata email = script_args['email'] user_id = script_args['user_id'] path = script_args['path'] ingestion_id = script_args['ingestion_id'] # parsing otherArgs duration_stime = time.time()...
8fcb23787c05dde63d1f87b2680b869d62f31bc3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/8fcb23787c05dde63d1f87b2680b869d62f31bc3/ingestion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 310, 6868, 13332, 3536, 657, 75, 6868, 12131, 434, 478, 10158, 4602, 316, 326, 2063, 3536, 225, 2552, 613, 16, 2699, 16, 2728, 67, 1968, 16, 12152, 6868, 548, 16, 314, 16, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 310, 6868, 13332, 3536, 657, 75, 6868, 12131, 434, 478, 10158, 4602, 316, 326, 2063, 3536, 225, 2552, 613, 16, 2699, 16, 2728, 67, 1968, 16, 12152, 6868, 548, 16, 314, 16, 51...
if 'config file' in config.parser.options(self.__class__.__name__): raise ConfigError("Please use 'nickname config' instead of 'config file'")
def parseMap(x, parser): result = {} for entry in x.split('\n'): if "=>" in entry: nick, value = map(str.strip, entry.split('=>')) else: nick, value = (None, entry) result[nick] = filter(lambda x: x, parser(value.strip())) return result
a43bea10a1881d93c54f0a88f30edaa3d31d1ad8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/a43bea10a1881d93c54f0a88f30edaa3d31d1ad8/cmssw_advanced.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 863, 12, 92, 16, 2082, 4672, 563, 273, 2618, 364, 1241, 316, 619, 18, 4939, 2668, 64, 82, 11, 4672, 309, 29199, 2984, 316, 1241, 30, 10909, 16, 460, 273, 852, 12, 701, 18, 6406...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 863, 12, 92, 16, 2082, 4672, 563, 273, 2618, 364, 1241, 316, 619, 18, 4939, 2668, 64, 82, 11, 4672, 309, 29199, 2984, 316, 1241, 30, 10909, 16, 460, 273, 852, 12, 701, 18, 6406...
bsu_pn = sre.sub(r'(\w)[^a-zA-Z0-9\s\:]+(\w)', "\\1*\\2", bsu_p)
bsu_pn = sre.sub(r'(\w)[^a-zA-Z0-9\s\:]+(\w|$)', "\\1*\\2", bsu_p)
def search_pattern(req, p=None, f=None, m=None, of='hb', dbg=0): """Search for pattern 'p' and field 'f' and return hitlist of recIDs. Breaks `p' into ``basic search units'', runs the search for them, and aggregates the results together. Optionally, the function accepts the match type argument 'm'. If it is set (e.g. f...
ecbca079c2ffbb7166e391821982c873c23535a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/ecbca079c2ffbb7166e391821982c873c23535a2/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 312, 33, 7036, 16, 434, 2218, 76, 70, 2187, 28966, 33, 20, 4672, 3536, 2979, 364, 1936, 296, 84, 11, 471, 652, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 312, 33, 7036, 16, 434, 2218, 76, 70, 2187, 28966, 33, 20, 4672, 3536, 2979, 364, 1936, 296, 84, 11, 471, 652, 2...
sage: x = r([1,2,3]) sage: y = r([4,5,6]) sage: r.plot(x,y)
sage: x = r([1,2,3]) sage: y = r([4,5,6]) sage: r.plot(x,y)
def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE.
f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 333, ...
return [] cr.execute('select "'+field._id1+'" from "'+field._rel+'" where "'+field._id2+'" in ('+','.join(map(str, res_ids))+')') args[i] = ('id', 'in', map(lambda x: x[0], cr.fetchall()))
args[i] = ('id', 'in', [0]) else: cr.execute('select "'+field._id1+'" from "'+field._rel+'" where "'+field._id2+'" in ('+','.join(map(str, res_ids))+')') args[i] = ('id', 'in', map(lambda x: x[0], cr.fetchall()))
def _rec_convert(ids): if self.pool.get(field._obj)==self: return ids if not len(ids): return [] cr.execute('select "'+field._id1+'" from "'+field._rel+'" where "'+field._id2+'" in ('+','.join(map(str,ids))+')') ids = [x[0] for x in cr.fetchall()] return ids
dbf8bc70e74c476ac3a8917882fd26f01cf4d746 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/dbf8bc70e74c476ac3a8917882fd26f01cf4d746/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 365, 18, 6011, 18, 588, 12, 1518, 6315, 2603, 13, 631, 2890, 30, 327, 3258, 309, 486, 562, 12, 2232, 4672, 327, 5378, 4422, 18, 8837, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 365, 18, 6011, 18, 588, 12, 1518, 6315, 2603, 13, 631, 2890, 30, 327, 3258, 309, 486, 562, 12, 2232, 4672, 327, 5378, 4422, 18, 8837, 2668, ...
def hover_bt1_clicked(obj, event, data): data.show() def hover_clicked(obj, event, *args, **kargs):
def hover_bt1_clicked(bt, hv, **kwargs): hv.show() def hover_clicked(obj, it, *args, **kwargs):
def hover_bt1_clicked(obj, event, data): data.show()
dff3caa2ec713908f112c4970120d3d880226170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/dff3caa2ec713908f112c4970120d3d880226170/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15758, 67, 23602, 21, 67, 7475, 329, 12, 2603, 16, 871, 16, 501, 4672, 501, 18, 4500, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15758, 67, 23602, 21, 67, 7475, 329, 12, 2603, 16, 871, 16, 501, 4672, 501, 18, 4500, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ends = field.split("-")
ends = [ int(a, 0) for a in field.split("-") ]
def cpustring_to_list(cpustr): """Convert a string of numbers to an integer list. Given a string of comma-separated numbers and number ranges, return a simple sorted list of the integers it represents. This function will throw exceptions for badly-formatted strings. Returns a list of integers.""" fields = cpustr.st...
6d0288b6c0afa5d92701f1f1f9b677fafd1968cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3406/6d0288b6c0afa5d92701f1f1f9b677fafd1968cd/tuna.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20620, 371, 67, 869, 67, 1098, 12, 20696, 313, 4672, 3536, 2723, 279, 533, 434, 5600, 358, 392, 3571, 666, 18, 225, 16803, 279, 533, 434, 8716, 17, 24622, 5600, 471, 1300, 7322, 16, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20620, 371, 67, 869, 67, 1098, 12, 20696, 313, 4672, 3536, 2723, 279, 533, 434, 5600, 358, 392, 3571, 666, 18, 225, 16803, 279, 533, 434, 8716, 17, 24622, 5600, 471, 1300, 7322, 16, 32...
self.MIs = {}
self.MIs = {} def __len__(self): return self.N_communities
def __init__(self, cmap={}, inputFile=None, N_nodes=None): """Initialize a node partition.
c2c75f8e7416c6272a9fe1426d0234bcacc54bac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/c2c75f8e7416c6272a9fe1426d0234bcacc54bac/communities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11136, 28793, 22014, 33, 7036, 16, 423, 67, 4690, 33, 7036, 4672, 3536, 7520, 279, 756, 3590, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11136, 28793, 22014, 33, 7036, 16, 423, 67, 4690, 33, 7036, 4672, 3536, 7520, 279, 756, 3590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
inbox = SpambayesInbox(3) spam_trainer = Trainer(spam_box, True)
spam_train_cache = os.path.join(options["Storage", "ham_cache"], "..", "spam_to_train") spam_train_box = SpambayesMailbox("TrainAsSpam", 3, spam_train_cache) inbox = SpambayesInbox(4) spam_trainer = Trainer(spam_train_box, True)
def setup(): # Setup state, app, boxes, trainers and account state.createWorkers() proxyListeners = [] app = Application("SpambayesIMAPServer") spam_box = SpambayesMailbox("Spam", 0, options["Storage", "spam_cache"]) unsure_box = SpambayesMailbox("Unsure", 1, options["Storage", "unknown_cache"]) ham_train_box = Spamba...
c4d7670dff445a1db6fa6542323dae6b3cdc7cdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c4d7670dff445a1db6fa6542323dae6b3cdc7cdc/sb_pop3dnd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 468, 10939, 919, 16, 595, 16, 14356, 16, 4691, 414, 471, 2236, 919, 18, 2640, 15252, 1435, 2889, 5583, 273, 5378, 595, 273, 4257, 2932, 3389, 2536, 528, 281, 3445, 2203, 208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 468, 10939, 919, 16, 595, 16, 14356, 16, 4691, 414, 471, 2236, 919, 18, 2640, 15252, 1435, 2889, 5583, 273, 5378, 595, 273, 4257, 2932, 3389, 2536, 528, 281, 3445, 2203, 208...
Cost in terms of lazyness of supported operators, this does not include
Cost in terms of laziness of supported operators, this does not include
def __and__(self, other): if not isinstance(other, self.__class__): return NotImplemented result = Counter() if len(self) < len(other): self, other = other, self for element in ifilter(self.__contains__, other): newcount = min(self[element], other[element]) if newcount > 0: result[element] = newcount return result
dfe845f2fd66c8336fa69d7a9e3a35c4e5210ffe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13697/dfe845f2fd66c8336fa69d7a9e3a35c4e5210ffe/datastructures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 464, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 365, 16186, 1106, 972, 4672, 327, 10051, 563, 273, 9354, 1435, 309, 562, 12, 2890, 13, 411, 562, 12, 3011, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 464, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 365, 16186, 1106, 972, 4672, 327, 10051, 563, 273, 9354, 1435, 309, 562, 12, 2890, 13, 411, 562, 12, 3011, 4672,...
self.debugfiles.update(frozenset([x[:-1] for x in util.popen(
self.debugfiles |= set(util.popen(
def doFile(self, path):
c556fbda71e4c54a0911ad2c2224146aa8d2049b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c556fbda71e4c54a0911ad2c2224146aa8d2049b/destdirpolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if method.abstract: return []
def MethodDefinition(self, method): '''Returns a list of lines, which should be put inside the class_ statement to export this method.''' # dont define abstract methods if method.abstract: return [] pyste = namespaces.pyste rename = self.info[method.name].rename or method.name default_names = self.DefaultImplementation...
2f6cfaf0e9242a98b41a1d1fe2aa96ccbc61578e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9978/2f6cfaf0e9242a98b41a1d1fe2aa96ccbc61578e/ClassExporter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2985, 1852, 12, 2890, 16, 707, 4672, 9163, 1356, 279, 666, 434, 2362, 16, 1492, 1410, 506, 1378, 4832, 326, 667, 67, 3021, 358, 3359, 333, 707, 1093, 6309, 468, 14046, 4426, 8770, 2590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2985, 1852, 12, 2890, 16, 707, 4672, 9163, 1356, 279, 666, 434, 2362, 16, 1492, 1410, 506, 1378, 4832, 326, 667, 67, 3021, 358, 3359, 333, 707, 1093, 6309, 468, 14046, 4426, 8770, 2590, ...
with localvars(poly.parent(), 'x'):
with localvars(poly.parent(), name):
def pari_polynomial(self): """ PARI polynomial corresponding to polynomial that defines this field. This is always a polynomial in the variable "x".
bf41e06add27789237d0cb0311bc55b4c09fbea4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bf41e06add27789237d0cb0311bc55b4c09fbea4/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 77, 67, 3915, 13602, 12, 2890, 4672, 3536, 3939, 45, 16991, 4656, 358, 16991, 716, 11164, 333, 652, 18, 282, 1220, 353, 3712, 279, 16991, 316, 326, 2190, 315, 92, 9654, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 77, 67, 3915, 13602, 12, 2890, 4672, 3536, 3939, 45, 16991, 4656, 358, 16991, 716, 11164, 333, 652, 18, 282, 1220, 353, 3712, 279, 16991, 316, 326, 2190, 315, 92, 9654, 2, -100, -...
self.xgngeoconf_dir = os.path.expanduser("~/.xgngeo") self.xgngeoconf_file = os.path.join(self.xgngeoconf_dir,"xgngeo.conf") self.gngeoDir = os.path.expanduser("~/.gngeo") self.gngeorcPath = os.path.join(self.gngeoDir,"gngeorc")
self.xgngeoUserDir = os.path.expanduser("~/.xgngeo") self.xgngeoConfFile = os.path.join(self.xgngeoUserDir,"xgngeo.conf") self.gngeoUserDir = os.path.expanduser("~/.gngeo") self.gngeorcPath = os.path.join(self.gngeoUserDir,"gngeorc") for dir in (self.xgngeoUserDir,self.gngeoUserDir): if not os.path.isdir(dir): os.mkdi...
def __init__(self,datarootpath): self.datarootpath = datarootpath self.xgngeoconf_dir = os.path.expanduser("~/.xgngeo") #XGngeo local configuration directory. self.xgngeoconf_file = os.path.join(self.xgngeoconf_dir,"xgngeo.conf") #Path to XGngeo config file. self.gngeoDir = os.path.expanduser("~/.gngeo") #Gngeo local c...
96404073f3dc31bbf169897bbfa7d978ead642b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3056/96404073f3dc31bbf169897bbfa7d978ead642b4/configfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3404, 297, 1632, 803, 4672, 365, 18, 3404, 297, 1632, 803, 273, 1150, 297, 1632, 803, 365, 18, 92, 1600, 908, 16550, 74, 67, 1214, 273, 1140, 18, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3404, 297, 1632, 803, 4672, 365, 18, 3404, 297, 1632, 803, 273, 1150, 297, 1632, 803, 365, 18, 92, 1600, 908, 16550, 74, 67, 1214, 273, 1140, 18, 803, ...
testDir = os.path.join(chandlerDir, 'util', 'QATestScripts', 'Performance')
testDir = os.path.join(chandlerDir, 'tools', 'QATestScripts', 'Performance')
def doPerformanceTests(hardhatScript, mode, workingDir, outputDir, buildVersion, log): hardhatlib.setupEnvironment(buildenv) chandlerDir = os.path.join(workingDir, "chandler") testDir = os.path.join(chandlerDir, 'util', 'QATestScripts', 'Performance') if buildenv['version'] == 'debug': python = buildenv['python_d...
debde11a9a82e8d2a7e10995a555c8086d5c0aa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/debde11a9a82e8d2a7e10995a555c8086d5c0aa7/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 25024, 14650, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 1361, 1444, 16, 613, 4672, 7877, 11304, 2941, 18, 8401, 5494, 12, 3510, 3074, 13, 225, 462, 464, 749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 25024, 14650, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 1361, 1444, 16, 613, 4672, 7877, 11304, 2941, 18, 8401, 5494, 12, 3510, 3074, 13, 225, 462, 464, 749, ...
As for the node lists, the master should not be included in the them, as it will be added by the hooks runner in case this LU requires a cluster to run on (otherwise we don't have a node list). No nodes should be returned as an empty list (and not None).
No nodes should be returned as an empty list (and not None).
def BuildHooksEnv(self): """Build hooks environment for this LU.
8a3fe350374465fed5dac8d64401e2ff04fda6fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/8a3fe350374465fed5dac8d64401e2ff04fda6fd/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 3330, 364, 333, 25527, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 3330, 364, 333, 25527, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
f = open("etc/version", 'r') version = f.read().replace('.', '_') f.close()
def generate_image(d): """ Generates an image accoording to given configuration. """ logging.debug(repr(d)) if d['imagebuilder'] not in IMAGEBUILDERS: raise Exception("Invalid imagebuilder specified!") x = OpenWrtConfig() x.setOpenwrtVersion(d['openwrt_ver']) x.setArch(d['arch']) x.setPortLayout(d['port_layout']) x.s...
546e76c78d696893d7e73e6ac0cc118a29cb8b88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/546e76c78d696893d7e73e6ac0cc118a29cb8b88/gennyd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 2907, 18, 4148, 12, 12715, 12, 72, 3719, 225, 309, 302, 3292, 2730, 9574, 3546, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 2907, 18, 4148, 12, 12715, 12, 72, 3719, 225, 309, 302, 3292, 2730, 9574, 3546, 486,...
file.Write(" uint32 data_size = n * sizeof(GLuint);\n")
code = """ uint32 data_size; if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { return error::kOutOfBounds; } """ file.Write(code)
def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" file.Write(" uint32 data_size = n * sizeof(GLuint);\n")
0c86dbf56c6f3e82ee748f34dca48aedf962dec2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/0c86dbf56c6f3e82ee748f34dca48aedf962dec2/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 290, 380, 13726, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 290, 380, 13726, 12, ...
message = "\"%s\",\"%s\",\"%s\"" % (queueObj['hostname'], queueObj['connection_result'], queueObj['command_output'])
message = "\"%s\",\"%s\",\"%s\"" % (queueObj['host'], queueObj['connection_result'], queueObj['command_output'])
def writeOut(self, queueObj): """Write 'text' to stdout (if VERBOSE is True) and to the outfile (if enabled)""" message = "\"%s\",\"%s\",\"%s\"" % (queueObj['hostname'], queueObj['connection_result'], queueObj['command_output']) verbose(message) if OUTFILE is not None: message = "%s\n" % message outlist = open(OUTFILE,...
6f69307ce1383825280bcd450de5b2253a841bcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/6f69307ce1383825280bcd450de5b2253a841bcf/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1182, 12, 2890, 16, 2389, 2675, 4672, 3536, 3067, 296, 955, 11, 358, 3909, 261, 430, 27857, 353, 1053, 13, 471, 358, 326, 8756, 261, 430, 3696, 15574, 883, 273, 7023, 9, 87, 2256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1182, 12, 2890, 16, 2389, 2675, 4672, 3536, 3067, 296, 955, 11, 358, 3909, 261, 430, 27857, 353, 1053, 13, 471, 358, 326, 8756, 261, 430, 3696, 15574, 883, 273, 7023, 9, 87, 2256...
return new_chunks
return all_new_chunks
def update_PAM_chunks( changed_atoms): """ Update chunks containing changed PAM atoms, ensuring that PAM atoms remain divided into AxisChunks and StrandSegmentChunks in the right way. @param changed_atoms: an atom.key -> atom dict of all changed atoms that this update function needs to consider, which includes no kill...
a8a3cf2687a3df92e10fd0e59b4a129083916b62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/a8a3cf2687a3df92e10fd0e59b4a129083916b62/dna_updater_chunks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 52, 2192, 67, 14691, 12, 3550, 67, 14937, 4672, 3536, 2315, 6055, 4191, 3550, 453, 2192, 9006, 16, 24831, 716, 453, 2192, 9006, 7232, 26057, 1368, 15509, 14975, 471, 3978, 464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 52, 2192, 67, 14691, 12, 3550, 67, 14937, 4672, 3536, 2315, 6055, 4191, 3550, 453, 2192, 9006, 16, 24831, 716, 453, 2192, 9006, 7232, 26057, 1368, 15509, 14975, 471, 3978, 464, ...
raise TypeError('Chart type %s not recognized'%self.type) imgkwargs = {}
raise TypeError('Chart type %s not recognized'%self.resolved_type)
def render(self, context): args = [] kwargs = {} for t in self.tokens: try: args.append(resolve_variable(t,context)) except: try: args.append(float(t)) except: arg = str(t) if arg.find('=')>-1: k,v = arg.split('=')[:2] kwargs[k] = v else: args.append(arg) if len(args) == 1 and type(args[0]) in map(type,[[],()]): args =...
1726780ec97114a47ce2817483559c57117d5259 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3687/1726780ec97114a47ce2817483559c57117d5259/charts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 833, 273, 5378, 1205, 273, 2618, 364, 268, 316, 365, 18, 7860, 30, 775, 30, 833, 18, 6923, 12, 10828, 67, 6105, 12, 88, 16, 2472, 3719, 1335, 30, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 833, 273, 5378, 1205, 273, 2618, 364, 268, 316, 365, 18, 7860, 30, 775, 30, 833, 18, 6923, 12, 10828, 67, 6105, 12, 88, 16, 2472, 3719, 1335, 30, 775, ...
nodes.
vertices.
def interior_paths(self, start, end): """ Returns an exhaustive list of paths (also lists) through only interior nodes from vertex start to vertex end in the graph. Note -- start and end do not necessarily have to be boundary nodes. INPUT: start -- the vertex of the graph to search for paths from end -- the vertex of...
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26230, 67, 4481, 12, 2890, 16, 787, 16, 679, 4672, 3536, 2860, 392, 19575, 641, 688, 666, 434, 2953, 261, 31144, 6035, 13, 3059, 1338, 26230, 2199, 628, 5253, 787, 358, 5253, 679, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26230, 67, 4481, 12, 2890, 16, 787, 16, 679, 4672, 3536, 2860, 392, 19575, 641, 688, 666, 434, 2953, 261, 31144, 6035, 13, 3059, 1338, 26230, 2199, 628, 5253, 787, 358, 5253, 679, 316, ...
"""
r"""
def __call__(self, x, check=True): """ Return $x$ coerced into this free monoid.
ca219b0206186a194cdf8e11d2082bec654536f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ca219b0206186a194cdf8e11d2082bec654536f8/string_monoid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 866, 33, 5510, 4672, 436, 8395, 2000, 271, 92, 8, 12270, 72, 1368, 333, 4843, 6921, 839, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 866, 33, 5510, 4672, 436, 8395, 2000, 271, 92, 8, 12270, 72, 1368, 333, 4843, 6921, 839, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.icon.append_overlay(self.throOverlay)
self.icon.get_effects().add_overlay(self.throOverlay)
def ThrobberOverlay(self, widget, *args, **kwargs): if widget.get_active(): self.throOverlay = awn.OverlayThrobber(self.icon) self.icon.append_overlay(self.throOverlay) elif self.throOverlay != None: self.icon.remove_overlay(self.throOverlay) self.throOverlay = None
39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d/test-overlays.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 935, 303, 23709, 11627, 12, 2890, 16, 3604, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 3604, 18, 588, 67, 3535, 13332, 365, 18, 451, 303, 11627, 273, 1690, 82, 18, 11627, 1315, 303, 237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 935, 303, 23709, 11627, 12, 2890, 16, 3604, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 3604, 18, 588, 67, 3535, 13332, 365, 18, 451, 303, 11627, 273, 1690, 82, 18, 11627, 1315, 303, 237...
return True
return False
def checkwhite_line(line): match = lead.search(line) if match and match.group(1).find('\t') != -1: return True match = trail.search(line) if match: return True return True
6bb9486598963d148c88e35cb516a1e467ea73c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6787/6bb9486598963d148c88e35cb516a1e467ea73c3/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 14739, 67, 1369, 12, 1369, 4672, 845, 273, 5871, 18, 3072, 12, 1369, 13, 309, 845, 471, 845, 18, 1655, 12, 21, 2934, 4720, 2668, 64, 88, 6134, 480, 300, 21, 30, 327, 1083, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 14739, 67, 1369, 12, 1369, 4672, 845, 273, 5871, 18, 3072, 12, 1369, 13, 309, 845, 471, 845, 18, 1655, 12, 21, 2934, 4720, 2668, 64, 88, 6134, 480, 300, 21, 30, 327, 1083, 225, ...
print items[i]; i+=1
b = items[i]; i+=1
def tightloop_example(): items = range(0, 3) try: i = 0 while 1: print items[i]; i+=1 except IndexError: pass
87e09aa725adab8b10efb3891c15bb22019eb02e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/87e09aa725adab8b10efb3891c15bb22019eb02e/test_trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26066, 6498, 67, 8236, 13332, 1516, 273, 1048, 12, 20, 16, 890, 13, 775, 30, 277, 273, 374, 1323, 404, 30, 324, 273, 1516, 63, 77, 15533, 277, 15, 33, 21, 1335, 10195, 30, 1342, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26066, 6498, 67, 8236, 13332, 1516, 273, 1048, 12, 20, 16, 890, 13, 775, 30, 277, 273, 374, 1323, 404, 30, 324, 273, 1516, 63, 77, 15533, 277, 15, 33, 21, 1335, 10195, 30, 1342, 225,...
sumfilesize += contents_size[guid]
try: sumfilesize += contents_size[guid] except: pass
def get_contents(self,backnav=False, overlap=True, filesize=False): '''Helper function to access dataset content'''
e5874c7e4d4882a55d796888a7a11ba73803090c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/e5874c7e4d4882a55d796888a7a11ba73803090c/DQ2Dataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3980, 12, 2890, 16, 823, 11589, 33, 8381, 16, 7227, 33, 5510, 16, 14104, 33, 8381, 4672, 9163, 2276, 445, 358, 2006, 3709, 913, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3980, 12, 2890, 16, 823, 11589, 33, 8381, 16, 7227, 33, 5510, 16, 14104, 33, 8381, 4672, 9163, 2276, 445, 358, 2006, 3709, 913, 26418, 2, -100, -100, -100, -100, -100, -100, -...
return addPackets(keys, stream, "getKeyFingerprint", "iterMainKeys")
return addPackets(keys, stream, "getKeyFingerprint", PGP_Message, "iterMainKeys")
def addKeys(keys, stream): """Add keys to the stream""" return addPackets(keys, stream, "getKeyFingerprint", "iterMainKeys")
4fd56e701ef4706d42981fa85285185ee22dae57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/4fd56e701ef4706d42981fa85285185ee22dae57/openpgpfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2396, 12, 2452, 16, 1407, 4672, 3536, 986, 1311, 358, 326, 1407, 8395, 327, 527, 27328, 12, 2452, 16, 1407, 16, 315, 588, 653, 17678, 3113, 21222, 67, 1079, 16, 315, 2165, 6376, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2396, 12, 2452, 16, 1407, 4672, 3536, 986, 1311, 358, 326, 1407, 8395, 327, 527, 27328, 12, 2452, 16, 1407, 16, 315, 588, 653, 17678, 3113, 21222, 67, 1079, 16, 315, 2165, 6376, 2...
(uri ,localname) tuple, the qname parameter the raw XML 1.0
(uri, localname) tuple, the qname parameter the raw XML 1.0
def startElement(self, name, attrs): """Signals the start of an element.
a3f4f1405a3beed95e2c40f72015af9060b19a99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a3f4f1405a3beed95e2c40f72015af9060b19a99/handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 3422, 4672, 3536, 23346, 326, 787, 434, 392, 930, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 3422, 4672, 3536, 23346, 326, 787, 434, 392, 930, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
}
}
def copy(self, cr, uid, id, default=None,context={}): return self.pool.get('sale.order.line').copy(cr, uid, id, default=None,context={})
c3ecae300b51b41e529e87af3b8a4554a185c2e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c3ecae300b51b41e529e87af3b8a4554a185c2e7/hotel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 2472, 12938, 4672, 327, 225, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 18, 1369, 16063, 3530, 12, 3353, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 2472, 12938, 4672, 327, 225, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 18, 1369, 16063, 3530, 12, 3353, 16...
nb_err=0 err_log='' str_log='' std_log='' str_log1 = "Coda File is Imported : " str_not='' str_not1=''
def _coda_parsing(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) codafile = data['form']['coda'] jur_id = data['form']['journal_id'] def_pay_acc = data['form']['def_payable'] def_rec_acc = data['form']['def_receivable'] str_log = "" err_log = "" bank_statement={} bank_statement_lines={} bank_statemen...
8771236bbdea36b286344d806879abc29c41dc0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/8771236bbdea36b286344d806879abc29c41dc0d/coda_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1559, 69, 67, 24979, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 11012, 69, 768, 273, 501, 3292, 687,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1559, 69, 67, 24979, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 11012, 69, 768, 273, 501, 3292, 687,...
_debug(1, "-> () CALL %s" % obj.__name__)
log.debug("-> () CALL %s" % obj.__name__)
def handle_request_call(self, (objid, args, kwargs)): _ipc_args = {} for arg in ("copy_result", "noproxy_result", "oneway", "noproxy_args"): if "__ipc_" + arg in kwargs: _ipc_args[arg] = kwargs["__ipc_" + arg] del kwargs["__ipc_" + arg]
a2ef02ba6b2343fafef3eba89f609780397810ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/a2ef02ba6b2343fafef3eba89f609780397810ea/ipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2293, 67, 1991, 12, 2890, 16, 261, 2603, 350, 16, 833, 16, 1205, 3719, 30, 389, 625, 71, 67, 1968, 273, 2618, 364, 1501, 316, 7566, 3530, 67, 2088, 3113, 315, 82, 556, 303,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2293, 67, 1991, 12, 2890, 16, 261, 2603, 350, 16, 833, 16, 1205, 3719, 30, 389, 625, 71, 67, 1968, 273, 2618, 364, 1501, 316, 7566, 3530, 67, 2088, 3113, 315, 82, 556, 303,...
error, desc = commands.getstatusoutput('''sed -i 's|\\pageref{
error, desc = executeCommand('''sed -i 's|\\pageref{
def buildPDF( file ): nr = re.match("xep-(\d\d\d\d).xml", file).group(1) error, desc = commands.getstatusoutput("xsltproc -o /tmp/xepbuilder/xep-" + nr + ".tex.xml xep2texml.xsl xep-" + nr + ".xml") if not checkError(error, desc): return False error, desc = commands.getstatusoutput("texml -e utf8 /tmp/xepbuilder/xep-...
c48521c5c739ae238f0623f2a23e1f09ad509054 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3519/c48521c5c739ae238f0623f2a23e1f09ad509054/gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 17508, 12, 585, 262, 30, 9884, 273, 283, 18, 1916, 2932, 92, 881, 17, 4713, 72, 64, 72, 64, 72, 64, 72, 2934, 2902, 3113, 585, 2934, 1655, 12, 21, 13, 225, 555, 16, 3044, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 17508, 12, 585, 262, 30, 9884, 273, 283, 18, 1916, 2932, 92, 881, 17, 4713, 72, 64, 72, 64, 72, 64, 72, 2934, 2902, 3113, 585, 2934, 1655, 12, 21, 13, 225, 555, 16, 3044, 273...
self.UIRepositoryView.repository.close()
def OnExit(self): """ Main application termination. Called after the window is torn down. """ self.UIRepositoryView.repository.close()
9bf509d51c8e6f4aae1874a2d7877662b7d5eefd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/9bf509d51c8e6f4aae1874a2d7877662b7d5eefd/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6767, 12, 2890, 4672, 3536, 12740, 2521, 19650, 18, 11782, 1839, 326, 2742, 353, 8934, 82, 2588, 18, 3536, 365, 18, 5370, 3305, 1767, 18, 9071, 18, 4412, 1435, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6767, 12, 2890, 4672, 3536, 12740, 2521, 19650, 18, 11782, 1839, 326, 2742, 353, 8934, 82, 2588, 18, 3536, 365, 18, 5370, 3305, 1767, 18, 9071, 18, 4412, 1435, 2, -100, -100, -100,...
subprocess.list2cmdline(args),)
subprocess.list2cmdline(args), )
def _compile(self, output, *sources): # Not strictly speaking correct, but easier than parsing shell args = self._compiler_cmd.split() # Do not add -Wall when using init code as we do not include any # header of the library being introspected if self._compiler_cmd == 'gcc' and not self._options.init_sections: args.appe...
48c3961683846291bcaf70c555bf791cbf36d7fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/48c3961683846291bcaf70c555bf791cbf36d7fd/dumper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 12, 2890, 16, 876, 16, 380, 10141, 4672, 468, 2288, 23457, 17785, 6159, 3434, 16, 1496, 15857, 2353, 5811, 5972, 833, 273, 365, 6315, 9576, 67, 4172, 18, 4939, 1435, 468, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 12, 2890, 16, 876, 16, 380, 10141, 4672, 468, 2288, 23457, 17785, 6159, 3434, 16, 1496, 15857, 2353, 5811, 5972, 833, 273, 365, 6315, 9576, 67, 4172, 18, 4939, 1435, 468, 225...
Self.assertEqual(audioop.minmax(data[1], 2), (0, 2))
self.assertEqual(audioop.minmax(data[1], 2), (0, 2))
def test_minmax(self): self.assertEqual(audioop.minmax(data[0], 1), (0, 2)) Self.assertEqual(audioop.minmax(data[1], 2), (0, 2)) self.assertEqual(audioop.minmax(data[2], 4), (0, 2))
3e82a208b4926556f807f3cfa82ddb96adde588b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/3e82a208b4926556f807f3cfa82ddb96adde588b/test_audioop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1154, 1896, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 11509, 556, 18, 1154, 1896, 12, 892, 63, 20, 6487, 404, 3631, 261, 20, 16, 576, 3719, 365, 18, 11231, 5812, 12, 11509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1154, 1896, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 11509, 556, 18, 1154, 1896, 12, 892, 63, 20, 6487, 404, 3631, 261, 20, 16, 576, 3719, 365, 18, 11231, 5812, 12, 11509, ...