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 |
|---|---|---|---|---|---|---|
if (SDK.has_key(version)): | if (version in SDK): | def SdkAutoDisableMax(): for version,key1,key2,subdir in MAXVERSIONINFO: if (PkgSkip(version)==0) and ((SDK.has_key(version)==0) or (SDK.has_key(version+"CS")==0)): if (sys.platform.startswith("win")): if (SDK.has_key(version)): WARNINGS.append("Your copy of "+version+" does not include the character studio SDK") else:... | fdcc1205b8a0b6802b88877ecb24913b8464ac72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/fdcc1205b8a0b6802b88877ecb24913b8464ac72/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3426,
4965,
11879,
2747,
13332,
364,
1177,
16,
856,
21,
16,
856,
22,
16,
1717,
1214,
316,
4552,
5757,
5923,
30,
309,
261,
11264,
6368,
12,
1589,
13,
631,
20,
13,
471,
14015,
22625,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3426,
4965,
11879,
2747,
13332,
364,
1177,
16,
856,
21,
16,
856,
22,
16,
1717,
1214,
316,
4552,
5757,
5923,
30,
309,
261,
11264,
6368,
12,
1589,
13,
631,
20,
13,
471,
14015,
22625,
18,... |
choices.append(DV.l(DV.prefs.getp(p,'name'),warn=False)) | choices.append(DV.prefs.getp(p,'name')) | def updatePrefPane(self,pane): self.prefpanesizer.Clear(True) # Delete all controls in prefpane for i in range(self.prefpanesizer.GetCols()): try: self.prefpanesizer.RemoveGrowableCol(i) except: pass for i in range(self.prefpanesizer.GetRows()): try: self.prefpanesizer.RemoveGrowableRow(i) except: pass self.pane=pane i... | 0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23218,
8485,
12,
2890,
16,
29009,
4672,
365,
18,
25724,
7355,
281,
1824,
18,
9094,
12,
5510,
13,
468,
2504,
777,
11022,
316,
11307,
29009,
364,
277,
316,
1048,
12,
2890,
18,
25724,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23218,
8485,
12,
2890,
16,
29009,
4672,
365,
18,
25724,
7355,
281,
1824,
18,
9094,
12,
5510,
13,
468,
2504,
777,
11022,
316,
11307,
29009,
364,
277,
316,
1048,
12,
2890,
18,
25724,... |
data_dict['invesalius'] = {'orientation_label' : GetImageOrientationLabel(self.filepath)} | data_dict['invesalius'] = {'orientation_label' : label} | def run(self): | 546ea0d2bb7cb5358e2c1a8107c904ef30ed1b87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/546ea0d2bb7cb5358e2c1a8107c904ef30ed1b87/dicom_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
0,
0,
0,... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
-100,
-100,
-... |
f.write(l) | f.write(l + '\n') | def generate_doc(fname, exampledir, outdir): """ generate a .txt based on a cmake file if the doc is not empty """ dest = os.path.join(outdir, os.path.basename(fname)) dest = dest.replace(".cmake", ".txt") docs = extract_doc_from_cmake(fname, exampledir) if len(docs) > 0: print "Generated:", dest with open(dest, "w") ... | 58e5719f8c1d5d076eb3b9af15ecc71594baba83 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13121/58e5719f8c1d5d076eb3b9af15ecc71594baba83/generate_doc_from_cmake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2434,
12,
12749,
16,
3454,
1214,
16,
15398,
4672,
3536,
2103,
279,
263,
5830,
2511,
603,
279,
5003,
911,
585,
309,
326,
997,
353,
486,
1008,
3536,
1570,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2434,
12,
12749,
16,
3454,
1214,
16,
15398,
4672,
3536,
2103,
279,
263,
5830,
2511,
603,
279,
5003,
911,
585,
309,
326,
997,
353,
486,
1008,
3536,
1570,
273,
1140,
18,
803,
1... |
"ls -l non_existent_file ; exit 0"], stderr=subprocess.STDOUT) | ... "ls -l non_existent_file ; exit 0"], ... stderr=subprocess.STDOUT) | def check_output(*popenargs, **kwargs): """Run command with arguments and return its output as a byte string. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the sam... | 6ab5d083f20aa63d689ed095e7660aef4241cd22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6ab5d083f20aa63d689ed095e7660aef4241cd22/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2844,
30857,
84,
3190,
1968,
16,
2826,
4333,
4672,
3536,
1997,
1296,
598,
1775,
471,
327,
2097,
876,
487,
279,
1160,
533,
18,
225,
971,
326,
2427,
981,
1703,
1661,
17,
7124,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2844,
30857,
84,
3190,
1968,
16,
2826,
4333,
4672,
3536,
1997,
1296,
598,
1775,
471,
327,
2097,
876,
487,
279,
1160,
533,
18,
225,
971,
326,
2427,
981,
1703,
1661,
17,
7124,
5... |
def update_status(self, test): | def reset(self): self.statusBar().showMessage('') self.statusBar().setStyleSheet('') def indicateSuccess(self): self.colorStatusBar(' total = self.result.n_success self.statusBar().showMessage("Ran %d tests. OK" % total) def indicateFailure(self): self.colorStatusBar(' res = self.result total = res.n_success + res.n_... | def update_status(self, test): self.statusBar().showMessage(test) | 958f10c55a04380a7b01daf5a841383cfd9f91bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14942/958f10c55a04380a7b01daf5a841383cfd9f91bd/qtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
2327,
5190,
7675,
4500,
1079,
2668,
6134,
365,
18,
2327,
5190,
7675,
542,
2885,
8229,
2668,
6134,
225,
1652,
10768,
4510,
12,
2890,
4672,
365,
18,
3266,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2715,
12,
2890,
4672,
365,
18,
2327,
5190,
7675,
4500,
1079,
2668,
6134,
365,
18,
2327,
5190,
7675,
542,
2885,
8229,
2668,
6134,
225,
1652,
10768,
4510,
12,
2890,
4672,
365,
18,
3266,
14... |
"incoming|in": (incoming, [], 'hg incoming [SOURCE]'), | "incoming|in": (incoming, [('p', 'patch', None, 'show patch')], 'hg incoming [-p] [SOURCE]'), | def verify(ui, repo): """verify the integrity of the repository""" return repo.verify() | 91f0b1cc17f517bbd0bdf0eb5e1fe86fa39ddfc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/91f0b1cc17f517bbd0bdf0eb5e1fe86fa39ddfc3/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
8395,
327,
3538,
18,
8705,
1435,
225,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
8395,
327,
3538,
18,
8705,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.date_time(), msg) | formatdate(), msg) | def emit(self, record): """ Emit a record. | b224047a3a3f8e47fc3b305b81ed08acaeb25f46 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b224047a3a3f8e47fc3b305b81ed08acaeb25f46/handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
12,
2890,
16,
1409,
4672,
3536,
16008,
279,
1409,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
12,
2890,
16,
1409,
4672,
3536,
16008,
279,
1409,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if !thumbnailStore.setPixelsId(pixelsId): | if not thumbnailStore.setPixelsId(pixelsId): | def getThumbnail(thumbnailStore, pixelsId, length): """ Returns a thumbnail (as string) from the pixelsId, the longest side is 'length' @param thumbnailStore: The Omero thumbnail store @param pixelsId: The ID of the pixels. long @param length: Length of longest side. int @return: The thumbnail as a String, or None... | 5156200eba5debd64d191cf183f16b08bdd90e7a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/5156200eba5debd64d191cf183f16b08bdd90e7a/imageUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
16270,
12,
14904,
2257,
16,
8948,
548,
16,
769,
4672,
3536,
2860,
279,
9134,
261,
345,
533,
13,
628,
326,
8948,
548,
16,
326,
12163,
4889,
353,
296,
2469,
11,
225,
632,
891,
9134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16270,
12,
14904,
2257,
16,
8948,
548,
16,
769,
4672,
3536,
2860,
279,
9134,
261,
345,
533,
13,
628,
326,
8948,
548,
16,
326,
12163,
4889,
353,
296,
2469,
11,
225,
632,
891,
9134,... |
if len(sitelist)>1: logger.warning("Found more than one location for output dataset, will start subscription to aggregate data to %s. Locations are: %s" % (job.application.se_name,str(sitelist))) | seNames=job.application.se_name.split(" ") subscribedSite=seNames[0] if subscribedSite not in sitelist or len(sitelist)>1: if subscribedSite not in sitelist: logger.warning("location declared in application.se_name different from existing locations of %s. Subscribing dataset to requested location: %s" % (dset,subscribe... | def fill(self, type=None, name=None, **options ): """Determine outputdata and outputsandbox locations of finished jobs and fill output variable""" from Ganga.GPIDev.Lib.Job import Job from GangaAtlas.Lib.ATLASDataset import filecheck job = self._getParent() | 8173647c1db4e5b8b55f46c19595a5e97f474bcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/8173647c1db4e5b8b55f46c19595a5e97f474bcb/AthenaMCDatasets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
628,
611,
539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
628,
611,
539,
... |
def get_publisher(self, entry): publisher = entry publitext = None for x in publisher.getiterator('dt'): if self.repub.match(x.text): publitext = x.getnext().text_content() break return unicode(publitext) def get_date(self, entry, verbose): date = entry d = '' for x in date.getiterator('dt'): if x.text == 'Date de ... | def get_book_info(self, entry, mi): entry = entry.find("dl[@title='Informations sur le livre']") for x in entry.getiterator('dt'): if x.text == 'ISBN': isbntext = x.getnext().text_content().replace('-', '') if check_isbn(isbntext): mi.isbn = unicode(isbntext) elif self.repub.match(x.text): mi.publisher = unicode(x.getn... | 4887bac205622d0c6fe486278286b7eecbc30acc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4887bac205622d0c6fe486278286b7eecbc30acc/nicebooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3618,
67,
1376,
12,
2890,
16,
1241,
16,
12837,
4672,
1241,
273,
1241,
18,
4720,
2932,
5761,
14782,
2649,
2218,
25541,
1012,
5056,
884,
328,
427,
266,
3546,
7923,
364,
619,
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,
336,
67,
3618,
67,
1376,
12,
2890,
16,
1241,
16,
12837,
4672,
1241,
273,
1241,
18,
4720,
2932,
5761,
14782,
2649,
2218,
25541,
1012,
5056,
884,
328,
427,
266,
3546,
7923,
364,
619,
316,
... | |
return processElementTag(node) | return ''.join(processElementTag(node)) | def doSerialize(node): """Serializes a node and its children, emitting PO messages along the way. node is the node to serialize, first indicates whether surrounding tags should be emitted as well. """ if ignoreNode(node): return '' elif not node.children: return node.serialize("utf-8") elif node.type == 'entity_ref':... | 7df7f38ebfe0a2ba10334c996b94f4d81999bf11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/7df7f38ebfe0a2ba10334c996b94f4d81999bf11/xml2po.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
10343,
12,
2159,
4672,
3536,
20145,
279,
756,
471,
2097,
2325,
16,
3626,
1787,
13803,
2743,
7563,
326,
4031,
18,
225,
756,
353,
326,
756,
358,
4472,
16,
1122,
8527,
2856,
29071,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10343,
12,
2159,
4672,
3536,
20145,
279,
756,
471,
2097,
2325,
16,
3626,
1787,
13803,
2743,
7563,
326,
4031,
18,
225,
756,
353,
326,
756,
358,
4472,
16,
1122,
8527,
2856,
29071,
234... |
@match(r'^figlet(?:\s+list)?\s+fonts(?:\s+from\s+(\d+))?$') | @match(r'^list\s+figlet\s+fonts(?:\s+from\s+(\d+))?$') | def __init__(self, name): Processor.__init__(self, name) zip = ZipFile(self.fonts_zip) self.fonts = sorted(map(lambda n: os.path.splitext(os.path.split(n)[1])[0], zip.namelist())) | fd057e12552e1962b629874cc70ee223c869a667 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/fd057e12552e1962b629874cc70ee223c869a667/ascii.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
15476,
16186,
2738,
972,
12,
2890,
16,
508,
13,
3144,
273,
18364,
12,
2890,
18,
22052,
67,
4450,
13,
365,
18,
22052,
273,
3115,
12,
1458,
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,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
15476,
16186,
2738,
972,
12,
2890,
16,
508,
13,
3144,
273,
18364,
12,
2890,
18,
22052,
67,
4450,
13,
365,
18,
22052,
273,
3115,
12,
1458,
12,
... |
del lwtparser | def insert(self, arg): """ Insert some LIGO_LW xml data in the metadata database | 15d95b3c8cf259e9d26119cf55dce8ab26dfffde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/15d95b3c8cf259e9d26119cf55dce8ab26dfffde/LDBDServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
1501,
4672,
3536,
8040,
2690,
511,
3047,
51,
67,
48,
59,
2025,
501,
316,
326,
1982,
2063,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
1501,
4672,
3536,
8040,
2690,
511,
3047,
51,
67,
48,
59,
2025,
501,
316,
326,
1982,
2063,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.rapi.AddResponse("[ { \"id\": \"123\", \"uri\": \"\/2\/jobs\/123\" }," " { \"id\": \"124\", \"uri\": \"\2\/jobs\/124\" } ]") | self.rapi.AddResponse('[ { "id": "123", "uri": "\\/2\\/jobs\\/123" },' ' { "id": "124", "uri": "\\/2\\/jobs\\/124" } ]') | def testGetJobs(self): self.rapi.AddResponse("[ { \"id\": \"123\", \"uri\": \"\/2\/jobs\/123\" }," " { \"id\": \"124\", \"uri\": \"\2\/jobs\/124\" } ]") self.assertEqual([123, 124], self.client.GetJobs()) self.assertHandler(rlib2.R_2_jobs) | 2004e673aafe48c16c67a58ff0ce67a6c11cd9bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/2004e673aafe48c16c67a58ff0ce67a6c11cd9bb/ganeti.rapi.client_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
7276,
12,
2890,
4672,
365,
18,
1266,
77,
18,
986,
1064,
2668,
63,
288,
315,
350,
6877,
315,
12936,
3113,
315,
1650,
6877,
1548,
6700,
22,
1695,
19,
10088,
1695,
19,
12936,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
7276,
12,
2890,
4672,
365,
18,
1266,
77,
18,
986,
1064,
2668,
63,
288,
315,
350,
6877,
315,
12936,
3113,
315,
1650,
6877,
1548,
6700,
22,
1695,
19,
10088,
1695,
19,
12936,
6... |
def fl(): | def flush(): | def fl(): sys.stdout.flush() | 1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
13332,
2589,
18,
10283,
18,
11330,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3663,
13332,
2589,
18,
10283,
18,
11330,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
(command, status, stdout)) return stdout | (command, status, stdio)) return stdio | def run_or_die(command): (status, stdout) = commands.getstatusoutput(command) if status != 0: raise Exception("command '%s' failed with exit status %d and output '%s'" % (command, status, stdout)) return stdout | b2b8dad96133a5c91d4df368807bac54595abc68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/b2b8dad96133a5c91d4df368807bac54595abc68/rpmlisting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
280,
67,
72,
1385,
12,
3076,
4672,
261,
2327,
16,
3909,
13,
273,
4364,
18,
588,
2327,
2844,
12,
3076,
13,
309,
1267,
480,
374,
30,
1002,
1185,
2932,
3076,
1995,
87,
11,
253... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
280,
67,
72,
1385,
12,
3076,
4672,
261,
2327,
16,
3909,
13,
273,
4364,
18,
588,
2327,
2844,
12,
3076,
13,
309,
1267,
480,
374,
30,
1002,
1185,
2932,
3076,
1995,
87,
11,
253... |
except AttributeError: pass else: raise TestFailed, 'expected AttributeError' | except AttributeError: pass else: raise TestFailed, 'expected AttributeError' | def b(): 'my docstring' pass | 5fc07e929655dddee60731048496f3eef3148415 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5fc07e929655dddee60731048496f3eef3148415/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Given a string s, strip all whitespace from s and return the resulting string. | Given a string s, strip leading whitespace from s and return the resulting string. | def notebook_lib(): s= r""" | cd076e05bf6598fc5ed37423f7b47338d1851bc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd076e05bf6598fc5ed37423f7b47338d1851bc2/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Z = imageS.diagonal() / imageR.diagonal() | Z = imageS_mat.diagonal() / imageR_mat.diagonal() | def resize_image(imageS, imageS_mat, imageR_mat): """ zoom_image = resize_image(imageS, imageS_mat, imageR_mat) Fractional resample source_image to reference_image size. The resample is implemented with 3D cubic spline. The source imageS_mat is the 4x4 voxel-to-physical conversion matrix. Parameters ---------- image... | 8ba3c3ee13ac48ee356ec8319930a6b0510f110b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/8ba3c3ee13ac48ee356ec8319930a6b0510f110b/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
67,
2730,
12,
2730,
55,
16,
1316,
55,
67,
7373,
16,
1316,
54,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
2730,
55,
16,
1316,
55,
67,
7373,
16,
1316,
54,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
67,
2730,
12,
2730,
55,
16,
1316,
55,
67,
7373,
16,
1316,
54,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
2730,
55,
16,
1316,
55,
67,
7373,
16,
1316,
54,
6... |
self['SWIGFLAGS'] += " -I%s" % Dir(d) | d = Dir(d) d = r"\ ".join(re.split(r" ", str(d))) self['SWIGFLAGS'] += " -I%s" % d | def CheckSwig(self, language="python", ilang="C", ignoreWarnings=None, swigdir=None): """Adjust the construction environment to allow the use of swig; if swigdir is specified it's the path to the swig binary, otherwise the calling process' PATH is searched. Bindings are generated for LANGUAGE (e.g. "python") using imp... | 3a7437bc9c0ad546332c6d744a8cb9cad2e16e72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6561/3a7437bc9c0ad546332c6d744a8cb9cad2e16e72/SConsUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
55,
5837,
12,
2890,
16,
2653,
1546,
8103,
3113,
277,
4936,
1546,
39,
3113,
2305,
4312,
33,
7036,
16,
1352,
360,
1214,
33,
7036,
4672,
3536,
10952,
326,
16171,
3330,
358,
1699,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2073,
55,
5837,
12,
2890,
16,
2653,
1546,
8103,
3113,
277,
4936,
1546,
39,
3113,
2305,
4312,
33,
7036,
16,
1352,
360,
1214,
33,
7036,
4672,
3536,
10952,
326,
16171,
3330,
358,
1699,
326,... |
self._bounds = Qd.OffsetRect(self._possize(width, height), pl, pt) | self._bounds = Qd.OffsetRect(_intRect(self._possize(width, height)), pl, pt) | def _calcbounds(self): # calculate absolute bounds relative to the window origin from our # abstract _possize attribute, which is either a 4-tuple or a callable object oldbounds = self._bounds pl, pt, pr, pb = self._parent._bounds if callable(self._possize): # _possize is callable, let it figure it out by itself: it sh... | 8d97b9bd36ad3437c2594deecf8b778e5508b8c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8d97b9bd36ad3437c2594deecf8b778e5508b8c1/Wbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
10576,
12,
2890,
4672,
468,
4604,
4967,
4972,
3632,
358,
326,
2742,
4026,
628,
3134,
468,
8770,
389,
917,
1467,
1566,
16,
1492,
353,
3344,
279,
1059,
17,
8052,
578,
279,
4140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12448,
10576,
12,
2890,
4672,
468,
4604,
4967,
4972,
3632,
358,
326,
2742,
4026,
628,
3134,
468,
8770,
389,
917,
1467,
1566,
16,
1492,
353,
3344,
279,
1059,
17,
8052,
578,
279,
4140... |
path = path.encode(ENCODING) return self._try_change(path, | return self._try_change(value, | def add_file(self, path): """sets new value for repositor""" path = path.encode(ENCODING) return self._try_change(path, "add_file", "update_files") | ceb5a60b600bb5b5e5c2af6af88dbb7130434557 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/ceb5a60b600bb5b5e5c2af6af88dbb7130434557/simple_facade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
768,
12,
2890,
16,
589,
4672,
3536,
4424,
394,
460,
364,
283,
1724,
280,
8395,
327,
365,
6315,
698,
67,
3427,
12,
1132,
16,
315,
1289,
67,
768,
3113,
315,
2725,
67,
2354,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
768,
12,
2890,
16,
589,
4672,
3536,
4424,
394,
460,
364,
283,
1724,
280,
8395,
327,
365,
6315,
698,
67,
3427,
12,
1132,
16,
315,
1289,
67,
768,
3113,
315,
2725,
67,
2354,
79... |
_FIELD_BULLET = '@\w+( +[\w\.]+)?:( +|$)' | _FIELD_BULLET = '@\w+( [^{}:\n]+)?:( +|$)' | def to_dom(self, doc): """ @return: a DOM representation of this C{Token}. @rtype: L{xml.dom.minidom.Element} """ e = doc.createElement(self.tag) e.appendChild(doc.createTextNode(self.contents)) return e | 69baddf654f0154a0e1fd114433821b807fcb3de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/69baddf654f0154a0e1fd114433821b807fcb3de/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
9859,
12,
2890,
16,
997,
4672,
3536,
632,
2463,
30,
279,
4703,
4335,
434,
333,
385,
95,
1345,
5496,
632,
86,
723,
30,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
1046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
67,
9859,
12,
2890,
16,
997,
4672,
3536,
632,
2463,
30,
279,
4703,
4335,
434,
333,
385,
95,
1345,
5496,
632,
86,
723,
30,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
1046,
... |
assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(... | self._check_ldexp(np.int8) self._check_ldexp(np.int16) self._check_ldexp(np.int32) self._check_ldexp('i') self._check_ldexp('l') def test_ldexp_overflow(self): imax = np.iinfo(np.dtype('l')).max imin = np.iinfo(np.dtype('l')).min assert_equal(ncu.ldexp(2., imax), np.inf) assert_equal(ncu.ldexp(2., imin), 0) | def test_ldexp(self): assert_almost_equal(ncu.ldexp(2., 3), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int16)), 16.)... | 93f7521dd0ac9edc0034eec5501a126cc4683b70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/93f7521dd0ac9edc0034eec5501a126cc4683b70/test_umath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
80,
561,
84,
12,
2890,
4672,
1815,
67,
287,
10329,
67,
9729,
12,
82,
6319,
18,
80,
561,
84,
12,
22,
12990,
890,
3631,
225,
2872,
12998,
1815,
67,
287,
10329,
67,
9729,
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,
1842,
67,
80,
561,
84,
12,
2890,
4672,
1815,
67,
287,
10329,
67,
9729,
12,
82,
6319,
18,
80,
561,
84,
12,
22,
12990,
890,
3631,
225,
2872,
12998,
1815,
67,
287,
10329,
67,
9729,
12,
... |
def processPDB(file): bioPythonProps = parseWithBioPython(file) return parseWithMMLib(file, bioPythonProps) def decompressFile(src): tempfile = 'tmp/%s' % src dest = 'tmp/%s' % src[:-2] | """ Task that takes a list of pdbs and processes the files extracting geometry data from the files """ class ProcessPDBTask(Task): """ Work function - expects a list of pdb file prefixes. """ def _work(self, args): for pdb in args: filename = 'pdb%s.ent.Z' % pdb bioPythonProps = parseWithBioPython(filename) prop... | def processPDB(file): bioPythonProps = parseWithBioPython(file) #print 'props: %s' % bioPythonProps return parseWithMMLib(file, bioPythonProps) | 0940838e5e869d7bb9f818c88f728b1e1c7b3d2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6163/0940838e5e869d7bb9f818c88f728b1e1c7b3d2c/ProcessPDBTask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
52,
2290,
12,
768,
4672,
25091,
15774,
5047,
273,
1109,
1190,
38,
1594,
15774,
12,
768,
13,
468,
1188,
296,
9693,
30,
738,
87,
11,
738,
25091,
15774,
5047,
327,
1109,
1190,
49,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
52,
2290,
12,
768,
4672,
25091,
15774,
5047,
273,
1109,
1190,
38,
1594,
15774,
12,
768,
13,
468,
1188,
296,
9693,
30,
738,
87,
11,
738,
25091,
15774,
5047,
327,
1109,
1190,
49,
1... |
JSDebug.JSScript.Native : "native", JSDebug.JSScript.Extension : "extension", JSDebug.JSScript.Normal : "normal" | JSDebug.Script.Native : "native", JSDebug.Script.Extension : "extension", JSDebug.Script.Normal : "normal" | def typename(self): NAMES = { JSDebug.JSScript.Native : "native", JSDebug.JSScript.Extension : "extension", JSDebug.JSScript.Normal : "normal" } | 5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26735,
12,
2890,
4672,
6048,
55,
273,
288,
6756,
2829,
18,
3651,
18,
9220,
294,
315,
13635,
3113,
6756,
2829,
18,
3651,
18,
3625,
294,
315,
6447,
3113,
6756,
2829,
18,
3651,
18,
5506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26735,
12,
2890,
4672,
6048,
55,
273,
288,
6756,
2829,
18,
3651,
18,
9220,
294,
315,
13635,
3113,
6756,
2829,
18,
3651,
18,
3625,
294,
315,
6447,
3113,
6756,
2829,
18,
3651,
18,
5506,
... |
('- (id)initWithPID:(pid_t)pid', 'kASTargetPID', '[NSNumber numberWithUnsignedLong: pid]'), | ('- (id)initWithPID:(pid_t)pid', 'kASTargetPID', '[NSNumber numberWithInteger: pid]'), | def render_application(self, src): src.newglue('ApplicationGlue') src.importmacro('<PREFIX>ConstantGlue.h') src.importmacro('<PREFIX>ReferenceGlue.h') src.newclass('<PREFIX>Application', '<PREFIX>Reference') # private initialiser src.comment('note: clients shouldn\'t need to call -initWithTargetType:data: themselves') ... | 895334772e731f980de83b397887c1cd4836ee61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10961/895334772e731f980de83b397887c1cd4836ee61/objcappscript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3685,
12,
2890,
16,
1705,
4672,
1705,
18,
2704,
7043,
344,
2668,
3208,
21308,
344,
6134,
1705,
18,
5666,
26448,
2668,
32,
6307,
34,
6902,
21308,
344,
18,
76,
6134,
1705,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
3685,
12,
2890,
16,
1705,
4672,
1705,
18,
2704,
7043,
344,
2668,
3208,
21308,
344,
6134,
1705,
18,
5666,
26448,
2668,
32,
6307,
34,
6902,
21308,
344,
18,
76,
6134,
1705,
18,
... |
if env.GetOption("clean") or env.GetOption("no_exec"): | if env.GetOption("clean") or env.GetOption("no_exec") or env.GetOption("help") : | def IsGcc(context): context.Message("Checking if CC is really gcc...") result = context.TryAction(["%s --help | grep gcc" % env['CC']])[0] context.Result(result) return result | 50ba4e889e3d144aba422fb2a117a16bf0be3173 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6561/50ba4e889e3d144aba422fb2a117a16bf0be3173/SConsUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
43,
952,
12,
2472,
4672,
819,
18,
1079,
2932,
14294,
309,
225,
16525,
353,
8654,
314,
952,
7070,
13,
563,
273,
819,
18,
7833,
1803,
3816,
28385,
87,
1493,
5201,
571,
23366,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2585,
43,
952,
12,
2472,
4672,
819,
18,
1079,
2932,
14294,
309,
225,
16525,
353,
8654,
314,
952,
7070,
13,
563,
273,
819,
18,
7833,
1803,
3816,
28385,
87,
1493,
5201,
571,
23366,
314,
... |
MelFid('SNAM','sound'), | MelGroup('destructable', MelBase('DEST','header'), MelStruct('DEST','IhH','health','count','flags'), MelGroups('stages', MelStruct('DSTD','=4B4I','health','index','damageStage','flags', 'selfDamagePerSecond',(FID,'explosion',None),(FID,'debris',None),'debrisCount'), MelString('DMDL','model'), MelBa... | def getEffectsSummary(self,mgef_school=None,mgef_name=None): """Return a text description of magic effects.""" mgef_school = mgef_school or bush.mgef_school mgef_name = mgef_name or bush.mgef_name buff = cStringIO.StringIO() avEffects = bush.actorValueEffects aValues = bush.actorValues buffWrite = buff.write if self.ef... | 6bd5a53acf99e85e527eb9e4ebec85b20c6dd97c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6bd5a53acf99e85e527eb9e4ebec85b20c6dd97c/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
3736,
87,
4733,
12,
2890,
16,
81,
908,
74,
67,
28204,
1371,
33,
7036,
16,
81,
908,
74,
67,
529,
33,
7036,
4672,
3536,
990,
279,
977,
2477,
434,
8146,
16605,
12123,
312,
908,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4774,
3736,
87,
4733,
12,
2890,
16,
81,
908,
74,
67,
28204,
1371,
33,
7036,
16,
81,
908,
74,
67,
529,
33,
7036,
4672,
3536,
990,
279,
977,
2477,
434,
8146,
16605,
12123,
312,
908,
74... |
self.file.write('\n' + '\n'*blankline) | self.file.write('\n'*blankline) | def send_paragraph(self, blankline): self.file.write('\n' + '\n'*blankline) self.col = 0 self.atbreak = 0 | 372571f80f5a88f99051e65ce46f4b86b9e005c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/372571f80f5a88f99051e65ce46f4b86b9e005c0/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
22445,
12,
2890,
16,
7052,
1369,
4672,
365,
18,
768,
18,
2626,
2668,
64,
82,
11,
14,
12111,
1369,
13,
365,
18,
1293,
273,
374,
365,
18,
270,
8820,
273,
374,
2,
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,
1,
1,
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,
1366,
67,
22445,
12,
2890,
16,
7052,
1369,
4672,
365,
18,
768,
18,
2626,
2668,
64,
82,
11,
14,
12111,
1369,
13,
365,
18,
1293,
273,
374,
365,
18,
270,
8820,
273,
374,
2,
-100,
-100,
... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0060text(self): ''' Test Text. ''' text1_id = self.text.create({ 'text': 'Test', }, CONTEXT) self.assert_(text1_id) | 52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
4848,
955,
12,
2890,
4672,
9163,
7766,
3867,
18,
9163,
977,
21,
67,
350,
273,
365,
18,
955,
18,
2640,
12590,
296,
955,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
1123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
713,
4848,
955,
12,
2890,
4672,
9163,
7766,
3867,
18,
9163,
977,
21,
67,
350,
273,
365,
18,
955,
18,
2640,
12590,
296,
955,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
1123... |
M = self.weighted_adjacency_matrix(boundary_first=boundary_first) | M = self.weighted_adjacency_matrix(**kwds) | def kirchhoff_matrix(self, weighted=None, boundary_first=False): """ Returns the Kirchhoff matrix (a.k.a. the Laplacian) of the graph. | 1ca6f66137d47879244a15a66558f82f865333e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ca6f66137d47879244a15a66558f82f865333e3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
481,
343,
76,
3674,
67,
5667,
12,
2890,
16,
13747,
33,
7036,
16,
7679,
67,
3645,
33,
8381,
4672,
3536,
2860,
326,
1475,
481,
343,
76,
3674,
3148,
261,
69,
18,
79,
18,
69,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
417,
481,
343,
76,
3674,
67,
5667,
12,
2890,
16,
13747,
33,
7036,
16,
7679,
67,
3645,
33,
8381,
4672,
3536,
2860,
326,
1475,
481,
343,
76,
3674,
3148,
261,
69,
18,
79,
18,
69,
18,
... |
self.body.append('\\section{%s\label{%s}}\n' % (s1, s2)) | self.body.append('\\section{%s\\label{%s}}\n' % (s1, s2)) | def visit_title(self, node): #self.pdebug('%% [(visit_title) section_level: %d node: "%s"]\n' % \ # (self.section_level, node.astext().lower())) if self.section_level == 0: self.title_before_section = 1 if self.seealso: self.body.append('\\end{seealso}\n') self.seealso = 0 if node.astext().lower() == 'see also': se... | ed688792a0f4c20b7802333819981a0ad813078d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ed688792a0f4c20b7802333819981a0ad813078d/python_latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2649,
12,
2890,
16,
756,
4672,
468,
2890,
18,
84,
4148,
2668,
11438,
306,
12,
11658,
67,
2649,
13,
2442,
67,
2815,
30,
738,
72,
225,
756,
30,
2213,
87,
11929,
64,
82,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
67,
2649,
12,
2890,
16,
756,
4672,
468,
2890,
18,
84,
4148,
2668,
11438,
306,
12,
11658,
67,
2649,
13,
2442,
67,
2815,
30,
738,
72,
225,
756,
30,
2213,
87,
11929,
64,
82,
11,
... |
self.botsfile = impl.createDocument(None, "xeps", None) | self.botsFile = impl.createDocument(None, "xeps", None) | def __init__(self, filename, shortXMLfilename): self.filename = filename self.shortXMLfilename = shortXMLfilename try: self.tableFile = parse(filename) except: impl = getDOMImplementation() self.tableFile = impl.createDocument(None, "table", None) self.tableFile.getElementsByTagName("table")[0].setAttribute("class", "... | 0764d2c59c30332b8da0e5f55eba7e63043a98ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3519/0764d2c59c30332b8da0e5f55eba7e63043a98ff/gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
3025,
4201,
3459,
4672,
365,
18,
3459,
273,
1544,
365,
18,
6620,
4201,
3459,
273,
3025,
4201,
3459,
225,
775,
30,
365,
18,
2121,
812,
273,
1109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1544,
16,
3025,
4201,
3459,
4672,
365,
18,
3459,
273,
1544,
365,
18,
6620,
4201,
3459,
273,
3025,
4201,
3459,
225,
775,
30,
365,
18,
2121,
812,
273,
1109... |
operandStr += "%08X" % self.Displacement | operandStr += "%X" % self.Displacement | def OpText(self): size = 0 retVal = '' retVal += " %08X: " % self.Address for i in self.Instruction.Opcode: retVal += "%02X " % i size += 1 if self.ModRM: retVal += "%02X " % self.ModRM.SaveToByte() size += 1 if self.ModRM.HasSIB(): retVal += "%02X " % self.SIB size += 1 disp = self.ModRM.GetDisplacementSize() if dis... | 8284a7c3d5fbb6eb0da3a7e45050e3589ddf02f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11637/8284a7c3d5fbb6eb0da3a7e45050e3589ddf02f9/x86inst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6066,
1528,
12,
2890,
4672,
963,
273,
374,
12197,
273,
875,
225,
12197,
1011,
315,
225,
738,
6840,
60,
30,
315,
738,
365,
18,
1887,
364,
277,
316,
365,
18,
11983,
18,
22808,
30,
12197,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6066,
1528,
12,
2890,
4672,
963,
273,
374,
12197,
273,
875,
225,
12197,
1011,
315,
225,
738,
6840,
60,
30,
315,
738,
365,
18,
1887,
364,
277,
316,
365,
18,
11983,
18,
22808,
30,
12197,... |
newItem.setUniqueID() | newItem.setUniqueID(True) | def insertSibling(self, text=_defaultTitle, inAfter=False): """Add new sibling before or after self - return new item on success""" if not self.parent: return None pos = self.parent.childPos(self) if inAfter: pos += 1 newFormat = self.parent.nodeFormat().childType if newFormat not in globalref.docRef.treeFormats: newFo... | 6884c15a9efd246726e5be1da5031b6ad8a9721d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3087/6884c15a9efd246726e5be1da5031b6ad8a9721d/treeitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
10291,
12,
2890,
16,
977,
33,
67,
1886,
4247,
16,
316,
4436,
33,
8381,
4672,
3536,
986,
394,
10841,
1865,
578,
1839,
365,
300,
327,
394,
761,
603,
2216,
8395,
309,
486,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
10291,
12,
2890,
16,
977,
33,
67,
1886,
4247,
16,
316,
4436,
33,
8381,
4672,
3536,
986,
394,
10841,
1865,
578,
1839,
365,
300,
327,
394,
761,
603,
2216,
8395,
309,
486,
365,
18,
... |
self.watercleaningitem.connect("button_press_event", gcompris.utils.item_event_focus) | gcompris.utils.item_focus_init(self.watercleaningitem, None) | def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=1 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1 | 43391a08b217b2de454c37878789a4913b8c75ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11306/43391a08b217b2de454c37878789a4913b8c75ad/watercycle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
18,
75,
832,
683,
291,
22233,
18,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
1896,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
87,
1255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
2890,
4672,
365,
18,
75,
832,
683,
291,
22233,
18,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
1896,
2815,
33,
21,
365,
18,
75,
832,
683,
291,
22233,
18,
87,
1255... |
def mergefiles(outfile,myroot,mystart): | def mergefiles(outfile,mystart): | def mergefiles(outfile,myroot,mystart): mycurpath=os.getcwd() myfiles=os.listdir(mycurpath) for x in myfiles: floc=pathstrip(os.path.normpath(mycurpath+"/"+x),myroot,mystart) if os.path.islink(x): myto=os.readlink(x) if os.path.exists(floc[0]): if os.path.isdir(floc[0]): print "!!!",floc[0],"->",myto else: os.unlink(fl... | 01f4a9c4d0b331efdfed1bd9585e56e10c758791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/01f4a9c4d0b331efdfed1bd9585e56e10c758791/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
2354,
12,
26050,
16,
81,
1094,
485,
4672,
3399,
1397,
803,
33,
538,
18,
588,
11089,
1435,
3399,
2354,
33,
538,
18,
1098,
1214,
12,
4811,
1397,
803,
13,
364,
619,
316,
3399,
2354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
2354,
12,
26050,
16,
81,
1094,
485,
4672,
3399,
1397,
803,
33,
538,
18,
588,
11089,
1435,
3399,
2354,
33,
538,
18,
1098,
1214,
12,
4811,
1397,
803,
13,
364,
619,
316,
3399,
2354,... |
x = 0 y = 0 z = 0 | def parseWsc( file, map ): warnings = '' count = 0 while 1: line = file.readline() if not line: break # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) # SECTION WORLDITEM : 17 byte if line[:17] == 'SECTION WORLDITEM': item = {} while 1: line = file.readline() if not line or le... | 31e394cf58ebbec20845e8144250830cd5c8d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/31e394cf58ebbec20845e8144250830cd5c8d496/import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
59,
1017,
12,
585,
16,
852,
262,
30,
5599,
273,
875,
1056,
273,
374,
225,
1323,
404,
30,
980,
273,
585,
18,
896,
1369,
1435,
225,
309,
486,
980,
30,
898,
225,
468,
6910,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
59,
1017,
12,
585,
16,
852,
262,
30,
5599,
273,
875,
1056,
273,
374,
225,
1323,
404,
30,
980,
273,
585,
18,
896,
1369,
1435,
225,
309,
486,
980,
30,
898,
225,
468,
6910,
521,
... | |
op, coll, name, uuid = data op = {"add": "add", "remove":"discard"}.get (op, None) if op is not None: getattr (self._pendingNewEvents, op) (uuid) self.blockItem.markDirty() | blockItem = self.blockItem if self.haveAllAddEvents: op, coll, name, uuid = data if op == "refresh": if blockItem.find (uuid) in blockItem.contents: op = "add" else: op = "remove" if op == "add": getattr (self._pendingNewEvents, op) (uuid) elif op != "changed": self._pendingNewEvents = set() self.haveAllAddEvents = F... | def onItemNotification(self, notificationType, data): if (notificationType == 'collectionChange'): op, coll, name, uuid = data op = {"add": "add", "remove":"discard"}.get (op, None) if op is not None: getattr (self._pendingNewEvents, op) (uuid) self.blockItem.markDirty() | d8e97b1979e294f95118bdab9d363e482d0f5cba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/d8e97b1979e294f95118bdab9d363e482d0f5cba/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1180,
4386,
12,
2890,
16,
3851,
559,
16,
501,
4672,
309,
261,
9927,
559,
422,
296,
5548,
3043,
11,
4672,
1061,
16,
4508,
16,
508,
16,
3822,
273,
501,
1061,
273,
12528,
1289,
6877,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
1180,
4386,
12,
2890,
16,
3851,
559,
16,
501,
4672,
309,
261,
9927,
559,
422,
296,
5548,
3043,
11,
4672,
1061,
16,
4508,
16,
508,
16,
3822,
273,
501,
1061,
273,
12528,
1289,
6877,... |
href = 'http://www.pegasosppc.com/' | href = 'http://www.genesi-usa.com/' | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )])... | 5ef18979fda0361031978311951e5818b19dcb92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4747/5ef18979fda0361031978311951e5818b19dcb92/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
exts.append(kde_kwallet_module) | win32_crypto_module = Extension('win32_crypto', libraries = ['crypt32'], sources = ['keyring/backends/win32_crypto.c'],) exts.append(win32_crypto_module) | def build_extensions(self): exts = [] self.extensions = exts platform = self.get_platform() | b7833302c61c609bff809dc94f1a484787560106 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5209/b7833302c61c609bff809dc94f1a484787560106/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9489,
12,
2890,
4672,
20793,
273,
5378,
365,
18,
9489,
273,
20793,
4072,
273,
365,
18,
588,
67,
9898,
1435,
2,
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,
1361,
67,
9489,
12,
2890,
4672,
20793,
273,
5378,
365,
18,
9489,
273,
20793,
4072,
273,
365,
18,
588,
67,
9898,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
replacement_word = h; | replacement_word = trim(h); | def javascript(): s = r""" | 81dc5f988fe5a88dd1a6e92466f139e7857baeb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/81dc5f988fe5a88dd1a6e92466f139e7857baeb8/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
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,
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,
11341,
13332,
272,
273,
436,
8395,
225,
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,
-... |
return ks.handler.packages.instLange | if hasattr(ks.handler.packages, "instLangs"): return ks.handler.packages.instLangs return "" | def inst_langs(ks): return ks.handler.packages.instLange | 3b638f774797d476793f692371492818b6f9bff7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9342/3b638f774797d476793f692371492818b6f9bff7/kickstart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1804,
67,
4936,
87,
12,
7904,
4672,
309,
3859,
12,
7904,
18,
4176,
18,
10308,
16,
315,
8591,
7275,
87,
6,
4672,
327,
11654,
18,
4176,
18,
10308,
18,
8591,
7275,
87,
327,
1408,
225,
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,
1804,
67,
4936,
87,
12,
7904,
4672,
309,
3859,
12,
7904,
18,
4176,
18,
10308,
16,
315,
8591,
7275,
87,
6,
4672,
327,
11654,
18,
4176,
18,
10308,
18,
8591,
7275,
87,
327,
1408,
225,
2... |
if 1: test() else: import IsolatedDebugger dc = IsolatedDebugger.DebuggerController() id = dc.createServer() conn = IsolatedDebugger.DebuggerConnection(dc, id) conn.run('test()', globals(), locals()) for n in range(3): | if 1: test() else: import IsolatedDebugger dc = IsolatedDebugger.DebuggerController() id = dc.createServer() conn = IsolatedDebugger.DebuggerConnection(dc, id) conn.run('test()', globals(), locals()) for n in range(3): print conn.getInteractionUpdate() conn.set_step_over() for n in range(6): print conn.getInteractionUp... | def test(): print 'Hello' print 'World!' for n in range(1000): pass print 'Message:' test1() print 'Bye.' raise 'I refuse to finish!' print 'yeah.' | aabc0304dba9a4b2f0bfa086660e9ba45eaf8af0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aabc0304dba9a4b2f0bfa086660e9ba45eaf8af0/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1172,
296,
18601,
11,
1172,
296,
18071,
5124,
364,
290,
316,
1048,
12,
18088,
4672,
1342,
1172,
296,
1079,
2497,
1842,
21,
1435,
1172,
296,
858,
73,
1093,
1002,
296,
45,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
13332,
1172,
296,
18601,
11,
1172,
296,
18071,
5124,
364,
290,
316,
1048,
12,
18088,
4672,
1342,
1172,
296,
1079,
2497,
1842,
21,
1435,
1172,
296,
858,
73,
1093,
1002,
296,
45,
127... |
for partId in partPackages: packages = partPackages[partId] if searchId in packages: relevantParts.append(partId) relevantPackages.extend(packages[:packages.index(searchId)]) | for part in parts.values(): pkges = part.packages if searchId in pkges: relevantParts.append(part.name) relevantPackages.extend(pkges[:pkges.index(searchId)]) | def _getPreviousCommonPackage(self, searchId, partPackages, packageUsers): relevantParts = [] relevantPackages = [] | b1dd5c93f0d75604db233288a90b120bcf0450ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/b1dd5c93f0d75604db233288a90b120bcf0450ed/PartBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
8351,
6517,
2261,
12,
2890,
16,
1623,
548,
16,
1087,
11425,
16,
2181,
6588,
4672,
9368,
4305,
273,
5378,
9368,
11425,
273,
5378,
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,
0,
0,
0,
0,
0,
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,
389,
588,
8351,
6517,
2261,
12,
2890,
16,
1623,
548,
16,
1087,
11425,
16,
2181,
6588,
4672,
9368,
4305,
273,
5378,
9368,
11425,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
CleanerML.load_cleaners() | bleachbit.CleanerML.load_cleaners() | def __init__(self): import bleachbit.RecognizeCleanerML RecognizeCleanerML.RecognizeCleanerML() import bleachbit.CleanerML CleanerML.load_cleaners() self.create_window() gobject.threads_init() if options.get("first_start") and sys.platform == 'linux2': pref = PreferencesDialog(self.window, self.cb_refresh_operations) p... | 172134923f18cf7e444d183a0a73ebddceee0fa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/172134923f18cf7e444d183a0a73ebddceee0fa3/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1930,
24706,
497,
3682,
18,
22931,
554,
7605,
264,
1495,
7776,
4198,
554,
7605,
264,
1495,
18,
22931,
554,
7605,
264,
1495,
1435,
1930,
24706,
497,
3682,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
1930,
24706,
497,
3682,
18,
22931,
554,
7605,
264,
1495,
7776,
4198,
554,
7605,
264,
1495,
18,
22931,
554,
7605,
264,
1495,
1435,
1930,
24706,
497,
3682,
... |
cal.__parent__ = Person(title="Da Boss") | person = Person(title="Da Boss") setPath(person, '/persons/boss') cal.__parent__ = person | def test_render(self): from schooltool.browser.cal import MonthlyCalendarView from schooltool.cal import CalendarEvent, Calendar from schooltool.model import Person | f47e0727e3f4b5a0dfa15b230f0922687a6f68cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/f47e0727e3f4b5a0dfa15b230f0922687a6f68cd/test_cal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5902,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
11213,
18,
771,
1930,
10337,
715,
7335,
1767,
628,
18551,
1371,
6738,
18,
771,
1930,
5542,
1133,
16,
5542,
628,
18551,
1371,
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,
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,
1842,
67,
5902,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
11213,
18,
771,
1930,
10337,
715,
7335,
1767,
628,
18551,
1371,
6738,
18,
771,
1930,
5542,
1133,
16,
5542,
628,
18551,
1371,
6... |
for idx in range(bnd_descr.NumberOfModuleForwarderRefs): | for idx in xrange(bnd_descr.NumberOfModuleForwarderRefs): | def parse_directory_bound_imports(self, rva, size): """""" bnd_descr = Structure(self.__IMAGE_BOUND_IMPORT_DESCRIPTOR_format__) bnd_descr_size = bnd_descr.sizeof() start = rva bound_imports = [] while True: | 21cbdaf9ea57ad8ceb3b39cbd606211597c127d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/213/21cbdaf9ea57ad8ceb3b39cbd606211597c127d9/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
5149,
67,
3653,
67,
21350,
12,
2890,
16,
5633,
69,
16,
963,
4672,
3536,
8395,
225,
324,
4880,
67,
28313,
273,
13348,
12,
2890,
16186,
13603,
67,
19318,
67,
20445,
67,
1639,
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,
1109,
67,
5149,
67,
3653,
67,
21350,
12,
2890,
16,
5633,
69,
16,
963,
4672,
3536,
8395,
225,
324,
4880,
67,
28313,
273,
13348,
12,
2890,
16186,
13603,
67,
19318,
67,
20445,
67,
1639,
2... |
pass | continue try: if (flags & poll.POLLIN): obj.handle_read_event() if (flags & poll.POLLOUT): obj.handle_write_event() except ExitNow: raise ExitNow except: obj.handle_error() | def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.items(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.append ((... | 6ec9a36faf1d29062539bc654358e730395c377e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6ec9a36faf1d29062539bc654358e730395c377e/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
309,
2021,
353,
486,
599,
30,
468,
2021,
353,
316,
10993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
309,
2021,
353,
486,
599,
30,
468,
2021,
353,
316,
10993,
... |
return [_User(self, userid=rawuser['id'], real_name=rawuser['real_name'], email=rawuser['email'], name=rawuser['name'], can_login=rawuser['can_login']) | return [_User(self, userid=rawuser['id'], name=rawuser['name'], real_name=rawuser.get('real_name', ''), email=rawuser.get('email', rawuser['name']), can_login=rawuser.get('can_login', False)) | def searchusers(self, pattern): '''Return a bugzilla User for the given list of patterns | 28e9be667eab00f94e7d6720a359970f21848175 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5050/28e9be667eab00f94e7d6720a359970f21848175/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
5577,
12,
2890,
16,
1936,
4672,
9163,
990,
279,
7934,
15990,
2177,
364,
326,
864,
666,
434,
6884,
2,
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,
1623,
5577,
12,
2890,
16,
1936,
4672,
9163,
990,
279,
7934,
15990,
2177,
364,
326,
864,
666,
434,
6884,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.pkg_data = neon_stats[0] | self.pkg_data = copy.deepcopy(neon_stats[0]) | def CheckpkgTest(self): self.pkg_data = neon_stats[0] self.pkg_data["pkgmap"].append({ "class": "none", "type": "f", "line": "", "user": "root", "group": "bin", "mode": '0755', "path": "/opt/csw/share/doc/alien/random_file", }) | 21125b0b6f9fe81882a7200666d079dd9c091766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3137/21125b0b6f9fe81882a7200666d079dd9c091766/package_checks_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
10657,
4709,
12,
2890,
4672,
365,
18,
10657,
67,
892,
273,
1610,
18,
16589,
3530,
12,
4644,
265,
67,
5296,
63,
20,
5717,
365,
18,
10657,
67,
892,
9614,
10657,
1458,
6,
8009,
6923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2073,
10657,
4709,
12,
2890,
4672,
365,
18,
10657,
67,
892,
273,
1610,
18,
16589,
3530,
12,
4644,
265,
67,
5296,
63,
20,
5717,
365,
18,
10657,
67,
892,
9614,
10657,
1458,
6,
8009,
6923... |
self.quick_error("Your Audioscrobbler login data is incorrect, so you must re-enter it before any songs will be submitted.\n\nThis message will not be shown again.") | self.quick_dialog("Your Audioscrobbler login data is incorrect, so you must re-enter it before any songs will be submitted.\n\nThis message will not be shown again.", gtk.MESSAGE_ERROR) | def submit_song_helper(self): enabled = getattr(self, 'PMEnFlag', False) if enabled and self.disabled: print "Plugin re-enabled - accepting new songs." self.disabled = False if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 elif not enabled and not self.disabled: #if we'... | 2370bf2e3faa6a570880e6644b18436a90e05433 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/2370bf2e3faa6a570880e6644b18436a90e05433/qlscrobbler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
3696,
273,
3869,
12,
2890,
16,
296,
12728,
664,
4678,
2187,
1083,
13,
309,
3696,
471,
365,
18,
9278,
30,
1172,
315,
3773,
283,
17,
5745,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
3696,
273,
3869,
12,
2890,
16,
296,
12728,
664,
4678,
2187,
1083,
13,
309,
3696,
471,
365,
18,
9278,
30,
1172,
315,
3773,
283,
17,
5745,
... |
entry['link'] = unQuoteReQuote( entry['enclosures'][0]['href'] ) | entry['link']=unQuoteReQuote(entry['enclosures'][0]['href']) | def rssparse(tName): u"""loops through the rss feed, searching for downloadable files""" page = None try: page = downloader(getConfig()['threads'][tName]['link']) except (urllib2.HTTPError, urllib2.URLError, httplib.HTTPException, ), m: logging.critical( unicodeC(m) + os.linesep + u'error grabbing url %s' % getConfig()... | aa11d3f8fe168518d7313c399977dafe31dfa605 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/aa11d3f8fe168518d7313c399977dafe31dfa605/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18817,
2670,
12,
88,
461,
4672,
582,
8395,
383,
4473,
3059,
326,
18817,
4746,
16,
15300,
364,
4224,
429,
1390,
8395,
1363,
273,
599,
775,
30,
1363,
273,
28122,
12,
588,
809,
1435,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18817,
2670,
12,
88,
461,
4672,
582,
8395,
383,
4473,
3059,
326,
18817,
4746,
16,
15300,
364,
4224,
429,
1390,
8395,
1363,
273,
599,
775,
30,
1363,
273,
28122,
12,
588,
809,
1435,
3292,
... |
self.initialize(1) | self.initialize(True) | def loadFromXML(self, template): self.initialize(1) self.OutfitName.clear() racename = '' classname = '' self.outfitlist = [] self.outfitnumbering = 1 self.currentOutfit = 0 self.itemnumbering = 1 itemdefault = self.itemattrlist.copy() for child in template.childNodes: if child.nodeType == Node.TEXT_NODE: continue if c... | cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24935,
4201,
12,
2890,
16,
1542,
4672,
365,
18,
11160,
12,
5510,
13,
365,
18,
1182,
7216,
461,
18,
8507,
1435,
767,
71,
1069,
273,
875,
7479,
273,
875,
365,
18,
659,
7216,
1098,
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,
24935,
4201,
12,
2890,
16,
1542,
4672,
365,
18,
11160,
12,
5510,
13,
365,
18,
1182,
7216,
461,
18,
8507,
1435,
767,
71,
1069,
273,
875,
7479,
273,
875,
365,
18,
659,
7216,
1098,
273,
... |
meta = '\n <meta name="aesop" content="%s">' | meta = '<meta name="aesop" content="%s">\n ' % self.aesop_type | def get_header(self): s = HEAD % self.variables if self.uplink: if self.uptitle: link = ('<link rel="up" href="%s" title="%s">' % (self.uplink, self.uptitle)) else: link = '<link rel="up" href="%s">' % self.uplink repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) if self.aesop_type: meta = '\n <meta name... | 33411ce685a5a992dd895ae9f82908e38a9aa11d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/33411ce685a5a992dd895ae9f82908e38a9aa11d/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3374,
12,
2890,
4672,
272,
273,
14792,
738,
365,
18,
7528,
309,
365,
18,
89,
20157,
30,
309,
365,
18,
3648,
1280,
30,
1692,
273,
7707,
32,
1232,
1279,
1546,
416,
6,
3897,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3374,
12,
2890,
4672,
272,
273,
14792,
738,
365,
18,
7528,
309,
365,
18,
89,
20157,
30,
309,
365,
18,
3648,
1280,
30,
1692,
273,
7707,
32,
1232,
1279,
1546,
416,
6,
3897,
11... |
self.attrShapeCombo = OWGUI.comboBox(self.GeneralTab, self, "attrShape", "Shape", callback = self.updateGraph, sendSelectedValue=1, valueType = str, emptyString = "(Same shape)") | self.attrShapeCombo = OWGUI.comboBox(box, self, "attrShape", label = "Point shape:", callback = self.updateGraph, sendSelectedValue=1, valueType = str, emptyString = "(Same shape)", indent = 10) | def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Scatter Plot", TRUE) | 067282b63a653595095eebe32ec342b08f0f88b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/067282b63a653595095eebe32ec342b08f0f88b0/OWScatterPlot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
1541,
9293,
15211,
3113,
5383,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
1541,
9293,
15211,
3113,
5383,
... |
``$SAGE_ROOT/devel/sage/``. | ``$SAGE_ROOT/devel/sage/``. In the command-line interface, each line of the results has the form ``filename:num:line of code``, where ``num`` is the line number in ``filename`` and ``line of code`` is the line that matched your search terms. | def search_src(string, extra1='', extra2='', extra3='', extra4='', extra5='', interact=True, path_re='', module='sage'): r""" Search Sage library source code for lines containing ``string``. The search is not case sensitive. INPUT: - ``string`` - a string to find in the Sage source code. - ``extra1``, ..., ``extra5`... | 5e7b167c4801a7e6d8f8bbd7c6c716de90f78d85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/5e7b167c4801a7e6d8f8bbd7c6c716de90f78d85/sagedoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4816,
12,
1080,
16,
2870,
21,
2218,
2187,
2870,
22,
2218,
2187,
2870,
23,
2218,
2187,
2870,
24,
2218,
2187,
2870,
25,
2218,
2187,
16592,
33,
5510,
16,
589,
67,
266,
2218,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
12,
1080,
16,
2870,
21,
2218,
2187,
2870,
22,
2218,
2187,
2870,
23,
2218,
2187,
2870,
24,
2218,
2187,
2870,
25,
2218,
2187,
16592,
33,
5510,
16,
589,
67,
266,
2218,
218... |
writestr += fix_capitals(expanded) | writestr += expanded | def process_str(allstr): newstr = allstr.lower() writestr = _head struct = parse_structure(newstr) # return a (sorted) list of tuples for each function or subroutine # each tuple is the start and end of a subroutine or function to be expanded oldend = 0 for sub in struct: writestr += fix_capitals(newstr[oldend:sub[... | f42b743431beed95b0b354e091133b66aecd50f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f42b743431beed95b0b354e091133b66aecd50f0/from_template.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
701,
12,
454,
701,
4672,
394,
701,
273,
777,
701,
18,
8167,
1435,
7262,
313,
273,
389,
1978,
225,
1958,
273,
1109,
67,
7627,
12,
2704,
701,
13,
468,
225,
327,
279,
261,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
67,
701,
12,
454,
701,
4672,
394,
701,
273,
777,
701,
18,
8167,
1435,
7262,
313,
273,
389,
1978,
225,
1958,
273,
1109,
67,
7627,
12,
2704,
701,
13,
468,
225,
327,
279,
261,
103... |
if not mod.certificate: | if not mod.certificateor or not mod.certificate.isdigit(): | def check(self, cr, uid, ids, context=None): logger = netsvc.Logger() for mod in self.browse(cr, uid, ids, context=context): if not mod.description: logger.notifyChannel("init", netsvc.LOG_WARNING, 'module %s: description is empty !' % (mod.name,)) | 744ed56871c23e41760a35f36f4424bb374253b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/744ed56871c23e41760a35f36f4424bb374253b1/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33... |
if runner is not None: default_builder.runner = getattr(default_builder, runner) | def setup(builder=None, default=None, runner=None, **kwargs): """ Setup the default Builder (or an instance of given builder if "builder" is not None) with the same keyword arguments as for Builder(). Also: "default" is the name of the default function to run when the build script is run with no command line arguments... | 35a4c940cd25ac86249d9109056febf30a36afd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7381/35a4c940cd25ac86249d9109056febf30a36afd7/fabricate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
9574,
33,
7036,
16,
805,
33,
7036,
16,
8419,
33,
7036,
16,
2826,
4333,
4672,
3536,
10939,
326,
805,
5008,
261,
280,
392,
791,
434,
864,
2089,
309,
315,
9574,
6,
353,
486,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
9574,
33,
7036,
16,
805,
33,
7036,
16,
8419,
33,
7036,
16,
2826,
4333,
4672,
3536,
10939,
326,
805,
5008,
261,
280,
392,
791,
434,
864,
2089,
309,
315,
9574,
6,
353,
486,
5... | |
""" | r""" | def FuzzyBallGraph(self, partition, q): """ Construct a Fuzzy Ball graph with the integer partition ``partition`` and ``q`` extra vertices. | bc77de9d8a98331408f7c80e4369cfcbc2896fa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bc77de9d8a98331408f7c80e4369cfcbc2896fa2/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
478,
13903,
38,
454,
4137,
12,
2890,
16,
3590,
16,
1043,
4672,
436,
8395,
14291,
279,
478,
13903,
605,
454,
2667,
598,
326,
3571,
3590,
12176,
10534,
10335,
471,
12176,
85,
10335,
2870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
13903,
38,
454,
4137,
12,
2890,
16,
3590,
16,
1043,
4672,
436,
8395,
14291,
279,
478,
13903,
605,
454,
2667,
598,
326,
3571,
3590,
12176,
10534,
10335,
471,
12176,
85,
10335,
2870,
... |
except ValueError: print "Cannot extract second residue number in residue range." r_range.append([chain_first,residue_number_first, chain_second,residue_number_second]) | except: raise ValueError, "Cannot extract second residue number in residue range: %s\n %s"%( file_name, rec) return [] if(chain_first.strip() == chain_second.strip() and residue_number_first > residue_number_second): raise ValueError, \ "residue_number_first > residue_number_second, %s\n%s"%( file_name,rec) return [] ... | def extract_tls_parameters(remark_3_records): | c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sizer.Add(gridSizer, 1, wxEXPAND, 0) | sizer.Add(gridSizer, 0, wxALL, 0) | def __init__(self, parent, title): wxDialog.__init__(self, parent, -1, title) | 1d19ce5cb35cf6ceaf0d05c89edb9c29531b82e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10056/1d19ce5cb35cf6ceaf0d05c89edb9c29531b82e7/dialoglineup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
4672,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
13,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
4672,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
basicsize = h + l + p + l + p + usize * (len(s) + 1) | basicsize = size(h + 'PPlP') + usize * (len(s) + 1) | def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_s... | 9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
2352,
12,
2890,
4672,
277,
273,
365,
18,
77,
328,
273,
365,
18,
80,
293,
273,
365,
18,
84,
366,
273,
365,
18,
2485,
554,
468,
2065,
365,
18,
1893,
67,
1467,
792,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9371,
2352,
12,
2890,
4672,
277,
273,
365,
18,
77,
328,
273,
365,
18,
80,
293,
273,
365,
18,
84,
366,
273,
365,
18,
2485,
554,
468,
2065,
365,
18,
1893,
67,
1467,
792,
23... |
for i in all_inc_macros: | for i in it.all_inc_macros: | def verify(): all_errors_found = 0 | 9e249a6dacfafcde61ac83d5cd8becc030ac159f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13644/9e249a6dacfafcde61ac83d5cd8becc030ac159f/eagle3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
13332,
777,
67,
4324,
67,
7015,
273,
374,
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... | [
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
13332,
777,
67,
4324,
67,
7015,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if not new_password: | if new_password is None: | def block_account(conn): if not options.account_host: verbose("Will act on all hosts for user %s" % options.account_user) cursor = conn.cursor(MySQLdb.cursors.DictCursor) query = "SELECT user,host,password FROM mysql.user WHERE user='%s'" % options.account_user if options.account_host: query += " AND host='%s'" % opti... | 979a3e49b4889833a695a6c9420d683ee3f9778a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10338/979a3e49b4889833a695a6c9420d683ee3f9778a/oak-block-account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
4631,
12,
4646,
4672,
309,
486,
702,
18,
4631,
67,
2564,
30,
3988,
2932,
13670,
1328,
603,
777,
7206,
364,
729,
738,
87,
6,
738,
702,
18,
4631,
67,
1355,
13,
225,
3347,
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,
1203,
67,
4631,
12,
4646,
4672,
309,
486,
702,
18,
4631,
67,
2564,
30,
3988,
2932,
13670,
1328,
603,
777,
7206,
364,
729,
738,
87,
6,
738,
702,
18,
4631,
67,
1355,
13,
225,
3347,
273... |
elif canv._pagesize != doc.pagesize: | elif cp != dp: | def checkPageSize(self,canv,doc): '''This gets called by the template framework''' if canv._pagesize != self.pagesize: if self.pagesize: canv.setPageSize(self.pagesize) elif canv._pagesize != doc.pagesize: canv.setPageSize(doc.pagesize) | 5768eee302fd8f69f45f55735f45656ba2302bb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/5768eee302fd8f69f45f55735f45656ba2302bb8/doctemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,... |
cname = {} cname['name'] = ch['name'] | cname = {} cname['name'] = ch['name'][:18] | def radar(self, **kw): item_ids = kw.get('ids') item_ids = item_ids and eval(str(item_ids)) parent_name = kw.get('factor_name') parent_name = parent_name.replace('@', '&') proxy_factor = rpc.RPCProxy('comparison.factor') child_name = [] child_ids = [] if parent_name == 'Summary': list = proxy_factor.search([('pare... | 1dc6849ae772e7a0a627bb7e87befb45f0bd596f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/1dc6849ae772e7a0a627bb7e87befb45f0bd596f/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6719,
297,
12,
2890,
16,
2826,
9987,
4672,
225,
761,
67,
2232,
273,
5323,
18,
588,
2668,
2232,
6134,
761,
67,
2232,
273,
761,
67,
2232,
471,
5302,
12,
701,
12,
1726,
67,
2232,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6719,
297,
12,
2890,
16,
2826,
9987,
4672,
225,
761,
67,
2232,
273,
5323,
18,
588,
2668,
2232,
6134,
761,
67,
2232,
273,
761,
67,
2232,
471,
5302,
12,
701,
12,
1726,
67,
2232,
3719,
... |
AND %s_wf_category != '' GROUP BY %s_wf_category ORDER BY blocks_sum DESC LIMIT 10""" \ % (4 * (self.__vendor_name,)) | AND %s_wf_category != ''""" % (3 * (self.__vendor_name,)) if host: query = query + " AND hname = %s" elif user: query = query + " AND uid = %s" query += """\ GROUP BY %s_wf_category ORDER BY blocks_sum DESC LIMIT 10\ """ % self.__vendor_name | def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None | 23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
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,
1,
1,
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,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-1... |
allEvents, end, 'recurrenceEnd', endIndex, | masterEvents, end, 'recurrenceEnd', endIndex, | def recurringEventsInRange(view, start, end, filterColl = None, dayItems = True, timedItems = True): """ Yield all recurring events between start and end that appear in filterColl. """ tzprefs = schema.ns('osaf.app', view).TimezonePrefs if tzprefs.showUI: startIndex = 'effectiveStart' endIndex = 'recurrenceEnd' else... | 1a48e38823ec1a58d6216ddea1e419cff6ee2ede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1a48e38823ec1a58d6216ddea1e419cff6ee2ede/Calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26043,
3783,
25277,
12,
1945,
16,
787,
16,
679,
16,
1034,
13535,
273,
599,
16,
2548,
3126,
273,
1053,
16,
7491,
3126,
273,
1053,
4672,
3536,
31666,
777,
26043,
2641,
3086,
787,
471,
679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26043,
3783,
25277,
12,
1945,
16,
787,
16,
679,
16,
1034,
13535,
273,
599,
16,
2548,
3126,
273,
1053,
16,
7491,
3126,
273,
1053,
4672,
3536,
31666,
777,
26043,
2641,
3086,
787,
471,
679,... |
ba <a|w|e> <1|2|4|8> <address> [thread] - set hardware breakpoint | [~thread] ba <a|w|e> <1|2|4|8> <address> - set hardware breakpoint | def do_ba(self, arg): """ ba <a|w|e> <1|2|4|8> <address> [thread] - set hardware breakpoint """ if not self.lastEvent: raise CmdError, "no process is being debugged" debug = self.lastEvent.debug token_list = self.split_tokens(arg, 3, 4) access = token_list[0].lower() size = token_list[1] address = token_list[2] if ... | 95edb553305e95a1ded0ce46aa595556f55c8dbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/95edb553305e95a1ded0ce46aa595556f55c8dbe/pdebug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
12124,
12,
2890,
16,
1501,
4672,
3536,
306,
98,
5930,
65,
9846,
411,
69,
96,
91,
96,
73,
34,
411,
21,
96,
22,
96,
24,
96,
28,
34,
411,
2867,
34,
300,
444,
16251,
18820,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12124,
12,
2890,
16,
1501,
4672,
3536,
306,
98,
5930,
65,
9846,
411,
69,
96,
91,
96,
73,
34,
411,
21,
96,
22,
96,
24,
96,
28,
34,
411,
2867,
34,
300,
444,
16251,
18820,
... |
snmpNotifyFilterEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterEntry') tblIdx3 = snmpNotifyFilterProfileEntry.getInstIdFromIndices(profileName) | if filterSubtree: snmpNotifyFilterEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterEntry') tblIdx3 = snmpNotifyFilterEntry.getInstIdFromIndices( profileName, filterSubtree ) else: snmpNotifyFilterEntry = tblIdx3 = None | def __cookNotificationTargetInfo(snmpEngine, notificationName, paramsName): snmpNotifyEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyEntry') tblIdx1 = snmpNotifyEntry.getInstIdFromIndices( notificationName ) snmpNotifyFilterProfileEntry, = snmpEngine.... | 7dfad80e5e6161ff385f2a932b0de0b0bc82af59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/7dfad80e5e6161ff385f2a932b0de0b0bc82af59/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
29854,
4386,
2326,
966,
12,
26527,
4410,
16,
3851,
461,
16,
859,
461,
4672,
15366,
9168,
1622,
16,
273,
15366,
4410,
18,
3576,
1876,
52,
2544,
40,
1752,
18,
81,
495,
382,
701,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29854,
4386,
2326,
966,
12,
26527,
4410,
16,
3851,
461,
16,
859,
461,
4672,
15366,
9168,
1622,
16,
273,
15366,
4410,
18,
3576,
1876,
52,
2544,
40,
1752,
18,
81,
495,
382,
701,
37... |
done = 0 incoming = '' while not done: c = self.read(1, local_timeout) | while 1: c = self.read(1, timeout) | def expect_eof(self, local_timeout = None): '''This reads from the child until the end of file is found. A timeout exception may be thrown. ''' try: done = 0 incoming = '' while not done: c = self.read(1, local_timeout) incoming = incoming + c except EOF, e: pass | a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
9339,
12,
2890,
16,
1191,
67,
4538,
273,
599,
4672,
9163,
2503,
6838,
628,
326,
1151,
3180,
326,
679,
434,
585,
353,
1392,
18,
432,
2021,
1520,
2026,
506,
6718,
18,
9163,
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,
4489,
67,
9339,
12,
2890,
16,
1191,
67,
4538,
273,
599,
4672,
9163,
2503,
6838,
628,
326,
1151,
3180,
326,
679,
434,
585,
353,
1392,
18,
432,
2021,
1520,
2026,
506,
6718,
18,
9163,
775... |
"Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller." | """ Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller. """ | def glCallList(self, listname): "Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller." ##e in future, could merge successive calls into one call of multiple lists ## assert not self.compiling_displist # redundant with OpenGL only if we have no bugs in m... | 9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5118,
1477,
682,
12,
2890,
16,
666,
529,
4672,
3536,
16143,
279,
745,
358,
326,
864,
2562,
666,
18,
3609,
30,
4486,
555,
6728,
471,
1281,
2870,
11093,
353,
29353,
434,
4894,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5118,
1477,
682,
12,
2890,
16,
666,
529,
4672,
3536,
16143,
279,
745,
358,
326,
864,
2562,
666,
18,
3609,
30,
4486,
555,
6728,
471,
1281,
2870,
11093,
353,
29353,
434,
4894,
18,
3536,
... |
quotedString = re.compile("[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"") | def doProduction(lhs): global branchTable if lhs is BNF.void: print "\nvoid" return if lhs is BNF.eof: print "\nEOF" return if isinstance(lhs, Literal): literalTerminals[lhs.value()] = 1 | a069dbeddd5ec63ef002105ed0c2481a29043eff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a069dbeddd5ec63ef002105ed0c2481a29043eff/predictiveParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
31590,
12,
80,
4487,
4672,
2552,
3803,
1388,
309,
8499,
353,
605,
26473,
18,
6459,
30,
1172,
1548,
82,
6459,
6,
327,
309,
8499,
353,
605,
26473,
18,
9339,
30,
1172,
1548,
82,
1270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31590,
12,
80,
4487,
4672,
2552,
3803,
1388,
309,
8499,
353,
605,
26473,
18,
6459,
30,
1172,
1548,
82,
6459,
6,
327,
309,
8499,
353,
605,
26473,
18,
9339,
30,
1172,
1548,
82,
1270... | |
u'Redirect target %s is also a redirect! Won\'t delete anything.' % targetPage.aslink()) | u'Redirect target %s is also a redirect! Won\'t delete anything.' % targetPage.aslink()) | def delete_1_broken_redirect(self, redir_name, reason): redir_page = wikipedia.Page(self.site, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir_page.title()) try: targetPage = redir_page.getRedirectTarget()... | c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
21,
67,
70,
19906,
67,
7590,
12,
2890,
16,
283,
1214,
67,
529,
16,
3971,
4672,
283,
1214,
67,
2433,
273,
21137,
18,
1964,
12,
2890,
18,
4256,
16,
283,
1214,
67,
529,
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,
1430,
67,
21,
67,
70,
19906,
67,
7590,
12,
2890,
16,
283,
1214,
67,
529,
16,
3971,
4672,
283,
1214,
67,
2433,
273,
21137,
18,
1964,
12,
2890,
18,
4256,
16,
283,
1214,
67,
529,
13,
... |
p = NLP(self.f, p0, maxIter = 1e3, maxFunEvals = 1e3, h=self.h, A=Alt, b=blt, df=self.df, dh=self.dh) | p = NLP(self.f, p0, maxIter = 1e3, maxFunEvals = 1e3, h=self.h, df=self.df, dh=self.dh, ftol = 1e-4, xtol = 1e-4, contol=1e-4) | def runOptimization(self, plot=True): """Start/run optimization procedure and the optimum.""" grid = self.get_grid() model = self.get_model() # Initial try p0 = self.get_p0() # Less than (-0.5 < u < 1) # TODO: These are currently hard coded. They shouldn't be. NLT = len(grid) Alt = N.zeros( (NLT, len(p0)) ) Alt[:len(... | 9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13930,
1588,
12,
2890,
16,
3207,
33,
5510,
4672,
3536,
1685,
19,
2681,
14850,
12131,
471,
326,
2153,
2422,
12123,
3068,
273,
365,
18,
588,
67,
5222,
1435,
938,
273,
365,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13930,
1588,
12,
2890,
16,
3207,
33,
5510,
4672,
3536,
1685,
19,
2681,
14850,
12131,
471,
326,
2153,
2422,
12123,
3068,
273,
365,
18,
588,
67,
5222,
1435,
938,
273,
365,
18,
588,
... |
sage: gap.eval('LoadPackage("hap")') 'true' | def cohomology(self, n, p = 0): r""" Computes the group cohomology H_n(G, F), where F = Z if p=0 and F = Z/pZ if p >0 is a prime. Wraps HAP's GroupHomology function, written by Graham Ellis. | 7e70470bef4bac672ba9ce6e3a3dcc9c3e341499 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7e70470bef4bac672ba9ce6e3a3dcc9c3e341499/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
670,
67,
82,
12,
43,
16,
478,
3631,
1625,
478,
273,
2285,
309,
293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
670,
67,
82,
12,
43,
16,
478,
3631,
1625,
478,
273,
2285,
309,
293,
... | |
if self.transparency and self.image.mode not in ("LA", "RGBA"): self.image.putalpha(Image.new("L", self.image_size, 255)); | def __init__ (self, name, file = None, filebounds = "-180,-90,180,90", transparency = False, scaling = "nearest", **kwargs): import Image MetaLayer.__init__(self, name, **kwargs) self.file = file self.filebounds = map(float,filebounds.split(",")) self.image = Image.open(self.file) self.image_size = self.image.size s... | 0f87fd59bddc3f108a2ded46b8c934ba63e54035 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6188/0f87fd59bddc3f108a2ded46b8c934ba63e54035/Layer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
508,
16,
585,
273,
599,
16,
585,
10576,
273,
3701,
18278,
16,
17,
9349,
16,
18278,
16,
9349,
3113,
27472,
273,
1083,
16,
10612,
273,
315,
25785,
3113,
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,
1001,
2738,
972,
261,
2890,
16,
508,
16,
585,
273,
599,
16,
585,
10576,
273,
3701,
18278,
16,
17,
9349,
16,
18278,
16,
9349,
3113,
27472,
273,
1083,
16,
10612,
273,
315,
25785,
3113,
2... | |
self.__tracker.gain -= 1 | self.__tracker.gain -= 5 | def onKeyUp(self, Event): if Event.keystring == "a": self.__tracker.threshold += 1 print "Threshold: ", self.__tracker.threshold elif Event.keystring == "y": self.__tracker.threshold -= 1 print "Threshold: ", self.__tracker.threshold elif Event.keystring == "s": self.__tracker.brightness += 5 print "Brightness: ", self... | 32c6d30b38b70a4a13cdb2c0fe854dd158aeaa21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7300/32c6d30b38b70a4a13cdb2c0fe854dd158aeaa21/TestTracking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
653,
1211,
12,
2890,
16,
2587,
4672,
309,
2587,
18,
856,
1080,
422,
315,
69,
6877,
365,
16186,
16543,
18,
8699,
1011,
404,
1172,
315,
7614,
30,
3104,
365,
16186,
16543,
18,
8699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
653,
1211,
12,
2890,
16,
2587,
4672,
309,
2587,
18,
856,
1080,
422,
315,
69,
6877,
365,
16186,
16543,
18,
8699,
1011,
404,
1172,
315,
7614,
30,
3104,
365,
16186,
16543,
18,
8699,
... |
for k, v in [('Detect Language', 'auto'), ('Gaelic', 'ga'), ('Chinese (Traditional)', 'zh-TW'), ('Chinese (Simplified)', 'zh-CN')]: d[k] = v | name_code.update([('Detect Language', 'auto'), ('Chinese', 'zh-CN'), ('Gaelic', 'ga'), ('Korean', 'ko')]) | def update_languages(self): ''' Naively try to determine if new languages are available by scraping http://translate.google.com ''' | 7b0bb72c6a8b513b9417016274c5d446dca7bd3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/7b0bb72c6a8b513b9417016274c5d446dca7bd3b/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
14045,
12,
2890,
4672,
9163,
16350,
4492,
775,
358,
4199,
309,
394,
8191,
854,
2319,
635,
888,
1266,
310,
1062,
2207,
13929,
18,
9536,
18,
832,
9163,
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,
0,
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,
1089,
67,
14045,
12,
2890,
4672,
9163,
16350,
4492,
775,
358,
4199,
309,
394,
8191,
854,
2319,
635,
888,
1266,
310,
1062,
2207,
13929,
18,
9536,
18,
832,
9163,
2,
-100,
-100,
-100,
-100,... |
self.assert_(msg.get_sequences() == ['flagged', 'foobar']) | self.assertEqual(msg.get_sequences(), ['flagged', 'foobar']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') se... | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... |
print 'Failed to download TiersOfATLASCache.py' | logger.warning('Failed to download TiersOfATLASCache.py') | def getTiersOfATLASCache(): """Download TiersOfATLASCache.py""" url = 'http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/project/ddm/releases/TiersOfATLASCache.py' local = os.path.join(os.environ['PWD'],'TiersOfATLASCache.py') try: urllib.urlretrieve(url, local) except IOError: print 'Failed to download TiersOfATLASCache... | ad984b56cdc008f13cd574a924fd1ecab2076a7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/ad984b56cdc008f13cd574a924fd1ecab2076a7d/NG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
20778,
951,
789,
2534,
55,
1649,
13332,
3536,
7109,
399,
20778,
951,
789,
2534,
55,
1649,
18,
2074,
8395,
225,
880,
273,
296,
2505,
2207,
270,
9521,
18,
4875,
18,
14770,
18,
343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3181,
20778,
951,
789,
2534,
55,
1649,
13332,
3536,
7109,
399,
20778,
951,
789,
2534,
55,
1649,
18,
2074,
8395,
225,
880,
273,
296,
2505,
2207,
270,
9521,
18,
4875,
18,
14770,
18,
343,
... |
self.__buf = '' | self.__buf = _StringIO() | def reset(self): self.__buf = '' | 29e09f2f7b2b2dd2a5752b80f232162592e5fc26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/29e09f2f7b2b2dd2a5752b80f232162592e5fc26/xdrlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
16186,
4385,
273,
875,
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,
... | [
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
16186,
4385,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.stop() | reactor.callFromThread(self.stop) | def _run(self): """This should only be called from a pool thread""" self.runlock.acquire() try: if self.subject.run(): # can stop by returning false if self.running: reactor.callFromThread(self.reschedule) else: self.stop() finally: self.runlock.release() | 98ed3cf358897a13e6cf7adbf42aa7746e4f0c35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/98ed3cf358897a13e6cf7adbf42aa7746e4f0c35/startup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
4672,
3536,
2503,
1410,
1338,
506,
2566,
628,
279,
2845,
2650,
8395,
365,
18,
2681,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
7857,
18,
2681,
13332,
468,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
12,
2890,
4672,
3536,
2503,
1410,
1338,
506,
2566,
628,
279,
2845,
2650,
8395,
365,
18,
2681,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
7857,
18,
2681,
13332,
468,
8... |
patchFile("scripts/postflight.patch-profile", fn) os.chmod(fn, 0755) | patchScript("scripts/postflight.patch-profile", fn) | def main(): # First parse options and check if we can perform our work parseOptions() checkEnvironment() os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.3' if os.path.exists(WORKDIR): shutil.rmtree(WORKDIR) os.mkdir(WORKDIR) # Then build third-party libraries such as sleepycat DB4. buildLibraries() # Now build python ... | 3da2212820b49f5f0c2025c97ef1b529debb807c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/3da2212820b49f5f0c2025c97ef1b529debb807c/build-installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5783,
1109,
702,
471,
866,
309,
732,
848,
3073,
3134,
1440,
1109,
1320,
1435,
866,
5494,
1435,
225,
1140,
18,
28684,
3292,
10875,
4618,
60,
67,
1639,
22971,
3212,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5783,
1109,
702,
471,
866,
309,
732,
848,
3073,
3134,
1440,
1109,
1320,
1435,
866,
5494,
1435,
225,
1140,
18,
28684,
3292,
10875,
4618,
60,
67,
1639,
22971,
3212,
67,
1... |
raise NotImplementedError('%s should implement redirect.' % self.__class__) | form = self.form_class(initial=self.get_initial(*args, **kwargs), **self.form_args) c = RequestContext(request, { 'form': form, 'success_message': self.success_message, 'pagemenu': self.pagemenu, }) return render_to_response(self.template_name, c) def get_success_message(self, *args, **kwargs): return None | def redirect(self, request, *args, **kwargs): raise NotImplementedError('%s should implement redirect.' % self.__class__) | 34a2e9c7044829a5a6cdb3f63c9be5a103290f99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12648/34a2e9c7044829a5a6cdb3f63c9be5a103290f99/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
2890,
16,
590,
16,
380,
1968,
16,
2826,
4333,
4672,
646,
273,
365,
18,
687,
67,
1106,
12,
6769,
33,
2890,
18,
588,
67,
6769,
30857,
1968,
16,
2826,
4333,
3631,
2826,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3136,
12,
2890,
16,
590,
16,
380,
1968,
16,
2826,
4333,
4672,
646,
273,
365,
18,
687,
67,
1106,
12,
6769,
33,
2890,
18,
588,
67,
6769,
30857,
1968,
16,
2826,
4333,
3631,
2826,
2890,
... |
self.sendTask(plugin_api.get_task()) | task = plugin_api.get_ui().get_task() self.sendTask(task) | def task_cb(self, widget, plugin_api): self.sendTask(plugin_api.get_task()) | 5e6fb402fb33286aae28aa13494dec55cd437832 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/5e6fb402fb33286aae28aa13494dec55cd437832/hamster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
67,
7358,
12,
2890,
16,
3604,
16,
1909,
67,
2425,
4672,
1562,
273,
1909,
67,
2425,
18,
588,
67,
4881,
7675,
588,
67,
4146,
1435,
365,
18,
4661,
2174,
12,
4146,
13,
282,
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,
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,
1562,
67,
7358,
12,
2890,
16,
3604,
16,
1909,
67,
2425,
4672,
1562,
273,
1909,
67,
2425,
18,
588,
67,
4881,
7675,
588,
67,
4146,
1435,
365,
18,
4661,
2174,
12,
4146,
13,
282,
2,
-100... |
nav_category = models.ForeignKey(NavBarCategory) | nav_category = models.ForeignKey(NavBarCategory, default=NavBarCategory.default) | def get_by_path__name(self, path, name): # This writes to file_db, and caches the *data retrieval* # It exists because the kernel filesystem caches are possibly better # for retrieving large (>=4KB) data chunks than PostgreSQL # See Mike Axiak's email to esp-webmasters@mit.edu on 2008-09-27 (around 12:35) # No user ID ... | acba273b56ed9a6ec662e58783a8a5602018088a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/acba273b56ed9a6ec662e58783a8a5602018088a/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1637,
67,
803,
972,
529,
12,
2890,
16,
589,
16,
508,
4672,
468,
1220,
7262,
358,
585,
67,
1966,
16,
471,
12535,
326,
380,
892,
22613,
14,
468,
2597,
1704,
2724,
326,
5536,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1637,
67,
803,
972,
529,
12,
2890,
16,
589,
16,
508,
4672,
468,
1220,
7262,
358,
585,
67,
1966,
16,
471,
12535,
326,
380,
892,
22613,
14,
468,
2597,
1704,
2724,
326,
5536,
6... |
if not (xc >= self.x + self.m_BorderLeft): | if xc < self.m_BorderLeft: | def value_from_x(self, xc): | 8266f3e7a480eb6b62c06787a109e6d21a27c094 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/8266f3e7a480eb6b62c06787a109e6d21a27c094/transfer_function_widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
67,
2080,
67,
92,
12,
2890,
16,
15192,
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,... | [
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
67,
2080,
67,
92,
12,
2890,
16,
15192,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return int(volume*10) | return int((volume*100) / self.max_playbin_volume) | def get_volume_playbin(self): """ playbin volume is a double from 0.0 - 10.0 """ volume = self.sink.get_property('volume') return int(volume*10) | 0fc5f370207fa1828fce237ae25cf479914de8e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/0fc5f370207fa1828fce237ae25cf479914de8e6/gstreamer_renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9491,
67,
1601,
4757,
12,
2890,
4672,
3536,
6599,
4757,
3940,
353,
279,
1645,
628,
374,
18,
20,
300,
1728,
18,
20,
3536,
3940,
273,
365,
18,
17074,
18,
588,
67,
4468,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9491,
67,
1601,
4757,
12,
2890,
4672,
3536,
6599,
4757,
3940,
353,
279,
1645,
628,
374,
18,
20,
300,
1728,
18,
20,
3536,
3940,
273,
365,
18,
17074,
18,
588,
67,
4468,
2668,
... |
@rtype: C{Deferred} @return: The callback of the C{Deferred} that is returned will be passed a string that represents the IP address of the specified name, or the errback will be called if the lookup times out. If multiple types of address records are associated with the name, A6 records will be returned in preference... | @rtype: L{twisted.internet.defer.Deferred} @return: The callback of the Deferred that is returned will be passed a string that represents the IP address of the specified name, or the errback will be called if the lookup times out. If multiple types of address records are associated with the name, A6 records will be re... | def getHostByName(self, name, timeout = 10): """Resolve the domain name C{name} into an IP address. | 61b27ac6b2779aeb25ead8677978334e2f000f50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/61b27ac6b2779aeb25ead8677978334e2f000f50/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8580,
5911,
12,
2890,
16,
508,
16,
2021,
273,
1728,
4672,
3536,
8460,
326,
2461,
508,
385,
95,
529,
97,
1368,
392,
2971,
1758,
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,
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,
8580,
5911,
12,
2890,
16,
508,
16,
2021,
273,
1728,
4672,
3536,
8460,
326,
2461,
508,
385,
95,
529,
97,
1368,
392,
2971,
1758,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if self.first_month != sys.maxint: | if self.first_month == sys.maxint: self._first_month = year * 12 + 1 else: | def add_year(self, year, data): if self.first_month != sys.maxint: # We have data already, so we may need to pad with missing months # Note: This assumes the series is a whole number of years. gap = year - self.last_year - 1 if gap > 0: self._series.extend([MISSING] * gap * 12) start_month = year * 12 + 1 self._first_m... | 83af3c60150aa563cfe55dc03e4746bd010145e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/83af3c60150aa563cfe55dc03e4746bd010145e9/giss_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6874,
12,
2890,
16,
3286,
16,
501,
4672,
309,
365,
18,
3645,
67,
7496,
422,
2589,
18,
1896,
474,
30,
365,
6315,
3645,
67,
7496,
273,
3286,
380,
2593,
397,
404,
469,
30,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
6874,
12,
2890,
16,
3286,
16,
501,
4672,
309,
365,
18,
3645,
67,
7496,
422,
2589,
18,
1896,
474,
30,
365,
6315,
3645,
67,
7496,
273,
3286,
380,
2593,
397,
404,
469,
30,
468,... |
self.dump_data(taskData) | def mark_active(listid, depth): """ Mark an item as active along with its depends (calls itself recursively) """ | 72924052cb7fb5a826b58a6fe3a60554ab53293e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/72924052cb7fb5a826b58a6fe3a60554ab53293e/runqueue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
67,
3535,
12,
1098,
350,
16,
3598,
4672,
3536,
6622,
392,
761,
487,
2695,
7563,
598,
2097,
10935,
261,
12550,
6174,
8536,
13,
3536,
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,
0,
0,
0,
0,
0,
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,
2267,
67,
3535,
12,
1098,
350,
16,
3598,
4672,
3536,
6622,
392,
761,
487,
2695,
7563,
598,
2097,
10935,
261,
12550,
6174,
8536,
13,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
results = self.otherClass.select(getattr(self.otherClass.q, pythonColumn) == inst.id) | results = self.otherClass.select( getattr(self.otherClass.q, pythonColumn) == inst.id, connection=conn ) | def performJoin(self, inst): pythonColumn = self.soClass.sqlmeta.style.dbColumnToPythonAttr(self.joinColumn) results = self.otherClass.select(getattr(self.otherClass.q, pythonColumn) == inst.id) if results.count() == 0: if not self.makeDefault: return None else: kw = {pythonColumn[:-2]: inst} # skipping the ID (from fo... | dad3b2974733ab27ba3da94460567dd9b7ca0cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/dad3b2974733ab27ba3da94460567dd9b7ca0cf8/joins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
4572,
12,
2890,
16,
1804,
4672,
5790,
1494,
273,
365,
18,
2048,
797,
18,
4669,
3901,
18,
4060,
18,
1966,
1494,
774,
15774,
3843,
12,
2890,
18,
5701,
1494,
13,
1686,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
4572,
12,
2890,
16,
1804,
4672,
5790,
1494,
273,
365,
18,
2048,
797,
18,
4669,
3901,
18,
4060,
18,
1966,
1494,
774,
15774,
3843,
12,
2890,
18,
5701,
1494,
13,
1686,
273,
365,
18,... |
0, 0, | int(debugWindowSize.x), int(debugWindowSize.y), | def __init__(self, appClass, resolution): self._AppClass = appClass resolution = Point2D(resolution) | 741494451774ec47a318d3f5a271298de58e7dea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/741494451774ec47a318d3f5a271298de58e7dea/AVGAppStarter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
797,
16,
7861,
4672,
365,
6315,
3371,
797,
273,
595,
797,
7861,
273,
4686,
22,
40,
12,
19182,
13,
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,
2738,
972,
12,
2890,
16,
595,
797,
16,
7861,
4672,
365,
6315,
3371,
797,
273,
595,
797,
7861,
273,
4686,
22,
40,
12,
19182,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
this = apply(_quickfix.new_ContraBroker, args) | this = _quickfix.new_ContraBroker(*args) | def __init__(self, *args): this = apply(_quickfix.new_ContraBroker, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
442,
2033,
11194,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
442,
2033,
11194,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
<td><input name="organisation"></td></tr> | <td><input name="organisation" value="%(organisation)s"></td></tr> | def login(self, message=None): self.pagehead('Login to roundup', message) self.write(''' | 085d354e85b8a858c41fdab4c799f10cf069bdd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/085d354e85b8a858c41fdab4c799f10cf069bdd2/cgi_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
883,
33,
7036,
4672,
365,
18,
2433,
1978,
2668,
5358,
358,
3643,
416,
2187,
883,
13,
365,
18,
2626,
2668,
6309,
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,
0,
0,
0,
0,
0,
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,
3925,
12,
2890,
16,
883,
33,
7036,
4672,
365,
18,
2433,
1978,
2668,
5358,
358,
3643,
416,
2187,
883,
13,
365,
18,
2626,
2668,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.