rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
generator = queryMultiAdapter((self.context, listing, self.request),
generator = queryMultiAdapter((self.context, listing_view, self.request),
def setgridstate(self): """Stores the current grid configuration (visible columns, column order, grouping, sorting etc.) persistent in dictstorage. """
eb07aae443e9b5ef84e5815a7d0c54fd6a2decc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/eb07aae443e9b5ef84e5815a7d0c54fd6a2decc1/tabbed.py
def update(self): self.pas_tool = getToolByName(self.context, 'acl_users') kwargs = {}
d0291419a78e721ba551c62b603b7d52a0f6fc29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/d0291419a78e721ba551c62b603b7d52a0f6fc29/listing.py
self.catalog = catalog = getToolByName(self.context, 'portal_catalog')
self.catalog = getToolByName(self.context, 'portal_catalog')
def search(self, kwargs): self.catalog = catalog = getToolByName(self.context, 'portal_catalog') query = self.build_query(**kwargs) self.contents = self.catalog(**query) self.len_results = len(self.contents)
54c1ff636972a7044a13af7a4d36959d2b05f8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/54c1ff636972a7044a13af7a4d36959d2b05f8ef/listing.py
def batch(self): return Batch(self.contents, pagesize=self.pagesize, pagenumber=self.pagenumber)
54c1ff636972a7044a13af7a4d36959d2b05f8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/54c1ff636972a7044a13af7a4d36959d2b05f8ef/listing.py
"""The multiple_pages in plone.app.batch has a bug
"""The multiple_pages in plone.app.batch has a bug
def multiple_pages(self): """The multiple_pages in plone.app.batch has a bug if size == pagesize."""
54c1ff636972a7044a13af7a4d36959d2b05f8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/54c1ff636972a7044a13af7a4d36959d2b05f8ef/listing.py
return len(self.contents) > self.pagesize
return self.len_results > self.pagesize
def multiple_pages(self): """The multiple_pages in plone.app.batch has a bug if size == pagesize."""
54c1ff636972a7044a13af7a4d36959d2b05f8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/54c1ff636972a7044a13af7a4d36959d2b05f8ef/listing.py
def load_request_parameters(self): """Load parameters such as page or filter from request. """ # if the view is grouped batching will be disabled if len(self.request.get('groupBy', '')): self.grouped = 1 if not self.grouped: # pagenumber self.batching_current_page = int(self.request.get('pagenumber', 1)) # XXX elimin...
3816f38a9ef478869fc1694ccbba0c6cdd49cf36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/3816f38a9ef478869fc1694ccbba0c6cdd49cf36/listing.py
def load_request_parameters(self): """Load parameters such as page or filter from request. """ # if the view is grouped batching will be disabled if len(self.request.get('groupBy', '')): self.grouped = 1 if not self.grouped: # pagenumber self.batching_current_page = int(self.request.get('pagenumber', 1)) # XXX elimin...
3816f38a9ef478869fc1694ccbba0c6cdd49cf36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/3816f38a9ef478869fc1694ccbba0c6cdd49cf36/listing.py
self.catalog = getToolByName(self.context,'portal_catalog')
self.catalog = catalog = getToolByName(self.context,'portal_catalog')
def search(self, kwargs): self.catalog = getToolByName(self.context,'portal_catalog') # if IATTopic.providedBy(self.context): # contentsMethod = self.context.queryCatalog # else: # contentsMethod = self.context.getFolderContents query = self.build_query(**kwargs) self.contents = self.catalog(**query) self.len_...
7f51c621619b4772a6d119cf98a0fe0f887f5e12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/7f51c621619b4772a6d119cf98a0fe0f887f5e12/views.py
self.contents = self.catalog(**query)
self.contents = catalog(**query)
def search(self, kwargs): self.catalog = getToolByName(self.context,'portal_catalog') # if IATTopic.providedBy(self.context): # contentsMethod = self.context.queryCatalog # else: # contentsMethod = self.context.getFolderContents query = self.build_query(**kwargs) self.contents = self.catalog(**query) self.len_...
7f51c621619b4772a6d119cf98a0fe0f887f5e12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/7f51c621619b4772a6d119cf98a0fe0f887f5e12/views.py
self._conditionCache.nail()
def _markColumnsAsDirty(self, colnames): """Mark column indexes in `colnames` as dirty.""" assert len(colnames) > 0 if self.indexed: colindexed, cols = self.colindexed, self.cols # Mark the proper indexes as dirty for colname in colnames: if colindexed[colname]: col = cols._g_col(colname) col.index.dirty = True # Put a...
2cac37f29e56475c0a4b7ea20a7de343dc237aad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12687/2cac37f29e56475c0a4b7ea20a7de343dc237aad/table.py
assert o == [[(1, 1), (2, 2)]]
assert o == [[(2, 2), (3, 3)]]
def test_zoom_in(): import numpy from mock import Mock, Fake sound = Mock({"numchan": 1}) sound.changed = Fake() data = numpy.array([1, 2, 3, 4], DTYPE) sound.frames = data g = Graph(sound) g.set_width(2) g.zoom_in() o = g.channels() assert o == [[(1, 1), (2, 2)]] g.zoom_out() g.set_width(4) o = g.channels() assert ...
69cf4246ab4a3cc586c634937be233514ec08042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/69cf4246ab4a3cc586c634937be233514ec08042/graphmodel.py
assert g.channels() == [[(1, 1), (2, 2)]]
assert g.channels() == [[(1, 2), (3, 3)]]
def test_zoom_in_on(): import numpy from mock import Mock, Fake sound = Mock({"numchan": 1}) sound.changed = Fake() data = numpy.array([1, 2, 3, 4], DTYPE) sound.frames = data g = Graph(sound) g.set_width(2) g.zoom_in_on(0) assert g.channels() == [[(1, 1), (2, 2)]] g.zoom_out() g.zoom_in_on(1) assert g.channels() == ...
69cf4246ab4a3cc586c634937be233514ec08042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/69cf4246ab4a3cc586c634937be233514ec08042/graphmodel.py
assert g.channels() == [[(2, 2), (3, 3)]]
assert g.channels() == [[(1, 2), (3, 3)]]
def test_zoom_in_on(): import numpy from mock import Mock, Fake sound = Mock({"numchan": 1}) sound.changed = Fake() data = numpy.array([1, 2, 3, 4], DTYPE) sound.frames = data g = Graph(sound) g.set_width(2) g.zoom_in_on(0) assert g.channels() == [[(1, 1), (2, 2)]] g.zoom_out() g.zoom_in_on(1) assert g.channels() == ...
69cf4246ab4a3cc586c634937be233514ec08042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/69cf4246ab4a3cc586c634937be233514ec08042/graphmodel.py
assert g.channels() == [[(3, 3), (4, 4)]]
assert g.channels() == [[(1, 2), (3, 3)]]
def test_zoom_in_on(): import numpy from mock import Mock, Fake sound = Mock({"numchan": 1}) sound.changed = Fake() data = numpy.array([1, 2, 3, 4], DTYPE) sound.frames = data g = Graph(sound) g.set_width(2) g.zoom_in_on(0) assert g.channels() == [[(1, 1), (2, 2)]] g.zoom_out() g.zoom_in_on(1) assert g.channels() == ...
69cf4246ab4a3cc586c634937be233514ec08042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/69cf4246ab4a3cc586c634937be233514ec08042/graphmodel.py
start, end = self._selection.pixels()
pstart, pend = self._selection.pixels() fstart, fend = self._selection.get()
def button_press(self, widget, event): if event.button == 1: self.pressed = True x = event.x start, end = self._selection.pixels() # a double click resumes selection. if event.type == gtk.gdk._2BUTTON_PRESS: self._selection.pin(x) # extend towards left elif self._selection.selected() and near(start, x): self._selection...
78106b15cb259367bc06f19aa30e72ab8b3187de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/78106b15cb259367bc06f19aa30e72ab8b3187de/gtkwaveform.py
elif self._selection.selected() and near(start, x): self._selection.pin(end)
elif self._selection.selected() and near(pstart, x): self._selection.set(fend, fend)
def button_press(self, widget, event): if event.button == 1: self.pressed = True x = event.x start, end = self._selection.pixels() # a double click resumes selection. if event.type == gtk.gdk._2BUTTON_PRESS: self._selection.pin(x) # extend towards left elif self._selection.selected() and near(start, x): self._selection...
78106b15cb259367bc06f19aa30e72ab8b3187de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/78106b15cb259367bc06f19aa30e72ab8b3187de/gtkwaveform.py
elif self._selection.selected() and near(end, x): self._selection.pin(start)
elif self._selection.selected() and near(pend, x): self._selection.set(fstart, fstart)
def button_press(self, widget, event): if event.button == 1: self.pressed = True x = event.x start, end = self._selection.pixels() # a double click resumes selection. if event.type == gtk.gdk._2BUTTON_PRESS: self._selection.pin(x) # extend towards left elif self._selection.selected() and near(start, x): self._selection...
78106b15cb259367bc06f19aa30e72ab8b3187de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/78106b15cb259367bc06f19aa30e72ab8b3187de/gtkwaveform.py
self.move_to(frame - (self._width - 1) * self.density)
self.move_to(frame - (self._width - 1) * self.density * 0.5)
def center_on(self, frame): self.move_to(frame - (self._width - 1) * self.density)
83e75f8adb7932e749e2250d4f5075ae5337d1e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/83e75f8adb7932e749e2250d4f5075ae5337d1e7/graphmodel.py
filename=self.filename())
filename=self.notebook.filename())
def save_selection_as(self, *args): dialog = SaveSelectionFileDialog(app.list_extensions(), parent=self, filename=self.filename()) filename = dialog.get_filename() if filename != None: self.notebook.save_selection_as(filename)
1b6993641d609e0b9fc873cf0fd3c60dfb934cbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11419/1b6993641d609e0b9fc873cf0fd3c60dfb934cbc/gtkui.py
realstart = str(start +1) realstop = str(stop +1)
realstart = str(start+1) realstop = str(stop)
def replace(self, start, stop, value): # FIXME right now this assumes that autoindent is ON # (the '!' in 'change!' means 'toggle autoindent' realstart = str(start +1) realstop = str(stop +1) if stop >= 2147483646: realstop = "$" self.vimp.sendkeys('<Esc>:%s,%s change!\n' % (realstart,realstop) ) for l in value: self.v...
cf2422e33dd9716f265d58dd532343472b3d02b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13262/cf2422e33dd9716f265d58dd532343472b3d02b9/vimhelper.py
self.vimp.sendkeys('<Esc>:%s,%s change!\n' % (realstart,realstop) )
if start == stop: self.vimp.sendkeys('<Esc>:%s,%s insert!\n' % (realstart,realstart) ) else: self.vimp.sendkeys('<Esc>:%s,%s change!\n' % (realstart,realstop) )
def replace(self, start, stop, value): # FIXME right now this assumes that autoindent is ON # (the '!' in 'change!' means 'toggle autoindent' realstart = str(start +1) realstop = str(stop +1) if stop >= 2147483646: realstop = "$" self.vimp.sendkeys('<Esc>:%s,%s change!\n' % (realstart,realstop) ) for l in value: self.v...
cf2422e33dd9716f265d58dd532343472b3d02b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13262/cf2422e33dd9716f265d58dd532343472b3d02b9/vimhelper.py
self.contents[original.linenum:original.linenum] = [str(original), str(addition)]
self.contents[original.linenum:original.linenum+1] = [str(original), str(addition)]
def split_todo(self, original, addition): r""" >>> i = TodoList([',INBOX','\tmust do X','\tmust do Y @CURRENT', ',CONTEXTS', '\t#FRED', '\t\tdo another thing @FOO']) >>> i.split_todo(i.current_todo(), '\tthen do Z') >>> j = i.contents >>> j[1] '\tmust do X' >>> j[2] '\tmust do Y @CURRENT' >>> j[3] '\tthen do Z' >>> j[4...
6b616ccbec08bab7e8a306c704c11e9eb50672aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13262/6b616ccbec08bab7e8a306c704c11e9eb50672aa/todo.py
self.contents[l:l+1] = [self.contents[l+1]]
self.contents[l:l+2] = [self.contents[l+1]]
def mark_current_done(self): r""" >>> i = TodoList([',INBOX','\tmust do X @CURRENT','\tmust do Y', ',CONTEXTS', '\t#FRED', '\t\tdo another thing @FOO']) >>> i.mark_current_done() >>> i.contents[0:3] [',INBOX', '\tmust do Y', ',CONTEXTS'] >>> 'must do X' in i.contents[-1] True >>> '@CURRENT' not in i.contents[-1] False ...
6b616ccbec08bab7e8a306c704c11e9eb50672aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13262/6b616ccbec08bab7e8a306c704c11e9eb50672aa/todo.py
print "usage: python imacro_asm.py infile.jsasm outfile.c.out"
print("usage: python imacro_asm.py infile.jsasm outfile.c.out")
def fail(msg, *args): raise ValueError("%s at %s:%d" % (msg % args, filename, lineno + 1))
cd07b6346d9daab6939714db95393ec5202f7198 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14351/cd07b6346d9daab6939714db95393ec5202f7198/imacro_asm.py
def recv(self, block_size=65536): cothread.select([self.sock.fileno()], [], [])
def recv(self, block_size=65536, timeout=0.2): cothread.select([self.sock.fileno()], [], [], timeout)
def recv(self, block_size=65536): cothread.select([self.sock.fileno()], [], []) chunk = self.sock.recv(block_size) if not chunk: raise self.EOF('Connection closed by server') return chunk
e750e2f78724dd5a961b836ce8de6bb6cb43efbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/e750e2f78724dd5a961b836ce8de6bb6cb43efbc/falib.py
squared = u'\u00B2'
def read(self): '''Can be called at any time to read the most recent buffer.''' return 1e-3 * self.buffer.read(self.notify_size)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
pass
self.show_x = show_x self.show_y = show_y
def show_xy(self, show_x, show_y): pass
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
return numpy.nanmin(value), numpy.nanmax(value)
ix = (self.show_x, self.show_y) ix = numpy.nonzero(ix)[0] return numpy.nanmin(value[:, ix]), numpy.nanmax(value[:, ix])
def get_minmax(self, value): value = self.compute(value) return numpy.nanmin(value), numpy.nanmax(value)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
def get_minmax(self, value): return numpy.nanmin(value), numpy.nanmax(value)
def get_minmax(self, value): return numpy.nanmin(value), numpy.nanmax(value)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
self.show_x = show_x self.show_y = show_y
mode_common.show_xy(self, show_x, show_y)
def show_xy(self, show_x, show_y): self.show_x = show_x self.show_y = show_y self.set_visible()
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
self.show_x = show_x self.show_y = show_y
mode_common.show_xy(self, show_x, show_y)
def show_xy(self, show_x, show_y): self.show_x = show_x self.show_y = show_y self.cxb.setVisible(show_x) self.cyb.setVisible(show_y)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
self.channel = int(self.ui.channel_id.text()) self.bpm_name = 'BPM id %d' % self.channel self.monitor.set_id(self.channel)
channel = int(self.ui.channel_id.text()) if channel != self.channel: self.channel = channel self.bpm_name = 'BPM id %d' % channel self.monitor.set_id(channel)
def set_channel_id(self): self.channel = int(self.ui.channel_id.text()) self.bpm_name = 'BPM id %d' % self.channel self.monitor.set_id(self.channel)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
if entry.has_key(a): for v in entry[a]: try: self.index[a][v].append(dn) except KeyError: self.index[a][v] = [ dn ]
if entry.has_key(a): for v in entry[a]: try: self.index[a][v].append(dn) except KeyError: self.index[a][v] = [ dn ]
def _processSingleResult(self,resultType,resultItem): if _entryResultTypes.has_key(resultType): # Search continuations are ignored dn,entry = resultItem self.allEntries[dn] = entry for a in self.indexed_attrs:
4468eeca6727d832d4e41bb8cb1158b809d7ebe1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4610/4468eeca6727d832d4e41bb8cb1158b809d7ebe1/async.py
print 'Generating manifest'
def generate_manifest(self, path, prefix, parts, parts_digest, file, key, iv, cert_path, ec2cert_path, private_key_path, target_arch, image_size, bundled_size, image_digest, user, kernel, ramdisk, mapping=None, product_codes=None, ancestor_ami_ids=None): print 'Generating manifest'
921d53a6601f7c37bc6754526216d2f437914efd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/921d53a6601f7c37bc6754526216d2f437914efd/__init__.py
def register_image(self, name=None, description=None, image_location=None, architecture=None, kernel_id=None, ramdisk_id=None, root_device_name=None, block_device_map=None): """ Register an image. :type name: string :param name: The name of the AMI. Valid only for EBS-based images. :type description: string ...
def endElement(self, name, value, connection): if name == 'virtualName': self.current_vname = value elif name == 'device' or name == 'deviceName': if hasattr(self, 'current_vname') and self.current_vname: self[self.current_vname] = value self.current_vname = None else: self.current_name = value
844dde60b532950921655831501010182095b1ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/844dde60b532950921655831501010182095b1ef/__init__.py
return boto.connect_ec2(
return EC2Connection(
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
844dde60b532950921655831501010182095b1ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/844dde60b532950921655831501010182095b1ef/__init__.py
filename = '%s.%d' % (file, i)
filename = '%s.%02d' % (file, i)
def split_file(self, file, chunk_size): parts = [] parts_digest = [] file_size = os.path.getsize(file) in_file = open(file, 'rb') number_parts = int(file_size / chunk_size) number_parts += 1 bytes_read = 0 for i in range(0, number_parts, 1): filename = '%s.%d' % (file, i) part_digest = sha() file_part = open(filename, ...
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
in_file = open(image_file, 'rb') sha_image = sha() buf = in_file.read(IMAGE_IO_CHUNK) while buf: sha_image.update(buf) buf = in_file.read(IMAGE_IO_CHUNK) return (image_size, hexlify(sha_image.digest()))
return image_size
def check_image(self, image_file, path): print 'Checking image' if not os.path.exists(path): os.makedirs(path) image_size = os.path.getsize(image_file) if self.debug: print 'Image Size:', image_size, 'bytes' in_file = open(image_file, 'rb') sha_image = sha() buf = in_file.read(IMAGE_IO_CHUNK) while buf: sha_image.updat...
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
print 'Tarring image' tar_file = '%s.tar.gz' % os.path.join(path, prefix) outfile = open(tar_file, 'wb')
targz = '%s.tar.gz' % os.path.join(path, prefix) targzfile = open(targz, 'w') tar_cmd = ['tar', 'ch', '-S']
def tarzip_image( self, prefix, file, path, ): Util().check_prerequisite_command('tar')
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
tar_cmd = ['tar', 'ch', '-S']
def tarzip_image( self, prefix, file, path, ): Util().check_prerequisite_command('tar')
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
p1 = Popen(tar_cmd, stdout=PIPE) p2 = Popen(['gzip'], stdin=p1.stdout, stdout=outfile) p2.communicate() outfile.close if os.path.getsize(tar_file) <= 0: print 'Could not tar image'
tarproc = subprocess.Popen(tar_cmd, stdout=subprocess.PIPE) zipproc = subprocess.Popen(['gzip'], stdin=subprocess.PIPE, stdout=targzfile) sha_image = sha() buf=os.read(tarproc.stdout.fileno(), 8196) while buf: zipproc.stdin.write(buf) sha_image.update(buf) buf=os.read(tarproc.stdout.fileno(), 8196) zipproc.stdin.clo...
def tarzip_image( self, prefix, file, path, ): Util().check_prerequisite_command('tar')
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
return tar_file
return (targz, hexlify(sha_image.digest()))
def tarzip_image( self, prefix, file, path, ): Util().check_prerequisite_command('tar')
ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ae7d9b2ec3a9eb66d32cee0ec2b18d182167148c/__init__.py
key = hex(BN.rand(16 * 8))[2:34].replace('L', 'c')
key = hex(BN.rand(17 * 8,top=0))[4:36]
def encrypt_image(self, file): print 'Encrypting image' enc_file = '%s.part' % file.replace('.tar.gz', '')
94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f/__init__.py
iv = hex(BN.rand(16 * 8))[2:34].replace('L', 'c')
iv = hex(BN.rand(17 * 8,top=0))[4:36]
def encrypt_image(self, file): print 'Encrypting image' enc_file = '%s.part' % file.replace('.tar.gz', '')
94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f/__init__.py
def encrypt_image(self, file): print 'Encrypting image' enc_file = '%s.part' % file.replace('.tar.gz', '')
94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/94d6381dbd78aa9a8a225d73a4bd9c6c7bbdc30f/__init__.py
class ConnectionFailed: def __init__(self): self.message = "Connection failed"
def __init__(self):
492c73ad37e922dabd34b09000a62e70c5350ae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/492c73ad37e922dabd34b09000a62e70c5350ae9/__init__.py
sys.exit(1)
raise ConnectionFailed
def make_connection(self):
492c73ad37e922dabd34b09000a62e70c5350ae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/492c73ad37e922dabd34b09000a62e70c5350ae9/__init__.py
sys.exit(1)
raise ConnectionFailed
def make_connection(self):
492c73ad37e922dabd34b09000a62e70c5350ae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/492c73ad37e922dabd34b09000a62e70c5350ae9/__init__.py
user_eucarc = os.path.join(os.getenv('HOME'), ".eucarc")
user_eucarc = None if 'HOME' in os.environ: os.path.join(os.getenv('HOME'), ".eucarc")
def setup_environ(self):
5f352c47d035434381a615a10a4dedcef5504993 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/5f352c47d035434381a615a10a4dedcef5504993/__init__.py
elif os.path.exists(user_eucarc):
elif user_eucarc is not None and os.path.exists(user_eucarc):
def setup_environ(self):
5f352c47d035434381a615a10a4dedcef5504993 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/5f352c47d035434381a615a10a4dedcef5504993/__init__.py
try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
Util().check_prerequisite_command(self.MAKEFS_CMD)
def make_fs(self, image_path): try: Util().check_prerequisite_command(self.MAKEFS_CMD) except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise UnsupportedException
def create_image(self, size_in_MB, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise UnsupportedException
def make_fs(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise UnsupportedException
def make_essential_devs(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
def usage(self, compat=False):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise NotFoundError
def get_environ(self, name): if self.environ.has_key(name):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
# def tarzip_image(self, prefix, file, path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
try: Util().check_prerequisite_command('tar') except NotFoundError: sys.exit(1)
Util().check_prerequisite_command('tar')
def tarzip_image(self, prefix, file, path): try: Util().check_prerequisite_command('tar') except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise CommandFailed
def tarzip_image(self, prefix, file, path): try: Util().check_prerequisite_command('tar') except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise UnsupportedException
def make_image(self, size_in_MB, excludes, prefix, destination_path): image_file = '%s.img' % (prefix) image_path = '%s/%s' % (destination_path, image_file) if not os.path.exists(destination_path): os.makedirs(destination_path)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
try: Util().check_prerequisite_command('losetup') except NotFoundError: sys.exit(1)
Util().check_prerequisite_command('losetup')
def create_loopback(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise CommandFailed
def create_loopback(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
try: Util().check_prerequisite_command('mount') except NotFoundError: sys.exit(1)
Util().check_prerequisite_command('mount')
def mount_image(self, image_path): try: Util().check_prerequisite_command('mount') except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
try: Util().check_prerequisite_command('umount') except NotFoundError: sys.exit(1)
Util().check_prerequisite_command('umount')
def unmount_image(self, mount_point): try: Util().check_prerequisite_command('umount') except NotFoundError: sys.exit(1)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
sys.exit(1)
raise UnsupportedException
def copy_volume(self, image_path, volume_path, excludes, generate_fstab, fstab_path): mount_point, loop_dev = self.mount_image(image_path)
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
while 1:
buf = in_file.read(IMAGE_IO_CHUNK) while buf: sha_image.update(buf)
def check_image(self, image_file, path): print 'Checking image' if not os.path.exists(path): os.makedirs(path) image_size = os.path.getsize(image_file) if self.debug: print 'Image Size:', image_size, 'bytes' in_file = open(image_file, 'rb') sha_image = sha() while 1: buf = in_file.read(IMAGE_IO_CHUNK) if not buf: break...
094c65f29d0ea2c435de5d40e3dfdf3aad6f3bfe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/094c65f29d0ea2c435de5d40e3dfdf3aad6f3bfe/__init__.py
if not buf: break sha_image.update(buf)
def check_image(self, image_file, path): print 'Checking image' if not os.path.exists(path): os.makedirs(path) image_size = os.path.getsize(image_file) if self.debug: print 'Image Size:', image_size, 'bytes' in_file = open(image_file, 'rb') sha_image = sha() while 1: buf = in_file.read(IMAGE_IO_CHUNK) if not buf: break...
094c65f29d0ea2c435de5d40e3dfdf3aad6f3bfe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/094c65f29d0ea2c435de5d40e3dfdf3aad6f3bfe/__init__.py
output = Popen(rsync_cmd, stdout=PIPE, stderr=PIPE).communicate()
pipe = Popen(rsync_cmd, stdout=PIPE, stderr=PIPE) output = pipe.communicate()
def copy_to_image(self, mount_point, volume_path, excludes):
8317f9af2ad7cff25a4566824f38f897264040b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/8317f9af2ad7cff25a4566824f38f897264040b8/__init__.py
if output[1]: raise CopyError
if pipe.returncode: if pipe.returncode in (23, 24): print "Warning: rsync reports files partially copied:" print output else: print "Error: rsync failed with return code %d" % pipe.returncode raise CopyError
def copy_to_image(self, mount_point, volume_path, excludes):
8317f9af2ad7cff25a4566824f38f897264040b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/8317f9af2ad7cff25a4566824f38f897264040b8/__init__.py
self.ec2_url = None self.s3_url = None
self.url = None
def __init__( self, short_opts=None, long_opts=None, is_s3=False, compat=False, ): self.ec2_user_access_key = None self.ec2_user_secret_key = None self.ec2_url = None self.s3_url = None self.config_file_path = None self.is_s3 = is_s3 if compat: self.secret_key_opt = 'S' self.access_key_opt = 'A' else: self.secret_key_o...
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
self.ec2_url = value
self.url = value
def __init__( self, short_opts=None, long_opts=None, is_s3=False, compat=False, ): self.ec2_user_access_key = None self.ec2_user_secret_key = None self.ec2_url = None self.s3_url = None self.config_file_path = None self.is_s3 = is_s3 if compat: self.secret_key_opt = 'S' self.access_key_opt = 'A' else: self.secret_key_o...
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
if not self.ec2_url: self.ec2_url = self.environ['EC2_URL'] if not self.ec2_url: self.ec2_url = \
if not self.url: self.url = self.environ['EC2_URL'] if not self.url: self.url = \
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
% self.ec2_url
% self.url
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
if not self.ec2_url: self.ec2_url = self.environ['S3_URL'] if not self.ec2_url: self.ec2_url = \
if not self.url: self.url = self.environ['S3_URL'] if not self.url: self.url = \
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
% self.ec2_url
% self.url
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
if self.ec2_url.find('https://') >= 0: self.ec2_url = self.ec2_url.replace('https://', '')
rslt = urlparse.urlparse(self.url) if rslt.scheme == 'https':
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
self.ec2_url = self.ec2_url.replace('http://', '')
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
self.host = self.ec2_url url_parts = self.ec2_url.split(':') if len(url_parts) > 1: self.host = url_parts[0] path_parts = url_parts[1].split('/', 1) if len(path_parts) > 1: self.port = int(path_parts[0]) self.service_path = self.service_path + path_parts[1] else: self.port = int(url_parts[1])
self.host = rslt.netloc l = self.host.split(':') if len(l) > 1: self.host = l[0] self.port = int(l[1]) if rslt.path: self.service_path = rslt.path
def make_connection(self): if not self.ec2_user_access_key: self.ec2_user_access_key = self.environ['EC2_ACCESS_KEY'] if not self.ec2_user_access_key: print 'EC2_ACCESS_KEY environment variable must be set.' raise ConnectionFailed
a12a64b1a029d43a86b59fd430318d27918f5918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/a12a64b1a029d43a86b59fd430318d27918f5918/__init__.py
block_dev_type = BlockDeviceType()
block_dev_type = EBSBlockDeviceType()
def parse_block_device_args(self, block_device_maps_args): block_device_map = BlockDeviceMapping() for block_device_map_arg in block_device_maps_args: parts = block_device_map_arg.split('=') if len(parts) > 1: device_name = parts[0] block_dev_type = BlockDeviceType() value_parts = parts[1].split(':') if value_parts[0]....
740076bde96f1c4e65ec11932035a943af26396b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/740076bde96f1c4e65ec11932035a943af26396b/__init__.py
tar_cmd = ['tar', 'c', '-S']
tar_cmd = ['tar', 'ch', '-S']
def tarzip_image( self, prefix, file, path, ): Util().check_prerequisite_command('tar')
ba09403a3f735051dbe76619f3f916c8c6b22296 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/ba09403a3f735051dbe76619f3f916c8c6b22296/__init__.py
os.path.join(os.getenv('HOME'), ".eucarc")
user_eucarc = os.path.join(os.getenv('HOME'), ".eucarc")
def setup_environ(self):
1a2c12260bf94378075c3f25202582c2b5728df4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/1a2c12260bf94378075c3f25202582c2b5728df4/__init__.py
version_string = """ Version: 1.2 (BSD)""" def version(self): return self.version_string
def make_essential_devs(self, image_path):
1f7cf9da66556f9ddc9fda27dc9c67a68bab3e27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/1f7cf9da66556f9ddc9fda27dc9c67a68bab3e27/__init__.py
file_path = filename.replace(relative_filename, '')
file_path=os.path.dirname(filename)
def get_file_path(self, filename):
684d89e45957977f374fbbe6fd7d219988168d5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/684d89e45957977f374fbbe6fd7d219988168d5c/__init__.py
print "Closed"
print "Mythfrontend connection closed" self.owner.socket_disconnect()
def handle_close(self): print "Closed" self.close()
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
To re-try, hold down the power button on your wiimote to disconnect it.
def handle_read(self): try: self.data = self.data + self.recv(8192) except: print """
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
self.close()
self.handle_close()
def handle_read(self): try: self.data = self.data + self.recv(8192) except: print """
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
self.ms.cmd('play speed normal')
if not (state['buttons'] & cwiid.BTN_B): self.ms.cmd('play speed normal')
def wmcb(self, messages): state = self.state for message in messages: if message[0] == cwiid.MESG_BTN: state["buttons"] = message[1] #elif message[0] == cwiid.MESG_STATUS: # print "\nStatus: ", message[1] elif message[0] == cwiid.MESG_ERROR: if message[1] == cwiid.ERROR_DISCONNECT: self.wm = None if self.ms is not None...
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
cmd += abs(speed)*"key right\n"
cmd += (speed / 5) * "key up\n" cmd += (speed % 5) * "key right\n"
def wmcb(self, messages): state = self.state for message in messages: if message[0] == cwiid.MESG_BTN: state["buttons"] = message[1] #elif message[0] == cwiid.MESG_STATUS: # print "\nStatus: ", message[1] elif message[0] == cwiid.MESG_ERROR: if message[1] == cwiid.ERROR_DISCONNECT: self.wm = None if self.ms is not None...
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
cmd += abs(speed)*"key left\n"
cmd += (-speed / 5) * "key down\n" cmd += (-speed % 5) * "key left\n"
def wmcb(self, messages): state = self.state for message in messages: if message[0] == cwiid.MESG_BTN: state["buttons"] = message[1] #elif message[0] == cwiid.MESG_STATUS: # print "\nStatus: ", message[1] elif message[0] == cwiid.MESG_ERROR: if message[1] == cwiid.ERROR_DISCONNECT: self.wm = None if self.ms is not None...
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
yield (path, kind, action, p_path, p_rev)
yield (to_unicode(path), kind, action, to_unicode(p_path), p_rev)
def get_changes(self): paths_seen = set() for parent in self.props.get('parent', [None]): for mode1,mode2,obj1,obj2,action,path1,path2 in \ self.repos.git.diff_tree(parent, self.rev, find_renames=True): path = path2 or path1 p_path, p_rev = path1, parent
5da44cf0e15b6f08b189f7691e4dd61bc08c5e49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/5da44cf0e15b6f08b189f7691e4dd61bc08c5e49/git_fs.py
elif GitCore.is_sha(rc): self.__rev_cache = None return self.verifyrev(rev)
def verifyrev(self, rev): "verify/lookup given revision object and return a sha id or None if lookup failed" rev = str(rev)
672da40cca475e493861bb93ed25f9a2fd06b771 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/672da40cca475e493861bb93ed25f9a2fd06b771/PyGIT.py
def verifyrev(self, rev): "verify/lookup given revision object and return a sha id or None if lookup failed" rev = str(rev)
672da40cca475e493861bb93ed25f9a2fd06b771 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/672da40cca475e493861bb93ed25f9a2fd06b771/PyGIT.py
self.log.info("enabled CachedRepository for '%s'" % dir)
self.log.debug("enabled CachedRepository for '%s'" % dir)
def rlookup_uid(_): return None
f5a9da3ce90f5ad571c6449f6a562737d8bfbbaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/f5a9da3ce90f5ad571c6449f6a562737d8bfbbaf/git_fs.py
self.log.info("disabled CachedRepository for '%s'" % dir)
self.log.debug("disabled CachedRepository for '%s'" % dir)
def rlookup_uid(_): return None
f5a9da3ce90f5ad571c6449f6a562737d8bfbbaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/f5a9da3ce90f5ad571c6449f6a562737d8bfbbaf/git_fs.py
user_,time_ = props[name] _str = user_ + " / " + time_.strftime('%Y-%m-%dT%H:%M:%SZ%z')
user_, time_ = props[name] _str = "%s (%s)" % (Chrome(self.env).format_author(context.req, user_), format_datetime(time_, tzinfo=context.req.tz))
def sha_link(sha): return self._format_sha_link(context, 'sha', sha, sha)
5fd9e124843a425644edf479aebf272cff97d120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/5fd9e124843a425644edf479aebf272cff97d120/git_fs.py
meta, fname = l.split('\t')
meta, fname = l.split('\t', 1)
def split_ls_tree_line(l): "split according to '<mode> <type> <sha> <size>\t<fname>'"
bc7258d4f4a6a99deb503758ef108735ff140a85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14465/bc7258d4f4a6a99deb503758ef108735ff140a85/PyGIT.py
if ("MODULE" not in opts): " -Wl,-soname=" + os.path.basename(dll)
if ("MODULE" not in opts): cmd += " -Wl,-soname=" + os.path.basename(dll)
def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = "link /nologo" if (platform.architecture()[0] == "64bit"): cmd += " /MACHINE:X64" if ("MFC" not in opts): cmd += " /NOD:MFC90.LIB /NOD:MFC80.LIB /NOD:LIBCMT" cmd += " /NOD:LIBCI.LIB /DEBUG" cmd += " /nod:libc /nod:libcmtd /nod:atlthunk /nod:atls" if (GetOrig...
b4ded0c5fe8af93b51de55ac7cbdd44413792565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b4ded0c5fe8af93b51de55ac7cbdd44413792565/makepanda.py
Description: The Panda3D free 3D engine Panda3D is a game engine which includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games. Panda3D is open source and free software under the revised BSD license, and can be used for both free and commercial game development at no...
Description: The Panda3D free 3D engine SDK Panda3D is a game engine which includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games. Panda3D is open source and free software under the revised BSD license, and can be used for both free and commercial game development a...
def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON...
b4ded0c5fe8af93b51de55ac7cbdd44413792565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b4ded0c5fe8af93b51de55ac7cbdd44413792565/makepanda.py
Description: The Panda3D free 3D engine This package contains the Panda3D runtime, which is necessary to run p3d files, and the mozilla browser plugin.
Description: Runtime binary and browser plugin for the Panda3D Game Engine This package contains the runtime distribution and browser plugin of the Panda3D engine. It allows you view webpages that contain Panda3D content and to run games created with Panda3D that are packaged as .p3d file.
def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON...
b4ded0c5fe8af93b51de55ac7cbdd44413792565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b4ded0c5fe8af93b51de55ac7cbdd44413792565/makepanda.py