rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
int index = 0; PositionTreeItem treeItem = null; for (Iterator iter = account.getPortfolio().iterator(); iter.hasNext(); index++) { PortfolioPosition position = (PortfolioPosition)iter.next(); if (index < getItemCount())
getDisplay().asyncExec(new Runnable() { public void run()
public void itemAdded(Object o) { if (o instanceof Transaction) { int index = 0; PositionTreeItem treeItem = null; for (Iterator iter = account.getPortfolio().iterator(); iter.hasNext(); index++) { PortfolioPosition position = (PortfolioPosition)iter.next(); if (index < getItemCount()) { treeItem = (PositionTreeItem)getItem(index); treeItem.init(position); } else treeItem = new PositionTreeItem(position, this, SWT.NONE); } while(getItemCount() > index) getItem(index).dispose(); updateItemColors(); } }
12330 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12330/f638ae3d4b3d8769decfab532368003a0e61aed4/PortfolioView.java/buggy/net.sourceforge.eclipsetrader.trading/src/net/sourceforge/eclipsetrader/trading/views/PortfolioView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 761, 8602, 12, 921, 320, 13, 3639, 288, 5411, 309, 261, 83, 1276, 5947, 13, 5411, 288, 7734, 509, 770, 273, 374, 31, 7734, 11010, 2471, 1180, 2151, 1180, 273, 446, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 761, 8602, 12, 921, 320, 13, 3639, 288, 5411, 309, 261, 83, 1276, 5947, 13, 5411, 288, 7734, 509, 770, 273, 374, 31, 7734, 11010, 2471, 1180, 2151, 1180, 273, 446, 31, 7734, ...
IASTSimpleTypeSpecifier spec = factory.createSimpleTypeSpecifier( compilationUnit, IASTSimpleTypeSpecifier.Type.INT, new SimpleToken( IToken.t_void, -1, EMPTY_STRING, -1 ), false, true, false, true, false, false, false, false, Collections.EMPTY_MAP );
IToken t1 = new SimpleToken( IToken.t_unsigned, -1, EMPTY_STRING, -1 ); IToken t2 = new SimpleToken( IToken.t_long, -1, EMPTY_STRING, -1 ); IToken t3 = new SimpleToken( IToken.t_long, -1, EMPTY_STRING, -1 ); t1.setNext( t2 ); t2.setNext( t3 ); ITokenDuple duple = TokenFactory.createTokenDuple( t1, t3 ); IASTSimpleTypeSpecifier spec = factory.createSimpleTypeSpecifier( compilationUnit, IASTSimpleTypeSpecifier.Type.INT, duple, false, true, false, true, false, false, false, false, Collections.EMPTY_MAP ); ((ASTSimpleTypeSpecifier)spec).getSymbol().getTypeInfo().setBit( false, ITypeInfo.isLong ); ((ASTSimpleTypeSpecifier)spec).getSymbol().getTypeInfo().setBit( true, ITypeInfo.isLongLong );
private void __builtin_unsigned_long_long( IASTFactory factory, IASTCompilationUnit compilationUnit ) { //unsigned long long DeclarationWrapper param = new DeclarationWrapper( compilationUnit, 0, 0, null, EMPTY_STRING ); try { //TODO: this is just a long, we need to make it long long] IASTSimpleTypeSpecifier spec = factory.createSimpleTypeSpecifier( compilationUnit, IASTSimpleTypeSpecifier.Type.INT, new SimpleToken( IToken.t_void, -1, EMPTY_STRING, -1 ), false, true, false, true, false, false, false, false, Collections.EMPTY_MAP ); param.setTypeSpecifier( spec ); param.addDeclarator( new Declarator( param ) ); } catch ( ASTSemanticException e1 ) {//nothing } DeclarationWrapper sdw = new DeclarationWrapper(compilationUnit, 0, 0, null, EMPTY_STRING ); Declarator d = new Declarator(sdw); d.setIsFunction( true ); d.addParameter( param ); sdw.addDeclarator( d ); try { IASTSimpleTypeSpecifier typeSpec = factory.createSimpleTypeSpecifier( compilationUnit, IASTSimpleTypeSpecifier.Type.INT, new SimpleToken( IToken.t_void, -1, EMPTY_STRING, -1 ), false, false, false, false, false, false, false, false, Collections.EMPTY_MAP ); sdw.setTypeSpecifier( typeSpec ); } catch ( ASTSemanticException e ) { //nothing } try {//int __builtin_ffsll(unsigned int x) d.setName( new ImagedToken( IToken.tIDENTIFIER, __BUILTIN_FFSLL, __BUILTIN_FFSLL.length, EMPTY_STRING, 0 ) ); sdw.createASTNodes( factory ); } catch ( ASTSemanticException e2 ) { //nothing } catch ( BacktrackException e2 ) {//nothing } try {//int __builtin_clsll(unsigned int x) d.setName( new ImagedToken( IToken.tIDENTIFIER, __BUILTIN_CLZLL, __BUILTIN_CLZLL.length, EMPTY_STRING, 0 ) ); sdw.createASTNodes( factory ); } catch ( ASTSemanticException e2 ) {//nothing } catch ( BacktrackException e2 ) {//nothing } try {//int __builtin_ctzll(unsigned int x) d.setName( new ImagedToken( IToken.tIDENTIFIER, __BUILTIN_CTZLL, __BUILTIN_CTZLL.length, EMPTY_STRING, 0 ) ); sdw.createASTNodes( factory ); } catch ( ASTSemanticException e2 ) {//nothing } catch ( BacktrackException e2 ) {//nothing } try {//int __builtin_popcountll(unsigned int x) d.setName( new ImagedToken( IToken.tIDENTIFIER, __BUILTIN_POPCOUNTLL, __BUILTIN_POPCOUNTLL.length, EMPTY_STRING, 0 ) ); sdw.createASTNodes( factory ); } catch ( ASTSemanticException e2 ) {//nothing } catch ( BacktrackException e2 ) {//nothing } try {//int __builtin_parityll(unsigned int x) d.setName( new ImagedToken( IToken.tIDENTIFIER, __BUILTIN_PARITYLL, __BUILTIN_PARITYLL.length, EMPTY_STRING, 0 ) ); sdw.createASTNodes( factory ); } catch ( ASTSemanticException e2 ) {//nothing } catch ( BacktrackException e2 ) {//nothing } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1f751745a975ab6747e9e2bc29504c4dff2d4056/GCCASTCompleteExtension.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/gcc/GCCASTCompleteExtension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1001, 24553, 67, 22297, 67, 5748, 67, 5748, 12, 467, 9053, 1733, 3272, 16, 467, 9053, 19184, 2802, 8916, 2802, 262, 288, 3639, 368, 22297, 1525, 1525, 3639, 16110, 4302, 3611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1001, 24553, 67, 22297, 67, 5748, 67, 5748, 12, 467, 9053, 1733, 3272, 16, 467, 9053, 19184, 2802, 8916, 2802, 262, 288, 3639, 368, 22297, 1525, 1525, 3639, 16110, 4302, 3611, ...
request.responseText ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" );
request.responseText ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" ).replaceAll( "<a href=\"charsheet.php\">", "<a href=../profiles/" + getURLName( name ) );
private static void initializeAscensionData( String name ) { File ascension = new File( SNAPSHOT_DIRECTORY + "ascensions/" + getFileName( name ) ); if ( ascension.exists() ) { // In the event that the ascension has already been retrieved, // then load the data from disk. try { BufferedReader istream = KoLDatabase.getReader( ascension ); StringBuffer ascensionString = new StringBuffer(); String currentLine; while ( (currentLine = istream.readLine()) != null ) { ascensionString.append( currentLine ); ascensionString.append( LINE_BREAK ); } ascensionMap.put( name, ascensionString.toString() ); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. printStackTrace( e, "Failed to load cached ascension history" ); return; } } else { // Otherwise, run the request and pull the data from the // web server. AscensionDataRequest request = new AscensionDataRequest( name, KoLmafia.getPlayerID( name ) ); request.initialize(); String data = LINE_BREAK_PATTERN.matcher( COMMENT_PATTERN.matcher( STYLE_PATTERN.matcher( SCRIPT_PATTERN.matcher( request.responseText ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" ) ).replaceAll( "" ); ascensionMap.put( name, data ); // To avoid retrieving the file again, store the intermediate // result in a local file. try { ascension.getParentFile().mkdirs(); PrintStream ostream = new LogStream( ascension ); ostream.println( data ); ostream.close(); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. printStackTrace( e, "Failed to load cached ascension history" ); return; } } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/94b5d2dda86e976675a39084bdffe8da1dc4148b/ClanManager.java/clean/src/net/sourceforge/kolmafia/ClanManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 4046, 13665, 1451, 751, 12, 514, 508, 262, 202, 95, 202, 202, 812, 6972, 1451, 273, 394, 1387, 12, 14204, 31667, 67, 17229, 397, 315, 3691, 2334, 4898, 397, 13807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 4046, 13665, 1451, 751, 12, 514, 508, 262, 202, 95, 202, 202, 812, 6972, 1451, 273, 394, 1387, 12, 14204, 31667, 67, 17229, 397, 315, 3691, 2334, 4898, 397, 13807, ...
return fields; }
return fields; }
public IField[] getFields() { return fields; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/TableSorter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 974, 8526, 12612, 1435, 288, 3639, 327, 1466, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 974, 8526, 12612, 1435, 288, 3639, 327, 1466, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
{ return (String) dph.getUserValue( handle.getTargetBookmark( ) ); }
{ return (String) dph.getUserValue( handle.getTargetBookmark( ) ); }
public String getBookmark( ) { return (String) dph.getUserValue( handle.getTargetBookmark( ) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/252f8ae4f2ea666eb53d3c7d3fc5c754435161c9/BIRTActionRenderer.java/clean/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/BIRTActionRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 514, 2882, 1184, 3355, 12, 262, 6862, 202, 95, 25083, 202, 2463, 261, 780, 13, 302, 844, 18, 588, 1299, 620, 12, 1640, 18, 588, 2326, 22966, 12, 262, 11272, 6862, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 514, 2882, 1184, 3355, 12, 262, 6862, 202, 95, 25083, 202, 2463, 261, 780, 13, 302, 844, 18, 588, 1299, 620, 12, 1640, 18, 588, 2326, 22966, 12, 262, 11272, 6862, 202, 97, ...
setErrorMessage("Create New Topic Failed!");
setErrorMessage(getResourceBundleString(FAILED_NEW_TOPIC));
public String processActionSaveForumAndAddTopic() { LOG.debug("processActionSaveForumAndAddTopic()"); if(selectedForum !=null && selectedForum.getForum()!=null && (selectedForum.getForum().getShortDescription()!=null) && (selectedForum.getForum().getShortDescription().length() > 255)) { setErrorMessage(getResourceBundleString(SHORT_DESC_TOO_LONG)); return null; } if(selectedForum!=null && selectedForum.getForum()!=null && (selectedForum.getForum().getTitle()==null ||selectedForum.getForum().getTitle().trim().length()<1 )) { setErrorMessage("Please enter a valid forum title"); return FORUM_SETTING_REVISE; } if(!uiPermissionsManager.isChangeSettings(selectedForum.getForum())) { setErrorMessage("Insufficient privileges to change forum settings"); return MAIN; } DiscussionForum forum = saveForumSettings(false); if(!uiPermissionsManager.isNewTopic(selectedForum.getForum())) { setErrorMessage("Insufficient privileges to create new topic"); return MAIN; } selectedTopic = createTopic(forum.getId()); if (selectedTopic == null) { setErrorMessage("Create New Topic Failed!"); attachments.clear(); prepareRemoveAttach.clear(); return MAIN; } attachments.clear(); prepareRemoveAttach.clear(); return TOPIC_SETTING_REVISE; }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/491b38e7e8e17678d2f880df18b8981fb2f127cd/DiscussionForumTool.java/clean/msgcntr/messageforums-app/src/java/org/sakaiproject/tool/messageforums/DiscussionForumTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 1803, 4755, 1290, 379, 1876, 986, 6657, 1435, 225, 288, 565, 2018, 18, 4148, 2932, 2567, 1803, 4755, 1290, 379, 1876, 986, 6657, 1435, 8863, 565, 309, 12, 8109, 1290, 379...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 1803, 4755, 1290, 379, 1876, 986, 6657, 1435, 225, 288, 565, 2018, 18, 4148, 2932, 2567, 1803, 4755, 1290, 379, 1876, 986, 6657, 1435, 8863, 565, 309, 12, 8109, 1290, 379...
getModifierString(evt),
modifiersToString(modifiers),
public static Key translateKeyEvent(KeyEvent evt) { int modifiers = evt.getModifiers(); Key returnValue = null; switch(evt.getID()) { case KeyEvent.KEY_PRESSED: int keyCode = evt.getKeyCode(); if((keyCode >= KeyEvent.VK_0 && keyCode <= KeyEvent.VK_9) || (keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z)) { if(Debug.ALTERNATIVE_DISPATCHER) return null; else { returnValue = new Key( getModifierString(evt), '\0',Character.toLowerCase( (char)keyCode)); } } else { if(keyCode == KeyEvent.VK_TAB) { evt.consume(); returnValue = new Key( getModifierString(evt), keyCode,'\0'); } else if(keyCode == KeyEvent.VK_SPACE) { // for SPACE or S+SPACE we pass the // key typed since international // keyboards sometimes produce a // KEY_PRESSED SPACE but not a // KEY_TYPED SPACE, eg if you have to // do a "<space> to insert ". if((modifiers & ~InputEvent.SHIFT_MASK) == 0) returnValue = null; else { returnValue = new Key( getModifierString(evt), 0,' '); } } else { returnValue = new Key( getModifierString(evt), keyCode,'\0'); } } break; case KeyEvent.KEY_TYPED: char ch = evt.getKeyChar(); switch(ch) { case '\n': case '\t': case '\b': return null; case ' ': if((modifiers & ~InputEvent.SHIFT_MASK) != 0) return null; } boolean mod; if(System.currentTimeMillis() - KeyEventWorkaround .lastKeyTime < 750) { int ignoreMods; if(Debug.ALT_KEY_PRESSED_DISABLED) { /* on MacOS, A+ can be user input */ ignoreMods = (InputEvent.SHIFT_MASK | InputEvent.ALT_GRAPH_MASK | InputEvent.ALT_MASK); } else { /* on MacOS, A+ can be user input */ ignoreMods = (InputEvent.SHIFT_MASK | InputEvent.ALT_GRAPH_MASK); } mod = ((KeyEventWorkaround.modifiers & ~ignoreMods) != 0); } else { mod = false; } if(mod) { if(Debug.ALTERNATIVE_DISPATCHER) { returnValue = new Key( modifiersToString(modifiers), 0,ch); } else return null; } else returnValue = new Key(null,0,ch); break; default: return null; } /* I guess translated events do not have the 'evt' field set so consuming won't work. I don't think this is a problem as nothing uses translation anyway */ Key trans = (Key)transMap.get(returnValue); if(trans == null) return returnValue; else return trans; } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/ef04733362b14659852de1bf022e57d74e6de824/KeyEventTranslator.java/buggy/org/gjt/sp/jedit/gui/KeyEventTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1929, 4204, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 474, 10429, 273, 6324, 18, 588, 11948, 5621, 202, 202, 653, 7750, 273, 446, 31, 202, 202, 9610, 12, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1929, 4204, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 474, 10429, 273, 6324, 18, 588, 11948, 5621, 202, 202, 653, 7750, 273, 446, 31, 202, 202, 9610, 12, 7...
int mipmapLevel,
public TextureData newTextureData(File file, int mipmapLevel, int internalFormat, int pixelFormat, String fileSuffix) throws IOException;
53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/a295d66a868c897b71104f3dd4c94601c7463840/TextureProvider.java/buggy/src/classes/com/sun/opengl/utils/TextureProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 28582, 751, 394, 10967, 751, 12, 812, 585, 16, 28524, 4202, 509, 2713, 1630, 16, 4766, 565, 509, 4957, 1630, 16, 4766, 565, 514, 585, 5791, 13, 1216, 1860, 31, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 28582, 751, 394, 10967, 751, 12, 812, 585, 16, 28524, 4202, 509, 2713, 1630, 16, 4766, 565, 509, 4957, 1630, 16, 4766, 565, 514, 585, 5791, 13, 1216, 1860, 31, 2, -100, -100, -100...
BigDecimal tobeApplied = new BigDecimal("0");
BigDecimal tobeApplied = ZERO;
public static Map updatePaymentApplicationDefBd(DispatchContext dctx, Map context) { GenericDelegator delegator = dctx.getDelegator(); Locale locale = (Locale) context.get("locale"); if (decimals == -1 || rounding == -1) { return ServiceUtil.returnError(UtilProperties.getMessage(resource,"AccountingAritmeticPropertiesNotConfigured",locale)); } if (!context.containsKey("useHighestAmount")) { context.put("useHighestAmount","Y"); } String defaultInvoiceProcessing = UtilProperties.getPropertyValue("AccountingConfig","invoiceProcessing").toString(); boolean debug = true; // show processing messages in the log..or not.... // a 'y' in invoiceProssesing wil reverse the default processing String changeProcessing = (String) context.get("invoiceProcessing"); String invoiceId = (String) context.get("invoiceId"); String invoiceItemSeqId = (String) context.get("invoiceItemSeqId"); String paymentId = (String) context.get("paymentId"); String toPaymentId = (String) context.get("toPaymentId"); String paymentApplicationId = (String) context.get("paymentApplicationId"); BigDecimal amountApplied = (BigDecimal) context.get("amountApplied"); String billingAccountId = (String) context.get("billingAccountId"); String taxAuthGeoId = (String) context.get("taxAuthGeoId"); String useHighestAmount = (String) context.get("useHighestAmount"); List errorMessageList = new LinkedList(); if (debug) Debug.logInfo("updatePaymentApplicationDefBd input parameters..." + " defaultInvoiceProcessing: " + defaultInvoiceProcessing + " changeDefaultInvoiceProcessing: " + changeProcessing + " useHighestAmount: " + useHighestAmount + " paymentApplicationId: " + paymentApplicationId + " PaymentId: " + paymentId + " InvoiceId: " + invoiceId + " InvoiceItemSeqId: " + invoiceItemSeqId + " BillingAccountId: " + billingAccountId + " toPaymentId: " + toPaymentId + " amountApplied: " + amountApplied + " TaxAuthGeoId: " + taxAuthGeoId, module); if (changeProcessing == null) changeProcessing = new String("N"); // not provided, so no change boolean invoiceProcessing = true; if (defaultInvoiceProcessing.equals("YY")) invoiceProcessing = true; else if (defaultInvoiceProcessing.equals("NN")) invoiceProcessing = false; else if (defaultInvoiceProcessing.equals("Y")) { if (changeProcessing.equals("Y")) invoiceProcessing = false; else invoiceProcessing = true; } else if (defaultInvoiceProcessing.equals("N")) { if (changeProcessing.equals("Y")) invoiceProcessing = true; else invoiceProcessing = false; } // on a new paymentApplication check if only billing or invoice or tax // id is provided not 2,3... BUT a combination of billingAccountId and invoiceId is permitted - that's how you use a // Billing Account to pay for an Invoice if (paymentApplicationId == null) { int count = 0; if (invoiceId != null) count++; if (toPaymentId != null) count++; if (billingAccountId != null) count++; if (taxAuthGeoId != null) count++; if ((billingAccountId != null) && (invoiceId != null)) count--; if (count != 1) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingSpecifyInvoiceToPaymentBillingAccountTaxGeoId", locale)); } } // avoid null pointer exceptions. if (amountApplied == null) amountApplied = new BigDecimal("0"); // makes no sense to have an item numer without an invoice number if (invoiceId == null) invoiceItemSeqId = null; // retrieve all information and perform checking on the retrieved info..... // Payment..... BigDecimal paymentApplyAvailable = new BigDecimal("0"); // amount available on the payment reduced by the already applied amounts BigDecimal amountAppliedMax = new BigDecimal("0"); // the maximum that can be applied taking payment,invoice,invoiceitem,billing account in concideration // if maxApplied is missing, this value can be used GenericValue payment = null; if (paymentId == null || paymentId.equals("")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentIdBlankNotSupplied",locale)); } else { try { payment = delegator.findByPrimaryKey("Payment", UtilMisc.toMap("paymentId", paymentId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (payment == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentRecordNotFound",UtilMisc.toMap("paymentId",paymentId),locale)); } paymentApplyAvailable = payment.getBigDecimal("amount").subtract(PaymentWorker.getPaymentAppliedBd(payment)).setScale(decimals,rounding); if (payment.getString("statusId").equals("PMNT_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentCancelled", UtilMisc.toMap("paymentId",paymentId), locale)); } if (payment.getString("statusId").equals("PMNT_CONFIRMED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentConfirmed", UtilMisc.toMap("paymentId",paymentId), locale)); } // if the amount to apply is 0 give it amount the payment still need // to apply if (amountApplied.signum() == 0) { amountAppliedMax = paymentApplyAvailable; } if (paymentApplicationId == null) { // only check for new application records, update on existing records is checked in the paymentApplication section if (paymentApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentAlreadyApplied",UtilMisc.toMap("paymentId",paymentId), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(paymentApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentLessRequested", UtilMisc.toMap("paymentId",paymentId, "paymentApplyAvailable",paymentApplyAvailable, "amountApplied",amountApplied,"isoCode",payment.getString("currencyUomId")),locale)); } } } if (debug) Debug.logInfo("Payment info retrieved and checked...", module); } // the "TO" Payment..... BigDecimal toPaymentApplyAvailable = new BigDecimal("0"); GenericValue toPayment = null; if (toPaymentId != null && !toPaymentId.equals("")) { try { toPayment = delegator.findByPrimaryKey("Payment", UtilMisc.toMap("paymentId", toPaymentId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (toPayment == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentRecordNotFound",UtilMisc.toMap("paymentId",toPaymentId),locale)); } toPaymentApplyAvailable = toPayment.getBigDecimal("amount").subtract(PaymentWorker.getPaymentAppliedBd(toPayment)).setScale(decimals,rounding); if (toPayment.getString("statusId").equals("PMNT_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentCancelled", UtilMisc.toMap("paymentId",paymentId), locale)); } if (toPayment.getString("statusId").equals("PMNT_CONFIRMED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentConfirmed", UtilMisc.toMap("paymentId",paymentId), locale)); } // if the amount to apply is less then required by the payment reduce it if (amountAppliedMax.compareTo(toPaymentApplyAvailable) > 0) { amountAppliedMax = toPaymentApplyAvailable; } if (paymentApplicationId == null) { // only check for new application records, update on existing records is checked in the paymentApplication section if (toPaymentApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentAlreadyApplied",UtilMisc.toMap("paymentId",toPaymentId), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(toPaymentApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentLessRequested", UtilMisc.toMap("paymentId",toPaymentId, "paymentApplyAvailable",toPaymentApplyAvailable, "amountApplied",amountApplied,"isoCode",payment.getString("currencyUomId")),locale)); } } } // check if at least one send is the same as one receiver on the other payment if (!payment.getString("partyIdFrom").equals(toPayment.getString("partyIdTo")) && !payment.getString("partyIdFrom").equals(toPayment.getString("partyIdTo"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingFromPartySameToParty", locale)); } if (debug) Debug.logInfo("toPayment info retrieved and checked...", module); } // billing account GenericValue billingAccount = null; BigDecimal billingAccountApplyAvailable = new BigDecimal("0"); if (billingAccountId != null && !billingAccountId.equals("")) { try { billingAccount = delegator.findByPrimaryKey("BillingAccount", UtilMisc.toMap("billingAccountId", billingAccountId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (billingAccount == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotFound",UtilMisc.toMap("billingAccountId",billingAccountId), locale)); } // Get the available balance, which is how much can be used, rather than the regular balance, which is how much has already been charged try { billingAccountApplyAvailable = BillingAccountWorker.getAccountLimit(billingAccount).add( BillingAccountWorker.getBillingAccountAvailableBalance(billingAccount)).setScale(decimals,rounding); } catch (GenericEntityException e) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountBalanceNotFound",UtilMisc.toMap("billingAccountId",billingAccountId), locale)); ServiceUtil.returnError(e.getMessage()); } if (paymentApplicationId == null) { // when creating a new PaymentApplication, check if there is sufficient balance in the billing account, but only if the invoiceId is not null // If you create a PaymentApplication with both billingAccountId and invoiceId, then you're applying a billing account towards an invoice // If you create a PaymentApplication just with billingAccountId and no invoiceId, then you're adding value to billing account, so it should not matter // what the previous available balance is if (invoiceId != null) { if (billingAccountApplyAvailable.signum() <= 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountBalanceProblem",UtilMisc.toMap("billingAccountId",billingAccountId,"isoCode",billingAccount.getString("accountCurrencyUomId")), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(billingAccountApplyAvailable) == 1) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountLessRequested", UtilMisc.toMap("billingAccountId",billingAccountId, "billingAccountApplyAvailable",billingAccountApplyAvailable, "amountApplied",amountApplied,"isoCode",billingAccount.getString("accountCurrencyUomId")),locale)); } } } } // check the currency if (billingAccount.get("accountCurrencyUomId") != null && payment.get("currencyUomId") != null && !billingAccount.getString("accountCurrencyUomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountCurrencyProblem", UtilMisc.toMap("billingAccountId",billingAccountId,"accountCurrencyUomId",billingAccount.getString("accountCurrencyUomId"), "paymentId",paymentId,"paymentCurrencyUomId", payment.getString("currencyUomId")),locale)); } if (debug) Debug.logInfo("Billing Account info retrieved and checked...", module); } // get the invoice (item) information BigDecimal invoiceApplyAvailable = new BigDecimal("0"); // amount available on the invoice reduced by the already applied amounts BigDecimal invoiceItemApplyAvailable = new BigDecimal("0"); // amount available on the invoiceItem reduced by the already applied amounts GenericValue invoice = null; GenericValue invoiceItem = null; if (invoiceId != null) { try { invoice = delegator.findByPrimaryKey("Invoice", UtilMisc.toMap("invoiceId", invoiceId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoice == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotFound",UtilMisc.toMap("invoiceId",invoiceId),locale)); } else { // check the invoice and when supplied the invoice item... if (invoice.getString("statusId").equals("INVOICE_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceCancelledCannotApplyTo",UtilMisc.toMap("invoiceId",invoiceId),locale)); } // check if the invoice already covered by payments BigDecimal invoiceTotal = InvoiceWorker.getInvoiceTotalBd(invoice); invoiceApplyAvailable = InvoiceWorker.getInvoiceNotApplied(invoice); // adjust the amountAppliedMax value if required.... if (invoiceApplyAvailable.compareTo(amountAppliedMax) < 0) { amountAppliedMax = invoiceApplyAvailable; } if (invoiceTotal.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceTotalZero",UtilMisc.toMap("invoiceId",invoiceId),locale)); } else if (paymentApplicationId == null) { // only check for new records here...updates are checked in the paymentApplication section if (invoiceApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceCompletelyApplied",UtilMisc.toMap("invoiceId",invoiceId),locale)); } // check here for too much application if a new record(s) are // added (paymentApplicationId == null) else if (amountApplied.compareTo(invoiceApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceLessRequested", UtilMisc.toMap("invoiceId",invoiceId, "invoiceApplyAvailable",invoiceApplyAvailable, "amountApplied",amountApplied,"isoCode",invoice.getString("currencyUomId")),locale)); } } // check if at least one sender is the same as one receiver on the invoice if (!payment.getString("partyIdFrom").equals(invoice.getString("partyId")) && !payment.getString("partyIdTo").equals(invoice.getString("partyIdFrom"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingFromPartySameToParty", locale)); } if (debug) Debug.logInfo("Invoice info retrieved and checked ...", module); } // if provided check the invoice item. if (invoiceItemSeqId != null) { // when itemSeqNr not provided delay checking on invoiceItemSeqId try { invoiceItem = delegator.findByPrimaryKey("InvoiceItem", UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemSeqId", invoiceItemSeqId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoiceItem == null) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceItemNotFound",UtilMisc.toMap("invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } else { if (invoiceItem.get("uomId") != null && payment.get("currencyUomId") != null && !invoiceItem.getString("uomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceItemPaymentCurrencyProblem",UtilMisc.toMap("paymentCurrencyId",payment.getString("currencyUomId"),"itemCurrency",invoiceItem.getString("uomId")) ,locale)); } else if (invoice.get("currencyUomId") != null && payment.get("currencyUomId") != null && !invoice.getString("currencyUomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoicePaymentCurrencyProblem",UtilMisc.toMap("paymentCurrencyId",payment.getString("currencyUomId"),"itemCurrency",invoice.getString("currencyUomId")) ,locale)); } // get the invoice item applied value BigDecimal quantity = null; if (invoiceItem.get("quantity") == null) { quantity = new BigDecimal("1"); } else { quantity = invoiceItem.getBigDecimal("quantity").setScale(decimals,rounding); } invoiceItemApplyAvailable = invoiceItem.getBigDecimal("amount").multiply(quantity).setScale(decimals,rounding).subtract(InvoiceWorker.getInvoiceItemAppliedBd(invoiceItem)); // check here for too much application if a new record is added // (paymentApplicationId == null) if (paymentApplicationId == null && amountApplied.compareTo(invoiceItemApplyAvailable) > 0) { // new record errorMessageList.add("Invoice(" + invoiceId + ") item(" + invoiceItemSeqId + ") has " + invoiceItemApplyAvailable + " to apply but " + amountApplied + " is requested\n"); String uomId = null; if (invoiceItem.getString("uomId") != null) { uomId = invoiceItem.getString("uomId"); } else { uomId = invoice.getString("currencyUomId"); } errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceItemLessRequested", UtilMisc.toMap("invoiceId",invoiceId, "invoiceItemSeqId", invoiceItemSeqId, "invoiceItemApplyAvailable",invoiceItemApplyAvailable, "amountApplied",amountApplied,"isoCode",uomId),locale)); } } if (debug) Debug.logInfo("InvoiceItem info retrieved and checked against the Invoice (currency and amounts) ...", module); } } // get the application record if the applicationId is supplied if not // create empty record. BigDecimal newInvoiceApplyAvailable = invoiceApplyAvailable; // amount available on the invoice taking into account if the invoiceItemnumber has changed BigDecimal newInvoiceItemApplyAvailable = invoiceItemApplyAvailable; // amount available on the invoiceItem taking into account if the itemnumber has changed BigDecimal newToPaymentApplyAvailable = toPaymentApplyAvailable; // amount available on the Billing Account taking into account if the billing account number has changed BigDecimal newBillingAccountApplyAvailable = billingAccountApplyAvailable; // amount available on the Billing Account taking into account if the billing account number has changed BigDecimal newPaymentApplyAvailable = paymentApplyAvailable; GenericValue paymentApplication = null; if (paymentApplicationId == null) { paymentApplication = delegator.makeValue("PaymentApplication", null); // prepare for creation } else { // retrieve existing paymentApplication try { paymentApplication = delegator.findByPrimaryKey("PaymentApplication", UtilMisc.toMap("paymentApplicationId", paymentApplicationId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (paymentApplication == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentApplicationNotFound", UtilMisc.toMap("paymentApplicationId",paymentApplicationId), locale)); paymentApplicationId = null; } else { // if both invoiceId and BillingId is entered there was // obviously a change // only take the newly entered item, same for tax authority and toPayment if (paymentApplication.get("invoiceId") == null && invoiceId != null) { billingAccountId = null; taxAuthGeoId = null; toPaymentId = null; } else if (paymentApplication.get("toPaymentId") == null && toPaymentId != null) { invoiceId = null; invoiceItemSeqId = null; taxAuthGeoId = null; billingAccountId = null; } else if (paymentApplication.get("billingAccountId") == null && billingAccountId != null) { invoiceId = null; invoiceItemSeqId = null; toPaymentId = null; taxAuthGeoId = null; } else if (paymentApplication.get("taxAuthGeoId") == null && taxAuthGeoId != null) { invoiceId = null; invoiceItemSeqId = null; toPaymentId = null; billingAccountId = null; } // check if the payment for too much application if an existing // application record is changed newPaymentApplyAvailable = paymentApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (newPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",paymentId,"paymentApplyAvailable",paymentApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")),"amountApplied",amountApplied),locale)); } if (invoiceId != null) { // only when we are processing an invoice on existing paymentApplication check invoice item for to much application if the invoice // number did not change if (invoiceId.equals(paymentApplication .getString("invoiceId"))) { // check if both the itemNumbers are null then this is a // record for the whole invoice if (invoiceItemSeqId == null && paymentApplication.get("invoiceItemSeqId") == null) { newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (invoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceApplyAvailable.negate(),"invoiceId",invoiceId),locale)); } } else if (invoiceItemSeqId == null && paymentApplication.get("invoiceItemSeqId") != null) { // check if the item number changed from a real Item number to a null value newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (invoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceApplyAvailable.negate(),"invoiceId",invoiceId),locale)); } } else if (invoiceItemSeqId != null && paymentApplication.get("invoiceItemSeqId") == null) { // check if the item number changed from a null value to // a real Item number newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.subtract(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } else if (invoiceItemSeqId.equals(paymentApplication.getString("invoiceItemSeqId"))) { // check if the real item numbers the same // item number the same numeric value newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } else { // item number changed only check new item newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } // if the amountApplied = 0 give it the higest possible // value if (amountApplied.signum() == 0) { if (newInvoiceItemApplyAvailable.compareTo(newPaymentApplyAvailable) < 0) { amountApplied = newInvoiceItemApplyAvailable; // from the item number } else { amountApplied = newPaymentApplyAvailable; // from the payment } } // check the invoice newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied").subtract(amountApplied)).setScale(decimals, rounding); if (newInvoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied),"invoiceId",invoiceId),locale)); } } } // check the toPayment account when only the amountApplied has // changed, if (toPaymentId != null && toPaymentId.equals(paymentApplication.getString("toPaymentId"))) { newToPaymentApplyAvailable = toPaymentApplyAvailable.subtract(paymentApplication.getBigDecimal("amountApplied")).add(amountApplied).setScale(decimals, rounding); if (newToPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",toPaymentId,"paymentApplyAvailable",newToPaymentApplyAvailable,"amountApplied",amountApplied),locale)); } } else if (toPaymentId != null) { // billing account entered number has changed so we have to // check the new billing account number. newToPaymentApplyAvailable = toPaymentApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newToPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",toPaymentId,"paymentApplyAvailable",newToPaymentApplyAvailable,"amountApplied",amountApplied),locale)); } } // check the billing account when only the amountApplied has // changed, // change in account number is already checked in the billing // account section if (billingAccountId != null && billingAccountId.equals(paymentApplication.getString("billingAccountId"))) { newBillingAccountApplyAvailable = billingAccountApplyAvailable.subtract(paymentApplication.getBigDecimal("amountApplied")).add(amountApplied).setScale(decimals, rounding); if (newBillingAccountApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotEnough",UtilMisc.toMap("billingAccountId",billingAccountId,"newBillingAccountApplyAvailable",newBillingAccountApplyAvailable,"amountApplied",amountApplied,"isoCode", billingAccount.getString("accountCurrencyUomId")),locale)); } } else if (billingAccountId != null) { // billing account entered number has changed so we have to // check the new billing account number. newBillingAccountApplyAvailable = billingAccountApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newBillingAccountApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotEnough",UtilMisc.toMap("billingAccountId",billingAccountId,"newBillingAccountApplyAvailable",newBillingAccountApplyAvailable,"amountApplied",amountApplied,"isoCode", billingAccount.getString("accountCurrencyUomId")),locale)); } } } if (debug) Debug.logInfo("paymentApplication record info retrieved and checked...", module); } // show the maximumus what can be added in the payment application file. String toMessage = null; // prepare for success message if (debug) { String extra = new String(""); if (invoiceItemSeqId != null) { extra = new String(" Invoice item(" + invoiceItemSeqId + ") amount not yet applied: " + newInvoiceItemApplyAvailable); } Debug.logInfo("checking finished, start processing with the following data... ", module); if (invoiceId != null) { Debug.logInfo(" Invoice(" + invoiceId + ") amount not yet applied: " + newInvoiceApplyAvailable + extra + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoice",UtilMisc.toMap("invoiceId",invoiceId),locale)); if(extra.length() > 0) toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoiceItem",UtilMisc.toMap("invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } if (toPaymentId != null) { Debug.logInfo(" toPayment(" + toPaymentId + ") amount not yet applied: " + newToPaymentApplyAvailable + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToPayment",UtilMisc.toMap("paymentId",toPaymentId),locale)); } if (billingAccountId != null) { Debug.logInfo(" billingAccount(" + billingAccountId + ") amount not yet applied: " + newBillingAccountApplyAvailable + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToBillingAccount",UtilMisc.toMap("billingAccountId",billingAccountId),locale)); } if (taxAuthGeoId != null) { Debug.logInfo(" taxAuthGeoId(" + taxAuthGeoId + ") Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToTax",UtilMisc.toMap("taxAuthGeoId",taxAuthGeoId),locale)); } } // if the amount to apply was not provided or was zero fill it with the maximum possible and provide information to the user if (amountApplied.signum() == 0 && useHighestAmount.equals("Y")) { amountApplied = newPaymentApplyAvailable; if (invoiceId != null && newInvoiceApplyAvailable.compareTo(amountApplied) < 0) { amountApplied = newInvoiceApplyAvailable; toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoice",UtilMisc.toMap("invoiceId",invoiceId),locale)); } if (toPaymentId != null && newToPaymentApplyAvailable.compareTo(amountApplied) == 1) { amountApplied = newToPaymentApplyAvailable; toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToPayment",UtilMisc.toMap("paymentId",toPaymentId),locale)); } } if (amountApplied.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingNoAmount",locale)); } else { successMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationSuccess",UtilMisc.toMap("amountApplied",amountApplied,"paymentId",paymentId,"isoCode", payment.getString("currencyUomId"),"toMessage",toMessage),locale)); } // report error messages if any if (errorMessageList.size() > 0) { return ServiceUtil.returnError(errorMessageList); } // ============ start processing ====================== // if the application is specified it is easy, update the existing record only if (paymentApplicationId != null) { // record is already retrieved previously if (debug) Debug.logInfo("Process an existing paymentApplication record: " + paymentApplicationId, module); // update the current record paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItemSeqId); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); return storePaymentApplication(delegator, paymentApplication,locale); } // if no invoice sequence number is provided it assumed the requested paymentAmount will be // spread over the invoice starting with the lowest sequence number if // itemprocessing is on otherwise creat one record if (invoiceId != null && paymentId != null && (invoiceItemSeqId == null)) { if (invoiceProcessing) { // create only a single record with a null seqId if (debug) Debug.logInfo("Try to allocate the payment to the invoice as a whole", module); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId",null); paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", null); paymentApplication.set("toPaymentId", null); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", null); paymentApplication.set("taxAuthGeoId", null); if (debug) Debug.logInfo("creating new paymentapplication", module); return storePaymentApplication(delegator, paymentApplication,locale); } else { // spread the amount over every single item number if (debug) Debug.logInfo("Try to allocate the payment to the itemnumbers of the invoice", module); // get the invoice items List invoiceItems = null; try { invoiceItems = delegator.findByAnd("InvoiceItem", UtilMisc.toMap("invoiceId", invoiceId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoiceItems == null || invoiceItems.size() == 0) { errorMessageList.add("No invoice items found for invoice " + invoiceId + " to match payment against...\n"); return ServiceUtil.returnError(errorMessageList); } else { // we found some invoice items, start processing.... Iterator i = invoiceItems.iterator(); // check if the user want to apply a smaller amount than the maximum possible on the payment if (amountApplied.signum() != 0 && amountApplied.compareTo(paymentApplyAvailable) < 0) { paymentApplyAvailable = amountApplied; } while (i.hasNext() && paymentApplyAvailable.compareTo(ZERO) > 0) { // get the invoiceItem invoiceItem = (GenericValue) i.next(); if (debug) Debug.logInfo("Start processing item: " + invoiceItem.getString("invoiceItemSeqId"), module); BigDecimal itemQuantity = new BigDecimal("1"); if (invoiceItem.get("quantity") != null && invoiceItem.getBigDecimal("quantity").signum() != 0) { itemQuantity = new BigDecimal(invoiceItem.getString("quantity")).setScale(decimals,rounding); } BigDecimal itemAmount = invoiceItem.getBigDecimal("amount").setScale(decimals,rounding); BigDecimal itemTotal = itemAmount.multiply(itemQuantity).setScale(decimals,rounding); // get the application(s) already allocated to this // item, if available List paymentApplications = null; try { paymentApplications = invoiceItem.getRelated("PaymentApplication"); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } BigDecimal tobeApplied = new BigDecimal("0"); // item total amount - already applied (if any) BigDecimal alreadyApplied = new BigDecimal("0"); if (paymentApplications != null && paymentApplications.size() > 0) { // application(s) found, add them all together Iterator p = paymentApplications.iterator(); while (p.hasNext()) { paymentApplication = (GenericValue) p.next(); alreadyApplied = alreadyApplied.add(paymentApplication.getBigDecimal("amountApplied").setScale(decimals,rounding)); } tobeApplied = itemTotal.subtract(alreadyApplied).setScale(decimals,rounding); } else { // no application connected yet tobeApplied = itemTotal; } if (debug) Debug.logInfo("tobeApplied:(" + tobeApplied + ") = " + "itemTotal(" + itemTotal + ") - alreadyApplied(" + alreadyApplied + ") but not more then (nonapplied) paymentAmount(" + paymentApplyAvailable + ")", module); if (tobeApplied.signum() == 0) { // invoiceItem already fully applied so look at the next one.... continue; } if (paymentApplyAvailable.compareTo(tobeApplied) > 0) { paymentApplyAvailable = paymentApplyAvailable.subtract(tobeApplied); } else { tobeApplied = paymentApplyAvailable; paymentApplyAvailable = new BigDecimal("0"); } // create application payment record but check currency // first if supplied if (invoiceItem.get("uomId") != null && payment.get("currencyUomId") != null && !invoiceItem.getString("uomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add("Payment currency (" + payment.getString("currencyUomId") + ") and invoice Item(" + invoiceItem.getString("invoiceItemSeqId") + ") currency(" + invoiceItem.getString("uomId") + ") not the same\n"); } else if (invoice.get("currencyUomId") != null && payment.get("currencyUomId") != null && !invoice.getString("currencyUomId").equals( payment.getString("currencyUomId"))) { errorMessageList.add("Payment currency (" + payment.getString("currencyUomId") + ") and invoice currency(" + invoice.getString("currencyUomId") + ") not the same\n"); } else { paymentApplication.set("paymentApplicationId", null); // make sure we get a new record paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItem.getString("invoiceItemSeqId")); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double( tobeApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); storePaymentApplication(delegator, paymentApplication,locale); } // check if either the invoice or the payment is fully // applied, when yes change the status to paid // which triggers the ledger routines.... /* * if * (InvoiceWorker.getInvoiceTotalBd(invoice).equals(InvoiceWorker.getInvoiceAppliedBd(invoice))) { * try { dispatcher.runSync("setInvoiceStatus", * UtilMisc.toMap("invoiceId",invoiceId,"statusId","INVOICE_PAID")); } * catch (GenericServiceException e1) { * Debug.logError(e1, "Error updating invoice status", * module); } } * * if * (payment.getBigDecimal("amount").equals(PaymentWorker.getPaymentAppliedBd(payment))) { * GenericValue appliedPayment = (GenericValue) * delegator.makeValue("Payment", * UtilMisc.toMap("paymentId",paymentId,"statusId","INVOICE_PAID")); * try { appliedPayment.store(); } catch * (GenericEntityException e) { * ServiceUtil.returnError(e.getMessage()); } } */ } if (errorMessageList.size() > 0) { return ServiceUtil.returnError(errorMessageList); } else { if (successMessage != null) { return ServiceUtil.returnSuccess(successMessage); } else { return ServiceUtil.returnSuccess(); } } } } } // if no paymentApplicationId supplied create a new record with the data // supplied... if (paymentApplicationId == null && amountApplied != null) { paymentApplication.set("paymentApplicationId", paymentApplicationId); paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItemSeqId); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); return storePaymentApplication(delegator, paymentApplication,locale); } // should never come here... errorMessageList.add("??unsuitable parameters passed...?? This message.... should never be shown\n"); errorMessageList.add("--Input parameters...InvoiceId:" + invoiceId + " invoiceItemSeqId:" + invoiceItemSeqId + " PaymentId:" + paymentId + " toPaymentId:" + toPaymentId + "\n paymentApplicationId:" + paymentApplicationId + " amountApplied:" + amountApplied); return ServiceUtil.returnError(errorMessageList); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/6bc8f4f6824f34ad879f367b482304e0d2cd11c1/InvoiceServices.java/buggy/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1089, 6032, 3208, 3262, 38, 72, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 5411, 7928, 15608, 639, 11158, 639, 273, 302, 5900, 18, 588, 15608, 639, 5621, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1089, 6032, 3208, 3262, 38, 72, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 5411, 7928, 15608, 639, 11158, 639, 273, 302, 5900, 18, 588, 15608, 639, 5621, 5411, ...
public MockDatabase() {
public MockDatabase(String dbName) { m_dbName = dbName;
public MockDatabase() { try { Class.forName("org.hsqldb.jdbcDriver" ); } catch (Exception e) { throw new RuntimeException("Unable to locate hypersonic driver"); } create(); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7867, 4254, 12, 780, 15158, 13, 288, 312, 67, 1966, 461, 273, 15158, 31, 3639, 775, 288, 5411, 1659, 18, 1884, 461, 2932, 3341, 18, 4487, 1217, 1966, 18, 24687, 4668, 6, 11272, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7867, 4254, 12, 780, 15158, 13, 288, 312, 67, 1966, 461, 273, 15158, 31, 3639, 775, 288, 5411, 1659, 18, 1884, 461, 2932, 3341, 18, 4487, 1217, 1966, 18, 24687, 4668, 6, 11272, 36...
+ "(SELECT t.tgargs, t.tgconstrname, p.proname, t.tgdeferrable," + "t.tginitdeferred "
+ "(SELECT t.tgargs, t.tgconstrname, p.proname," + "t.tgdeferrable, t.tginitdeferred "
public java.sql.ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT a.tgargs," + "substring(a.proname from 9 for (char_length(a.proname)-12))," + "substring(b.proname from 9 for (char_length(b.proname)-12))," + "a.tgdeferrable," + "a.tginitdeferred " + "FROM " + "(SELECT t.tgargs, t.tgconstrname, p.proname, t.tgdeferrable," + "t.tginitdeferred " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_upd') as a," + "(SELECT t.tgconstrname, p.proname " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " + "AND p.proname LIKE 'RI_FKey_%_del') as b," + "(SELECT t.tgconstrname FROM pg_class as c, pg_trigger as t " + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid) as c " + "WHERE a.tgconstrname=b.tgconstrname AND a.tgconstrname=c.tgconstrname" ); Vector tuples = new Vector(); while (rs.next()) { tuples.add(parseConstraint(rs)); } return new ResultSet(connection, f, tuples, "OK", 1); }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/355cc69dfce59c417b24ce9957824dfb565bc0f7/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 26246, 1798, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 202, 95, 7734, 2286, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 26246, 1798, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 202, 95, 7734, 2286, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 773...
return rs.getTimestamp(timestampColumn).getTime();
Timestamp ts = rs.getTimestamp(timestampColumn); return ts != null ? ts.getTime() : 0;
private long readLastModified(Resource resource, String i_operation) { /* * get the template name from the resource */ String name = resource.getName(); try { Connection conn = openDbConnection(); try { ResultSet rs = readData(conn, timestampColumn, name); try { if (rs.next()) { return rs.getTimestamp(timestampColumn).getTime(); } else { log.error("DataSourceResourceLoader : while " + i_operation + " could not find resource " + name); } } finally { rs.close(); } } finally { closeDbConnection(conn); } } catch(SQLException e) { String msg = "DataSourceResourceLoader : error while " + i_operation + " when trying to load resource " + name; log.error(msg, e); throw ExceptionUtils.createRuntimeException(msg, e); } catch(NamingException e) { String msg = "DataSourceResourceLoader : error while " + i_operation + " when trying to load resource " + name; log.error(msg, e); throw ExceptionUtils.createRuntimeException(msg, e); } return 0; }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/b49677ce81dda91f0152f56395118dd5fb55e28f/DataSourceResourceLoader.java/clean/src/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 1525, 855, 14747, 12, 1420, 1058, 16, 514, 277, 67, 7624, 13, 1377, 288, 540, 1748, 1850, 380, 225, 336, 326, 1542, 508, 628, 326, 1058, 1850, 1195, 540, 514, 508, 273, 1058, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 1525, 855, 14747, 12, 1420, 1058, 16, 514, 277, 67, 7624, 13, 1377, 288, 540, 1748, 1850, 380, 225, 336, 326, 1542, 508, 628, 326, 1058, 1850, 1195, 540, 514, 508, 273, 1058, 18,...
} );
} );
protected void createExtendedMetaDataAnnotations( ) { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ addAnnotation( axisEClass, source, new String[]{ "name", "Axis", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Type( ), source, new String[]{ "kind", "element", "name", "Type" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Title( ), source, new String[]{ "kind", "element", "name", "Title" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_SubTitle( ), source, new String[]{ "kind", "element", "name", "SubTitle" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_TitlePosition( ), source, new String[]{ "kind", "element", "name", "TitlePosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_AssociatedAxes( ), source, new String[]{ "kind", "element", "name", "AssociatedAxes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_SeriesDefinitions( ), source, new String[]{ "kind", "element", "name", "SeriesDefinitions" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_GapWidth( ), source, new String[]{ "kind", "element", "name", "GapWidth" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Orientation( ), source, new String[]{ "kind", "element", "name", "Orientation" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_LabelPosition( ), source, new String[]{ "kind", "element", "name", "LabelPosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Staggered( ), source, new String[]{ "kind", "element", "name", "Staggered" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MarkerLines( ), source, new String[]{ "kind", "element", "name", "MarkerLines" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MarkerRanges( ), source, new String[]{ "kind", "element", "name", "MarkerRanges" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MajorGrid( ), source, new String[]{ "kind", "element", "name", "MajorGrid" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MinorGrid( ), source, new String[]{ "kind", "element", "name", "MinorGrid" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Scale( ), source, new String[]{ "kind", "element", "name", "Scale" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Origin( ), source, new String[]{ "kind", "element", "name", "Origin" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_PrimaryAxis( ), source, new String[]{ "kind", "element", "name", "PrimaryAxis" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_CategoryAxis( ), source, new String[]{ "kind", "element", "name", "CategoryAxis" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Percent( ), source, new String[]{ "kind", "element", "name", "Percent" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( chartPreferencesEClass, source, new String[]{ "name", "ChartPreferences", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getChartPreferences_Labels( ), source, new String[]{ "kind", "element", "name", "Labels" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getChartPreferences_Blocks( ), source, new String[]{ "kind", "element", "name", "Blocks" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( gridEClass, source, new String[]{ "name", "Grid", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickStyle( ), source, new String[]{ "kind", "element", "name", "TickStyle" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickAttributes( ), source, new String[]{ "kind", "element", "name", "TickAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickSize( ), source, new String[]{ "kind", "element", "name", "TickSize" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickCount( ), source, new String[]{ "kind", "element", "name", "TickCount" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( labelEClass, source, new String[]{ "name", "Label", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Caption( ), source, new String[]{ "kind", "element", "name", "Caption" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Background( ), source, new String[]{ "kind", "element", "name", "Background" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Outline( ), source, new String[]{ "kind", "element", "name", "Outline" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_ShadowColor( ), source, new String[]{ "kind", "element", "name", "ShadowColor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Insets( ), source, new String[]{ "kind", "element", "name", "Insets" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Visible( ), source, new String[]{ "kind", "element", "name", "Visible" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( markerLineEClass, source, new String[]{ "name", "MarkerLine", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_Value( ), source, new String[]{ "kind", "element", "name", "Value" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_LabelAnchor( ), source, new String[]{ "kind", "element", "name", "LabelAnchor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( markerRangeEClass, source, new String[]{ "name", "MarkerRange", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Outline( ), source, new String[]{ "kind", "element", "name", "Outline" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Fill( ), source, new String[]{ "kind", "element", "name", "Fill" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_StartValue( ), source, new String[]{ "kind", "element", "name", "StartValue" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_EndValue( ), source, new String[]{ "kind", "element", "name", "EndValue" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_LabelAnchor( ), source, new String[]{ "kind", "element", "name", "LabelAnchor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( scaleEClass, source, new String[]{ "name", "Scale", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Min( ), source, new String[]{ "kind", "element", "name", "Min" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Max( ), source, new String[]{ "kind", "element", "name", "Max" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Step( ), source, new String[]{ "kind", "element", "name", "Step" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Unit( ), source, new String[]{ "kind", "element", "name", "Unit" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_MinorGridsPerUnit( ), source, new String[]{ "kind", "element", "name", "MinorGridsPerUnit" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( seriesEClass, source, new String[]{ "name", "Series", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Visible( ), source, new String[]{ "kind", "element", "name", "Visible" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataDefinition( ), source, new String[]{ "kind", "element", "name", "DataDefinition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_SeriesIdentifier( ), source, new String[]{ "kind", "element", "name", "SeriesIdentifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataPoint( ), source, new String[]{ "kind", "element", "name", "DataPoint" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataSet( ), source, new String[]{ "kind", "element", "name", "DataSet" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_LabelPosition( ), source, new String[]{ "kind", "element", "name", "LabelPosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Stacked( ), source, new String[]{ "kind", "element", "name", "Stacked" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Triggers( ), source, new String[]{ "kind", "element", "name", "Triggers" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Translucent( ), source, new String[]{ "kind", "element", "name", "Translucent" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bdab78403751f288b76844a99f50b999c34fb491/ComponentPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 11456, 6998, 5655, 12, 262, 202, 95, 202, 202, 780, 1084, 273, 315, 2505, 2207, 19, 3341, 19, 20416, 19, 351, 74, 19, 557, 479, 19, 1367, 19, 11456, 6998, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 11456, 6998, 5655, 12, 262, 202, 95, 202, 202, 780, 1084, 273, 315, 2505, 2207, 19, 3341, 19, 20416, 19, 351, 74, 19, 557, 479, 19, 1367, 19, 11456, 6998, 14432, ...
(CompilationUnit)node,
node,
public static AnnotationProcessorEnvironment getEnvironment(ICompilationUnit compilationUnit, IJavaProject javaProject ) { //return ProcessorEnvImpl.newProcessorEnvironmentForReconcile( compilationUnit, javaProject ); String unitName = compilationUnit.getResource().getProjectRelativePath().toString(); ASTNode node = BaseProcessorEnv.createDietAST( unitName, javaProject, compilationUnit, null ); BaseProcessorEnv env = new BaseProcessorEnv( (CompilationUnit)node, (IFile)compilationUnit.getResource(), javaProject, Phase.OTHER ); return env; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dbb59802bd05ea277b4706afb85d6b75d5bdff2a/EnvironmentFactory.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/env/EnvironmentFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6090, 5164, 5494, 16613, 12, 45, 19184, 2802, 8916, 2802, 16, 467, 5852, 4109, 2252, 4109, 262, 202, 95, 202, 202, 759, 2463, 15476, 3491, 2828, 18, 2704, 5164, 5494, 1290,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6090, 5164, 5494, 16613, 12, 45, 19184, 2802, 8916, 2802, 16, 467, 5852, 4109, 2252, 4109, 262, 202, 95, 202, 202, 759, 2463, 15476, 3491, 2828, 18, 2704, 5164, 5494, 1290,...
public TarBuffer( InputStream inStream, int blockSize, int recordSize )
public TarBuffer( InputStream inStream )
public TarBuffer( InputStream inStream, int blockSize, int recordSize ) { this.inStream = inStream; this.outStream = null; this.initialize( blockSize, recordSize ); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/255020c002e99c42ba08342cbc874a0a5737d24c/TarBuffer.java/buggy/proposal/myrmidon/src/main/org/apache/tools/tar/TarBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 20334, 1892, 12, 5037, 28987, 262, 565, 288, 3639, 333, 18, 267, 1228, 273, 28987, 31, 3639, 333, 18, 659, 1228, 273, 446, 31, 3639, 333, 18, 11160, 12, 13766, 16, 1409, 1225, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 20334, 1892, 12, 5037, 28987, 262, 565, 288, 3639, 333, 18, 267, 1228, 273, 28987, 31, 3639, 333, 18, 659, 1228, 273, 446, 31, 3639, 333, 18, 11160, 12, 13766, 16, 1409, 1225, 112...
public void run() { _junitErrorPanel.getErrorListPane().testEnded(name, succeeded, causedError); _junitErrorPanel.progressStep(succeeded); _model.refreshActiveDocument(); }
public void run() { _junitErrorPanel.getErrorListPane().testStarted(name); /* this does nothing! */ }
public void run() { _junitErrorPanel.getErrorListPane().testEnded(name, succeeded, causedError); // this does nothing! _junitErrorPanel.progressStep(succeeded); _model.refreshActiveDocument(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/89ce626553f46c8001d10031c8a245d2124e251e/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 389, 78, 4873, 668, 5537, 18, 588, 668, 682, 8485, 7675, 3813, 28362, 12, 529, 16, 15784, 16, 15848, 668, 1769, 368, 333, 1552, 5083, 5, 1850, 389, 78,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 389, 78, 4873, 668, 5537, 18, 588, 668, 682, 8485, 7675, 3813, 28362, 12, 529, 16, 15784, 16, 15848, 668, 1769, 368, 333, 1552, 5083, 5, 1850, 389, 78,...
int key_i = i == nPrefix ? key : prefixKeys[i]; if (pendingMeta) key_i |= ((META_MASK|PRESSED) << 16); Object command = keymap.get(key_i, false); Object metaCommand; if (command == null && (getModifiers(key_i) & META_MASK) != 0 && (metaCommand = keymap.get(metaKey, false)) instanceof EKeymap) { command = ((EKeymap) metaCommand).get(stripMeta(key_i), false); } i++; if (command == null) { if (ignorable(key)) { return EToolkit.getInstance().getIgnoreAction(); } else return keymap.getDefaultBinding(); } if (i == nKeys) return command; Object comm; if (command instanceof String || command instanceof Symbol) command = Command.resolveSymbol(command); if (command instanceof EKeymap) keymap = (EKeymap) command; else return null;
prefixKeys[i] = asKeyStroke(enumKeys.nextElement());
public Object lookupKey(int[] prefixKeys, int nPrefix, int key, boolean acceptDefaults) { EKeymap keymap = this; int nKeys = nPrefix + (key != 0 ? 1 : 0); boolean pendingMeta = false; if (nKeys == 0) throw new Error("no keys"); for (int i = 0; ; ) { int key_i = i == nPrefix ? key : prefixKeys[i]; if (pendingMeta) key_i |= ((META_MASK|PRESSED) << 16); Object command = keymap.get(key_i, false); Object metaCommand; if (command == null && (getModifiers(key_i) & META_MASK) != 0 && (metaCommand = keymap.get(metaKey, false)) instanceof EKeymap) { command = ((EKeymap) metaCommand).get(stripMeta(key_i), false); } i++; if (command == null) { if (ignorable(key)) { return EToolkit.getInstance().getIgnoreAction(); } else return keymap.getDefaultBinding(); } if (i == nKeys) return command; Object comm; if (command instanceof String || command instanceof Symbol) command = Command.resolveSymbol(command); if (command instanceof EKeymap) keymap = (EKeymap) command; else return null; } }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/250ab0b57383c119dd271f4d5cff804c36031c5b/EKeymap.java/buggy/gnu/jemacs/buffer/EKeymap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 3689, 653, 12, 474, 8526, 1633, 2396, 16, 509, 290, 2244, 16, 9506, 225, 509, 498, 16, 1250, 2791, 7019, 13, 225, 288, 565, 512, 653, 1458, 498, 1458, 273, 333, 31, 565, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 3689, 653, 12, 474, 8526, 1633, 2396, 16, 509, 290, 2244, 16, 9506, 225, 509, 498, 16, 1250, 2791, 7019, 13, 225, 288, 565, 512, 653, 1458, 498, 1458, 273, 333, 31, 565, 5...
return (EAttribute)colorDefinitionEClass.getEStructuralFeatures().get(2);
return (EAttribute) colorDefinitionEClass.getEStructuralFeatures().get(2);
public EAttribute getColorDefinition_Green() { return (EAttribute)colorDefinitionEClass.getEStructuralFeatures().get(2); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AttributePackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributePackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 1499, 15672, 1852, 67, 21453, 1435, 565, 288, 3639, 327, 261, 41, 1499, 13, 2036, 1852, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 22, 1769, 565, 289, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 1499, 15672, 1852, 67, 21453, 1435, 565, 288, 3639, 327, 261, 41, 1499, 13, 2036, 1852, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 22, 1769, 565, 289, 2, -100, -100, -100...
String[] tsoArray; if (tso == null) { tsoArray = new String[0]; } else { tsoArray = (String[])tso.toArray(new String[tso.size()]); } esiProvider.invokeProvider(monitor, project, buildInfo, tsoArray);
esiProvider.invokeProvider(monitor, project, buildInfo, tso);
private void getProviderScannerInfo(final IProject project, final List tso, final IProgressMonitor monitor) { // get IScannerConfigBuilderInfo IScannerConfigBuilderInfo info; try { info = MakeCorePlugin.createScannerConfigBuildInfo( project, ScannerConfigBuilder.BUILDER_ID); } catch (CoreException e) { info = MakeCorePlugin.createScannerConfigBuildInfo( MakeCorePlugin.getDefault().getPluginPreferences(), ScannerConfigBuilder.BUILDER_ID, false); } if (info.isESIProviderCommandEnabled()) { final IScannerConfigBuilderInfo buildInfo = info; final IExternalScannerInfoProvider esiProvider = MakeCorePlugin.getDefault(). getExternalScannerInfoProvider(MakeCorePlugin.DEFAULT_EXTERNAL_SI_PROVIDER_ID); if (esiProvider != null) { ISafeRunnable runnable = new ISafeRunnable() { public void run() { String[] tsoArray; if (tso == null) { tsoArray = new String[0]; } else { tsoArray = (String[])tso.toArray(new String[tso.size()]); } esiProvider.invokeProvider(monitor, project, buildInfo, tsoArray); } public void handleException(Throwable exception) { MakeCorePlugin.log(exception); } }; Platform.run(runnable); } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3303fed1efcdd933b03792e66dbb45bedd1d754d/ScannerInfoCollector.java/clean/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/ScannerInfoCollector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 16137, 11338, 966, 12, 6385, 467, 4109, 1984, 16, 17322, 202, 202, 6385, 987, 268, 2048, 16, 17322, 202, 202, 6385, 467, 5491, 7187, 6438, 13, 288, 202, 202, 759, 336, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 16137, 11338, 966, 12, 6385, 467, 4109, 1984, 16, 17322, 202, 202, 6385, 987, 268, 2048, 16, 17322, 202, 202, 6385, 467, 5491, 7187, 6438, 13, 288, 202, 202, 759, 336, 4...
dbcs = new DBConnectionSpec(); dbcsPanel.applyChanges(dbcs); historyBox.addItem(ASUtils.lvb(dbcs.getDisplayName(), dbcs));
dbcsPanel.applyChanges(); DBConnectionSpec dbcs = dbcsPanel.getDbcs(); connectionsBox.addItem(ASUtils.lvb(dbcs.getDisplayName(), dbcs)); ArchitectFrame.getMainInstance().getUserSettings().getConnections().add(dbcs);
public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "New PL Repository Connection"); JPanel plr = new JPanel(new BorderLayout(12,12)); plr.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DBCSPanel dbcsPanel = new DBCSPanel(); plr.add(dbcsPanel, BorderLayout.CENTER); JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); JButton okButton = new JButton("Ok"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { dbcs = new DBConnectionSpec(); dbcsPanel.applyChanges(dbcs); historyBox.addItem(ASUtils.lvb(dbcs.getDisplayName(), dbcs)); d.setVisible(false); } }); buttonPanel.add(okButton); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { dbcsPanel.discardChanges(); d.setVisible(false); } }); buttonPanel.add(cancelButton); plr.add(buttonPanel, BorderLayout.SOUTH); d.setContentPane(plr); d.pack(); d.setVisible(true); }
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/7e836db67ed179c7d3009423bbc767242b612beb/PLExportPanel.java/buggy/src/ca/sqlpower/architect/swingui/PLExportPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1082, 202, 6385, 804, 6353, 302, 273, 394, 804, 6353, 12, 12269, 15004, 3219, 18, 588, 6376, 1442, 9334, 6862, 6862, 1082, 225, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1082, 202, 6385, 804, 6353, 302, 273, 394, 804, 6353, 12, 12269, 15004, 3219, 18, 588, 6376, 1442, 9334, 6862, 6862, 1082, 225, 315, ...
{ return new String("abort,acl,add,aggregate,append,archive,arch_store,backward,binary,change,cluster,copy,database,delimiters,do,extend,explain,forward,heavy,index,inherits,isnull,light,listen,load,merge,nothing,notify,notnull,oids,purge,rename,replace,retrieve,returns,rule,recipe,setof,stdin,stdout,store,vacuum,verbose,version"); }
{ return new String("abort,acl,add,aggregate,append,archive,arch_store,backward,binary,change,cluster,copy,database,delimiters,do,extend,explain,forward,heavy,index,inherits,isnull,light,listen,load,merge,nothing,notify,notnull,oids,purge,rename,replace,retrieve,returns,rule,recipe,setof,stdin,stdout,store,vacuum,verbose,version"); }
public String getSQLKeywords() throws SQLException { return new String("abort,acl,add,aggregate,append,archive,arch_store,backward,binary,change,cluster,copy,database,delimiters,do,extend,explain,forward,heavy,index,inherits,isnull,light,listen,load,merge,nothing,notify,notnull,oids,purge,rename,replace,retrieve,returns,rule,recipe,setof,stdin,stdout,store,vacuum,verbose,version"); }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 21708, 14149, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 394, 514, 2932, 18623, 16, 10150, 16, 1289, 16, 18573, 16, 6923, 16, 10686, 16, 991, 67, 2233, 16, 29275, 16, 857...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 21708, 14149, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 394, 514, 2932, 18623, 16, 10150, 16, 1289, 16, 18573, 16, 6923, 16, 10686, 16, 991, 67, 2233, 16, 29275, 16, 857...
public ASTAddNode(Parser p, int id)
public ASTAddNode(int id)
public ASTAddNode(Parser p, int id) { super(p, id); }
54229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54229/19daa08b7dcbcc1f16695b26ab1864d8a3ce4a42/ASTAddNode.java/buggy/src/java/org/apache/commons/jexl/parser/ASTAddNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 986, 907, 12, 474, 612, 13, 565, 288, 3639, 2240, 12, 84, 16, 612, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 986, 907, 12, 474, 612, 13, 565, 288, 3639, 2240, 12, 84, 16, 612, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if ((active1 & 0x800000000L) != 0L) return jjStartNfaWithStates_0(5, 99, 33);
if ((active1 & 0x1000000000L) != 0L) return jjStartNfaWithStates_0(5, 100, 33);
static private final int jjMoveStringLiteralDfa5_0(long old1, long active1, long old2, long active2){ if (((active1 &= old1) | (active2 &= old2)) == 0L) return jjStartNfa_0(3, 0L, old1, old2); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, 0L, active1, active2); return 5; } switch(curChar) { case 97: return jjMoveStringLiteralDfa6_0(active1, 0x41000000000L, active2, 0L); case 99: if ((active1 & 0x2000000L) != 0L) return jjStartNfaWithStates_0(5, 89, 33); else if ((active1 & 0x100000000L) != 0L) return jjStartNfaWithStates_0(5, 96, 33); return jjMoveStringLiteralDfa6_0(active1, 0x1000000L, active2, 0L); case 100: if ((active1 & 0x10000L) != 0L) return jjStartNfaWithStates_0(5, 80, 33); else if ((active1 & 0x40000000L) != 0L) return jjStartNfaWithStates_0(5, 94, 33); break; case 101: if ((active1 & 0x100L) != 0L) return jjStartNfaWithStates_0(5, 72, 33); else if ((active1 & 0x400L) != 0L) return jjStartNfaWithStates_0(5, 74, 33); else if ((active1 & 0x80000L) != 0L) return jjStartNfaWithStates_0(5, 83, 33); return jjMoveStringLiteralDfa6_0(active1, 0x8000000000L, active2, 0L); case 102: if ((active1 & 0x80000000L) != 0L) return jjStartNfaWithStates_0(5, 95, 33); break; case 104: if ((active1 & 0x800000000L) != 0L) return jjStartNfaWithStates_0(5, 99, 33); break; case 105: return jjMoveStringLiteralDfa6_0(active1, 0x100000000000L, active2, 0L); case 108: return jjMoveStringLiteralDfa6_0(active1, 0x4000080L, active2, 0x4L); case 110: if ((active1 & 0x2000L) != 0L) return jjStartNfaWithStates_0(5, 77, 33); else if ((active1 & 0x10000000L) != 0L) return jjStartNfaWithStates_0(5, 92, 33); return jjMoveStringLiteralDfa6_0(active1, 0x20000000040L, active2, 0L); case 116: if ((active1 & 0x200000000L) != 0L) return jjStartNfaWithStates_0(5, 97, 33); return jjMoveStringLiteralDfa6_0(active1, 0x400008800000L, active2, 0L); default : break; } return jjStartNfa_0(4, 0L, active1, active2);}
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 25, 67, 20, 12, 5748, 1592, 21, 16, 1525, 2695, 21, 16, 1525, 1592, 22, 16, 1525, 2695, 22, 15329, 282, 309, 261, 12443, 3535, 21, 12058, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 25, 67, 20, 12, 5748, 1592, 21, 16, 1525, 2695, 21, 16, 1525, 1592, 22, 16, 1525, 2695, 22, 15329, 282, 309, 261, 12443, 3535, 21, 12058, ...
.add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))
.add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 193, Short.MAX_VALUE))
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.setOpaque(false); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); sendToJPanel.setOpaque(false); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/307eed86bd6b2e7a0979608d755659b8a324e0b6/SessionSendFormAvatar.java/buggy/client-ui/src/main/java/com/thinkparity/browser/application/browser/display/avatar/SessionSendFormAvatar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 6863, 18, 5328, 310, 18, 46, 3616, 3755, 46, 3616, 31, 3639, 6863, 18, 5328, 310, 18, 46, 2224, 14841, 46, 2224, 31, 3639, 6863, 18, 5328, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 6863, 18, 5328, 310, 18, 46, 3616, 3755, 46, 3616, 31, 3639, 6863, 18, 5328, 310, 18, 46, 2224, 14841, 46, 2224, 31, 3639, 6863, 18, 5328, 310, ...
indentChunk();
public XmlWriter writeCData(String cdata) throws IOException { indentChunk(); super.writeCData(cdata); getWriter().write(newline); return this; }
651 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/651/0ec62d594aa7ad14d9580ec994c53fe09e16961c/PrettyPrinterXmlWriter.java/buggy/xmlwriter/src/java/com/generationjava/io/xml/PrettyPrinterXmlWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 2289, 1045, 39, 751, 12, 780, 20712, 13, 1216, 1860, 288, 7734, 2240, 18, 2626, 39, 751, 12, 71, 892, 1769, 3639, 20568, 7675, 2626, 12, 22861, 1769, 540, 327, 333, 31, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5714, 2289, 1045, 39, 751, 12, 780, 20712, 13, 1216, 1860, 288, 7734, 2240, 18, 2626, 39, 751, 12, 71, 892, 1769, 3639, 20568, 7675, 2626, 12, 22861, 1769, 540, 327, 333, 31, 565,...
return mcf.getDatabase(); }
return mcf.getDatabase(); }
public String getDatabase() { return mcf.getDatabase(); }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/ec54876a874a2b9cdcc60f1afe25c1e4c09147e0/FBManagedConnection.java/clean/src/org/firebirdsql/jca/FBManagedConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11263, 1435, 288, 202, 202, 2463, 6108, 74, 18, 588, 4254, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11263, 1435, 288, 202, 202, 2463, 6108, 74, 18, 588, 4254, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return new PGlobj(this);
if(largeobject==null) largeobject = new LargeObjectManager(this); return largeobject;
public PGlobj getLargeObjectAPI() throws SQLException { return new PGlobj(this); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/dffaec556455fbc20f93512552a6658d0e5018ad/Connection.java/clean/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22116, 383, 441, 9014, 297, 908, 921, 2557, 1435, 1216, 6483, 225, 288, 565, 309, 12, 14095, 1612, 631, 2011, 13, 7876, 1612, 273, 394, 16236, 908, 921, 1318, 12, 2211, 1769, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22116, 383, 441, 9014, 297, 908, 921, 2557, 1435, 1216, 6483, 225, 288, 565, 309, 12, 14095, 1612, 631, 2011, 13, 7876, 1612, 273, 394, 16236, 908, 921, 1318, 12, 2211, 1769, 327, ...
linkResource.setFullResourceName(linkName);
linkResource.setFullResourceName(siblingName);
public CmsResource createSibling(CmsRequestContext context, String linkName, String targetName, List linkProperties, boolean lockResource) throws CmsException { CmsResource targetResource = null; CmsResource linkResource = null; String parentFolderName = null; CmsFolder parentFolder = null; String resourceName = null; parentFolderName = linkName.substring(0, linkName.lastIndexOf(I_CmsConstants.C_FOLDER_SEPARATOR) + 1); resourceName = linkName.substring(linkName.lastIndexOf(I_CmsConstants.C_FOLDER_SEPARATOR) + 1, linkName.length()); // read the target resource targetResource = this.readFileHeader(context, targetName); if (targetResource.isFolder()) { throw new CmsException("Setting links on folders is not supported"); } // read the parent folder parentFolder = this.readFolder(context, parentFolderName, false); // for the parent folder is write access required checkPermissions(context, parentFolder, I_CmsConstants.C_WRITE_ACCESS); // construct a dummy that is written to the db linkResource = new CmsResource(new CmsUUID(), targetResource.getResourceId(), parentFolder.getStructureId(), CmsUUID.getNullUUID(), resourceName, targetResource.getType(), targetResource.getFlags(), context.currentProject().getId(), org.opencms.main.I_CmsConstants.C_STATE_NEW, targetResource.getLoaderId(), System.currentTimeMillis(), context.currentUser().getId(), System.currentTimeMillis(), context.currentUser().getId(), 0, targetResource.getLinkCount() + 1); // check if the resource has to be labeled now if (labelResource(context, targetResource, linkName, 1)) { int flags = linkResource.getFlags(); flags |= I_CmsConstants.C_RESOURCEFLAG_LABELLINK; linkResource.setFlags(flags); } // setting the full resource name twice here looks crude but is essential! linkResource.setFullResourceName(linkName); linkResource = m_vfsDriver.createSibling(context.currentProject(), linkResource, context.currentUser().getId(), parentFolder.getStructureId(), resourceName); linkResource.setFullResourceName(linkName); // mark the new sibling as modified in the current project m_vfsDriver.writeLastModifiedProjectId(context.currentProject(), context.currentProject().getId(), linkResource); if (linkProperties == null) { // "empty" properties are represented by an empty property map linkProperties = Collections.EMPTY_LIST; } // write its properties CmsProperty.setAutoCreatePropertyDefinitions(linkProperties, true); m_vfsDriver.writePropertyObjects(context.currentProject(), linkResource, linkProperties); // if the source clearResourceCache(); m_propertyCache.clear(); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, Collections.singletonMap("resource", parentFolder))); if (lockResource) { // lock the resource lockResource(context, linkName); } return linkResource; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0d824bbc5a76a7fc2f90c5f68636e7c96184cec4/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7630, 752, 10291, 12, 4747, 21426, 819, 16, 514, 1692, 461, 16, 514, 23395, 16, 987, 1692, 2297, 16, 1250, 2176, 1420, 13, 1216, 11228, 288, 3639, 7630, 1018, 1420, 273, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7630, 752, 10291, 12, 4747, 21426, 819, 16, 514, 1692, 461, 16, 514, 23395, 16, 987, 1692, 2297, 16, 1250, 2176, 1420, 13, 1216, 11228, 288, 3639, 7630, 1018, 1420, 273, 446, 31, ...
public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { String vmName = attributes.getValue("value"); if (checkNonEmpty(vmName)) { setResultObject(vmName); }else throw new org.xml.sax.SAXException("The name of the Jvm cannot be set to an empty string"); }
public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { String vmName = attributes.getValue("value"); if (checkNonEmpty(vmName)) { setResultObject(vmName); } else { throw new org.xml.sax.SAXException( "The name of the Jvm cannot be set to an empty string"); } }
public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { String vmName = attributes.getValue("value"); if (checkNonEmpty(vmName)) { setResultObject(vmName); }else throw new org.xml.sax.SAXException("The name of the Jvm cannot be set to an empty string"); }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/DeploymentHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/DeploymentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 9506, 202, 780, 4268, 461, 273, 1677, 18, 24805, 2932, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 9506, 202, 780, 4268, 461, 273, 1677, 18, 24805, 2932, 11...
return oneMatchesCurrentSystem(getOsList(el));
if (constraint_list == null) return true; Iterator constraint_it = constraint_list.iterator(); if (!constraint_it.hasNext()) return true; while (constraint_it.hasNext()) { OsConstraint osc = (OsConstraint) constraint_it.next(); Debug.trace("checking if os constraints " + osc + " match current OS"); if (osc.matchCurrentSystem()) { Debug.trace("matched current OS."); return true; } } Debug.trace("no match with current OS!"); return false;
public static boolean oneMatchesCurrentSystem(XMLElement el) { return oneMatchesCurrentSystem(getOsList(el)); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/9619b3a25f43787dc92011111668210e06c00c71/OsConstraint.java/buggy/src/lib/com/izforge/izpack/util/OsConstraint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1245, 6869, 3935, 3163, 12, 15223, 415, 13, 565, 288, 3639, 309, 261, 13364, 67, 1098, 422, 446, 13, 327, 638, 31, 225, 4498, 4954, 67, 305, 273, 4954, 67, 1098, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1245, 6869, 3935, 3163, 12, 15223, 415, 13, 565, 288, 3639, 309, 261, 13364, 67, 1098, 422, 446, 13, 327, 638, 31, 225, 4498, 4954, 67, 305, 273, 4954, 67, 1098, 18, ...
public void set(int val) throws InvalidConfigValueException { String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); }
public void set(String val) throws InvalidConfigValueException { if(val.length() == 0) { overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } FreenetInetAddress addr; try { addr = new FreenetInetAddress(val, false); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); }
public void set(int val) throws InvalidConfigValueException { // FIXME implement on the fly listenPort changing // Note that this sort of thing should be the exception rather than the rule!!!! String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/0e73e63698410905555b43e69172b80870e39ae5/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 444, 12, 474, 1244, 13, 1216, 1962, 809, 9738, 288, 25083, 202, 759, 9852, 2348, 603, 326, 21434, 6514, 2617, 12770, 25083, 202, 759, 3609, 716, 333, 1524, 434, 7757, 1410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 444, 12, 474, 1244, 13, 1216, 1962, 809, 9738, 288, 25083, 202, 759, 9852, 2348, 603, 326, 21434, 6514, 2617, 12770, 25083, 202, 759, 3609, 716, 333, 1524, 434, 7757, 1410...
astore(x);
cfw.addAStore(x);
private void visitEnumInit(Node node, Node child) { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); addScriptRuntimeInvoke("initEnum", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); short x = getNewWordLocal(); astore(x); node.putIntProp(Node.LOCAL_PROP, x); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 3572, 2570, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 1323, 261, 3624, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 1151, 273, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 3572, 2570, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 1323, 261, 3624, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 1151, 273, 115...
public void setHeight(int height){
public void setHeight(int height) {
public void setHeight(int height){ this.height = height; this.maxy = (this.height/this.y_pix_interval) - 1; needToRecreate = true; Debug.message("declutter", "Decluttering matrix: height reset to " + height ); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/69a1ad2b83ee2a31a4e61cc6f6755ba9f08c0652/DeclutterMatrix.java/clean/src/openmap/com/bbn/openmap/layer/DeclutterMatrix.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27276, 12, 474, 2072, 13, 288, 3639, 333, 18, 4210, 273, 2072, 31, 3639, 333, 18, 1896, 93, 273, 261, 2211, 18, 4210, 19, 2211, 18, 93, 67, 14861, 67, 6624, 13, 300, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27276, 12, 474, 2072, 13, 288, 3639, 333, 18, 4210, 273, 2072, 31, 3639, 333, 18, 1896, 93, 273, 261, 2211, 18, 4210, 19, 2211, 18, 93, 67, 14861, 67, 6624, 13, 300, 404, ...
public void initialize(PlugletInstancePeer peer) {
public void initialize(PlugletPeer peer) {
public void initialize(PlugletInstancePeer peer) { this.peer = peer; org.mozilla.util.Debug.print("--TestInstance.initialize\n"); peer.showStatus("Hello world"); org.mozilla.util.Debug.print("--TestInstance.initialize "+peer.getMIMEType()); /* try { OutputStreamWriter out = new OutputStreamWriter(peer.newStream("text/plain","_new")); String msg = "Hello, world"; out.write(msg,0,msg.length()); out.flush(); out.close(); } catch (Exception e) { ; } */ }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/12b30bdf0ba5464ee50238e5763283902c29b928/test.java/buggy/java/plugins/test/test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 12, 1749, 637, 1810, 1442, 6813, 4261, 13, 288, 202, 2211, 18, 12210, 273, 4261, 31, 202, 3341, 18, 8683, 15990, 18, 1367, 18, 2829, 18, 1188, 2932, 413, 4709, 1442, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 12, 1749, 637, 1810, 1442, 6813, 4261, 13, 288, 202, 2211, 18, 12210, 273, 4261, 31, 202, 3341, 18, 8683, 15990, 18, 1367, 18, 2829, 18, 1188, 2932, 413, 4709, 1442, 18...
action = new CPopulateASTViewAction(tu, monitor); tu.accept( (CASTVisitor) action);
action = new CPopulateASTViewAction(aTu, monitor); aTu.accept( (CASTVisitor) action);
protected IStatus run(IProgressMonitor monitor) { long start=0; long overallStart=System.currentTimeMillis(); if (file == null || lang == null || monitor == null) return Status.CANCEL_STATUS; if (monitor.isCanceled()) return Status.CANCEL_STATUS; monitor.beginTask(name, 8); start=System.currentTimeMillis(); IPopulateDOMASTAction action = null; IASTTranslationUnit tu = null; try { monitor.subTask(PARSING_TRANSLATION_UNIT); start=System.currentTimeMillis(); tu = CDOM.getInstance().getASTService().getTranslationUnit( file, CDOM.getInstance().getCodeReaderFactory( CDOM.PARSE_SAVED_RESOURCES)); monitor.worked(1); System.out.println("[DOM AST View] done " + PARSING_TRANSLATION_UNIT + ": " + (System.currentTimeMillis()- start) ); } catch (IASTServiceProvider.UnsupportedDialectException e) { return Status.CANCEL_STATUS; } if (monitor.isCanceled()) return Status.CANCEL_STATUS; monitor.subTask(GENERATING_INITIAL_TREE); start=System.currentTimeMillis(); if (lang == ParserLanguage.CPP) { action = new CPPPopulateASTViewAction(tu, monitor); tu.accept( (CPPASTVisitor) action); } else { action = new CPopulateASTViewAction(tu, monitor); tu.accept( (CASTVisitor) action); } monitor.worked(2); System.out.println("[DOM AST View] done " + GENERATING_INITIAL_TREE + ": " + (System.currentTimeMillis()- start) ); // display roots root = new DOMASTNodeParent(null); //$NON-NLS-1$ if (monitor.isCanceled()) return Status.CANCEL_STATUS; monitor.subTask(RETRIEVING_PREPROCESSOR_STATEMENTS); start=System.currentTimeMillis(); IASTPreprocessorStatement[] statements = tu.getAllPreprocessorStatements(); monitor.worked(3); System.out.println("[DOM AST View] done " + RETRIEVING_PREPROCESSOR_STATEMENTS + ": " + (System.currentTimeMillis()- start) ); monitor.subTask(MERGING_ + statements.length + _PREPROCESSOR_STATEMENTS_); start=System.currentTimeMillis(); // merge preprocessor statements to the tree action.mergePreprocessorStatements(statements); monitor.worked(4); System.out.println("[DOM AST View] done " + MERGING_ + statements.length + _PREPROCESSOR_STATEMENTS_ + ": " + (System.currentTimeMillis()- start) ); if (monitor.isCanceled()) return Status.CANCEL_STATUS; monitor.subTask(RETRIEVING_PREPROCESSOR_PROBLEMS); start=System.currentTimeMillis(); IASTProblem[] problems = tu.getPreprocessorProblems(); monitor.worked(5); System.out.println("[DOM AST View] done " + RETRIEVING_PREPROCESSOR_PROBLEMS + ": " + (System.currentTimeMillis()- start) ); monitor.subTask(MERGING_ + problems.length + _PREPROCESSOR_PROBLEMS_); start=System.currentTimeMillis(); // merge preprocessor problems to the tree action.mergePreprocessorProblems(problems); monitor.worked(6); System.out.println("[DOM AST View] done " + MERGING_ + problems.length + _PREPROCESSOR_PROBLEMS_ + ": " + (System.currentTimeMillis()- start) ); if (monitor.isCanceled()) return Status.CANCEL_STATUS; monitor.subTask(GROUPING_AST); start=System.currentTimeMillis(); // group #includes action.groupIncludes(statements); monitor.worked(7); System.out.println("[DOM AST View] done " + GROUPING_AST + ": " + (System.currentTimeMillis()- start) ); root.addChild(action.getTree()); // get the IASTProblems from the action if (action instanceof CPopulateASTViewAction) astProblems = ((CPopulateASTViewAction)action).getASTProblems(); else if (action instanceof CPPPopulateASTViewAction) astProblems = ((CPPPopulateASTViewAction)action).getASTProblems(); provider.setInvisibleRoot(root); monitor.done(); System.out.println("[DOM AST View] finished: " + (System.currentTimeMillis()- overallStart) ); return Status.OK_STATUS; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5ae8e3d4b72efb1f3c2c7da761083c0bb295dc2e/DOMAST.java/clean/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 377, 202, 202, 5748, 787, 33, 20, 31, 1082, 202, 5748, 13914, 1685, 33, 3163, 18, 2972, 28512, 5621, 9506, 377, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 377, 202, 202, 5748, 787, 33, 20, 31, 1082, 202, 5748, 13914, 1685, 33, 3163, 18, 2972, 28512, 5621, 9506, 377, 202, 202,...
public RubyString id2name() { return RubySymbol.getSymbol(runtime, value).to_s();
public IRubyObject id2name() { return RubySymbol.getSymbol(runtime, value).convertToString();
public RubyString id2name() { return RubySymbol.getSymbol(runtime, value).to_s(); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 612, 22, 529, 1435, 288, 3639, 327, 19817, 5335, 18, 588, 5335, 12, 9448, 16, 460, 2934, 869, 67, 87, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 612, 22, 529, 1435, 288, 3639, 327, 19817, 5335, 18, 588, 5335, 12, 9448, 16, 460, 2934, 869, 67, 87, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100...
right == other.right && wordSequence.equals(other.wordSequence);
right == other.right && wordSequenceMatch;
public boolean equals(Object o) { if (o == this) { return true; } else if (o instanceof LexTreeState) { LexTreeState other = (LexTreeState) o; return central == other.central && leftID == other.leftID && right == other.right && wordSequence.equals(other.wordSequence); } else { return false; } }
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/a50126798c24d4d691f5d1d1e5df6f5593c01359/LexTreeLinguist.java/buggy/sphinx4/edu/cmu/sphinx/decoder/linguist/lextree/LexTreeLinguist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 320, 13, 288, 5411, 309, 261, 83, 422, 333, 13, 288, 7734, 327, 638, 31, 5411, 289, 469, 309, 261, 83, 1276, 15123, 2471, 1119, 13, 288, 7734, 15123, 2471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 320, 13, 288, 5411, 309, 261, 83, 422, 333, 13, 288, 7734, 327, 638, 31, 5411, 289, 469, 309, 261, 83, 1276, 15123, 2471, 1119, 13, 288, 7734, 15123, 2471, ...
throw new SQLException(pg_stream.ReceiveString(4096));
throw new SQLException(pg_stream.ReceiveString (4096, getEncoding()));
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = new String(url); PG_DATABASE = new String(database); PG_PASSWORD = new String(info.getProperty("password")); PG_USER = new String(info.getProperty("user")); PG_PORT = port; PG_HOST = new String(host); PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(4096)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(4096)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(4096)); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // firstWarning = null; ExecSQL("set datestyle to 'ISO'"); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/65edb541865032b5750cfe58cb8f7affbe1fc298/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
reportSchemaError("src-wildcard", new Object[]{"intersection of wildcards is not expressible"}, child);
String code = (enclosingCT == null) ? "src-attribute_group.2" : "src-ct.4"; String name = (enclosingCT == null) ? attrGrp.fName : enclosingCT.getName(); reportSchemaError(code, new Object[]{name}, child);
Element traverseAttrsAndAttrGrps(Element firstAttr, XSAttributeGroupDecl attrGrp, XSDocumentInfo schemaDoc, SchemaGrammar grammar, XSComplexTypeDecl enclosingCT) { Element child=null; XSAttributeGroupDecl tempAttrGrp = null; XSAttributeUseImpl tempAttrUse = null; String childName; for (child=firstAttr; child!=null; child=DOMUtil.getNextSiblingElement(child)) { childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE)) { tempAttrUse = fSchemaHandler.fAttributeTraverser.traverseLocal(child, schemaDoc, grammar, enclosingCT); if (tempAttrUse == null) break; if (attrGrp.getAttributeUse(tempAttrUse.fAttrDecl.getNamespace(), tempAttrUse.fAttrDecl.getName())==null) { String idName = attrGrp.addAttributeUse(tempAttrUse); if (idName != null) { String code = (enclosingCT == null) ? "ag-props-correct.3" : "ct-props-correct.5"; String name = (enclosingCT == null) ? attrGrp.fName : enclosingCT.getName(); reportSchemaError(code, new Object[]{name, tempAttrUse.fAttrDecl.getName(), idName}, child); } } else { // REVISIT: what if one of the attribute uses is "prohibited" String code = (enclosingCT == null) ? "ag-props-correct.2" : "ct-props-correct.4"; String name = (enclosingCT == null) ? attrGrp.fName : enclosingCT.getName(); reportSchemaError(code, new Object[]{name, tempAttrUse.fAttrDecl.getName()}, child); } } else if (childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { //REVISIT: do we need to save some state at this point?? tempAttrGrp = fSchemaHandler.fAttributeGroupTraverser.traverseLocal( child, schemaDoc, grammar); if(tempAttrGrp == null ) break; XSObjectList attrUseS = tempAttrGrp.getAttributeUses(); XSAttributeUseImpl existingAttrUse = null, oneAttrUse; int attrCount = attrUseS.getLength(); for (int i=0; i<attrCount; i++) { oneAttrUse = (XSAttributeUseImpl)attrUseS.item(i); existingAttrUse = attrGrp.getAttributeUse(oneAttrUse.fAttrDecl.getNamespace(), oneAttrUse.fAttrDecl.getName()); if (existingAttrUse == null) { String idName = attrGrp.addAttributeUse(oneAttrUse); if (idName != null) { reportSchemaError("cvc-complex-type.5.3", new Object[]{oneAttrUse.fAttrDecl.getName(), idName}, child); } } else { // REVISIT: what if one of the attribute uses is "prohibited" reportSchemaError("ct-props-correct.4", new Object[]{"Duplicate attribute " + existingAttrUse.fAttrDecl.getName() + " found "}, child); } } if (tempAttrGrp.fAttributeWC != null) { if (attrGrp.fAttributeWC == null) { attrGrp.fAttributeWC = tempAttrGrp.fAttributeWC; } // perform intersection of attribute wildcard else { attrGrp.fAttributeWC = attrGrp.fAttributeWC. performIntersectionWith(tempAttrGrp.fAttributeWC, attrGrp.fAttributeWC.fProcessContents); if (attrGrp.fAttributeWC == null) { reportSchemaError("src-wildcard", new Object[]{"intersection of wildcards is not expressible"}, child); } } } } else break; } // for if (child != null) { childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_ANYATTRIBUTE)) { XSWildcardDecl tempAttrWC = fSchemaHandler.fWildCardTraverser. traverseAnyAttribute(child, schemaDoc, grammar); if (attrGrp.fAttributeWC == null) { attrGrp.fAttributeWC = tempAttrWC; } // perform intersection of attribute wildcard else { attrGrp.fAttributeWC = tempAttrWC. performIntersectionWith(attrGrp.fAttributeWC, tempAttrWC.fProcessContents); if (attrGrp.fAttributeWC == null) { reportSchemaError("src-wildcard", new Object[]{"intersection of wildcards is not expressible"}, child); } } child = DOMUtil.getNextSiblingElement(child); } } // Success return child; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/72aab9975567551c5541b6b1d326e2af32e237d9/XSDAbstractTraverser.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 10080, 8262, 1876, 3843, 20799, 1121, 12, 1046, 1122, 3843, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 16, 19694, 1139, 55, 2519, 966, 1963, 1759, 16, 4611, 18576, 6473, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 10080, 8262, 1876, 3843, 20799, 1121, 12, 1046, 1122, 3843, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 16, 19694, 1139, 55, 2519, 966, 1963, 1759, 16, 4611, 18576, 6473, 16, 1...
public static IMenuComponent getMenu(UIComponent component, String menuId) { return searchMenu(component, menuId);
public static IMenuComponent getMenu(MenuItemComponent item) { for (;;) { UIComponent component = item.getParent(); if (component == null) { return null; } if (component instanceof MenuComponent) { return (MenuComponent) component; } if ((component instanceof MenuItemComponent) == false) { return null; } item = (MenuItemComponent) component; }
public static IMenuComponent getMenu(UIComponent component, String menuId) { return searchMenu(component, menuId); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/MenuTools.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/tools/MenuTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 467, 4599, 1841, 25877, 12, 5370, 1841, 1794, 16, 514, 3824, 548, 13, 288, 3639, 327, 1623, 4599, 12, 4652, 16, 3824, 548, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 467, 4599, 1841, 25877, 12, 5370, 1841, 1794, 16, 514, 3824, 548, 13, 288, 3639, 327, 1623, 4599, 12, 4652, 16, 3824, 548, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -1...
BugzillaTask bugTask = (BugzillaTask)task;
BugzillaTask bugTask = (BugzillaTask) task;
private void searchLocal(List<ITask> tasks, BugzillaResultCollector searchCollector, String elementName, IProgressMonitor monitor) { if(tasks == null) return; // go through all of the tasks for(ITask task : tasks){ monitor.worked(1); // check what kind of task it is if(task instanceof BugzillaTask){ // we have a bugzilla task, so get the bug report BugzillaTask bugTask = (BugzillaTask)task; BugReport bug = bugTask.getBugReport(); // parse the bug report for the element that we are searching for boolean isHit = search(elementName, bug); // determine if we have a hit or not if(isHit){ // make a search hit from the bug and then add it to the collector BugzillaSearchHit hit = new BugzillaSearchHit(bug.getId(), bug.getDescription(), "","","","","","","", bug.getServer()); try{ searchCollector.accept(hit); } catch(CoreException e){ MylarStatusHandler.log(e, "bug search failed"); } } } } status = Status.OK_STATUS; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaMylarSearchOperation.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/search/BugzillaMylarSearchOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1623, 2042, 12, 682, 32, 1285, 835, 34, 4592, 16, 16907, 15990, 1253, 7134, 1623, 7134, 16, 514, 14453, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 430, 12, 9416, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1623, 2042, 12, 682, 32, 1285, 835, 34, 4592, 16, 16907, 15990, 1253, 7134, 1623, 7134, 16, 514, 14453, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 430, 12, 9416, 422,...
throw Kit.badTypeJS(val);
warnAboutNonJSObject(val); return true;
public static boolean toBoolean(Object val) { if (val == null) return false; if (val instanceof Boolean) return ((Boolean) val).booleanValue(); if (val instanceof Scriptable) { if (Context.getContext().isVersionECMA1()) { // pure ECMA return val != Undefined.instance; } // ECMA extension val = ((Scriptable) val).getDefaultValue(BooleanClass); if (val instanceof Scriptable) throw errorWithClassName("msg.primitive.expected", val); if (val instanceof Boolean) return ((Boolean) val).booleanValue(); // fall through } if (val instanceof String) return ((String) val).length() != 0; if (val instanceof Number) { double d = ((Number) val).doubleValue(); return (d == d && d != 0.0); } throw Kit.badTypeJS(val); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/fb0c98a7e66723f1ae949f529f8d4abc7596ebae/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 358, 5507, 12, 921, 1244, 13, 288, 3639, 309, 261, 1125, 422, 446, 13, 5411, 327, 629, 31, 3639, 309, 261, 1125, 1276, 3411, 13, 5411, 327, 14015, 5507, 13, 1244, 2934,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 358, 5507, 12, 921, 1244, 13, 288, 3639, 309, 261, 1125, 422, 446, 13, 5411, 327, 629, 31, 3639, 309, 261, 1125, 1276, 3411, 13, 5411, 327, 14015, 5507, 13, 1244, 2934,...
public boolean isJpeg() throws IOException
public boolean isJpeg() throws JpegProcessingException
public boolean isJpeg() throws IOException { BufferedInputStream fileStream = new BufferedInputStream(new FileInputStream(_file)); try { return isValidJpegHeaderBytes(fileStream); } finally { fileStream.close(); } }
13212 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13212/86405a5c4ff12f30fd2796244d129975a8483ac3/JpegSegmentReader.java/clean/src/com/drew/imaging/jpeg/JpegSegmentReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 46, 9001, 1435, 1216, 804, 9001, 23684, 565, 288, 3639, 24742, 585, 1228, 273, 394, 24742, 12, 2704, 11907, 24899, 768, 10019, 3639, 775, 288, 5411, 327, 4908, 46, 9001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 46, 9001, 1435, 1216, 804, 9001, 23684, 565, 288, 3639, 24742, 585, 1228, 273, 394, 24742, 12, 2704, 11907, 24899, 768, 10019, 3639, 775, 288, 5411, 327, 4908, 46, 9001, ...
public void testCallableError1() throws Exception { String text = "test message"; Statement stmt = con.createStatement(); stmt.execute("create procedure #ce1 as\r\n " + "begin\r\n" + "RAISERROR('" + text + "', 16, 1 )\r\n" + "end"); stmt.close(); CallableStatement cstmt = con.prepareCall("{call #ce1}"); try { cstmt.execute(); assertTrue(false); } catch (SQLException e) { assertTrue(e.getMessage().equals(text)); } cstmt.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/652c051efa4b30c605d0754c2aca1050213b5c11/CallableStatementTest.java/clean/src/test/net/sourceforge/jtds/test/CallableStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 668, 21, 1435, 1216, 1185, 288, 3639, 514, 977, 273, 315, 3813, 883, 14432, 7734, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 2640, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 668, 21, 1435, 1216, 1185, 288, 3639, 514, 977, 273, 315, 3813, 883, 14432, 7734, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 2640, 121...
Map params = new HashMap( );
protected Map getParsedParameters( IViewerReportDesignHandle design, Collection parameterList, HttpServletRequest request, InputOptions options ) throws ReportServiceException { assert parameterList != null; assert parametersAsString != null; Map params = new HashMap( ); for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); ) { ScalarParameterHandle parameter = null; Object parameterObj = iter.next( ); if ( parameterObj instanceof ScalarParameterHandle ) { parameter = (ScalarParameterHandle) parameterObj; } // if current object is not Scalar parameter handle, then skip it if ( parameter == null ) continue; String paramName = parameter.getName( ); Object paramValueObj = parametersAsString.get( paramName ); if ( paramValueObj != null ) { // Convert locale string to object try { paramValueObj = ParameterValidationUtil.validate( parameter .getDataType( ), parameter.getPattern( ), paramValueObj.toString( ), locale ); params.put( paramName, paramValueObj ); } catch ( ValidationValueException e ) { // if in RUN mode, then throw exception directly if ( ParameterAccessor.SERVLET_PATH_RUN .equalsIgnoreCase( request.getServletPath( ) ) ) { this.exception = e; break; } } } else { params.put( paramName, null ); } } return params; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5bdace78a30f4b2e1b7ec545592256cb0b1473cc/ViewerAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 25406, 2402, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 2532, 1569, 682, 16, 9984, 590, 16, 1082, 202, 1210, 1320, 702, 262, 1216, 8706, 15133, 202, 95, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 25406, 2402, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 2532, 1569, 682, 16, 9984, 590, 16, 1082, 202, 1210, 1320, 702, 262, 1216, 8706, 15133, 202, 95, 202,...
if (shell != null) { if (!shell.endsWith("sh")) { shellSwitch = "/c";
if (aProcess != null) { InputStream processOutput = aProcess.getInputStream(); int b; boolean crSeen = false; while ((b = processOutput.read()) != -1) { if (b == '\r') { crSeen = true; } else { if (crSeen) { if (b != '\n') { output.write('\r'); } crSeen = false; } output.write(b); }
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell != null) { if (!shell.endsWith("sh")) { shellSwitch = "/c"; } aProcess = Runtime.getRuntime().exec(new String[] { shell, shellSwitch, command }); } else { aProcess = Runtime.getRuntime().exec(command); } final BufferedReader reader = new BufferedReader(new InputStreamReader(aProcess.getInputStream())); // Fairly innefficient impl, but readLine is unable to tell // whether the last line in a process ended with a newline or not. int c; boolean crSeen = false; while ((c = reader.read()) != -1) { if (c == '\r') { crSeen = true; } else { if (crSeen) { if (c != '\n') { output.append('\r'); } crSeen = false; } output.append((char)c); } } if (crSeen) { output.append('\r'); } aProcess.getErrorStream().close(); aProcess.getOutputStream().close(); reader.close(); return aProcess.waitFor(); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } catch (InterruptedException e) { throw runtime.newThreadError("unexpected interrupt"); } }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/b4a189a27604d62c317938f16a124fb9dab1e94a/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 514, 1296, 16, 6674, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 10304, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 514, 1296, 16, 6674, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 10304, 88...
private void createWebModuleProject(J2EEModuleCreationDataModel model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
private void createWebModuleProject(J2EEModuleCreationDataModelOld model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
private void createWebModuleProject(J2EEModuleCreationDataModel model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException { EarModuleExtension ext = EarModuleManager.getWebModuleExtension(); runModuleExtensionOperation(ext, model, monitor); WTPActivityBridge.getInstance().enableActivity(WEB_DEV_ACTIVITY_ID, true); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/3031f53be0adbf835f39609909ba56af3402ccaf/DefaultModuleProjectCreationOperation.java/clean/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/operations/DefaultModuleProjectCreationOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4079, 3120, 4109, 12, 46, 22, 9383, 3120, 9906, 26349, 938, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 16, 15342, 16, 7558, 288, 202, 202, 41, 297, 3120, 3625, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4079, 3120, 4109, 12, 46, 22, 9383, 3120, 9906, 26349, 938, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 16, 15342, 16, 7558, 288, 202, 202, 41, 297, 3120, 3625, 111...
public IResponseMessage processRequest(Admin admin, CAInfo cainfo, IRequestMessage requestmessage) throws CAExistsException, CADoesntExistsException, AuthorizationDeniedException, CATokenOfflineException { CA ca = null; Collection certchain = null; Collection certpublishers = null; IResponseMessage returnval = null; // check authorization try{ getAuthorizationSession().isAuthorizedNoLog(admin,"/super_administrator"); }catch(AuthorizationDeniedException e){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,"Administrator isn't authorized to process CA",e); throw new AuthorizationDeniedException("Not authorized to process a CA "); } // Check that CA doesn't already exists try{ int caid = cainfo.getCAId(); if(caid >=0 && caid <= CAInfo.SPECIALCAIDBORDER){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error when processing CA " + cainfo.getName() +". CA already exists."); throw new CAExistsException("Error when processing CA " + cainfo.getName() +". CA already exists."); } cadatahome.findByPrimaryKey(new Integer(caid)); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error when processing CA " + cainfo.getName() +". CA already exists."); throw new CAExistsException("Error when processing CA " + cainfo.getName() +". CA already exists."); }catch(javax.ejb.FinderException fe) {} try{ cadatahome.findByName(cainfo.getName()); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error when processing CA " + cainfo.getName() +". CA already exists."); throw new CAExistsException("Error when processing CA " + cainfo.getName() +". CA already exists."); }catch(javax.ejb.FinderException fe) {} //get signing CA if(cainfo.getSignedBy() > CAInfo.SPECIALCAIDBORDER || cainfo.getSignedBy() < 0){ try{ CADataLocal signcadata = cadatahome.findByPrimaryKey(new Integer(cainfo.getSignedBy())); CA signca = signcadata.getCA(); try{ // Check validity of signers certificate X509Certificate signcert = (X509Certificate) signca.getCACertificate(); try{ signcert.checkValidity(); }catch(CertificateExpiredException ce){ // Signers Certificate has expired. signcadata.setStatus(SecConst.CA_EXPIRED); getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " has expired",ce); throw new EJBException(ce); }catch(CertificateNotYetValidException cve){ getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " is not yet valid",cve); throw new EJBException(cve); } // Get public key from request PublicKey publickey = requestmessage.getRequestPublicKey(); // Create cacertificate Certificate cacertificate = null; if(cainfo instanceof X509CAInfo){ UserAuthData cadata = new UserAuthData("nobody", null, cainfo.getSubjectDN(), cainfo.getSubjectDN().hashCode(), ((X509CAInfo) cainfo).getSubjectAltName(), null, 0, cainfo.getCertificateProfileId(), null); CertificateProfile certprofile = getCertificateStoreSession().getCertificateProfile(admin, cainfo.getCertificateProfileId()); certpublishers = certprofile.getPublisherList(); cacertificate = signca.generateCertificate(cadata, publickey, -1, cainfo.getValidity(), certprofile); returnval = new X509ResponseMessage(); returnval.setCertificate(cacertificate); } // Build Certificate Chain Collection rootcachain = signca.getCertificateChain(); certchain = new ArrayList(); certchain.add(cacertificate); certchain.addAll(rootcachain); if(cainfo instanceof X509CAInfo){ X509CAInfo x509cainfo = (X509CAInfo) cainfo; // Create X509CA ca = new X509CA((X509CAInfo) cainfo); ca.setCertificateChain(certchain); ca.setCAToken(new NullCAToken()); } // set status to active cadatahome.create(cainfo.getSubjectDN(), cainfo.getName(), SecConst.CA_EXTERNAL, ca); // Publish CA certificates. getSignSession().publishCACertificate(admin, ca.getCertificateChain(), ca.getCRLPublishers(), SecConst.CERTTYPE_SUBCA); }catch(CATokenOfflineException e){ signca.setStatus(SecConst.CA_OFFLINE); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Couldn't Process CA.",e); throw e; } }catch(Exception e){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Couldn't Process CA.",e); throw new EJBException(e); } } if(certchain != null) getLogSession().log(admin, cainfo.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CAEDITED,"CA processed successfully"); else getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error when processing CA"); return returnval; } // processRequest
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/6f27459e8db7a9efb8cf0588695ad6fd28539506/CAAdminSessionBean.java/clean/src/java/se/anatom/ejbca/ca/caadmin/CAAdminSessionBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1064, 1079, 1207, 691, 12, 4446, 3981, 16, 6425, 966, 276, 28935, 16, 467, 691, 1079, 590, 2150, 13, 377, 1216, 6425, 4002, 503, 16, 385, 1880, 83, 281, 496, 4002, 503, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1064, 1079, 1207, 691, 12, 4446, 3981, 16, 6425, 966, 276, 28935, 16, 467, 691, 1079, 590, 2150, 13, 377, 1216, 6425, 4002, 503, 16, 385, 1880, 83, 281, 496, 4002, 503, 16, ...
public org.quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { org.quickfix.field.StrikePrice value = new org.quickfix.field.StrikePrice();
public quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { quickfix.field.StrikePrice value = new quickfix.field.StrikePrice();
public org.quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound { org.quickfix.field.StrikePrice value = new org.quickfix.field.StrikePrice(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/MultilegOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1585, 2547, 5147, 24017, 2547, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1585, 2547, 5147, 460, 273, 394, 2358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1585, 2547, 5147, 24017, 2547, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1585, 2547, 5147, 460, 273, 394, 2358,...
table.setRowSelectionInterval(0,0);
if (table.getRowCount() != 0) table.setRowSelectionInterval(0,0);
public void actionPerformed(ActionEvent evt) { int[] selected = table.getSelectedRows(); List listModel = new LinkedList(); Roster roster = new Roster(); for(int i = 0; i < selected.length; i++) { Entry entry = pluginModel.getEntry(selected[i]); Iterator iter = entry.jars.iterator(); while(iter.hasNext()) { String jar = (String)iter.next(); listModel.add(jar); roster.addRemove(jar); } } int button = GUIUtilities.listConfirm(window, "plugin-manager.remove-confirm", null,listModel.toArray()); if(button == JOptionPane.YES_OPTION) { roster.performOperationsInAWTThread(window); pluginModel.update(); table.setRowSelectionInterval(0,0); table.setColumnSelectionInterval(0,0); JScrollBar scrollbar = scrollpane.getVerticalScrollBar(); scrollbar.setValue(scrollbar.getMinimum()); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/7bd44885b8cbc35f0866ad4dda23cdf2dae50649/ManagePanel.java/buggy/org/gjt/sp/jedit/pluginmgr/ManagePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 474, 8526, 3170, 273, 1014, 18, 588, 7416, 4300, 5621, 1082, 202, 682, 666, 1488, 273, 394, 10688, 5621, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 474, 8526, 3170, 273, 1014, 18, 588, 7416, 4300, 5621, 1082, 202, 682, 666, 1488, 273, 394, 10688, 5621, 1082, ...
if (e.keyCode == SWT.ARROW_DOWN)
if (e.keyCode == SWT.ARROW_DOWN) {
protected Text createFilterText(Composite parent) { fFilterText = new Text(parent, SWT.NONE); GridData data = new GridData(); GC gc = new GC(parent); gc.setFont(parent.getFont()); FontMetrics fontMetrics = gc.getFontMetrics(); gc.dispose(); data.heightHint = org.eclipse.jface.dialogs.Dialog.convertHeightInCharsToPixels( fontMetrics, 1); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; fFilterText.setLayoutData(data); fFilterText.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { if (e.keyCode == 0x0D) // return gotoSelectedElement(); if (e.keyCode == SWT.ARROW_DOWN) fTableViewer.getTable().setFocus(); if (e.keyCode == SWT.ARROW_UP) fTableViewer.getTable().setFocus(); if (e.character == 0x1B) // ESC dispose(); } public void keyReleased(KeyEvent e) { // do nothing } }); // Horizontal separator line Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.LINE_DOT); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return fFilterText; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/47ccbbdac945d008a94df2b1ce3e12711b9f1b2b/AbstractTableInformationControl.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/AbstractTableInformationControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3867, 752, 1586, 1528, 12, 9400, 982, 13, 288, 202, 202, 74, 1586, 1528, 273, 394, 3867, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 751, 501, 273, 394, 7145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3867, 752, 1586, 1528, 12, 9400, 982, 13, 288, 202, 202, 74, 1586, 1528, 273, 394, 3867, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 751, 501, 273, 394, 7145, ...
if (propName != null && propName.equalsIgnoreCase("xmlRepresentation"))
if (propName != null && propName.equalsIgnoreCase("Chart::xmlRepresentation"))
public ByteArrayOutputStream serialize(String propName) { if (propName != null && propName.equalsIgnoreCase("xmlRepresentation")) { try { return SerializerImpl.instance().asXml(cm, true); } catch (IOException e ) { // TODO Auto-generated catch block e.printStackTrace(); return new ByteArrayOutputStream(); } } return null; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8be8e6e240c64b798d4a4f0aa00db77845de459e/ChartReportItemImpl.java/clean/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11559, 4472, 12, 780, 9994, 13, 565, 288, 3639, 309, 261, 5986, 461, 480, 446, 597, 9994, 18, 14963, 5556, 2932, 7984, 2866, 2902, 13742, 6, 3719, 3639, 288, 5411, 775, 5411, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11559, 4472, 12, 780, 9994, 13, 565, 288, 3639, 309, 261, 5986, 461, 480, 446, 597, 9994, 18, 14963, 5556, 2932, 7984, 2866, 2902, 13742, 6, 3719, 3639, 288, 5411, 775, 5411, 288, ...
HashSet nondefaultSessions = new HashSet(sections.keySet()); nondefaultSessions.remove(DEFAULT_SESSION_ID); return nondefaultSessions.iterator(); }
HashSet nondefaultSessions = new HashSet(sections.keySet()); nondefaultSessions.remove(DEFAULT_SESSION_ID); return nondefaultSessions.iterator(); }
public Iterator sectionIterator() { HashSet nondefaultSessions = new HashSet(sections.keySet()); nondefaultSessions.remove(DEFAULT_SESSION_ID); return nondefaultSessions.iterator(); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/04bd484f2b9d7bbbdfd2dcd0536120f4fd8e5b12/SessionSettings.java/buggy/src/quickfix/SessionSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4498, 2442, 3198, 1435, 288, 202, 202, 13482, 1661, 1886, 13566, 273, 394, 6847, 12, 11657, 18, 856, 694, 10663, 202, 202, 5836, 1886, 13566, 18, 4479, 12, 5280, 67, 7042, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4498, 2442, 3198, 1435, 288, 202, 202, 13482, 1661, 1886, 13566, 273, 394, 6847, 12, 11657, 18, 856, 694, 10663, 202, 202, 5836, 1886, 13566, 18, 4479, 12, 5280, 67, 7042, 67, ...
if(myInvokeAndWaitSemaphore == null) { myInvokeAndWaitSemaphore = new Semaphore(); } myInvokeAndWaitSemaphore.down();
down();
public final void hold() { if(myInvokeAndWaitSemaphore == null) { myInvokeAndWaitSemaphore = new Semaphore(); } myInvokeAndWaitSemaphore.down(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d447cb36ef9ce5ba18d62292a4a7d77329ca89e0/InvokeAndWaitEventImpl.java/buggy/source/com/intellij/debugger/impl/InvokeAndWaitEventImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 6887, 1435, 288, 565, 309, 12, 4811, 10969, 1876, 5480, 13185, 18837, 422, 446, 13, 288, 1377, 3399, 10969, 1876, 5480, 13185, 18837, 273, 394, 15661, 18837, 5621, 565, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 6887, 1435, 288, 565, 309, 12, 4811, 10969, 1876, 5480, 13185, 18837, 422, 446, 13, 288, 1377, 3399, 10969, 1876, 5480, 13185, 18837, 273, 394, 15661, 18837, 5621, 565, 289,...
return m_targetObject;
return m_targetObjectReference.get();
public Object getTargetObject() { return m_targetObject; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/b147fecbdfbb03a8c3a5bfed9c349908e93b15cb/MemberMethodJoinPoint.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/joinpoint/MemberMethodJoinPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8571, 921, 1435, 288, 3639, 327, 312, 67, 3299, 22101, 18, 588, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8571, 921, 1435, 288, 3639, 327, 312, 67, 3299, 22101, 18, 588, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public int STOCH_Lookback( int optInFastK_Period, int optInSlowK_Period, TA_MAType optInSlowK_MAType, int optInSlowD_Period, TA_MAType optInSlowD_MAType ){ int retValue; retValue = (optInFastK_Period - 1); retValue += MA_Lookback ( optInSlowK_Period, optInSlowK_MAType ); retValue += MA_Lookback ( optInSlowD_Period, optInSlowD_MAType ); return retValue;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 509, 2347, 51, 1792, 67, 9794, 823, 12, 509, 2153, 382, 12305, 47, 67, 5027, 16, 509, 2153, 382, 28733, 47, 67, 5027, 16, 399, 37, 67, 5535, 559, 2153, 382, 28733, 47, 67, 5535,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 509, 2347, 51, 1792, 67, 9794, 823, 12, 509, 2153, 382, 12305, 47, 67, 5027, 16, 509, 2153, 382, 28733, 47, 67, 5027, 16, 399, 37, 67, 5535, 559, 2153, 382, 28733, 47, 67, 5535,...
log.warn("Could not find: " + filename);
log.warn("Could not find: " + filename);
public static String getPath(String filename) { Logger log = CSMART.createLogger("org.cougaar.tools.csmart.ui.util.Util"); ConfigFinder configFinder = ConfigFinder.getInstance(); File file = configFinder.locateFile(filename); String path = null; try { path = file.getCanonicalPath(); } catch (Exception e) { if(log.isWarnEnabled()) { log.warn("Could not find: " + filename); } } return path; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/19df295178579af7a70229470aeedc7cfbb179a7/Util.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/util/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 4339, 12, 780, 1544, 13, 288, 565, 4242, 613, 273, 6761, 49, 4928, 18, 2640, 3328, 2932, 3341, 18, 2894, 637, 69, 297, 18, 6642, 18, 2143, 81, 485, 18, 4881, 18, 1367,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 4339, 12, 780, 1544, 13, 288, 565, 4242, 613, 273, 6761, 49, 4928, 18, 2640, 3328, 2932, 3341, 18, 2894, 637, 69, 297, 18, 6642, 18, 2143, 81, 485, 18, 4881, 18, 1367,...
String projectCPU = ICDebugConfiguration.PLATFORM_NATIVE;
String projectCPU = ICDebugConfiguration.CPU_NATIVE;
private boolean validateDebuggerConfig(ILaunchConfiguration config) { String platform = getPlatform(config); ICElement ce = getContext(config, null); String projectPlatform = getPlatform(config); String projectCPU = ICDebugConfiguration.PLATFORM_NATIVE; if (ce != null) { if (ce instanceof IBinary) { IBinary bin = (IBinary) ce; projectCPU = bin.getCPU(); } } ICDebugConfiguration debugConfig = getDebugConfig(); if (debugConfig == null) { return false; } String debuggerPlatform = debugConfig.getPlatform(); boolean isNative = platform.equals(projectPlatform); if (debuggerPlatform.equalsIgnoreCase(projectPlatform) || (isNative && debuggerPlatform.equalsIgnoreCase(ICDebugConfiguration.PLATFORM_NATIVE))) { if (debugConfig.supportsCPU(projectCPU)) { return true; } } return false; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/760c2a22b5ade12b0e192e738b69d0dc523fd625/CDebuggerTab.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1954, 24113, 809, 12, 2627, 4760, 1750, 642, 13, 288, 202, 202, 780, 4072, 273, 24921, 12, 1425, 1769, 202, 202, 2871, 1046, 5898, 273, 6474, 12, 1425, 16, 446, 1769, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1954, 24113, 809, 12, 2627, 4760, 1750, 642, 13, 288, 202, 202, 780, 4072, 273, 24921, 12, 1425, 1769, 202, 202, 2871, 1046, 5898, 273, 6474, 12, 1425, 16, 446, 1769, 2...
} else {
} else {
public void handleMessagingException(UMOMessage message, Throwable t) { System.out.println("@@@@ ExceptionHandler Called @@@@"); if (t instanceof MessageRedeliveredException) { countDown.release(); try { //MessageRedeliveredException mre = (MessageRedeliveredException)t; Message msg = (Message) message.getPayload(); assertNotNull(msg); assertTrue(msg.getJMSRedelivered()); assertTrue(msg instanceof TextMessage); //No need to commit transaction as the Tx template will auto //matically commit by default super.handleMessagingException(message, t); } catch (Exception e) { fail(e.getMessage()); } } else { t.printStackTrace(); fail(t.getMessage()); } super.handleMessagingException(message, t); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/AbstractJmsTransactionFunctionalTest.java/clean/tests/integration/src/test/java/org/mule/test/integration/providers/jms/AbstractJmsTransactionFunctionalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1640, 23389, 503, 12, 2799, 51, 1079, 883, 16, 4206, 268, 13, 3639, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 30989, 30989, 1185, 1503, 11782, 22175, 30989, 8863, 5411, 309, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1640, 23389, 503, 12, 2799, 51, 1079, 883, 16, 4206, 268, 13, 3639, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 30989, 30989, 1185, 1503, 11782, 22175, 30989, 8863, 5411, 309, 26...
return perspectiveBar; }
return perspectiveBar; }
public PerspectiveBarManager getPerspectiveBar() { return perspectiveBar; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/04aabdd41be60938c86dabee86663a60046dd26c/PerspectiveSwitcher.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 453, 414, 16772, 5190, 1318, 1689, 414, 16772, 5190, 1435, 288, 3639, 327, 26651, 5190, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 453, 414, 16772, 5190, 1318, 1689, 414, 16772, 5190, 1435, 288, 3639, 327, 26651, 5190, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; }
public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; }
public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16230, 5139, 17049, 4534, 2828, 12, 20352, 5752, 1771, 13, 288, 202, 202, 2211, 18, 8373, 273, 1771, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16230, 5139, 17049, 4534, 2828, 12, 20352, 5752, 1771, 13, 288, 202, 202, 2211, 18, 8373, 273, 1771, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
((MultiEditor)parentPane.getPartReference().getPart(true)).updateGradient((IEditorPart)this.getEditorReference().getPart(true));
MultiEditor multiEditor = (MultiEditor)parentPane.getPartReference().getPart(true); if(multiEditor != null) multiEditor.updateGradient((IEditorPart)this.getEditorReference().getPart(true));
private void updateGradient() { ((MultiEditor)parentPane.getPartReference().getPart(true)).updateGradient((IEditorPart)this.getEditorReference().getPart(true)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0dea87227e14df54d5f8f54ee991ec7673c4c135/MultiEditorInnerPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/MultiEditorInnerPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 15651, 1435, 288, 202, 202, 12443, 5002, 6946, 13, 2938, 8485, 18, 588, 1988, 2404, 7675, 588, 1988, 12, 3767, 13, 2934, 2725, 15651, 12443, 45, 6946, 1988, 13, 2211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 15651, 1435, 288, 202, 202, 12443, 5002, 6946, 13, 2938, 8485, 18, 588, 1988, 2404, 7675, 588, 1988, 12, 3767, 13, 2934, 2725, 15651, 12443, 45, 6946, 1988, 13, 2211...
if (!(Model.getFacade().isAModelElement(dm))) return NO_PROBLEM;
if (!(Model.getFacade().isAModelElement(dm))) { return NO_PROBLEM; }
public boolean predicate2(Object dm, Designer dsgr) { if (!(Model.getFacade().isAModelElement(dm))) return NO_PROBLEM; Object me = /*(MModelElement)*/ dm; ListSet offs = computeOffenders(me); if (offs.size() > 1) return PROBLEM_FOUND; return NO_PROBLEM; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/601e169b9d0d5cf526304dbea3e59bedc6d174d8/CrNameConfusion.java/clean/src_new/org/argouml/uml/cognitive/critics/CrNameConfusion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 202, 430, 16051, 12, 1488, 18, 588, 12467, 7675, 291, 37, 1488, 1046, 12, 10956, 20349, 327, 3741, 67, 3373,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 202, 430, 16051, 12, 1488, 18, 588, 12467, 7675, 291, 37, 1488, 1046, 12, 10956, 20349, 327, 3741, 67, 3373,...
localHistory.forward();
if (localHistory.canGoForward()) { localHistory.forward(); }
public void actionPerformed(ActionEvent e) { localHistory.forward(); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/7e7b860a295a82f94341f2ce181dbb02d96a93bf/JSVGViewerFrame.java/clean/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 309, 261, 3729, 5623, 18, 4169, 5741, 8514, 10756, 288, 1191, 5623, 18, 11565, 5621, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 309, 261, 3729, 5623, 18, 4169, 5741, 8514, 10756, 288, 1191, 5623, 18, 11565, 5621, 289, 3639, 289, 2, -100, -100, -100, -100, -100,...
public int getOptimizationLevel()
public final int getOptimizationLevel()
public int getOptimizationLevel() { return optimizationLevel; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/767031d59e433c96cbc46c5e9fa8adb631f14074/Context.java/buggy/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 509, 336, 13930, 1588, 2355, 1435, 565, 288, 3639, 327, 14850, 2355, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 509, 336, 13930, 1588, 2355, 1435, 565, 288, 3639, 327, 14850, 2355, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
boolean checkLastHistory(PollHistory lastHistory, NodeState node) { switch (lastHistory.status) { // if latest is PollState.LOST or PollState.REPAIRING // call a name poll to finish the repair which ended early case PollState.LOST: case PollState.REPAIRING: PollSpec spec = new PollSpec(node.getCachedUrlSet(), lastHistory.lwrBound, lastHistory.uprBound); callNamePoll(spec.getCachedUrlSet()); return true; case PollState.UNREPAIRABLE: //XXX determine what to do return false; default: return false; } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/a9365b64a4e8a46b6f59043f7d4b8b9770c4a94d/NodeManagerImpl.java/buggy/src/org/lockss/state/NodeManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 225, 866, 3024, 5623, 12, 19085, 5623, 225, 1142, 5623, 16, 225, 2029, 1119, 225, 756, 13, 225, 288, 3639, 1620, 225, 261, 2722, 5623, 18, 2327, 13, 225, 288, 5411, 368, 225, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 225, 866, 3024, 5623, 12, 19085, 5623, 225, 1142, 5623, 16, 225, 2029, 1119, 225, 756, 13, 225, 288, 3639, 1620, 225, 261, 2722, 5623, 18, 2327, 13, 225, 288, 5411, 368, 225, 309,...
JobInProgress job = (JobInProgress) jobs.get((String) taskToJobMap.get(report.getTaskId())); job.updateTaskStatus(report.getTaskId(), report);
TaskInProgress tip = (TaskInProgress) taskidToTIPMap.get(report.getTaskId()); if (tip == null) { LOG.info("Serious problem. While updating status, cannot find taskid " + report.getTaskId()); } else { JobInProgress job = tip.getJob(); job.updateTaskStatus(tip, report);
void updateTaskStatuses(TaskTrackerStatus status) { for (Iterator it = status.taskReports(); it.hasNext(); ) { TaskStatus report = (TaskStatus) it.next(); JobInProgress job = (JobInProgress) jobs.get((String) taskToJobMap.get(report.getTaskId())); job.updateTaskStatus(report.getTaskId(), report); if (report.getRunState() == TaskStatus.SUCCEEDED) { job.completedTask(report.getTaskId()); } else if (report.getRunState() == TaskStatus.FAILED) { TreeSet taskset = (TreeSet) trackerToTaskMap.get(status.getTrackerName()); taskset.remove(report.getTaskId()); taskToTrackerMap.remove(report.getTaskId()); job.failedTask(report.getTaskId()); } } }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/b6b05637e2124152b77917985734bfa9e3305af9/JobTracker.java/buggy/src/java/org/apache/nutch/mapred/JobTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 2174, 15220, 12, 2174, 8135, 1482, 1267, 13, 288, 3639, 364, 261, 3198, 518, 273, 1267, 18, 4146, 18631, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 5411, 29628, 2605, 273, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 2174, 15220, 12, 2174, 8135, 1482, 1267, 13, 288, 3639, 364, 261, 3198, 518, 273, 1267, 18, 4146, 18631, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 5411, 29628, 2605, 273, 261,...
private void initialize(Reader rdr) throws MarshalException, ValidationException {
private void initialize(Reader rdr) throws MarshalException, ValidationException { log().debug("initialize: initializing surveillance views factory.");
private void initialize(Reader rdr) throws MarshalException, ValidationException { m_config = (SurveillanceViewConfiguration) Unmarshaller.unmarshal(SurveillanceViewConfiguration.class, rdr); m_viewsMap = new HashMap<String, View>(); Collection viewList = m_config.getViews().getViewCollection(); Iterator i = viewList.iterator(); while (i.hasNext()) { View view = (View) i.next(); m_viewsMap.put(view.getName(), view); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/fa45137949195cbf719c7491cfee6a3b63ff3c55/SurveillanceViewsFactory.java/clean/opennms-services/src/main/java/org/opennms/netmgt/config/SurveillanceViewsFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 12, 2514, 436, 3069, 13, 1216, 5884, 503, 16, 15614, 288, 613, 7675, 4148, 2932, 11160, 30, 22584, 5056, 537, 737, 1359, 7361, 3272, 1199, 1769, 7734, 312, 67, 1425, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 12, 2514, 436, 3069, 13, 1216, 5884, 503, 16, 15614, 288, 613, 7675, 4148, 2932, 11160, 30, 22584, 5056, 537, 737, 1359, 7361, 3272, 1199, 1769, 7734, 312, 67, 1425, 273,...
GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
public void testConfigureScheduledJobs() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11207, 10660, 7276, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 276, 273, 314, 830, 18, 2670, 797, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11207, 10660, 7276, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 276, 273, 314, 830, 18, 2670, 797, 12, 2...
protected Patch getPatch() {
protected IPatch getPatch() {
protected Patch getPatch() { return patch; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/SysexWidget.java/clean/JSynthLib/core/SysexWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 12042, 1689, 505, 1435, 288, 202, 2463, 4729, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 12042, 1689, 505, 1435, 288, 202, 2463, 4729, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
stack[stackTop] = ScriptRuntime.delete(lhs, rhs);
stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs);
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + idata.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: while (true) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; } case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); String name = strings[getIndex(iCode, pc + 3)]; int count = getIndex(iCode, pc + 5); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : { Object exception = stack[stackTop]; if (exception == DBL_MRK) exception = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(exception); } case TokenStream.JTHROW : { Object exception = stack[stackTop]; // No need to check for DBL_MRK: exception must be Exception --stackTop; if (exception instanceof JavaScriptException) throw (JavaScriptException)exception; else throw (RuntimeException)exception; } case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object catchObj = ex; // Object seen by script catch for (;;) { if (catchObj instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException ((JavaScriptException)catchObj); exType = SCRIPT_THROW; } else if (catchObj instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)catchObj).getErrorObject(); exType = ECMA; } else if (catchObj instanceof RuntimeException) { if (catchObj instanceof WrappedException) { Object w = ((WrappedException) catchObj).unwrap(); if (w instanceof Throwable) { catchObj = ex = (Throwable) w; continue; } } catchObj = null; // script can not catch this exType = RUNTIME; } else { // Error instance catchObj = null; // script can not catch this exType = OTHER; } break; } if (exType != OTHER && debuggerFrame != null) { debuggerFrame.onExceptionThrown(cx, ex); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script --tryStackTop; int try_pc = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, try_pc + 1); if (catch_offset != 0) { // Has catch block rethrow = false; pc = try_pc + catch_offset; stackTop = STACK_SHFT; stack[stackTop] = catchObj; } } if (rethrow) { int finally_offset = getShort(iCode, try_pc + 3); if (finally_offset != 0) { // has finally block rethrow = false; pc = try_pc + finally_offset; stackTop = STACK_SHFT; stack[stackTop] = ex; } } } if (rethrow) { if (debuggerFrame != null) { debuggerFrame.onExit(cx, true, ex); } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; } } if (debuggerFrame != null) { debuggerFrame.onExit(cx, false, result); } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/4fa07f31de89d0efead3f273910f4ac52f44270d/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
fixnumClass.defineMethod("==", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("eql?", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("equal?", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class));
fixnumClass.defineMethod("==", CallbackFactory.getMethod(RubyFixnum.class, "equal", RubyObject.class)); fixnumClass.defineMethod("eql?", CallbackFactory.getMethod(RubyFixnum.class, "equal", RubyObject.class)); fixnumClass.defineMethod("equal?", CallbackFactory.getMethod(RubyFixnum.class, "equal", RubyObject.class));
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", RubyObject.class)); fixnumClass.defineMethod("to_f", CallbackFactory.getMethod(RubyFixnum.class, "to_f")); fixnumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("to_str", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("<<", CallbackFactory.getMethod(RubyFixnum.class, "op_lshift", RubyObject.class)); fixnumClass.defineMethod(">>", CallbackFactory.getMethod(RubyFixnum.class, "op_rshift", RubyObject.class)); fixnumClass.defineMethod("+", CallbackFactory.getMethod(RubyFixnum.class, "op_plus", RubyObject.class)); fixnumClass.defineMethod("-", CallbackFactory.getMethod(RubyFixnum.class, "op_minus", RubyObject.class)); fixnumClass.defineMethod("*", CallbackFactory.getMethod(RubyFixnum.class, "op_mul", RubyObject.class)); fixnumClass.defineMethod("/", CallbackFactory.getMethod(RubyFixnum.class, "op_div", RubyObject.class)); fixnumClass.defineMethod("%", CallbackFactory.getMethod(RubyFixnum.class, "op_mod", RubyObject.class)); fixnumClass.defineMethod("**", CallbackFactory.getMethod(RubyFixnum.class, "op_pow", RubyObject.class)); fixnumClass.defineMethod("==", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("eql?", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("equal?", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("<=>", CallbackFactory.getMethod(RubyFixnum.class, "op_cmp", RubyObject.class)); fixnumClass.defineMethod(">", CallbackFactory.getMethod(RubyFixnum.class, "op_gt", RubyObject.class)); fixnumClass.defineMethod(">=", CallbackFactory.getMethod(RubyFixnum.class, "op_ge", RubyObject.class)); fixnumClass.defineMethod("<", CallbackFactory.getMethod(RubyFixnum.class, "op_lt", RubyObject.class)); fixnumClass.defineMethod("<=", CallbackFactory.getMethod(RubyFixnum.class, "op_le", RubyObject.class)); fixnumClass.defineMethod("&", CallbackFactory.getMethod(RubyFixnum.class, "op_and", RubyObject.class)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", CallbackFactory.getMethod(RubyFixnum.class, "size")); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); return fixnumClass; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/06e8c0888351efa411cfdddbdf48771ce7f584c0/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 8585, 2107, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2917, 2107, 797, 273, 22155, 18, 11255, 797, 2932, 8585, 2107, 3113, 22155, 18, 588, 4818, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 8585, 2107, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2917, 2107, 797, 273, 22155, 18, 11255, 797, 2932, 8585, 2107, 3113, 22155, 18, 588, 4818, 76...
ReportType.CALDAV_QUERY, ReportType.CALDAV_MULTIGET, ReportType.CALDAV_FREEBUSY });
ReportType.CALDAV_QUERY, ReportType.CALDAV_MULTIGET /* , ReportType.CALDAV_FREEBUSY */});
protected void initSupportedReports() { if (exists()) { supportedReports = new SupportedReportSetProperty(new ReportType[] { ReportType.CALDAV_QUERY, ReportType.CALDAV_MULTIGET, ReportType.CALDAV_FREEBUSY }); } }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/4ac7565ca2502d93948189f6b6e97baef97cb3a1/CosmoDavResourceImpl.java/clean/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavResourceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 7223, 18631, 1435, 288, 3639, 309, 261, 1808, 10756, 288, 5411, 3260, 18631, 273, 394, 19503, 4820, 694, 1396, 12, 2704, 8706, 559, 8526, 288, 10792, 8706, 559, 18, 7913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 7223, 18631, 1435, 288, 3639, 309, 261, 1808, 10756, 288, 5411, 3260, 18631, 273, 394, 19503, 4820, 694, 1396, 12, 2704, 8706, 559, 8526, 288, 10792, 8706, 559, 18, 7913, ...
307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348,
536, 379, 210, 210, 380, 455, 550, 234, 389, 471, 524, 527, 492, 234, 476, 396, 406, 538, 531, 492, 531, 402, 307, 308, 210, 872, 210, 210, 363, 235, 265, 235, 417, 518, 234, 403, 79, 388, 617, 802,
private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
this.file = new File("testlockfile");
file = new File("testlockfile"); lockDir = new File(System.getProperty("java.io.tmpdir")); lockFile = new File(lockDir, file.getName() + ".lck");
public void setUp() { this.file = new File("testlockfile"); }
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/e5cc89dec2c72e8af821a0536c768af316cb9b55/LockableFileWriterTest.java/buggy/src/test/org/apache/commons/io/output/LockableFileWriterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 585, 273, 394, 1387, 2932, 3813, 739, 768, 8863, 2176, 1621, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 7923, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 585, 273, 394, 1387, 2932, 3813, 739, 768, 8863, 2176, 1621, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 7923, 1769, ...
pstmt.setLong(2, 1); pstmt.setLong(3, 0); pstmt.setLong(4, agentID); pstmt.setString(5, TestGlobal.uaRMIAddress); pstmt.setString(6, "TestUA"); pstmt.setString(7, "test");
pstmt.setLong(2, 0); pstmt.setLong(3, agentID); pstmt.setString(4, TestGlobal.uaRMIAddress); pstmt.setString(5, "TestUA"); pstmt.setString(6, "test");
protected void setUp() throws Exception { super.setUp(); Connection con = TestGlobal.dbMediator.getConnection(); PreparedStatement pstmt = con.prepareStatement( "INSERT INTO AGENT (id, agentID, caSessionID, agentSessionID, addressrmi, name, password," + "isProviderAgent) VALUES(?,?,?,?,?,?,?)"); pstmt.setLong(1, 1); pstmt.setLong(2, 1); pstmt.setLong(3, 0); pstmt.setLong(4, agentID); pstmt.setString(5, TestGlobal.uaRMIAddress); pstmt.setString(6, "TestUA"); pstmt.setString(7, "test"); pstmt.executeUpdate(); con.commit(); TestGlobal.dbMediator.freeConnection(con); pstmt = null; }
10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/70e188083ec2abe180d9fa52e6acf50f4105a8b1/TestComponentManagerUALogin.java/buggy/everlage/test/de/everlage/ca/componentManager/TestComponentManagerUALogin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 1952, 356, 273, 7766, 5160, 18, 1966, 13265, 10620, 18, 588, 1952, 5621, 202, 202, 29325, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 1952, 356, 273, 7766, 5160, 18, 1966, 13265, 10620, 18, 588, 1952, 5621, 202, 202, 29325, 293,...
return observer;
if (game != null && game.getPhase() == IGame.PHASE_VICTORY) return false; else return observer;
public boolean isObserver() { return observer; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/0be24668a9dbb3b1be35bfc4e39ac9f467640186/Player.java/buggy/megamek/src/megamek/common/Player.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 11048, 1435, 288, 3639, 309, 261, 13957, 480, 446, 597, 7920, 18, 588, 11406, 1435, 422, 467, 12496, 18, 8939, 4429, 67, 4136, 1268, 3964, 13, 327, 629, 31, 469, 327, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 11048, 1435, 288, 3639, 309, 261, 13957, 480, 446, 597, 7920, 18, 588, 11406, 1435, 422, 467, 12496, 18, 8939, 4429, 67, 4136, 1268, 3964, 13, 327, 629, 31, 469, 327, 9...
public void test1() throws Exception { TestXAResourceManager rm = new TestXAResourceManager(); rm.start(); AbstractSession s = rm.createSession(); tm.begin(); Transaction tx = tm.getTransaction(); tx.enlistResource(s); tx.delistResource(s, XAResource.TMSUCCESS); tx.commit(); }
public void test1() throws Exception { TestXAResourceManager rm = new TestXAResourceManager(); rm.start(); AbstractSession s = rm.createSession(); tm.begin(); Transaction tx = tm.getTransaction(); tx.enlistResource(s); tx.delistResource(s, XAResource.TMSUCCESS); tx.commit(); }
public void test1() throws Exception { TestXAResourceManager rm = new TestXAResourceManager(); rm.start(); AbstractSession s = rm.createSession(); tm.begin(); Transaction tx = tm.getTransaction(); tx.enlistResource(s); tx.delistResource(s, XAResource.TMSUCCESS); tx.commit(); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/AbstractXAResourceManagerTestCase.java/clean/tests/integration/src/test/java/org/mule/test/integration/transaction/AbstractXAResourceManagerTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 21, 1435, 1216, 1185, 288, 202, 202, 4709, 17269, 1420, 1318, 6692, 273, 394, 7766, 17269, 1420, 1318, 5621, 202, 202, 8864, 18, 1937, 5621, 202, 202, 7469, 2157, 272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 21, 1435, 1216, 1185, 288, 202, 202, 4709, 17269, 1420, 1318, 6692, 273, 394, 7766, 17269, 1420, 1318, 5621, 202, 202, 8864, 18, 1937, 5621, 202, 202, 7469, 2157, 272...
} else if (AttributeConstant.BORDER_WIDTH.equals(property)) {
} else if ( AttributeConstant.BORDER_WIDTH.equals( property ) ) {
public static Object[] getChoiceSet(String property) { // The dataSet has different access method. if (AttributeConstant.DATASET.equals(property)) { return getDataSets(); } String unitKey = DesignChoiceConstants.CHOICE_UNITS; if (AttributeConstant.BACKGROUND_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_SIZE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_SIZE; } else if (AttributeConstant.FONT_FAMILY.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_FAMILY; } else if (AttributeConstant.TEXT_FORMAT.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_CONTENT_TYPE; } else if (AttributeConstant.BORDER_STYLE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_STYLE; } else if (AttributeConstant.BORDER_WIDTH.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_WIDTH; } else if (SortKey.DIRECTION_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_SORT_DIRECTION; } else if (FilterCondition.OPERATOR_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FILTER_OPERATOR; } else if (StyleHandle.VERTICAL_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_VERTICAL_ALIGN; } else if (StyleHandle.TEXT_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_ALIGN; } else if (MasterPageHandle.ORIENTATION_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION; } else if (MasterPageHandle.TYPE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE; } else if (GroupHandle.INTERVAL_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_INTERVAL; } else if (StyleHandle.PAGE_BREAK_BEFORE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_AFTER_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_INSIDE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE; } return getUnitChoiceSet(unitKey); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7ca10c49a247dfe395b2e0483af9946ea07fe89b/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 336, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 759, 1021, 14837, 711, 3775, 2006, 707, 18, 202, 202, 430, 261, 1499, 6902, 18, 4883, 4043, 18, 14963, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 336, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 759, 1021, 14837, 711, 3775, 2006, 707, 18, 202, 202, 430, 261, 1499, 6902, 18, 4883, 4043, 18, 14963, 12, ...
box = new JComboBox();
box = new BioComboBox();
public BioColorWidget(int colorType) { model = ColorUtil.RGB_MODEL; type = colorType; // create components color = new JLabel(COLOR_NAMES[model][type]); box = new JComboBox(); scalars = new Vector(); addItem("None", ColorUtil.CLEAR); addItem("Full", ColorUtil.SOLID); color.setLabelFor(box); // lay out components setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(Box.createHorizontalGlue()); p.add(color); p.add(Box.createHorizontalGlue()); add(p); add(box); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/c648d907ffbf9e288351eaa2b9575e324ee9f9bb/BioColorWidget.java/buggy/loci/visbio/view/BioColorWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 21209, 2957, 4609, 12, 474, 2036, 559, 13, 288, 565, 938, 273, 5563, 1304, 18, 11343, 67, 17391, 31, 565, 618, 273, 2036, 559, 31, 565, 368, 752, 4085, 565, 2036, 273, 394, 21403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 21209, 2957, 4609, 12, 474, 2036, 559, 13, 288, 565, 938, 273, 5563, 1304, 18, 11343, 67, 17391, 31, 565, 618, 273, 2036, 559, 31, 565, 368, 752, 4085, 565, 2036, 273, 394, 21403,...
protected void setHeaders(HttpMethod httpMethod, UMOEventContext context) { // Standard requestHeaders String headerValue; String headerName; UMOMessage msg = context.getMessage(); for (Iterator iterator = msg.getPropertyNames().iterator(); iterator.hasNext();) { headerName = (String)iterator.next(); headerValue = msg.getStringProperty(headerName, null); if (HttpConstants.REQUEST_HEADER_NAMES.get(headerName) == null) { if (headerName.startsWith(MuleProperties.PROPERTY_PREFIX)) { headerName = new StringBuffer(30).append("X-").append(headerName).toString(); } // Make sure we have a valid header name otherwise we will // corrupt the request //If it is Content-Length we shold check the Response Headers before setting it if (headerName.startsWith(HttpConstants.HEADER_CONTENT_LENGTH)) { if(httpMethod.getResponseHeader(HttpConstants.HEADER_CONTENT_LENGTH) == null) { httpMethod.addRequestHeader(headerName, headerValue); } } else { httpMethod.addRequestHeader(headerName, headerValue); } } } if (context.getMessage().getPayload() instanceof InputStream) { // must set this for receiver to properly parse attachments httpMethod.addRequestHeader(HttpConstants.HEADER_CONTENT_TYPE, "multipart/related"); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/28bee98dceb9c8d27f411d99337c63c97e54753c/ObjectToHttpClientMethodRequest.java/buggy/providers/http/src/main/java/org/mule/providers/http/transformers/ObjectToHttpClientMethodRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24359, 12, 2940, 1305, 17425, 16, 587, 5980, 1133, 1042, 819, 13, 565, 288, 3639, 368, 8263, 23129, 3639, 514, 24503, 31, 3639, 514, 19430, 31, 3639, 587, 5980, 1079, 1234, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24359, 12, 2940, 1305, 17425, 16, 587, 5980, 1133, 1042, 819, 13, 565, 288, 3639, 368, 8263, 23129, 3639, 514, 24503, 31, 3639, 514, 19430, 31, 3639, 587, 5980, 1079, 1234, 273...
if (resource.isAccessible() == false) { MessageDialog.openInformation( getShell(), WorkbenchMessages.getString("ResourceWorkingSetPage.projectClosedDialog.title"), WorkbenchMessages.getString("ResourceWorkingSetPage.projectClosedDialog.message")); tree.setChecked(resource, false); tree.setGrayed(resource, true); return; }
public void run() { IResource resource = (IResource) event.getElement(); if (resource.isAccessible() == false) { MessageDialog.openInformation( getShell(), WorkbenchMessages.getString("ResourceWorkingSetPage.projectClosedDialog.title"), //$NON-NLS-1$ WorkbenchMessages.getString("ResourceWorkingSetPage.projectClosedDialog.message")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-1$ tree.setChecked(resource, false); tree.setGrayed(resource, true); return; } boolean state = event.getChecked(); tree.setGrayed(resource, false); if (resource instanceof IContainer) { setSubtreeChecked((IContainer) resource, state, true); } updateParentState(resource); validateInput(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2a404baa12f940abbe1f76656633f9ac0563bd2d/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 1420, 1058, 273, 261, 45, 1420, 13, 871, 18, 21336, 5621, 9506, 202, 430, 261, 3146, 18, 291, 10451, 1435, 422, 629, 13, 288, 6862, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 1420, 1058, 273, 261, 45, 1420, 13, 871, 18, 21336, 5621, 9506, 202, 430, 261, 3146, 18, 291, 10451, 1435, 422, 629, 13, 288, 6862, 202, ...
name.equals(Constants.DOM_NORMALIZE_CHARACTERS) || name.equals(Constants.DOM_CANONICAL_FORM) || name.equals(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equals(Constants.DOM_CHECK_CHAR_NORMALIZATION)
name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CANONICAL_FORM) || name.equalsIgnoreCase(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION)
public boolean canSetParameter(String name, Object value) { if (value == null){ //if null, the returned value is true. //REVISIT: I dont like this --- even for unrecognized parameter it would //return 'true'. I think it should return false in that case. // Application will be surprised to find that setParameter throws not //recognized exception when canSetParameter returns 'true' Then what is the use //of having canSetParameter ??? - nb. return true ; } if( value instanceof Boolean ){ //features whose parameter value can be set either 'true' or 'false' // or they accept any boolean value -- so we just need to check that // its a boolean value.. if (name.equals(Constants.DOM_COMMENTS) || name.equals(Constants.DOM_DATATYPE_NORMALIZATION) || name.equals(Constants.DOM_CDATA_SECTIONS) || name.equals(Constants.DOM_ENTITIES) || name.equals(Constants.DOM_SPLIT_CDATA) || name.equals(Constants.DOM_NAMESPACES) || name.equals(Constants.DOM_VALIDATE) || name.equals(Constants.DOM_WELLFORMED) || name.equals(Constants.DOM_INFOSET) ) { return true ; }//features whose parameter value can not be set to 'true' else if ( name.equals(Constants.DOM_NORMALIZE_CHARACTERS) || name.equals(Constants.DOM_CANONICAL_FORM) || name.equals(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equals(Constants.DOM_CHECK_CHAR_NORMALIZATION) ) { return (value.equals(Boolean.TRUE)) ? false : true; }//features whose parameter value can not be set to 'false' else if( name.equals(Constants.DOM_NAMESPACE_DECLARATIONS) || name.equals(Constants.DOM_ELEMENT_CONTENT_WHITESPACE) || name.equals(SEND_PSVI) ) { return (value.equals(Boolean.TRUE)) ? true : false; }// if name is not among the above listed above -- its not recognized. return false else { return false ; } } else if (name.equals(Constants.DOM_ERROR_HANDLER)) { return (value instanceof DOMErrorHandler) ? true : false ; } else if (name.equals(Constants.DOM_RESOURCE_RESOLVER)) { return (value instanceof LSResourceResolver) ? true : false ; } else if (name.equals(Constants.DOM_SCHEMA_LOCATION)) { return (value instanceof String) ? true : false ; } else if (name.equals(Constants.DOM_SCHEMA_TYPE)) { // REVISIT: should null value be supported? //as of now we are only supporting W3C XML Schema return ( (value instanceof String) && value.equals(Constants.NS_XMLSCHEMA) ) ? true : false ; } else if (name.equals(SYMBOL_TABLE)){ // Xerces Symbol Table return (value instanceof SymbolTable) ? true : false ; } else if (name.equals (GRAMMAR_POOL)){ return (value instanceof XMLGrammarPool) ? true : false ; } else { //false if the parameter is not recognized or the requested value is not supported. return false ; } } //canSetParameter
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/533ebf030a7b0e9b294007b8c69adbacd68acc35/DOMConfigurationImpl.java/clean/src/org/apache/xerces/dom/DOMConfigurationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 848, 694, 1662, 12, 780, 508, 16, 1033, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 15329, 5411, 368, 430, 446, 16, 326, 2106, 460, 353, 638, 18, 5411, 368, 862, 267...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 848, 694, 1662, 12, 780, 508, 16, 1033, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 15329, 5411, 368, 430, 446, 16, 326, 2106, 460, 353, 638, 18, 5411, 368, 862, 267...
for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(!displayKeys.contains(particleMotion.key)) continue;
for(int counter = 0; counter < parMos.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)parMos.get(counter); if(!displayKey.equals(particleMotion.key)) continue;
public synchronized void paintComponent(Graphics g) { if(displayKeys.size() == 0) return; Graphics2D graphics2D = (Graphics2D)g; vunitRangeImpl = new UnitRangeImpl(getMinVerticalAmplitude(), getMaxVerticalAmplitude(), UnitImpl.COUNT); hunitRangeImpl = new UnitRangeImpl(getMinHorizontalAmplitude(), getMaxHorizontalAmplitude(), UnitImpl.COUNT); //first draw the azimuth if one of the display is horizontal plane for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(!displayKeys.contains(particleMotion.key)) continue; if(particleMotion.isHorizontalPlane()){ drawAzimuth(particleMotion, graphics2D); break; } } for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(!displayKeys.contains(particleMotion.key)) continue; if(particleMotion.isSelected()) continue; drawParticleMotion(particleMotion, graphics2D); }//end of for for(int counter = 0; counter < displays.size(); counter++) { ParticleMotion particleMotion = (ParticleMotion)displays.get(counter); if(!displayKeys.contains(particleMotion.key)) continue; if(particleMotion.isSelected()) { particleMotion.setSelected(false); drawParticleMotion(particleMotion, g); } } }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/4e4144202543d067f0d56ff90050f8b4d3f18203/ParticleMotionView.java/buggy/src/edu/sc/seis/fissuresUtil/display/ParticleMotionView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 12574, 1841, 12, 17558, 314, 13, 288, 3639, 309, 12, 5417, 2396, 18, 1467, 1435, 422, 374, 13, 327, 31, 3639, 16830, 22, 40, 17313, 22, 40, 273, 261, 17558, 22, 40, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 12574, 1841, 12, 17558, 314, 13, 288, 3639, 309, 12, 5417, 2396, 18, 1467, 1435, 422, 374, 13, 327, 31, 3639, 16830, 22, 40, 17313, 22, 40, 273, 261, 17558, 22, 40, 1...
"Select All",
CUIMessages.getString("AbstractErrorParserBlock.label.selectAll"),
public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); setControl(composite); WorkbenchHelp.setHelp(getControl(), ICHelpContextIds.ERROR_PARSERS_PAGE); String[] buttonLabels = new String[] { /* 0 */ "Up", //$NON-NLS-1$ /* 1 */ "Down", //$NON-NLS-1$ /* 2 */ null, /* 3 */ "Select All", //$NON-NLS-1$ /* 4 */ "Unselect All" //$NON-NLS-1$ }; fErrorParserList = new CheckedListDialogField(null, buttonLabels, getLabelProvider()); fErrorParserList.setDialogFieldListener(getFieldListenerAdapter()); fErrorParserList.setLabelText("Error Parsers"); //$NON-NLS-1$ fErrorParserList.setUpButtonIndex(0); fErrorParserList.setDownButtonIndex(1); fErrorParserList.setCheckAllButtonIndex(3); fErrorParserList.setUncheckAllButtonIndex(4); LayoutUtil.doDefaultLayout(composite, new DialogField[] { fErrorParserList }, true); LayoutUtil.setHorizontalGrabbing(fErrorParserList.getListControl(null)); initializeValues(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/AbstractErrorParserBlock.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/AbstractErrorParserBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 542, 3367, 12, 27676, 1769, 202, 202, 2421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 542, 3367, 12, 27676, 1769, 202, 202, 2421, ...
replaceAll("AND", "&&").replaceAll("and", "&&"). replaceAll("OR", "||").replaceAll("or", "||");
replaceAll(" AND ", " && ").replaceAll(" and ", " && "). replaceAll(" OR ", " || ").replaceAll(" or ", " || ");
public void setExpression(final String expression) { String tmp = expression. replaceAll("AND", "&&").replaceAll("and", "&&"). replaceAll("OR", "||").replaceAll("or", "||"); m_expression = tmp; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/fe937fca5ff68c7cf506603187f31c7d450a7b83/AdviceWeavingRule.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/xmldef/definition/AdviceWeavingRule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2300, 12, 6385, 514, 2652, 13, 288, 3639, 514, 1853, 273, 2652, 18, 7734, 10344, 2932, 4307, 3113, 7830, 10, 20387, 2079, 1595, 2932, 464, 3113, 7830, 10, 20387, 7734, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2300, 12, 6385, 514, 2652, 13, 288, 3639, 514, 1853, 273, 2652, 18, 7734, 10344, 2932, 4307, 3113, 7830, 10, 20387, 2079, 1595, 2932, 464, 3113, 7830, 10, 20387, 7734, 103...
this.string = string;
super();
public StringState(String string) { this.string = string; }
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/057090d370f200a891302bb808c2a0352faac0e4/StringState.java/buggy/ecologylab/xml/StringState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1119, 12, 780, 533, 13, 565, 288, 3639, 2240, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1119, 12, 780, 533, 13, 565, 288, 3639, 2240, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
objfile.println("<Object name=" + context.getName() + ">");
protected void generateContextMappings(Context context, PrintWriter objfile ) { String ctxPath = context.getPath(); String nPath=("".equals(ctxPath)) ? "/" : ctxPath; if( noRoot && "".equals(ctxPath) ) { log("Ignoring root context in non-forward-all mode "); return; } // Static files will be served by Netscape objfile.println("#########################################################"); objfile.println("# Auto configuration for the " + nPath + " context starts."); objfile.println("#########################################################"); objfile.println(); // XXX Need to determine what if/how static mappings are done // InvokerInterceptor - it doesn't have a container, // but it's implemented using a special module. // XXX we need to better collect all mappings if(context.getLoginConfig() != null) { String loginPage = context.getLoginConfig().getLoginPage(); if(loginPage != null) { int lpos = loginPage.lastIndexOf("/"); String jscurl = loginPage.substring(0,lpos+1) + "j_security_check"; addMapping( ctxPath, jscurl, objfile); } } String [] servletMaps=context.findServletMappings(); for(int ii=0; ii < servletMaps.length; ii++) { addMapping( ctxPath , servletMaps[ii] , objfile ); } }
10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/a349a45814cf5e7c6fde15008c9096aede752e30/NSConfig.java/clean/java/org/apache/ajp/tomcat4/config/NSConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1081, 768, 18, 8222, 2932, 32, 921, 508, 1546, 397, 819, 18, 17994, 1435, 397, 14675, 1769, 1081, 768, 18, 8222, 2932, 32, 921, 508, 1546, 397, 819, 18, 17994, 1435, 397, 14675, 1769, 1081, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1081, 768, 18, 8222, 2932, 32, 921, 508, 1546, 397, 819, 18, 17994, 1435, 397, 14675, 1769, 1081, 768, 18, 8222, 2932, 32, 921, 508, 1546, 397, 819, 18, 17994, 1435, 397, 14675, 1769, 1081, ...
Permissions newP = newDetails.getPermissions(); if ( newP != null ) { newP.set( Flag.LOCKED ); if ((previousP.isGranted(USER, READ) && !newP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !newP.isGranted( GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !newP.isGranted( WORLD, READ)))
Permissions calculatedP = newDetails.getPermissions(); if (calculatedP != null) { if ( ! calculatedP.isSet( Flag.LOCKED )) { calculatedP.set(Flag.LOCKED); altered = true; } if ((previousP.isGranted(USER, READ) && !calculatedP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !calculatedP .isGranted(GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !calculatedP .isGranted(WORLD, READ)))
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = currentDetails == null ? null : currentDetails.getPermissions(); // ignore newDetails permissions. // If the stored perms are null, then we can't validate anything if ( previousP == null ) { if ( currentP == null ) { newDetails.setPermissions( null ); altered |= false; // don't need to update } else { newDetails.setPermissions( currentP ); altered = true; } } // WORKAROUND for ticket:307 by checking for SOFT below// see https://trac.openmicroscopy.org.uk/omero/ticket/307// see http://opensource.atlassian.com/projects/hibernate/browse/HHH-2027 // Users did not enter permission (normal case) so is null OR // in the workaround permissions is SOFT, then // need to copy whole sale those from database. else if ( currentP == null || currentP.isSet( Flag.SOFT )) { newDetails.setPermissions( previousP ); altered = true; } // if the user has set the permissions (currentDetails), then we should // try to allow that. if it's identical to the current, then there // is no reason to hit the DB. else { // if we need to filter any permissions, do it here! newDetails.setPermissions( currentP ); if ( ! currentP.identical( previousP ) ) { altered = true; } } // now we've calculated the desired permissions, throw // a security violation if this instance was locked AND // the read permissions have been lowered or if the lock // was removed. if ( locked ) { if (previousP == null) // if null it can't have been locked. throw new InternalException("Null permissions cannot be locked"); Permissions newP = newDetails.getPermissions(); if ( newP != null ) { // can't override newP.set( Flag.LOCKED ); if ((previousP.isGranted(USER, READ) && !newP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !newP.isGranted( GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !newP.isGranted( WORLD, READ))) throw new SecurityViolation( "Cannot remove READ from locked entity:" + obj) ; } } // privileged plays no role since everyone can alter their permissions // (within bounds) return altered; }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 7016, 6521, 12, 1250, 8586, 16, 1250, 11334, 2423, 16, 1377, 202, 202, 45, 921, 1081, 16, 377, 202, 202, 3790, 2416, 3790, 16, 21897, 783, 3790, 16, 21897, 394, 3790, 13, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 7016, 6521, 12, 1250, 8586, 16, 1250, 11334, 2423, 16, 1377, 202, 202, 45, 921, 1081, 16, 377, 202, 202, 3790, 2416, 3790, 16, 21897, 783, 3790, 16, 21897, 394, 3790, 13, 56...
stmt.close();
try { stmt.close(); } catch (SQLException ex) { }
synchronized public void close() throws SQLException { if (!closed) { try { // // Close any open statements // ArrayList tmpList; synchronized (statements) { tmpList = new ArrayList(statements); } for (int i = 0; i < tmpList.size(); i++) { WeakReference wr = (WeakReference)tmpList.get(i); if (wr != null) { Statement stmt = (Statement)wr.get(); if (stmt != null) { stmt.close(); } } } // // Tell the server the session is ending // baseTds.closeConnection(); // // Close network connection // baseTds.close(); if (cachedTds != null) { cachedTds = null; } socket.close(); } catch (IOException e) { // Ignore } finally { closed = true; } } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/ad74a62830fca2309b2c648f5483672edc499e80/ConnectionJDBC2.java/clean/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1071, 918, 1746, 1435, 1216, 6483, 288, 3639, 309, 16051, 12204, 13, 288, 5411, 775, 288, 7734, 368, 7734, 368, 3527, 1281, 1696, 6317, 7734, 368, 7734, 2407, 1853, 682, 31, 7734, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1071, 918, 1746, 1435, 1216, 6483, 288, 3639, 309, 16051, 12204, 13, 288, 5411, 775, 288, 7734, 368, 7734, 368, 3527, 1281, 1696, 6317, 7734, 368, 7734, 2407, 1853, 682, 31, 7734, 3...
public synchronized void remove(Cache cache) { caches.remove(cache);
public void remove(Cache cache) { synchronized (caches) { caches.remove(cache); }
public synchronized void remove(Cache cache) { caches.remove(cache); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/87f7b89b0e138ca11923ead08a7cfe8273a7a11b/CacheManager.java/buggy/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/CacheManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1206, 12, 1649, 1247, 13, 288, 3639, 12535, 18, 4479, 12, 2493, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1206, 12, 1649, 1247, 13, 288, 3639, 12535, 18, 4479, 12, 2493, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
createNodeGainedInterfaceEvent(ipIfEntry);
private void addDuplicateInterface( DbNodeEntry node, InetAddress ifaddr, List protocols, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); CapsdConfigFactory cFactory = CapsdConfigFactory.getInstance(); PollerConfigFactory pollerCfgFactory = PollerConfigFactory.getInstance(); Date now = new Date(); // if there is no snmp information then it's a // simple addtion to the database // if(snmpc != null || !snmpc.failed()) { if (log.isDebugEnabled()) log.debug("RescanProcessor: add interface " + ifaddr.getHostAddress() + " for nodeId: " + node.getNodeId()); DbIpInterfaceEntry ipIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifaddr); ipIfEntry.setLastPoll(now); ipIfEntry.setHostname(ifaddr.getHostName()); // The package filter evaluation requires that the ip be in the // database - at this point the ip is NOT in db, so insert as active // and update afterward // // Try to avoid re-evaluating the ip against filters for // each service, try to get the first package here and use // that for service evaluation // boolean addrUnmanaged = cFactory.isAddressUnmanaged(ifaddr); if(addrUnmanaged) ipIfEntry.setManagedState(DbIpInterfaceEntry.STATE_UNMANAGED); else ipIfEntry.setManagedState(DbIpInterfaceEntry.STATE_MANAGED); ipIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_NOT_ELIGIBLE); ipIfEntry.store(); // now update if necessary org.opennms.netmgt.config.poller.Package ipPkg = null; if (!addrUnmanaged) { boolean ipToBePolled = false; ipPkg = pollerCfgFactory.getFirstPackageMatch(ifaddr.getHostAddress()); if (ipPkg != null) ipToBePolled = true; if (!ipToBePolled) { // update ismanaged to 'N' in ipinterface ipIfEntry.setManagedState(DbIpInterfaceEntry.STATE_NOT_POLLED); ipIfEntry.store(); } } int ifIndex = -1; if((ifIndex = snmpc.getIfIndex(ifaddr)) != -1) { // Just set primary state to secondary for now. The primary SNMP interface // won't be selected until after all interfaces have been inserted // into the database. This is because the interface must already be in // the database for filter rule evaluation to succeed. ipIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_SECONDARY); ipIfEntry.setIfIndex(ifIndex); int status = snmpc.getAdminStatus(ifIndex); if(status != -1) ipIfEntry.setStatus(status); } else { // Address does not have a valid ifIndex associated with it // so set primary state to NOT_ELIGIBLE. ipIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_NOT_ELIGIBLE); } ipIfEntry.store(); createNodeGainedInterfaceEvent(ipIfEntry); createDuplicateIpAddressEvent(ipIfEntry); // Add supported protocols if (log.isDebugEnabled()) log.debug("RescanProcessor: add supported protocols for interface " + ifaddr.getHostAddress() + " /nodeId: " + node.getNodeId()); addSupportedProtocols(node, ipIfEntry, protocols, addrUnmanaged, ifIndex, ipPkg); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/4cb5c9404a6dc9a2afb78f55aab0570ee23c48b2/RescanProcessor.java/buggy/src/services/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 11826, 1358, 12, 8408, 907, 1622, 756, 16, 6862, 282, 14218, 309, 4793, 16, 4766, 282, 987, 16534, 16, 6862, 282, 971, 10461, 1291, 7134, 15366, 71, 13, 202, 202, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 11826, 1358, 12, 8408, 907, 1622, 756, 16, 6862, 282, 14218, 309, 4793, 16, 4766, 282, 987, 16534, 16, 6862, 282, 971, 10461, 1291, 7134, 15366, 71, 13, 202, 202, 1...
scopeProvider = p;
dim.scopeProvider = p;
public void setScopeProvider(ScopeProvider p) { scopeProvider = p; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/402fd02406157693f66b2c8e6819e17c0b5b3e8a/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3876, 2249, 12, 3876, 2249, 293, 13, 288, 3639, 2464, 18, 4887, 2249, 273, 293, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3876, 2249, 12, 3876, 2249, 293, 13, 288, 3639, 2464, 18, 4887, 2249, 273, 293, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
((OptLocalVariable)theVariables.getVariable(i)).assignType(TypeEvent.AnyType);
OptLocalVariable.get(theVariables, i).assignType(TypeEvent.AnyType);
void markAnyTypeVariables(VariableTable theVariables) { for (int i = 0; i < theVariables.size(); i++) if (itsLiveOnEntrySet.test(i)) ((OptLocalVariable)theVariables.getVariable(i)).assignType(TypeEvent.AnyType); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e497d2b898e781a5052344191ab878cd469f3f53/Block.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Block.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2267, 2961, 559, 6158, 12, 3092, 1388, 326, 6158, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 326, 6158, 18, 1467, 5621, 277, 27245, 5411, 309, 261, 1282, 12328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2267, 2961, 559, 6158, 12, 3092, 1388, 326, 6158, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 326, 6158, 18, 1467, 5621, 277, 27245, 5411, 309, 261, 1282, 12328...
public void setClassShutter(ClassShutter shutter) {
public final void setClassShutter(ClassShutter shutter) { if (sealed) onSealedMutation();
public void setClassShutter(ClassShutter shutter) { if (shutter == null) throw new IllegalArgumentException(); if (classShutter != null) { throw new SecurityException("Cannot overwrite existing " + "ClassShutter object"); } classShutter = shutter; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 24580, 1555, 18220, 12, 797, 1555, 18220, 9171, 387, 13, 288, 309, 261, 307, 18931, 13, 603, 1761, 18931, 20028, 5621, 3639, 309, 261, 674, 18220, 422, 446, 13, 604, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 24580, 1555, 18220, 12, 797, 1555, 18220, 9171, 387, 13, 288, 309, 261, 307, 18931, 13, 603, 1761, 18931, 20028, 5621, 3639, 309, 261, 674, 18220, 422, 446, 13, 604, 394, ...
FieldAssistPlugin.DEC_REQUIRED);
FieldDecorationRegistry.DEC_REQUIRED);
private FieldDecoration getRequiredFieldDecoration() { return FieldDecorationRegistry.getDefault().getFieldDecoration( FieldAssistPlugin.DEC_REQUIRED); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/40eecc1fe2cdd011495b22f120530efe0c1dda9c/ExampleDialog.java/clean/examples/org.eclipse.ui.examples.fieldassist/Eclipse UI Examples Field Assist/org/eclipse/ui/examples/fieldassist/ExampleDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2286, 7859, 367, 19881, 974, 7859, 367, 1435, 288, 202, 202, 2463, 2286, 7859, 367, 4243, 18, 588, 1868, 7675, 588, 974, 7859, 367, 12, 9506, 202, 974, 2610, 376, 3773, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2286, 7859, 367, 19881, 974, 7859, 367, 1435, 288, 202, 202, 2463, 2286, 7859, 367, 4243, 18, 588, 1868, 7675, 588, 974, 7859, 367, 12, 9506, 202, 974, 2610, 376, 3773, 18, 1...
RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass());
RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass(), System.in); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass(), System.out); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass(), System.err);
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter); ruby.defineHookedVariable("$\\", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$,", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$.", RubyFixnum.one(ruby), null, new LineNumberSetter()); ruby.defineVirtualVariable("$_", lastlineAccessor, lastlineAccessor); ruby.defineHookedVariable("$!", ruby.getNil(), null, new ErrorInfoSetter()); ruby.defineVirtualVariable("$SAFE", safeAccessor, safeAccessor); RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass()); ruby.defineHookedVariable("$stdin", stdin, null, new StdInSetter()); ruby.defineHookedVariable("$stdout", stdout, null, new StdOutSetter()); ruby.defineHookedVariable("$stderr", stderr, null, new StdErrSetter()); ruby.defineHookedVariable("$>", stdout, null, new DefSetter()); ruby.defineHookedVariable("$defout", stdout, null, new DefSetter()); ruby.defineGlobalConstant("STDIN", stdin); ruby.defineGlobalConstant("STDOUT", stdout); ruby.defineGlobalConstant("STDERR", stderr); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(ruby); argsFile.initArgsFile(); // Global functions // IO, $_ String ruby.defineGlobalFunction("open", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "open")); ruby.defineGlobalFunction("format", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gets", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gets")); ruby.defineGlobalFunction("p", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "p")); ruby.defineGlobalFunction("print", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "print")); ruby.defineGlobalFunction("printf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "printf")); ruby.defineGlobalFunction("puts", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "puts")); ruby.defineGlobalFunction("readline", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readline")); ruby.defineGlobalFunction("readlines", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readlines")); ruby.defineGlobalFunction("sprintf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gsub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub_bang")); ruby.defineGlobalFunction("gsub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub")); ruby.defineGlobalFunction("sub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub_bang")); ruby.defineGlobalFunction("sub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub")); ruby.defineGlobalFunction("chop!", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop_bang")); ruby.defineGlobalFunction("chop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop")); ruby.defineGlobalFunction("chomp!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp_bang")); ruby.defineGlobalFunction("chomp", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp")); ruby.defineGlobalFunction("split", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "split")); ruby.defineGlobalFunction("scan", CallbackFactory.getSingletonMethod(RubyGlobal.class, "scan", RubyObject.class)); ruby.defineGlobalFunction("load", CallbackFactory.getSingletonMethod(RubyGlobal.class, "load", RubyString.class)); //FIXME autoload method needs to be implemented //ruby.defineGlobalFunction("autoload", CallbackFactory.getSingletonMethod(RubyGlobal.class, "autoload", RubyString.class)); ruby.defineGlobalFunction("raise", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "raise")); ruby.defineGlobalFunction("require", CallbackFactory.getSingletonMethod(RubyGlobal.class, "require", RubyString.class)); ruby.defineGlobalFunction("global_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "global_variables")); ruby.defineGlobalFunction("local_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "local_variables")); ruby.defineGlobalFunction("block_given?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("iterator?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("lambda", CallbackFactory.getSingletonMethod(RubyGlobal.class, "lambda")); ruby.defineGlobalFunction("proc", CallbackFactory.getSingletonMethod(RubyGlobal.class, "proc")); ruby.defineGlobalFunction("loop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "loop")); ruby.defineGlobalFunction("eval", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "eval", RubyString.class)); ruby.defineGlobalFunction("caller", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "caller")); ruby.defineGlobalFunction("catch", CallbackFactory.getSingletonMethod(RubyGlobal.class, "rbCatch", RubyObject.class)); ruby.defineGlobalFunction("throw", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "rbThrow", RubyObject.class)); ruby.defineGlobalFunction("singleton_method_added", CallbackFactory.getNilMethod()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 19834, 12, 54, 10340, 22155, 13, 288, 3639, 514, 8465, 533, 8465, 273, 394, 514, 8465, 5621, 3639, 6825, 1369, 8235, 1142, 1369, 8235, 273, 394, 6825, 1369, 8235, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 19834, 12, 54, 10340, 22155, 13, 288, 3639, 514, 8465, 533, 8465, 273, 394, 514, 8465, 5621, 3639, 6825, 1369, 8235, 1142, 1369, 8235, 273, 394, 6825, 1369, 8235, 562...
public void postRegister(Boolean registrationDone) { log.info("Starting Tomcat connectors"); try { ObjectName service = new ObjectName("jboss.web:type=Service,serviceName=jboss.web"); Object[] args = {}; String[] sig = {}; Connector[] connectors = (Connector[]) server.invoke(service, "findConnectors", args, sig); for (int n = 0; n < connectors.length; n++) { Lifecycle lc = (Lifecycle) connectors[n]; lc.start(); } } catch (Exception e) { log.error("Unable to start Tomcat connectors: " + e, e); } }
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/40d039c3768cb7599b96d6daf552fb5aa9fd5748/NotReadyManager.java/buggy/src/org/hyperic/util/notReady/NotReadyManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2767, 3996, 12, 5507, 14170, 7387, 15329, 1330, 18, 1376, 2932, 11715, 56, 362, 2574, 4646, 18886, 8863, 698, 95, 921, 1557, 264, 633, 33, 2704, 16707, 2932, 10649, 8464, 18, 4875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2767, 3996, 12, 5507, 14170, 7387, 15329, 1330, 18, 1376, 2932, 11715, 56, 362, 2574, 4646, 18886, 8863, 698, 95, 921, 1557, 264, 633, 33, 2704, 16707, 2932, 10649, 8464, 18, 4875, ...
return Color.BLACK;
return Color.black;
private static Color getColorField(final Class aClass, final String fieldName) { try { final Field field = aClass.getDeclaredField(fieldName); return (Color)field.get(null); } catch (NoSuchFieldException e) { return Color.BLACK; } catch (IllegalAccessException e) { return Color.BLACK; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f61d3bdd8218cc7e7833a24c0980642557eb9fc9/ColorDescriptor.java/buggy/UIDesignerCore/src/com/intellij/uiDesigner/lw/ColorDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 5563, 15672, 974, 12, 6385, 1659, 20148, 16, 727, 514, 4289, 13, 288, 565, 775, 288, 1377, 727, 2286, 652, 273, 20148, 18, 588, 18888, 974, 12, 16163, 1769, 1377, 327, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 5563, 15672, 974, 12, 6385, 1659, 20148, 16, 727, 514, 4289, 13, 288, 565, 775, 288, 1377, 727, 2286, 652, 273, 20148, 18, 588, 18888, 974, 12, 16163, 1769, 1377, 327, 261, 2...
server.clean(param_0, param_1, param_2, param_3);
server.clean($param_0, $param_1, $param_2, $param_3);
public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash) throws java.lang.Exception { if (opnum < 0) { if (hash == -5803803475088455571L) { opnum = 0; } else if (hash == -8139341527526761862L) { opnum = 1; } else { throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch"); } } else if (hash != interfaceHash) { throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch"); } gnu.java.rmi.dgc.DGCImpl server = (gnu.java.rmi.dgc.DGCImpl)obj; switch (opnum) { case 0: { java.rmi.server.ObjID[] param_0; long param_1; java.rmi.dgc.VMID param_2; boolean param_3; try { java.io.ObjectInput in = call.getInputStream(); param_0 = (java.rmi.server.ObjID[])in.readObject(); param_1 = (long)in.readLong(); param_2 = (java.rmi.dgc.VMID)in.readObject(); param_3 = (boolean)in.readBoolean(); } catch (java.io.IOException e) { throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); } catch (java.lang.ClassCastException e) { throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); } finally { call.releaseInputStream(); } server.clean(param_0, param_1, param_2, param_3); try { java.io.ObjectOutput out = call.getResultStream(true); } catch (java.io.IOException e) { throw new java.rmi.MarshalException("error marshalling return", e); } break; } case 1: { java.rmi.server.ObjID[] param_0; long param_1; java.rmi.dgc.Lease param_2; try { java.io.ObjectInput in = call.getInputStream(); param_0 = (java.rmi.server.ObjID[])in.readObject(); param_1 = (long)in.readLong(); param_2 = (java.rmi.dgc.Lease)in.readObject(); } catch (java.io.IOException e) { throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); } catch (java.lang.ClassCastException e) { throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); } finally { call.releaseInputStream(); } java.rmi.dgc.Lease result = server.dirty(param_0, param_1, param_2); try { java.io.ObjectOutput out = call.getResultStream(true); out.writeObject(result); } catch (java.io.IOException e) { throw new java.rmi.MarshalException("error marshalling return", e); } break; } default: throw new java.rmi.UnmarshalException("invalid method number"); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5a5d074039951b9655a1e95058546ebb56bbd5d3/DGCImpl_Skel.java/clean/libraries/javalib/gnu/java/rmi/dgc/DGCImpl_Skel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 12, 6290, 18, 8864, 77, 18, 5169, 1081, 16, 2252, 18, 8864, 77, 18, 3567, 18, 5169, 1477, 745, 16, 509, 1061, 2107, 16, 1525, 1651, 13, 1216, 2252, 18, 4936, 18, 503,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 12, 6290, 18, 8864, 77, 18, 5169, 1081, 16, 2252, 18, 8864, 77, 18, 3567, 18, 5169, 1477, 745, 16, 509, 1061, 2107, 16, 1525, 1651, 13, 1216, 2252, 18, 4936, 18, 503,...