rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.data['synch_count'] = options.synch_count
if options.synch_count: self.data['synch_count'] = options.synch_count
def parse(self): flists = [('hosts', 'mlist', 'machine', False), ('jobname', '', '', True)] (options, leftover) = self.parse_with_flist(flists, req_items='jobname') self.data = {} if len(self.jobname) > 1: self.invalid_syntax('Too many arguments specified, only expected ' 'to receive job name: %s' % self.jobname) self....
7a0b5ed0b903b18af57396c4b0d583a4f7a0b8ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/7a0b5ed0b903b18af57396c4b0d583a4f7a0b8ee/job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 284, 9772, 273, 306, 2668, 11588, 2187, 296, 781, 376, 2187, 296, 9149, 2187, 1083, 3631, 7707, 4688, 529, 2187, 10226, 10226, 1053, 25887, 261, 2116, 16, 29709, 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, 1109, 12, 2890, 4672, 284, 9772, 273, 306, 2668, 11588, 2187, 296, 781, 376, 2187, 296, 9149, 2187, 1083, 3631, 7707, 4688, 529, 2187, 10226, 10226, 1053, 25887, 261, 2116, 16, 29709, 13, ...
self.tk.call(self._w, 'popdown')
self.tk.call(self._w, 'popdown')
def popdown(self):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 2378, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 2378, 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, -...
handler = root.get_handler('ui/ical_edit_event_form.xml')
handler = self.get_handler('/ui/ical_edit_event_form.xml')
def edit_event_form(self, context): context = get_context() root = context.root
bfc19d305f01f49281516d0514c6f873c1681f13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/bfc19d305f01f49281516d0514c6f873c1681f13/ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 2575, 67, 687, 12, 2890, 16, 819, 4672, 819, 273, 336, 67, 2472, 1435, 1365, 273, 819, 18, 3085, 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, 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, 3874, 67, 2575, 67, 687, 12, 2890, 16, 819, 4672, 819, 273, 336, 67, 2472, 1435, 1365, 273, 819, 18, 3085, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self._out.write('<?xml version="1.0" encoding="%s"?>\n' %
self._write('<?xml version="1.0" encoding="%s"?>\n' %
def startDocument(self): self._out.write('<?xml version="1.0" encoding="%s"?>\n' % self._encoding)
7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2519, 12, 2890, 4672, 365, 6315, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 11613, 87, 6, 35, 5333, 82, 11, 738, 365, 6315, 5999, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2519, 12, 2890, 4672, 365, 6315, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 11613, 87, 6, 35, 5333, 82, 11, 738, 365, 6315, 5999, 13, 2, -100, -100, -100, -100, -...
if USE_ZIPIMPORT:
if self.use_zipimport:
def findDependencies(self): self.message("Finding module dependencies", 1) import modulefinder mf = modulefinder.ModuleFinder(excludes=self.excludeModules) if USE_ZIPIMPORT: # zipimport imports zlib, must add it manually mf.import_hook("zlib") # manually add our own site.py site = mf.add_module("site") site.__code__ = ...
f2981883368f2180079a9b80dcff260cd5ab0ab8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/f2981883368f2180079a9b80dcff260cd5ab0ab8/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 8053, 12, 2890, 4672, 365, 18, 2150, 2932, 21358, 1605, 5030, 3113, 404, 13, 1930, 1605, 15356, 14749, 273, 1605, 15356, 18, 3120, 8441, 12, 338, 8993, 33, 2890, 18, 10157, 7782, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 8053, 12, 2890, 4672, 365, 18, 2150, 2932, 21358, 1605, 5030, 3113, 404, 13, 1930, 1605, 15356, 14749, 273, 1605, 15356, 18, 3120, 8441, 12, 338, 8993, 33, 2890, 18, 10157, 7782, 1...
num = ((85L**4) * c1) + ((85**3) * c2) + ((85**2) * c3) + (85*c4) + c5
num = (((85*c1+c2)*85+c3)*85+c4)*85L + (c5 +(0,0,0xFFFFFF,0xFFFF,0xFF)[remainder_size])
def _AsciiBase85Decode(input): """This is not used - Acrobat Reader decodes for you - but a round trip is essential for testing.""" outstream = cStringIO.StringIO() #strip all whitespace stripped = string.join(string.split(input),'') #check end assert stripped[-2:] == '~>', 'Invalid terminator for Ascii Base 85 Stream'...
6748d1bacd48f8a3352b590669847ada45ea1e8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/6748d1bacd48f8a3352b590669847ada45ea1e8d/pdfutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 21363, 2171, 7140, 6615, 12, 2630, 4672, 3536, 2503, 353, 486, 1399, 300, 12848, 303, 28260, 5393, 16889, 364, 1846, 300, 1496, 279, 3643, 20654, 353, 18518, 2001, 364, 7769, 12123, 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, 389, 21363, 2171, 7140, 6615, 12, 2630, 4672, 3536, 2503, 353, 486, 1399, 300, 12848, 303, 28260, 5393, 16889, 364, 1846, 300, 1496, 279, 3643, 20654, 353, 18518, 2001, 364, 7769, 12123, 5...
continue
if jobAdded: raise else: continue
# def _mergeGroupChanges -- main body begins here
0223d6f7d05140d026214019adb70b54ce59a7fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/0223d6f7d05140d026214019adb70b54ce59a7fa/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 389, 2702, 1114, 7173, 1493, 2774, 1417, 17874, 2674, 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, ...
[ 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, 468, 1652, 389, 2702, 1114, 7173, 1493, 2774, 1417, 17874, 2674, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for s in (f.subfield_sequence for f in r.get_fields('730')): for i in s: assert i[0].islower() other_titles.append(' '.join([i[1] for i in s])) for b in (f.subfield_sequence for f in r.get_fields('740')): other_titles.append(' '.join([d for c,d in b if c in 'apn']))
for f in r.get_fields('730'): other_titles.append(' '.join([j for i,j in f.subfield_sequence if i.islower()])) for f in r.get_fields('740'): other_titles.append(' '.join(specific_subtags(f, 'apn')))
def find_other_titles(r, edition): other_titles = [' '.join(f.contents['a']) for f in r.get_fields('246')] for s in (f.subfield_sequence for f in r.get_fields('730')): for i in s: assert i[0].islower() other_titles.append(' '.join([i[1] for i in s])) for b in (f.subfield_sequence for f in r.get_fields('740')): other_...
68efd80da2eb947c809faef4d36f59a51fa4a5d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/68efd80da2eb947c809faef4d36f59a51fa4a5d3/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3011, 67, 17643, 12, 86, 16, 28432, 4672, 1308, 67, 17643, 273, 10228, 2418, 5701, 12, 74, 18, 3980, 3292, 69, 19486, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 3247, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3011, 67, 17643, 12, 86, 16, 28432, 4672, 1308, 67, 17643, 273, 10228, 2418, 5701, 12, 74, 18, 3980, 3292, 69, 19486, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 3247, 26, ...
raise IOError("Unable to modify Virtual Filesystem")
raise FuseError("Unable to modify Virtual Filesystem")
def chmod(self, path, mode): raise IOError("Unable to modify Virtual Filesystem")
7d65d651f8f8c6336ef360445855945acade1ccb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/7d65d651f8f8c6336ef360445855945acade1ccb/pyflag_fuse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13413, 12, 2890, 16, 589, 16, 1965, 4672, 1002, 8340, 2932, 3370, 358, 5612, 7269, 11205, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13413, 12, 2890, 16, 589, 16, 1965, 4672, 1002, 8340, 2932, 3370, 358, 5612, 7269, 11205, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def OnTestsLoad(): old_path = sys.path script_path = os.path.dirname(sys.argv[0]) load_path = None global simplejson
def CheckChangeOnUpload(input_api, output_api): run_tests = False for path in input_api.LocalPaths(): if PERF_EXPECTATIONS == input_api.os_path.basename(path): run_tests = True
def OnTestsLoad(): old_path = sys.path script_path = os.path.dirname(sys.argv[0]) load_path = None global simplejson # This test script should be stored in src/tools/perf_expectations/. That # directory will most commonly live in 2 locations: # # - a regular Chromium checkout, in which case src/third_party # is...
1ea27af393fbc64d260b34a36b418e5eb5ea69ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/1ea27af393fbc64d260b34a36b418e5eb5ea69ac/PRESUBMIT.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 3043, 1398, 4777, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1086, 67, 16341, 273, 1083, 364, 589, 316, 810, 67, 2425, 18, 2042, 4466, 13332, 309, 10950, 42, 67, 2294, 1423, 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, 2073, 3043, 1398, 4777, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1086, 67, 16341, 273, 1083, 364, 589, 316, 810, 67, 2425, 18, 2042, 4466, 13332, 309, 10950, 42, 67, 2294, 1423, 12...
usage = {}
packages = {}
def processViews(views, loadDeps, runDeps, output): global classes print ">>> Analysing %s views..." % len(views) classCounts = {} # Generating data structures for possible modules classMods = {} # for id in views: # Hint: IDs # # apiviewer # feedreader # webmail # apiviewer-feedreader # apiviewer-webmail # feedrea...
81b747f6b630b33c32656070c873a9a09a9e6100 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/81b747f6b630b33c32656070c873a9a09a9e6100/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9959, 12, 7061, 16, 1262, 14430, 16, 1086, 14430, 16, 876, 4672, 2552, 3318, 225, 1172, 315, 23012, 1922, 3646, 310, 738, 87, 7361, 7070, 738, 562, 12, 7061, 13, 225, 667, 9211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9959, 12, 7061, 16, 1262, 14430, 16, 1086, 14430, 16, 876, 4672, 2552, 3318, 225, 1172, 315, 23012, 1922, 3646, 310, 738, 87, 7361, 7070, 738, 562, 12, 7061, 13, 225, 667, 9211, ...
context.show_text(title)
if self.textfix: context.text_path(title) else: context.show_text(title)
def render(self, context, debug=False): debug = debug or self.debug context.save() # Draw the vertical scale, if necessary if self.vertical_scale: major_style = self.style['wavegraph grid#y.major'] minor_style = self.style['wavegraph grid#y.minor'] for linepos, title, ismajor in self.y_scale.get_lines(): if ismajo...
065a488418bded58d539a015b45ac5954482640a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4498/065a488418bded58d539a015b45ac5954482640a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 16, 1198, 33, 8381, 4672, 225, 1198, 273, 1198, 578, 365, 18, 4148, 225, 819, 18, 5688, 1435, 225, 468, 10184, 326, 9768, 3159, 16, 309, 4573, 309, 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, 1743, 12, 2890, 16, 819, 16, 1198, 33, 8381, 4672, 225, 1198, 273, 1198, 578, 365, 18, 4148, 225, 819, 18, 5688, 1435, 225, 468, 10184, 326, 9768, 3159, 16, 309, 4573, 309, 365, 18, ...
finally: fileobj.close() os.unlink(name)
def test_read_short(self): fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: fileobj.write("1,2,abc,4,5,6\r\n1,2,abc\r\n") fileobj.seek(0) reader = csv.DictReader(fileobj, fieldnames="1 2 3 4 5 6".split(), restval="DEFAULT") self.assertEqual(next(reader), {"1": '1', "2": '2', "3": 'abc', "4": '4', "5": ...
3372cde256bb490026e8a5e8c2502a82d2e6c5a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3372cde256bb490026e8a5e8c2502a82d2e6c5a0/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 67, 6620, 12, 2890, 4672, 5194, 16, 508, 273, 13275, 18, 24816, 19781, 84, 1435, 17041, 273, 1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, 30, 17041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 67, 6620, 12, 2890, 4672, 5194, 16, 508, 273, 13275, 18, 24816, 19781, 84, 1435, 17041, 273, 1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, 30, 17041, ...
chars = charsUntilRegEx[characters] = re.compile(u"[%s]*" % regex)
chars = charsUntilRegEx[(characters, opposite)] = re.compile(u"[%s]*" % regex)
def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in 'characters' or EOF. 'characters' must be a container that supports the 'in' method and iteration over its characters. """
1537588c0083065d5b48d0d47bcd5ccaf6f2e8cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/1537588c0083065d5b48d0d47bcd5ccaf6f2e8cf/inputstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5230, 9716, 12, 2890, 16, 3949, 16, 20759, 273, 1083, 4672, 3536, 2860, 279, 533, 434, 3949, 628, 326, 1407, 731, 358, 1496, 486, 6508, 1281, 3351, 316, 296, 20558, 11, 578, 6431, 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, 5230, 9716, 12, 2890, 16, 3949, 16, 20759, 273, 1083, 4672, 3536, 2860, 279, 533, 434, 3949, 628, 326, 1407, 731, 358, 1496, 486, 6508, 1281, 3351, 316, 296, 20558, 11, 578, 6431, 18, ...
class Geocoder(TwillTests):
class GeocoderCanGeocode(TwillTests):
def test(self): request = mysite.base.helpers.ObjectFromDict({ 'is_secure': lambda : True, 'META': {'SERVER_PORT': '443', 'SERVER_NAME': 'name'}}) data = mysite.base.controllers.get_uri_metadata_for_generating_absolute_links(request) self.assertEqual(data, {'uri_scheme': 'https', 'url_prefix': 'name'})
e665a845b27126f51a9b3d1db4ccb77a186c3556 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/e665a845b27126f51a9b3d1db4ccb77a186c3556/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 590, 273, 312, 1900, 1137, 18, 1969, 18, 11397, 18, 921, 1265, 5014, 12590, 296, 291, 67, 8869, 4278, 3195, 294, 1053, 16, 296, 19294, 4278, 13666, 4370, 67, 6354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 590, 273, 312, 1900, 1137, 18, 1969, 18, 11397, 18, 921, 1265, 5014, 12590, 296, 291, 67, 8869, 4278, 3195, 294, 1053, 16, 296, 19294, 4278, 13666, 4370, 67, 6354, ...
rfile = open(dest, 'rb'); contents = rfile.read(-1); rfile.close(); except: contents=0;
rfile = open(dest, 'rb') contents = rfile.read(-1) rfile.close() except: contents=0
def ConditionalWriteFile(dest,desiredcontents): try: rfile = open(dest, 'rb'); contents = rfile.read(-1); rfile.close(); except: contents=0; if (contents != desiredcontents): print "Regenerating file: "+dest sys.stdout.flush() WriteFile(dest,desiredcontents)
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22466, 3067, 812, 12, 10488, 16, 30458, 3980, 4672, 775, 30, 436, 768, 273, 1696, 12, 10488, 16, 296, 6731, 6134, 2939, 273, 436, 768, 18, 896, 19236, 21, 13, 436, 768, 18, 4412, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22466, 3067, 812, 12, 10488, 16, 30458, 3980, 4672, 775, 30, 436, 768, 273, 1696, 12, 10488, 16, 296, 6731, 6134, 2939, 273, 436, 768, 18, 896, 19236, 21, 13, 436, 768, 18, 4412, 1435,...
write_to_file(core_path, core_file)
core_path = write_to_file(core_path, core_file, compress=True)
def get_info_from_core(path): """ Reads a core file and extracts a dictionary with useful core information. Right now, the only information extracted is the full executable name. @param path: Path to core file. """ # Here we are getting the executable full path in a very inelegant way :( # Since the 'right' solution f...
8aaf1e11b64e538289f5ac1747ac33e65e105cdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/8aaf1e11b64e538289f5ac1747ac33e65e105cdf/crash_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 67, 2080, 67, 3644, 12, 803, 4672, 3536, 29185, 279, 2922, 585, 471, 16469, 279, 3880, 598, 5301, 2922, 1779, 18, 13009, 2037, 16, 326, 1338, 1779, 9438, 353, 326, 1983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1376, 67, 2080, 67, 3644, 12, 803, 4672, 3536, 29185, 279, 2922, 585, 471, 16469, 279, 3880, 598, 5301, 2922, 1779, 18, 13009, 2037, 16, 326, 1338, 1779, 9438, 353, 326, 1983, ...
return _("Changeset %(rev)s", rev=resource.id)
if reponame: return _("Changeset %(rev)s in %(repo)s", rev=id, repo=reponame) else: return _("Changeset %(rev)s", rev=id)
def get_resource_description(self, resource, format=None, **kwargs): if resource.realm == 'changeset': return _("Changeset %(rev)s", rev=resource.id) elif resource.realm == 'source': version = '' if format == 'summary': repos = resource.env.get_repository() # no perm.username! node = repos.get_node(resource.id, resourc...
79f0f1c14c30e58e47feb1bb08f3de96c9b2063b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/79f0f1c14c30e58e47feb1bb08f3de96c9b2063b/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3146, 67, 3384, 12, 2890, 16, 1058, 16, 740, 33, 7036, 16, 2826, 4333, 4672, 309, 1058, 18, 24056, 422, 296, 6329, 278, 4278, 309, 283, 500, 339, 30, 327, 389, 2932, 29743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3146, 67, 3384, 12, 2890, 16, 1058, 16, 740, 33, 7036, 16, 2826, 4333, 4672, 309, 1058, 18, 24056, 422, 296, 6329, 278, 4278, 309, 283, 500, 339, 30, 327, 389, 2932, 29743, ...
result.addTests(unittest.makeSuite( ropetest.contrib.changestacktest.ChangeStackTest))
result.addTests(unittest.makeSuite(ropetest.contrib.changestacktest. ChangeStackTest)) result.addTests(unittest.makeSuite(ropetest.contrib.fixmodnamestest. FixModuleNamesTest)) result.addTests(unittest.makeSuite(ropetest.contrib.finderrorstest. FindErrorsTest))
def suite(): result = unittest.TestSuite() result.addTests(unittest.makeSuite(ropetest.contrib.generatetest.GenerateTest)) result.addTests(ropetest.contrib.codeassisttest.suite()) result.addTests(ropetest.contrib.autoimporttest.suite()) result.addTests(ropetest.contrib.findittest.suite()) result.addTests(unittest.makeS...
3e73954d5fe6c38da23fcb9344c2c00a9e397d88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/3e73954d5fe6c38da23fcb9344c2c00a9e397d88/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 563, 273, 2836, 3813, 18, 4709, 13587, 1435, 563, 18, 1289, 14650, 12, 4873, 3813, 18, 6540, 13587, 12, 1764, 278, 395, 18, 26930, 18, 3441, 270, 278, 395, 18, 4625, 4709, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11371, 13332, 563, 273, 2836, 3813, 18, 4709, 13587, 1435, 563, 18, 1289, 14650, 12, 4873, 3813, 18, 6540, 13587, 12, 1764, 278, 395, 18, 26930, 18, 3441, 270, 278, 395, 18, 4625, 4709, ...
encoding = check_encoding(self.message.get_param('charset', 'ascii'))
encoding = check_encoding(self.message.get_param('charset', 'utf-8'))
def encoding(self): encoding = check_encoding(self.message.get_param('charset', 'ascii')) return encoding
2b42a375ab21024348f8d6138029ca006d793e1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6274/2b42a375ab21024348f8d6138029ca006d793e1f/emailmessage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2688, 12, 2890, 4672, 2688, 273, 866, 67, 5999, 12, 2890, 18, 2150, 18, 588, 67, 891, 2668, 9999, 2187, 296, 3158, 17, 28, 26112, 225, 327, 2688, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2688, 12, 2890, 4672, 2688, 273, 866, 67, 5999, 12, 2890, 18, 2150, 18, 588, 67, 891, 2668, 9999, 2187, 296, 3158, 17, 28, 26112, 225, 327, 2688, 2, -100, -100, -100, -100, -100, -100,...
def getFileContents(argin, ext=''): if type(argin) is str: fname = argin + ext else: fname = argin.group(3) + ext
def getFileContents(fname): if type(fname) is not str: fname = fname.group(3)
def getFileContents(argin, ext=''): if type(argin) is str: fname = argin + ext else: fname = argin.group(3) + ext # This longish thing is to make sure that all files are converted into # \n seperated lines. contents = '\n'.join(open(fname).read().splitlines()) # TODO what are all the ways in which a tex file can incl...
fa630a3acb768d9c20019f1d326b9f75b9105d8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6145/fa630a3acb768d9c20019f1d326b9f75b9105d8a/outline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 6323, 12, 12749, 4672, 309, 618, 12, 12749, 13, 353, 486, 609, 30, 5299, 273, 5299, 18, 1655, 12, 23, 13, 225, 468, 1220, 1525, 1468, 7757, 353, 358, 1221, 3071, 716, 777, 1390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6034, 6323, 12, 12749, 4672, 309, 618, 12, 12749, 13, 353, 486, 609, 30, 5299, 273, 5299, 18, 1655, 12, 23, 13, 225, 468, 1220, 1525, 1468, 7757, 353, 358, 1221, 3071, 716, 777, 1390, ...
if type(obj) == types.InstanceType:
if isclassinstance(obj):
def sage_getsourcelines(obj, is_binary=False): r""" Return a pair ([source_lines], starting line number) of the source code associated to obj, or None. At this time we ignore is_binary in favour of a 'do our best' strategy. AUTHOR: -- William Stein -- Extensions by Nick Alexander """ # Check if we deal with instance ...
06a43fa2b351b6953108c9c356d4ba0f49fc1664 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/06a43fa2b351b6953108c9c356d4ba0f49fc1664/sageinspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 14665, 477, 2183, 1465, 12, 2603, 16, 353, 67, 8578, 33, 8381, 4672, 436, 8395, 2000, 279, 3082, 23265, 3168, 67, 3548, 6487, 5023, 980, 1300, 13, 434, 326, 1084, 981, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 272, 410, 67, 14665, 477, 2183, 1465, 12, 2603, 16, 353, 67, 8578, 33, 8381, 4672, 436, 8395, 2000, 279, 3082, 23265, 3168, 67, 3548, 6487, 5023, 980, 1300, 13, 434, 326, 1084, 981, 36...
if Et.conductor() == self.E.conductor(): Et = self.E D = 1
D = ZZ(D) if D % p == 0: D = D/p for ell in D.prime_divisors(): if ell % 2 == 1: if Et.conductor() % ell**2 == 0: D = D/ell ve = valuation(D,2) de = (D/2**ve).abs() if de % 4 == 3: de = -de Et = self.E.quadratic_twist(de) Nmin = Et.conductor() Dmax = de for DD in [-4*de,8*de,-8*de]: Et = self.E.quadratic_twist(DD) if...
def an_padic(self, p, prec=0,use_twists=True): r""" Returns the conjectural order of Sha(E), according to the `p`-adic analogue of the Birch and Swinnerton-Dyer conjecture as formulated in [MTT] and [BP].
3a819e5d0165b1bd5ac63ba005a442c1499f53b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3a819e5d0165b1bd5ac63ba005a442c1499f53b3/sha_tate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 67, 6982, 335, 12, 2890, 16, 293, 16, 13382, 33, 20, 16, 1202, 67, 11246, 1486, 33, 5510, 4672, 436, 8395, 2860, 326, 356, 937, 3766, 1353, 434, 2638, 69, 12, 41, 3631, 4888, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 392, 67, 6982, 335, 12, 2890, 16, 293, 16, 13382, 33, 20, 16, 1202, 67, 11246, 1486, 33, 5510, 4672, 436, 8395, 2860, 326, 356, 937, 3766, 1353, 434, 2638, 69, 12, 41, 3631, 4888, 35...
raise ValueError, _('Not an interval spec: [+-] [ '[
raise ValueError, self._('Not an interval spec:' ' [+-] [
def set(self, spec, allowdate=1, interval_re=re.compile(''' \s*(?P<s>[-+])? # + or - \s*((?P<y>\d+\s*)y)? # year \s*((?P<m>\d+\s*)m)? # month \s*((?P<w>\d+\s*)w)? # week \s*((?P<d>\d+\s*)d)? # day \s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)? # time \s*(?P<D> (\d\d\d\d[/-])?(\d\d?)?[/-](\d\d?)? ...
57c5533dd07b22f90fb954d2494eab65061eef34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/57c5533dd07b22f90fb954d2494eab65061eef34/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 857, 16, 1699, 712, 33, 21, 16, 3673, 67, 266, 33, 266, 18, 11100, 2668, 6309, 521, 87, 14, 3680, 52, 1, 18919, 15, 5717, 35, 540, 468, 397, 578, 300, 521, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 2890, 16, 857, 16, 1699, 712, 33, 21, 16, 3673, 67, 266, 33, 266, 18, 11100, 2668, 6309, 521, 87, 14, 3680, 52, 1, 18919, 15, 5717, 35, 540, 468, 397, 578, 300, 521, 87, ...
config.XMLTV_FILE ))
xmltvtmp ))
def grab(): if not config.XMLTV_GRABBER: print 'No program found to grab the listings. Please set XMLTV_GRABBER' print 'in local.conf.py to the grabber you need' print usage() print 'Grabbing listings.' xmltvtmp = '/tmp/TV.xml.tmp' os.system('%s --output %s --days %s' % ( config.XMLTV_GRABBER, xmltvtmp, config.XMLTV_D...
721864404e82c28a1f90b17ba6ec8c083772442e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/721864404e82c28a1f90b17ba6ec8c083772442e/tv_grab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11086, 13332, 309, 486, 642, 18, 4201, 15579, 67, 6997, 2090, 6271, 30, 1172, 296, 2279, 5402, 1392, 358, 11086, 326, 666, 899, 18, 7801, 444, 3167, 15579, 67, 6997, 2090, 6271, 11, 1172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11086, 13332, 309, 486, 642, 18, 4201, 15579, 67, 6997, 2090, 6271, 30, 1172, 296, 2279, 5402, 1392, 358, 11086, 326, 666, 899, 18, 7801, 444, 3167, 15579, 67, 6997, 2090, 6271, 11, 1172...
template_regexes = [ re.compile( ur"{{\s*(?:%(prefix)s\s*:\s*)?%(template)s\s*\|(\s*%(catns)s\s*:\s*)?([^}]+)}}" % {'prefix': self.site.namespace(10).lower(), 'template': item.replace(" ", "[ _]+"), 'catns': self.site.namespace(14)}, re.I) for item in template_list ]
def run(self): """Run the bot""" self.site = wikipedia.getSite() self.catprefix = self.site.namespace(14)+":" self.result_queue = Queue.Queue() self.log_text = []
ca6eab2770b59d8de16a37e0a8778c56d5e52a34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ca6eab2770b59d8de16a37e0a8778c56d5e52a34/category_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 2512, 8395, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 2574, 3239, 273, 365, 18, 4256, 18, 4937, 12, 3461, 13, 9078, 2773, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 2512, 8395, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 2574, 3239, 273, 365, 18, 4256, 18, 4937, 12, 3461, 13, 9078, 2773, 365, 18,...
if ((SDK.has_key("DX8")==0) and
if (("DX8" not in SDK) and
def SdkLocateDirectX(): if (sys.platform != "win32"): return GetSdkDir("directx8", "DX8") GetSdkDir("directx9", "DX9") if (SDK.has_key("DX9")==0): ## Try to locate the key within the "new" March 2009 location in the registry (yecch): dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (March 2009)...
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, 1333, 340, 5368, 60, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 968, 23951, 1621, 2932, 7205, 92, 28, 3113, 315, 28826, 28, 7923, 968, 23951, 1621, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1333, 340, 5368, 60, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 968, 23951, 1621, 2932, 7205, 92, 28, 3113, 315, 28826, 28, 7923, 968, 23951, 1621, 2932, ...
return ValueDoc(repr=self.pp_toktree(rhs)), False
valdoc_repr = self.pp_toktree(rhs) return ValueDoc(repr=valdoc_repr, toktree=rhs), False
def rhs_to_valuedoc(self, rhs, parent_docs): # Dotted variable: try: rhs_name = self.parse_dotted_name(rhs) rhs_val = self.lookup_value(rhs_name, parent_docs) if rhs_val is not None: return rhs_val, True except ParseError: pass
8aea11fb7527a8766f178e72bab2db07263bf944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/8aea11fb7527a8766f178e72bab2db07263bf944/docparser_quick.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7711, 67, 869, 67, 4531, 329, 504, 12, 2890, 16, 7711, 16, 982, 67, 8532, 4672, 468, 17502, 2344, 2190, 30, 775, 30, 7711, 67, 529, 273, 365, 18, 2670, 67, 9811, 2344, 67, 529, 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, 7711, 67, 869, 67, 4531, 329, 504, 12, 2890, 16, 7711, 16, 982, 67, 8532, 4672, 468, 17502, 2344, 2190, 30, 775, 30, 7711, 67, 529, 273, 365, 18, 2670, 67, 9811, 2344, 67, 529, 12, ...
self.dump(obj.aslist(i), obj._keyord[i], 1, ns_map)
self.dump(obj._aslist(i), obj._keyord[i], 1, ns_map)
def dump_instance(self, obj, tag, typed = 1, ns_map = {}): if Config.debug: print "In dump_instance.", "obj=", obj, "tag=", tag if not tag: # If it has a name use it. if isinstance(obj, anyType) and obj._name: tag = obj._name else: tag = self.gentag()
4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4/SOAPBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 1336, 12, 2890, 16, 1081, 16, 1047, 16, 9092, 273, 404, 16, 3153, 67, 1458, 273, 2618, 4672, 309, 1903, 18, 4148, 30, 1172, 315, 382, 4657, 67, 1336, 1199, 16, 315, 2603, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 67, 1336, 12, 2890, 16, 1081, 16, 1047, 16, 9092, 273, 404, 16, 3153, 67, 1458, 273, 2618, 4672, 309, 1903, 18, 4148, 30, 1172, 315, 382, 4657, 67, 1336, 1199, 16, 315, 2603, 1...
"""Move the selected files to start at a specified date.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Redate...')) menu.AppendItem(menuItem) def Execute(self,event): modInfos = self.window.data fileNames = [mod for mod in self.data if mod ...
"""Move the selected files to start at a specified date.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Redate...')) menu.AppendItem(menuItem) def Execute(self,event): modInfos = self.window.data fileNames = [mod for mod in self.data if mod ...
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] text = bosh.modInfos.getModList(fileInfo) if (wx.TheClipboard.Open()): wx.TheClipboard.SetData(wx.TextDataObject(text)) wx.TheClipboard.Close() balt.showLog(self.window,text,fileName.s,asDialog=False,fixedFont=False,icons=bash...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3968, 273, 611, 743, 12, 2890, 18, 892, 63, 20, 5717, 12538, 273, 365, 18, 5668, 18, 892, 63, 17812, 65, 977, 273, 324, 17636, 18, 1711, 7655, 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, 7903, 12, 2890, 16, 2575, 4672, 3968, 273, 611, 743, 12, 2890, 18, 892, 63, 20, 5717, 12538, 273, 365, 18, 5668, 18, 892, 63, 17812, 65, 977, 273, 324, 17636, 18, 1711, 7655, 18, 588...
def test_getslice(self): def by(s): return bytearray(map(ord, s)) b = by("Hello, world") self.assertEqual(b[:5], by("Hello")) self.assertEqual(b[1:5], by("ello")) self.assertEqual(b[5:7], by(", ")) self.assertEqual(b[7:], by("world")) self.assertEqual(b[7:12], by("world")) self.assertEqual(b[7:100], by("world")) sel...
def test_reverse(self): b = bytearray(b'hello') self.assertEqual(b.reverse(), None) self.assertEqual(b, b'olleh') b = bytearray(b'hello1') # test even number of items b.reverse() self.assertEqual(b, b'1olleh') b = bytearray() b.reverse() self.assertFalse(b)
8e1c00cf398f63360436a121ac5e130e511a0386 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/8e1c00cf398f63360436a121ac5e130e511a0386/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9845, 12, 2890, 4672, 324, 273, 14552, 12, 70, 11, 23711, 6134, 365, 18, 11231, 5812, 12, 70, 18, 9845, 9334, 599, 13, 365, 18, 11231, 5812, 12, 70, 16, 324, 11, 355, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9845, 12, 2890, 4672, 324, 273, 14552, 12, 70, 11, 23711, 6134, 365, 18, 11231, 5812, 12, 70, 18, 9845, 9334, 599, 13, 365, 18, 11231, 5812, 12, 70, 16, 324, 11, 355, 298, ...
'seqalign_file' : '-O'
'seqalign_file' : '-O', 'outfile' : '-o',
def blastall(blastcmd, program, database, infile, align_view='7', **keywds): """Execute and retrieve data from standalone BLASTPALL as handles. Execute and retrieve data from blastall. blastcmd is the command used to launch the 'blastall' executable. program is the blast program to use, e.g. 'blastp', 'blastn', etc....
ff6db47c99fc588d39505f62b031586562e494ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/ff6db47c99fc588d39505f62b031586562e494ab/NCBIStandalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19047, 454, 12, 30901, 4172, 16, 5402, 16, 2063, 16, 14568, 16, 5689, 67, 1945, 2218, 27, 2187, 2826, 856, 91, 2377, 4672, 3536, 5289, 471, 4614, 501, 628, 17676, 605, 14378, 52, 4685, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19047, 454, 12, 30901, 4172, 16, 5402, 16, 2063, 16, 14568, 16, 5689, 67, 1945, 2218, 27, 2187, 2826, 856, 91, 2377, 4672, 3536, 5289, 471, 4614, 501, 628, 17676, 605, 14378, 52, 4685, ...
print "TesttRunner created" pid = establishFirst() number = pid.replace(PIDPREFIX,"") first = number print "found "+first+" as the first nonused pid"
log("TestRunner created") startingpid = grinder.getProperties().getProperty('firstpid') if (startingpid is not None and startingpid > 0): first = startingpid else: pid = establishFirst() number = pid.replace(PIDPREFIX,"") first = number log("found "+first+" as the first nonused pid")
def __init__(self): global first print "TesttRunner created" pid = establishFirst() number = pid.replace(PIDPREFIX,"") first = number print "found "+first+" as the first nonused pid" self.initialisationTime = System.currentTimeMillis()
51178683e52936645caa8741b24244f4dc262042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10566/51178683e52936645caa8741b24244f4dc262042/DataWellTest1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2552, 1122, 613, 2932, 4709, 9709, 2522, 7923, 5023, 6610, 273, 3821, 14055, 18, 588, 2297, 7675, 588, 1396, 2668, 3645, 6610, 6134, 309, 261, 18526, 6610,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2552, 1122, 613, 2932, 4709, 9709, 2522, 7923, 5023, 6610, 273, 3821, 14055, 18, 588, 2297, 7675, 588, 1396, 2668, 3645, 6610, 6134, 309, 261, 18526, 6610,...
_testMethodName = getattr(self,"_testMethodName", "runTest")
def run(self, result=None): """Test runner."""
47221fe49a26140a57c6af6569afbaf055db15c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/47221fe49a26140a57c6af6569afbaf055db15c8/parametric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 3536, 4709, 8419, 12123, 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,...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 3536, 4709, 8419, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def _index_to_anchor(self, str):
def _term_index_to_anchor(self, str):
def _index_to_anchor(self, str): """ Given the name of an inline index item, construct a URI anchor. These anchors are used to create links from the index page to each index item. """ # Include "-" so we don't accidentally collide with the name # of a python identifier. return "index-"+re.sub("[^a-zA-Z0-9]", "_", str)
36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6408, 67, 1615, 67, 869, 67, 16215, 12, 2890, 16, 609, 4672, 3536, 16803, 326, 508, 434, 392, 6370, 770, 761, 16, 4872, 279, 3699, 6984, 18, 8646, 22941, 854, 1399, 358, 752, 4716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6408, 67, 1615, 67, 869, 67, 16215, 12, 2890, 16, 609, 4672, 3536, 16803, 326, 508, 434, 392, 6370, 770, 761, 16, 4872, 279, 3699, 6984, 18, 8646, 22941, 854, 1399, 358, 752, 4716...
self.checkMessageCount(2) self.checkChangedMessage(1, added=[f2])
self.checkMessageCount(3) self.checkChangedMessage(2, added=[f2])
def testReduceNumberOfMessages(self): f1 = Feed(u'http://example.com/3') f1.remove() f2 = Feed(u'http://example.com/4') f2.setTitle(u'New Title') self.runUrgentCalls() # We don't need to see that f1 was added because it got removed # immediately after. We don't need to see that f2 was changed because # it will have th...
69858501f3380a2140e17bd59f52ef0c473defe6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/69858501f3380a2140e17bd59f52ef0c473defe6/messagetest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12944, 9226, 5058, 12, 2890, 4672, 284, 21, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 23, 6134, 284, 21, 18, 4479, 1435, 284, 22, 273, 14013, 12, 89, 11, 2505, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12944, 9226, 5058, 12, 2890, 4672, 284, 21, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 23, 6134, 284, 21, 18, 4479, 1435, 284, 22, 273, 14013, 12, 89, 11, 2505, 220...
notification_center.post_notification('DNSLookupDidFail', sender=self, data=NotificationData(error="Could find a suitable transport in NAPTR record of domain"))
notification_center.post_notification('DNSLookupDidFail', sender=self, data=NotificationData(error="Could not find a suitable transport in NAPTR record of domain"))
def lookup_sip_proxy(self, uri, supported_transports): """This function performs RFC 3263 compliant lookup of transport/ip/port combinations for a particular SIP URI. As arguments it takes a SIPURI object and a list of supported transports, in order of preference of the application. It returns a list of Route objects t...
9195dd0f3ab7cd971efa1ad036b4ba5bdc5d55aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/9195dd0f3ab7cd971efa1ad036b4ba5bdc5d55aa/lookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 28477, 67, 5656, 12, 2890, 16, 2003, 16, 3260, 67, 2338, 4363, 4672, 3536, 2503, 445, 11199, 8372, 3847, 4449, 24820, 3689, 434, 4736, 19, 625, 19, 655, 17265, 364, 279, 6826, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3689, 67, 28477, 67, 5656, 12, 2890, 16, 2003, 16, 3260, 67, 2338, 4363, 4672, 3536, 2503, 445, 11199, 8372, 3847, 4449, 24820, 3689, 434, 4736, 19, 625, 19, 655, 17265, 364, 279, 6826, ...
cmd += " built/tmp/pandaIcon.res"
cmd += " " + GetOutputDir() + "/tmp/pandaIcon.res"
def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = "link /nologo" if (platform.architecture()[0] == "64bit"): cmd += " /MACHINE:X64" cmd += " /NOD:MFC90.LIB /NOD:MFC80.LIB /NOD:LIBCI.LIB /DEBUG" cmd += " /nod:libc /nod:libcmtd /nod:atlthunk /nod:atls" if (GetOrigExt(dll) != ".exe"): cmd += " /DLL" optlevel =...
f8576df31f21594b3752883970d6b9a414507a0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/f8576df31f21594b3752883970d6b9a414507a0e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 315, 1232, 342, 82, 3966, 83, 6, 309, 261, 9898, 18, 991, 18123, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 315, 1232, 342, 82, 3966, 83, 6, 309, 261, 9898, 18, 991, 18123, 1435, ...
def MakeStagingDirectory(output_dir): """Creates a staging path for installer archive. If directory exists already, deletes the existing directory. """ file_path = os.path.join(output_dir, ARCHIVE_DIR) if os.path.exists(file_path): shutil.rmtree(file_path) os.makedirs(file_path) return file_path def CopyAllFilesToSta...
def Readconfig(output_dir, input_file, current_version): """Reads config information from input file after setting default value of global variabes. """ variables = {} variables['ChromeDir'] = CHROME_DIR variables['VersionDir'] = os.path.join(variables['ChromeDir'], current_version) config = ConfigParser.SafeConfigPars...
28937b29b58e9aa1989349335ef83995e008098e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/28937b29b58e9aa1989349335ef83995e008098e/create_installer_archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 1425, 12, 2844, 67, 1214, 16, 810, 67, 768, 16, 783, 67, 1589, 4672, 3536, 7483, 642, 1779, 628, 810, 585, 1839, 3637, 805, 460, 434, 2552, 1394, 378, 281, 18, 3536, 3152, 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, 2720, 1425, 12, 2844, 67, 1214, 16, 810, 67, 768, 16, 783, 67, 1589, 4672, 3536, 7483, 642, 1779, 628, 810, 585, 1839, 3637, 805, 460, 434, 2552, 1394, 378, 281, 18, 3536, 3152, 273, ...
return article['content']
result = article['content'] if isinstance(result, str): return unicode(result, 'utf-8') return result
def getRawArticle(self, title, revision=None): article = self._getArticle(title, revision=revision) if article: return article['content'] return None
c4c1adec910d0eacb16bf353a8543e9fefa24f3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/c4c1adec910d0eacb16bf353a8543e9fefa24f3a/zipwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10547, 7880, 12, 2890, 16, 2077, 16, 6350, 33, 7036, 4672, 7559, 273, 365, 6315, 588, 7880, 12, 2649, 16, 6350, 33, 13057, 13, 309, 7559, 30, 563, 273, 7559, 3292, 1745, 3546, 309, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10547, 7880, 12, 2890, 16, 2077, 16, 6350, 33, 7036, 4672, 7559, 273, 365, 6315, 588, 7880, 12, 2649, 16, 6350, 33, 13057, 13, 309, 7559, 30, 563, 273, 7559, 3292, 1745, 3546, 309, 154...
package, component = trove.split(":")
package, component = trv.split(":")
def browse(self, auth, char): defaultPage = False if not char: char = 'A' defaultPage = True # since the repository is multihomed and we're not doing any # label filtering, a single call will return all the available # troves. We use the first repository name here because we have to # pick one,,, troves = self.repos.tr...
c5a8de451fccc795e38df460d36b2c068f05d595 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/c5a8de451fccc795e38df460d36b2c068f05d595/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 12, 2890, 16, 1357, 16, 1149, 4672, 805, 1964, 273, 1083, 309, 486, 1149, 30, 1149, 273, 296, 37, 11, 805, 1964, 273, 1053, 468, 3241, 326, 3352, 353, 3309, 17125, 329, 471, 732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21670, 12, 2890, 16, 1357, 16, 1149, 4672, 805, 1964, 273, 1083, 309, 486, 1149, 30, 1149, 273, 296, 37, 11, 805, 1964, 273, 1053, 468, 3241, 326, 3352, 353, 3309, 17125, 329, 471, 732...
output.write(input.read())
return output.write(input.read())
def decode(input, output, encoding): """Decode common content-transfer-encodings (base64, quopri, uuencode).""" if encoding == 'base64': import base64 return base64.decode(input, output) if encoding == 'quoted-printable': import quopri return quopri.decode(input, output) if encoding in ('uuencode', 'x-uuencode', 'uue',...
25d1692434bb9613101f623bee2b59d86036a84e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25d1692434bb9613101f623bee2b59d86036a84e/mimetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2630, 16, 876, 16, 2688, 4672, 3536, 6615, 2975, 913, 17, 13866, 17, 1331, 369, 899, 261, 1969, 1105, 16, 719, 556, 566, 16, 582, 89, 3015, 13, 12123, 309, 2688, 422, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 2630, 16, 876, 16, 2688, 4672, 3536, 6615, 2975, 913, 17, 13866, 17, 1331, 369, 899, 261, 1969, 1105, 16, 719, 556, 566, 16, 582, 89, 3015, 13, 12123, 309, 2688, 422, 296, ...
rebaselined_tests: list of tests that have been rebaselined.
def _UpdateRebaselinedTestsInFile(self, rebaselined_tests, backup): """Update the rebaselined tests in test expectations file.
f88af6d54c48237ad0edb1b3bd6a6d27d9f30401 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f88af6d54c48237ad0edb1b3bd6a6d27d9f30401/rebaseline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1891, 426, 9157, 292, 1920, 14650, 382, 812, 12, 2890, 16, 283, 9157, 292, 1920, 67, 16341, 16, 5114, 4672, 3536, 1891, 326, 283, 9157, 292, 1920, 7434, 316, 1842, 26305, 585, 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, 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, 1891, 426, 9157, 292, 1920, 14650, 382, 812, 12, 2890, 16, 283, 9157, 292, 1920, 67, 16341, 16, 5114, 4672, 3536, 1891, 326, 283, 9157, 292, 1920, 7434, 316, 1842, 26305, 585, 18, ...
def create(self, cr, uid, vals, context={}):
def create(self, cr, uid, vals, context={}):
def create(self, cr, uid, vals, context={}): vals['title']=vals['name'] if not vals.get('res_id', False) and context.get('default_res_id',False): vals['res_id']=context.get('default_res_id',False) if not vals.get('res_model', False) and context.get('default_res_model',False): vals['res_model']=context.get('default_res_...
02e76107e25226ec737069adf4f356d08ed0e278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/02e76107e25226ec737069adf4f356d08ed0e278/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 5773, 3292, 2649, 3546, 33, 4524, 3292, 529, 3546, 309, 486, 5773, 18, 588, 2668, 455, 67, 350, 2187, 1083, 13, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 5773, 3292, 2649, 3546, 33, 4524, 3292, 529, 3546, 309, 486, 5773, 18, 588, 2668, 455, 67, 350, 2187, 1083, 13, 471, ...
def execEnd(self):
def execEnd(self, last=True):
def execEnd(self): assert self.in_exec self.in_exec = False
5e74dc98aad36025621d14b36faeb0c649bf8b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/5e74dc98aad36025621d14b36faeb0c649bf8b9b/mytest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 1638, 12, 2890, 16, 1142, 33, 5510, 4672, 1815, 365, 18, 267, 67, 4177, 365, 18, 267, 67, 4177, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 1638, 12, 2890, 16, 1142, 33, 5510, 4672, 1815, 365, 18, 267, 67, 4177, 365, 18, 267, 67, 4177, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(r"(\s|.)", Name.Constant),
(r"(\s|.)", Name.Constant)
def word_callback(lexer, match): word = match.group()
9c5ca917dfe1bfdbc163608e8673107dd92263fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6148/9c5ca917dfe1bfdbc163608e8673107dd92263fe/other.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2076, 67, 3394, 12, 31731, 16, 845, 4672, 2076, 273, 845, 18, 1655, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2076, 67, 3394, 12, 31731, 16, 845, 4672, 2076, 273, 845, 18, 1655, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if config.modulesets_dir and config.nonetwork or config.use_local_modulesets:
if os.path.isabs(uri): pass elif config.modulesets_dir and config.nonetwork or config.use_local_modulesets:
def load(config, uri=None): if uri is not None: modulesets = [ uri ] elif type(config.moduleset) in (list, tuple): modulesets = config.moduleset else: modulesets = [ config.moduleset ] ms = ModuleSet(config = config) for uri in modulesets: if config.modulesets_dir and config.nonetwork or config.use_local_modulesets: if...
74c8db603ac7dd328a51fd44b58a967114385763 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/74c8db603ac7dd328a51fd44b58a967114385763/moduleset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 1425, 16, 2003, 33, 7036, 4672, 309, 2003, 353, 486, 599, 30, 4381, 2413, 273, 306, 2003, 308, 1327, 618, 12, 1425, 18, 6400, 278, 13, 316, 261, 1098, 16, 3193, 4672, 4381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 1425, 16, 2003, 33, 7036, 4672, 309, 2003, 353, 486, 599, 30, 4381, 2413, 273, 306, 2003, 308, 1327, 618, 12, 1425, 18, 6400, 278, 13, 316, 261, 1098, 16, 3193, 4672, 4381, ...
png = urllib2.urlopen("http://iemvs105.local/iem/GIS/radmap.php?layers[]=uscounties&layers[]=nexrad_tc&ts=%s" % (ts.strftime("%Y%m%d%H%M"),))
png = urllib2.urlopen("http://iemvs105.local/GIS/radmap.php?layers[]=uscounties&layers[]=nexrad_tc&ts=%s" % (ts.strftime("%Y%m%d%H%M"),))
def run(sts): ets = sts + mx.DateTime.RelativeDateTime(days=1) interval = mx.DateTime.RelativeDateTime(minutes=5) n0r = gdal.Open('../../htdocs/docs/nexrad_composites/reflect_ramp.png', 0) n0rct = n0r.GetRasterBand(1).GetRasterColorTable().Clone() maxn0r = None now = sts while (now < ets): fp = now.strftime("/mnt/a1...
771c8eb8bdce56430b01ad7d9d5e29fbb94c80d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11189/771c8eb8bdce56430b01ad7d9d5e29fbb94c80d7/max_reflect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 334, 87, 4672, 225, 2413, 273, 27099, 397, 7938, 18, 5096, 18, 8574, 5096, 12, 9810, 33, 21, 13, 3673, 273, 7938, 18, 5096, 18, 8574, 5096, 12, 17916, 33, 25, 13, 225, 290,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 334, 87, 4672, 225, 2413, 273, 27099, 397, 7938, 18, 5096, 18, 8574, 5096, 12, 9810, 33, 21, 13, 3673, 273, 7938, 18, 5096, 18, 8574, 5096, 12, 17916, 33, 25, 13, 225, 290,...
process_list = get_cmd_output('export LANG="POSIX"; ps -e -o comm,user=').strip().split('\n')
process_list = get_cmd_output('ps -e -o comm,user=').strip().split('\n')
def testing_status() : server_name = 'rcssserver' server_user = '' process_list = get_cmd_output('export LANG="POSIX"; ps -e -o comm,user=').strip().split('\n') process_list.pop(0) team_count_map = {} cmd_count_map = {} matched_cmds = {} for process in process_list : info = process.split() (cmd, user) = (info[0], in...
7e21f1709e4d93e115fc418c24514f765c050a3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/7e21f1709e4d93e115fc418c24514f765c050a3f/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7769, 67, 2327, 1435, 294, 1438, 67, 529, 273, 296, 1310, 1049, 3567, 11, 1438, 67, 1355, 273, 875, 225, 1207, 67, 1098, 273, 336, 67, 4172, 67, 2844, 2668, 1121, 300, 73, 300, 83, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7769, 67, 2327, 1435, 294, 1438, 67, 529, 273, 296, 1310, 1049, 3567, 11, 1438, 67, 1355, 273, 875, 225, 1207, 67, 1098, 273, 336, 67, 4172, 67, 2844, 2668, 1121, 300, 73, 300, 83, 1...
if DEBUG:
if DEBUG:
def write(self, data): if DEBUG:
772b07e2ea8b495a9ca50823bc407f3034d31d3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/772b07e2ea8b495a9ca50823bc407f3034d31d3b/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 309, 6369, 30, 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, 1045, 12, 2890, 16, 501, 4672, 309, 6369, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print '*************' print '\n'.join(lines) print '*************'
def testTracebackReporting(self): self.suite.addMethod(common.FailfulTests.testTracebackReporting) self.suite.run() lines = self.reporter.out.split('\n') print '*************' print '\n'.join(lines) print '*************' while 1: if not lines: raise FailTest, "DOUBLE_SEPARATOR not found in lines" if lines[0] != DOUBLE_...
93639dcaa601222a2bde1492d8009977d2f022a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/93639dcaa601222a2bde1492d8009977d2f022a7/test_reporter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3448, 823, 29285, 12, 2890, 4672, 365, 18, 30676, 18, 1289, 1305, 12, 6054, 18, 3754, 2706, 14650, 18, 3813, 3448, 823, 29285, 13, 365, 18, 30676, 18, 2681, 1435, 2362, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3448, 823, 29285, 12, 2890, 4672, 365, 18, 30676, 18, 1289, 1305, 12, 6054, 18, 3754, 2706, 14650, 18, 3813, 3448, 823, 29285, 13, 365, 18, 30676, 18, 2681, 1435, 2362, 273, 365, ...
except Exception, e:
except sqlite3.IntegrityError:
def retweet(initial_status_id=None): for USER, PASS in ACCOUNTS: DB_PATH = DB_DIR + "%s.sqlite" connection = sqlite3.connect(DB_PATH % USER) cursor = connection.cursor() # Create the table that will hold the tweets we've retweeted. cursor.execute("""CREATE TABLE IF NOT EXISTS retweets (status_id VARCHAR(100) PRIMARY ...
631fc1bfa1ad77aba782929773f7942f5309633d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14028/631fc1bfa1ad77aba782929773f7942f5309633d/retweet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 325, 18028, 12, 6769, 67, 2327, 67, 350, 33, 7036, 4672, 364, 7443, 16, 17882, 316, 29437, 55, 30, 2383, 67, 4211, 273, 2383, 67, 4537, 397, 2213, 87, 18, 19460, 6, 225, 1459, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 325, 18028, 12, 6769, 67, 2327, 67, 350, 33, 7036, 4672, 364, 7443, 16, 17882, 316, 29437, 55, 30, 2383, 67, 4211, 273, 2383, 67, 4537, 397, 2213, 87, 18, 19460, 6, 225, 1459, 273, 1...
MelStructs('CNTO','Ii','items',(FID,'item',None),('count',1)), MelStruct('AIDT','=4BIbB2s', ('aggression',5),('confidence',50),('energyLevel',50),('responsibility',50), (aiService,'services',0L),'trainSkill','trainLevel',('unused1',null2)),
MelGroups('items', MelStruct('CNTO','Ii',(FID,'item',None),('count',1)), MelOptStruct('COED','IIf',(FID,'owner',None),(FID,'glob',None),('condition',1.0)), ), MelStruct('AIDT','=5B2I3Bi', ('aggression',5),('confidence',50),('energyLevel',50),('responsibility',50),('mood',0L), (aiService,'services',0L),(aiTeaches,'teach...
def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,act...
cca41469e809734b99e368ce8d5b4ec2b829aab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/cca41469e809734b99e368ce8d5b4ec2b829aab5/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 963, 422, 18106, 30, 490, 292, 3823, 18, 945, 751, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 963, 422, 18106, 30, 490, 292, 3823, 18, 945, 751, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, ...
gramVBV = la.cholesky( gramVBV ) la.inv( gramVBV, overwrite_a = True )
gramVBV = sc.linalg.cholesky( gramVBV ) sc.linalg.inv( gramVBV, overwrite_a = True )
def b_orthonormalize( B, blockVectorV, blockVectorBV = None, retInvR = False ): """Internal.""" if blockVectorBV is None: if B is not None: blockVectorBV = B( blockVectorV ) else: blockVectorBV = blockVectorV # Shared data!!! gramVBV = sc.dot( blockVectorV.T, blockVectorBV ) gramVBV = la.cholesky( gramVBV ) la.inv( gra...
4d3e9ff4507c90e9a385976cbcd13d0efd7a5535 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/4d3e9ff4507c90e9a385976cbcd13d0efd7a5535/lobpcg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 67, 280, 3041, 1687, 554, 12, 605, 16, 1203, 5018, 58, 16, 1203, 5018, 38, 58, 273, 599, 16, 325, 3605, 54, 273, 1083, 262, 30, 3536, 3061, 12123, 309, 1203, 5018, 38, 58, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 324, 67, 280, 3041, 1687, 554, 12, 605, 16, 1203, 5018, 58, 16, 1203, 5018, 38, 58, 273, 599, 16, 325, 3605, 54, 273, 1083, 262, 30, 3536, 3061, 12123, 309, 1203, 5018, 38, 58, 353, ...
if hasattr(self.script, "column_offset"): return int(self.script.column_offset().value()) else: return -1;
return self.script.columnOffset()
def columnOffset(self): if hasattr(self.script, "column_offset"): return int(self.script.column_offset().value()) else: return -1;
e97e2da011ba59cc383c483b663ec0b903d229a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/e97e2da011ba59cc383c483b663ec0b903d229a2/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 2335, 12, 2890, 4672, 327, 365, 18, 4263, 18, 2827, 2335, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 2335, 12, 2890, 4672, 327, 365, 18, 4263, 18, 2827, 2335, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
chainLifeTime = restrictLifeTime
chainLifeTime = restrictLifeTime
def uploadProxy( self, proxy = False, diracGroup = False, chainToConnect = False, restrictLifeTime = 0 ): """ Upload a proxy to the proxy management service using delgation """ #Discover proxy location if type( proxy ) == g_X509ChainType: chain = proxy proxyLocation = "" else: if not proxy: proxyLocation = Locations.ge...
5fbaf5a664ae5e20e47de35bcbe79c3a19630816 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5fbaf5a664ae5e20e47de35bcbe79c3a19630816/ProxyManagerClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 3886, 12, 365, 16, 2889, 273, 1083, 16, 4314, 8836, 1114, 273, 1083, 16, 2687, 774, 5215, 273, 1083, 16, 13108, 15315, 950, 273, 374, 262, 30, 3536, 9414, 279, 2889, 358, 326, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3617, 3886, 12, 365, 16, 2889, 273, 1083, 16, 4314, 8836, 1114, 273, 1083, 16, 2687, 774, 5215, 273, 1083, 16, 13108, 15315, 950, 273, 374, 262, 30, 3536, 9414, 279, 2889, 358, 326, 28...
os.chdir(WORKDIR) os.umask(UMASK)
pass
def Daemonize(logfile): """Daemonize the current process. This detaches the current process from the controlling terminal and runs it in the background as a daemon. @type logfile: str @param logfile: the logfile to which we should redirect stdout/stderr @rtype: int @return: the value zero """ # pylint: disable-msg=W...
0260032ce37a960f7c619a1bbc891434ff84c927 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/0260032ce37a960f7c619a1bbc891434ff84c927/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13054, 554, 12, 28806, 4672, 3536, 12858, 554, 326, 783, 1207, 18, 225, 1220, 10199, 281, 326, 783, 1207, 628, 326, 3325, 2456, 8651, 471, 7597, 518, 316, 326, 5412, 487, 279, 8131, 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, 13054, 554, 12, 28806, 4672, 3536, 12858, 554, 326, 783, 1207, 18, 225, 1220, 10199, 281, 326, 783, 1207, 628, 326, 3325, 2456, 8651, 471, 7597, 518, 316, 326, 5412, 487, 279, 8131, 18, ...
self, model[0]
self, model[3]
def netstring_collector_continue (self, encoded): if encoded.startswith ('0:,0:,0:,0:,'): # user agent closing assert None == self.log ( '<pns-user-close/>' '<![CDATA[%s]]>' % encoded, '' ) self.close () return model, error = pns_quatuor (encoded, self.pns_subscribed) if model == None: # invalid PNS model, log an erro...
04af8332d67922c9724b23e259c6052118b15ace /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/04af8332d67922c9724b23e259c6052118b15ace/pns_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2901, 1080, 67, 21356, 67, 17143, 261, 2890, 16, 3749, 4672, 309, 3749, 18, 17514, 1918, 7707, 20, 30, 16, 20, 30, 16, 20, 30, 16, 20, 30, 11189, 4672, 468, 729, 4040, 7647, 1815, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2901, 1080, 67, 21356, 67, 17143, 261, 2890, 16, 3749, 4672, 309, 3749, 18, 17514, 1918, 7707, 20, 30, 16, 20, 30, 16, 20, 30, 16, 20, 30, 11189, 4672, 468, 729, 4040, 7647, 1815, 59...
deps = create_deps(ext_modules) cython(deps, ext_modules)
hi, med, lo = compile_command_list(ext_modules) execute_list_of_commands(hi + med + lo)
def create_deps(ext_modules): # first we compute the complete graph of dependencies deps = {} for m in ext_modules: m.extra_compile_args += extra_compile_args for i in range(len(m.sources)): f = m.sources[i] if f[-4:] == '.pyx': visited = set() deps_graph(deps, f, visited) base = os.path.splitext(f)[0] f = f[:-4] + '.p...
c82811cc0b935d826f6cfba833e4406f8eb9ed19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c82811cc0b935d826f6cfba833e4406f8eb9ed19/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14877, 12, 408, 67, 6400, 4672, 468, 1122, 732, 3671, 326, 3912, 2667, 434, 5030, 8740, 273, 2618, 364, 312, 316, 1110, 67, 6400, 30, 312, 18, 7763, 67, 11100, 67, 1968, 1011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 14877, 12, 408, 67, 6400, 4672, 468, 1122, 732, 3671, 326, 3912, 2667, 434, 5030, 8740, 273, 2618, 364, 312, 316, 1110, 67, 6400, 30, 312, 18, 7763, 67, 11100, 67, 1968, 1011,...
else:
elif self.hashlist[key] != "":
def generate_file(self): if self.filename.strip() != "": text = ' <file name="' + self.filename + '">\n' else: text = ' <file>\n' # File info if self.size != 0: text += ' <size>'+str(self.size)+'</size>\n' if self.language.strip() != "": text += ' <language>'+self.language+'</language>\n' if self.os.str...
e0c089c3f1660ee08113681b95b345f7474e7cef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/e0c089c3f1660ee08113681b95b345f7474e7cef/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 768, 12, 2890, 4672, 309, 365, 18, 3459, 18, 6406, 1435, 480, 1408, 30, 977, 273, 296, 565, 411, 768, 508, 5300, 397, 365, 18, 3459, 397, 2119, 5333, 82, 11, 1327, 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, 2103, 67, 768, 12, 2890, 4672, 309, 365, 18, 3459, 18, 6406, 1435, 480, 1408, 30, 977, 273, 296, 565, 411, 768, 508, 5300, 397, 365, 18, 3459, 397, 2119, 5333, 82, 11, 1327, 365, 18,...
None, [cty.POINTER(FL_OBJECT), cty.c_int],
None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_add_xyplot_overlay_file(obj, id, f, c): """ fl_add_xyplot_overlay_file(obj, id, f, c) -> num. """ retval = _fl_add_xyplot_overlay_file(obj, id, f, c) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 1698, 4032, 67, 17312, 67, 768, 12, 2603, 16, 612, 16, 284, 16, 276, 4672, 3536, 1183, 67, 1289, 67, 1698, 4032, 67, 17312, 67, 768, 12, 2603, 16, 612, 16, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 1289, 67, 1698, 4032, 67, 17312, 67, 768, 12, 2603, 16, 612, 16, 284, 16, 276, 4672, 3536, 1183, 67, 1289, 67, 1698, 4032, 67, 17312, 67, 768, 12, 2603, 16, 612, 16, 284, ...
self.sourcetree.addDirectory(self.scandir(os.path.join('src', category, name, 'bin.'+arch), '', 0, allplatforms, [arch]), 'bin.'+arch)
self.sourcetree.addDirectory(self.scandir(os.path.join('src', category, name, 'bin.'+arch), '', 0, platforms, [arch]), 'bin.'+arch)
def __init__( self, name, depends, category, localoptions, globaloptions, localarchoptions, globalarchoptions, platforms, archs, ): while None in depends: depends.remove(None) self.name = name self.category = category self.depends = depends self.tasks = {} self.root = os.path.join('src', category, name) self.platfo...
9c4a8807a7e0c5b83e185461e071328f6ef9854f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/9c4a8807a7e0c5b83e185461e071328f6ef9854f/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 508, 16, 10935, 16, 3150, 16, 1191, 2116, 16, 2552, 2116, 16, 1191, 991, 2116, 16, 2552, 991, 2116, 16, 17422, 16, 6637, 87, 16, 262, 30, 225, 1323, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 508, 16, 10935, 16, 3150, 16, 1191, 2116, 16, 2552, 2116, 16, 1191, 991, 2116, 16, 2552, 991, 2116, 16, 17422, 16, 6637, 87, 16, 262, 30, 225, 1323, 599...
def copy(self, cr, uid, id, default={}, context={}, done_list=[]):
def copy(self, cr, uid, id, default={}, context={}, done_list={}, local=False):
def copy(self, cr, uid, id, default={}, context={}, done_list=[]): account = self.browse(cr, uid, id, context=context) new_child_ids = [] if not default: default = {} default = default.copy() default['parent_id'] = False if account.id in done_list: return False done_list.append(account.id) if account: for child in acco...
c3f51002934dd9929b41360b7a9a38984d6bd05d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c3f51002934dd9929b41360b7a9a38984d6bd05d/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 28793, 819, 28793, 2731, 67, 1098, 28793, 1191, 33, 8381, 4672, 2236, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 612, 16, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 28793, 819, 28793, 2731, 67, 1098, 28793, 1191, 33, 8381, 4672, 2236, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 612, 16, 819, ...
args.append(self.getInputFromPort("iso"))
args.append(str(self.getInputFromPort("iso")))
def compute(self): o = self.interpreter.filePool.create_file(suffix='.m') args = [] if not self.hasInputFromPort("file"): raise ModuleError(self, "Needs input file") args.append(self.getInputFromPort("file").name) if self.hasInputFromPort("rho"): args.append("-rho") args.append(self.getInputFromPort("rho")) if self.has...
ab55d6ca0b5c4ca2e0edbc7e51d64c7b62786976 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/ab55d6ca0b5c4ca2e0edbc7e51d64c7b62786976/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 4672, 320, 273, 365, 18, 2761, 11599, 18, 768, 2864, 18, 2640, 67, 768, 12, 8477, 2218, 18, 81, 6134, 833, 273, 5378, 309, 486, 365, 18, 5332, 1210, 1265, 2617, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3671, 12, 2890, 4672, 320, 273, 365, 18, 2761, 11599, 18, 768, 2864, 18, 2640, 67, 768, 12, 8477, 2218, 18, 81, 6134, 833, 273, 5378, 309, 486, 365, 18, 5332, 1210, 1265, 2617, 2932, ...
minargs, maxargs = probeArgCount(exc, maxprobe=20)
minargs, maxargs = probeArgCount(exc, maxprobe)
def findAllArgs(exc, maxprobe): minargs, maxargs = probeArgCount(exc, maxprobe=20) res = [] # for minargs args, we need to try combinations arglist = tuple([genArgsToTry(i) for i in range(minargs)]) for args in cartesian(*arglist): try: probe = exc(*args) res.append(args) works = refreshArgs(args) break except Exceptio...
6779bad902742cb87d4bfc4d7f420f2edcb50621 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6779bad902742cb87d4bfc4d7f420f2edcb50621/_enum_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11135, 2615, 12, 10075, 16, 943, 27230, 4672, 1131, 1968, 16, 943, 1968, 273, 10695, 4117, 1380, 12, 10075, 16, 943, 27230, 13, 400, 273, 5378, 468, 364, 1131, 1968, 833, 16, 732, 1608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11135, 2615, 12, 10075, 16, 943, 27230, 4672, 1131, 1968, 16, 943, 1968, 273, 10695, 4117, 1380, 12, 10075, 16, 943, 27230, 13, 400, 273, 5378, 468, 364, 1131, 1968, 833, 16, 732, 1608, ...
results_final = search_results_intersect_with_a_hitlist(req, results_final, search_in_bibrec(day1, day2), fallback=1, fallbacktext="No match within your time limits, "\ "discarding this condition...")
results_final = intersect_results_with_hitset(req, results_final, search_unit_in_bibrec(day1, day2), ap, aptext="No match within your time limits, "\ "discarding this condition...")
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg="10", sf="", so="d", sp="", of="hb", ot="", as="0", p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc="0", jrec="0", recid="-1", recidb="-1", sysno="", id="-1", idb="-1", sysnb="", action="SEARCH", d1y="", d1m="", d1...
ecbca079c2ffbb7166e391821982c873c23535a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/ecbca079c2ffbb7166e391821982c873c23535a2/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
return self.defaultCfg[configType].Get(section, option, type=type)
return self.defaultCfg[configType].Get(section, option, type=type, raw=raw)
def GetOption(self, configType, section, option, default=None, type=None, warn_on_default=True): """ Get an option value for given config type and given general configuration section/option or return a default. If type is specified, return as type. Firstly the user configuration is checked, with a fallback to the defau...
2fd3ed50cda85d8554b4690444e698ea65ae164e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/2fd3ed50cda85d8554b4690444e698ea65ae164e/configHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1895, 12, 2890, 16, 642, 559, 16, 2442, 16, 1456, 16, 805, 33, 7036, 16, 618, 33, 7036, 16, 1894, 67, 265, 67, 1886, 33, 5510, 4672, 3536, 968, 392, 1456, 460, 364, 864, 642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 1895, 12, 2890, 16, 642, 559, 16, 2442, 16, 1456, 16, 805, 33, 7036, 16, 618, 33, 7036, 16, 1894, 67, 265, 67, 1886, 33, 5510, 4672, 3536, 968, 392, 1456, 460, 364, 864, 642, ...
return user.context_section_id
print "section id",type(user.context_section_id) return int(user.context_section_id)
def _get_section(self, cr, uid, context): user = self.pool.get('res.users').browse(cr,uid,uid,context=context) return user.context_section_id
cf177047b120d4c034e6d8b3baabd1cd1b388856 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cf177047b120d4c034e6d8b3baabd1cd1b388856/sale_crm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3464, 12, 2890, 16, 4422, 16, 4555, 16, 819, 4672, 729, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 1911, 16, 1911, 16, 2472, 33, 2472...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 67, 3464, 12, 2890, 16, 4422, 16, 4555, 16, 819, 4672, 729, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 1911, 16, 1911, 16, 2472, 33, 2472...
dsn_dict["password"] = password
dsn_dict["password"] = passwd
def __init__(self, dsn=None, host=None, port=None, db=None, user=None, passwd=None, usePygresql=False, **kw): global psycopg, pgdb self.usePygresql = usePygresql if usePygresql: if pgdb is None: import pgdb self.module = pgdb else: if psycopg is None: import psycopg self.module = psycopg
f25d44b2e5bc2d6abac74a28e0e3dde002bdc083 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/f25d44b2e5bc2d6abac74a28e0e3dde002bdc083/pgconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11676, 33, 7036, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 1319, 33, 7036, 16, 729, 33, 7036, 16, 19093, 33, 7036, 16, 999, 52, 4338, 455, 1217, 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, 1001, 2738, 972, 12, 2890, 16, 11676, 33, 7036, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 1319, 33, 7036, 16, 729, 33, 7036, 16, 19093, 33, 7036, 16, 999, 52, 4338, 455, 1217, 33, ...
ext.export_symbol_file = build_info.get('def_file')
if build_info.has_key('def_file'): self.warn("'def_file' element of build info dict " "no longer supported")
def check_extensions_list (self, extensions): """Ensure that the list of extensions (presumably provided as a command option 'extensions') is valid, i.e. it is a list of Extension objects. We also support the old-style list of 2-tuples, where the tuples are (ext_name, build_info), which are converted to Extension inst...
4af195eaba7e2658f3d6590c72fdaa3d40432e7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4af195eaba7e2658f3d6590c72fdaa3d40432e7f/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9489, 67, 1098, 261, 2890, 16, 4418, 4672, 3536, 12512, 716, 326, 666, 434, 4418, 261, 12202, 379, 6906, 2112, 487, 279, 1296, 1456, 296, 9489, 6134, 353, 923, 16, 277, 18, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9489, 67, 1098, 261, 2890, 16, 4418, 4672, 3536, 12512, 716, 326, 666, 434, 4418, 261, 12202, 379, 6906, 2112, 487, 279, 1296, 1456, 296, 9489, 6134, 353, 923, 16, 277, 18, 73...
_STACK_CHECK_SLOWPATH = lltype.Ptr(lltype.FuncType([lltype.Signed], lltype.Void))
def _build_malloc_fixedsize_slowpath(self): # ---------- first helper for the slow path of malloc ---------- mc = codebuf.MachineCodeBlockWrapper() if self.cpu.supports_floats: # save the XMM registers in for i in range(self.cpu.NUM_REGS):# the *caller* frame, from esp+8 mc.MOVSD_sx((WORD*2)+8*i, i) mc.SUB_rr(...
6bc9ade812f014c6aebce1452a76e194d9852757 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/6bc9ade812f014c6aebce1452a76e194d9852757/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 81, 9853, 67, 12429, 1467, 67, 87, 821, 803, 12, 2890, 4672, 468, 12181, 1122, 4222, 364, 326, 11816, 589, 434, 312, 9853, 12181, 6108, 273, 981, 4385, 18, 6981, 1085, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 81, 9853, 67, 12429, 1467, 67, 87, 821, 803, 12, 2890, 4672, 468, 12181, 1122, 4222, 364, 326, 11816, 589, 434, 312, 9853, 12181, 6108, 273, 981, 4385, 18, 6981, 1085, 1...
child1[i], child2[i] = childe2[i], child1[i]
child1[i], child2[i] = child2[i], child1[i]
def cxUniform(ind1, ind2, indpb): """Uniform crossover""" child1, child2 = copy.deepcopy(ind1), copy.deepcopy(ind2) size = min(len(ind1), len(ind2)) for i in xrange(size): if random.random() < indpb: child1[i], child2[i] = childe2[i], child1[i] try: child1.fitness.valid = False child2.fitness.valid = False except Att...
851e1d1fb64f1391c78b3337904527113a9f5c50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7315/851e1d1fb64f1391c78b3337904527113a9f5c50/toolbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9494, 13004, 12, 728, 21, 16, 1547, 22, 16, 1547, 5733, 4672, 3536, 13004, 6828, 1643, 8395, 1151, 21, 16, 1151, 22, 273, 1610, 18, 16589, 3530, 12, 728, 21, 3631, 1610, 18, 16589, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9494, 13004, 12, 728, 21, 16, 1547, 22, 16, 1547, 5733, 4672, 3536, 13004, 6828, 1643, 8395, 1151, 21, 16, 1151, 22, 273, 1610, 18, 16589, 3530, 12, 728, 21, 3631, 1610, 18, 16589, 353...
entries.append((original.time, event))
entries.append((original['time'], event))
def process_request(self, req): req.hdf['trac.href.blog'] = req.href.blog()
207f6e806dfc05d67d878ea3a6b4a6e6f0885272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/207f6e806dfc05d67d878ea3a6b4a6e6f0885272/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 26428, 3292, 313, 1077, 18, 7547, 18, 11439, 3546, 273, 1111, 18, 7547, 18, 11439, 1435, 2, 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, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 26428, 3292, 313, 1077, 18, 7547, 18, 11439, 3546, 273, 1111, 18, 7547, 18, 11439, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
if "title" not in taglist.keys(): return self.found_tags = True
def found_tag(self, decoder, something, taglist):
3e69b215dc239d79bf32256eda93e76cd783fa53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2369/3e69b215dc239d79bf32256eda93e76cd783fa53/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1392, 67, 2692, 12, 2890, 16, 8320, 16, 5943, 16, 1047, 1098, 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, 1392, 67, 2692, 12, 2890, 16, 8320, 16, 5943, 16, 1047, 1098, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
SyntaxError: keyword can't be an expression (<doctest test.test_syntax[27]>, line 1)
SyntaxError: keyword can't be an expression (<doctest test.test_syntax[28]>, line 1)
>>> def f(it, *varargs):
70e76ec773b0317f9a87ce674bacec91d8b5bdac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/70e76ec773b0317f9a87ce674bacec91d8b5bdac/test_syntax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 305, 16, 380, 1401, 1968, 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,...
[ 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, 4080, 1652, 284, 12, 305, 16, 380, 1401, 1968, 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, ...
data = band.ReadAsArray( srcwin[0], y, srcwin[2], 1 ) data = Numeric.reshape( data, (srcwin[2],) )
data = [] for band in bands: band_data = band.ReadAsArray( srcwin[0], y, srcwin[2], 1 ) band_data = Numeric.reshape( band_data, (srcwin[2],) ) data.append(band_data)
def Usage(): print 'Usage: gdal2xyz.py [-skip factor] [-srcwin xoff yoff width height]' print ' [-band b] srcfile [dstfile]' print sys.exit( 1 )
1751af84fcb417916499ba1d8ab65443a46d0eba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/1751af84fcb417916499ba1d8ab65443a46d0eba/gdal2xyz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10858, 13332, 1172, 296, 5357, 30, 15551, 287, 22, 17177, 18, 2074, 23059, 7457, 5578, 65, 23059, 4816, 8082, 619, 3674, 677, 3674, 1835, 2072, 3864, 1172, 296, 10402, 23059, 12752, 324, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10858, 13332, 1172, 296, 5357, 30, 15551, 287, 22, 17177, 18, 2074, 23059, 7457, 5578, 65, 23059, 4816, 8082, 619, 3674, 677, 3674, 1835, 2072, 3864, 1172, 296, 10402, 23059, 12752, 324, 6...
self.cwbias = 300
self.cwbias = 250
def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "AttributeStatistics", TRUE)
f6689f5082dfc572890d208ac104a0f4c27d0fec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/f6689f5082dfc572890d208ac104a0f4c27d0fec/OWAttributeStatistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 1499, 8569, 3113, 5383, 13, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 1499, 8569, 3113, 5383, 13, 2,...
if text[1] in ('!', '@'): if text[1:5] in ("info", "find"):
if text[1] in reply_chars: if text[1:5] in my_commands:
def inFilter(self, irc, msg): if msg.command != "PRIVMSG": return msg if not conf.supybot.defaultIgnore(): return msg text = msg.args[1].strip() if len(text) < 6: return msg user = get_user(msg) if user: return msg channel = self.__getChannel(msg.args[0]) if channel: if text[0] not in ('!', '@'): return msg if not text...
7fe0ec2c100ab98bfa0a7be55b8ad93bfc85a7c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/7fe0ec2c100ab98bfa0a7be55b8ad93bfc85a7c2/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 1586, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 309, 1234, 18, 3076, 480, 315, 7698, 58, 11210, 6877, 327, 1234, 309, 486, 2195, 18, 2859, 93, 4819, 18, 1886, 3777, 13332, 327, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 316, 1586, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 309, 1234, 18, 3076, 480, 315, 7698, 58, 11210, 6877, 327, 1234, 309, 486, 2195, 18, 2859, 93, 4819, 18, 1886, 3777, 13332, 327, 123...
self._test_format("%+10.f", -4200, grouping=1, out=('-4%s200' % self.sep).rjust(10)) self._test_format("%-10.f", -4200, grouping=1, out=('-4%s200' % self.sep).ljust(10))
try: self._test_format("%+10.f", -4200, grouping=1, out=('-4%s200' % self.sep).rjust(10)) self._test_format("%-10.f", -4200, grouping=1, out=('-4%s200' % self.sep).ljust(10)) except AssertionError: import pprint print pprint.pprint(locale.localeconv()) raise
def test_grouping_and_padding(self): self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20)) self._test_format("%+10.f", -4200, grouping=1, out=('-4%s200' % self.sep).rjust(10)) self._test_format("%-10.f", -4200, grouping=1, out=('-4%s200' % self.sep).ljust(10))
2b5501d03f50d0e542481d6ff3a4e62f690082fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2b5501d03f50d0e542481d6ff3a4e62f690082fe/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 25592, 67, 464, 67, 9598, 12, 2890, 4672, 365, 6315, 3813, 67, 2139, 27188, 3462, 18, 74, 3113, 300, 9452, 16, 12116, 33, 21, 16, 596, 2218, 17, 9452, 10332, 86, 3732, 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, 25592, 67, 464, 67, 9598, 12, 2890, 4672, 365, 6315, 3813, 67, 2139, 27188, 3462, 18, 74, 3113, 300, 9452, 16, 12116, 33, 21, 16, 596, 2218, 17, 9452, 10332, 86, 3732, 12, ...
self.isexit(1)
build.isexit(1)
def main():
50a5e458523f8585a5635bd886a6810fcb7bc3ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/50a5e458523f8585a5635bd886a6810fcb7bc3ae/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return if checkrpmdb: readRpmdb(rpmdbpath, verbose) return keepdata = 1 hdrtags = rpmtag if verify == 0 and nodigest == 1: keepdata = 0 if small: for i in importanttags.keys(): value = rpmtag[i] importanttags[i] = value importanttags[value[0]] = value hdrtags = importanttags for a in args: b = [a] if not a.endswith("....
elif checkrpmdb: if readRpmdb(rpmdbpath, distroverpkg, releasever, configfiles, buildroot, arch, verbose): return 1 else: keepdata = 1 hdrtags = rpmtag if verify == 0 and nodigest == 1: keepdata = 0 if small: for i in importanttags.keys(): value = rpmtag[i] importanttags[i] = value importanttags[value[0]] = value hdrta...
def main(): import getopt if len(sys.argv) <= 1: usage() return 0 verbose = 2 repo = [] strict = 0 nodigest = 0 payload = 1 wait = 0 verify = 1 small = 0 explode = 0 diff = 0 extract = 0 checksrpms = 0 rpmdbpath = "/var/lib/rpm/" checkarch = 0 buildroot = "" checkrpmdb = 0 (opts, args) = getopt.getopt(sys.argv[1:], "hq...
13be26721e21a4e961a8227db7d74cd35a0477dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/13be26721e21a4e961a8227db7d74cd35a0477dd/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 3988, 273, 576, 3538, 273, 5378, 5490, 273, 374, 14003, 360, 395, 273, 374, 2385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 336, 3838, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 3988, 273, 576, 3538, 273, 5378, 5490, 273, 374, 14003, 360, 395, 273, 374, 2385, ...
self.server.reply_error(self.request)
server.reply_error(self.request)
def handle(self, server): req = self.request env = self.prepare_env(req, server) try: try: result = server.application(env, self.start_response) self.data.extend(result) except: traceback.print_exc() try: sys.stderr.write('Failed to handle request:\n request = %s\n application = %s\n\n' % (req, server.application)) e...
6de81586bc1424867cb1db24b5a01a5d13c56423 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/6de81586bc1424867cb1db24b5a01a5d13c56423/wsgi2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1438, 4672, 1111, 273, 365, 18, 2293, 1550, 273, 365, 18, 9366, 67, 3074, 12, 3658, 16, 1438, 13, 775, 30, 775, 30, 563, 273, 1438, 18, 3685, 12, 3074, 16, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1438, 4672, 1111, 273, 365, 18, 2293, 1550, 273, 365, 18, 9366, 67, 3074, 12, 3658, 16, 1438, 13, 775, 30, 775, 30, 563, 273, 1438, 18, 3685, 12, 3074, 16, 365, ...
taskMgr.remove("titleText")
taskMgr.remove(self.uniqueName("titleText"))
def getDescription(zoneId, self=self): entId = self.zoneNum2entId.get(zoneId) if entId: ent = self.entities.get(entId) if ent and hasattr(ent, 'description'): return ent.description return None
cbecb2d3ea0eb29e99a7cc85b3149fa6a807d8ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/cbecb2d3ea0eb29e99a7cc85b3149fa6a807d8ab/DistributedLevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11056, 12, 3486, 548, 16, 365, 33, 2890, 4672, 3281, 548, 273, 365, 18, 3486, 2578, 22, 319, 548, 18, 588, 12, 3486, 548, 13, 309, 3281, 548, 30, 3281, 273, 365, 18, 9996, 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, 11056, 12, 3486, 548, 16, 365, 33, 2890, 4672, 3281, 548, 273, 365, 18, 3486, 2578, 22, 319, 548, 18, 588, 12, 3486, 548, 13, 309, 3281, 548, 30, 3281, 273, 365, 18, 9996, 18, 588, ...
raise LibraryThingError(_('LibraryThing.com timed out. Try again later.')) raise
err = LibraryThingError(_('LibraryThing.com timed out. Try again later.')) raise err else:
def cover_from_isbn(isbn, timeout=5.): global browser if browser is None: browser = _browser() _timeout = socket.getdefaulttimeout() socket.setdefaulttimeout(timeout) src = None try: src = browser.open('http://www.librarything.com/isbn/'+isbn).read().decode('utf-8', 'replace') except Exception, err: if isinstance(getat...
dcd258b52bd00408aad84bfc8a55454ad83a2246 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/dcd258b52bd00408aad84bfc8a55454ad83a2246/library_thing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5590, 67, 2080, 67, 291, 13392, 12, 291, 13392, 16, 2021, 33, 25, 18, 4672, 2552, 4748, 309, 4748, 353, 599, 30, 4748, 273, 389, 11213, 1435, 389, 4538, 273, 2987, 18, 588, 1886, 4538,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5590, 67, 2080, 67, 291, 13392, 12, 291, 13392, 16, 2021, 33, 25, 18, 4672, 2552, 4748, 309, 4748, 353, 599, 30, 4748, 273, 389, 11213, 1435, 389, 4538, 273, 2987, 18, 588, 1886, 4538,...
if self.status_overlay is not None: self.status_overlay.fade_out()
self.clear_status()
def _error_button_fired(self, event): """ removes the old overlay and replaces it with an error overlay """ if self.status_overlay is not None: # fade_out will remove the overlay when its done self.status_overlay.fade_out()
5b171fa3e7ccca600549f35c9e5f5d82a817535b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/5b171fa3e7ccca600549f35c9e5f5d82a817535b/status_overlay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1636, 67, 5391, 67, 74, 2921, 12, 2890, 16, 871, 4672, 3536, 7157, 326, 1592, 9218, 471, 12878, 518, 598, 392, 555, 9218, 3536, 309, 365, 18, 2327, 67, 17312, 353, 486, 599, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1636, 67, 5391, 67, 74, 2921, 12, 2890, 16, 871, 4672, 3536, 7157, 326, 1592, 9218, 471, 12878, 518, 598, 392, 555, 9218, 3536, 309, 365, 18, 2327, 67, 17312, 353, 486, 599, 30, ...
elif type(filename) == file: f = file else: raise TypeError('filename argument must be either a string or a file \ object.')
else: f = filename
def write_vasp(filename, atoms, label='', direct=False, sort=None): """Method to write VASP position (POSCAR/CONTCAR) files. Writes label, scalefactor, unitcell, # of various kinds of atoms, positions in cartesian or scaled coordinates (Direct), and constraints to file. Cartesian coordiantes is default and default lab...
e756775a25d79529f0d0811f784e112ac68fdd23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/e756775a25d79529f0d0811f784e112ac68fdd23/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4423, 84, 12, 3459, 16, 9006, 16, 1433, 2218, 2187, 2657, 33, 8381, 16, 1524, 33, 7036, 4672, 3536, 1305, 358, 1045, 776, 3033, 52, 1754, 261, 2419, 2312, 985, 19, 6067, 39, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4423, 84, 12, 3459, 16, 9006, 16, 1433, 2218, 2187, 2657, 33, 8381, 16, 1524, 33, 7036, 4672, 3536, 1305, 358, 1045, 776, 3033, 52, 1754, 261, 2419, 2312, 985, 19, 6067, 39, ...
self.esp_window.color = self.esp_window.normcolor = QColor_to_RGBf(color)
self.border_QColor = color self.jig.color = self.jig.normcolor = QColor_to_RGBf(color)
def change_border_color(self): '''Slot method change border color.''' color = QColorDialog.getColor(self.border_color, self, "ColorDialog")
520655b0839e9d192e34605d00ae60ec9bf13e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/520655b0839e9d192e34605d00ae60ec9bf13e2b/ESPWindowProp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 8815, 67, 3266, 12, 2890, 4672, 9163, 8764, 707, 2549, 5795, 2036, 1093, 6309, 2036, 273, 2238, 2957, 6353, 18, 588, 2957, 12, 2890, 18, 8815, 67, 3266, 16, 365, 16, 315, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 8815, 67, 3266, 12, 2890, 4672, 9163, 8764, 707, 2549, 5795, 2036, 1093, 6309, 2036, 273, 2238, 2957, 6353, 18, 588, 2957, 12, 2890, 18, 8815, 67, 3266, 16, 365, 16, 315, 295...
http://your.tracker.url.example/issue1
http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1
def testFollowupNosyAuthorAndCopy(self): self.doNewIssue() self.db.config.ADD_AUTHOR_TO_NOSY = 'yes' self.db.config.MESSAGES_TO_AUTHOR = 'yes' message = cStringIO.StringIO('''Content-Type: text/plain;
795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8328, 416, 50, 538, 93, 3594, 1876, 2951, 12, 2890, 4672, 365, 18, 2896, 1908, 12956, 1435, 365, 18, 1966, 18, 1425, 18, 8355, 67, 7131, 916, 67, 4296, 67, 3417, 7474, 273, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8328, 416, 50, 538, 93, 3594, 1876, 2951, 12, 2890, 4672, 365, 18, 2896, 1908, 12956, 1435, 365, 18, 1966, 18, 1425, 18, 8355, 67, 7131, 916, 67, 4296, 67, 3417, 7474, 273, 296, ...
ymin, xmin, xmax, ymax, inside = matches.groups() xmin, ymin, ymax, xmax = map(float, (xmin, ymin, ymax, xmax)) xmin -= 1. ; xmax += 1.
if not matches: l.error("Area not conformant") return None scoords, inside = matches.groups() xmin, ymin, ymax, xmax = (None,)*4 lcoords = scoords.split(',') if len(lcoords) != 5: l.warning("Coords look atypical: %s", lcoords) for scoord in lcoords: matches = self._regexp_coords.match(scoord) y,x = map(float,matches....
def get_city_contour(self, db, city):
3076b509d8205b532f1dc2ef2727c4b83a301238 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9326/3076b509d8205b532f1dc2ef2727c4b83a301238/street_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14240, 67, 1213, 477, 12, 2890, 16, 1319, 16, 12797, 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, 336, 67, 14240, 67, 1213, 477, 12, 2890, 16, 1319, 16, 12797, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
wxFrame.__init__(self, None, -1, 'BitTorrent download', size = wxSize(550, 260))
frame = wxFrame(None, -1, 'BitTorrent download', size = wxSize(550, 300)) self.frame = frame
def __init__(self, flag): wxFrame.__init__(self, None, -1, 'BitTorrent download', size = wxSize(550, 260)) self.flag = flag self.fin = false self.shown = false self.drawGUI()
430aa782d5a96eea7ba9a579f334d6b2c77bbde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/430aa782d5a96eea7ba9a579f334d6b2c77bbde2/btdownloadgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2982, 4672, 2623, 273, 7075, 3219, 12, 7036, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 16, 11631, 3719, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2982, 4672, 2623, 273, 7075, 3219, 12, 7036, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 16, 11631, 3719, 365...
cursor = CoincDatabaseConnection.cursor() for values in cursor.execute("SELECT * FROM sngl_burst WHERE event_id in (SELECT event_id FROM coinc_event_map WHERE table_name == 'sngl_burst' AND coinc_event_id == ?)", (self.coinc_event_id,)):
for values in CoincTable.connection.cursor().execute("SELECT * FROM sngl_burst WHERE event_id in (SELECT event_id FROM coinc_event_map WHERE table_name == 'sngl_burst' AND coinc_event_id == ?)", (self.coinc_event_id,)):
def sngl_bursts(self): cursor = CoincDatabaseConnection.cursor() for values in cursor.execute("SELECT * FROM sngl_burst WHERE event_id in (SELECT event_id FROM coinc_event_map WHERE table_name == 'sngl_burst' AND coinc_event_id == ?)", (self.coinc_event_id,)): yield SnglBurstTable._row_from_cols(values) for values in c...
bda9934b4450fe05001a0bec22c8b186ac2c3c12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/bda9934b4450fe05001a0bec22c8b186ac2c3c12/SnglBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3368, 80, 67, 70, 18593, 87, 12, 2890, 4672, 364, 924, 316, 28932, 71, 1388, 18, 4071, 18, 9216, 7675, 8837, 2932, 4803, 380, 4571, 272, 3368, 80, 67, 70, 18593, 4852, 871, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3368, 80, 67, 70, 18593, 87, 12, 2890, 4672, 364, 924, 316, 28932, 71, 1388, 18, 4071, 18, 9216, 7675, 8837, 2932, 4803, 380, 4571, 272, 3368, 80, 67, 70, 18593, 4852, 871, 67, ...
sys.exit(1)
sys.exit(EXIT_EOPTION) elif len(args) == 0: print __doc__ sys.exit(EXIT_EOPTION)
def main(): metric=True gnuplot=False xvar=var_dist yvar=var_ele imagefile=None tzname=None try: opts,args=getopt.getopt(sys.argv[1:],'hgEx:y:o:t:',['help',]) except: print __doc__ sys.exit(1) for o, a in opts: if o in ['-h','--help']: print __doc__ sys.exit(0) if o == '-E': metric=False if o == '-g': gnuplot=True if o...
57d740e668a260e73a20750b97e687c0e22703cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4805/57d740e668a260e73a20750b97e687c0e22703cb/gpxplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3999, 33, 5510, 314, 13053, 4032, 33, 8381, 619, 1401, 33, 1401, 67, 4413, 677, 1401, 33, 1401, 67, 6516, 1316, 768, 33, 7036, 6016, 529, 33, 7036, 775, 30, 1500, 16, 1968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3999, 33, 5510, 314, 13053, 4032, 33, 8381, 619, 1401, 33, 1401, 67, 4413, 677, 1401, 33, 1401, 67, 6516, 1316, 768, 33, 7036, 6016, 529, 33, 7036, 775, 30, 1500, 16, 1968...
logging.error("Invalid output from blockdev: '%s'", result.stdout) return False
_ThrowError("Invalid output from blockdev: '%s'", result.stdout)
def _CheckMetaSize(meta_device): """Check if the given meta device looks like a valid one.
9c793cfbdc4956a23121a93baaa6e80ff07ee12c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/9c793cfbdc4956a23121a93baaa6e80ff07ee12c/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1564, 2781, 1225, 12, 3901, 67, 5964, 4672, 3536, 1564, 309, 326, 864, 2191, 2346, 10192, 3007, 279, 923, 1245, 18, 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, 389, 1564, 2781, 1225, 12, 3901, 67, 5964, 4672, 3536, 1564, 309, 326, 864, 2191, 2346, 10192, 3007, 279, 923, 1245, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if announce: user_logger.info("Initiating %g-second track on target '%s'" % (duration, preferred_name(target))) session.target_visible(target, duration, operation='track')
def track(self, target, duration=20.0, drive_strategy='longest-track', label='track', announce=True): """Track a target.
929ec3421ef9b425e12acb88562baa17813e0515 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5243/929ec3421ef9b425e12acb88562baa17813e0515/observe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3298, 12, 2890, 16, 1018, 16, 3734, 33, 3462, 18, 20, 16, 14316, 67, 14914, 2218, 5748, 395, 17, 4101, 2187, 1433, 2218, 4101, 2187, 14281, 33, 5510, 4672, 3536, 4402, 279, 1018, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3298, 12, 2890, 16, 1018, 16, 3734, 33, 3462, 18, 20, 16, 14316, 67, 14914, 2218, 5748, 395, 17, 4101, 2187, 1433, 2218, 4101, 2187, 14281, 33, 5510, 4672, 3536, 4402, 279, 1018, 18, 2...
fileno = fp.fileno() except AttributeError, ImportError:
except:
def __init__(self, buf = None, pos = 0, filename = None, fp = None): if fp is not None: try: import mmap fileno = fp.fileno() except AttributeError, ImportError: # read whole file into memory buf = fp.read() pos = 0 else: # map the whole file into memory curpos = os.lseek(fileno, 0, 0) length = os.lseek(fileno, 0, 2) o...
89e4d819e47e716c2c27fb9b7f247c57bdfc18ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3689/89e4d819e47e716c2c27fb9b7f247c57bdfc18ed/antlrre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1681, 273, 599, 16, 949, 273, 374, 16, 1544, 273, 599, 16, 4253, 273, 599, 4672, 309, 4253, 353, 486, 599, 30, 775, 30, 1930, 30749, 1335, 30, 468, 855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1681, 273, 599, 16, 949, 273, 374, 16, 1544, 273, 599, 16, 4253, 273, 599, 4672, 309, 4253, 353, 486, 599, 30, 775, 30, 1930, 30749, 1335, 30, 468, 855...
g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable))
g['BINDIR'] = os.path.dirname(os.path.realpath(sys.executable))
def _init_nt(): """Initialize the module as appropriate for NT""" g = {} # set basic install directories g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1) g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1) # XXX hmmm.. a normal install puts include files here g['INCLUDEPY'] = get_python_inc...
395299a3688d612f262e87338b8d9f5c815ec06e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/395299a3688d612f262e87338b8d9f5c815ec06e/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 496, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 20064, 8395, 314, 273, 2618, 468, 444, 5337, 3799, 6402, 314, 3292, 14484, 1639, 882, 3546, 273, 336, 67, 8103, 67, 2941...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 496, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 20064, 8395, 314, 273, 2618, 468, 444, 5337, 3799, 6402, 314, 3292, 14484, 1639, 882, 3546, 273, 336, 67, 8103, 67, 2941...
if '_fileid' in self.__dict__: self._filenode = self._filelog.lookup(self._fileid) else: self._filenode = self._changectx.filenode(self._path)
if '_fileid' in self.__dict__: self._filenode = self._filelog.lookup(self._fileid) else: self._filenode = self._changectx.filenode(self._path)
def __getattr__(self, name): if name == '_changectx': self._changectx = changectx(self._repo, self._changeid) return self._changectx elif name == '_filelog': self._filelog = self._repo.file(self._path) return self._filelog elif name == '_changeid': self._changeid = self._filelog.linkrev(self._filenode) return self._cha...
4da21feef2e04698faa568d9b2524896f4988abc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4da21feef2e04698faa568d9b2524896f4988abc/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 2070, 24083, 386, 92, 4278, 365, 6315, 24083, 386, 92, 273, 9435, 386, 92, 12, 2890, 6315, 7422, 16, 365, 6315, 3427, 350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 1747, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 2070, 24083, 386, 92, 4278, 365, 6315, 24083, 386, 92, 273, 9435, 386, 92, 12, 2890, 6315, 7422, 16, 365, 6315, 3427, 350,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.BoolField.__init__(self, 258) else quickfix.BoolField.__init__(self, 258, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 6969, 28, 13, 469, 9549, 904, 18, 7464, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 7464, 974, 16186, 2738, 972, 12, 2890, 16, 6969, 28, 13, 469, 9549, 904, 18, 7464, 974, 16186, 2738, ...
componentType = self.__getComponentType()
componentType = self.__getComponentType(system,component)
def __installComponent(self,system,component): """ Install runit directory for the specified component """ # Check that the software for the component is installed componentType = self.__getComponentType() if componentType == 'unknown': return S_ERROR('Software for component %s_%s is not installed' % (system,component...
0de98dd4dbd644d0526d05f1d541804cf16ccb12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0de98dd4dbd644d0526d05f1d541804cf16ccb12/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5425, 1841, 12, 2890, 16, 4299, 16, 4652, 4672, 3536, 10284, 1086, 305, 1867, 364, 326, 1269, 1794, 3536, 225, 468, 2073, 716, 326, 17888, 364, 326, 1794, 353, 5876, 20065, 273, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5425, 1841, 12, 2890, 16, 4299, 16, 4652, 4672, 3536, 10284, 1086, 305, 1867, 364, 326, 1269, 1794, 3536, 225, 468, 2073, 716, 326, 17888, 364, 326, 1794, 353, 5876, 20065, 273, 36...
allDone = False cats=[] while not allDone:
def categories(self, get_redirect=False): """Return a list of categories that the article is in.
4c1086264accc94050c3445b20c981e9cd7f56ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/4c1086264accc94050c3445b20c981e9cd7f56ae/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6477, 12, 2890, 16, 336, 67, 7590, 33, 8381, 4672, 3536, 990, 279, 666, 434, 6477, 716, 326, 7559, 353, 316, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6477, 12, 2890, 16, 336, 67, 7590, 33, 8381, 4672, 3536, 990, 279, 666, 434, 6477, 716, 326, 7559, 353, 316, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...