rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
dyndnsHost);
theDyndnsHost);
public void save() { String dyndnsHost = (String) mydnsndsModel.getValue(); if (!StringUtils.isBlank(dyndnsHost)) { ConfigurationEntry.DYNDNS_HOSTNAME.setValue(getController(), dyndnsHost); } else { ConfigurationEntry.DYNDNS_HOSTNAME.removeValue(getControlle...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/2c7f60a3745b4381aa2a4602b35d8d89b1bf571a/DynDnsSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/DynDnsSettingsTab.java
if (!StringUtils.isBlank(dyndnsHost)) {
if (!StringUtils.isBlank(theDyndnsHost)) {
public void save() { String dyndnsHost = (String) mydnsndsModel.getValue(); if (!StringUtils.isBlank(dyndnsHost)) { ConfigurationEntry.DYNDNS_HOSTNAME.setValue(getController(), dyndnsHost); } else { ConfigurationEntry.DYNDNS_HOSTNAME.removeValue(getControlle...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/2c7f60a3745b4381aa2a4602b35d8d89b1bf571a/DynDnsSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/DynDnsSettingsTab.java
String password = new String(dyndnsPasswordField.getPassword()); if (!StringUtils.isBlank(password)) {
String thePassword = new String(dyndnsPasswordField.getPassword()); if (!StringUtils.isBlank(thePassword)) {
public void save() { String dyndnsHost = (String) mydnsndsModel.getValue(); if (!StringUtils.isBlank(dyndnsHost)) { ConfigurationEntry.DYNDNS_HOSTNAME.setValue(getController(), dyndnsHost); } else { ConfigurationEntry.DYNDNS_HOSTNAME.removeValue(getControlle...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/2c7f60a3745b4381aa2a4602b35d8d89b1bf571a/DynDnsSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/DynDnsSettingsTab.java
password);
thePassword);
public void save() { String dyndnsHost = (String) mydnsndsModel.getValue(); if (!StringUtils.isBlank(dyndnsHost)) { ConfigurationEntry.DYNDNS_HOSTNAME.setValue(getController(), dyndnsHost); } else { ConfigurationEntry.DYNDNS_HOSTNAME.removeValue(getControlle...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/2c7f60a3745b4381aa2a4602b35d8d89b1bf571a/DynDnsSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/DynDnsSettingsTab.java
filename.append((char) longNameData[pos]);
filename.append((char) (longNameData[pos] & 0xff));
public TarEntry getNextEntry() throws TarException, IOException { TarEntry entry = getNextEntryInternal(); if(entry != null && entry.getName().equals("././@LongLink")) { //$NON-NLS-1$ // This is a GNU extension for doing long filenames. // We get a file called ././@LongLink which just contains // the real path...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fc340a58ce4ce529a70a0a81dc379930e289590/TarInputStream.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
name.append((char) header[pos]);
name.append((char) (header[pos] & 0xff));
TarEntry getNextEntryInternal() throws TarException, IOException { byte[] header = new byte[512]; int pos = 0; int i; if(firstEntry != null) { TarEntry entryReturn = firstEntry; firstEntry = null; return entryReturn; } while(nextEntry > 0) { long ret = in.skip(nextEntry); if(ret < 0) { throw new IOE...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fc340a58ce4ce529a70a0a81dc379930e289590/TarInputStream.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
prefix.append((char) header[pos]);
prefix.append((char) (header[pos] & 0xff));
TarEntry getNextEntryInternal() throws TarException, IOException { byte[] header = new byte[512]; int pos = 0; int i; if(firstEntry != null) { TarEntry entryReturn = firstEntry; firstEntry = null; return entryReturn; } while(nextEntry > 0) { long ret = in.skip(nextEntry); if(ret < 0) { throw new IOE...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fc340a58ce4ce529a70a0a81dc379930e289590/TarInputStream.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
sum += header[i];
sum += header[i] & 0xff;
private long headerChecksum(byte[] header) { long sum = 0; for(int i = 0; i < 512; i++) { sum += header[i]; } return sum; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fc340a58ce4ce529a70a0a81dc379930e289590/TarInputStream.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
private boolean isValidTarHeader(byte[] header) { long fileChecksum, calculatedChecksum; int pos, i; pos = 148; StringBuffer checksumString = new StringBuffer(); for(i = 0; i < 8; i++) { if(header[pos + i] == 0 || !Character.isDigit((char) header[pos + i])) break; checksumString.append((char) header[pos +...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fc340a58ce4ce529a70a0a81dc379930e289590/TarInputStream.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
Border border = c.getCurrentStyle().getBorderWidth(c.getCtx());
BorderPropertySet border = c.getCurrentStyle().getBorder(c.getCtx());
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
int tx = (int)margin.left() + border.left + (int)padding.left(); int ty = (int)margin.top() + border.top + (int)padding.top();
int tx = (int)margin.left() + (int)border.left() + (int)padding.left(); int ty = (int)margin.top() + (int)border.top() + (int)padding.top();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
c.shrinkExtents(tx + (int)margin.right() + border.right + (int)padding.right(), ty + (int)margin.bottom() + border.bottom + (int)padding.bottom());
c.shrinkExtents(tx + (int)margin.right() + (int)border.right() + (int)padding.right(), ty + (int)margin.bottom() + (int)border.bottom() + (int)padding.bottom());
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
tableBox.leftPadding = border.left + (int)padding.left();
tableBox.leftPadding = (int)border.left() + (int)padding.left();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
tableBox.rightPadding = border.right + (int)margin.right();
tableBox.rightPadding = (int)border.right() + (int)margin.right();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
tableBox.height = (int)margin.top() + border.top + (int)padding.top() + tableBox.height + (int)padding.bottom() + border.bottom + (int)margin.bottom();
tableBox.height = (int)margin.top() + (int)border.top() + (int)padding.top() + tableBox.height + (int)padding.bottom() + (int)border.bottom() + (int)margin.bottom();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
Border border = c.getCurrentStyle().getBorderWidth(c.getCtx());
BorderPropertySet border = c.getCurrentStyle().getBorder(c.getCtx());
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
cell.leftPadding = border.left + (int)padding.left(); cell.rightPadding = (int)padding.right() + border.right; int tx = border.left + (int)padding.left(); int ty = border.top + (int)padding.top();
cell.leftPadding = (int)border.left() + (int)padding.left(); cell.rightPadding = (int)padding.right() + (int)border.right(); int tx = (int)border.left() + (int)padding.left(); int ty = (int)border.top() + (int)padding.top();
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
c.shrinkExtents(tx + border.right + (int)padding.right(), ty + border.bottom + (int)padding.bottom());
c.shrinkExtents(tx + (int)border.right() + (int)padding.right(), ty + (int)border.bottom() + (int)padding.bottom());
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
cell.height = border.top + (int)padding.top() + cell.height + (int)padding.bottom() + border.bottom;
cell.height = (int)border.top() + (int)padding.top() + cell.height + (int)padding.bottom() + (int)border.bottom();
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
Border border = c.getCurrentStyle().getBorderWidth(c.getCtx());
BorderPropertySet border = c.getCurrentStyle().getBorder(c.getCtx());
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
row.leftPadding = border.left; row.rightPadding = border.right;
row.leftPadding = (int)border.left(); row.rightPadding = (int)border.right();
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
int tx = border.left; int ty = border.top;
int tx = (int)border.left(); int ty = (int)border.top();
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
c.shrinkExtents(tx + border.right, ty + border.bottom);
c.shrinkExtents(tx + (int)border.right(), ty + (int)border.bottom());
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
row.height = border.top + row.height + border.bottom;
row.height = (int)border.top() + row.height + (int)border.bottom();
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/clean/src/java/org/xhtmlrenderer/table/TableBoxing.java
if ((box.getNode() != null &&
if ((box.hasNode() &&
public void mouseDragged(MouseEvent e) { if (e.getComponent() instanceof BasicPanel) { panel = (BasicPanel) e.getComponent(); Box box = panel.findBox(e.getX(), e.getY()); if (box == null) { return; } // if box is text node then start selec...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d508e9a872dba49f2e2897db7dde2a08b2e6fd2b/SelectionMouseListener.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/SelectionMouseListener.java
java.lang.String abContactPK) throws com.liferay.portlet.addressbook.NoSuchListException, com.liferay.portlet.addressbook.NoSuchContactException, com.liferay.portal.SystemException {
java.lang.String abContactPK) throws com.liferay.portal.SystemException {
public static boolean containsABContact(java.lang.String pk, java.lang.String abContactPK) throws com.liferay.portlet.addressbook.NoSuchListException, com.liferay.portlet.addressbook.NoSuchContactException, com.liferay.portal.SystemException { return getPersistence().containsABContact(pk, abContactPK); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8c4054ea8e295b5e5e4f4309b1d8379f8887c3af/ABListUtil.java/clean/portal-ejb/src/com/liferay/portlet/addressbook/service/persistence/ABListUtil.java
c.getRootLayer().ensureHasPage(c, block);
public static FloatLayoutResult generateFloated( final LayoutContext c, FloatedBlockContent content, int avail, LineBox curr_line, List pendingFloats) { FloatLayoutResult result = new FloatLayoutResult(); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(o...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java
boolean didRelayout = false;
boolean clearedPage = false; int clearDelta = 0;
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java
didRelayout = true; block.moveToNextPage(c);
clearDelta = block.moveToNextPage(c); clearedPage = true;
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java
if (! didRelayout && movedVertically) {
if ((movedVertically || (block.getStyle().isAvoidPageBreakInside() && block.crossesPageBreak(c))) && ! block.getStyle().isForcePageBreakBefore()) { if (clearedPage) { block.y -= clearDelta; block.calcCanvasLocation(); }
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java
folderAtBart.scanLocalFiles(true);
folderAtBart.forceScanOnNextMaintenance(); folderAtBart.maintain();
public void testOverwriteToRecycleAndRestore() { FolderInfo testFolder = new FolderInfo("testFolder", IdGenerator .makeId(), true); joinFolder(testFolder, new File(BASEDIR1), new File(BASEDIR2)); final Folder folderAtBart = getContollerBart().getFolderRepository() .getFold...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a2033aed8c2e3dee856e07baf9a94a6a3c6b699d/OverwriteAndRestoreRecycleBinTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/OverwriteAndRestoreRecycleBinTest.java
folderAtBart.scanLocalFiles(true);
folderAtBart.forceScanOnNextMaintenance(); folderAtBart.maintain();
public void testOverwriteToRecycleAndRestore() { FolderInfo testFolder = new FolderInfo("testFolder", IdGenerator .makeId(), true); joinFolder(testFolder, new File(BASEDIR1), new File(BASEDIR2)); final Folder folderAtBart = getContollerBart().getFolderRepository() .getFold...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a2033aed8c2e3dee856e07baf9a94a6a3c6b699d/OverwriteAndRestoreRecycleBinTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/OverwriteAndRestoreRecycleBinTest.java
setupTestFolder(SyncProfile.MANUAL_DOWNLOAD);
FolderRepository.USE_NEW_SCANNING_CODE = false; setupTestFolder(SyncProfile.PROJECT_WORK);
public void setUp() throws Exception { super.setUp(); setupTestFolder(SyncProfile.MANUAL_DOWNLOAD); folderScanner = new FolderScanner(getController()); folderScanner.start(); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9402f3340ffc862d68c810561cc8b61d0987b9af/FolderScannerTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/FolderScannerTest.java
public void testScanFiles() throws Exception { File file1 = TestHelper.createRandomFile(getFolder().getLocalBase()); File file2 = TestHelper .createRandomFile(new File( getFolder().getLocalBase(), "deep/path/verydeep/more/andmore/deep/path/verydeep/more/andmore...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9402f3340ffc862d68c810561cc8b61d0987b9af/FolderScannerTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/FolderScannerTest.java
public void testScanFiles() throws Exception { File file1 = TestHelper.createRandomFile(getFolder().getLocalBase()); File file2 = TestHelper .createRandomFile(new File( getFolder().getLocalBase(), "deep/path/verydeep/more/andmore/deep/path/verydeep/more/andmore...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9402f3340ffc862d68c810561cc8b61d0987b9af/FolderScannerTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/FolderScannerTest.java
File file4 = TestHelper.createRandomFile(getFolder().getLocalBase()); ScanResult result = folderScanner.scanFolder(getFolder()); assertTrue(ScanResult.ResultState.SCANNED == result.getResultState());
File file4 = TestHelper.createRandomFile(getFolder().getLocalBase()); ScanResult result = folderScanner.scanFolder(getFolder()); assertTrue(ScanResult.ResultState.SCANNED == result.getResultState());
public void testScanFiles() throws Exception { File file1 = TestHelper.createRandomFile(getFolder().getLocalBase()); File file2 = TestHelper .createRandomFile(new File( getFolder().getLocalBase(), "deep/path/verydeep/more/andmore/deep/path/verydeep/more/andmore...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9402f3340ffc862d68c810561cc8b61d0987b9af/FolderScannerTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/FolderScannerTest.java
public void testScanFiles() throws Exception { File file1 = TestHelper.createRandomFile(getFolder().getLocalBase()); File file2 = TestHelper .createRandomFile(new File( getFolder().getLocalBase(), "deep/path/verydeep/more/andmore/deep/path/verydeep/more/andmore...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9402f3340ffc862d68c810561cc8b61d0987b9af/FolderScannerTest.java/clean/src/test/de/dal33t/powerfolder/test/folder/FolderScannerTest.java
File jarFile = ruby.findFile(new File(i2Load.getValue()));
File jarFile = ruby.findFile(ruby, new File(i2Load.getValue()));
public static RubyObject load(Ruby ruby, RubyObject recv, RubyString i2Load) { if (i2Load.getValue().endsWith(".jar")) { File jarFile = ruby.findFile(new File(i2Load.getValue())); if (!jarFile.exists()) { ruby.getRuntime().getErrorStream().println("[Error] Jarfile + \"" +...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca0297671a9134bbd35c936224da11609c37fa62/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
File rbFile = ruby.findFile(new File(i2Load.getValue()));
File rbFile = ruby.findFile(ruby, new File(i2Load.getValue()));
public static RubyObject load(Ruby ruby, RubyObject recv, RubyString i2Load) { if (i2Load.getValue().endsWith(".jar")) { File jarFile = ruby.findFile(new File(i2Load.getValue())); if (!jarFile.exists()) { ruby.getRuntime().getErrorStream().println("[Error] Jarfile + \"" +...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca0297671a9134bbd35c936224da11609c37fa62/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
if (result) { alreadyClosed = true;
if (!result) { alreadyClosed = false;
public boolean close() { boolean result = super.close(); if (result) {//As this sometimes delayed cache if it was already closed alreadyClosed = true; } return result; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5324bf1c3671f0a471c21a9e94bd9877b9412c7f/ProgressMonitorJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
if(!ProgressManagerUtil.safeToOpen(ProgressMonitorJobsDialog.this)) return;
public void createWrapperedMonitor() { wrapperedMonitor = new IProgressMonitorWithBlocking() { IProgressMonitor superMonitor = ProgressMonitorJobsDialog.super .getProgressMonitor(); /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, * int) */...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5324bf1c3671f0a471c21a9e94bd9877b9412c7f/ProgressMonitorJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
if(!ProgressManagerUtil.safeToOpen(ProgressMonitorJobsDialog.this)) return;
private void openDialog() { if(!PlatformUI.isWorkbenchRunning()) return; PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){ /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { if(!alreadyClosed) open(); } }); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5324bf1c3671f0a471c21a9e94bd9877b9412c7f/ProgressMonitorJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
if(!ProgressManagerUtil.safeToOpen(ProgressMonitorJobsDialog.this)) return;
public void run() { if(!alreadyClosed) open(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5324bf1c3671f0a471c21a9e94bd9877b9412c7f/ProgressMonitorJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e);
uri = resolveURI(uri); img = (Image) imageCache.get(uri); if (img == null) { InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); imageCache.put(uri, img); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e); }
public Image getImage(String uri) { Image img = null; InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java
String dirlist = new DirectoryLister().list(file);
String dirlist = DirectoryLister.list(file);
public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java
return false;
uri = resolveURI(uri); return history.contains(uri);
public boolean isVisited(String uri) { return false; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java
if (uri.trim().equals("")) return baseUrl;
public String resolveURI(String uri) { URL ref = null; if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring(5); if (!short_url.startsWith("/")) { short_url = "/" + short_url; } ref = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java
suite.addTest(new TestSuite(TestReflectionCallback.class));
public static Test suite() throws Throwable { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(TestRubyObject.class)); suite.addTest(new TestSuite(TestRubyNil.class)); suite.addTest(new TestSuite(TestRubyHash.class)); suite.addTest(new TestSuite(TestRubyTime.class));...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f11f183fa177acbe7f7b2685c56f38fb3261856d/MainTestSuite.java/buggy/test/org/jruby/test/MainTestSuite.java
_marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true;
this.marginBottomOverride = marginBottomOverride; this.marginBottomOverrideSet = true;
public void setMarginBottomOverride(float marginBottomOverride) { _marginBottomOverride = marginBottomOverride; _marginBottomOverrideSet = true; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/01fe5f6295fdbc46194c11fca8c5668798faefcb/Box.java/buggy/src/java/org/xhtmlrenderer/render/Box.java
orderQtyControl.getTextControl().addListener( SWT.KeyUp, new Listener() { public void handleEvent(Event event) { validateForm(); } }); priceControl.getTextControl().addListener( SWT.KeyUp, new Listener() { public void handleEvent(Event event) { validateForm(); } }); validateForm();
public void createPartControl(Composite parent) { toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createForm(parent); // form.setText("Stock Order Ticket"); GridLayout layout = new GridLayout(); form.getBody().setLayout(layout); // FIXDataDictionaryManager.loadDictionary(FIXDataDictionaryManager.F...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/760b97873bbe62e8a1f4403abb6cd0e7cea1d7eb/StockOrderTicket.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/StockOrderTicket.java
validateForm();
protected void handleCancel() { clear(); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/760b97873bbe62e8a1f4403abb6cd0e7cea1d7eb/StockOrderTicket.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/StockOrderTicket.java
registerSelect(selector, obj, SelectionKey.OP_READ|SelectionKey.OP_ACCEPT|SelectionKey.OP_CONNECT);
registerSelect(selector, obj, SelectionKey.OP_READ|SelectionKey.OP_ACCEPT);
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/99948200169654423914f4ddafc12db3691908e7/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
List ret = new ArrayList(); ret.add(RubyArray.newArray(runtime, r)); ret.add(RubyArray.newArray(runtime, w)); ret.add(RubyArray.newArray(runtime, e));
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/99948200169654423914f4ddafc12db3691908e7/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
SelectableChannel channel = key.channel();
SelectableChannel channel = key.channel();
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/99948200169654423914f4ddafc12db3691908e7/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
if (r.size() == 0 && w.size() == 0 && e.size() == 0) { return runtime.getNil(); } List ret = new ArrayList(); ret.add(RubyArray.newArray(runtime, r)); ret.add(RubyArray.newArray(runtime, w)); ret.add(RubyArray.newArray(runtime, e));
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/99948200169654423914f4ddafc12db3691908e7/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
protected String processPath( HttpServletRequest req, HttpServletResponse res) throws IOException { String path = super.processPath(req, res); HttpSession ses = req.getSession(); // Current users String companyId = PortalUtil.getCompanyId(req); Map currentUsers = (Map)WebAppPool.get( companyId, WebKeys.CURRE...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/040c2681e4d9add708033fd90dece3a20844ca53/PortalRequestProcessor.java/clean/portal-ejb/src/com/liferay/portal/struts/PortalRequestProcessor.java
advangedSettingsTab = new AdvancedSettingsTab(getController());
advancedSettingsTab = new AdvancedSettingsTab(getController());
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
GeneralSettingsTab.SHOWADVANGEDSETTINGS)))
GeneralSettingsTab.SHOWADVANCEDSETTINGS)))
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
preferenceTabs.add(advangedSettingsTab); tabbedPane.addTab(advangedSettingsTab.getTabName(), null, advangedSettingsTab.getUIPanel(), null);
preferenceTabs.add(advancedSettingsTab); tabbedPane.addTab(advancedSettingsTab.getTabName(), null, advancedSettingsTab.getUIPanel(), null);
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
showAdvangedTab(Boolean.TRUE.equals(evt.getNewValue()));
showAdvancedTab(Boolean.TRUE.equals(evt.getNewValue()));
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
showAdvangedTab(Boolean.TRUE.equals(generalSettingsTab
showAdvancedTab(Boolean.TRUE.equals(generalSettingsTab
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
showAdvangedTab(Boolean.TRUE.equals(evt.getNewValue()));
showAdvancedTab(Boolean.TRUE.equals(evt.getNewValue()));
public void propertyChange(PropertyChangeEvent evt) { showAdvangedTab(Boolean.TRUE.equals(evt.getNewValue())); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/e567238e492556e7501856036b62f2d9cde213cf/PreferencesDialog.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/PreferencesDialog.java
public static int lineHeight(Context c, Node node) { return c.getGraphics().getFontMetrics(getFont(c,node)).getHeight();}
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static int lineHeight(Context c, Node node) { return c.getGraphics().getFontMetrics(getFont(c,node)).getHeight();}
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
} Font parent_font = FontUtil.getFont(c,parent); LineMetrics parent_metrics = null; if(!InlineLayout.isReplaced(node)) { if(!InlineLayout.isFloatedBlock(node,c)) { parent_metrics = parent_font.getLineMetrics(box.text, ((Graphics2D)c.getGraphics()).getFontRenderContext()); } else { parent_metrics = parent_font.getLine...
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
float parent_height = parent_metrics.getHeight(); String vertical_align = c.css.getStringProperty(elem,"vertical-align");
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
Font parent_font = FontUtil.getFont(c,parent); LineMetrics parent_metrics = null; if(!InlineLayout.isReplaced(node)) { if(!InlineLayout.isFloatedBlock(node,c)) { parent_metrics = parent_font.getLineMetrics(box.text, ((Graphics2D)c.getGraphics()).getFontRenderContext()); } else { parent_metrics = parent_font.ge...
if(vertical_align == null) { vertical_align = "baseline"; } box.baseline = 0; box.y = 0; box.vset = true; if(vertical_align.equals("baseline")) { Font font = FontUtil.getFont(c,node); FontMetrics fm = c.getGraphics().getFontMetrics(font); box.y -= fm.getDescent(); } if(vertical_align.equals("super")) { box.y = ...
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
float parent_height = parent_metrics.getHeight(); String vertical_align = c.css.getStringProperty(elem,"vertical-align"); if(!InlineLayout.isReplaced(node)) { box.height = FontUtil.lineHeight(c,node);
if(vertical_align.equals("sub")) { box.y = box.y - (int) parent_metrics.getStrikethroughOffset();
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
if(vertical_align == null) { vertical_align = "baseline";
if(vertical_align.equals("text-top")) { box.y = -((int)parent_height - box.height);
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
box.baseline = 0; box.y = 0; box.vset = true; if(vertical_align.equals("baseline")) {
if(vertical_align.equals("text-bottom")) { box.y = 0;
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
if(vertical_align.equals("super")) { box.y = box.y + (int) (parent_metrics.getStrikethroughOffset()*2.0); } if(vertical_align.equals("sub")) { box.y = box.y - (int) parent_metrics.getStrikethroughOffset(); } if(vertical_align.equals("text-top")) { box.y = -((int)parent_height - box.height); ...
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bc096001a7ca1e7d5b4aec95b8083245ec783d3a/FontUtil.java/clean/src/java/org/joshy/html/util/FontUtil.java
Iterator itr = list.iterator();
for (int j = 0; j < list.size(); j++) { MailFolder mailFolder = (MailFolder)list.get(j);
private static Store _getStore(HttpSession ses) throws FolderException, StoreException { try { Store store = (Store)ses.getAttribute(WebKeys.MAIL_STORE); if (store != null && !store.isConnected()) { if (_log.isInfoEnabled()) { _log.info("The store needs to be reconnected"); } cleanUp(ses); store ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e5aa935d844fa64c86fb5d9ed13910997b4f51ed/MailUtil.java/clean/portal-ejb/src/com/liferay/portlet/mail/util/MailUtil.java
while (itr.hasNext()) { MailFolder mailFolder = (MailFolder)itr.next();
String folderName = _getResolvedFolderName(mailFolder.getName());
private static Store _getStore(HttpSession ses) throws FolderException, StoreException { try { Store store = (Store)ses.getAttribute(WebKeys.MAIL_STORE); if (store != null && !store.isConnected()) { if (_log.isInfoEnabled()) { _log.info("The store needs to be reconnected"); } cleanUp(ses); store ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e5aa935d844fa64c86fb5d9ed13910997b4f51ed/MailUtil.java/clean/portal-ejb/src/com/liferay/portlet/mail/util/MailUtil.java