rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
public static String capitalizeWords( String text ) { //u.p("start = -"+text+"-"); if ( text.length() == 0 ) { return text; } StringBuffer sb = new StringBuffer(); //u.p("text = -" + text + "-"); // do first letter //u.p("first = " + text.substring(0,1)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/clean/src/java/org/xhtmlrenderer/layout/TextUtil.java | ||
fViewer.setSorter(fSorter); | fViewer.setComparator(fComparator); | protected TreeViewer createTreeViewer(Composite parent) { int style = SWT.BORDER | (fAllowMultiple ? SWT.MULTI : SWT.SINGLE); fViewer = new TreeViewer(new Tree(parent, style)); fViewer.setContentProvider(fContentProvider); fViewer.setLabelProvider(fLabelProvider); fViewer.addSelec... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ElementTreeSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java |
for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; | if(!getFilterText().equals("")){ for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; } filterCombo.add(newText,0); | protected void createFilterControl(Composite parent) { filterCombo = new Combo(parent, SWT.DROP_DOWN | SWT.BORDER); filterCombo.addTraverseListener( new TraverseListener () { public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; if (getViewer().getTree().ge... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/185051d95063beb518a0b20ba3a638261ddf0988/FilteredComboTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredComboTree.java |
filterCombo.add(newText,0); | protected void createFilterControl(Composite parent) { filterCombo = new Combo(parent, SWT.DROP_DOWN | SWT.BORDER); filterCombo.addTraverseListener( new TraverseListener () { public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; if (getViewer().getTree().ge... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/185051d95063beb518a0b20ba3a638261ddf0988/FilteredComboTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredComboTree.java | |
for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; | if(!getFilterText().equals("")){ for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; } filterCombo.add(newText,0); | public void focusLost(FocusEvent e) { String [] textValues = filterCombo.getItems(); String newText = filterCombo.getText(); //Only add new entries for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; } filterCombo.add(newText,0); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/185051d95063beb518a0b20ba3a638261ddf0988/FilteredComboTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredComboTree.java |
filterCombo.add(newText,0); | public void focusLost(FocusEvent e) { String [] textValues = filterCombo.getItems(); String newText = filterCombo.getText(); //Only add new entries for (int i = 0; i < textValues.length; i++) { if(textValues[i].equals(newText)) return; } filterCombo.add(newText,0); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/185051d95063beb518a0b20ba3a638261ddf0988/FilteredComboTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredComboTree.java | |
public void nodeConnected(NodeManagerEvent e) { // Do not calculate, since memberJoined is always fired //calculateIfRequired(e); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | ||
log().verbose("calc stats blocked " + folder.getName()); | void calculate() { if (isCalculating) { log().verbose("calc stats blocked " + folder.getName()); return; } long millisPast = System.currentTimeMillis() - lastCalc; if (task != null) { log().verbose("calc stats blocked2 " + folder.getName()); re... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | |
log().verbose("calc stats blocked2 " + folder.getName()); | void calculate() { if (isCalculating) { log().verbose("calc stats blocked " + folder.getName()); return; } long millisPast = System.currentTimeMillis() - lastCalc; if (task != null) { log().verbose("calc stats blocked2 " + folder.getName()); re... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | |
if (millisPast > DELAY || totalFilesCount < MAX_ITEMS) { log().verbose("calc stats direct " + folder.getName()); | if (millisPast > DELAY || totalFilesCount < MAX_ITEMS) { | void calculate() { if (isCalculating) { log().verbose("calc stats blocked " + folder.getName()); return; } long millisPast = System.currentTimeMillis() - lastCalc; if (task != null) { log().verbose("calc stats blocked2 " + folder.getName()); re... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
log().verbose("calc stats delayed " + folder.getName()); | void calculate() { if (isCalculating) { log().verbose("calc stats blocked " + folder.getName()); return; } long millisPast = System.currentTimeMillis() - lastCalc; if (task != null) { log().verbose("calc stats blocked2 " + folder.getName()); re... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | |
log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); | if (logVerbose) { log().verbose( "calc stats " + folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); } | synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | ||
log().verbose( "Got " + deletedFiles.size() + " total deleted files on folder"); | if (logVerbose) { log() .verbose( "Got " + deletedFiles.size() + " total deleted files on folder"); } | synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
if ((downloadCounter == null || downloadCounter.getBytesExpected() != totalSize) && member.isMySelf()) { downloadCounter = new TransferCounter(memberSize, totalSize); | if ((downloadCounter == null || downloadCounter.getBytesExpected() != totalSize) && member.isMySelf()) { downloadCounter = new TransferCounter(memberSize, totalSize); | synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java | ||
log().verbose( "Recalculated: " + totalNormalFilesCount + " normal, " + totalExpectedFilesCount + " expected, " + totalDeletedFilesCount + " deleted"); | if (logVerbose) { log().verbose( "Recalculated: " + totalNormalFilesCount + " normal, " + totalExpectedFilesCount + " expected, " + totalDeletedFilesCount + " deleted"); } | synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
log().verbose("calc stats " +folder.getName() + " done @: " + (System.currentTimeMillis() - startTime)); | if (logVerbose) { log().verbose( "calc stats " + folder.getName() + " done @: " + (System.currentTimeMillis() - startTime)); } | synchronized void calculate0() { log().verbose("calc stats " +folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); isCalculating = true; //log().verbose("Recalculation statisitcs on " + folder); // clear statistics before syncPercentages.clear(); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
return downloadCounter; } | return downloadCounter; } | public TransferCounter getDownloadCounter() { return downloadCounter; } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
private void setCalculateIn(int timeToWait) { | private void setCalculateIn(int timeToWait) { | private void setCalculateIn(int timeToWait) { if (task != null) { return; } task = new MyTimerTask(); try { getController().schedule(task, timeToWait); } catch(IllegalStateException ise) { //ignore this happends if this shutdown in debug mo... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
} catch(IllegalStateException ise) { | } catch (IllegalStateException ise) { | private void setCalculateIn(int timeToWait) { if (task != null) { return; } task = new MyTimerTask(); try { getController().schedule(task, timeToWait); } catch(IllegalStateException ise) { //ignore this happends if this shutdown in debug mo... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
textField.setPreferredSize( new Dimension(275, 25) ); | textField.setPreferredSize( new Dimension(250, 25) ); | FilterPanel( SortedSet tags, DataDictionary dataDictionary ) { setLayout( new FlowLayout() ); enablePanel( false ); checkBox.setPreferredSize( new Dimension(25, 25) ); add( checkBox ); comboBox.setPreferredSize( new Dimension(200, 25) ); add( comboBox ); operatorComboBox.setPreferredSize( new Dime... | 55685 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55685/4363305f238db09ca57c1bff107f3d4d2476840e/CustomFilterDialog.java/clean/quickfix/logviewer/CustomFilterDialog.java |
Iterator itr = ImageServiceUtil.getImageById( | Iterator itr = ImageLocalServiceUtil.search( | protected void insertDataImage(ZipWriter zipWriter) throws Exception { StringBuffer sb = new StringBuffer(); Iterator itr = ImageServiceUtil.getImageById( COMPANY_ID + "%").iterator(); while (itr.hasNext()) { Image image = (Image)itr.next(); String imageId = image.getImageId(); boolean insert = true; if (... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/26bb21a1caec847cbb4c3a32f63cca4bbb012167/ExportAction.java/buggy/portal-ejb/src/com/liferay/portlet/journal/action/ExportAction.java |
createNoteControl(previewColumn); | public Control createContents(Composite parent) { WorkbenchHelp.setHelp( getControl(), IHelpContextIds.FONT_PREFERENCE_PAGE); parent.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (appliedDialogFont != null) appliedDialogFont.dispose(); } }); Font defaultF... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4247b3f8d2bdddb02b7be0b754c9dbade349f707/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | |
return FontDefinition.getDefinitions(); | if (definitions == null){ definitions = FontDefinition.getDefinitions(); Arrays.sort(definitions,new Comparator() { public int compare(Object o1, Object o2) { FontDefinition def1 = ((FontDefinition)o1); FontDefinition def2 = ((FontDefinition)o2); if(def1.getDefaultsTo() == null){ if(def2.getDefaultsTo() == null) ... | private FontDefinition[] getDefinitions() { return FontDefinition.getDefinitions(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4247b3f8d2bdddb02b7be0b754c9dbade349f707/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java |
FontData[] font = getFontDataSetting(definition); | FontData[] font; String fontId = definition.getId(); Object setting = fontDataSettings.get(fontId); if (DEFAULT_TOKEN.equals(setting)) font = getDefaultFont(definition); else font = (FontData[]) setting; | private void updateForSelectedFontDefinition(FontDefinition definition) { FontData[] font = getFontDataSetting(definition); valueControl.setText(StringConverter.asString(font[0])); previewer.setFont(font); String text = definition.getDescription(); if (text == null || text.length() == 0) descriptionText.setText... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4247b3f8d2bdddb02b7be0b754c9dbade349f707/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java |
if (DEFAULT_TOKEN.equals(setting) && definition.getDefaultsTo() != null) { FontDefinition mapped = getDefinition(definition.getDefaultsTo()); this.noteControl.setText( WorkbenchMessages.format( "FontsPreference.defaultsNote", new String[] { mapped.getLabel()})); } else this.noteControl.setText(""); | private void updateForSelectedFontDefinition(FontDefinition definition) { FontData[] font = getFontDataSetting(definition); valueControl.setText(StringConverter.asString(font[0])); previewer.setFont(font); String text = definition.getDescription(); if (text == null || text.length() == 0) descriptionText.setText... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4247b3f8d2bdddb02b7be0b754c9dbade349f707/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | |
if(!pendingUpdate.isEmpty()) | if(!pendingUpdate.isEmpty() && PlatformUI.isWorkbenchRunning()) | private UIJob getUpdateJob() { UIJob job = new UIJob(WorkbenchMessages.getString("DecorationScheduler.UpdateJobName")) {//$NON-NLS-1$ public IStatus runInUIThread(IProgressMonitor monitor) { //Check again in case someone has already cleared it out. synchronized (resultLock) { if (pendingUpdate.isEmpty()) ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/04515d9d58c4c5f95a233997534fadc66a378488/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java |
if(!pendingUpdate.isEmpty()) | if(!pendingUpdate.isEmpty() && PlatformUI.isWorkbenchRunning()) | public void done(IJobChangeEvent event) { //Reschedule if another update came in while we were working if(!pendingUpdate.isEmpty()) decorated(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/04515d9d58c4c5f95a233997534fadc66a378488/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java |
} else if (fieldID.intValue() == ORDERID_FIELDID) { value = new SortableOrderID(map.getString(fieldID)); | protected Object fieldValueFromMap(FieldMap map, Integer fieldID) { Object value = null; if (map != null){ try { FieldType fieldType = dataDictionary.getFieldTypeEnum(fieldID); if (fieldType.equals(FieldType.UtcTimeOnly)) { value = map.getUtcTimeOnly(fieldID); } else if (fieldType.equals(FieldType.Utc... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/ee7c62549053d0c46bbe43fac79ffa36b6bc4309/EnumTableFormat.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ui/EnumTableFormat.java | |
return runtime.getClasses().getObjectClass().getConstant(name); | return runtime.getObject().getConstant(name); | public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final ILoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadM... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
return runtime.getClasses().getObjectClass().getConstant(name); | return runtime.getObject().getConstant(name); | public IRubyObject load(Ruby runtime, String name) { loadService.require(file.toString()); return runtime.getClasses().getObjectClass().getConstant(name); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
return ((FileMetaClass) recv.getRuntime().getClasses().getFileClass()).open(args); | return ((FileMetaClass) recv.getRuntime().getClass("File")).open(args); | public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { String arg = args[0].convertToString().getValue(); // Should this logic be pushed into RubyIO Somewhere? if (arg.startsWith("|")) { String command = arg.substring(1); // exec process, create IO with proces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
if (args[0] == runtime.getClasses().getExceptionClass()) { | if (args[0] == runtime.getClass("Exception")) { | public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); Ruby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; switch (args.length) { cas... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
if (args[0] == runtime.getClasses().getExceptionClass()) { | if (args[0] == runtime.getClass("Exception")) { | public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); Ruby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; switch (args.length) { cas... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
if(floater.y + floater.height > box.y) { return floater.y + floater.height; | Uu.p("looking at floater: " + floater); Uu.p("floater parent = " + floater.getParent()); Uu.p("floater parent parent = " + floater.getParent().getParent()); Point fpt = (Point) offset_map.get(floater); Uu.p("offset = " + fpt); if(floater.y + floater.height - fpt.y > box.y) { return floater.y + floater.height - fpt.y; | public int getLeftDownDistance(Box box) { for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e684f323175603d6a16f846dd4c6610776992347/BlockFormattingContext.java/buggy/src/java/org/xhtmlrenderer/layout/BlockFormattingContext.java |
*/ return getDownDistance(box,left_floats); | public int getLeftDownDistance(Box box) { for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e684f323175603d6a16f846dd4c6610776992347/BlockFormattingContext.java/buggy/src/java/org/xhtmlrenderer/layout/BlockFormattingContext.java | |
for(int i=0; i< right_floats.size(); i++) { Box floater = (Box) right_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; | return getDownDistance(box,right_floats); | public int getRightDownDistance(Box box) { for(int i=0; i< right_floats.size(); i++) { Box floater = (Box) right_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e684f323175603d6a16f846dd4c6610776992347/BlockFormattingContext.java/buggy/src/java/org/xhtmlrenderer/layout/BlockFormattingContext.java |
Dimension dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, dim.height); | public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = Boxing.constructBox(c, new DomToplevelNode(_doc)); Boxing.layout(c, root, new DomToplevelNode(_doc)); _root = root; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/ITextRenderer.java/clean/src/java/org/xhtmlrenderer/pdf/ITextRenderer.java | |
public CallNode(ISourcePosition position, INode receiverNode, String name, IListNode argsNode) { | public CallNode(ISourcePosition position, INode receiverNode, String name, INode argsNode) { | public CallNode(ISourcePosition position, INode receiverNode, String name, IListNode argsNode) { super(position); this.receiverNode = receiverNode; this.name = name.intern(); this.argsNode = argsNode; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/CallNode.java/clean/src/org/jruby/ast/CallNode.java |
public IListNode getArgsNode() { | public INode getArgsNode() { | public IListNode getArgsNode() { return argsNode; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/CallNode.java/clean/src/org/jruby/ast/CallNode.java |
if (categorySorter == null) categorySorter = new CategorySorter(view.getTableSorter()); return categorySorter; | return (CategorySorter) view.getViewer().getSorter(); | public CategorySorter getCategorySorter() { if (categorySorter == null) categorySorter = new CategorySorter(view.getTableSorter()); return categorySorter; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/217b6589d5035a5b817f86d6bb0c1f85c6f6ff11/MarkerAdapter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java |
page.hideView(page.findView("org.eclipse.ui.internal.introview")); | public void doSetUp() throws Exception { // don't allow UITestCase to manage the deactivation of our window manageWindows(false); //window = (WorkbenchWindow)openTestWindow(); //initialize the window if (window == null) { window = (WorkbenchWindow) fWorkbench.openWorkbe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4f6b37eb59d91313a065cbb79e60aa2e2c259b8f/DragTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTest.java | |
window.getShell().setActive(); | public void doSetUp() throws Exception { // don't allow UITestCase to manage the deactivation of our window manageWindows(false); //window = (WorkbenchWindow)openTestWindow(); //initialize the window if (window == null) { window = (WorkbenchWindow) fWorkbench.openWorkbe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4f6b37eb59d91313a065cbb79e60aa2e2c259b8f/DragTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTest.java | |
public com.liferay.portal.model.Group getGroup(java.lang.String companyId, java.lang.String name) | public com.liferay.portal.model.Group getGroup(java.lang.String groupId) | public com.liferay.portal.model.Group getGroup(java.lang.String companyId, java.lang.String name) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return getService().getGroup(companyId, name); } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/321bc18d7c720086a32b2956af609c3eceb42f4a/GroupServiceEJBImpl.java/clean/portal-ejb/src/com/liferay/portal/service/ejb/GroupServiceEJBImpl.java |
return getService().getGroup(companyId, name); | return getService().getGroup(groupId); | public com.liferay.portal.model.Group getGroup(java.lang.String companyId, java.lang.String name) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return getService().getGroup(companyId, name); } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/321bc18d7c720086a32b2956af609c3eceb42f4a/GroupServiceEJBImpl.java/clean/portal-ejb/src/com/liferay/portal/service/ejb/GroupServiceEJBImpl.java |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
setModified(true); | public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
setModified(true); | public void setPrimKey(String primKey) { if (((primKey == null) && (_primKey != null)) || ((primKey != null) && (_primKey == null)) || ((primKey != null) && (_primKey != null) && !primKey.equals(_primKey))) { if (!XSS_ALLOW_PRIMKEY) { primKey = XSSUtil.strip(primKey); } _primKey = primKey; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
setModified(true); | public void setResourceId(String resourceId) { if (((resourceId == null) && (_resourceId != null)) || ((resourceId != null) && (_resourceId == null)) || ((resourceId != null) && (_resourceId != null) && !resourceId.equals(_resourceId))) { if (!XSS_ALLOW_RESOURCEID) { resourceId = XSSUtil.strip(resourceI... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
setModified(true); | public void setScope(String scope) { if (((scope == null) && (_scope != null)) || ((scope != null) && (_scope == null)) || ((scope != null) && (_scope != null) && !scope.equals(_scope))) { if (!XSS_ALLOW_SCOPE) { scope = XSSUtil.strip(scope); } _scope = scope; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
setModified(true); | public void setTypeId(String typeId) { if (((typeId == null) && (_typeId != null)) || ((typeId != null) && (_typeId == null)) || ((typeId != null) && (_typeId != null) && !typeId.equals(_typeId))) { if (!XSS_ALLOW_TYPEID) { typeId = XSSUtil.strip(typeId); } _typeId = typeId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ResourceModel.java/clean/portal-ejb/src/com/liferay/portal/model/ResourceModel.java | |
builder.addLabel(Translation .getTranslation((String) getUIController().getFolderCreateShortcutAction() .getValue(Action.NAME)), cc.xy(1, row)); | builder.addLabel((String) getUIController().getFolderCreateShortcutAction() .getValue(Action.NAME), cc.xy(1, row)); | protected Component getContent() { int row; initComponents(); FormLayout layout = new FormLayout( "right:pref, 7dlu, max(120dlu;pref):grow", "pref, 7dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 5dlu"); PanelBuilder builder = new PanelBuilde... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/dfbec8b36cc2f9084d26f39d65302614ff84101d/FolderJoinPanel.java/buggy/src/main/de/dal33t/powerfolder/ui/dialog/FolderJoinPanel.java |
cbCreateShortcut.setEnabled(getUIController().getFolderCreateShortcutAction() .getValue(CreateShortcutAction.SUPPORTED) == Boolean.TRUE); | private void initComponents() { profileBox = new SyncProfileSelectionBox(); profileBox.setRenderer(new PFListCellRenderer()); // Calculate recommended sync profile SyncProfile recommendedSyncProfile = getRecommendedSyncProfile(); log().verbose( "Recommended sync profile... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/dfbec8b36cc2f9084d26f39d65302614ff84101d/FolderJoinPanel.java/buggy/src/main/de/dal33t/powerfolder/ui/dialog/FolderJoinPanel.java | |
_buildSQL("indexes"); _buildSQL("sequences"); | public DBBuilder() { try { _buildSQL("portal"); _buildSQL("update-1.7.5-1.8.0"); _buildSQL("update-1.8.0-1.9.0"); _buildSQL("update-1.9.1-1.9.5"); _buildSQL("update-1.9.5-2.0.0"); _buildSQL("update-2.0.3-2.1.0"); _buildSQL("update-2.1.1-2.2.0"); _buildSQL("update-2.2.1-2.2.5"); _buildSQL("update-3.1... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f566ae0d81446f909b3eb44292b6bd00c6ee355d/DBBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/DBBuilder.java | |
sb.append(FileUtil.read("../sql/indexes.sql")); | sb.append(FileUtil.read("../sql/indexes/indexes-sybase.sql")); | private void _buildCreate() throws IOException { // DB2 File file = new File("../sql/create/create-db2.sql"); StringBuffer sb = new StringBuffer(); sb.append("drop database lportal\n"); sb.append("create database lportal\n"); sb.append("connect to lportal\n"); sb.append(_readSQL("../sql/portal/portal-db2.sql", ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f566ae0d81446f909b3eb44292b6bd00c6ee355d/DBBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/DBBuilder.java |
sb.append(FileUtil.read("../sql/sequences.sql")); | sb.append(FileUtil.read("../sql/sequences/sequences-sybase.sql")); | private void _buildCreate() throws IOException { // DB2 File file = new File("../sql/create/create-db2.sql"); StringBuffer sb = new StringBuffer(); sb.append("drop database lportal\n"); sb.append("create database lportal\n"); sb.append("connect to lportal\n"); sb.append(_readSQL("../sql/portal/portal-db2.sql", ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f566ae0d81446f909b3eb44292b6bd00c6ee355d/DBBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/DBBuilder.java |
if (fileName.equals("indexes")) { sybase = _removeBooleanIndexes(sybase); } | private void _buildSQL(String fileName) throws IOException { File file = new File("../sql/" + fileName + ".sql"); if (!file.exists()) { return; } // DB2 String db2 = _buildTemplate(fileName, _DB2, "db2"); db2 = _rewordDb2(db2); db2 = _removeLongInserts(db2); db2 = _removeNull(db2); db2 = StringUtil.replace(... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f566ae0d81446f909b3eb44292b6bd00c6ee355d/DBBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/DBBuilder.java | |
private void _buildSQL(String fileName) throws IOException { File file = new File("../sql/" + fileName + ".sql"); if (!file.exists()) { return; } // DB2 String db2 = _buildTemplate(fileName, _DB2, "db2"); db2 = _rewordDb2(db2); db2 = _removeLongInserts(db2); db2 = _removeNull(db2); db2 = StringUtil.replace(... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f566ae0d81446f909b3eb44292b6bd00c6ee355d/DBBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/DBBuilder.java | ||
q.setCacheable(true); | q.setCacheable(false); | public int getGroupsSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETGROUPSSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(q); qPos... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/PermissionPersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/PermissionPersistence.java |
q.setCacheable(true); | q.setCacheable(false); | public int getRolesSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETROLESSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(q); qPos.a... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/PermissionPersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/PermissionPersistence.java |
q.setCacheable(true); | q.setCacheable(false); | public int getUsersSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETUSERSSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(q); qPos.a... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/PermissionPersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/PermissionPersistence.java |
if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) { | if(box.getState() == 2) { | public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5ab8d19beb25fd96c93f800f8de2bacad5331774/BlockRendering.java/buggy/src/java/org/xhtmlrenderer/render/BlockRendering.java |
} else { if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) { BoxRendering.paint(c, box, false, restyle); } else { } | public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5ab8d19beb25fd96c93f800f8de2bacad5331774/BlockRendering.java/buggy/src/java/org/xhtmlrenderer/render/BlockRendering.java | |
java.lang.String articleId, double version, boolean incrementVersion, java.lang.String title, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirat... | java.lang.String companyId, java.lang.String articleId, double version, boolean incrementVersion, java.lang.String title, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int di... | public com.liferay.portlet.journal.model.JournalArticle updateArticle( java.lang.String articleId, double version, boolean incrementVersion, java.lang.String title, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/20988c69ddc86fd4750d64e3d9b7e9cef5b344d2/JournalArticleServiceEJBImpl.java/clean/portal-ejb/src/com/liferay/portlet/journal/service/ejb/JournalArticleServiceEJBImpl.java |
return getService().updateArticle(articleId, version, incrementVersion, title, content, type, structureId, templateId, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, | return getService().updateArticle(companyId, articleId, version, incrementVersion, title, content, type, structureId, templateId, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, | public com.liferay.portlet.journal.model.JournalArticle updateArticle( java.lang.String articleId, double version, boolean incrementVersion, java.lang.String title, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/20988c69ddc86fd4750d64e3d9b7e9cef5b344d2/JournalArticleServiceEJBImpl.java/clean/portal-ejb/src/com/liferay/portlet/journal/service/ejb/JournalArticleServiceEJBImpl.java |
log().warn(e); | log().verbose(e); | private void fireTableModelEvent(final TableModelEvent te) { Runnable runner = new Runnable() { public void run() { for (int i = 0; i < listeners.size(); i++) { TableModelListener listener = listeners.get(i); listener.tableChanged(te); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ae80922d12add98d19ba692fd60c44ee5989b7c1/NodeTableModel.java/clean/src/main/de/dal33t/powerfolder/ui/model/NodeTableModel.java |
baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir(); | baseDir = PrefsPropsUtil.getString( PropsUtil.AUTO_DEPLOY_DEPLOY_DIR); destDir = PrefsPropsUtil.getString(PropsUtil.AUTO_DEPLOY_DEST_DIR); | public AutoThemeDeployer() { try { baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir(); appServerType = ServerDetector.getServerId(); themeTaglibDTD = DeployUtil.getResourcePath("liferay-theme.tld"); utilTaglibDTD = DeployUtil.getResourcePath("liferay-util.tld");... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/AutoThemeDeployer.java/buggy/portal-ejb/src/com/liferay/portal/deploy/AutoThemeDeployer.java |
unpackWar = OmniadminUtil.getAutoDeployUnpackWar(); tomcatLibDir = OmniadminUtil.getAutoDeployTomcatLibDir(); | unpackWar = PrefsPropsUtil.getBoolean( PropsUtil.AUTO_DEPLOY_UNPACK_WAR); tomcatLibDir = PrefsPropsUtil.getString( PropsUtil.AUTO_DEPLOY_TOMCAT_LIB_DIR); | public AutoThemeDeployer() { try { baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir(); appServerType = ServerDetector.getServerId(); themeTaglibDTD = DeployUtil.getResourcePath("liferay-theme.tld"); utilTaglibDTD = DeployUtil.getResourcePath("liferay-util.tld");... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/AutoThemeDeployer.java/buggy/portal-ejb/src/com/liferay/portal/deploy/AutoThemeDeployer.java |
RubyClass rangeClass = ruby.defineClass("Range", ruby.getClasses().getObjectClass()); rangeClass.includeModule(ruby.getClasses().getEnumerableModule()); rangeClass.defineMethod("==", CallbackFactory.getMethod(RubyRange.class, "equal", IRubyObject.class)); rangeClass.defineMethod("===", CallbackFactory.getMethod(RubyR... | return new RangeDefinition(ruby).getType(); | public static RubyClass createRangeClass(Ruby ruby) { RubyClass rangeClass = ruby.defineClass("Range", ruby.getClasses().getObjectClass()); rangeClass.includeModule(ruby.getClasses().getEnumerableModule()); rangeClass.defineMethod("==", CallbackFactory.getMethod(RubyRange.class, "equal", IRubyO... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6b9214ce7eddbf977e000b96568d509d3c875c17/RubyRange.java/clean/src/org/jruby/RubyRange.java |
} | } else { IRubyObject currentObject = begin; String compareMethod = (isExclusive ? "<" : "<="); while (currentObject.callMethod(compareMethod, end).isTrue()) { size++; if (currentObject.equals(end)) { break; } currentObject = currentObject.callMethod("succ"); } } | public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6b9214ce7eddbf977e000b96568d509d3c875c17/RubyRange.java/clean/src/org/jruby/RubyRange.java |
c.setCurrentPage(i); | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e900e61ce3c01edb12a8561b3a8ac20539d8450a/BasicPanel.java/buggy/src/java/org/xhtmlrenderer/swing/BasicPanel.java | |
setModified(true); | public void setLayoutId(String layoutId) { if (((layoutId == null) && (_layoutId != null)) || ((layoutId != null) && (_layoutId == null)) || ((layoutId != null) && (_layoutId != null) && !layoutId.equals(_layoutId))) { if (!XSS_ALLOW_LAYOUTID) { layoutId = XSSUtil.strip(layoutId); } _layoutId = layo... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PortletPreferencesModel.java/clean/portal-ejb/src/com/liferay/portal/model/PortletPreferencesModel.java | |
setModified(true); | public void setOwnerId(String ownerId) { if (((ownerId == null) && (_ownerId != null)) || ((ownerId != null) && (_ownerId == null)) || ((ownerId != null) && (_ownerId != null) && !ownerId.equals(_ownerId))) { if (!XSS_ALLOW_OWNERID) { ownerId = XSSUtil.strip(ownerId); } _ownerId = ownerId; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PortletPreferencesModel.java/clean/portal-ejb/src/com/liferay/portal/model/PortletPreferencesModel.java | |
setModified(true); | public void setPortletId(String portletId) { if (((portletId == null) && (_portletId != null)) || ((portletId != null) && (_portletId == null)) || ((portletId != null) && (_portletId != null) && !portletId.equals(_portletId))) { if (!XSS_ALLOW_PORTLETID) { portletId = XSSUtil.strip(portletId); } _po... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PortletPreferencesModel.java/clean/portal-ejb/src/com/liferay/portal/model/PortletPreferencesModel.java | |
setModified(true); | public void setPreferences(String preferences) { if (((preferences == null) && (_preferences != null)) || ((preferences != null) && (_preferences == null)) || ((preferences != null) && (_preferences != null) && !preferences.equals(_preferences))) { if (!XSS_ALLOW_PREFERENCES) { preferences = XSSUtil.str... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PortletPreferencesModel.java/clean/portal-ejb/src/com/liferay/portal/model/PortletPreferencesModel.java | |
window.addPerspectiveListener(new IPerspectiveListener() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } | public FastViewBar(WorkbenchWindow theWindow) { window = theWindow; window.addPerspectiveListener(new IPerspectiveListener() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8349333e515e524ed2b1b345139540fef128774/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java | |
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { update(true); } | window.addPerspectiveListener(new IPerspectiveListener2() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, IWorkbenchPartReference partRef, String changeId) { if (page !=... | public FastViewBar(WorkbenchWindow theWindow) { window = theWindow; window.addPerspectiveListener(new IPerspectiveListener() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8349333e515e524ed2b1b345139540fef128774/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java |
public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } | public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } | public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { update(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8349333e515e524ed2b1b345139540fef128774/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java |
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { update(true); } | public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, IWorkbenchPartReference partRef, String changeId) { if (page != null && page == window.getActivePage() && page.getPerspective() == perspective) { ToolBar bar = fastViewBar.getControl(); if (changeId.equals(IWorkbenchPage.CHANGE_V... | public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { update(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8349333e515e524ed2b1b345139540fef128774/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java |
try { viewer.getControl().setRedraw(false); affectedChildren = delta.getAffectedChildren(IResourceDelta.ADDED); if (affectedChildren.length > 0) { Object[] affected = new Object[affectedChildren.length]; for (int i = 0; i < affectedChildren.length; i++) affected[i] = affectedChildren[i].getResource(); if (viewer i... | protected void processDelta(IResourceDelta delta) { // This method runs inside a syncExec. The widget may have been destroyed // by the time this is run. Check for this and do nothing if so. Control ctrl = viewer.getControl(); if (ctrl == null || ctrl.isDisposed()) return; // Get the affected resource IResource reso... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b5f0eb0a65d1407e3026d62a6393f1121d7c7e52/WorkbenchContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/model/WorkbenchContentProvider.java | |
affectedChildren = delta.getAffectedChildren(IResourceDelta.ADDED); if (affectedChildren.length > 0) { Object[] affected = new Object[affectedChildren.length]; for (int i = 0; i < affectedChildren.length; i++) affected[i] = affectedChildren[i].getResource(); if (viewer instanceof AbstractTreeViewer) { ((AbstractTreeV... | protected void processDelta(IResourceDelta delta) { // This method runs inside a syncExec. The widget may have been destroyed // by the time this is run. Check for this and do nothing if so. Control ctrl = viewer.getControl(); if (ctrl == null || ctrl.isDisposed()) return; // Get the affected resource IResource reso... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b5f0eb0a65d1407e3026d62a6393f1121d7c7e52/WorkbenchContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/model/WorkbenchContentProvider.java | |
setMessage(WorkbenchMessages.getString("WizardNewProjectCapabilityPage.noCapabilities"), WARNING_MESSAGE); | setMessage(WorkbenchMessages.getString("WizardNewProjectCapabilityPage.noCapabilities"), WARNING); | public void createControl(Composite parent) { WorkbenchHelp.setHelp(parent, IHelpContextIds.NEW_PROJECT_CAPABILITY_WIZARD_PAGE); CapabilityRegistry reg = WorkbenchPlugin.getDefault().getCapabilityRegistry(); capabilityGroup = new ProjectCapabilitySelectionGroup(initialSelectedCategories, initialProjectCapabilities,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/39adb4bfee24319cb26f15fba324d5a30e2441b5/WizardNewProjectCapabilityPage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardNewProjectCapabilityPage.java |
public void handleSetChange(IObservableSet source, SetDiff diff) { processAddsAndRemoves(diff.getAdditions(), diff.getRemovals()); | public void handleSetChange(SetChangeEvent event) { processAddsAndRemoves(event.diff.getAdditions(), event.diff.getRemovals()); | public void handleSetChange(IObservableSet source, SetDiff diff) { processAddsAndRemoves(diff.getAdditions(), diff.getRemovals()); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnionSet.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/set/UnionSet.java |
log().error(" " + e.toString()); | log().warn(" " + e.toString()); | public int update(DynDnsUpdateData updateData) { SocketChannel channel = null; Pattern p = null; Matcher m = null; String host2update = updateData.host; String host = "members.dyndns.org"; String newIP = getController().getDynDnsManager().getDyndnsViaHTTP(); String a... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/99929014e2183b50b766669c1b8e523b8f24d323/DynDnsOrg.java/buggy/src/main/de/dal33t/powerfolder/net/DynDnsOrg.java |
log().error(" " + e.toString()); | log().warn(" " + e.toString()); | public int update(DynDnsUpdateData updateData) { SocketChannel channel = null; Pattern p = null; Matcher m = null; String host2update = updateData.host; String host = "members.dyndns.org"; String newIP = getController().getDynDnsManager().getDyndnsViaHTTP(); String a... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/99929014e2183b50b766669c1b8e523b8f24d323/DynDnsOrg.java/buggy/src/main/de/dal33t/powerfolder/net/DynDnsOrg.java |
protected TableViewer createTableViewer(Table aMessageTable, Enum[] enums) { TableViewer aMessagesViewer = new TableViewer(aMessageTable); getSite().setSelectionProvider(aMessagesViewer); aMessagesViewer.setContentProvider(new EventListContentProvider<MessageHolder>()); aMessagesViewer.setLabelProvider(new MarketD... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/81afaa460a8157aa5ea2c0371d246ade4f328392/MarketDataView.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/views/MarketDataView.java | ||
if (chooser != null){ chooser.dispose(); chooser = null; | if (sortableColumns){ if (chooser != null){ chooser.dispose(); chooser = null; } chooser = new TableComparatorChooser<MessageHolder>( messageTable, tableFormat, extractedList, false); | public void setInput(EventList<MessageHolder> input) { SortedList<MessageHolder> extractedList = new SortedList<MessageHolder>(rawInputList = input); if (chooser != null){ chooser.dispose(); chooser = null; } chooser = new TableComparatorChooser<MessageHolder>( messageTable, tableFormat, ... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/81afaa460a8157aa5ea2c0371d246ade4f328392/MessagesView.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/views/MessagesView.java |
chooser = new TableComparatorChooser<MessageHolder>( messageTable, tableFormat, extractedList, false); | public void setInput(EventList<MessageHolder> input) { SortedList<MessageHolder> extractedList = new SortedList<MessageHolder>(rawInputList = input); if (chooser != null){ chooser.dispose(); chooser = null; } chooser = new TableComparatorChooser<MessageHolder>( messageTable, tableFormat, ... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/81afaa460a8157aa5ea2c0371d246ade4f328392/MessagesView.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/views/MessagesView.java | |
return RubyBoolean.newBoolean(getRuntime(), Modifier.isFinal(field.getModifiers())); | return getRuntime().newBoolean(Modifier.isFinal(field.getModifiers())); | public RubyBoolean final_p() { return RubyBoolean.newBoolean(getRuntime(), Modifier.isFinal(field.getModifiers())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
return RubyString.newString(getRuntime(), field.getName()); | return getRuntime().newString(field.getName()); | public RubyString name() { return RubyString.newString(getRuntime(), field.getName()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
return RubyBoolean.newBoolean(getRuntime(), Modifier.isPublic(field.getModifiers())); | return getRuntime().newBoolean(Modifier.isPublic(field.getModifiers())); | public RubyBoolean public_p() { return RubyBoolean.newBoolean(getRuntime(), Modifier.isPublic(field.getModifiers())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
throw new TypeError(getRuntime(), "not a java object: " + object); | throw getRuntime().newTypeError("not a java object: " + object); | public JavaObject set_value(IRubyObject object, IRubyObject value) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object: " + object); } if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
throw new TypeError(getRuntime(), "not a java object:" + value); | throw getRuntime().newTypeError("not a java object:" + value); | public JavaObject set_value(IRubyObject object, IRubyObject value) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object: " + object); } if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
throw new TypeError(getRuntime(), | throw getRuntime().newTypeError( | public JavaObject set_value(IRubyObject object, IRubyObject value) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object: " + object); } if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.