rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
return TypeX.forName(getName(tvb.firstBound)); | if (tvb.firstBound!=null) { return TypeX.forName(getName(tvb.firstBound)); } else { return TypeX.forName(getName(tvb.superclass)); } | public static TypeX fromBinding(TypeBinding binding) { if (binding instanceof HelperInterfaceBinding) { return ((HelperInterfaceBinding) binding).getTypeX(); } if (binding == null || binding.qualifiedSourceName() == null) { return ResolvedTypeX.MISSING; } // first piece of generics support! if (binding instanceof TypeVariableBinding) { // this is a type variable... TypeVariableBinding tvb = (TypeVariableBinding) binding; return TypeX.forName(getName(tvb.firstBound)); // XXX needs more investigation as to whether this is correct in all cases } // FIXME asc/amc cope properly with RawTypeBindings if (binding instanceof ParameterizedTypeBinding && !(binding instanceof RawTypeBinding)) { ParameterizedTypeBinding ptb = (ParameterizedTypeBinding) binding; String[] arguments = new String[ptb.arguments.length]; for (int i = 0; i < arguments.length; i++) { if (ptb.arguments[i] instanceof WildcardBinding) { WildcardBinding wcb = (WildcardBinding) ptb.arguments[i]; arguments[i] = getName(((TypeVariableBinding)wcb.typeVariable()).firstBound); } else { arguments[i] = getName(ptb.arguments[i]); } } return TypeX.forParameterizedTypeNames(getName(binding), arguments); } return TypeX.forName(getName(binding)); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/7389d9fc0252b90a9b0bf2cb1861a0f3802ad320/EclipseFactory.java/clean/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1412,
60,
628,
5250,
12,
559,
5250,
5085,
13,
288,
202,
202,
430,
261,
7374,
1276,
9705,
1358,
5250,
13,
288,
1082,
202,
2463,
14015,
2276,
1358,
5250,
13,
5085,
2934,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1412,
60,
628,
5250,
12,
559,
5250,
5085,
13,
288,
202,
202,
430,
261,
7374,
1276,
9705,
1358,
5250,
13,
288,
1082,
202,
2463,
14015,
2276,
1358,
5250,
13,
5085,
2934,
58... |
{ m_mapSelectionListeners.add(listener); } | { m_mapSelectionListeners.add(listener); } | public void addMapSelectionListener(MapSelectionListener listener) { m_mapSelectionListeners.add(listener); } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/e2294e8d54ebb6231cd7bac3559b11b5d4e873bf/MapPanel.java/clean/triplea/src/games/strategy/triplea/ui/MapPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
863,
6233,
2223,
12,
863,
6233,
2223,
2991,
13,
225,
288,
565,
312,
67,
1458,
6233,
5583,
18,
1289,
12,
12757,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
863,
6233,
2223,
12,
863,
6233,
2223,
2991,
13,
225,
288,
565,
312,
67,
1458,
6233,
5583,
18,
1289,
12,
12757,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Short.valueOf("1"))) { assertEquals(new Money(),accountActionDateEntity.getMiscPenalty()); } | Short.valueOf("1"))) { assertEquals(new Money(), accountActionDateEntity .getMiscPenalty()); } | public void testWaivePenaltyChargeDue() throws Exception { accountBO = getLoanAccount(); for (AccountActionDateEntity accountAction : ((LoanBO)accountBO) .getAccountActionDates()) { LoanScheduleEntity accountActionDateEntity = (LoanScheduleEntity) accountAction; for (AccountFeesActionDetailEntity accountFeesActionDetailEntity : accountActionDateEntity .getAccountFeesActionDetails()) { if (accountActionDateEntity.getInstallmentId().equals( Short.valueOf("1"))) { accountActionDateEntity.setMiscPenalty(new Money("100")); } } } ((LoanBO)accountBO).getLoanSummary().setOriginalPenalty(new Money("100")); TestObjectFactory.updateObject(accountBO); HibernateUtil.closeSession(); LoanBO loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, accountBO.getAccountId()); UserContext userContext = TestObjectFactory.getUserContext(); loanBO.setUserContext(userContext); loanBO.waiveAmountDue(WaiveEnum.PENALTY); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, loanBO .getAccountId()); for (AccountActionDateEntity accountAction : loanBO .getAccountActionDates()) { LoanScheduleEntity accountActionDateEntity = (LoanScheduleEntity) accountAction; if (accountActionDateEntity.getInstallmentId().equals( Short.valueOf("1"))) { assertEquals(new Money(),accountActionDateEntity.getMiscPenalty()); } } Set<LoanActivityEntity> loanActivityDetailsSet = loanBO.getLoanActivityDetails(); List<Object> objectList = Arrays.asList(loanActivityDetailsSet.toArray()); LoanActivityEntity loanActivityEntity = (LoanActivityEntity) objectList.get(0); assertEquals(new Money("100"),loanActivityEntity.getPenalty()); assertEquals( new Timestamp(DateUtils.getCurrentDateWithoutTimeStamp().getTime()), loanActivityEntity.getTrxnCreatedDate()); assertEquals(loanBO.getLoanSummary().getOriginalPenalty().subtract(loanBO.getLoanSummary().getPenaltyPaid()), loanActivityEntity.getPenaltyOutstanding()); } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8b7a0cdb79f363f8ac3f82d8f06e16d5166a08ed/TestLoanBO.java/clean/mifos/test/org/mifos/application/accounts/loan/business/TestLoanBO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
59,
69,
688,
24251,
15006,
17649,
30023,
1435,
1216,
1185,
288,
202,
202,
4631,
5315,
273,
336,
1504,
304,
3032,
5621,
202,
202,
1884,
261,
3032,
1803,
1626,
1943,
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,
225,
202,
482,
918,
1842,
59,
69,
688,
24251,
15006,
17649,
30023,
1435,
1216,
1185,
288,
202,
202,
4631,
5315,
273,
336,
1504,
304,
3032,
5621,
202,
202,
1884,
261,
3032,
1803,
1626,
1943,
22... |
if(dir==null) { | if (dir == null) { | public void processData(byte[] bb, String fname) { this.zname = fname; this.b = bb; showTree(); extract.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { if (zipTree == null) return; TreePath tp = zipTree.getSelectionPath(); if (tp == null) return; Object[] elements = tp.getPath(); if (tp.getPathCount() == 1) return; String path=elements[1].toString()+'/'; for(int i=2;i<tp.getPathCount();i++) { path+=elements[i].toString()+'/'; } DefaultMutableTreeNode node = (DefaultMutableTreeNode)zipTree.getLastSelectedPathComponent(); if (node.isLeaf()) { path=path.substring(0, path.length()-1); } String dir; fsd = new FileDialog(frm, "Choose directory to extract", 1); fsd.setFile("ZipView"); fsd.show(); dir = fsd.getDirectory(); if(dir==null) { return; } extractEntry(path, dir); } }); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/buggy/java/plugins/examples/zip/ZipView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
751,
12,
7229,
8526,
7129,
16,
514,
5299,
13,
288,
202,
2211,
18,
94,
529,
273,
5299,
31,
202,
2211,
18,
70,
273,
7129,
31,
202,
4500,
2471,
5621,
202,
8004,
18,
1289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
751,
12,
7229,
8526,
7129,
16,
514,
5299,
13,
288,
202,
2211,
18,
94,
529,
273,
5299,
31,
202,
2211,
18,
70,
273,
7129,
31,
202,
4500,
2471,
5621,
202,
8004,
18,
1289... |
public AttributeDescr no_loop() throws RecognitionException { AttributeDescr d; Token loc=null; Token t=null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:17: ( (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) | (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) ) int alt33=2; int LA33_0 = input.LA(1); if ( LA33_0==34 ) { int LA33_1 = input.LA(2); if ( LA33_1==BOOL ) { alt33=2; } else if ( LA33_1==EOL||LA33_1==16||LA33_1==22||LA33_1==29||LA33_1==31||(LA33_1>=33 && LA33_1<=38) ) { alt33=1; } else { NoViableAltException nvae = new NoViableAltException("291:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 33, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("291:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 33, 0, input); throw nvae; } switch (alt33) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:296:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:297:25: loc= 'no-loop' opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_no_loop891); following.push(FOLLOW_opt_eol_in_no_loop893); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:297:47: ( ';' )? int alt31=2; int LA31_0 = input.LA(1); if ( LA31_0==16 ) { alt31=1; } else if ( LA31_0==EOL||LA31_0==22||LA31_0==29||LA31_0==31||(LA31_0>=33 && LA31_0<=38) ) { alt31=2; } else { NoViableAltException nvae = new NoViableAltException("297:47: ( \';\' )?", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:297:47: ';' { match(input,16,FOLLOW_16_in_no_loop895); } break; } following.push(FOLLOW_opt_eol_in_no_loop898); opt_eol(); following.pop(); d = new AttributeDescr( "no-loop", "true" ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:304:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:304:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:305:25: loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_no_loop923); t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_no_loop927); following.push(FOLLOW_opt_eol_in_no_loop929); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:305:54: ( ';' )? int alt32=2; int LA32_0 = input.LA(1); if ( LA32_0==16 ) { alt32=1; } else if ( LA32_0==EOL||LA32_0==22||LA32_0==29||LA32_0==31||(LA32_0>=33 && LA32_0<=38) ) { alt32=2; } else { NoViableAltException nvae = new NoViableAltException("305:54: ( \';\' )?", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:305:54: ';' { match(input,16,FOLLOW_16_in_no_loop931); } break; } following.push(FOLLOW_opt_eol_in_no_loop934); opt_eol(); following.pop(); d = new AttributeDescr( "no-loop", t.getText() ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1158,
67,
6498,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3601,
16198,
1158,
67,
6498,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
54... | ||
log.warn("Failed to hash token - sending in clear text"); | if(log.isWarnEnabled()){ log.warn("Failed to hash token - sending in clear text"); } | private String hash(String token){ //perform the hashing of the token key String hashedToken = null; if(hash_type.equalsIgnoreCase("SHA")){ hashedToken = HashUtils.sha(token); }else{ hashedToken = HashUtils.md5(token); } if(hashedToken == null){ //failed to encrypt log.warn("Failed to hash token - sending in clear text"); return token; } return hashedToken; } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/00009177ae09a0e763e35d49dfcdfc4da0a63f99/MD5Token.java/buggy/src/org/jgroups/auth/MD5Token.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1651,
12,
780,
1147,
15329,
3639,
368,
16092,
326,
24641,
434,
326,
1147,
498,
3639,
514,
14242,
1345,
273,
446,
31,
3639,
309,
12,
2816,
67,
723,
18,
14963,
5556,
2932,
8325,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1651,
12,
780,
1147,
15329,
3639,
368,
16092,
326,
24641,
434,
326,
1147,
498,
3639,
514,
14242,
1345,
273,
446,
31,
3639,
309,
12,
2816,
67,
723,
18,
14963,
5556,
2932,
8325,
... |
public void testDirectSql() throws Exception { | public void testDirectSql() throws Exception { | public void testDirectSql() throws Exception { //Start the server MuleManager.getInstance().start(); MuleEndpointURI muleEndpoint = new MuleEndpointURI("jdbc://?sql=SELECT * FROM TEST"); UMOEndpoint endpoint = MuleEndpoint.getOrCreateEndpointForUri(muleEndpoint, UMOEndpoint.ENDPOINT_TYPE_SENDER); UMOMessage message; message = endpoint.getConnector().getDispatcher(muleEndpoint.getAddress()).receive(muleEndpoint, 1000); assertNull(message); execSqlUpdate("INSERT INTO TEST(ID, TYPE, DATA, ACK, RESULT) VALUES (NULL, 1, '" + DEFAULT_MESSAGE + "', NULL, NULL)"); message = endpoint.getConnector().getDispatcher(muleEndpoint.getAddress()).receive(muleEndpoint, 1000); assertNotNull(message); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/JdbcNonTransactionalFunctionalTestCase.java/clean/tests/integration/src/test/java/org/mule/test/integration/providers/jdbc/JdbcNonTransactionalFunctionalTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5368,
5101,
1435,
1216,
1185,
288,
3639,
368,
1685,
326,
1438,
3639,
490,
725,
1318,
18,
588,
1442,
7675,
1937,
5621,
7734,
490,
725,
3293,
3098,
312,
725,
3293,
273,
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,
918,
1842,
5368,
5101,
1435,
1216,
1185,
288,
3639,
368,
1685,
326,
1438,
3639,
490,
725,
1318,
18,
588,
1442,
7675,
1937,
5621,
7734,
490,
725,
3293,
3098,
312,
725,
3293,
273,
394... |
RequestLine requestLine = new RequestLine(); requestLine.setUri((GenericURI) getRemoteParty().getURI()); requestLine.setMethod(method); SIPRequest sipRequest = originalRequest.createSIPRequest(requestLine, this.isServer()); try { if (!method.equals(Request.ACK)) { CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(this.localSequenceNumber + 1); } else { SIPTransaction transaction = this.lastTransaction; if (transaction == null) throw new SipException("Could not create ack!"); SIPResponse response = (SIPResponse) this.lastTransaction .getLastResponse(); if (response == null) throw new SipException("Could not find response!"); int seqno = response.getCSeq().getSequenceNumber(); CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(seqno); } } catch (InvalidArgumentException ex) { InternalErrorHandler.handleException(ex); } if (isServer()) { sipRequest.removeHeader(ViaHeader.NAME); MessageProcessor messageProcessor = sipStack .getMessageProcessor(firstTransaction.encapsulatedChannel .getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } From from = (From) sipRequest.getFrom(); To to = (To) sipRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { InternalErrorHandler.handleException(ex); } RouteList rl = this.getRouteList(); if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { sipRequest.addHeader(rl); } else { rl.removeFirst(); sipRequest.setRequestURI(sipUri); if (rl.size() > 0) sipRequest.addHeader(rl); if (this.contactRoute != null) sipRequest.addHeader(contactRoute); } } else { } try { if (sipRequest.getRequestURI() instanceof SipUri) { SipUri cloned = (SipUri) sipRequest.getRequestURI().clone(); cloned.setTransportParam(sipRequest.getTopmostVia().getTransport()); sipRequest.setRequestURI( cloned ); } } catch (ParseException ex) { } return sipRequest; } | if (this.lastResponse != null) return this.createRequest(method, this.lastResponse); else throw new SipException("Dialog not yet established -- no response!"); } | public Request createRequest(String method) throws SipException { // Check if the dialog is in the right state (RFC 3261 section 15). // The caller's UA MAY send a BYE for either // CONFIRMED or EARLY dialogs, and the callee's UA MAY send a BYE on // CONFIRMED dialogs, but MUST NOT send a BYE on EARLY dialogs. if (method == null) throw new NullPointerException("null method"); else if (this.getState() == null || (this.getState().getValue() == TERMINATED_STATE && !method .equalsIgnoreCase(Request.BYE)) || (this.isServer() && this.getState().getValue() == EARLY_STATE && method .equalsIgnoreCase(Request.BYE))) throw new SipException("Dialog " + getDialogId() + " not yet established or terminated " + this.getState()); RequestLine requestLine = new RequestLine(); requestLine.setUri((GenericURI) getRemoteParty().getURI()); requestLine.setMethod(method); SIPRequest sipRequest = originalRequest.createSIPRequest(requestLine, this.isServer()); try { // Guess of local sequence number - this is being re-set when // the request is actually dispatched ( reported by Brad Templeton // and Antonis Karydas). if (!method.equals(Request.ACK)) { CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(this.localSequenceNumber + 1); } else { // This is an ACK request. Get the last transaction and // assign a seq number from there. // Bug noticed by Andreas Bystrom. SIPTransaction transaction = this.lastTransaction; if (transaction == null) throw new SipException("Could not create ack!"); SIPResponse response = (SIPResponse) this.lastTransaction .getLastResponse(); if (response == null) throw new SipException("Could not find response!"); int seqno = response.getCSeq().getSequenceNumber(); CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(seqno); } } catch (InvalidArgumentException ex) { InternalErrorHandler.handleException(ex); } if (isServer()) { // Remove the old via headers. sipRequest.removeHeader(ViaHeader.NAME); // Add a via header for the outbound request based on the // transport of the message processor. MessageProcessor messageProcessor = sipStack .getMessageProcessor(firstTransaction.encapsulatedChannel .getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } From from = (From) sipRequest.getFrom(); To to = (To) sipRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { InternalErrorHandler.handleException(ex); } // get the route list from the dialog. RouteList rl = this.getRouteList(); // Add it to the header. if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { // JvB: not needed, already set on line 1264 //if (this.getRemoteTarget() != null) // sipRequest.setRequestURI(this.getRemoteTarget().getURI()); sipRequest.addHeader(rl); } else { // First route is not a lr // Add the contact route to the end. rl.removeFirst(); sipRequest.setRequestURI(sipUri); // Bug report from Brad Templeton // Check for 0 size - Bug report from Andreas Bystrom. if (rl.size() > 0) sipRequest.addHeader(rl); if (this.contactRoute != null) sipRequest.addHeader(contactRoute); } } else { // // JvB: see line 1264 // // Bug report from Antonis Karydas // if (this.getRemoteTarget() != null) // sipRequest.setRequestURI(this.getRemoteTarget().getURI()); } // Set the transport to be the same for the outgoing request. try { if (sipRequest.getRequestURI() instanceof SipUri) { // JvB: first clone the URI, it may be used in other headers // too! (e.g. Contact, reported by Matt Porter) SipUri cloned = (SipUri) sipRequest.getRequestURI().clone(); cloned.setTransportParam(sipRequest.getTopmostVia().getTransport()); sipRequest.setRequestURI( cloned ); } } catch (ParseException ex) { } return sipRequest; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SIPDialog.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1567,
15798,
12,
780,
707,
13,
1216,
13475,
503,
288,
3639,
368,
2073,
309,
326,
6176,
353,
316,
326,
2145,
919,
261,
17926,
3847,
9498,
2442,
4711,
2934,
3639,
368,
1021,
4894,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1567,
15798,
12,
780,
707,
13,
1216,
13475,
503,
288,
3639,
368,
2073,
309,
326,
6176,
353,
316,
326,
2145,
919,
261,
17926,
3847,
9498,
2442,
4711,
2934,
3639,
368,
1021,
4894,
180... |
MavenExecutionResponse response = processProject( request, project, dispatcher ); | MavenExecutionResponse response = processProject( session, goals, project, dispatcher ); | public MavenExecutionResponse execute( MavenExecutionRequest request ) throws ReactorException { if ( request.getSettings().isOffline() ) { getLogger().info( "Maven is running in offline mode." ); } try { resolveParameters( request.getSettings() ); } catch ( ComponentLookupException e ) { throw new ReactorException( "Unable to configure Maven for execution", e ); } catch ( ComponentLifecycleException e ) { throw new ReactorException( "Unable to configure Maven for execution", e ); } EventDispatcher dispatcher = request.getEventDispatcher(); String event = MavenEvents.REACTOR_EXECUTION; dispatcher.dispatchStart( event, request.getBaseDirectory() ); List projects; try { projects = collectProjects( request.getFiles(), request.getLocalRepository(), request.isRecursive(), request.getSettings() ); projects = ProjectSorter.getSortedProjects( projects ); if ( projects.isEmpty() ) { List externalProfiles = getActiveExternalProfiles( null, request.getSettings() ); projects.add( projectBuilder.buildStandaloneSuperProject( request.getLocalRepository(), externalProfiles ) ); } } catch ( IOException e ) { throw new ReactorException( "Error processing projects for the reactor: ", e ); } catch ( CycleDetectedException e ) { throw new ReactorException( "Error processing projects for the reactor: ", e ); } catch ( ArtifactResolutionException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); MavenExecutionResponse response = new MavenExecutionResponse(); response.setStart( new Date() ); response.setFinish( new Date() ); response.setException( e ); logFailure( response, e, null ); return response; } catch ( ProjectBuildingException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); MavenExecutionResponse response = new MavenExecutionResponse(); response.setStart( new Date() ); response.setFinish( new Date() ); response.setException( e ); logFailure( response, e, null ); return response; } try { for ( Iterator iterator = projects.iterator(); iterator.hasNext(); ) { MavenProject project = (MavenProject) iterator.next(); line(); getLogger().info( "Building " + project.getName() ); line(); try { MavenExecutionResponse response = processProject( request, project, dispatcher ); if ( response.isExecutionFailure() ) { dispatcher.dispatchError( event, request.getBaseDirectory(), response.getException() ); return response; } } catch ( LifecycleExecutionException e ) { throw new ReactorException( "Error executing project within the reactor", e ); } } dispatcher.dispatchEnd( event, request.getBaseDirectory() ); // TODO: not really satisfactory return null; } catch ( ReactorException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); throw e; } } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/701ef520a30c7b30dcdf2e4a4f06548cc06fbf0b/DefaultMaven.java/buggy/maven-core/src/main/java/org/apache/maven/DefaultMaven.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17176,
3210,
1064,
1836,
12,
17176,
3210,
691,
590,
262,
3639,
1216,
868,
3362,
503,
565,
288,
3639,
309,
261,
590,
18,
588,
2628,
7675,
291,
23106,
1435,
262,
3639,
288,
5411,
7156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17176,
3210,
1064,
1836,
12,
17176,
3210,
691,
590,
262,
3639,
1216,
868,
3362,
503,
565,
288,
3639,
309,
261,
590,
18,
588,
2628,
7675,
291,
23106,
1435,
262,
3639,
288,
5411,
7156... |
probeResponse.add(DocumentHelper.createElement("password")); | probeResponse.addElement("password"); | public IQAuthHandler() { super("XMPP Authentication handler"); info = new IQHandlerInfo("query", "jabber:iq:auth"); probeResponse = DocumentHelper.createElement(QName.get("query", "jabber:iq:auth")); probeResponse.addAttribute("type", "get"); probeResponse.add(DocumentHelper.createElement("username")); if (AuthFactory.isPlainSupported()) { probeResponse.add(DocumentHelper.createElement("password")); } if (AuthFactory.isDigestSupported()) { probeResponse.add(DocumentHelper.createElement("digest")); } probeResponse.add(DocumentHelper.createElement("resource")); anonymousAllowed = "true".equals(JiveGlobals.getProperty("xmpp.auth.anonymous")); } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/3de1434d82a5f05962d1279572ae1e70417f9aad/IQAuthHandler.java/buggy/src/java/org/jivesoftware/messenger/handler/IQAuthHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26950,
1730,
1503,
1435,
288,
3639,
2240,
2932,
60,
19388,
8665,
1838,
8863,
3639,
1123,
273,
394,
26950,
1503,
966,
2932,
2271,
3113,
315,
78,
378,
744,
30,
18638,
30,
1944,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26950,
1730,
1503,
1435,
288,
3639,
2240,
2932,
60,
19388,
8665,
1838,
8863,
3639,
1123,
273,
394,
26950,
1503,
966,
2932,
2271,
3113,
315,
78,
378,
744,
30,
18638,
30,
1944,
8863,
... |
if (row==null ) | if (row == null) | public static Community find(Context context, int id) throws SQLException { TableRow row = DatabaseManager.find(context, "community", id); if (row==null ) { return null; } else { return new Community(context, row); } } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/85c7430ba7691f831fafc420459d280408310eb9/Community.java/clean/dspace/src/org/dspace/content/Community.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
16854,
13352,
1104,
12,
1042,
819,
16,
509,
612,
13,
3639,
1216,
6483,
565,
288,
3639,
3555,
1999,
1027,
273,
5130,
1318,
18,
4720,
12,
2472,
16,
5411,
315,
20859,
3113,
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,
16854,
13352,
1104,
12,
1042,
819,
16,
509,
612,
13,
3639,
1216,
6483,
565,
288,
3639,
3555,
1999,
1027,
273,
5130,
1318,
18,
4720,
12,
2472,
16,
5411,
315,
20859,
3113,
5411,
... |
public void onePair(int i, int j) { byte[] nonce = new byte[4]; rand.nextBytes(nonce); CachedUrlSet cus = goodCUS(128); if (cus == null) fail("goodCUS() returned null"); | private void onePair(int i, int j, CachedUrlSet cus1, CachedUrlSet cus2, byte[] nonce1, byte[] nonce2, boolean shouldBeAgreeing, boolean shouldBeValid) { | public void onePair(int i, int j) { byte[] nonce = new byte[4]; rand.nextBytes(nonce); CachedUrlSet cus = goodCUS(128); if (cus == null) fail("goodCUS() returned null"); // Make a generator MemoryBoundFunctionVote gen = generator(i, j, nonce, cus); assertFalse(gen==null); if (i == 0) { // Set the proof array that the MockMemoryBoundFunction will return // for generation and use for verification MockMemoryBoundFunction.setProof(goodProof); } // Generate the vote try { while (gen.computeSteps(numSteps)) { assertFalse(gen.finished()); } } catch (MemoryBoundFunctionException ex) { fail("generator.computeSteps() threw " + ex.toString()); } assertTrue(gen.finished()); // Recover the vote int[][] proofArray = gen.getProofArray(); if (proofArray == null) fail("generated a null proof array"); // Recover the hashes byte[][] hashArray = gen.getHashArray(); if (hashArray == null) fail("generated a null proof array"); if (proofArray.length != hashArray.length) fail("proof " + proofArray.length + " hash " + hashArray.length + " not equal"); // Make a verifier cus = goodCUS(128); if (cus == null) fail("goodCUS() returned null"); MemoryBoundFunctionVote ver = verifier(i, j, nonce, cus, proofArray, hashArray); assertFalse(ver==null); if (i == 0) { // Set the proof array that the MockMemoryBoundFunction will return // for generation and use for verification MockMemoryBoundFunction.setProof(goodProof); } // Verify the vote try { while (ver.computeSteps(numSteps)) { assertFalse(ver.finished()); } } catch (MemoryBoundFunctionException ex) { fail("verifier.computeSteps() threw " + ex.toString()); } assertTrue(ver.finished()); // Get valid/invalid try { boolean valid = ver.valid(); if (!valid) fail("verifier declared valid vote invalid"); } catch (MemoryBoundFunctionException ex) { fail("verifier.valid() threw " + ex.toString()); } // Get agreeing/disagreeing try { boolean agreeing = ver.agreeing(); if (!agreeing) fail("verifier declared agreeing vote disgreeing"); } catch (MemoryBoundFunctionException ex) { fail("verifier.agreeing() threw " + ex.toString()); } } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/a5a526da0f5f9b060ab280030b85baf0554d688b/TestMemoryBoundFunctionVote.java/clean/test/src/org/lockss/mbf/TestMemoryBoundFunctionVote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1245,
4154,
12,
474,
277,
16,
509,
525,
13,
288,
565,
1160,
8526,
7448,
273,
394,
1160,
63,
24,
15533,
565,
5605,
18,
4285,
2160,
12,
12824,
1769,
565,
15771,
1489,
694,
2796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1245,
4154,
12,
474,
277,
16,
509,
525,
13,
288,
565,
1160,
8526,
7448,
273,
394,
1160,
63,
24,
15533,
565,
5605,
18,
4285,
2160,
12,
12824,
1769,
565,
15771,
1489,
694,
2796... |
} | } | protected void runTest(Object testDoc, Object context, Element test) throws Exception { String xpathStr = test.attributeValue( "select" ); String debugStr = test.attributeValue( "debug" ); boolean debug = this.verbose; if ( debugStr != null ) { if ( "true".equals( debugStr ) || "on".equals( debugStr ) ) { debug = true; } } log( debug, " Select :: " + xpathStr ); this.executionContext.push( xpathStr ); String count = test.attributeValue( "count" ); String exception = test.attributeValue( "exception" ); BaseXPath xpath = new BaseXPath( xpathStr ); if ( count != null ) { int expectedSize = Integer.parseInt( count ); try { List results = xpath.selectNodes( getContext( context ) ); log ( debug, " Expected Size :: " + expectedSize ); log ( debug, " Result Size :: " + results.size() ); if ( expectedSize != results.size() ) { log ( debug, " ## FAILED" ); log ( debug, " ## xpath: " + xpath + " = " + xpath.debug() ); Iterator resultIter = results.iterator(); while ( resultIter.hasNext() ) { log ( debug, " --> " + resultIter.next() ); } } assertEquals( this.executionContext.toString(), expectedSize, results.size() ); } catch (UnsupportedAxisException e) { log ( debug, " ## SKIPPED -- Unsupported Axis" ); } catch (JaxenException e) { // If an exception attribute was switched on, this is the desired behaviour.. if (exception !=null && (exception.equals("on") || exception.equals("true"))) { log (debug, " Caught expected exception "+e.getMessage()); } else throw e; } } Iterator valueOfIter = test.elementIterator( "valueOf" ); while ( valueOfIter.hasNext() ) { //Element valueOf = test.element( "valueOf" ); Element valueOf = (Element) valueOfIter.next(); if ( valueOf != null ) { debugStr = valueOf.attributeValue( "debug" ); if ( debugStr != null ) { if ( "true".equals( debugStr ) || "on".equals( debugStr ) ) { debug = true; } } try { Object newContext = xpath.selectSingleNode( getContext( context ) ); log ( debug, " New Context :: " + abbreviate( newContext ) ); String valueOfXPathStr = valueOf.attributeValue( "select" ); log( debug, " Select :: " + valueOfXPathStr ); this.executionContext.push( valueOfXPathStr ); BaseXPath valueOfXPath = new BaseXPath( valueOfXPathStr ); Object node = valueOfXPath.selectSingleNode( getContext( newContext ) ); String expected = valueOf.getText(); String result = StringFunction.evaluate( node, getNavigator() ); log ( debug, " Expected :: " + expected ); log ( debug, " Result :: " + result ); if ( ! expected.equals( result ) ) { log ( debug, " ## FAILED" ); } assertEquals( this.executionContext.toString(), expected, result ); this.executionContext.pop(); } catch (UnsupportedAxisException e) { log ( debug, " ## SKIPPED -- Unsupported Axis" ); } } } this.executionContext.pop(); } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/a5e66970885250a5a70824a7f8cd5540b58d7539/XPathTestBase.java/buggy/src/java/test/org/jaxen/XPathTestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
4709,
12,
921,
1842,
1759,
16,
21821,
1033,
819,
16,
21821,
3010,
1842,
13,
1216,
1185,
565,
288,
3639,
514,
6748,
1585,
273,
1842,
18,
4589,
620,
12,
315,
4025,
6,
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,
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,
1086,
4709,
12,
921,
1842,
1759,
16,
21821,
1033,
819,
16,
21821,
3010,
1842,
13,
1216,
1185,
565,
288,
3639,
514,
6748,
1585,
273,
1842,
18,
4589,
620,
12,
315,
4025,
6,
112... |
if(A_OpenCms.isLogging()) { | if((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) { | public void initlaunch(CmsObject cms, CmsFile file, String startTemplateClass, A_OpenCms openCms) throws CmsException { // First some debugging output. if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_CRITICAL, getClassName() + "Launcher started for " + file.getName()); } // Check all values to be valid String errorMessage = null; if(file == null) { errorMessage = "Got \"null\" CmsFile object. :-("; } if(cms == null) { errorMessage = "Actual cms object missing"; } if(errorMessage != null) { if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_CRITICAL, getClassName() + errorMessage); } throw new CmsException(errorMessage, CmsException.C_LAUNCH_ERROR); } // Check the clearcache parameter String clearcache = cms.getRequestContext().getRequest().getParameter("_clearcache"); long currentFsCounter = cms.getFileSystemChanges(); if((clearcache != null) && ("all".equals(clearcache) || "class".equals(clearcache))) { CmsTemplateClassManager.clearCache(); } if(((clearcache != null) && ("all".equals(clearcache) || "file".equals(clearcache))) || (currentFsCounter > m_lastFsCounterFile)) { A_CmsXmlContent.clearFileCache(); m_lastFsCounterFile = currentFsCounter; } if(((clearcache != null) && ("all".equals(clearcache) || "template".equals(clearcache))) || (currentFsCounter > m_lastFsCounterTemplate)) { m_templateCache.clearCache(); m_lastFsCounterTemplate = currentFsCounter; } launch(cms, file, startTemplateClass, openCms); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/A_CmsLauncher.java/buggy/src/com/opencms/launcher/A_CmsLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
20738,
12,
4747,
921,
6166,
16,
28118,
585,
16,
514,
787,
2283,
797,
16,
432,
67,
3678,
4747,
1696,
4747,
13,
1216,
11228,
288,
3639,
368,
5783,
2690,
10450,
876,
18,
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,
1071,
918,
1208,
20738,
12,
4747,
921,
6166,
16,
28118,
585,
16,
514,
787,
2283,
797,
16,
432,
67,
3678,
4747,
1696,
4747,
13,
1216,
11228,
288,
3639,
368,
5783,
2690,
10450,
876,
18,
3... |
SimpleDateFormat formatter = new SimpleDateFormat(DateFormatFactory.getFormat()); | public Element getModifications(Date lastBuild) { SimpleDateFormat formatter = new SimpleDateFormat(DateFormatFactory.getFormat()); Element modificationsElement = null; do { timeOfCheck = new Date(); modifications = new ArrayList(); Iterator sourceControlIterator = sourceControls.iterator(); while (sourceControlIterator.hasNext()) { SourceControl sourceControl = (SourceControl) sourceControlIterator.next(); modifications.addAll(sourceControl.getModifications(lastBuild, timeOfCheck)); } modificationsElement = new Element("modifications"); Iterator modificationIterator = modifications.iterator(); if (modifications.size() > 0) { LOG.info( modifications.size() + ((modifications.size() > 1) ? " modifications have been detected." : " modification has been detected.")); } while (modificationIterator.hasNext()) { Object object = modificationIterator.next(); if (object instanceof org.jdom.Element) { modificationsElement.addContent(((Element) object).detach()); } else { Modification modification = (Modification) object; Element modificationElement = (modification).toElement(formatter); modification.log(formatter); modificationsElement.addContent(modificationElement); } } if (isLastModificationInQuietPeriod(timeOfCheck, modifications)) { LOG.info("A modification has been detected in the quiet period. "); LOG.debug(formatter.format(new Date(timeOfCheck.getTime() - quietPeriod)) + " <= Quiet Period <= " + formatter.format(timeOfCheck)); LOG.debug("Last modification: " + formatter.format(new Date(getLastModificationMillis(modifications)))); Date now = new Date(); long timeToSleep = getQuietPeriodDifference(now, modifications); LOG.info("Sleeping for " + (timeToSleep / 1000) + " seconds before retrying."); try { Thread.sleep(timeToSleep); } catch (InterruptedException e) { LOG.error(e); } } } while (isLastModificationInQuietPeriod(timeOfCheck, modifications)); return modificationsElement; } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/3e2c7677b5e936931ed282bac56659126cb6901a/ModificationSet.java/clean/main/src/net/sourceforge/cruisecontrol/ModificationSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
336,
28340,
12,
1626,
1142,
3116,
13,
288,
9079,
3010,
17953,
1046,
273,
446,
31,
3639,
741,
288,
5411,
813,
951,
1564,
273,
394,
2167,
5621,
5411,
17953,
273,
394,
2407,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
336,
28340,
12,
1626,
1142,
3116,
13,
288,
9079,
3010,
17953,
1046,
273,
446,
31,
3639,
741,
288,
5411,
813,
951,
1564,
273,
394,
2167,
5621,
5411,
17953,
273,
394,
2407,
5621... | |
CUP$parser$result = new java_cup.runtime.Symbol(23/*Step*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); | CUP$parser$result = new java_cup.runtime.Symbol(22/*Step*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); | public final java_cup.runtime.Symbol CUP$parser$do_action( int CUP$parser$act_num, java_cup.runtime.lr_parser CUP$parser$parser, java.util.Stack CUP$parser$stack, int CUP$parser$top) throws java.lang.Exception { /* Symbol object for return from actions */ java_cup.runtime.Symbol CUP$parser$result; /* select the action based on the action number */ switch (CUP$parser$act_num) { /*. . . . . . . . . . . . . . . . . . . .*/ case 65: // FunctionName ::= FNAME { FuncName RESULT = null; int fnleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int fnright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; FuncName fn = (FuncName)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = fn; CUP$parser$result = new java_cup.runtime.Symbol(3/*FunctionName*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 64: // VariableReference ::= DOLLAR NAME { Object RESULT = null; CUP$parser$result = new java_cup.runtime.Symbol(1/*VariableReference*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 63: // Predicate ::= LB Expr RB { Predicate RESULT = null; int eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Expr e = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; RESULT = new Predicate(); RESULT.expr= e; CUP$parser$result = new java_cup.runtime.Symbol(30/*Predicate*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 62: // AbbreviatedRelativeLocationPath ::= Step DSLASH RelativeLocationPath { Step RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int sright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Step s = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new Step(); RESULT.setAxisType(AxisType.DESCENDANT_OR_SELF); parser.tempNt = new NodeTest(); parser.tempNt.setTestType(NodeTest.NODE); RESULT.setNodeTest(parser.tempNt); s.setNextStep(RESULT); RESULT.setPrevStep(s); RESULT.setNextStep(rlp); rlp.setPrevStep(RESULT); RESULT = s; CUP$parser$result = new java_cup.runtime.Symbol(28/*AbbreviatedRelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 61: // AbbreviatedAbsoluteLocationPath ::= DSLASH RelativeLocationPath { Step RESULT = null; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new Step(); RESULT.setAxisType(AxisType.DESCENDANT_OR_SELF); parser.tempNt = new NodeTest(); parser.tempNt.setTestType(NodeTest.NODE); RESULT.setNodeTest(parser.tempNt); RESULT.setNextStep(rlp); rlp.setPrevStep(RESULT); CUP$parser$result = new java_cup.runtime.Symbol(27/*AbbreviatedAbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 60: // AbbreviatedStep ::= DDOT { Step RESULT = null; RESULT = new Step(); parser.tempNt = new NodeTest(); parser.tempNt.setTestType(NodeTest.NODE); RESULT.setAxisType(AxisType.PARENT); RESULT.setNodeTest(parser.tempNt); CUP$parser$result = new java_cup.runtime.Symbol(24/*AbbreviatedStep*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 59: // AbbreviatedStep ::= DOT { Step RESULT = null; RESULT = new Step(); parser.tempNt = new NodeTest(); parser.tempNt.setTestType(NodeTest.NODE); RESULT.setAxisType(AxisType.SELF); RESULT.setNodeTest(parser.tempNt); CUP$parser$result = new java_cup.runtime.Symbol(24/*AbbreviatedStep*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 58: // AbbreviatedAxisSpecifier ::= AT { AxisType RESULT = null; RESULT = new AxisType(); RESULT.i = AxisType.ATTRIBUTE; CUP$parser$result = new java_cup.runtime.Symbol(21/*AbbreviatedAxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 57: // AbbreviatedAxisSpecifier ::= { AxisType RESULT = null; RESULT = new AxisType(); RESULT.i = AxisType.CHILD; CUP$parser$result = new java_cup.runtime.Symbol(21/*AbbreviatedAxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 56: // AxisSpecifier ::= AbbreviatedAxisSpecifier { AxisType RESULT = null; int aasleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aasright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; AxisType aas = (AxisType)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = aas; CUP$parser$result = new java_cup.runtime.Symbol(20/*AxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 55: // AxisSpecifier ::= AXISNAME { AxisType RESULT = null; int anleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int anright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; AxisType an = (AxisType)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = an; CUP$parser$result = new java_cup.runtime.Symbol(20/*AxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 54: // PredicateList ::= Predicate PredicateList { Predicate RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int pright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Predicate p = (Predicate)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; int plleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int plright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Predicate pl = (Predicate)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; p.nextP = pl; RESULT = p; CUP$parser$result = new java_cup.runtime.Symbol(29/*PredicateList*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 53: // PredicateList ::= { Predicate RESULT = null; RESULT = null; CUP$parser$result = new java_cup.runtime.Symbol(29/*PredicateList*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 52: // nodetest ::= NTEST { NodeTest RESULT = null; int n2left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int n2right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Ntest n2 = (Ntest)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new NodeTest(); RESULT.setTestType(n2.i); CUP$parser$result = new java_cup.runtime.Symbol(22/*nodetest*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 51: // nodetest ::= NAME { NodeTest RESULT = null; int nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; NameType n = (NameType)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new NodeTest(); RESULT.setTestType(NodeTest.NAMETEST); RESULT.setNodeName(n.qname); if (n.localname!=null){ RESULT.setNodeNameNS(n.prefix,n.localname); if (parser.ht==null || parser.ht.get(n.prefix) ==null) throw new XPathParseException("No URL found for prefix:"+n.prefix); RESULT.URL = (String) parser.ht.get(n.prefix); } CUP$parser$result = new java_cup.runtime.Symbol(22/*nodetest*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 50: // Step ::= AbbreviatedStep { Step RESULT = null; int asleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int asright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step as = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = as; /*System.out.println(" step 4");*/ CUP$parser$result = new java_cup.runtime.Symbol(23/*Step*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 49: // Step ::= AxisSpecifier nodetest PredicateList { Step RESULT = null; int asleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int asright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; AxisType as = (AxisType)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int ntleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int ntright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; NodeTest nt = (NodeTest)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; int plleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int plright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Predicate pl = (Predicate)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new Step(); RESULT.setAxisType(as.i); RESULT.setNodeTest(nt); RESULT.setPredicate(pl); //System.out.println(" Step 3 "); CUP$parser$result = new java_cup.runtime.Symbol(23/*Step*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 48: // RelativeLocationPath ::= AbbreviatedRelativeLocationPath { Step RESULT = null; int arlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int arlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step arlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = arlp; CUP$parser$result = new java_cup.runtime.Symbol(25/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 47: // RelativeLocationPath ::= Step SLASH RelativeLocationPath { Step RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int sright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Step s = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; //if (s == rlp) throw new XPathParseException("$1 = $3!!!!"); s.nextS = rlp; rlp.prevS = s; RESULT= s; CUP$parser$result = new java_cup.runtime.Symbol(25/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 46: // RelativeLocationPath ::= Step { Step RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step s = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = s; CUP$parser$result = new java_cup.runtime.Symbol(25/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 45: // AbsoluteLocationPath ::= AbbreviatedAbsoluteLocationPath { Step RESULT = null; int aalpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aalpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step aalp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = aalp; CUP$parser$result = new java_cup.runtime.Symbol(26/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 44: // AbsoluteLocationPath ::= SLASH RelativeLocationPath { Step RESULT = null; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = rlp; CUP$parser$result = new java_cup.runtime.Symbol(26/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 43: // AbsoluteLocationPath ::= SLASH { Step RESULT = null; RESULT = null; CUP$parser$result = new java_cup.runtime.Symbol(26/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 42: // LocationPath ::= AbsoluteLocationPath { LocationPathExpr RESULT = null; int alpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int alpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step alp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new LocationPathExpr(); RESULT.setPathType(LocationPathExpr.ABSOLUTE_PATH); //System.out.println(" absolute "); RESULT.setStep(alp); //startStep = currentStep=null; CUP$parser$result = new java_cup.runtime.Symbol(19/*LocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 41: // LocationPath ::= RelativeLocationPath { LocationPathExpr RESULT = null; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new LocationPathExpr(); RESULT.setStep(rlp); CUP$parser$result = new java_cup.runtime.Symbol(19/*LocationPath*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 40: // Argument ::= Expr { Expr RESULT = null; int eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr e = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = e; CUP$parser$result = new java_cup.runtime.Symbol(18/*Argument*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 39: // ArgumentList ::= Argument COMMA ArgumentList { Alist RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int alleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int alright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Alist al = (Alist)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new Alist(); RESULT.e = a; RESULT.next = al; CUP$parser$result = new java_cup.runtime.Symbol(15/*ArgumentList*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 38: // ArgumentList ::= Argument { Alist RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new Alist(); RESULT.e = a; CUP$parser$result = new java_cup.runtime.Symbol(15/*ArgumentList*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 37: // ArgumentList ::= { Alist RESULT = null; RESULT = null; CUP$parser$result = new java_cup.runtime.Symbol(15/*ArgumentList*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 36: // FunctionCall ::= FunctionName LP ArgumentList RP { FuncExpr RESULT = null; int fnleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left; int fnright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right; FuncName fn = (FuncName)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value; int alleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int alright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Alist al = (Alist)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; RESULT = new FuncExpr(fn.i, al); CUP$parser$result = new java_cup.runtime.Symbol(2/*FunctionCall*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 35: // PrimaryExpr ::= FunctionCall { Expr RESULT = null; int fcleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int fcright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; FuncExpr fc = (FuncExpr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = fc; CUP$parser$result = new java_cup.runtime.Symbol(16/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 34: // PrimaryExpr ::= NUMBER { Expr RESULT = null; int neleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int neright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Double ne = (Double)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new NumExpr(ne.doubleValue()); CUP$parser$result = new java_cup.runtime.Symbol(16/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 33: // PrimaryExpr ::= LITERAL { Expr RESULT = null; int leleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int leright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; String le = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new LiteralExpr(le); CUP$parser$result = new java_cup.runtime.Symbol(16/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 32: // PrimaryExpr ::= LP Expr RP { Expr RESULT = null; int eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Expr e = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; RESULT = e; CUP$parser$result = new java_cup.runtime.Symbol(16/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 31: // PrimaryExpr ::= VariableReference { Expr RESULT = null; CUP$parser$result = new java_cup.runtime.Symbol(16/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 30: // FilterExpr ::= FilterExpr Predicate { Expr RESULT = null; int feleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int feright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Expr fe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Predicate p = (Predicate)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new FilterExpr(fe, p); CUP$parser$result = new java_cup.runtime.Symbol(14/*FilterExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 29: // FilterExpr ::= PrimaryExpr { Expr RESULT = null; int peleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int peright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr pe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = pe; CUP$parser$result = new java_cup.runtime.Symbol(14/*FilterExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 28: // PathExpr ::= FilterExpr DSLASH RelativeLocationPath { Expr RESULT = null; int feleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int feright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr fe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; parser.tempStep = new Step(); parser.tempStep.setAxisType(AxisType.DESCENDANT_OR_SELF); parser.tempNt = new NodeTest(); parser.tempNt.setTestType(NodeTest.NODE); parser.tempStep.setNodeTest(parser.tempNt); parser.tempStep.setNextStep(rlp); rlp.setPrevStep(parser.tempStep); /*parser.tempStep2 = new Step(); parser.tempNt = new NodeTest(); parser.tempStep2.setAxisType(AxisType.SELF); parser.tempNt.setTestType(NodeTest.NODE); parser.tempStep2.setNodeTest(parser.tempNt); parser.tempStep2.setNextStep(parser.tempStep); parser.tempStep.setPrevStep(parser.tempStep2);*/ parser.tempLPExpr = new LocationPathExpr(); parser.tempLPExpr.setStep(parser.tempStep); RESULT = new PathExpr(fe, parser.tempLPExpr); CUP$parser$result = new java_cup.runtime.Symbol(13/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 27: // PathExpr ::= FilterExpr SLASH RelativeLocationPath { Expr RESULT = null; int feleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int feright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr fe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int rlpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int rlpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Step rlp = (Step)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; parser.tempLPExpr = new LocationPathExpr(); parser.tempLPExpr.setStep(rlp); RESULT = new PathExpr(fe, parser.tempLPExpr); CUP$parser$result = new java_cup.runtime.Symbol(13/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 26: // PathExpr ::= FilterExpr { Expr RESULT = null; int feleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int feright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr fe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = fe; CUP$parser$result = new java_cup.runtime.Symbol(13/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 25: // PathExpr ::= LocationPath { Expr RESULT = null; int lpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int lpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; LocationPathExpr lp = (LocationPathExpr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = lp; CUP$parser$result = new java_cup.runtime.Symbol(13/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 24: // UnionExpr ::= UnionExpr UNION PathExpr { Expr RESULT = null; int uneleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int uneright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr une = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int peleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int peright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr pe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(une, BinaryExpr.UNION, pe); //throw new XPathParseException("Union not yet supported"); CUP$parser$result = new java_cup.runtime.Symbol(12/*UnionExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 23: // UnionExpr ::= PathExpr { Expr RESULT = null; int peleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int peright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr pe = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = pe; CUP$parser$result = new java_cup.runtime.Symbol(12/*UnionExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 22: // UnaryExpr ::= SUB UnaryExpr { Expr RESULT = null; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new UnaryExpr( BinaryExpr.SUB, ue); CUP$parser$result = new java_cup.runtime.Symbol(11/*UnaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 21: // UnaryExpr ::= UnionExpr { Expr RESULT = null; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = ue; CUP$parser$result = new java_cup.runtime.Symbol(11/*UnaryExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 20: // MultiplicativeExpr ::= MultiplicativeExpr MOD UnaryExpr { Expr RESULT = null; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(me, BinaryExpr.MOD, ue); CUP$parser$result = new java_cup.runtime.Symbol(10/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 19: // MultiplicativeExpr ::= MultiplicativeExpr DIV UnaryExpr { Expr RESULT = null; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(me, BinaryExpr.DIV, ue); CUP$parser$result = new java_cup.runtime.Symbol(10/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 18: // MultiplicativeExpr ::= MultiplicativeExpr MULT UnaryExpr { Expr RESULT = null; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(me, BinaryExpr.MULT, ue); CUP$parser$result = new java_cup.runtime.Symbol(10/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 17: // MultiplicativeExpr ::= UnaryExpr { Expr RESULT = null; int ueleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int ueright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ue = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = ue; CUP$parser$result = new java_cup.runtime.Symbol(10/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 16: // AdditiveExpr ::= AdditiveExpr SUB MultiplicativeExpr { Expr RESULT = null; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(ae, BinaryExpr.SUB, me); CUP$parser$result = new java_cup.runtime.Symbol(9/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 15: // AdditiveExpr ::= AdditiveExpr ADD MultiplicativeExpr { Expr RESULT = null; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(ae, BinaryExpr.ADD, me); CUP$parser$result = new java_cup.runtime.Symbol(9/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 14: // AdditiveExpr ::= MultiplicativeExpr { Expr RESULT = null; int meleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int meright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr me = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = me; CUP$parser$result = new java_cup.runtime.Symbol(9/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 13: // RelationalExpr ::= RelationalExpr GE AdditiveExpr { Expr RESULT = null; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(re, BinaryExpr.GE, ae); CUP$parser$result = new java_cup.runtime.Symbol(8/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 12: // RelationalExpr ::= RelationalExpr LE AdditiveExpr { Expr RESULT = null; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(re, BinaryExpr.LE, ae); CUP$parser$result = new java_cup.runtime.Symbol(8/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 11: // RelationalExpr ::= RelationalExpr GT AdditiveExpr { Expr RESULT = null; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(re, BinaryExpr.GT, ae); CUP$parser$result = new java_cup.runtime.Symbol(8/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 10: // RelationalExpr ::= RelationalExpr LT AdditiveExpr { Expr RESULT = null; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(re, BinaryExpr.LT, ae); CUP$parser$result = new java_cup.runtime.Symbol(8/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 9: // RelationalExpr ::= AdditiveExpr { Expr RESULT = null; int aeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ae = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = ae; CUP$parser$result = new java_cup.runtime.Symbol(8/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 8: // EqualityExpr ::= EqualityExpr NE RelationalExpr { Expr RESULT = null; int eeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int eeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr ee = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(ee, BinaryExpr.NE, re); CUP$parser$result = new java_cup.runtime.Symbol(6/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 7: // EqualityExpr ::= EqualityExpr EQ RelationalExpr { Expr RESULT = null; int eeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int eeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr ee = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(ee, BinaryExpr.EQ, re); CUP$parser$result = new java_cup.runtime.Symbol(6/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 6: // EqualityExpr ::= RelationalExpr { Expr RESULT = null; int releft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int reright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr re = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = re; CUP$parser$result = new java_cup.runtime.Symbol(6/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 5: // AndExpr ::= AndExpr AND EqualityExpr { Expr RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int eeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int eeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ee = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(a, BinaryExpr.AND, ee); CUP$parser$result = new java_cup.runtime.Symbol(7/*AndExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 4: // AndExpr ::= EqualityExpr { Expr RESULT = null; int eeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int eeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr ee = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = ee; CUP$parser$result = new java_cup.runtime.Symbol(7/*AndExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 3: // OrExpr ::= OrExpr OR AndExpr { Expr RESULT = null; int oleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left; int oright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right; Expr o = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value; int aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = new BinaryExpr(o,BinaryExpr.OR,a); CUP$parser$result = new java_cup.runtime.Symbol(5/*OrExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 2: // OrExpr ::= AndExpr { Expr RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = a; CUP$parser$result = new java_cup.runtime.Symbol(5/*OrExpr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 1: // $START ::= Expr EOF { Object RESULT = null; int start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left; int start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right; Expr start_val = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value; RESULT = start_val; CUP$parser$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } /* ACCEPT */ CUP$parser$parser.done_parsing(); return CUP$parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 0: // Expr ::= OrExpr { Expr RESULT = null; int oleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left; int oright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right; Expr o = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value; RESULT = o; CUP$parser$result = new java_cup.runtime.Symbol(4/*Expr*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT); } return CUP$parser$result; /* . . . . . .*/ default: throw new Exception( "Invalid action number found in internal parse table"); } } | 3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/442d8c26f50ab215dc8ceae71d93f50c5f8a9efd/parser.java/buggy/com/ximpleware/xpath/parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
4288,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
4288,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
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,
282,
1071,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
4288,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
4288,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
18,
... |
public void setNestLevelAtOpen(int nodesDown){ setDefaultOpenLevel(nodesDown); } | public void setNestLevelAtOpen(int nodesDown) { setDefaultOpenLevel(nodesDown); } | public void setNestLevelAtOpen(int nodesDown){ setDefaultOpenLevel(nodesDown); } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/a72b7f6d1208acb4762f6ea86440f32d01a6d33a/AbstractTreeViewer.java/clean/src/java/com/idega/presentation/ui/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
50,
395,
2355,
861,
3678,
12,
474,
2199,
4164,
15329,
565,
9277,
3678,
2355,
12,
4690,
4164,
1769,
225,
289,
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,
282,
1071,
918,
444,
50,
395,
2355,
861,
3678,
12,
474,
2199,
4164,
15329,
565,
9277,
3678,
2355,
12,
4690,
4164,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for (StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) { for (Enrolment enrolment : studentCurricularPlan.getEnrolments()) { if (enrolment.getEnrolmentCondition() == EnrollmentCondition.INVISIBLE) { continue; } ExecutionYear enrolmentExecutionYear = enrolment.getExecutionPeriod().getExecutionYear(); if (onlyPreviousExecutionYear && (previousExecutionYear != enrolmentExecutionYear)) { continue; } if (enrolmentExecutionYear != currentExecutionYear) { enrollmentsNumber++; if (enrolment.getEnrollmentState() == EnrollmentState.APROVED) { actualApprovedEnrollmentsNumber++; Integer finalGrade = enrolment.getFinalGrade(); if (finalGrade != null) { approvedEnrollmentsNumber++; totalGrade += finalGrade; } else { enrollmentsNumber--; } } } } | for (StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) { for (Enrolment enrolment : studentCurricularPlan.getEnrolments()) { if (enrolment.getEnrolmentCondition() == EnrollmentCondition.INVISIBLE) { continue; | public void calculateApprovationRatioAndArithmeticMeanIfActive(boolean onlyPreviousExecutionYear) { int enrollmentsNumber = 0; int approvedEnrollmentsNumber = 0; int actualApprovedEnrollmentsNumber = 0; int totalGrade = 0; ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear(); ExecutionYear previousExecutionYear = currentExecutionYear.getPreviousExecutionYear(); for (StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) { for (Enrolment enrolment : studentCurricularPlan.getEnrolments()) { if (enrolment.getEnrolmentCondition() == EnrollmentCondition.INVISIBLE) { continue; } ExecutionYear enrolmentExecutionYear = enrolment.getExecutionPeriod().getExecutionYear(); if (onlyPreviousExecutionYear && (previousExecutionYear != enrolmentExecutionYear)) { continue; } if (enrolmentExecutionYear != currentExecutionYear) { enrollmentsNumber++; if (enrolment.getEnrollmentState() == EnrollmentState.APROVED) { actualApprovedEnrollmentsNumber++; Integer finalGrade = enrolment.getFinalGrade(); if (finalGrade != null) { approvedEnrollmentsNumber++; totalGrade += finalGrade; } else { enrollmentsNumber--; } } } } } setApprovedEnrollmentsNumber(Integer.valueOf(actualApprovedEnrollmentsNumber)); setApprovationRatio((enrollmentsNumber == 0) ? 0 : (double) approvedEnrollmentsNumber / enrollmentsNumber); setArithmeticMean((approvedEnrollmentsNumber == 0) ? 0 : (double) totalGrade / approvedEnrollmentsNumber); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1eab5569eea9b71f208c0d25e856d5bdea5a3e8c/Registration.java/buggy/src/net/sourceforge/fenixedu/domain/student/Registration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4604,
12053,
7112,
8541,
1876,
686,
16368,
15312,
2047,
3896,
12,
6494,
1338,
8351,
3210,
5593,
13,
288,
202,
202,
474,
570,
2693,
1346,
1854,
273,
374,
31,
202,
202,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
12053,
7112,
8541,
1876,
686,
16368,
15312,
2047,
3896,
12,
6494,
1338,
8351,
3210,
5593,
13,
288,
202,
202,
474,
570,
2693,
1346,
1854,
273,
374,
31,
202,
202,
474,
... |
format.getRecordReader(fs, splits[j], job, reporter); | format.getRecordReader(localFs, splits[j], job, reporter); | public void testFormat() throws Exception { JobConf job = new JobConf(conf); FileSystem fs = FileSystem.getNamed("local", conf); Path dir = new Path(System.getProperty("test.build.data",".") + "/mapred"); Path file = new Path(dir, "test.txt"); Reporter reporter = new Reporter() { public void setStatus(String status) throws IOException {} public void progress() throws IOException {} }; int seed = new Random().nextInt(); //LOG.info("seed = "+seed); Random random = new Random(seed); fs.delete(dir); job.setInputPath(dir); // for a variety of lengths for (int length = 0; length < MAX_LENGTH; length+= random.nextInt(MAX_LENGTH/10)+1) { //LOG.info("creating; entries = " + length); // create a file with length entries Writer writer = new OutputStreamWriter(fs.create(file)); try { for (int i = 0; i < length; i++) { writer.write(Integer.toString(i)); writer.write("\n"); } } finally { writer.close(); } // try splitting the file in a variety of sizes InputFormat format = new TextInputFormat(); LongWritable key = new LongWritable(); Text value = new Text(); for (int i = 0; i < 3; i++) { int numSplits = random.nextInt(MAX_LENGTH/20)+1; //LOG.info("splitting: requesting = " + numSplits); FileSplit[] splits = format.getSplits(fs, job, numSplits); //LOG.info("splitting: got = " + splits.length); // check each split BitSet bits = new BitSet(length); for (int j = 0; j < splits.length; j++) { RecordReader reader = format.getRecordReader(fs, splits[j], job, reporter); try { int count = 0; while (reader.next(key, value)) { int v = Integer.parseInt(value.toString()); // if (bits.get(v)) { // LOG.info("splits["+j+"]="+splits[j]+" : " + v); // LOG.info("@"+reader.getPos()); // } assertFalse("Key in multiple partitions.", bits.get(v)); bits.set(v); count++; } //LOG.info("splits["+j+"]="+splits[j]+" count=" + count); } finally { reader.close(); } } assertEquals("Some keys in no partition.", length, bits.cardinality()); } } } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/48264173e88fdcd9b42c4d801117c3b7cb289242/TestTextInputFormat.java/clean/src/test/org/apache/hadoop/mapred/TestTextInputFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1630,
1435,
1216,
1185,
288,
565,
3956,
3976,
1719,
273,
394,
3956,
3976,
12,
3923,
1769,
565,
10931,
2662,
273,
10931,
18,
588,
7604,
2932,
3729,
3113,
2195,
1769,
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,
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,
918,
1842,
1630,
1435,
1216,
1185,
288,
565,
3956,
3976,
1719,
273,
394,
3956,
3976,
12,
3923,
1769,
565,
10931,
2662,
273,
10931,
18,
588,
7604,
2932,
3729,
3113,
2195,
1769,
565,
... |
aText.setText( G2GuiResources.getString( "S_UNAVAILABLE" ) ); aText.setEnabled( false ); | combo.setText( G2GuiResources.getString( "S_UNAVAILABLE" ) ); combo.setEnabled( false ); | protected Text createInputBox( Composite group, String aString ) { /* the box label */ GridData gridData = new GridData( GridData.HORIZONTAL_ALIGN_FILL ); Label label = new Label( group, SWT.NONE ); label.setLayoutData( gridData ); label.setText( aString ); /* the box */ gridData = new GridData( GridData.FILL_HORIZONTAL ); Text aText = new Text( group, SWT.SINGLE | SWT.BORDER ); aText.setLayoutData( gridData ); aText.setFont( JFaceResources.getTextFont() ); aText.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { tab.setSearchButton(); if ( e.character == SWT.CR ) performSearch(); } } ); if ( core.getNetworkInfoMap().getEnabledAndSearchable() == 0 ) { aText.setText( G2GuiResources.getString( "S_UNAVAILABLE" ) ); aText.setEnabled( false ); } return aText; } | 11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/2f7fb9635cf8bcfa11f6451d34ffa13b63a417fe/Search.java/clean/g2gui/src/net/mldonkey/g2gui/view/search/Search.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3867,
752,
1210,
3514,
12,
14728,
1041,
16,
514,
279,
780,
262,
288,
3639,
1748,
326,
3919,
1433,
1195,
3639,
7145,
751,
3068,
751,
273,
394,
7145,
751,
12,
7145,
751,
18,
44,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3867,
752,
1210,
3514,
12,
14728,
1041,
16,
514,
279,
780,
262,
288,
3639,
1748,
326,
3919,
1433,
1195,
3639,
7145,
751,
3068,
751,
273,
394,
7145,
751,
12,
7145,
751,
18,
44,
203... |
fis.close(); | static String lookUpFactoryClassName(String factoryId, String propertiesFilename, String fallbackClassName) { SecuritySupport ss = SecuritySupport.getInstance(); // Use the system property first try { String systemProp = ss.getSystemProperty(factoryId); if (systemProp != null) { debugPrintln("found system property, value=" + systemProp); return systemProp; } } catch (SecurityException se) { // Ignore and continue w/ next location } // Try to read from propertiesFilename, or // $java.home/lib/xalan.properties String factoryClassName = null; // no properties file name specified; use // $JAVA_HOME/lib/xalan.properties: if (propertiesFilename == null) { File propertiesFile = null; boolean propertiesFileExists = false; try { String javah = ss.getSystemProperty("java.home"); propertiesFilename = javah + File.separator + "lib" + File.separator + DEFAULT_PROPERTIES_FILENAME; propertiesFile = new File(propertiesFilename); propertiesFileExists = ss.getFileExists(propertiesFile); } catch (SecurityException e) { // try again... fLastModified = -1; fXalanProperties = null; } synchronized (ObjectFactory.class) { boolean loadProperties = false; try { // file existed last time if(fLastModified >= 0) { if(propertiesFileExists && (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) { loadProperties = true; } else { // file has stopped existing... if(!propertiesFileExists) { fLastModified = -1; fXalanProperties = null; } // else, file wasn't modified! } } else { // file has started to exist: if(propertiesFileExists) { loadProperties = true; fLastModified = ss.getLastModified(propertiesFile); } // else, nothing's changed } if(loadProperties) { // must never have attempted to read xalan.properties // before (or it's outdeated) fXalanProperties = new Properties(); FileInputStream fis = ss.getFileInputStream(propertiesFile); fXalanProperties.load(fis); fis.close(); } } catch (Exception x) { fXalanProperties = null; fLastModified = -1; // assert(x instanceof FileNotFoundException // || x instanceof SecurityException) // In both cases, ignore and continue w/ next location } } if(fXalanProperties != null) { factoryClassName = fXalanProperties.getProperty(factoryId); } } else { try { FileInputStream fis = ss.getFileInputStream(new File(propertiesFilename)); Properties props = new Properties(); props.load(fis); fis.close(); factoryClassName = props.getProperty(factoryId); } catch (Exception x) { // assert(x instanceof FileNotFoundException // || x instanceof SecurityException) // In both cases, ignore and continue w/ next location } } if (factoryClassName != null) { debugPrintln("found in " + propertiesFilename + ", value=" + factoryClassName); return factoryClassName; } // Try Jar Service Provider Mechanism return findJarServiceProviderName(factoryId); } // lookUpFactoryClass(String,String):String | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/8715306de914fc3a40ff4ab45e0b32a46907ce9a/ObjectFactory.java/buggy/src/org/apache/xml/serializer/ObjectFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
2324,
1211,
1733,
3834,
12,
780,
3272,
548,
16,
4766,
7734,
514,
1790,
5359,
16,
4766,
7734,
514,
5922,
3834,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
2324,
1211,
1733,
3834,
12,
780,
3272,
548,
16,
4766,
7734,
514,
1790,
5359,
16,
4766,
7734,
514,
5922,
3834,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1... | |
RubyModule rbModule = this; | RubyModule rbModule = this; | public RubyArray m_class_variables() { RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbModule = this; if (isSingleton()) { rbModule = ((RubyObject) rbModule.getInstanceVar("__atached__")).getClassVarSingleton(); } while (rbModule != null) { if (rbModule.getInstanceVariables() != null) { Iterator iter = rbModule.getInstanceVariables().keySet().iterator(); while (iter.hasNext()) { RubyId id = (RubyId) iter.next(); if (id.isClassId()) { RubyString kval = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(kval).isFalse()) { ary.push(kval); } } } } rbModule = rbModule.getSuperClass(); } return ary; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
1076,
312,
67,
1106,
67,
7528,
1435,
288,
202,
202,
54,
10340,
1076,
11841,
273,
19817,
1076,
18,
81,
67,
2704,
1076,
12,
588,
54,
10340,
10663,
202,
202,
54,
10340,
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,
225,
202,
482,
19817,
1076,
312,
67,
1106,
67,
7528,
1435,
288,
202,
202,
54,
10340,
1076,
11841,
273,
19817,
1076,
18,
81,
67,
2704,
1076,
12,
588,
54,
10340,
10663,
202,
202,
54,
10340,
31... |
if ((active0 & 0x80000000L) != 0L) return jjStopAtPos(1, 31); else if ((active0 & 0x200000000L) != 0L) return jjStopAtPos(1, 33); | if ((active0 & 0x100000000L) != 0L) return jjStopAtPos(1, 32); | private final int jjMoveStringLiteralDfa1_0(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0); return 1; } switch(curChar) { case 35: if ((active0 & 0x200L) != 0L) return jjStopAtPos(1, 9); break; case 38: if ((active0 & 0x10000000L) != 0L) return jjStopAtPos(1, 28); break; case 42: if ((active0 & 0x800L) != 0L) return jjStartNfaWithStates_0(1, 11, 0); break; case 61: if ((active0 & 0x80000000L) != 0L) return jjStopAtPos(1, 31); else if ((active0 & 0x200000000L) != 0L) return jjStopAtPos(1, 33); else if ((active0 & 0x400000000L) != 0L) return jjStopAtPos(1, 34); else if ((active0 & 0x800000000L) != 0L) return jjStopAtPos(1, 35); break; case 97: return jjMoveStringLiteralDfa2_0(active0, 0x200000L); case 101: return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L); case 102: if ((active0 & 0x10000000000L) != 0L) return jjStartNfaWithStates_0(1, 40, 11); break; case 108: return jjMoveStringLiteralDfa2_0(active0, 0x60000000000L); case 110: return jjMoveStringLiteralDfa2_0(active0, 0xc000000000L); case 114: return jjMoveStringLiteralDfa2_0(active0, 0x100000L); case 116: return jjMoveStringLiteralDfa2_0(active0, 0x100000000000L); case 124: if ((active0 & 0x20000000L) != 0L) return jjStopAtPos(1, 29); break; default : break; } return jjStartNfa_0(0, active0);} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/983675edbbab0e381643fec9c2a3e765c2f88830/ParserTokenManager.java/buggy/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
5748,
2695,
20,
15329,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
5748,
2695,
20,
15329,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
1... |
return (x < 0) ? Double.NaN : Math.log(x); | return (x < 0) ? Double.NaN : Math.log(x); | private double js_log(double x) { // Java's log(<0) = -Infinity; we need NaN return (x < 0) ? Double.NaN : Math.log(x); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/clean/js/rhino/src/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
3828,
67,
1330,
12,
9056,
619,
13,
288,
540,
368,
5110,
1807,
613,
12,
32,
20,
13,
273,
300,
382,
7850,
31,
732,
1608,
10180,
3639,
327,
261,
92,
411,
374,
13,
692,
3698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
1645,
3828,
67,
1330,
12,
9056,
619,
13,
288,
540,
368,
5110,
1807,
613,
12,
32,
20,
13,
273,
300,
382,
7850,
31,
732,
1608,
10180,
3639,
327,
261,
92,
411,
374,
13,
692,
3698,
... |
if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } | LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; | public byte[] getBytes(int columnIndex) throws SQLException { if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); //If the data is already binary then just return it if (binaryCursor) return this_row[columnIndex - 1]; if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays return PGbytea.toBytes(getString(columnIndex)); } else { //Version 7.1 and earlier supports LargeObjects for byte arrays wasNullFlag = (this_row[columnIndex - 1] == null); // Handle OID's as BLOBS if (!wasNullFlag) { if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } } } return null; } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/512a3aef36591386640f34866c1acbe58c20ca6e/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... |
else if (str.indexOf (": | else if (str.indexOf (": | public static String fixURI (String str) { boolean bWindows = (System.getProperty ("os.name").indexOf ("Windows") != -1) ? true : false; char ch0 = str.charAt (0); char ch1 = str.charAt (1); if (bWindows && str.startsWith ("file://")) { // Replace "file://" with "file:/" on Windows machines str = "file:/" + str.substring (7); } else if (ch0 == java.io.File.separatorChar || ch1 == ':') { // It's a full path without "file://" str = (bWindows ? "file:/" : "file://") + str; } else if (str.indexOf ("://") == -1 && ch1 != ':') { // Relative path was specified, so prepend portal base dir str = (bWindows ? "file:/" : "file://") + GenericPortalBean.getPortalBaseDir () + str; } // Handle platform-dependent strings str = str.replace (java.io.File.separatorChar, '/'); return str; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/a05814c6c8427262050215750ad1fa797cea5145/UtilitiesBean.java/clean/source/org/jasig/portal/UtilitiesBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
2917,
3098,
261,
780,
609,
13,
225,
288,
565,
1250,
324,
10399,
273,
261,
3163,
18,
588,
1396,
7566,
538,
18,
529,
20387,
31806,
7566,
10399,
7923,
480,
300,
21,
13,
692... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2917,
3098,
261,
780,
609,
13,
225,
288,
565,
1250,
324,
10399,
273,
261,
3163,
18,
588,
1396,
7566,
538,
18,
529,
20387,
31806,
7566,
10399,
7923,
480,
300,
21,
13,
692... |
public double jsFunction_valueOf() { | private double jsFunction_valueOf() { | public double jsFunction_valueOf() { return doubleValue; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8584f9aa43e87015068b51a9cd8ce3a893b2449a/NativeNumber.java/buggy/js/rhino/org/mozilla/javascript/NativeNumber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
3828,
2083,
67,
1132,
951,
1435,
288,
3639,
327,
11868,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
3828,
2083,
67,
1132,
951,
1435,
288,
3639,
327,
11868,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void import_statement() throws RecognitionException { String name = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:251:17: ( 'import' opt_eol name= dotted_name ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:251:17: 'import' opt_eol name= dotted_name ( ';' )? opt_eol { match(input,17,FOLLOW_17_in_import_statement207); following.push(FOLLOW_opt_eol_in_import_statement209); opt_eol(); following.pop(); following.push(FOLLOW_dotted_name_in_import_statement213); name=dotted_name(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:251:51: ( ';' )? int alt6=2; int LA6_0 = input.LA(1); if ( LA6_0==15 ) { alt6=1; } else if ( LA6_0==-1||LA6_0==EOL||(LA6_0>=17 && LA6_0<=20)||LA6_0==26||LA6_0==28 ) { alt6=2; } else { NoViableAltException nvae = new NoViableAltException("251:51: ( \';\' )?", 6, 0, input); throw nvae; } switch (alt6) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:251:51: ';' { match(input,15,FOLLOW_15_in_import_statement215); } break; } following.push(FOLLOW_opt_eol_in_import_statement218); opt_eol(); following.pop(); packageDescr.addImport( name ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1930,
67,
11516,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1930,
67,
11516,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
6... | ||
private synchronized void updateStores() { if (fSession == null) { getSession(); } if (fStores != null) { closeStores(); } ServerArray prefs = ServerArray.GetMaster(); fStores = new ViewedStore[prefs.size()]; for (int i=0; i<prefs.size(); i++) { fStores[i] = createStore(i); } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/2769f32da7bc2e7ccdde98f47e0c777769fb9113/StoreFactory.java/buggy/grendel/sources/grendel/ui/StoreFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3852,
918,
1089,
13125,
1435,
288,
565,
309,
261,
74,
2157,
422,
446,
13,
288,
1377,
7183,
5621,
565,
289,
565,
309,
261,
74,
13125,
480,
446,
13,
288,
1377,
1746,
13125,
5621,
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,
282,
3238,
3852,
918,
1089,
13125,
1435,
288,
565,
309,
261,
74,
2157,
422,
446,
13,
288,
1377,
7183,
5621,
565,
289,
565,
309,
261,
74,
13125,
480,
446,
13,
288,
1377,
1746,
13125,
5621,
56... | ||
Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUserObject(); if (o instanceof SocietyComponent) societyNames.add(((SocietyComponent)o).getSocietyName()); } | Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUserObject(); if (o instanceof SocietyComponent) societyNames.add(((SocietyComponent)o).getSocietyName()); | private void initSocietyNames() { // initialize known society names Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUserObject(); if (o instanceof SocietyComponent) societyNames.add(((SocietyComponent)o).getSocietyName()); } } } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/f94af58ea26e45e652a0675a1b989a8ae8feb7d3/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
55,
1882,
14369,
1557,
1435,
288,
1377,
368,
4046,
4846,
272,
1882,
14369,
1257,
1377,
13864,
2199,
273,
1365,
18,
5979,
3759,
21847,
5621,
1377,
1323,
261,
4690,
18,
5332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
55,
1882,
14369,
1557,
1435,
288,
1377,
368,
4046,
4846,
272,
1882,
14369,
1257,
1377,
13864,
2199,
273,
1365,
18,
5979,
3759,
21847,
5621,
1377,
1323,
261,
4690,
18,
5332,... |
address = to.address; parameters = to.parameters; | public From(To to) { super(NAME); address = to.address; parameters = to.parameters; } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/From.java/buggy/src/gov/nist/javax/sip/header/From.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6338,
12,
774,
358,
13,
288,
202,
202,
9565,
12,
1985,
1769,
202,
202,
2867,
273,
358,
18,
2867,
31,
202,
202,
3977,
273,
358,
18,
3977,
31,
202,
97,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6338,
12,
774,
358,
13,
288,
202,
202,
9565,
12,
1985,
1769,
202,
202,
2867,
273,
358,
18,
2867,
31,
202,
202,
3977,
273,
358,
18,
3977,
31,
202,
97,
2,
-100,
-100,
-100,
... | |
TasksUiUtil.openEditor(TasksUiPlugin.getTaskListManager().getTaskList().getActiveTask(), false); | TasksUiUtil.refreshAndOpenTaskListElement((TasksUiPlugin.getTaskListManager().getTaskList() .getActiveTask())); | protected Composite createStatusComposite(Composite container) { activeTaskLabel = new Hyperlink(container, SWT.LEFT); activeTaskLabel.setText(LABEL_NO_ACTIVE); ITask activeTask = TasksUiPlugin.getTaskListManager().getTaskList().getActiveTask(); if (activeTask != null) { indicateActiveTask(activeTask); } activeTaskLabel.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { if (TaskListFilteredTree.super.filterText.getText().length() > 0) { TaskListFilteredTree.super.filterText.setText(""); TaskListFilteredTree.this.textChanged(); } if (TaskListView.getFromActivePerspective().getDrilledIntoCategory() != null) { TaskListView.getFromActivePerspective().goUpToRoot(); }// TaskListView.getFromActivePerspective().selectedAndFocusTask(// TasksUiPlugin.getTaskListManager().getTaskList().getActiveTask()// ); TasksUiUtil.openEditor(TasksUiPlugin.getTaskListManager().getTaskList().getActiveTask(), false); } }); return activeTaskLabel; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/fb60aa15223f291d1ea512f3c364deacd0617e5f/TaskListFilteredTree.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14728,
752,
1482,
9400,
12,
9400,
1478,
13,
288,
202,
202,
3535,
2174,
2224,
273,
394,
18274,
1232,
12,
3782,
16,
348,
8588,
18,
10066,
1769,
202,
202,
3535,
2174,
2224,
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,
225,
202,
1117,
14728,
752,
1482,
9400,
12,
9400,
1478,
13,
288,
202,
202,
3535,
2174,
2224,
273,
394,
18274,
1232,
12,
3782,
16,
348,
8588,
18,
10066,
1769,
202,
202,
3535,
2174,
2224,
18,
... |
public void visitPUTFIELD(PUTFIELD obj) { if (REDUNDANT_LOAD_ELIMINATION) { ValueNumberFrame frame = getFrame(); try { XField xfield = Lookup.findXField(obj, getCPG()); if (xfield != null) { InstanceField instanceField = (InstanceField) xfield; int numWordsConsumed = getNumWordsConsumed(obj); ValueNumber[] inputValueList = popInputValues(numWordsConsumed); ValueNumber reference = inputValueList[0]; ValueNumber[] loadedValue = new ValueNumber[inputValueList.length - 1]; System.arraycopy(inputValueList, 1, loadedValue, 0, inputValueList.length - 1); // Kill all previous loads of the same field, // in case there is aliasing we don't know about frame.killLoadsOfField(instanceField); // Forward substitution frame.addAvailableLoad(new AvailableLoad(reference, instanceField), loadedValue); return; } } catch (ClassNotFoundException e) { lookupFailureCallback.reportMissingClass(e); } } handleNormalInstruction(obj); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/c86b559c20e7c4de9f754b89437b3482053d7af4/ValueNumberFrameModelingVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/ValueNumberFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
11658,
4762,
6776,
12,
4762,
6776,
2603,
15329,
202,
202,
430,
12,
5879,
5240,
6856,
67,
7783,
67,
41,
2053,
6236,
2689,
15329,
1082,
202,
620,
1854,
3219,
3789,
33,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
11658,
4762,
6776,
12,
4762,
6776,
2603,
15329,
202,
202,
430,
12,
5879,
5240,
6856,
67,
7783,
67,
41,
2053,
6236,
2689,
15329,
1082,
202,
620,
1854,
3219,
3789,
33,
588,
... | ||
System.err.println("GET SUBFOLDERS OF "+parentFolder); | public Vector getSubFolders(CmsFolder parentFolder) throws CmsException { Vector folders=new Vector(); CmsFolder folder=null; ResultSet res =null; PreparedStatement statement = null; System.err.println("GET SUBFOLDERS OF "+parentFolder); try { // get all subfolders statement = m_pool.getPreparedStatement(C_RESOURCES_GET_SUBFOLDER_KEY); statement.setInt(1,parentFolder.getResourceId()); res = statement.executeQuery(); System.err.println("+++ result"); System.err.println(res); // create new folder objects while ( res.next() ) { int resId=res.getInt(C_RESOURCES_RESOURCE_ID); int parentId=res.getInt(C_RESOURCES_PARENT_ID); String resName=res.getString(C_RESOURCES_RESOURCE_NAME); int resType= res.getInt(C_RESOURCES_RESOURCE_TYPE); int resFlags=res.getInt(C_RESOURCES_RESOURCE_FLAGS); int userId=res.getInt(C_RESOURCES_USER_ID); int groupId= res.getInt(C_RESOURCES_GROUP_ID); int projectID=res.getInt(C_RESOURCES_PROJECT_ID); int fileId=res.getInt(C_RESOURCES_FILE_ID); int accessFlags=res.getInt(C_RESOURCES_ACCESS_FLAGS); int state= res.getInt(C_RESOURCES_STATE); int lockedBy= res.getInt(C_RESOURCES_LOCKED_BY); long created=res.getTimestamp(C_RESOURCES_DATE_CREATED).getTime(); long modified=res.getTimestamp(C_RESOURCES_DATE_LASTMODIFIED).getTime(); int modifiedBy=res.getInt(C_RESOURCES_LASTMODIFIED_BY); folder = new CmsFolder(resId,parentId,fileId,resName,resType,resFlags,userId, groupId,projectID,accessFlags,state,lockedBy,created, modified,modifiedBy); folders.addElement(folder); } res.close(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"] "+e.getMessage(),CmsException.C_SQL_ERROR, e); } catch( Exception exc ) { throw new CmsException("getSubFolders "+exc.getMessage(), CmsException.C_UNKNOWN_EXCEPTION, exc); }finally { if( statement != null) { m_pool.putPreparedStatement(C_RESOURCES_GET_SUBFOLDER_KEY, statement); } } return SortEntrys(folders); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/85ec92d9e1a4d1c67bf796eee95ea555c2cd1ccb/CmsDbAccess.java/buggy/src/com/opencms/file/genericSql/CmsDbAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
5589,
7040,
14885,
12,
4747,
3899,
982,
3899,
13,
540,
1216,
11228,
288,
540,
5589,
9907,
33,
2704,
5589,
5621,
540,
2149,
3899,
3009,
33,
2011,
31,
540,
10842,
400,
273,
2011,
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,
3196,
1071,
5589,
7040,
14885,
12,
4747,
3899,
982,
3899,
13,
540,
1216,
11228,
288,
540,
5589,
9907,
33,
2704,
5589,
5621,
540,
2149,
3899,
3009,
33,
2011,
31,
540,
10842,
400,
273,
2011,
31,... | |
return procedureRs != null && procedureRs.size( ) > 0 && ( DbType.ALL_STRING.equalsIgnoreCase( dbtype ) || DbType.PROCEDURE_STRING.equalsIgnoreCase( dbtype ) ); | return procedureRs!=null&& procedureRs.size()>0 && (DbType.ALL_STRING.equalsIgnoreCase(dbtype)||DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype) ); | private boolean needToCreateProcedureNode( String dbtype, ArrayList procedureRs ) { return procedureRs != null && procedureRs.size( ) > 0 && ( DbType.ALL_STRING.equalsIgnoreCase( dbtype ) || DbType.PROCEDURE_STRING.equalsIgnoreCase( dbtype ) ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c8eac2b2c43b133631e6860e459396481770121d/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1608,
774,
1684,
17213,
907,
12,
514,
1319,
723,
16,
1082,
202,
19558,
12131,
18880,
262,
202,
95,
202,
202,
2463,
12131,
18880,
480,
446,
9506,
202,
10,
10,
12131,
18880... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1608,
774,
1684,
17213,
907,
12,
514,
1319,
723,
16,
1082,
202,
19558,
12131,
18880,
262,
202,
95,
202,
202,
2463,
12131,
18880,
480,
446,
9506,
202,
10,
10,
12131,
18880... |
public void testCallableStatementExec5() throws Exception { CallableStatement cstmt = con.prepareCall("eXeC sp_who"); makeTestTables(cstmt); makeObjects(cstmt, 8); ResultSet rs = cstmt.executeQuery(); dump(rs); cstmt.close(); rs.close(); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/f23675b413a471c068f08551f90854f46440ea89/CallableStatementTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/CallableStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
11452,
3406,
1905,
25,
1435,
15069,
503,
95,
11452,
3406,
71,
10589,
33,
591,
18,
9366,
1477,
2932,
73,
60,
73,
39,
1752,
67,
3350,
83,
8863,
6540,
4709,
6905,
12,
71,
1058... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
11452,
3406,
1905,
25,
1435,
15069,
503,
95,
11452,
3406,
71,
10589,
33,
591,
18,
9366,
1477,
2932,
73,
60,
73,
39,
1752,
67,
3350,
83,
8863,
6540,
4709,
6905,
12,
71,
1058... | ||
if (f.exists()) { try { s = new ObjectInputStream(new BufferedInputStream( new FileInputStream(f))); | if (f.exists()) { try { s = new ObjectInputStream( new BufferedInputStream(new FileInputStream(f))); | private DisplayFilter loadDisplayFilter(String ident) { DisplayFilter d = null; ObjectInputStream s = null; File f = new File(SettingsManager.getInstance().getSettingsDirectory() + File.separator + ident + ChainsawConstants.SETTINGS_EXTENSION); if (f.exists()) { try { s = new ObjectInputStream(new BufferedInputStream( new FileInputStream(f))); d = (DisplayFilter) s.readObject(); } catch (IOException ioe) { ioe.printStackTrace(); } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(); } finally { if (s != null) { try { s.close(); } catch (IOException ioe) { ioe.printStackTrace(); } } } } if (d == null) { d = new DisplayFilter(ident); } return d; } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/09eb142803eecc3b138902c78e5d7fa2148d79c8/LogUI.java/buggy/src/java/org/apache/log4j/chainsaw/LogUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
9311,
1586,
1262,
4236,
1586,
12,
780,
3390,
13,
225,
288,
565,
9311,
1586,
302,
273,
446,
31,
565,
22726,
272,
273,
446,
31,
565,
1387,
284,
273,
394,
1387,
12,
2628,
1318,
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,
282,
3238,
9311,
1586,
1262,
4236,
1586,
12,
780,
3390,
13,
225,
288,
565,
9311,
1586,
302,
273,
446,
31,
565,
22726,
272,
273,
446,
31,
565,
1387,
284,
273,
394,
1387,
12,
2628,
1318,
18,
... |
new MockConnectionMockBaseUrlCacher(mcus, TEST_URL); | new MockConnectionMockBaseUrlCacher(mau, TEST_URL); | public void testRedirectChain() throws Exception { String redTo1 = "http://2.2/a"; String redTo2 = "http://2.2/b"; String redTo = "http://somewhere.else/foo"; MockConnectionMockBaseUrlCacher muc = new MockConnectionMockBaseUrlCacher(mcus, TEST_URL); PermissionMap map = new PermissionMap(); map.putStatus(TEST_URL, PermissionMap.PERMISSION_OK); map.putStatus(redTo1, PermissionMap.PERMISSION_OK); map.putStatus(redTo, PermissionMap.PERMISSION_OK); muc.setPermissionMap(map); muc.addConnection(makeConn(301, "Moved to Spain", redTo1)); muc.addConnection(makeConn(301, "Moved to Spain", redTo2)); muc.addConnection(makeConn(301, "Moved to Spain", redTo)); muc.addConnection(makeConn(200, "Ok", null, "bar")); muc.setRedirectScheme(UrlCacher.REDIRECT_SCHEME_STORE_ALL_IN_SPEC); mau.addUrlToBeCached(redTo1); mau.addUrlToBeCached(redTo2); mau.addUrlToBeCached(redTo); InputStream is = muc.getUncachedInputStream(); CIProperties p = muc.getUncachedProperties(); assertNull(p.getProperty("location")); assertEquals(redTo1, p.getProperty(CachedUrl.PROPERTY_REDIRECTED_TO)); assertEquals(redTo, p.getProperty(CachedUrl.PROPERTY_CONTENT_URL)); assertReaderMatchesString("bar", new InputStreamReader(is)); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1daae17bba467f29e3575dfd082f58a6511a6679/TestBaseUrlCacher.java/clean/test/src/org/lockss/plugin/base/TestBaseUrlCacher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5961,
3893,
1435,
1216,
1185,
288,
565,
514,
1755,
774,
21,
273,
315,
2505,
2207,
22,
18,
22,
19,
69,
14432,
565,
514,
1755,
774,
22,
273,
315,
2505,
2207,
22,
18,
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,
282,
1071,
918,
1842,
5961,
3893,
1435,
1216,
1185,
288,
565,
514,
1755,
774,
21,
273,
315,
2505,
2207,
22,
18,
22,
19,
69,
14432,
565,
514,
1755,
774,
22,
273,
315,
2505,
2207,
22,
18,
22... |
IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); | IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); | protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisEjbObject) { // The Java inheritance structure must match the EJB inheritance structure. // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. // B could be a grandchild (or great-grandchild or ...) of A. if(bean == null) { return; } EnterpriseBean supertype = getSuperType(bean); JavaClass parentEjbObject = null; if (supertype != null) { parentEjbObject = supertype.getEjbClass(); // EJBObject a Xchild of parent EJBObject (X = child, grandchild, great-grandchild, etc.) try { ValidationRuleUtility.isValidType(thisEjbObject); ValidationRuleUtility.isValidType(parentEjbObject); if (!ValidationRuleUtility.isAssignableFrom(thisEjbObject, parentEjbObject)) { String[] msgParm = new String[] { thisEjbObject.getQualifiedName(), parentEjbObject.getQualifiedName()}; IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2103, IEJBValidationContext.ERROR, bean, thisEjbObject, msgParm, this); vc.addMessage(message); } } catch (InvalidInputException e) { String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); vc.addMessage(message); } } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/ABeanClassVRule.java/clean/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABeanClassVRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1954,
5736,
697,
38,
12,
8732,
8877,
4354,
1042,
12802,
16,
26919,
3381,
3931,
16,
29491,
333,
41,
10649,
921,
13,
288,
202,
202,
759,
1021,
5110,
16334,
3695,
1297,
845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
5736,
697,
38,
12,
8732,
8877,
4354,
1042,
12802,
16,
26919,
3381,
3931,
16,
29491,
333,
41,
10649,
921,
13,
288,
202,
202,
759,
1021,
5110,
16334,
3695,
1297,
845,
... |
} | public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAKey)) { return false; } final RSAKey that = (RSAKey) obj; return n.equals(that.getModulus()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/GnuRSAKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1606,
12,
6385,
1033,
1081,
13,
225,
288,
565,
309,
261,
2603,
422,
446,
13,
1377,
288,
3639,
327,
629,
31,
1850,
309,
16051,
12,
2603,
1276,
13470,
653,
3719,
1377,
288,
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,
282,
1071,
1250,
1606,
12,
6385,
1033,
1081,
13,
225,
288,
565,
309,
261,
2603,
422,
446,
13,
1377,
288,
3639,
327,
629,
31,
1850,
309,
16051,
12,
2603,
1276,
13470,
653,
3719,
1377,
288,
36... | |
long waitTime = Math.max(500L, period/10); | long waitTime = 500L; | public void run() { ThreadCategory.setPrefix(LOG4J_CATEGORY); Category log = ThreadCategory.getInstance(getClass()); log.info("Vacuumd scheduling started"); long now = System.currentTimeMillis(); long period = VacuumdConfigFactory.getInstance().getPeriod(); log.info("Vacuumd sleeping until time to execute statements"); long waitTime = Math.max(500L, period/10); while(!m_stopped && ((now - m_startTime) < period)) { try { Thread.sleep(waitTime); } catch (InterruptedException e) { // FIXME: what do I do here? } } log.info("Vacuumd beginning to execute statements"); if (!m_stopped) { String[] stmts = VacuumdConfigFactory.getInstance().getStatements(); for(int i = 0; i < stmts.length; i++) { runUpdate(stmts[i]); } } } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/9272d2f38e2cc3e30cd410f29671e500d2b194fa/Vacuumd.java/buggy/src/services/org/opennms/netmgt/vacuumd/Vacuumd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
4884,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
613,
18,
1376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
3639,
4884,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
613,
18,
1376... |
imageList = new ImageList (); | imageList = new ImageList (style & SWT.RIGHT_TO_LEFT); | void _setImage (Image image) { if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { OS.SendMessage (handle, OS.BCM_SETIMAGELIST, 0, 0); if (imageList != null) imageList.dispose (); imageList = null; if (image != null) { imageList = new ImageList (); imageList.add (image); BUTTON_IMAGELIST buttonImageList = new BUTTON_IMAGELIST (); buttonImageList.himl = imageList.getHandle (); if ((style & SWT.LEFT) != 0) buttonImageList.uAlign = OS.BUTTON_IMAGELIST_ALIGN_LEFT; if ((style & SWT.CENTER) != 0) buttonImageList.uAlign = OS.BUTTON_IMAGELIST_ALIGN_CENTER; if ((style & SWT.RIGHT) != 0) buttonImageList.uAlign = OS.BUTTON_IMAGELIST_ALIGN_RIGHT; TCHAR buffer = new TCHAR (getCodePage (), "", true); OS.SetWindowText (handle, buffer); OS.SendMessage (handle, OS.BCM_SETIMAGELIST, 0, buttonImageList); } else { TCHAR buffer = new TCHAR (getCodePage (), text, true); OS.SetWindowText (handle, buffer); OS.SendMessage (handle, OS.BCM_SETIMAGELIST, 0, 0); } } else { if (image2 != null) image2.dispose (); image2 = null; int hImage = 0, imageBits = 0, fImageType = 0; if (image != null) { switch (image.type) { case SWT.BITMAP: { Rectangle rect = image.getBounds (); ImageData data = image.getImageData (); switch (data.getTransparencyType ()) { case SWT.TRANSPARENCY_PIXEL: if (rect.width <= ICON_WIDTH && rect.height <= ICON_HEIGHT) { image2 = new Image (display, data, data.getTransparencyMask ()); hImage = image2.handle; imageBits = OS.BS_ICON; fImageType = OS.IMAGE_ICON; break; } //FALL THROUGH case SWT.TRANSPARENCY_ALPHA: image2 = new Image (display, rect.width, rect.height); GC gc = new GC (image2); gc.setBackground (getBackground ()); gc.fillRectangle (rect); gc.drawImage (image, 0, 0); gc.dispose (); hImage = image2.handle; imageBits = OS.BS_BITMAP; fImageType = OS.IMAGE_BITMAP; break; case SWT.TRANSPARENCY_NONE: hImage = image.handle; imageBits = OS.BS_BITMAP; fImageType = OS.IMAGE_BITMAP; break; } break; } case SWT.ICON: { hImage = image.handle; imageBits = OS.BS_ICON; fImageType = OS.IMAGE_ICON; break; } } /* * Feature in Windows. The button control mirrors its image when the * flag WS_EX_LAYOUTRTL is set. This behaviour is not desirable in SWT. * The fix is to set a mirrored version of real image in the button. */ if ((style & SWT.RIGHT_TO_LEFT) != 0) { if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (4, 10)) { Rectangle rect = image.getBounds (); int hDC = OS.GetDC (handle); int dstHdc = OS.CreateCompatibleDC (hDC); int hBitmap = OS.CreateCompatibleBitmap (hDC, rect.width, rect.height); int oldBitmap = OS.SelectObject (dstHdc, hBitmap); OS.SetLayout (dstHdc, OS.LAYOUT_RTL); if (fImageType == OS.IMAGE_BITMAP) { int srcHdc = OS.CreateCompatibleDC (hDC); int oldSrcBitmap = OS.SelectObject (srcHdc, hImage); OS.SetLayout (dstHdc, 0); OS.BitBlt (dstHdc, 0, 0, rect.width, rect.height, srcHdc, 0, 0, OS.SRCCOPY); OS.SelectObject (srcHdc, oldSrcBitmap); OS.DeleteDC (srcHdc); } else { int newBrush = OS.CreateSolidBrush (getBackgroundPixel ()); int oldBrush = OS.SelectObject (dstHdc, newBrush); OS.PatBlt (dstHdc, 0, 0, rect.width, rect.height, OS.PATCOPY); OS.DrawIconEx (dstHdc, 0, 0, hImage, 0, 0, 0, 0, OS.DI_NORMAL); OS.SelectObject (dstHdc, oldBrush); OS.DeleteObject (newBrush); } OS.SelectObject (dstHdc, oldBitmap); OS.DeleteDC (dstHdc); OS.ReleaseDC (handle, hDC); if (image2 != null) image2.dispose (); image2 = Image.win32_new (display, SWT.BITMAP, hBitmap); imageBits = OS.BS_BITMAP; fImageType = OS.IMAGE_BITMAP; hImage = hBitmap; } } } int newBits = OS.GetWindowLong (handle, OS.GWL_STYLE); int oldBits = newBits; newBits &= ~(OS.BS_BITMAP | OS.BS_ICON); newBits |= imageBits; if (newBits != oldBits) OS.SetWindowLong (handle, OS.GWL_STYLE, newBits); OS.SendMessage (handle, OS.BM_SETIMAGE, fImageType, hImage); }} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/0be85fb152998df6206f109dfea816fb7584e122/Button.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
389,
542,
2040,
261,
2040,
1316,
13,
288,
202,
430,
261,
4618,
18,
4208,
1268,
48,
1578,
67,
26976,
916,
1545,
1666,
597,
5932,
18,
2520,
3371,
1315,
351,
329,
1832,
13,
288,
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,
918,
389,
542,
2040,
261,
2040,
1316,
13,
288,
202,
430,
261,
4618,
18,
4208,
1268,
48,
1578,
67,
26976,
916,
1545,
1666,
597,
5932,
18,
2520,
3371,
1315,
351,
329,
1832,
13,
288,
202,
202,
... |
public boolean isBackgroundSet() { | public boolean isBackgroundSet() { | public boolean isBackgroundSet() { return background != null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
8199,
694,
1435,
288,
202,
202,
2463,
5412,
480,
446,
31,
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,
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,
1250,
353,
8199,
694,
1435,
288,
202,
202,
2463,
5412,
480,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (null == implementationVendor || !implementationVendor.equals(implementationVendor)) { | if (null == otherImplementationVendor || !implementationVendor.equals(otherImplementationVendor)) { | public Compatibility getCompatibilityWith(final Specification other) { // Specification Name must match if (!specificationTitle.equals(other.getSpecificationTitle())) { return INCOMPATIBLE; } // Available specification version must be >= required final DeweyDecimal specificationVersion = other.getSpecificationVersion(); if (null != specificationVersion) { if (null == specificationVersion || !isCompatible(specificationVersion, specificationVersion)) { return REQUIRE_SPECIFICATION_UPGRADE; } } // Implementation Vendor ID must match final String implementationVendor = other.getImplementationVendor(); if (null != implementationVendor) { if (null == implementationVendor || !implementationVendor.equals(implementationVendor)) { return REQUIRE_VENDOR_SWITCH; } } // Implementation version must be >= required final String implementationVersion = other.getImplementationVersion(); if (null != implementationVersion) { if (null == implementationVersion || !implementationVersion.equals(implementationVersion)) { return REQUIRE_IMPLEMENTATION_CHANGE; } } // This available optional package satisfies the requirements return COMPATIBLE; } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/7ffe5725b354fcb2af5eb239e2c7ab62adba41d6/Specification.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5427,
270,
3628,
336,
21633,
1190,
12,
6385,
20000,
1308,
13,
288,
3639,
368,
20000,
1770,
1297,
845,
3639,
309,
16051,
31543,
4247,
18,
14963,
12,
3011,
18,
588,
8615,
4247,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5427,
270,
3628,
336,
21633,
1190,
12,
6385,
20000,
1308,
13,
288,
3639,
368,
20000,
1770,
1297,
845,
3639,
309,
16051,
31543,
4247,
18,
14963,
12,
3011,
18,
588,
8615,
4247,
1435,
... |
public void reportSummary( OutputStream out ) { Document document = DocumentHelper.createDocument(); | public void reportSummary(OutputStream out) { Document document = DocumentHelper.createDocument(); | public void reportSummary( OutputStream out ) { Document document = DocumentHelper.createDocument(); toElement(document); try { XMLWriter writer = new XMLWriter(out, OutputFormat.createPrettyPrint()); writer.write(document); } catch ( Exception e ) { e.printStackTrace(); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/ProjectStats.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ProjectStats.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2605,
4733,
12,
8962,
596,
262,
288,
377,
4319,
1668,
273,
4319,
2276,
18,
2640,
2519,
5621,
377,
358,
1046,
12,
5457,
1769,
377,
775,
288,
4202,
3167,
2289,
2633,
273,
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,
282,
1071,
918,
2605,
4733,
12,
8962,
596,
262,
288,
377,
4319,
1668,
273,
4319,
2276,
18,
2640,
2519,
5621,
377,
358,
1046,
12,
5457,
1769,
377,
775,
288,
4202,
3167,
2289,
2633,
273,
394,
... |
} else if (begin.isKindOf(getRuntime().getClasses().getNumericClass())) { | } else if (begin.isKindOf(getRuntime().getClass("Numeric"))) { | public IRubyObject each() { if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { long endLong = ((RubyNumeric) end).getLongValue(); long i = ((RubyNumeric) begin).getLongValue(); if (!isExclusive) { endLong += 1; } for (; i < endLong; i++) { getRuntime().yield(getRuntime().newFixnum(i)); } } else if (begin instanceof RubyString) { ((RubyString) begin).upto(end, isExclusive); } else if (begin.isKindOf(getRuntime().getClasses().getNumericClass())) { if (!isExclusive) { end = end.callMethod("+", RubyFixnum.one(getRuntime())); } while (begin.callMethod("<", end).isTrue()) { getRuntime().yield(begin); begin = begin.callMethod("+", RubyFixnum.one(getRuntime())); } } else { IRubyObject v = begin; if (isExclusive) { while (v.callMethod("<", end).isTrue()) { if (v.equals(end)) { break; } getRuntime().yield(v); v = v.callMethod("succ"); } } else { while (v.callMethod("<=", end).isTrue()) { getRuntime().yield(v); if (v.equals(end)) { break; } v = v.callMethod("succ"); } } } return this; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyRange.java/buggy/src/org/jruby/RubyRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1517,
1435,
288,
3639,
309,
261,
10086,
1276,
19817,
8585,
2107,
597,
679,
1276,
19817,
8585,
2107,
13,
288,
5411,
1525,
679,
3708,
273,
14015,
54,
10340,
9902,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1517,
1435,
288,
3639,
309,
261,
10086,
1276,
19817,
8585,
2107,
597,
679,
1276,
19817,
8585,
2107,
13,
288,
5411,
1525,
679,
3708,
273,
14015,
54,
10340,
9902,
13,... |
void validate( List<AddressRange> addressRangeList ) throws ValidateException { /* Make sure that none of these overlap */ List<AddressRange> checkList = new LinkedList<AddressRange>( addressRangeList ); checkList.addAll( ILLEGAL_ADDRESS_LIST ); /* Sort the list */ Collections.sort( checkList ); /* Check for overlap */ AddressRange previous = null; for ( AddressRange range : checkList ) { if ( previous != null ) { logger.debug( "Checking address range: " + range.getDescription() + " against " + previous.getDescription()); if ( range.getStart() < previous.getEnd()) { if ( range.getIsIllegal() && previous.getIsIllegal()) { logger.warn( "Overlapping in the list of illegal addresses: " + range.getDescription() + "," + previous.getDescription()); } if ( range.getIsIllegal()) { throw new ValidateException( "The network: " + previous.getDescription() + " cannot overlap with the network " + range.getDescription()); } else if ( previous.getIsIllegal()) { throw new ValidateException( "The network: " + range.getDescription() + " cannot overlap with the network: " + previous.getDescription()); /* They are both not illegal */ } else { throw new ValidateException( "The two networks: " + range.getDescription() + " and " + previous.getDescription() + " cannot overlap" ); } } } previous = range; } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/115e144444f9e3e5b13e66a4e36937ed2f6c876a/AddressValidator.java/buggy/tran/openvpn/main/com/metavize/tran/openvpn/AddressValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1954,
12,
987,
32,
1887,
2655,
34,
1758,
2655,
682,
262,
1216,
3554,
503,
565,
288,
3639,
1748,
4344,
3071,
716,
6555,
434,
4259,
7227,
1195,
3639,
987,
32,
1887,
2655,
34,
866,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
12,
987,
32,
1887,
2655,
34,
1758,
2655,
682,
262,
1216,
3554,
503,
565,
288,
3639,
1748,
4344,
3071,
716,
6555,
434,
4259,
7227,
1195,
3639,
987,
32,
1887,
2655,
34,
866,
68... | ||
return (true); | return true; | public boolean equals(Object obj) { if (obj == this) { return (true); } if (!(obj instanceof PermissionInfo)) { return (false); } PermissionInfo other = (PermissionInfo) obj; if (!type.equals(other.type) || ((name == null) ^ (other.name == null)) || ((actions == null) ^ (other.actions == null))) { return (false); } if (name != null) { if (actions != null) { return (name.equals(other.name) && actions .equals(other.actions)); } else { return (name.equals(other.name)); } } else { return (true); } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/2c2deb1aeb766036a76848eef8ed6aead12888f1/PermissionInfo.java/buggy/bundles/org.eclipse.osgi/osgi/src/org/osgi/service/permissionadmin/PermissionInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1606,
12,
921,
1081,
13,
288,
202,
202,
430,
261,
2603,
422,
333,
13,
288,
1082,
202,
2463,
261,
3767,
1769,
202,
202,
97,
202,
202,
430,
16051,
12,
2603,
1276,
8509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1606,
12,
921,
1081,
13,
288,
202,
202,
430,
261,
2603,
422,
333,
13,
288,
1082,
202,
2463,
261,
3767,
1769,
202,
202,
97,
202,
202,
430,
16051,
12,
2603,
1276,
8509,
... |
(offset + len - 1) + "]"; | (offset + len - 1) + ']'; | public String getName() { return file.getAbsolutePath() + " [" + offset + ", " + (offset + len - 1) + "]"; } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/RandomAccessFileBucket.java/buggy/src/freenet/support/io/RandomAccessFileBucket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
327,
585,
18,
588,
10368,
743,
1435,
397,
315,
8247,
397,
1384,
397,
3104,
315,
397,
2398,
261,
3348,
397,
562,
300,
404,
13,
397,
8641,
31,
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,
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,
1723,
1435,
288,
3639,
327,
585,
18,
588,
10368,
743,
1435,
397,
315,
8247,
397,
1384,
397,
3104,
315,
397,
2398,
261,
3348,
397,
562,
300,
404,
13,
397,
8641,
31,
565,
289,
... |
if (rb_obj_is_kind_of(block, rb_cMethod)) { block = method_proc(block); } else if (!rb_obj_is_proc(block)) { rb_raise(rb_eTypeError, "wrong argument type %s (expected Proc)", rb_class2name(CLASS_OF(block))); } Data_Get_Struct(block, struct BLOCK, data); orphan = blk_orphan(data); /* PUSH BLOCK from data */ /*old_block = ruby_block; _block = *data; ruby_block = &_block; PUSH_ITER(ITER_PRE); ruby_frame->iter = ITER_PRE; PUSH_TAG(PROT_NONE); state = EXEC_TAG(); if (state == 0) { proc_set_safe_level(block); if (safe > ruby_safe_level) ruby_safe_level = safe; result = rb_eval(self, node->nd_iter); } POP_TAG(); POP_ITER(); if (_block.tag->dst == state) { if (orphan) { state &= TAG_MASK; } else { struct BLOCK *ptr = old_block; while (ptr) { if (ptr->scope == _block.scope) { ptr->tag->dst = state; break; } ptr = ptr->prev; } if (!ptr) { state &= TAG_MASK; } } } ruby_block = old_block; ruby_safe_level = safe; switch (state) {/* escape from orphan procedure */ /*case 0: break; case TAG_BREAK: if (orphan) { rb_raise(rb_eLocalJumpError, "break from proc-closure"); } break; case TAG_RETRY: rb_raise(rb_eLocalJumpError, "retry from proc-closure"); break; case TAG_RETURN: if (orphan) { rb_raise(rb_eLocalJumpError, "return from proc-closure"); } default: JUMP_TAG(state); } return result; */ } | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(); if (block.isNil()) { return ruby.getNil(); // +++ rb_eval(self, node->nd_iter); } if (block.kind_of(ruby.getClasses().getMethodClass()).isTrue()) { block = null; // method_proc(block); // } else if (!(block instanceof RubyProc)) { } return result; /*if (NIL_P(block)) { return rb_eval(self, node->nd_iter); } if (rb_obj_is_kind_of(block, rb_cMethod)) { block = method_proc(block); } else if (!rb_obj_is_proc(block)) { rb_raise(rb_eTypeError, "wrong argument type %s (expected Proc)", rb_class2name(CLASS_OF(block))); } Data_Get_Struct(block, struct BLOCK, data); orphan = blk_orphan(data); /* PUSH BLOCK from data */ /*old_block = ruby_block; _block = *data; ruby_block = &_block; PUSH_ITER(ITER_PRE); ruby_frame->iter = ITER_PRE; PUSH_TAG(PROT_NONE); state = EXEC_TAG(); if (state == 0) { proc_set_safe_level(block); if (safe > ruby_safe_level) ruby_safe_level = safe; result = rb_eval(self, node->nd_iter); } POP_TAG(); POP_ITER(); if (_block.tag->dst == state) { if (orphan) { state &= TAG_MASK; } else { struct BLOCK *ptr = old_block; while (ptr) { if (ptr->scope == _block.scope) { ptr->tag->dst = state; break; } ptr = ptr->prev; } if (!ptr) { state &= TAG_MASK; } } } ruby_block = old_block; ruby_safe_level = safe; switch (state) {/* escape from orphan procedure */ /*case 0: break; case TAG_BREAK: if (orphan) { rb_raise(rb_eLocalJumpError, "break from proc-closure"); } break; case TAG_RETRY: rb_raise(rb_eLocalJumpError, "retry from proc-closure"); break; case TAG_RETURN: if (orphan) { rb_raise(rb_eLocalJumpError, "return from proc-closure"); } default: JUMP_TAG(state); } return result;*/ } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/fe5b7835d80b52a0683d503660a7f722b7af69b1/BlockPassNode.java/clean/org/jruby/nodes/BlockPassNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
482,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
19817,
921,
1203,
273,
7587,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
7734,
368,
19817,
1768,
1592,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
482,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
19817,
921,
1203,
273,
7587,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
7734,
368,
19817,
1768,
1592,... | |
spatialIndexes = siv; | spatialIndexes = siv; | public void setSpatialIndexes(Collection siv) { spatialIndexes = siv; } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/edbeffa6fb72058fbd5312d50c86c88fa8d47f6b/MultiShapeLayer.java/clean/src/openmap/com/bbn/openmap/layer/shape/MultiShapeLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
24648,
8639,
12,
2532,
272,
427,
13,
288,
202,
1752,
9240,
8639,
273,
272,
427,
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,
24648,
8639,
12,
2532,
272,
427,
13,
288,
202,
1752,
9240,
8639,
273,
272,
427,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return s30; | return s32; | public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case EOL: case 15: return s81; case 23: return s30; case 22: return s41; default: NoViableAltException nvae = new NoViableAltException("", 4, 70, input); throw nvae; } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
327,
... |
style._padding = (RectPropertySet) _cachedRects.get(key); | style._padding = (RectPropertySet) getCachedRect(key); | private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, float parentHeight, CssContext ctx) { String key = null; if (style._padding == null) { key = RectPropertySet.deriveKey(style, sides); if (key == null) { style._padding = newRectInstance(style, shorthandProp, sides, parentHeight, parentWidth, ctx); return style._padding; } else { style._padding = (RectPropertySet) _cachedRects.get(key); if (style._padding == null) { style._padding = newRectInstance(style, shorthandProp, sides, parentHeight, parentWidth, ctx); _cachedRects.put(key, style._padding); } } } return style._padding; } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/2340fa5bfb8b399631850f82a1a15e3887021529/CalculatedStyle.java/buggy/src/java/org/xhtmlrenderer/css/style/CalculatedStyle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
9315,
1396,
694,
28307,
1396,
12,
4844,
690,
2885,
2154,
16,
4766,
8227,
6765,
461,
21310,
4658,
16,
4766,
8227,
6765,
461,
8526,
22423,
16,
4766,
8227,
1431,
982,
2384,
16,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9315,
1396,
694,
28307,
1396,
12,
4844,
690,
2885,
2154,
16,
4766,
8227,
6765,
461,
21310,
4658,
16,
4766,
8227,
6765,
461,
8526,
22423,
16,
4766,
8227,
1431,
982,
2384,
16,
47... |
public String[] getPropertyNames() { | public String[] getPropertyNames() { | public String[] getPropertyNames() { // FIXME: implement return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BufferedImage.java/clean/core/src/classpath/java/java/awt/image/BufferedImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
3911,
1557,
1435,
288,
202,
202,
759,
9852,
30,
2348,
202,
202,
2463,
446,
31,
202,
97,
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,
225,
202,
482,
514,
8526,
3911,
1557,
1435,
288,
202,
202,
759,
9852,
30,
2348,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public static Object getValue(ITheme targetTheme, String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return targetTheme.getString(propertyId); } if (propertyType.isAssignableFrom(Color.class)) { Color result = targetTheme.getColorRegistry().get(propertyId); if (result != null) { return result; } } if (propertyType.isAssignableFrom(Font.class)) { FontRegistry fonts = targetTheme.getFontRegistry(); if (fonts.hasValueFor(propertyId)) { return fonts.get(propertyId); } } if (propertyType == Integer.class) { return new Integer(targetTheme.getInt(propertyId)); } if (propertyType == Boolean.class) { return new Boolean(targetTheme.getBoolean(propertyId)); } return null; | public Object getValue(String propertyId, Class propertyType) { return getValue(targetTheme, propertyId, propertyType); | public static Object getValue(ITheme targetTheme, String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return targetTheme.getString(propertyId); } if (propertyType.isAssignableFrom(Color.class)) { Color result = targetTheme.getColorRegistry().get(propertyId); if (result != null) { return result; } } if (propertyType.isAssignableFrom(Font.class)) { FontRegistry fonts = targetTheme.getFontRegistry(); if (fonts.hasValueFor(propertyId)) { return fonts.get(propertyId); } } if (propertyType == Integer.class) { return new Integer(targetTheme.getInt(propertyId)); } if (propertyType == Boolean.class) { return new Boolean(targetTheme.getBoolean(propertyId)); } return null; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/ThemeAdapter.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/ThemeAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
2366,
12,
1285,
76,
4698,
1018,
8335,
16,
514,
31894,
16,
1659,
21076,
13,
288,
3639,
309,
261,
4468,
559,
18,
291,
7961,
1265,
12,
780,
18,
1106,
3719,
288,
5411,
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,
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,
1033,
2366,
12,
1285,
76,
4698,
1018,
8335,
16,
514,
31894,
16,
1659,
21076,
13,
288,
3639,
309,
261,
4468,
559,
18,
291,
7961,
1265,
12,
780,
18,
1106,
3719,
288,
5411,
327,... |
_setFontForComponent(_nsTextField32, "Lucida Grande", 13, Font.PLAIN); | _setFontForComponent(_nsTextField32, "Lucida Grande", 10, Font.PLAIN); | protected void _init() { super._init(); _setFontForComponent(_nsButton26, "Lucida Grande", 13, Font.PLAIN); _nsButton26.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_nsTextField44, "Lucida Grande", 13, Font.PLAIN); _nsTextField44.setEditable(true); _nsTextField44.setOpaque(true); _nsTextField44.setText(""); _nsTextField44.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField44.setSelectable(true); _nsTextField44.setEnabled(true); _setFontForComponent(_nsTextField43, "Lucida Grande", 13, Font.PLAIN); _nsTextField43.setEditable(false); _nsTextField43.setOpaque(false); _nsTextField43.setText("Choose GEDCOM file to import:"); _nsTextField43.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField43.setSelectable(false); _nsTextField43.setEnabled(true); _nsTextField43.setBorder(null); _setFontForComponent(_nsButton25, "Lucida Grande", 13, Font.PLAIN); _nsButton25.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_nsButton24, "Lucida Grande", 13, Font.PLAIN); _nsButton24.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_jRadioButton5, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_jRadioButton4, "Lucida Grande", 13, Font.PLAIN); _jRadioButton4.setSize(312, 18); _jRadioButton4.setLocation(0, 0); _nsMatrix2.add(_jRadioButton4); _jRadioButton5.setSize(312, 18); _jRadioButton5.setLocation(0, 20); _nsMatrix2.add(_jRadioButton5); _setFontForComponent(_nsMatrix2, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_nsTextField42, "Lucida Grande", 13, Font.PLAIN); _nsTextField42.setEditable(false); _nsTextField42.setOpaque(false); _nsTextField42.setText("Import GEDCOM File into:"); _nsTextField42.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField42.setSelectable(false); _nsTextField42.setEnabled(true); _nsTextField42.setBorder(null); if (!(_nsView8.getLayout() instanceof EOViewLayout)) { _nsView8.setLayout(new EOViewLayout()); } _nsTextField42.setSize(446, 17); _nsTextField42.setLocation(11, 14); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsTextField42, EOViewLayout.MinYMargin); _nsView8.add(_nsTextField42); _nsMatrix2.setSize(312, 38); _nsMatrix2.setLocation(23, 37); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsMatrix2, EOViewLayout.MinYMargin); _nsView8.add(_nsMatrix2); _nsButton24.setSize(71, 26); _nsButton24.setLocation(386, 312); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsButton24, EOViewLayout.MinYMargin); _nsView8.add(_nsButton24); _nsButton25.setSize(71, 26); _nsButton25.setLocation(308, 312); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsButton25, EOViewLayout.MinYMargin); _nsView8.add(_nsButton25); _nsTextField43.setSize(446, 17); _nsTextField43.setLocation(11, 105); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsTextField43, EOViewLayout.MinYMargin); _nsView8.add(_nsTextField43); _nsTextField44.setSize(354, 22); _nsTextField44.setLocation(26, 130); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsTextField44, EOViewLayout.MinYMargin); _nsView8.add(_nsTextField44); _nsButton26.setSize(71, 26); _nsButton26.setLocation(386, 130); ((EOViewLayout)_nsView8.getLayout()).setAutosizingMask(_nsButton26, EOViewLayout.MinYMargin); _nsView8.add(_nsButton26); _nsView8.setSize(466, 348); _eoFrame6.setTitle("Import"); _eoFrame6.setLocation(363, 190); _eoFrame6.setSize(466, 348); _setFontForComponent(_eoFormCell24, "Lucida Grande", 13, Font.PLAIN); _eoFormCell24.setTitle("Temple code"); _eoFormCell24.setTitleWidth(135); _eoFormCell24.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell24.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell23, "Lucida Grande", 13, Font.PLAIN); _eoFormCell23.setTitle("Seal to parents date"); _eoFormCell23.setTitleWidth(135); _eoFormCell23.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell23.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell22, "Lucida Grande", 13, Font.PLAIN); _eoFormCell22.setTitle("Temple code"); _eoFormCell22.setTitleWidth(135); _eoFormCell22.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell22.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell21, "Lucida Grande", 13, Font.PLAIN); _eoFormCell21.setTitle("Endowment date"); _eoFormCell21.setTitleWidth(135); _eoFormCell21.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell21.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell20, "Lucida Grande", 13, Font.PLAIN); _eoFormCell20.setTitle("Temple code"); _eoFormCell20.setTitleWidth(135); _eoFormCell20.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell20.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell19, "Lucida Grande", 13, Font.PLAIN); _eoFormCell19.setTitle("Baptism date"); _eoFormCell19.setTitleWidth(135); _eoFormCell19.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell19.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell18, "Lucida Grande", 13, Font.PLAIN); _eoFormCell18.setTitle("Burial place"); _eoFormCell18.setTitleWidth(135); _eoFormCell18.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell18.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell17, "Lucida Grande", 13, Font.PLAIN); _eoFormCell17.setTitle("Burial date"); _eoFormCell17.setTitleWidth(135); _eoFormCell17.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell17.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell16, "Lucida Grande", 13, Font.PLAIN); _eoFormCell16.setTitle("Death place"); _eoFormCell16.setTitleWidth(135); _eoFormCell16.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell16.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell15, "Lucida Grande", 13, Font.PLAIN); _eoFormCell15.setTitle("Death date"); _eoFormCell15.setTitleWidth(135); _eoFormCell15.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell15.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell14, "Lucida Grande", 13, Font.PLAIN); _eoFormCell14.setTitle("Birth place"); _eoFormCell14.setTitleWidth(135); _eoFormCell14.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell14.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell13, "Lucida Grande", 13, Font.PLAIN); _eoFormCell13.setTitle("Birthdate"); _eoFormCell13.setTitleWidth(135); _eoFormCell13.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell13.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell12, "Lucida Grande", 13, Font.PLAIN); _eoFormCell12.setTitle("Given names"); _eoFormCell12.setTitleWidth(135); _eoFormCell12.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell12.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell11, "Lucida Grande", 13, Font.PLAIN); _eoFormCell11.setTitle("Surname"); _eoFormCell11.setTitleWidth(135); _eoFormCell11.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell11.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell10, "Lucida Grande", 13, Font.PLAIN); _eoFormCell10.setTitle("Gender"); _eoFormCell10.setTitleWidth(135); _eoFormCell10.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell10.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell10.setSize(0, 0); _eoFormCell10.setLocation(-1, 0); _nsForm5.add(_eoFormCell10); _eoFormCell11.setSize(0, 0); _eoFormCell11.setLocation(-1, 0); _nsForm5.add(_eoFormCell11); _eoFormCell12.setSize(0, 0); _eoFormCell12.setLocation(-1, 0); _nsForm5.add(_eoFormCell12); _eoFormCell13.setSize(0, 0); _eoFormCell13.setLocation(-1, 0); _nsForm5.add(_eoFormCell13); _eoFormCell14.setSize(0, 0); _eoFormCell14.setLocation(-1, 0); _nsForm5.add(_eoFormCell14); _eoFormCell15.setSize(0, 0); _eoFormCell15.setLocation(-1, 0); _nsForm5.add(_eoFormCell15); _eoFormCell16.setSize(0, 0); _eoFormCell16.setLocation(-1, 0); _nsForm5.add(_eoFormCell16); _eoFormCell17.setSize(0, 0); _eoFormCell17.setLocation(-1, 0); _nsForm5.add(_eoFormCell17); _eoFormCell18.setSize(0, 0); _eoFormCell18.setLocation(-1, 0); _nsForm5.add(_eoFormCell18); _eoFormCell19.setSize(0, 0); _eoFormCell19.setLocation(-1, 0); _nsForm5.add(_eoFormCell19); _eoFormCell20.setSize(0, 0); _eoFormCell20.setLocation(-1, 0); _nsForm5.add(_eoFormCell20); _eoFormCell21.setSize(0, 0); _eoFormCell21.setLocation(-1, 0); _nsForm5.add(_eoFormCell21); _eoFormCell22.setSize(0, 0); _eoFormCell22.setLocation(-1, 0); _nsForm5.add(_eoFormCell22); _eoFormCell23.setSize(0, 0); _eoFormCell23.setLocation(-1, 0); _nsForm5.add(_eoFormCell23); _eoFormCell24.setSize(0, 0); _eoFormCell24.setLocation(-1, 0); _nsForm5.add(_eoFormCell24); _setFontForComponent(_nsForm5, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_nsButton23, "Lucida Grande", 13, Font.PLAIN); _nsButton23.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_nsButton22, "Lucida Grande", 13, Font.PLAIN); _nsButton22.setMargin(new Insets(0, 2, 0, 2)); if (!(_nsView7.getLayout() instanceof EOViewLayout)) { _nsView7.setLayout(new EOViewLayout()); } _nsButton22.setSize(77, 26); _nsButton22.setLocation(446, 448); ((EOViewLayout)_nsView7.getLayout()).setAutosizingMask(_nsButton22, EOViewLayout.MinYMargin); _nsView7.add(_nsButton22); _nsButton23.setSize(77, 26); _nsButton23.setLocation(363, 448); ((EOViewLayout)_nsView7.getLayout()).setAutosizingMask(_nsButton23, EOViewLayout.MinYMargin); _nsView7.add(_nsButton23); _nsForm5.setSize(527, 442); _nsForm5.setLocation(-7, 2); ((EOViewLayout)_nsView7.getLayout()).setAutosizingMask(_nsForm5, EOViewLayout.MinYMargin); _nsView7.add(_nsForm5); _nsView7.setSize(516, 484); _eoFrame5.setTitle("IndividualEdit2"); _eoFrame5.setLocation(523, 91); _eoFrame5.setSize(516, 484); _setFontForComponent(_nsButton21, "Lucida Grande", 13, Font.PLAIN); _nsButton21.setMargin(new Insets(0, 2, 0, 2)); _nsButton21.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_reportsController0, "save", _nsButton21), "")); _setFontForComponent(_nsButton20, "Lucida Grande", 13, Font.PLAIN); _nsButton20.setMargin(new Insets(0, 2, 0, 2)); _nsButton20.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_reportsController0, "cancel", _nsButton20), "")); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _connect(_eoFrame0, _reportsController0, "delegate"); } if (_replacedObjects.objectForKey("_reportsController0") == null) { _connect(_reportsController0, _eoFrame0, "window"); } if (_replacedObjects.objectForKey("_reportsController0") == null) { _connect(_reportsController0, _nsMatrix0, "reportsRadio"); } _setFontForComponent(_nsTextField41, "Lucida Grande", 13, Font.PLAIN); _nsTextField41.setEditable(false); _nsTextField41.setOpaque(false); _nsTextField41.setText("Prefix"); _nsTextField41.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField41.setSelectable(false); _nsTextField41.setEnabled(true); _nsTextField41.setBorder(null); _setFontForComponent(_nsTextField40, "Lucida Grande", 13, Font.PLAIN); _nsTextField40.setEditable(false); _nsTextField40.setOpaque(false); _nsTextField40.setText("RIN: "); _nsTextField40.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField40.setSelectable(false); _nsTextField40.setEnabled(true); _nsTextField40.setBorder(null); _setFontForComponent(_nsTextField39, "Lucida Grande", 13, Font.PLAIN); _nsTextField39.setEditable(false); _nsTextField39.setOpaque(false); _nsTextField39.setText("AFN:"); _nsTextField39.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField39.setSelectable(false); _nsTextField39.setEnabled(true); _nsTextField39.setBorder(null); _setFontForComponent(_nsTextField38, "Lucida Grande", 13, Font.PLAIN); _nsTextField38.setEditable(false); _nsTextField38.setOpaque(false); _nsTextField38.setText("Person Name"); _nsTextField38.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField38.setSelectable(false); _nsTextField38.setEnabled(true); _nsTextField38.setBorder(null); _setFontForComponent(_nsTextField37, "Lucida Grande", 13, Font.PLAIN); _nsTextField37.setEditable(false); _nsTextField37.setOpaque(false); _nsTextField37.setText("Notes for "); _nsTextField37.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField37.setSelectable(false); _nsTextField37.setEnabled(true); _nsTextField37.setBorder(null); if (_replacedObjects.objectForKey("_nsTextView1") == null) { _nsTextView1.setEditable(true); _nsTextView1.setOpaque(true); _nsTextView1.setText(""); } if (!(_nsView6.getLayout() instanceof EOViewLayout)) { _nsView6.setLayout(new EOViewLayout()); } _nsTextView1.setSize(440, 293); _nsTextView1.setLocation(13, 41); ((EOViewLayout)_nsView6.getLayout()).setAutosizingMask(_nsTextView1, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView6.add(_nsTextView1); _nsTextField37.setSize(67, 17); _nsTextField37.setLocation(11, 16); ((EOViewLayout)_nsView6.getLayout()).setAutosizingMask(_nsTextField37, EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView6.add(_nsTextField37); _nsTextField38.setSize(377, 17); _nsTextField38.setLocation(80, 16); ((EOViewLayout)_nsView6.getLayout()).setAutosizingMask(_nsTextField38, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView6.add(_nsTextField38); if (_replacedObjects.objectForKey("_eoFrame4") == null) { _nsView6.setSize(466, 348); _eoFrame4.setTitle("Window"); _eoFrame4.setLocation(343, 210); _eoFrame4.setSize(466, 348); } _nsButton19.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_eoFrame4, "makeKeyAndOrderFront", _nsButton19), "")); _setFontForComponent(_nsButton19, "Lucida Grande", 10, Font.PLAIN); _nsButton19.setMargin(new Insets(0, 2, 0, 2)); if (!(_nsBox16.getLayout() instanceof EOViewLayout)) { _nsBox16.setLayout(new EOViewLayout()); } _nsBox17.setSize(487, 1); _nsBox17.setLocation(2, 2); ((EOViewLayout)_nsBox16.getLayout()).setAutosizingMask(_nsBox17, EOViewLayout.MinYMargin); _nsBox16.add(_nsBox17); _nsBox16.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("", true, "Lucida Grande", 13, Font.PLAIN)); _setFontForComponent(_nsTextField36, "Lucida Grande", 13, Font.PLAIN); _nsTextField36.setEditable(false); _nsTextField36.setOpaque(false); _nsTextField36.setText("Sealing to Parents"); _nsTextField36.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField36.setSelectable(false); _nsTextField36.setEnabled(true); _nsTextField36.setBorder(null); _setFontForComponent(_nsTextField35, "Lucida Grande", 10, Font.PLAIN); _nsTextField35.setEditable(false); _nsTextField35.setOpaque(false); _nsTextField35.setText("Date:"); _nsTextField35.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField35.setSelectable(false); _nsTextField35.setEnabled(true); _nsTextField35.setBorder(null); _setFontForComponent(_nsTextField34, "Lucida Grande", 10, Font.PLAIN); _nsTextField34.setEditable(false); _nsTextField34.setOpaque(false); _nsTextField34.setText("Temple:"); _nsTextField34.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField34.setSelectable(false); _nsTextField34.setEnabled(true); _nsTextField34.setBorder(null); _setFontForComponent(_nsTextField33, "Lucida Grande", 10, Font.PLAIN); _nsTextField33.setEditable(false); _nsTextField33.setOpaque(false); _nsTextField33.setText("Temple:"); _nsTextField33.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField33.setSelectable(false); _nsTextField33.setEnabled(true); _nsTextField33.setBorder(null); _setFontForComponent(_nsTextField32, "Lucida Grande", 13, Font.PLAIN); _nsTextField32.setEditable(false); _nsTextField32.setOpaque(false); _nsTextField32.setText("Endowment"); _nsTextField32.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField32.setSelectable(false); _nsTextField32.setEnabled(true); _nsTextField32.setBorder(null); _setFontForComponent(_nsTextField31, "Lucida Grande", 10, Font.PLAIN); _nsTextField31.setEditable(false); _nsTextField31.setOpaque(false); _nsTextField31.setText("Date:"); _nsTextField31.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField31.setSelectable(false); _nsTextField31.setEnabled(true); _nsTextField31.setBorder(null); _setFontForComponent(_nsTextField30, "Lucida Grande", 10, Font.PLAIN); _nsTextField30.setEditable(false); _nsTextField30.setOpaque(false); _nsTextField30.setText("Temple:"); _nsTextField30.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField30.setSelectable(false); _nsTextField30.setEnabled(true); _nsTextField30.setBorder(null); _setFontForComponent(_nsTextField29, "Lucida Grande", 10, Font.PLAIN); _nsTextField29.setEditable(false); _nsTextField29.setOpaque(false); _nsTextField29.setText("Date:"); _nsTextField29.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField29.setSelectable(false); _nsTextField29.setEnabled(true); _nsTextField29.setBorder(null); if (!(_nsBox15.getLayout() instanceof EOViewLayout)) { _nsBox15.setLayout(new EOViewLayout()); } _nsForm3.setSize(338, 52); _nsForm3.setLocation(-3, -1); ((EOViewLayout)_nsBox15.getLayout()).setAutosizingMask(_nsForm3, EOViewLayout.MinYMargin); _nsBox15.add(_nsForm3); if (!(_nsBox14.getLayout() instanceof EOViewLayout)) { _nsBox14.setLayout(new EOViewLayout()); } _nsBox15.setSize(378, 55); _nsBox15.setLocation(3, 18); ((EOViewLayout)_nsBox14.getLayout()).setAutosizingMask(_nsBox15, EOViewLayout.MinYMargin); _nsBox14.add(_nsBox15); _nsBox14.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Burial", true, "Lucida Grande", 13, Font.PLAIN)); if (!(_nsBox13.getLayout() instanceof EOViewLayout)) { _nsBox13.setLayout(new EOViewLayout()); } _nsForm2.setSize(338, 52); _nsForm2.setLocation(-3, -1); ((EOViewLayout)_nsBox13.getLayout()).setAutosizingMask(_nsForm2, EOViewLayout.MinYMargin); _nsBox13.add(_nsForm2); if (!(_nsBox12.getLayout() instanceof EOViewLayout)) { _nsBox12.setLayout(new EOViewLayout()); } _nsBox13.setSize(378, 55); _nsBox13.setLocation(3, 18); ((EOViewLayout)_nsBox12.getLayout()).setAutosizingMask(_nsBox13, EOViewLayout.MinYMargin); _nsBox12.add(_nsBox13); _nsBox12.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Death", true, "Lucida Grande", 13, Font.PLAIN)); if (!(_nsBox11.getLayout() instanceof EOViewLayout)) { _nsBox11.setLayout(new EOViewLayout()); } _nsForm1.setSize(338, 52); _nsForm1.setLocation(-3, -1); ((EOViewLayout)_nsBox11.getLayout()).setAutosizingMask(_nsForm1, EOViewLayout.MinYMargin); _nsBox11.add(_nsForm1); if (!(_nsBox10.getLayout() instanceof EOViewLayout)) { _nsBox10.setLayout(new EOViewLayout()); } _nsBox11.setSize(378, 55); _nsBox11.setLocation(3, 18); ((EOViewLayout)_nsBox10.getLayout()).setAutosizingMask(_nsBox11, EOViewLayout.MinYMargin); _nsBox10.add(_nsBox11); _nsBox10.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Christening", true, "Lucida Grande", 13, Font.PLAIN)); if (!(_nsBox9.getLayout() instanceof EOViewLayout)) { _nsBox9.setLayout(new EOViewLayout()); } _nsForm0.setSize(338, 52); _nsForm0.setLocation(-3, 1); ((EOViewLayout)_nsBox9.getLayout()).setAutosizingMask(_nsForm0, EOViewLayout.MinYMargin); _nsBox9.add(_nsForm0); if (!(_nsBox8.getLayout() instanceof EOViewLayout)) { _nsBox8.setLayout(new EOViewLayout()); } _nsBox9.setSize(378, 55); _nsBox9.setLocation(3, 18); ((EOViewLayout)_nsBox8.getLayout()).setAutosizingMask(_nsBox9, EOViewLayout.MinYMargin); _nsBox8.add(_nsBox9); _nsBox8.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Birth", true, "Lucida Grande", 13, Font.PLAIN)); _setFontForComponent(_nsTextField28, "Lucida Grande", 13, Font.PLAIN); _nsTextField28.setEditable(false); _nsTextField28.setOpaque(false); _nsTextField28.setText("Suffix"); _nsTextField28.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField28.setSelectable(false); _nsTextField28.setEnabled(true); _nsTextField28.setBorder(null); _setFontForComponent(_nsTextField27, "Lucida Grande", 13, Font.PLAIN); _nsTextField27.setEditable(false); _nsTextField27.setOpaque(false); _nsTextField27.setText("Baptism"); _nsTextField27.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField27.setSelectable(false); _nsTextField27.setEnabled(true); _nsTextField27.setBorder(null); _setFontForComponent(_nsTextField26, "Lucida Grande", 13, Font.PLAIN); _nsTextField26.setEditable(false); _nsTextField26.setOpaque(false); _nsTextField26.setText("Given names"); _nsTextField26.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField26.setSelectable(false); _nsTextField26.setEnabled(true); _nsTextField26.setBorder(null); _setFontForComponent(_nsTextField25, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField25.setEditable(false); _nsTextField25.setOpaque(false); _nsTextField25.setText("Surname"); _nsTextField25.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField25.setSelectable(false); _nsTextField25.setEnabled(true); _nsTextField25.setBorder(null); _setFontForComponent(_nsTextField24, "Lucida Grande", 13, Font.PLAIN); _nsTextField24.setEditable(false); _nsTextField24.setOpaque(false); _nsTextField24.setText("Gender"); _nsTextField24.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField24.setSelectable(false); _nsTextField24.setEnabled(true); _nsTextField24.setBorder(null); _setFontForComponent(_nsButton18, "Lucida Grande", 13, Font.PLAIN); _nsButton18.setMargin(new Insets(0, 2, 0, 2)); _nsButton18.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_individualEditController0, "cancel", _nsButton18), "")); if (_replacedObjects.objectForKey("_eoFrame2") == null) { _connect(_eoFrame2, _individualEditController0, "delegate"); } _setFontForComponent(_nsTextField23, "Lucida Grande", 13, Font.PLAIN); _nsTextField23.setEditable(false); _nsTextField23.setOpaque(false); _nsTextField23.setText("Unknown"); _nsTextField23.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField23.setSelectable(false); _nsTextField23.setEnabled(true); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField23, "rin"); } _setFontForComponent(_nsTextField22, "Lucida Grande", 13, Font.PLAIN); _nsTextField22.setEditable(true); _nsTextField22.setOpaque(true); _nsTextField22.setText(""); _nsTextField22.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField22.setSelectable(true); _nsTextField22.setEnabled(true); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField22, "afn"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsImageView1, "photo"); } _connect(_nsButton10, _nsComboBox0, "nextFocusableComponent"); _connect(_nsComboBox0, _surnameList0, "dataSource"); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField12, "givenNames"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _popup0, "gender"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox1, "prefix"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox2, "suffix"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsForm0, "birthForm"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsForm1, "christeningForm"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsForm2, "deathForm"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsForm3, "burialForm"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField13, "baptismDate"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox3, "baptismTemple"); } _connect(_nsComboBox3, _nsTextField21, "nextFocusableComponent"); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField21, "endowmentDate"); } _setFontForComponent(_nsTextField21, "Lucida Grande", 13, Font.PLAIN); _nsTextField21.setEditable(true); _nsTextField21.setOpaque(true); _nsTextField21.setText(""); _nsTextField21.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField21.setSelectable(true); _nsTextField21.setEnabled(true); _connect(_nsTextField21, _nsComboBox5, "nextFocusableComponent"); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox5, "endowmentTemple"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsTextField20, "sealingToParentDate"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox6, "sealingToParentTemple"); } _connect(_nsComboBox6, _templeList0, "dataSource"); _connect(_nsButton17, _nsButton10, "nextFocusableComponent"); _setFontForComponent(_nsButton17, "Lucida Grande", 13, Font.PLAIN); _nsButton17.setMargin(new Insets(0, 2, 0, 2)); _connect(_nsComboBox6, _nsButton17, "nextFocusableComponent"); _connect(_nsTextField20, _nsComboBox6, "nextFocusableComponent"); _setFontForComponent(_nsTextField20, "Lucida Grande", 13, Font.PLAIN); _nsTextField20.setEditable(true); _nsTextField20.setOpaque(true); _nsTextField20.setText(""); _nsTextField20.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField20.setSelectable(true); _nsTextField20.setEnabled(true); _connect(_nsComboBox5, _nsTextField20, "nextFocusableComponent"); _connect(_nsComboBox5, _templeList0, "dataSource"); _nsTableView3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "editChild", _nsTableView3), "")); _connect(_nsTableView3, _familyEditController0, "delegate"); if (_replacedObjects.objectForKey("_eoFrame3") == null) { _connect(_eoFrame3, _familyEditController0, "delegate"); } _setFontForComponent(_nsButton16, "Lucida Grande", 13, Font.PLAIN); _nsButton16.setMargin(new Insets(0, 2, 0, 2)); _nsButton15.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "addChild", _nsButton15), "")); _setFontForComponent(_nsButton15, "Lucida Grande", 13, Font.PLAIN); _nsButton15.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_nsTextField19, "Lucida Grande", 13, Font.PLAIN); _nsTextField19.setEditable(false); _nsTextField19.setOpaque(false); _nsTextField19.setText("Sealing of Wife to Husband"); _nsTextField19.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField19.setSelectable(false); _nsTextField19.setEnabled(true); _nsTextField19.setBorder(null); _setFontForComponent(_nsTextField18, "Lucida Grande", 10, Font.PLAIN); _nsTextField18.setEditable(false); _nsTextField18.setOpaque(false); _nsTextField18.setText("Temple:"); _nsTextField18.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField18.setSelectable(false); _nsTextField18.setEnabled(true); _nsTextField18.setBorder(null); _setFontForComponent(_nsTextField17, "Lucida Grande", 10, Font.PLAIN); _nsTextField17.setEditable(false); _nsTextField17.setOpaque(false); _nsTextField17.setText("Date:"); _nsTextField17.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField17.setSelectable(false); _nsTextField17.setEnabled(true); _nsTextField17.setBorder(null); if (!(_nsBox7.getLayout() instanceof EOViewLayout)) { _nsBox7.setLayout(new EOViewLayout()); } _nsForm4.setSize(458, 52); _nsForm4.setLocation(1, 4); ((EOViewLayout)_nsBox7.getLayout()).setAutosizingMask(_nsForm4, EOViewLayout.MinYMargin); _nsBox7.add(_nsForm4); if (!(_nsBox6.getLayout() instanceof EOViewLayout)) { _nsBox6.setLayout(new EOViewLayout()); } _nsBox7.setSize(474, 62); _nsBox7.setLocation(3, 18); ((EOViewLayout)_nsBox6.getLayout()).setAutosizingMask(_nsBox7, EOViewLayout.MinYMargin); _nsBox6.add(_nsBox7); _nsBox6.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Marriage", true, "Lucida Grande", 13, Font.PLAIN)); _setFontForComponent(_nsTextField16, "Lucida Grande", 13, Font.PLAIN); _nsTextField16.setEditable(false); _nsTextField16.setOpaque(false); _nsTextField16.setText("Wife"); _nsTextField16.setHorizontalAlignment(javax.swing.JTextField.RIGHT); _nsTextField16.setSelectable(false); _nsTextField16.setEnabled(true); _nsTextField16.setBorder(null); _setFontForComponent(_nsTextField15, "Lucida Grande", 13, Font.PLAIN); _nsTextField15.setEditable(false); _nsTextField15.setOpaque(false); _nsTextField15.setText("Husband"); _nsTextField15.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField15.setSelectable(false); _nsTextField15.setEnabled(true); _nsTextField15.setBorder(null); _nsButton14.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "cancel", _nsButton14), "")); _setFontForComponent(_nsButton14, "Lucida Grande", 13, Font.PLAIN); _nsButton14.setMargin(new Insets(0, 2, 0, 2)); if (!(_nsView5.getLayout() instanceof EOViewLayout)) { _nsView5.setLayout(new EOViewLayout()); } _nsButton11.setSize(106, 26); _nsButton11.setLocation(402, 474); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton11, EOViewLayout.MinYMargin); _nsView5.add(_nsButton11); _nsButton14.setSize(77, 26); _nsButton14.setLocation(318, 474); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton14, EOViewLayout.MinYMargin); _nsView5.add(_nsButton14); _nsBox4.setSize(519, 245); _nsBox4.setLocation(4, 229); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsBox4, EOViewLayout.MinYMargin); _nsView5.add(_nsBox4); _nsButton13.setSize(422, 31); _nsButton13.setLocation(78, 6); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton13, EOViewLayout.MinYMargin); _nsView5.add(_nsButton13); _nsTextField15.setSize(60, 17); _nsTextField15.setLocation(16, 11); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField15, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField15); _nsButton12.setSize(422, 31); _nsButton12.setLocation(78, 39); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton12, EOViewLayout.MinYMargin); _nsView5.add(_nsButton12); _nsTextField16.setSize(60, 17); _nsTextField16.setLocation(16, 44); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField16, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField16); _nsBox6.setSize(480, 83); _nsBox6.setLocation(18, 73); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsBox6, EOViewLayout.MinYMargin); _nsView5.add(_nsBox6); _nsTextField17.setSize(30, 13); _nsTextField17.setLocation(20, 191); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField17, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField17); _nsComboBox4.setSize(273, 26); _nsComboBox4.setLocation(235, 184); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsComboBox4, EOViewLayout.MinYMargin); _nsView5.add(_nsComboBox4); _nsTextField18.setSize(44, 13); _nsTextField18.setLocation(188, 193); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField18, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField18); _nsTextField19.setSize(174, 17); _nsTextField19.setLocation(11, 165); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField19, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField19); _nsTextField14.setSize(126, 22); _nsTextField14.setLocation(54, 186); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsTextField14, EOViewLayout.MinYMargin); _nsView5.add(_nsTextField14); _nsButton15.setSize(77, 27); _nsButton15.setLocation(16, 464); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton15, EOViewLayout.MinYMargin); _nsView5.add(_nsButton15); _nsButton16.setSize(101, 27); _nsButton16.setLocation(98, 464); ((EOViewLayout)_nsView5.getLayout()).setAutosizingMask(_nsButton16, EOViewLayout.MinYMargin); _nsView5.add(_nsButton16); if (_replacedObjects.objectForKey("_eoFrame3") == null) { _nsView5.setSize(517, 510); _eoFrame3.setTitle("FamilyEdit"); _eoFrame3.setLocation(212, 153); _eoFrame3.setSize(517, 510); } if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _eoFrame3, "window"); } if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsButton11, "saveButton"); } _connect(_nsTableView3, _nsButton13, "nextFocusableComponent"); _connect(_nsTableView3, _nsButton13, "nextFocusableComponent"); if (!(_nsBox5.getLayout() instanceof EOViewLayout)) { _nsBox5.setLayout(new EOViewLayout()); } _nsTableView3.setSize(487, 211); _nsTableView3.setLocation(14, 2); ((EOViewLayout)_nsBox5.getLayout()).setAutosizingMask(_nsTableView3, EOViewLayout.MinYMargin); _nsBox5.add(_nsTableView3); if (!(_nsBox4.getLayout() instanceof EOViewLayout)) { _nsBox4.setLayout(new EOViewLayout()); } _nsBox5.setSize(519, 227); _nsBox5.setLocation(0, 18); ((EOViewLayout)_nsBox4.getLayout()).setAutosizingMask(_nsBox5, EOViewLayout.MinYMargin); _nsBox4.add(_nsBox5); _nsBox4.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Children", false, "Lucida Grande", 13, Font.PLAIN)); _connect(_nsBox4, _nsButton13, "nextFocusableComponent"); if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsButton13, "husbandButton"); } _nsButton13.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "editHusband", _nsButton13), "")); _setFontForComponent(_nsButton13, "Lucida Grande", 10, Font.PLAIN); _nsButton13.setMargin(new Insets(0, 2, 0, 2)); _connect(_nsButton13, _nsButton12, "nextFocusableComponent"); if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsButton12, "wifeButton"); } _nsButton12.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "editWife", _nsButton12), "")); _setFontForComponent(_nsButton12, "Lucida Grande", 10, Font.PLAIN); _nsButton12.setMargin(new Insets(0, 2, 0, 2)); _connect(_nsButton12, _nsButton11, "nextFocusableComponent"); _nsButton11.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_familyEditController0, "save", _nsButton11), "")); _setFontForComponent(_nsButton11, "Lucida Grande", 13, Font.PLAIN); _nsButton11.setMargin(new Insets(0, 2, 0, 2)); _connect(_nsButton11, _nsForm4, "nextFocusableComponent"); _setFontForComponent(_eoFormCell9, "Lucida Grande", 13, Font.PLAIN); _eoFormCell9.setTitle("Place"); _eoFormCell9.setTitleWidth(42); _eoFormCell9.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell9.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell8, "Lucida Grande", 13, Font.PLAIN); _eoFormCell8.setTitle("Date"); _eoFormCell8.setTitleWidth(42); _eoFormCell8.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell8.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell8.setSize(0, 0); _eoFormCell8.setLocation(-1, 0); _nsForm4.add(_eoFormCell8); _eoFormCell9.setSize(0, 0); _eoFormCell9.setLocation(-1, 0); _nsForm4.add(_eoFormCell9); _setFontForComponent(_nsForm4, "Lucida Grande", 13, Font.PLAIN); if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsForm4, "marriageForm"); } if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsComboBox4, "sealingTemple"); } _connect(_nsTextField14, _nsComboBox4, "nextFocusableComponent"); _setFontForComponent(_nsTextField14, "Lucida Grande", 13, Font.PLAIN); _nsTextField14.setEditable(true); _nsTextField14.setOpaque(true); _nsTextField14.setText(""); _nsTextField14.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField14.setSelectable(true); _nsTextField14.setEnabled(true); if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsTextField14, "sealingDate"); } if (_replacedObjects.objectForKey("_familyEditController0") == null) { _connect(_familyEditController0, _nsTableView3, "children"); } _connect(_nsTableView3, _familyEditController0, "dataSource"); _eoTableColumn9.setMinWidth(4); _eoTableColumn9.setMaxWidth(1000); _eoTableColumn9.setPreferredWidth(137); _eoTableColumn9.setWidth(137); _eoTableColumn9.setResizable(true); _eoTableColumn9.setHeaderValue(""); if ((_eoTableColumn9.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn9.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn8.setMinWidth(10); _eoTableColumn8.setMaxWidth(1000); _eoTableColumn8.setPreferredWidth(138); _eoTableColumn8.setWidth(138); _eoTableColumn8.setResizable(true); _eoTableColumn8.setHeaderValue(""); if ((_eoTableColumn8.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn8.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn7.setMinWidth(40); _eoTableColumn7.setMaxWidth(1000); _eoTableColumn7.setPreferredWidth(143); _eoTableColumn7.setWidth(143); _eoTableColumn7.setResizable(true); _eoTableColumn7.setHeaderValue(""); if ((_eoTableColumn7.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn7.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn6.setMinWidth(40); _eoTableColumn6.setMaxWidth(1000); _eoTableColumn6.setPreferredWidth(40); _eoTableColumn6.setWidth(40); _eoTableColumn6.setResizable(true); _eoTableColumn6.setHeaderValue(""); if ((_eoTableColumn6.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn6.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _nsTableView3.table().addColumn(_eoTableColumn6); _nsTableView3.table().addColumn(_eoTableColumn7); _nsTableView3.table().addColumn(_eoTableColumn8); _nsTableView3.table().addColumn(_eoTableColumn9); _setFontForComponent(_nsTableView3.table().getTableHeader(), "Lucida Grande", 11, Font.PLAIN); _nsTableView3.table().setRowHeight(20); _connect(_nsComboBox4, _nsTableView3, "nextFocusableComponent"); _connect(_nsComboBox4, _templeList0, "dataSource"); _connect(_nsComboBox3, _templeList0, "dataSource"); _connect(_nsTextField13, _nsComboBox3, "nextFocusableComponent"); _setFontForComponent(_nsTextField13, "Lucida Grande", 13, Font.PLAIN); _nsTextField13.setEditable(true); _nsTextField13.setOpaque(true); _nsTextField13.setText(""); _nsTextField13.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField13.setSelectable(true); _nsTextField13.setEnabled(true); _connect(_nsForm3, _nsTextField13, "nextFocusableComponent"); _setFontForComponent(_eoFormCell7, "Lucida Grande", 13, Font.PLAIN); _eoFormCell7.setTitle("Place"); _eoFormCell7.setTitleWidth(42); _eoFormCell7.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell7.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell6, "Lucida Grande", 13, Font.PLAIN); _eoFormCell6.setTitle("Date"); _eoFormCell6.setTitleWidth(42); _eoFormCell6.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell6.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell6.setSize(0, 0); _eoFormCell6.setLocation(-1, 0); _nsForm3.add(_eoFormCell6); _eoFormCell7.setSize(0, 0); _eoFormCell7.setLocation(-1, 0); _nsForm3.add(_eoFormCell7); _setFontForComponent(_nsForm3, "Lucida Grande", 13, Font.PLAIN); _connect(_nsForm2, _nsForm3, "nextFocusableComponent"); _setFontForComponent(_eoFormCell5, "Lucida Grande", 13, Font.PLAIN); _eoFormCell5.setTitle("Place"); _eoFormCell5.setTitleWidth(42); _eoFormCell5.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell5.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell4, "Lucida Grande", 13, Font.PLAIN); _eoFormCell4.setTitle("Date"); _eoFormCell4.setTitleWidth(42); _eoFormCell4.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell4.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell4.setSize(0, 0); _eoFormCell4.setLocation(-1, 0); _nsForm2.add(_eoFormCell4); _eoFormCell5.setSize(0, 0); _eoFormCell5.setLocation(-1, 0); _nsForm2.add(_eoFormCell5); _setFontForComponent(_nsForm2, "Lucida Grande", 13, Font.PLAIN); _connect(_nsForm1, _nsForm2, "nextFocusableComponent"); _setFontForComponent(_eoFormCell3, "Lucida Grande", 13, Font.PLAIN); _eoFormCell3.setTitle("Place"); _eoFormCell3.setTitleWidth(42); _eoFormCell3.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell3.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell2, "Lucida Grande", 13, Font.PLAIN); _eoFormCell2.setTitle("Date"); _eoFormCell2.setTitleWidth(42); _eoFormCell2.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell2.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell2.setSize(0, 0); _eoFormCell2.setLocation(-1, 0); _nsForm1.add(_eoFormCell2); _eoFormCell3.setSize(0, 0); _eoFormCell3.setLocation(-1, 0); _nsForm1.add(_eoFormCell3); _setFontForComponent(_nsForm1, "Lucida Grande", 13, Font.PLAIN); _connect(_nsForm0, _nsForm1, "nextFocusableComponent"); _setFontForComponent(_eoFormCell1, "Lucida Grande", 13, Font.PLAIN); _eoFormCell1.setTitle("Place"); _eoFormCell1.setTitleWidth(42); _eoFormCell1.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell1.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _setFontForComponent(_eoFormCell0, "Lucida Grande", 13, Font.PLAIN); _eoFormCell0.setTitle("Date"); _eoFormCell0.setTitleWidth(42); _eoFormCell0.fieldComponent().setPreferredSize(new Dimension(2, 22)); _eoFormCell0.titleComponent().setHorizontalAlignment(javax.swing.JTextField.RIGHT); _eoFormCell0.setSize(0, 0); _eoFormCell0.setLocation(-1, 0); _nsForm0.add(_eoFormCell0); _eoFormCell1.setSize(0, 0); _eoFormCell1.setLocation(-1, 0); _nsForm0.add(_eoFormCell1); _setFontForComponent(_nsForm0, "Lucida Grande", 13, Font.PLAIN); _connect(_nsComboBox2, _nsForm0, "nextFocusableComponent"); _connect(_nsComboBox1, _nsComboBox2, "nextFocusableComponent"); _connect(_popup0, _nsComboBox1, "nextFocusableComponent"); _setFontForComponent(_popup0, "Lucida Grande", 13, Font.PLAIN); _connect(_nsTextField12, _popup0, "nextFocusableComponent"); _setFontForComponent(_nsTextField12, "Lucida Grande", 13, Font.PLAIN); _nsTextField12.setEditable(true); _nsTextField12.setOpaque(true); _nsTextField12.setText(""); _nsTextField12.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField12.setSelectable(true); _nsTextField12.setEnabled(true); _connect(_nsComboBox0, _nsTextField12, "nextFocusableComponent"); if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _nsComboBox0, "surname"); } if (_replacedObjects.objectForKey("_individualEditController0") == null) { _connect(_individualEditController0, _eoFrame2, "window"); } _nsButton10.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_individualEditController0, "save", _nsButton10), "")); _setFontForComponent(_nsButton10, "Lucida Grande", 13, Font.PLAIN); _nsButton10.setMargin(new Insets(0, 2, 0, 2)); if (!(_nsView4.getLayout() instanceof EOViewLayout)) { _nsView4.setLayout(new EOViewLayout()); } _nsButton10.setSize(77, 26); _nsButton10.setLocation(431, 548); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsButton10, EOViewLayout.MinYMargin); _nsView4.add(_nsButton10); _nsButton18.setSize(77, 26); _nsButton18.setLocation(348, 548); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsButton18, EOViewLayout.MinYMargin); _nsView4.add(_nsButton18); _popup0.setSize(95, 26); _popup0.setLocation(410, -6); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_popup0, EOViewLayout.MinYMargin); _nsView4.add(_popup0); _nsComboBox3.setSize(273, 26); _nsComboBox3.setLocation(235, 418); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox3, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox3); _nsTextField24.setSize(50, 17); _nsTextField24.setLocation(351, -3); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField24, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField24); _nsTextField25.setSize(63, 17); _nsTextField25.setLocation(30, 2); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField25, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField25); _nsTextField26.setSize(85, 17); _nsTextField26.setLocation(11, 27); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField26, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField26); _nsTextField27.setSize(55, 17); _nsTextField27.setLocation(11, 399); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField27, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField27); _nsImageView1.setSize(96, 93); _nsImageView1.setLocation(411, 97); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsImageView1, EOViewLayout.MinYMargin); _nsView4.add(_nsImageView1); _nsButton17.setSize(121, 26); _nsButton17.setLocation(400, 193); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsButton17, EOViewLayout.MinYMargin); _nsView4.add(_nsButton17); _nsTextField12.setSize(213, 22); _nsTextField12.setLocation(109, 24); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField12, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField12); _nsTextField28.setSize(43, 17); _nsTextField28.setLocation(186, 57); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField28, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField28); _nsComboBox2.setSize(125, 26); _nsComboBox2.setLocation(234, 52); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox2, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox2); _nsComboBox0.setSize(216, 26); _nsComboBox0.setLocation(109, -6); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox0, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox0); _nsBox8.setSize(384, 76); _nsBox8.setLocation(13, 87); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsBox8, EOViewLayout.MinYMargin); _nsView4.add(_nsBox8); _nsBox10.setSize(384, 76); _nsBox10.setLocation(13, 163); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsBox10, EOViewLayout.MinYMargin); _nsView4.add(_nsBox10); _nsBox12.setSize(384, 76); _nsBox12.setLocation(13, 239); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsBox12, EOViewLayout.MinYMargin); _nsView4.add(_nsBox12); _nsBox14.setSize(384, 76); _nsBox14.setLocation(13, 314); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsBox14, EOViewLayout.MinYMargin); _nsView4.add(_nsBox14); _nsTextField13.setSize(126, 22); _nsTextField13.setLocation(54, 420); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField13, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField13); _nsTextField29.setSize(30, 13); _nsTextField29.setLocation(20, 425); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField29, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField29); _nsTextField30.setSize(44, 13); _nsTextField30.setLocation(188, 427); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField30, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField30); _nsTextField31.setSize(30, 13); _nsTextField31.setLocation(20, 474); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField31, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField31); _nsTextField32.setSize(78, 17); _nsTextField32.setLocation(11, 448); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField32, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField32); _nsTextField33.setSize(44, 13); _nsTextField33.setLocation(188, 476); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField33, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField33); _nsTextField21.setSize(126, 22); _nsTextField21.setLocation(54, 469); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField21, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField21); _nsComboBox5.setSize(273, 26); _nsComboBox5.setLocation(235, 467); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox5, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox5); _nsTextField20.setSize(126, 22); _nsTextField20.setLocation(54, 518); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField20, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField20); _nsComboBox6.setSize(273, 26); _nsComboBox6.setLocation(235, 516); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox6, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox6); _nsTextField34.setSize(44, 13); _nsTextField34.setLocation(188, 525); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField34, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField34); _nsTextField35.setSize(30, 13); _nsTextField35.setLocation(20, 523); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField35, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField35); _nsTextField36.setSize(117, 17); _nsTextField36.setLocation(11, 497); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField36, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField36); _nsBox16.setSize(491, 5); _nsBox16.setLocation(13, 79); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsBox16, EOViewLayout.MinYMargin); _nsView4.add(_nsBox16); _nsButton19.setSize(58, 55); _nsButton19.setLocation(430, 339); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsButton19, EOViewLayout.MinYMargin); _nsView4.add(_nsButton19); _nsTextField22.setSize(96, 22); _nsTextField22.setLocation(409, 303); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField22, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField22); _nsTextField39.setSize(34, 17); _nsTextField39.setLocation(409, 284); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField39, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField39); _nsTextField40.setSize(34, 17); _nsTextField40.setLocation(406, 55); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField40, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField40); _nsTextField23.setSize(67, 22); _nsTextField23.setLocation(436, 53); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField23, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField23); _nsComboBox1.setSize(125, 26); _nsComboBox1.setLocation(59, 52); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsComboBox1, EOViewLayout.MinYMargin); _nsView4.add(_nsComboBox1); _nsTextField41.setSize(43, 17); _nsTextField41.setLocation(11, 57); ((EOViewLayout)_nsView4.getLayout()).setAutosizingMask(_nsTextField41, EOViewLayout.MinYMargin); _nsView4.add(_nsTextField41); if (_replacedObjects.objectForKey("_eoFrame2") == null) { _nsView4.setSize(517, 599); _eoFrame2.setTitle("IndividualEdit"); _eoFrame2.setLocation(357, 119); _eoFrame2.setSize(517, 599); } _jCheckBox0.setSize(77, 17); _jCheckBox0.setLocation(0, 0); _nsMatrix1.add(_jCheckBox0); _jCheckBox1.setSize(77, 17); _jCheckBox1.setLocation(81, 0); _nsMatrix1.add(_jCheckBox1); _setFontForComponent(_nsTextField11, "Lucida Grande", 13, Font.PLAIN); _nsTextField11.setEditable(false); _nsTextField11.setOpaque(false); _nsTextField11.setText("Notes:"); _nsTextField11.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField11.setSelectable(false); _nsTextField11.setEnabled(true); _nsTextField11.setBorder(null); _setFontForComponent(_nsTextField10, "Lucida Grande", 13, Font.PLAIN); _nsTextField10.setEditable(false); _nsTextField10.setOpaque(false); _nsTextField10.setText("Events:"); _nsTextField10.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField10.setSelectable(false); _nsTextField10.setEnabled(true); _nsTextField10.setBorder(null); if (_replacedObjects.objectForKey("_jCheckBox1") == null) { _setFontForComponent(_jCheckBox1, "Lucida Grande", 13, Font.PLAIN); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _jCheckBox1, "privacy"); } if (_replacedObjects.objectForKey("_jCheckBox0") == null) { _setFontForComponent(_jCheckBox0, "Lucida Grande", 13, Font.PLAIN); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _jCheckBox0, "locked"); } if (_replacedObjects.objectForKey("_nsTextField9") == null) { _setFontForComponent(_nsTextField9, "Lucida Grande", 13, Font.PLAIN); _nsTextField9.setEditable(false); _nsTextField9.setOpaque(false); _nsTextField9.setText("System Font Text"); _nsTextField9.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField9.setSelectable(false); _nsTextField9.setEnabled(true); _nsTextField9.setBorder(null); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _nsTextField9, "infoText"); } if (_replacedObjects.objectForKey("_nsTextView0") == null) { _nsTextView0.setEditable(false); _nsTextView0.setOpaque(true); _nsTextView0.setText(""); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _nsTextView0, "noteText"); } if (_replacedObjects.objectForKey("_nsTextField8") == null) { _setFontForComponent(_nsTextField8, "Lucida Grande", 13, Font.PLAIN); _nsTextField8.setEditable(false); _nsTextField8.setOpaque(false); _nsTextField8.setText("System Font Text"); _nsTextField8.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField8.setSelectable(false); _nsTextField8.setEnabled(true); _nsTextField8.setBorder(null); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _nsTextField8, "detailsText"); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _nsImageView0, "photo"); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_individualDetailController0, _nsTableView2, "eventTable"); } if (_replacedObjects.objectForKey("_nsTableView2") == null) { _connect(_nsTableView2, _individualDetailController0, "dataSource"); } _eoTableColumn5.setMinWidth(4); _eoTableColumn5.setMaxWidth(1000); _eoTableColumn5.setPreferredWidth(388); _eoTableColumn5.setWidth(388); _eoTableColumn5.setResizable(true); _eoTableColumn5.setHeaderValue("Place"); if ((_eoTableColumn5.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn5.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn4.setMinWidth(8); _eoTableColumn4.setMaxWidth(1000); _eoTableColumn4.setPreferredWidth(131); _eoTableColumn4.setWidth(131); _eoTableColumn4.setResizable(true); _eoTableColumn4.setHeaderValue("Date"); if ((_eoTableColumn4.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn4.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn3.setMinWidth(40); _eoTableColumn3.setMaxWidth(1000); _eoTableColumn3.setPreferredWidth(95); _eoTableColumn3.setWidth(95); _eoTableColumn3.setResizable(true); _eoTableColumn3.setHeaderValue("Type"); if ((_eoTableColumn3.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn3.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } if (_replacedObjects.objectForKey("_nsTableView2") == null) { _nsTableView2.table().addColumn(_eoTableColumn3); _nsTableView2.table().addColumn(_eoTableColumn4); _nsTableView2.table().addColumn(_eoTableColumn5); _setFontForComponent(_nsTableView2.table().getTableHeader(), "Lucida Grande", 11, Font.PLAIN); _nsTableView2.table().setRowHeight(20); } if (!(_nsView1.getLayout() instanceof EOViewLayout)) { _nsView1.setLayout(new EOViewLayout()); } _nsTableView2.setSize(640, 189); _nsTableView2.setLocation(20, 279); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTableView2, EOViewLayout.MinYMargin); _nsView1.add(_nsTableView2); _nsImageView0.setSize(161, 176); _nsImageView0.setLocation(502, 83); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsImageView0, EOViewLayout.MinYMargin); _nsView1.add(_nsImageView0); _nsTextView0.setSize(456, 88); _nsTextView0.setLocation(20, 168); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTextView0, EOViewLayout.MinYMargin); _nsView1.add(_nsTextView0); _nsTextField9.setSize(462, 131); _nsTextField9.setLocation(18, 20); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTextField9, EOViewLayout.MinYMargin); _nsView1.add(_nsTextField9); _nsTextField10.setSize(49, 17); _nsTextField10.setLocation(18, 261); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTextField10, EOViewLayout.MinYMargin); _nsView1.add(_nsTextField10); _nsTextField11.setSize(45, 17); _nsTextField11.setLocation(18, 150); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTextField11, EOViewLayout.MinYMargin); _nsView1.add(_nsTextField11); _nsMatrix1.setSize(159, 18); _nsMatrix1.setLocation(503, 62); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsMatrix1, EOViewLayout.MinYMargin); _nsView1.add(_nsMatrix1); _nsTextField8.setSize(160, 41); _nsTextField8.setLocation(503, 20); ((EOViewLayout)_nsView1.getLayout()).setAutosizingMask(_nsTextField8, EOViewLayout.MinYMargin); _nsView1.add(_nsTextField8); if (_replacedObjects.objectForKey("_nsButton9") == null) { _setFontForComponent(_nsButton9, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsButton9.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField7, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField7.setEditable(false); _nsTextField7.setOpaque(false); _nsTextField7.setText("Grandmother\n"); _nsTextField7.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField7.setSelectable(false); _nsTextField7.setEnabled(true); _nsTextField7.setBorder(null); if (_replacedObjects.objectForKey("_nsButton8") == null) { _setFontForComponent(_nsButton8, "Lucida Grande", 13, Font.PLAIN); _nsButton8.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField6, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField6.setEditable(false); _nsTextField6.setOpaque(false); _nsTextField6.setText("Grandfather\n"); _nsTextField6.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField6.setSelectable(false); _nsTextField6.setEnabled(true); _nsTextField6.setBorder(null); if (_replacedObjects.objectForKey("_nsButton7") == null) { _setFontForComponent(_nsButton7, "Lucida Grande", 13, Font.PLAIN); _nsButton7.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField5, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField5.setEditable(false); _nsTextField5.setOpaque(false); _nsTextField5.setText("Grandmother\n"); _nsTextField5.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField5.setSelectable(false); _nsTextField5.setEnabled(true); _nsTextField5.setBorder(null); if (_replacedObjects.objectForKey("_nsButton6") == null) { _setFontForComponent(_nsButton6, "Lucida Grande", 13, Font.PLAIN); _nsButton6.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField4, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField4.setEditable(false); _nsTextField4.setOpaque(false); _nsTextField4.setText("Mother\n"); _nsTextField4.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField4.setSelectable(false); _nsTextField4.setEnabled(true); _nsTextField4.setBorder(null); if (_replacedObjects.objectForKey("_nsButton5") == null) { _setFontForComponent(_nsButton5, "Lucida Grande", 13, Font.PLAIN); _nsButton5.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField3, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField3.setEditable(false); _nsTextField3.setOpaque(false); _nsTextField3.setText("Spouse\n"); _nsTextField3.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField3.setSelectable(false); _nsTextField3.setEnabled(true); _nsTextField3.setBorder(null); if (_replacedObjects.objectForKey("_nsButton4") == null) { _setFontForComponent(_nsButton4, "Lucida Grande", 13, Font.PLAIN); _nsButton4.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField2, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField2.setEditable(false); _nsTextField2.setOpaque(false); _nsTextField2.setText("Individual\n"); _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField2.setSelectable(false); _nsTextField2.setEnabled(true); _nsTextField2.setBorder(null); if (_replacedObjects.objectForKey("_nsButton3") == null) { _setFontForComponent(_nsButton3, "Lucida Grande", 13, Font.PLAIN); _nsButton3.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField1, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField1.setEditable(false); _nsTextField1.setOpaque(false); _nsTextField1.setText("Father\n"); _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField1.setSelectable(false); _nsTextField1.setEnabled(true); _nsTextField1.setBorder(null); if (_replacedObjects.objectForKey("_nsButton2") == null) { _setFontForComponent(_nsButton2, "Lucida Grande", 13, Font.PLAIN); _nsButton2.setMargin(new Insets(0, 2, 0, 2)); } _setFontForComponent(_nsTextField0, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsTextField0.setEditable(false); _nsTextField0.setOpaque(false); _nsTextField0.setText("Grandfather\n"); _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField0.setSelectable(false); _nsTextField0.setEnabled(true); _nsTextField0.setBorder(null); if (_replacedObjects.objectForKey("_nsButton1") == null) { _setFontForComponent(_nsButton1, "Lucida Grande", 13, Font.PLAIN); _nsButton1.setMargin(new Insets(0, 2, 0, 2)); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN + Font.BOLD); _nsButton0.setMargin(new Insets(0, 2, 0, 2)); } _eoTableColumn2.setMinWidth(40); _eoTableColumn2.setMaxWidth(1000); _eoTableColumn2.setPreferredWidth(181); _eoTableColumn2.setWidth(181); _eoTableColumn2.setResizable(true); _eoTableColumn2.setHeaderValue(""); if ((_eoTableColumn2.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn2.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } if (_replacedObjects.objectForKey("_nsTableView1") == null) { _nsTableView1.table().addColumn(_eoTableColumn2); _setFontForComponent(_nsTableView1.table().getTableHeader(), "Lucida Grande", 11, Font.PLAIN); _nsTableView1.table().setRowHeight(20); } if (!(_nsBox3.getLayout() instanceof EOViewLayout)) { _nsBox3.setLayout(new EOViewLayout()); } _nsTableView1.setSize(186, 175); _nsTableView1.setLocation(14, 6); ((EOViewLayout)_nsBox3.getLayout()).setAutosizingMask(_nsTableView1, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsBox3.add(_nsTableView1); if (!(_nsBox2.getLayout() instanceof EOViewLayout)) { _nsBox2.setLayout(new EOViewLayout()); } _nsBox3.setSize(212, 195); _nsBox3.setLocation(0, 18); ((EOViewLayout)_nsBox2.getLayout()).setAutosizingMask(_nsBox3, EOViewLayout.MinYMargin); _nsBox2.add(_nsBox3); _nsBox2.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Individual's Spouses", false, "Lucida Grande", 13, Font.PLAIN + Font.BOLD)); _eoTableColumn1.setMinWidth(8); _eoTableColumn1.setMaxWidth(1000); _eoTableColumn1.setPreferredWidth(158); _eoTableColumn1.setWidth(158); _eoTableColumn1.setResizable(true); _eoTableColumn1.setHeaderValue(""); if ((_eoTableColumn1.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn1.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } _eoTableColumn0.setMinWidth(10); _eoTableColumn0.setMaxWidth(40); _eoTableColumn0.setPreferredWidth(20); _eoTableColumn0.setWidth(20); _eoTableColumn0.setResizable(false); _eoTableColumn0.setHeaderValue(""); if ((_eoTableColumn0.getCellRenderer() instanceof DefaultTableCellRenderer) || (_eoTableColumn0.getCellRenderer() == null)) { DefaultTableCellRenderer renderer = new DefaultTableCellRenderer(); renderer.setHorizontalAlignment(javax.swing.JTextField.CENTER); _eoTableColumn0.setCellRenderer(renderer); } if ((_eoTableColumn0.getHeaderRenderer() != null)) { ((DefaultTableCellRenderer)(_eoTableColumn0.getHeaderRenderer())).setHorizontalAlignment(javax.swing.JTextField.LEFT); } if (_replacedObjects.objectForKey("_nsTableView0") == null) { _nsTableView0.table().addColumn(_eoTableColumn0); _nsTableView0.table().addColumn(_eoTableColumn1); _setFontForComponent(_nsTableView0.table().getTableHeader(), "Lucida Grande", 11, Font.PLAIN); _nsTableView0.table().setRowHeight(20); } if (!(_nsBox1.getLayout() instanceof EOViewLayout)) { _nsBox1.setLayout(new EOViewLayout()); } _nsTableView0.setSize(186, 175); _nsTableView0.setLocation(14, 6); ((EOViewLayout)_nsBox1.getLayout()).setAutosizingMask(_nsTableView0, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsBox1.add(_nsTableView0); if (!(_nsBox0.getLayout() instanceof EOViewLayout)) { _nsBox0.setLayout(new EOViewLayout()); } _nsBox1.setSize(218, 195); _nsBox1.setLocation(0, 18); ((EOViewLayout)_nsBox0.getLayout()).setAutosizingMask(_nsBox1, EOViewLayout.MinYMargin); _nsBox0.add(_nsBox1); _nsBox0.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("Children", false, "Lucida Grande", 13, Font.PLAIN + Font.BOLD)); if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); } _nsBox0.setSize(218, 213); _nsBox0.setLocation(17, 271); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsBox0, EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsBox0); _nsBox2.setSize(212, 213); _nsBox2.setLocation(237, 271); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsBox2, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsBox2); _nsButton0.setSize(143, 28); _nsButton0.setLocation(299, 129); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton0); _nsButton1.setSize(208, 105); _nsButton1.setLocation(458, 19); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton1, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable); _nsView0.add(_nsButton1); _nsTextField0.setSize(114, 32); _nsTextField0.setLocation(458, 1); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin); _nsView0.add(_nsTextField0); _nsButton2.setSize(204, 105); _nsButton2.setLocation(238, 19); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton2, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton2); _nsTextField1.setSize(114, 32); _nsTextField1.setLocation(238, 1); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin); _nsView0.add(_nsTextField1); _nsButton3.setSize(204, 105); _nsButton3.setLocation(18, 19); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton3, EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable); _nsView0.add(_nsButton3); _nsTextField2.setSize(114, 32); _nsTextField2.setLocation(18, 1); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin); _nsView0.add(_nsTextField2); _nsButton4.setSize(204, 105); _nsButton4.setLocation(18, 163); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton4, EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton4); _nsTextField3.setSize(114, 32); _nsTextField3.setLocation(18, 145); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField3, EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.MinYMargin); _nsView0.add(_nsTextField3); _nsButton5.setSize(204, 105); _nsButton5.setLocation(238, 163); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton5, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton5); _nsTextField4.setSize(114, 32); _nsTextField4.setLocation(238, 145); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField4, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.MinYMargin); _nsView0.add(_nsTextField4); _nsButton6.setSize(204, 105); _nsButton6.setLocation(458, 140); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton6, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton6); _nsTextField5.setSize(114, 32); _nsTextField5.setLocation(458, 122); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField5, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.MinYMargin); _nsView0.add(_nsTextField5); _nsButton7.setSize(207, 105); _nsButton7.setLocation(458, 262); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton7, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton7); _nsTextField6.setSize(114, 32); _nsTextField6.setLocation(458, 244); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField6, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.MinYMargin); _nsView0.add(_nsTextField6); _nsButton8.setSize(204, 105); _nsButton8.setLocation(458, 383); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton8, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton8); _nsTextField7.setSize(114, 32); _nsTextField7.setLocation(458, 365); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField7, EOViewLayout.MinXMargin | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.MinYMargin); _nsView0.add(_nsTextField7); _nsButton9.setSize(143, 28); _nsButton9.setLocation(79, 129); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton9, EOViewLayout.MinXMargin | EOViewLayout.WidthSizable | EOViewLayout.MaxXMargin | EOViewLayout.MaxYMargin | EOViewLayout.HeightSizable | EOViewLayout.MinYMargin); _nsView0.add(_nsButton9); _nsTabView0.addTab("Family View", _nsView0); _nsTabView0.addTab("Individual Details", _nsView1); if (!(_nsView3.getLayout() instanceof EOViewLayout)) { _nsView3.setLayout(new EOViewLayout()); } _nsTabView0.setSize(690, 528); _nsTabView0.setLocation(8, 7); ((EOViewLayout)_nsView3.getLayout()).setAutosizingMask(_nsTabView0, EOViewLayout.WidthSizable | EOViewLayout.HeightSizable); _nsView3.add(_nsTabView0); if (_replacedObjects.objectForKey("_eoFrame1") == null) { _nsView3.setSize(706, 542); _eoFrame1.setTitle("MacPAF"); _eoFrame1.setLocation(153, 308); _eoFrame1.setSize(706, 542); } _setFontForComponent(_jRadioButton3, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_jRadioButton2, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_jRadioButton1, "Lucida Grande", 13, Font.PLAIN); _setFontForComponent(_jRadioButton0, "Lucida Grande", 13, Font.PLAIN); if (_replacedObjects.objectForKey("_nsMatrix0") == null) { _jRadioButton0.setSize(147, 18); _jRadioButton0.setLocation(0, 0); _nsMatrix0.add(_jRadioButton0); _jRadioButton1.setSize(147, 18); _jRadioButton1.setLocation(0, 20); _nsMatrix0.add(_jRadioButton1); _jRadioButton2.setSize(147, 18); _jRadioButton2.setLocation(0, 40); _nsMatrix0.add(_jRadioButton2); _jRadioButton3.setSize(147, 18); _jRadioButton3.setLocation(0, 60); _nsMatrix0.add(_jRadioButton3); _setFontForComponent(_nsMatrix0, "Lucida Grande", 13, Font.PLAIN); } if (!(_nsView2.getLayout() instanceof EOViewLayout)) { _nsView2.setLayout(new EOViewLayout()); } _nsMatrix0.setSize(147, 78); _nsMatrix0.setLocation(47, 44); ((EOViewLayout)_nsView2.getLayout()).setAutosizingMask(_nsMatrix0, EOViewLayout.MinYMargin); _nsView2.add(_nsMatrix0); _nsButton21.setSize(77, 26); _nsButton21.setLocation(190, 160); ((EOViewLayout)_nsView2.getLayout()).setAutosizingMask(_nsButton21, EOViewLayout.MinYMargin); _nsView2.add(_nsButton21); _nsButton20.setSize(77, 26); _nsButton20.setLocation(106, 160); ((EOViewLayout)_nsView2.getLayout()).setAutosizingMask(_nsButton20, EOViewLayout.MinYMargin); _nsView2.add(_nsButton20); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _nsView2.setSize(276, 196); _eoFrame0.setTitle("Print Reports"); _eoFrame0.setLocation(280, 390); _eoFrame0.setSize(276, 196); } } | 6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/da48cac11a5f1f0affd57bba7a54108fd37ff96c/_MyDocument_EOArchive_English.java/clean/MacPAF/English.lproj/MyDocument.nib/_MyDocument_EOArchive_English.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
389,
2738,
1435,
288,
3639,
2240,
6315,
2738,
5621,
3639,
389,
542,
5711,
1290,
1841,
24899,
2387,
3616,
5558,
16,
315,
48,
5286,
350,
69,
611,
2450,
323,
3113,
5958,
16,
10063... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2738,
1435,
288,
3639,
2240,
6315,
2738,
5621,
3639,
389,
542,
5711,
1290,
1841,
24899,
2387,
3616,
5558,
16,
315,
48,
5286,
350,
69,
611,
2450,
323,
3113,
5958,
16,
10063... |
* didn't take accout of it and always return another instance; passing * another instance to load the same type and identity as an existing | * didn't take accout of it and always return another instance; passing * another instance to load the same type and identity as an existing | protected EntityBean fetchAndLoadBean(ThreadContext callContext, Database db) throws org.exolab.castor.jdo.PersistenceException, org.exolab.castor.jdo.ObjectNotFoundException, org.exolab.castor.jdo.TransactionNotInProgressException, org.exolab.castor.jdo.LockNotGrantedException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException { /* Each bean deployment has a unique KeyGenerator that is responsible for two operations. 1. Convert EJB developer defined complex primary keys to Castor JDO Complex objects 2. Extract a primary key object from a loaded Entity bean instance. */ KeyGenerator kg = callContext.getDeploymentInfo().getKeyGenerator(); /* obtains a bean instance from the method ready pool, or instantiates a new one calling setEntityContext. Also places the bean instance in the tx method ready pool. */ EntityBean bean = null; /* Castor JDO doesn't recognize EJB complex primary keys, so if the key is complex it must be marshalled into a Castor JDO Complex object in order to perform a load operation. */ if ( kg.isKeyComplex() ) { Complex complexIdentity = kg.getJdoComplex(callContext.getPrimaryKey()); /* * yip: Castor JDO bases on and maintains one instance of object of * the same type and identity in each transaction. fetchFreeInstance * didn't take accout of it and always return another instance; passing * another instance to load the same type and identity as an existing * object will casuses PersistenceException to be thrown. It's why "bean" * is commented out. */ bean = (EntityBean)db.load(callContext.getDeploymentInfo().getBeanClass(), complexIdentity/*, bean*/); } else { bean = (EntityBean)db.load(callContext.getDeploymentInfo().getBeanClass(), callContext.getPrimaryKey()/*, bean*/); } return bean; } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/573534e5a220c625cf2ee9c177d1c12d1949a023/CastorCMP11_EntityContainer.java/clean/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3887,
3381,
2158,
1876,
2563,
3381,
12,
3830,
1042,
745,
1042,
16,
5130,
1319,
13,
565,
1216,
225,
2358,
18,
338,
355,
378,
18,
4155,
280,
18,
78,
2896,
18,
13182,
503,
16,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3887,
3381,
2158,
1876,
2563,
3381,
12,
3830,
1042,
745,
1042,
16,
5130,
1319,
13,
565,
1216,
225,
2358,
18,
338,
355,
378,
18,
4155,
280,
18,
78,
2896,
18,
13182,
503,
16,
2358,
... |
assertTrue( | assertNotNull( | public void test_getNetworkInterface() { int groupPort = Support_PortManager.getNextPort(); try { if (atLeastOneInterface) { // validate that we get the expected response when one was not // set mss = new MulticastSocket(groupPort); NetworkInterface theInterface = mss.getNetworkInterface(); assertTrue( "network interface returned wrong network interface when not set:" + theInterface, theInterface.getInetAddresses() != null); InetAddress firstAddress = (InetAddress) theInterface .getInetAddresses().nextElement(); // validate we the first address in the network interface is the // ANY address String preferIPv4StackValue = System .getProperty("java.net.preferIPv4Stack"); String preferIPv6AddressesValue = System .getProperty("java.net.preferIPv6Addresses"); if (((preferIPv4StackValue == null) || preferIPv4StackValue .equalsIgnoreCase("false")) && (preferIPv6AddressesValue != null) && (preferIPv6AddressesValue.equals("true"))) { assertTrue( "network interface returned wrong network interface when not set:" + theInterface, InetAddress .getByName("::0").equals(firstAddress)); } else { assertTrue( "network interface returned wrong network interface when not set:" + theInterface, InetAddress.getByName( "0.0.0.0").equals(firstAddress)); } mss.setNetworkInterface(networkInterface1); assertTrue( "getNetworkInterface did not return interface set by setNeworkInterface", networkInterface1.equals(mss.getNetworkInterface())); if (atLeastTwoInterfaces) { mss.setNetworkInterface(networkInterface2); assertTrue( "getNetworkInterface did not return network interface set by second setNetworkInterface call", networkInterface2.equals(mss.getNetworkInterface())); } groupPort = Support_PortManager.getNextPort(); mss = new MulticastSocket(groupPort); if (IPV6networkInterface1 != null) { mss.setNetworkInterface(IPV6networkInterface1); assertTrue( "getNetworkInterface did not return interface set by setNeworkInterface", IPV6networkInterface1.equals(mss .getNetworkInterface())); } // validate that we get the expected response when we set via // setInterface groupPort = Support_PortManager.getNextPort(); mss = new MulticastSocket(groupPort); Enumeration addresses = networkInterface1.getInetAddresses(); if (addresses != null) { firstAddress = (InetAddress) addresses.nextElement(); mss.setInterface(firstAddress); assertTrue( "getNetworkInterface did not return interface set by setInterface", networkInterface1.equals(mss.getNetworkInterface())); } } } catch (Exception e) { fail("Exception during getNetworkInterface test: " + e.toString()); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/MulticastSocketTest.java/clean/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
588,
27413,
1435,
288,
202,
202,
474,
1041,
2617,
273,
13619,
67,
2617,
1318,
18,
588,
2134,
2617,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
270,
17319,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
588,
27413,
1435,
288,
202,
202,
474,
1041,
2617,
273,
13619,
67,
2617,
1318,
18,
588,
2134,
2617,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
270,
17319,
33... |
throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); } catch (ArrayIndexOutOfBoundsException aioobExcptn) { throw new RuntimeException("Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExceptedArgsString((RubyObject[])methodArgs)); } System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 2]; System.arraycopy(methodArgs, 0, newMethodArgs, 2, methodArgs.length); newMethodArgs[0] = ruby; newMethodArgs[1] = recv; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (InvocationTargetException itExcptn) { if (itExcptn.getTargetException() instanceof RaiseException) { throw (RaiseException)itExcptn.getTargetException(); } else { itExcptn.getTargetException().printStackTrace(); return ruby.getNil(); } } catch (IllegalAccessException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } catch (IllegalArgumentException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/ReflectionCallbackMethod.java/buggy/org/jruby/core/ReflectionCallbackMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
19817,
921,
27632,
12,
54,
10340,
921,
10665,
16,
1033,
8526,
707,
2615,
16,
19817,
22155,
13,
288,
3639,
309,
261,
8792,
2615,
13,
288,
5411,
19817,
921,
8526,
3127,
1076,
273,
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,
4750,
19817,
921,
27632,
12,
54,
10340,
921,
10665,
16,
1033,
8526,
707,
2615,
16,
19817,
22155,
13,
288,
3639,
309,
261,
8792,
2615,
13,
288,
5411,
19817,
921,
8526,
3127,
1076,
273,
394... |
logMissingAttribute(element, IWorkbenchRegistryConstants.ATT_RELATIVE); return false; | logError( element, "Attribute '" + IWorkbenchRegistryConstants.ATT_RELATIVE + "' not defined. This attribute is required when " + IWorkbenchRegistryConstants.ATT_RELATIONSHIP + "=\"" + relationship + "\"."); return false; | private boolean processView(IConfigurationElement element) { // Get id, relative, and relationship. String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String relative = element.getAttribute(IWorkbenchRegistryConstants.ATT_RELATIVE); String relationship = element.getAttribute(IWorkbenchRegistryConstants.ATT_RELATIONSHIP); String ratioString = element.getAttribute(IWorkbenchRegistryConstants.ATT_RATIO); boolean visible = !VAL_FALSE.equals(element.getAttribute(IWorkbenchRegistryConstants.ATT_VISIBLE)); String closeable = element.getAttribute(IWorkbenchRegistryConstants.ATT_CLOSEABLE); String moveable = element.getAttribute(IWorkbenchRegistryConstants.ATT_MOVEABLE); String standalone = element.getAttribute(IWorkbenchRegistryConstants.ATT_STANDALONE); String showTitle = element.getAttribute(IWorkbenchRegistryConstants.ATT_SHOW_TITLE); float ratio; if (id == null) { logMissingAttribute(element, IWorkbenchRegistryConstants.ATT_ID); return false; } if (relationship == null) { logMissingAttribute(element, IWorkbenchRegistryConstants.ATT_RELATIONSHIP); return false; } if (!VAL_FAST.equals(relationship) && relative == null) { logMissingAttribute(element, IWorkbenchRegistryConstants.ATT_RELATIVE); return false; } // Get the ratio. if (ratioString == null) { // The ratio has not been specified. ratio = IPageLayout.NULL_RATIO; } else { try { ratio = new Float(ratioString).floatValue(); } catch (NumberFormatException e) { return false; } // If the ratio is outside the allowable range, mark it as invalid. if (ratio < IPageLayout.RATIO_MIN || ratio > IPageLayout.RATIO_MAX) ratio = IPageLayout.INVALID_RATIO; } // Get relationship details. boolean stack = false; boolean fast = false; int intRelation = 0; if (relationship.equals(VAL_LEFT)) intRelation = IPageLayout.LEFT; else if (relationship.equals(VAL_RIGHT)) intRelation = IPageLayout.RIGHT; else if (relationship.equals(VAL_TOP)) intRelation = IPageLayout.TOP; else if (relationship.equals(VAL_BOTTOM)) intRelation = IPageLayout.BOTTOM; else if (relationship.equals(VAL_STACK)) stack = true; else if (relationship.equals(VAL_FAST)) fast = true; else return false; if (visible) { // If adding a view (not just a placeholder), remove any existing placeholder. // See bug 85948 [Perspectives] Adding register & expressions view by default to debug perspective fails pageLayout.removePlaceholder(id); } // If stack .. if (stack) { if (visible) pageLayout.stackView(id, relative); else pageLayout.stackPlaceholder(id, relative); } // If the view is a fast view... else if (fast) { if (ratio == IPageLayout.NULL_RATIO) { // The ratio has not been specified. pageLayout.addFastView(id); } else { pageLayout.addFastView(id, ratio); } } else { // The view is a regular view. // If the ratio is not specified or is invalid, use the default ratio. if (ratio == IPageLayout.NULL_RATIO || ratio == IPageLayout.INVALID_RATIO) ratio = IPageLayout.DEFAULT_VIEW_RATIO; if (visible) { if (VAL_TRUE.equals(standalone)) { pageLayout.addStandaloneView(id, !VAL_FALSE .equals(showTitle), intRelation, ratio, relative); } else { pageLayout.addView(id, intRelation, ratio, relative); } } else { pageLayout.addPlaceholder(id, intRelation, ratio, relative); } } if (closeable != null) { pageLayout.getViewLayout(id).setCloseable( !VAL_FALSE.equals(closeable)); } if (moveable != null) { pageLayout.getViewLayout(id).setMoveable( !VAL_FALSE.equals(moveable)); } return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d7b7e8890ee0a3e08c42670a7653238bfb130618/PerspectiveExtensionReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveExtensionReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1207,
1767,
12,
45,
1750,
1046,
930,
13,
288,
3639,
368,
968,
612,
16,
3632,
16,
471,
5232,
18,
3639,
514,
612,
273,
930,
18,
588,
1499,
12,
45,
2421,
22144,
4243,
2918,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1207,
1767,
12,
45,
1750,
1046,
930,
13,
288,
3639,
368,
968,
612,
16,
3632,
16,
471,
5232,
18,
3639,
514,
612,
273,
930,
18,
588,
1499,
12,
45,
2421,
22144,
4243,
2918,
1... |
return actionHandlers; } | return actionHandlers; } | public Map getGlobalActionHandlers() { return actionHandlers; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
20591,
1803,
6919,
1435,
288,
3639,
327,
1301,
6919,
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... | [
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,
1635,
20591,
1803,
6919,
1435,
288,
3639,
327,
1301,
6919,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
System.out.println("--- Element " + vp_elt.getName() + " new size=(" + size.width + ", " + size.height + ")"); System.out.println("\thashcode=" + vp_elt.hashCode()); | public void setSizeOf(int idx, Dimension size) { ConfigElement vp_elt = (ConfigElement) getElement(idx); System.out.println("--- Element " + vp_elt.getName() + " new size=(" + size.width + ", " + size.height + ")"); System.out.println("\thashcode=" + vp_elt.hashCode()); double vp_width = (double) size.width / mDesktopSize.getWidth(); double vp_height = (double) size.height / mDesktopSize.getHeight(); if ( vp_width > 1.0 ) { vp_width = 1.0; } if ( vp_height > 1.0 ) { vp_height = 1.0; } vp_elt.setProperty("size", 0, new Double(vp_width)); vp_elt.setProperty("size", 1, new Double(vp_height)); } | 7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/063d270443f04965093cb5a1eb999e3a407381e9/ViewportPlacer.java/clean/modules/vrjuggler/vrjconfig/customeditors/display_window/org/vrjuggler/vrjconfig/customeditors/display_window/ViewportPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
19106,
951,
12,
474,
2067,
16,
13037,
963,
13,
282,
288,
1377,
1903,
1046,
18500,
67,
20224,
273,
261,
809,
1046,
13,
7426,
12,
3465,
1769,
1377,
2332,
18,
659,
18,
8222,
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,
565,
1071,
918,
19106,
951,
12,
474,
2067,
16,
13037,
963,
13,
282,
288,
1377,
1903,
1046,
18500,
67,
20224,
273,
261,
809,
1046,
13,
7426,
12,
3465,
1769,
1377,
2332,
18,
659,
18,
8222,
293... | |
for (int i = 0; i < m_resourceTypeList.size(); i++) { I_CmsResourceType type = (I_CmsResourceType)m_resourceTypeList.get(i); if (type.getTypeName().equals(typeName)) { return type; } | I_CmsResourceType result = null; if (typeId < m_resourceTypes.length) { result = m_resourceTypes[typeId]; | public I_CmsResourceType getResourceType(String typeName) throws CmsLoaderException { for (int i = 0; i < m_resourceTypeList.size(); i++) { I_CmsResourceType type = (I_CmsResourceType)m_resourceTypeList.get(i); if (type.getTypeName().equals(typeName)) { return type; } } throw new CmsLoaderException( "Unknown resource type name requested: " + typeName, CmsLoaderException.C_LOADER_UNKNOWN_RESOURCE_TYPE); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0b7cef331a3b5c89902387e268aeea9df1728287/CmsResourceManager.java/buggy/src/org/opencms/loader/CmsResourceManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
67,
4747,
15631,
22779,
12,
780,
8173,
13,
1216,
2149,
2886,
503,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
3146,
559,
682,
18,
1467,
5621,
277,
27245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4747,
15631,
22779,
12,
780,
8173,
13,
1216,
2149,
2886,
503,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
3146,
559,
682,
18,
1467,
5621,
277,
27245,
... |
responseHeaders.parse(in); | responseHeaders.parse(lis); | Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new ProtocolException(line); } len = line.length(); int start = 5, end = 6; while (line.charAt(end) != '.') { end++; } int majorVersion = Integer.parseInt(line.substring(start, end)); start = end + 1; end = start + 1; while (line.charAt(end) != ' ') { end++; } int minorVersion = Integer.parseInt(line.substring(start, end)); start = end + 1; end = start + 3; int code = Integer.parseInt(line.substring(start, end)); String message = line.substring(end + 1, len - 1); // Read response headers Headers responseHeaders = new Headers(); responseHeaders.parse(in); notifyHeaderHandlers(responseHeaders); // Construct response int codeClass = code / 100; Response ret = new Response(majorVersion, minorVersion, code, codeClass, message, responseHeaders); switch (code) { case 204: case 205: case 304: break; default: // Does response body reader want body? boolean notify = (responseBodyReader != null); if (notify) { if (!responseBodyReader.accept(this, ret)) { notify = false; } } readResponseBody(ret, in, notify); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
2306,
26694,
12,
1670,
4348,
316,
13,
565,
1216,
1860,
225,
288,
565,
514,
980,
31,
565,
509,
562,
31,
3639,
368,
2720,
766,
1267,
980,
565,
980,
273,
316,
18,
896,
1670,
5621,
565,
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,
282,
2306,
26694,
12,
1670,
4348,
316,
13,
565,
1216,
1860,
225,
288,
565,
514,
980,
31,
565,
509,
562,
31,
3639,
368,
2720,
766,
1267,
980,
565,
980,
273,
316,
18,
896,
1670,
5621,
565,
3... |
e.printStackTrace(); fail("There is a problem that is preventing the tests to continue!"); | fail("" + e.getMessage()); | private void runMyTest(String whichTest, String locale){ pageContext.setAttribute(Globals.LOCALE_KEY, new Locale(locale, locale), PageContext.SESSION_SCOPE); pageContext.setAttribute(Constants.BEAN_KEY, new SimpleBeanForTesting("Test Value"), PageContext.REQUEST_SCOPE); request.setAttribute("runTest", whichTest); try { pageContext.forward("/test/org/apache/struts/taglib/html/TestImageTag4.jsp"); } catch (Exception e) { e.printStackTrace(); fail("There is a problem that is preventing the tests to continue!"); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/41f313c7dd7ac74b5445118d14aee50b24296729/TestImageTag4.java/clean/src/test/org/apache/struts/taglib/html/TestImageTag4.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
12062,
4709,
12,
780,
1492,
4709,
16,
514,
2573,
15329,
377,
202,
2433,
1042,
18,
542,
1499,
12,
19834,
18,
25368,
67,
3297,
16,
394,
6458,
12,
6339,
16,
2573,
3631,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12062,
4709,
12,
780,
1492,
4709,
16,
514,
2573,
15329,
377,
202,
2433,
1042,
18,
542,
1499,
12,
19834,
18,
25368,
67,
3297,
16,
394,
6458,
12,
6339,
16,
2573,
3631,
34... |
mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); | mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); | public AddressBook() { super("Address Book","0"); setBackground(Color.lightGray); getContentPane().setLayout(new BorderLayout()); //create menubar (top) //merge both the editors commands with this applications commands. //mMenubar = NsMenuManager.createMenuBar("grendel.addressbook.Menus", "grendel.addressbook.MenuLabels", "mainMenubar", defaultActions); // FIXME - need to build the menu bar // (Jeff) mMenubar = buildMenu("menus.xml",defaultActions); setJMenuBar(mMenubar); //collapsble panels holds toolbar. CollapsiblePanel collapsePanel = new CollapsiblePanel(true); collapsePanel.setBorder (new EmptyBorder(5,5,5,5)); //toolbar buttons mTtoolbar = createToolbar(); //collapsible item collapsePanel.add(mTtoolbar); //create status bar (bottom) // mStatusbar = createStatusbar(); JPanel panel1 = new JPanel(); panel1.setLayout(new BorderLayout()); panel1.add(collapsePanel, BorderLayout.NORTH); //hack together the data sources. mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); //Create address panel AddressPanel addressPanel = new AddressPanel (mDataSourceList); panel1.add(addressPanel, BorderLayout.CENTER); // getContentPane().add(mMenubar, BorderLayout.NORTH); getContentPane().add(panel1, BorderLayout.CENTER); setSize (600, 400); //Create Local Address Book //myLocalAddressBook = new ACS_Personal ("MyAddressBook.nab", true); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/clean/grendel/addressbook/AddressBook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5267,
9084,
1435,
288,
3639,
2240,
2932,
1887,
20258,
15937,
20,
8863,
3639,
31217,
12,
2957,
18,
5099,
23521,
1769,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
3639,
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,
1071,
5267,
9084,
1435,
288,
3639,
2240,
2932,
1887,
20258,
15937,
20,
8863,
3639,
31217,
12,
2957,
18,
5099,
23521,
1769,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
3639,
3... |
assertLex(Parser.JAVADOCTAGMARK, lexer); assertLex(Parser.JAVADOCTOKEN, "hello", lexer); | assertLex(Parser.JAVADOCTAG, "@hello", lexer); | public void testOneLinerDocletTag() throws Exception { String in = "/** @hello world */"; Lexer lexer = new JFlexLexer(new StringReader(in)); assertLex(Parser.JAVADOCSTART, lexer); assertLex(Parser.JAVADOCTAGMARK, lexer); assertLex(Parser.JAVADOCTOKEN, "hello", lexer); assertLex(Parser.JAVADOCTOKEN, "world", lexer); assertLex(Parser.JAVADOCEND, lexer); assertLex(0, lexer); } | 2045 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2045/145f451ef926e63f0552aa1026ac26bce61857e0/LexerTest.java/buggy/qdox/src/test/com/thoughtworks/qdox/parser/LexerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3335,
48,
14522,
1759,
1810,
1805,
1435,
1216,
1185,
288,
3639,
514,
316,
273,
2206,
636,
632,
23711,
9117,
1195,
14432,
3639,
14234,
8512,
273,
394,
804,
19667,
13356,
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,
377,
1071,
918,
1842,
3335,
48,
14522,
1759,
1810,
1805,
1435,
1216,
1185,
288,
3639,
514,
316,
273,
2206,
636,
632,
23711,
9117,
1195,
14432,
3639,
14234,
8512,
273,
394,
804,
19667,
13356,
12,... |
double optimizerEstimatedCost, GeneratedMethod closeCleanup) | double optimizerEstimatedCost) | NoPutResultSet getSortResultSet(NoPutResultSet source, boolean distinct, boolean isInSortedOrder, int orderItem, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9e6e461e8a18e9d7ada381c5ec3e7568559831b5/ResultSetFactory.java/buggy/java/engine/org/apache/derby/iapi/sql/execute/ResultSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
2279,
6426,
13198,
15175,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
6494,
10217,
16,
3196,
202,
6494,
8048,
11739,
2448,
16,
202,
202,
474,
1353,
1180,
16,
202,
202,
7823,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
2279,
6426,
13198,
15175,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
6494,
10217,
16,
3196,
202,
6494,
8048,
11739,
2448,
16,
202,
202,
474,
1353,
1180,
16,
202,
202,
7823,
13... |
StatisticsIF statistics = waitForNextStatistics(alias, "10s", null, 20000); | StatisticsResultMonitor srm = new StatisticsResultMonitor(alias, "10s"); assertEquals("Timeout", ResultMonitor.SUCCESS, srm.getResult()); StatisticsIF statistics = srm.getStatistics(); | public void testStatistics() throws Exception { String testName = "statistics"; String alias = testName; try { String url = TestHelper.buildProxoolUrl(alias, TestConstants.HYPERSONIC_DRIVER, TestConstants.HYPERSONIC_TEST_URL); Properties info = new Properties(); info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); info.setProperty(ProxoolConstants.STATISTICS_PROPERTY, "10s,15s"); info.setProperty(ProxoolConstants.MINIMUM_CONNECTION_COUNT_PROPERTY, "1"); // We don't test whether anything is logged, but this line should make something appear info.setProperty(ProxoolConstants.STATISTICS_LOG_LEVEL_PROPERTY, ProxoolConstants.STATISTICS_LOG_LEVEL_DEBUG); // Register pool ProxoolFacade.registerConnectionPool(url, info); // Skip past the first set because they will probably be for only part // of the 10s period. StatisticsIF statistics = waitForNextStatistics(alias, "10s", null, 20000); Connection c = DriverManager.getConnection(url); // Ensure that active time is non-zero (due to rounding) try { Thread.sleep(20); } catch (InterruptedException e) { LOG.error("Awoken", e); } c.close(); statistics = waitForNextStatistics(alias, "10s", statistics, 20000); assertEquals("servedCount", 1L, statistics.getServedCount()); assertEquals("servedPerSecond", 0.09, 0.11, statistics.getServedPerSecond()); assertEquals("refusedCount", 0L, statistics.getRefusedCount()); assertTrue("averageActiveTime > 0", statistics.getAverageActiveTime() > 0); } catch (Exception e) { LOG.error("Whilst performing " + testName, e); throw e; } finally { ProxoolFacade.removeConnectionPool(alias); } } | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/657cf40ca993ee407ee5b7a586e01afb77ab2960/StatisticsTest.java/clean/src/java-test/org/logicalcobwebs/proxool/admin/StatisticsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8569,
1435,
1216,
1185,
288,
3639,
514,
1842,
461,
273,
315,
14438,
14432,
3639,
514,
2308,
273,
1842,
461,
31,
3639,
775,
288,
5411,
514,
880,
273,
7766,
2276,
18,
3510,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8569,
1435,
1216,
1185,
288,
3639,
514,
1842,
461,
273,
315,
14438,
14432,
3639,
514,
2308,
273,
1842,
461,
31,
3639,
775,
288,
5411,
514,
880,
273,
7766,
2276,
18,
3510,... |
for(tempVal = value.fValidator; tempVal == null || tempVal == fValidator; tempVal = tempVal.getBaseValidator()); | for(tempVal = value.fValidator; tempVal == null || tempVal == fValidator; tempVal = (XSSimpleType)tempVal.getBaseType()); | public boolean isDuplicateOf(IDValue value) { // if either validator's null, fall back on string comparison if(fValidator == null || value.fValidator == null) return(fValue.equals(value.fValue)); // are the validators equal? // As always we are obliged to compare by reference... if (fValidator == value.fValidator) { return ((fValidator.compare(fValue, value.fValue)) == 0); } // see if this.fValidator is derived from value.fValidator: DatatypeValidator tempVal; for(tempVal = fValidator; tempVal == null || tempVal == value.fValidator; tempVal = tempVal.getBaseValidator()); if(tempVal != null) { // was derived! return ((value.fValidator.compare(fValue, value.fValue)) == 0); } // see if value.fValidator is derived from this.fValidator: for(tempVal = value.fValidator; tempVal == null || tempVal == fValidator; tempVal = tempVal.getBaseValidator()); if(tempVal != null) { // was derived! return ((fValidator.compare(fValue, value.fValue)) == 0); } // if we're here it means the types weren't related. Must fall back to strings: return(fValue.equals(value.fValue)); } // end compare(IDValue):boolean | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/71823bb76fbbe51476f8c4f76984133133ae289e/IDValue.java/buggy/src/org/apache/xerces/impl/xs/identity/IDValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11826,
951,
12,
734,
620,
460,
13,
288,
3639,
368,
309,
3344,
4213,
1807,
446,
16,
4159,
1473,
603,
533,
5826,
3639,
309,
12,
74,
5126,
422,
446,
747,
460,
18,
74,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
11826,
951,
12,
734,
620,
460,
13,
288,
3639,
368,
309,
3344,
4213,
1807,
446,
16,
4159,
1473,
603,
533,
5826,
3639,
309,
12,
74,
5126,
422,
446,
747,
460,
18,
74,
51... |
void addPropertyChangeListener(PropertyChangeListener listener) { | public void addPropertyChangeListener(PropertyChangeListener listener) { | void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/61a9d7e2741b499eef5ea7f58da2ecc795af5364/Snippet007ColorLabelProvider.java/clean/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet007ColorLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
14324,
15744,
12,
1396,
15744,
2991,
13,
288,
1082,
202,
3427,
6289,
18,
1289,
1396,
15744,
12,
12757,
1769,
202,
202,
97,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
14324,
15744,
12,
1396,
15744,
2991,
13,
288,
1082,
202,
3427,
6289,
18,
1289,
1396,
15744,
12,
12757,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { | public ReflectionCallback(Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { | public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = new Class[argumentTypes.length + 1]; System.arraycopy(argumentTypes, 0, types, 1, argumentTypes.length); types[0] = IRubyObject.class; argumentTypes = types; } try { this.method = type.getMethod(methodName, argumentTypes); } catch (NoSuchMethodException e) { throw new RuntimeException( "NoSuchMethodException: Cannot get method \"" + methodName + "\" in class \"" + type.getName() + "\" by Reflection."); } catch (SecurityException e) { throw new RuntimeException( "SecurityException: Cannot get method \"" + methodName + "\" in class \"" + type.getName() + "\" by Reflection."); } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/765ab8f2eeed4e7c0c131b35b7ecadb0ee2855fd/ReflectionCallback.java/clean/src/org/jruby/runtime/callback/ReflectionCallback.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5685,
2428,
12,
3639,
1659,
618,
16,
3639,
514,
4918,
16,
3639,
1659,
8526,
1237,
2016,
16,
3639,
1250,
353,
5188,
2615,
16,
3639,
1250,
16116,
1305,
16,
3639,
1201,
560,
19353,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5685,
2428,
12,
3639,
1659,
618,
16,
3639,
514,
4918,
16,
3639,
1659,
8526,
1237,
2016,
16,
3639,
1250,
353,
5188,
2615,
16,
3639,
1250,
16116,
1305,
16,
3639,
1201,
560,
19353,
13,... |
setMode(mode); fdOpen(RubyFixnum.fix2int(args[0])); | IOHandler existingIOHandler = getIOHandlerByFileno(fileno); if (existingIOHandler == null) { if (mode == null) { mode = "r"; } handler = new IOHandlerUnseekable(getRuntime(), fileno, mode); modes = new IOModes(getRuntime(), mode); registerIOHandler(handler); } else { handler = existingIOHandler; if (mode == null) { mode = handler.getModeString(); } modes = new IOModes(getRuntime(), mode); handler.reset(modes); } | public IRubyObject initialize(IRubyObject[] args) { closeStreams(); String mode = "r"; if (args.length > 1) { mode = ((RubyString) args[1]).getValue(); } setMode(mode); fdOpen(RubyFixnum.fix2int(args[0])); return this; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4046,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
1746,
10301,
5621,
3639,
514,
1965,
273,
315,
86,
14432,
3639,
309,
261,
1968,
18,
2469,
405,
404,
13,
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,
15908,
10340,
921,
4046,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
1746,
10301,
5621,
3639,
514,
1965,
273,
315,
86,
14432,
3639,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
... |
if (jj_3R_215()) return true; | if (jj_scan_token(PUBLIC)) return true; | final private boolean jj_3R_397() { if (jj_3R_215()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_398()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5520,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
14939,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5520,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
14939,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
59... |
else if(jEdit.getPlugin(plugin) instanceof EditPlugin.Broken) | else if(plugin instanceof EditPlugin.Broken) | public boolean checkDependencies() { if(plugin == null) return true; int i = 0; boolean ok = true; String name = plugin.getClassName(); String dep; while((dep = jEdit.getProperty("plugin." + name + ".depend." + i++)) != null) { int index = dep.indexOf(' '); if(index == -1) { Log.log(Log.ERROR,this,name + " has an invalid" + " dependency: " + dep); ok = false; continue; } String what = dep.substring(0,index); String arg = dep.substring(index + 1); if(what.equals("jdk")) { if(MiscUtilities.compareStrings( System.getProperty("java.version"), arg,false) < 0) { String[] args = { arg, System.getProperty("java.version") }; jEdit.pluginError(path,"plugin-error.dep-jdk",args); ok = false; } } else if(what.equals("jedit")) { if(arg.length() != 11) { Log.log(Log.ERROR,this,"Invalid jEdit version" + " number: " + arg); ok = false; } if(MiscUtilities.compareStrings( jEdit.getBuild(),arg,false) < 0) { String needs = MiscUtilities.buildToVersion(arg); String[] args = { needs, jEdit.getVersion() }; jEdit.pluginError(path, "plugin-error.dep-jedit",args); ok = false; } } else if(what.equals("plugin")) { int index2 = arg.indexOf(' '); if(index2 == -1) { Log.log(Log.ERROR,this,name + " has an invalid dependency: " + dep + " (version is missing)"); ok = false; continue; } String plugin = arg.substring(0,index2); String needVersion = arg.substring(index2 + 1); String currVersion = jEdit.getProperty("plugin." + plugin + ".version"); if(currVersion == null) { String[] args = { needVersion, plugin }; jEdit.pluginError(path, "plugin-error.dep-plugin.no-version", args); ok = false; } else if(MiscUtilities.compareStrings(currVersion, needVersion,false) < 0) { String[] args = { needVersion, plugin, currVersion }; jEdit.pluginError(path, "plugin-error.dep-plugin",args); ok = false; } else if(jEdit.getPlugin(plugin) instanceof EditPlugin.Broken) { String[] args = { plugin }; jEdit.pluginError(path, "plugin-error.dep-plugin.broken",args); ok = false; } } else if(what.equals("class")) { try { classLoader.loadClass(arg,false); } catch(Exception e) { String[] args = { arg }; jEdit.pluginError(path, "plugin-error.dep-class",args); ok = false; } } else { Log.log(Log.ERROR,this,name + " has unknown" + " dependency: " + dep); ok = false; } } if(!ok) { plugin = new EditPlugin.Broken(name); plugin.jar = (EditPlugin.JAR)this; } return ok; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/2f00b782b6992b54795b88891a1e10c4f16afeb0/PluginJAR.java/buggy/org/gjt/sp/jedit/PluginJAR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
866,
8053,
1435,
202,
95,
202,
202,
430,
12,
4094,
422,
446,
13,
1082,
202,
2463,
638,
31,
202,
202,
474,
277,
273,
374,
31,
202,
202,
6494,
1529,
273,
638,
31,
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,
482,
1250,
866,
8053,
1435,
202,
95,
202,
202,
430,
12,
4094,
422,
446,
13,
1082,
202,
2463,
638,
31,
202,
202,
474,
277,
273,
374,
31,
202,
202,
6494,
1529,
273,
638,
31,
202,
... |
output( message ); | final String target = event.getTargetName(); if( target != null && !m_targetOutput ) { writeTargetHeader( event ); m_targetOutput = true; } super.log( event ); | public void log( final String message ) { output( message ); } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/6cc790dcf815a7076636afc6f3618d85d549a1d0/DefaultProjectListener.java/clean/proposal/myrmidon/src/java/org/apache/myrmidon/listeners/DefaultProjectListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
613,
12,
727,
514,
883,
262,
565,
288,
540,
727,
514,
1018,
273,
871,
18,
588,
2326,
461,
5621,
309,
12,
1018,
480,
446,
597,
401,
81,
67,
3299,
1447,
262,
288,
1045,
2326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
12,
727,
514,
883,
262,
565,
288,
540,
727,
514,
1018,
273,
871,
18,
588,
2326,
461,
5621,
309,
12,
1018,
480,
446,
597,
401,
81,
67,
3299,
1447,
262,
288,
1045,
2326,... |
if (assignment.hasPluginCommandIdInFirstKeyConfiguration || assignment.hasPluginCommandIdInInheritedKeyConfiguration) { String pluginCommandId; | if (assignment.hasPluginCommandIdInFirstKeyConfiguration || assignment.hasPluginCommandIdInInheritedKeyConfiguration) { String pluginCommandId; | private void buildCommandAssignmentsTable() { tableAssignmentsForCommand.removeAll(); for (Iterator iterator = commandAssignments.iterator(); iterator.hasNext();) { CommandAssignment commandAssignment = (CommandAssignment) iterator.next(); KeySequenceBindingNode.Assignment assignment = commandAssignment.assignment; KeySequence keySequence = commandAssignment.keySequence; String commandString = null; int difference = DIFFERENCE_NONE; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration || assignment.hasPreferenceCommandIdInInheritedKeyConfiguration) { String preferenceCommandId; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration) preferenceCommandId = assignment.preferenceCommandIdInFirstKeyConfiguration; else preferenceCommandId = assignment.preferenceCommandIdInInheritedKeyConfiguration; if (assignment.hasPluginCommandIdInFirstKeyConfiguration || assignment.hasPluginCommandIdInInheritedKeyConfiguration) { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (preferenceCommandId != null) { difference = DIFFERENCE_CHANGE; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } if (pluginCommandId != null) commandString += " (was: " + commandUniqueNamesById.get(pluginCommandId) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ else commandString += " (was: " + "Unassigned" + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } else { if (preferenceCommandId != null) { difference = DIFFERENCE_ADD; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } } } else { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (pluginCommandId != null) { difference = DIFFERENCE_NONE; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } } TableItem tableItem = new TableItem(tableAssignmentsForCommand, SWT.NULL); switch (difference) { case DIFFERENCE_ADD : tableItem.setImage(0, IMAGE_PLUS); break; case DIFFERENCE_CHANGE : tableItem.setImage(0, IMAGE_CHANGE); break; case DIFFERENCE_MINUS : tableItem.setImage(0, IMAGE_MINUS); break; case DIFFERENCE_NONE : tableItem.setImage(0, IMAGE_BLANK); break; } String contextId = commandAssignment.contextId; if (contextId == null) tableItem.setText(1, Util.translateString(RESOURCE_BUNDLE, "general")); //$NON-NLS-1$ else tableItem.setText(1, (String) contextUniqueNamesById.get(contextId)); //$NON-NLS-1$ tableItem.setText(2, commandString); if (difference == DIFFERENCE_MINUS) tableItem.setForeground(new Color(getShell().getDisplay(), RGB_MINUS)); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
2189,
18628,
1388,
1435,
288,
202,
202,
2121,
18628,
1290,
2189,
18,
4479,
1595,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
1296,
18628,
18,
9838,
5621,
2775,
18,
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,
225,
202,
1152,
918,
1361,
2189,
18628,
1388,
1435,
288,
202,
202,
2121,
18628,
1290,
2189,
18,
4479,
1595,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
1296,
18628,
18,
9838,
5621,
2775,
18,
5... |
DataOutputStream out = LocalFileSystem.get(conf).create(localSplit); | DataOutputStream out = FileSystem.getLocal(conf).create(localSplit); | public void localizeConfiguration(JobConf conf) throws IOException { super.localizeConfiguration(conf); Path localSplit = new Path(new Path(getJobFile()).getParent(), "split.dta"); DataOutputStream out = LocalFileSystem.get(conf).create(localSplit); split.write(out); out.close(); if (split instanceof FileSplit) { conf.set("map.input.file", ((FileSplit) split).getPath().toString()); conf.setLong("map.input.start", ((FileSplit) split).getStart()); conf.setLong("map.input.length", ((FileSplit) split).getLength()); } } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ed2da6b550c672b8d6867b05791a98214d3f9c30/MapTask.java/clean/src/java/org/apache/hadoop/mapred/MapTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26407,
1750,
12,
2278,
3976,
2195,
13,
1216,
1860,
288,
565,
2240,
18,
3729,
554,
1750,
12,
3923,
1769,
565,
2666,
1191,
5521,
273,
394,
2666,
12,
2704,
2666,
12,
588,
2278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
26407,
1750,
12,
2278,
3976,
2195,
13,
1216,
1860,
288,
565,
2240,
18,
3729,
554,
1750,
12,
3923,
1769,
565,
2666,
1191,
5521,
273,
394,
2666,
12,
2704,
2666,
12,
588,
2278,
... |
checkConnection(c); if(myLogger.isLoggable(Logger.FINEST)) { | checkConnection(c); if(myLogger.isLoggable(Logger.FINEST)) { | synchronized JICPPacket handleKeepAlive(Connection c, JICPPacket command) throws ICPException { checkConnection(c); if(myLogger.isLoggable(Logger.FINEST)) { myLogger.log(Logger.FINEST,myID+": Keep-alive received"); } return new JICPPacket(JICPProtocol.RESPONSE_TYPE, getReconnectInfo(), null); } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/c3df49b8c0bdb4768ce3e1d9f418cab6be5ab172/NIOBEDispatcher.java/buggy/leap/src/jade/imtp/leap/nio/NIOBEDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
202,
22043,
804,
2871,
52,
6667,
1640,
24456,
12,
1952,
276,
16,
804,
2871,
52,
6667,
1296,
13,
1216,
467,
4258,
503,
288,
21114,
202,
1893,
1952,
12,
71,
1769,
26924,
1377,
309,
12,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
22043,
804,
2871,
52,
6667,
1640,
24456,
12,
1952,
276,
16,
804,
2871,
52,
6667,
1296,
13,
1216,
467,
4258,
503,
288,
21114,
202,
1893,
1952,
12,
71,
1769,
26924,
1377,
309,
12,
48... |
} | } | boolean handleEvent (AWTEvent e) { if ((eventMask & e.getID ()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent (me); if (mouseEventTarget != null) { Component oldSource = (Component) me.getSource (); me.setSource (mouseEventTarget); mouseEventTarget.dispatchEvent (me); me.setSource (oldSource); } } else if (e instanceof KeyEvent && focus != null) { focus.processKeyEvent ((KeyEvent) e); } return e.isConsumed(); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/ad6c8435ee03593e980da05d382c95b10d220822/Container.java/clean/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,... |
String tableName = tablesRs.getString( "TABLE_NAME" ); | protected void populateTableList() { // Remove all the existing children of the root Node if ( rootNode != null ) { availableDbObjectsTree.removeAll( ); setRootElement( ); } String namePattern = null; String[] tableType = null; cachedSearchTxt = searchTxt.getText(); namePattern = getTailoredSearchText( namePattern ); String dbtype = getSelectedDbType( ); cachedDbType = dbtype; if ( dbtype != null ) { if ( DbType.TABLE_STRING.equalsIgnoreCase( dbtype ) || DbType.VIEW_STRING.equalsIgnoreCase( dbtype ) ) { tableType = new String[]{ dbtype }; } } String catalogName = metaDataProvider.getCatalog(); ArrayList tableList = new ArrayList(); ArrayList targetSchemaList = new ArrayList(); ResultSet tablesRs = null; ArrayList procedureRs = null; if (schemaList != null && schemaList.size() > 0) { cachedSchemaComboIndex = schemaCombo.getSelectionIndex(); if ( schemaCombo.getSelectionIndex() == 0) { targetSchemaList = schemaList; } else { targetSchemaList.add( schemaCombo.getItem( schemaCombo.getSelectionIndex() )); } // For each schema Get the List of Tables int numTables = 0; for( int i=0; i< targetSchemaList.size(); i++) { int count = 0; String schemaName = (String)targetSchemaList.get(i); if( metaDataProvider.isProcedureSupported() ) procedureRs = metaDataProvider.getAllProcedure( catalogName, schemaName, namePattern ); if( !DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype)) tablesRs = metaDataProvider.getAlltables(catalogName,schemaName,namePattern,tableType); tableList = new ArrayList(); if( tablesRs == null && procedureRs == null ) { continue; } try { // Create the schema Node ArrayList schema = new ArrayList(); TreeItem schemaTreeItem[] = null; Image image = tableImage; if( count == 0 ) { schema.add(schemaName); schemaTreeItem = Utility.createTreeItems(rootNode, schema, SWT.NONE, schemaImage); //expand schema TreeItem if( schemaTreeItem != null && schemaTreeItem.length > 0) availableDbObjectsTree.showItem(schemaTreeItem[0]); } if ( tablesRs != null ) { while ( tablesRs.next( ) ) { // tablesRs.getString("TABLE_NAME") must be called // before // tablesRs.getString("TABLE_TYPE"). This is because // once using JDBC-ODBC-SQLSERVER // the index of "TABLE_NAME" is higher than that of // "TABLE_TYPE".And when connection // is built using JDBC-ODBC-SQLSERVER the // ResultSet.getString() method, if being called // use a low index, then called using a high index, // will result in an exception. String tableName = tablesRs.getString( "TABLE_NAME" ); String type = tablesRs.getString( "TABLE_TYPE" ); if ( type.equalsIgnoreCase( "SYSTEM TABLE" ) ) continue; count++; int dbType = DbObject.TABLE_TYPE; if ( type.equalsIgnoreCase( "TABLE" ) ) { image = tableImage; dbType = DbObject.TABLE_TYPE; } else if ( type.equalsIgnoreCase( "VIEW" ) ) { image = viewImage; dbType = DbObject.VIEW_TYPE; } String fullyQualifiedTableName = tableName; if ( schemaName != null && schemaName.trim( ).length( ) > 0 ) { fullyQualifiedTableName = schemaName + "." + tableName; } DbObject dbObject = new DbObject( fullyQualifiedTableName, tableName, dbType, image ); tableList.add( dbObject ); numTables++; } } if ( needToCreateProcedureNode( dbtype, procedureRs )) { String fullyQualifiedTableName = "STORED PROCEDURES"; if ( schemaName != null && schemaName.trim( ).length( ) > 0 ) { fullyQualifiedTableName = schemaName + "." + "STORED PROCEDURES"; } DbObject dbObject = new DbObject( fullyQualifiedTableName,"STORED PROCEDURES", DbObject.PROCEDURE_TYPE, tableImage); tableList.add( dbObject ); } if ( schemaTreeItem != null && schemaTreeItem.length > 0 ) { TreeItem item[] = Utility.createTreeItems( schemaTreeItem[0], tableList, SWT.NONE, null ); //expand table TreeItem if ( expandDbObjectsTree && item != null && item.length > 0 ) { availableDbObjectsTree.showItem( item[0] ); } } } catch(SQLException e) { e.printStackTrace(); } } } else { if( metaDataProvider.isProcedureSupported() ) procedureRs = metaDataProvider.getAllProcedure( catalogName, null, namePattern ); if( !DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype)) tablesRs = metaDataProvider.getAlltables(catalogName,null,namePattern,tableType); if( tablesRs == null && procedureRs == null ) { return; } try { Image image = tableImage; if ( tablesRs != null ) { while ( tablesRs.next( ) ) { String type = tablesRs.getString( "TABLE_TYPE" );//$NON-NLS-1$ if ( type.equalsIgnoreCase( "SYSTEM TABLE" ) ) continue; // String SchemaName = // tablesRs.getString("TABLE_SCHEM");//$NON-NLS-1$ String tableName = tablesRs.getString( "TABLE_NAME" );//$NON-NLS-1$ int dbType = DbObject.TABLE_TYPE; if ( type.equalsIgnoreCase( "TABLE" ) ) { image = tableImage; dbType = DbObject.TABLE_TYPE; } else if ( type.equalsIgnoreCase( "VIEW" ) ) { image = viewImage; dbType = DbObject.VIEW_TYPE; } DbObject dbObject = new DbObject( tableName, tableName, dbType, image ); tableList.add( dbObject ); } } if ( needToCreateProcedureNode( dbtype, procedureRs )) { String fullyQualifiedTableName = "STORED PROCEDURES"; DbObject dbObject = new DbObject( fullyQualifiedTableName,"STORED PROCEDURES", DbObject.PROCEDURE_TYPE, tableImage); tableList.add( dbObject ); } TreeItem item[] = Utility.createTreeItems(rootNode, tableList, SWT.NONE, null); //expand table TreeItem if( item != null && item.length > 0) availableDbObjectsTree.showItem(item[0]); // Add listener to display the column names when expanded } catch(Exception e) { e.printStackTrace(); } } // Add a listener for fetching columns addFetchColumnListener(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/dfca913ab52a1c35308def530c47013de32db0dc/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
1435,
202,
95,
1082,
368,
3581,
777,
326,
2062,
2325,
434,
326,
1365,
2029,
202,
202,
430,
261,
10181,
480,
446,
262,
202,
202,
95,
1082,
202,
5699,
433... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
1388,
682,
1435,
202,
95,
1082,
368,
3581,
777,
326,
2062,
2325,
434,
326,
1365,
2029,
202,
202,
430,
261,
10181,
480,
446,
262,
202,
202,
95,
1082,
202,
5699,
433... | |
astore(variableObjectLocal); | cfw.addAStore(variableObjectLocal); | private void visitLeaveWith(Node node, Node child) { aload(variableObjectLocal); addScriptRuntimeInvoke("leaveWith", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
21300,
1190,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
527,
3651,
5576,
10969,
2932,
19574,
1190,
3113,
1171,
9079,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21300,
1190,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
527,
3651,
5576,
10969,
2932,
19574,
1190,
3113,
1171,
9079,
775... |
String endpoint = (String)context.getProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, null); | UMOMessage msg = context.getMessage(); String endpoint = msg.getStringProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, null); | public Object transform(Object src, String encoding, UMOEventContext context) throws TransformerException { String endpoint = (String)context.getProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, null); if (endpoint == null) { throw new TransformerException(new Message( Messages.EVENT_PROPERTY_X_NOT_SET_CANT_PROCESS_REQUEST, MuleProperties.MULE_ENDPOINT_PROPERTY), this); } String method = (String)context.getProperty(HttpConnector.HTTP_METHOD_PROPERTY, "POST"); try { URI uri = new URI(endpoint); HttpMethod httpMethod = null; if (HttpConstants.METHOD_GET.equals(method)) { httpMethod = new GetMethod(uri.toString()); setHeaders(httpMethod, context); String paramName = (String)context.getProperty( HttpConnector.HTTP_GET_BODY_PARAM_PROPERTY, HttpConnector.DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY); String query = uri.getQuery(); if (!(src instanceof NullPayload) && !StringUtils.EMPTY.equals(src)) { if (query == null) { query = paramName + "=" + src.toString(); } else { query += "&" + paramName + "=" + src.toString(); } } httpMethod.setQueryString(query); } else { PostMethod postMethod = new PostMethod(uri.toString()); setHeaders(postMethod, context); String paramName = (String)context .getProperty(HttpConnector.HTTP_POST_BODY_PARAM_PROPERTY); // postMethod.setRequestContentLength(PostMethod.CONTENT_LENGTH_AUTO); if (paramName == null) { // Call method to manage the parameter array addParameters(uri.getQuery(), postMethod); // Dont set a POST payload if the body is a Null Payload. // This way client calls // can control if a POST body is posted explicitly if (!(context.getMessage().getPayload() instanceof NullPayload)) { // See if we have a MIME type set String mimeType = context.getStringProperty(HttpConstants.HEADER_CONTENT_TYPE, null); if (src instanceof String) { // Ensure that we strip the encoding information from the encoding type int parameterIndex = mimeType != null ? mimeType.indexOf(";") : -1; if (parameterIndex > 0) { mimeType = mimeType.substring(0,parameterIndex); } if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; if (encoding == null) encoding = MuleManager.getConfiguration().getEncoding(); postMethod.setRequestEntity(new StringRequestEntity(src.toString(), mimeType, encoding)); } else if (src instanceof InputStream) { // TODO Danger here! We don't know if the content is really text or not if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; postMethod.setRequestEntity(new InputStreamRequestEntity((InputStream)src, mimeType)); } else { // TODO Danger here! We don't know if the content is really text or not if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; byte[] buffer = (byte[])serializableToByteArray.doTransform(src, encoding); postMethod.setRequestEntity(new ByteArrayRequestEntity(buffer, mimeType)); } } } else { postMethod.addParameter(paramName, src.toString()); } httpMethod = postMethod; } return httpMethod; } catch (Exception e) { throw new TransformerException(this, e); } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/79a096cef4d9edd693057110d1b68b4a5f5dd52f/ObjectToHttpClientMethodRequest.java/clean/providers/http/src/java/org/mule/providers/http/transformers/ObjectToHttpClientMethodRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2510,
12,
921,
1705,
16,
514,
2688,
16,
587,
5980,
1133,
1042,
819,
13,
5411,
1216,
21684,
565,
288,
3639,
587,
5980,
1079,
1234,
273,
819,
18,
24906,
5621,
225,
514,
2494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
2510,
12,
921,
1705,
16,
514,
2688,
16,
587,
5980,
1133,
1042,
819,
13,
5411,
1216,
21684,
565,
288,
3639,
587,
5980,
1079,
1234,
273,
819,
18,
24906,
5621,
225,
514,
2494,
... |
private Control createComment(Composite control) { GridData gd; Label label; Composite group = new Composite(control, SWT.NONE); GridLayout layout = new GridLayout(3, false); group.setLayout(layout); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); gd = new GridData(GridData.BEGINNING | GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); gd.horizontalSpan = 2; group.setLayoutData(gd); // Info text label = new Label(group, SWT.LEFT); label.setText("Comment contains: "); gd = new GridData(GridData.BEGINNING); label.setLayoutData(gd); commentOperation = new Combo(group, SWT.SINGLE | SWT.READ_ONLY | SWT.BORDER); commentOperation.setItems(patternOperationText); commentOperation.setText(patternOperationText[0]); commentOperation.select(0); // Comment pattern combo commentPattern = new Combo(group, SWT.SINGLE | SWT.BORDER); commentPattern.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { scontainer.setPerformActionEnabled(canQuery()); } }); commentPattern.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { handleWidgetSelected(commentPattern, commentOperation, previousCommentPatterns); } }); gd = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); commentPattern.setLayoutData(gd); return group; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bd3f4a126cfb57c0118c7a7b1ce3fd5e6ad0220c/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
8888,
752,
4469,
12,
9400,
3325,
13,
288,
202,
202,
6313,
751,
15551,
31,
202,
202,
2224,
1433,
31,
202,
202,
9400,
1041,
273,
394,
14728,
12,
7098,
16,
348,
8588,
18,
9826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
4469,
12,
9400,
3325,
13,
288,
202,
202,
6313,
751,
15551,
31,
202,
202,
2224,
1433,
31,
202,
202,
9400,
1041,
273,
394,
14728,
12,
7098,
16,
348,
8588,
18,
9826,
... | ||
fDocumentHandler.characters(fString, fAugmentations); | fDocumentHandler.characters(fString, null); | protected boolean scanCDATASection(boolean complete) throws IOException, XNIException { // call handler if (fDocumentHandler != null) { fDocumentHandler.startCDATA(fAugmentations); } while (true) { if (!fEntityScanner.scanData("]]", fString)) { if (fDocumentHandler != null && fString.length > 0) { fDocumentHandler.characters(fString, fAugmentations); } int brackets = 2; while (fEntityScanner.skipChar(']')) { brackets++; } if (fDocumentHandler != null && brackets > 2) { fStringBuffer.clear(); for (int i = 2; i < brackets; i++) { fStringBuffer.append(']'); } fDocumentHandler.characters(fStringBuffer, fAugmentations); } if (fEntityScanner.skipChar('>')) { break; } if (fDocumentHandler != null) { fStringBuffer.clear(); fStringBuffer.append("]]"); fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { if (fDocumentHandler != null) { fDocumentHandler.characters(fString, fAugmentations); } int c = fEntityScanner.peekChar(); if (c != -1 && XMLChar.isInvalid(c)) { if (XMLChar.isHighSurrogate(c)) { fStringBuffer.clear(); scanSurrogates(fStringBuffer); if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { reportFatalError("InvalidCharInCDSect", new Object[]{Integer.toString(c,16)}); fEntityScanner.scanChar(); } } } } fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.endCDATA(fAugmentations); } return true; } // scanCDATASection(boolean):boolean | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/760ff9e68c2dd10dbc9982f043ce891f1aa6dbb1/XMLDocumentFragmentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
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,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
... |
try { Calendar now = Calendar.getInstance(); int hour = now.get(Calendar.HOUR_OF_DAY); int minute = now.get(Calendar.MINUTE); int second = now.get(Calendar.SECOND); msg = (hour<10?"0":"") + hour + ":" + (minute<10?"0":"") + minute + "." + (second<10?"0":"") + second + " " + msg; | try { Calendar now = Calendar.getInstance(); int hour = now.get(Calendar.HOUR_OF_DAY); int minute = now.get(Calendar.MINUTE); int second = now.get(Calendar.SECOND); msg = (hour<10?"0":"") + hour + ":" + (minute<10?"0":"") + minute + "." + (second<10?"0":"") + second + " " + msg; | public void logfile(String recipient, String msg) { try { Calendar now = Calendar.getInstance(); int hour = now.get(Calendar.HOUR_OF_DAY); int minute = now.get(Calendar.MINUTE); int second = now.get(Calendar.SECOND); msg = (hour<10?"0":"") + hour + ":" + (minute<10?"0":"") + minute + "." + (second<10?"0":"") + second + " " + msg; for (int i = 0; i < channels.length; i++) { if (recipient != null && !recipient.equalsIgnoreCase(channels[i])) { continue; } logOut[i].write(msg, 0, msg.length()); logOut[i].newLine(); logOut[i].flush(); } } catch (IOException ioe) { logerror("Couldn't log to file!"); } } | 4867 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4867/13a5492f5df8208250f437a98b833f050ed86976/SephiaBot.java/clean/SephiaBot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15204,
12,
780,
8027,
16,
514,
1234,
13,
288,
565,
775,
288,
1377,
5542,
2037,
273,
5542,
18,
588,
1442,
5621,
1377,
509,
6126,
273,
2037,
18,
588,
12,
7335,
18,
21372,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15204,
12,
780,
8027,
16,
514,
1234,
13,
288,
565,
775,
288,
1377,
5542,
2037,
273,
5542,
18,
588,
1442,
5621,
1377,
509,
6126,
273,
2037,
18,
588,
12,
7335,
18,
21372,
67,
... |
protected void printEscaped( String source ) | protected void printEscaped( int ch ) | protected void printEscaped( String source ) throws IOException { for ( int i = 0 ; i < source.length() ; ++i ) { int ch = source.charAt(i); if ((ch & 0xfc00) == 0xd800 && i+1 < source.length()) { int lowch = source.charAt(i+1); if ((lowch & 0xfc00) == 0xdc00) { ch = 0x10000 + ((ch-0xd800)<<10) + lowch-0xdc00; i++; } } printEscaped(ch); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/120cac5c63250aeed40a3fb1204264333072fcd3/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1172,
17208,
12,
509,
462,
262,
3639,
1216,
1860,
565,
288,
3639,
364,
261,
509,
277,
273,
374,
274,
277,
411,
1084,
18,
2469,
1435,
274,
965,
77,
262,
288,
5411,
509,
462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
17208,
12,
509,
462,
262,
3639,
1216,
1860,
565,
288,
3639,
364,
261,
509,
277,
273,
374,
274,
277,
411,
1084,
18,
2469,
1435,
274,
965,
77,
262,
288,
5411,
509,
462,
... |
} | } }); } | public void afterStopped(final Object value) { new SchedaView(view, true, (JasperPrint) value) .setVisible(true); } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/96d5146a84c6b62e455a3656e76f769c033ae656/AppCoreCtrl.java/buggy/trunk/src/net/sf/plantlore/client/AppCoreCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1839,
15294,
12,
6385,
1033,
460,
13,
288,
4766,
7734,
394,
348,
2049,
69,
1767,
12,
1945,
16,
638,
16,
261,
46,
345,
457,
5108,
13,
460,
13,
4766,
27573,
263,
542,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1839,
15294,
12,
6385,
1033,
460,
13,
288,
4766,
7734,
394,
348,
2049,
69,
1767,
12,
1945,
16,
638,
16,
261,
46,
345,
457,
5108,
13,
460,
13,
4766,
27573,
263,
542,
62... |
new NoViableAltException("585:17: ( ( (LT|GT|LE|GE) shiftExpression )* | \'instanceof\' typeSpec )", 60, 0, input); | new NoViableAltException("685:17: ( ( (LT|GT|LE|GE) shiftExpression )* | \'instanceof\' typeSpec )", 60, 0, input); | public void relationalExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:584:17: ( shiftExpression ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:584:17: shiftExpression ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) { following.push(FOLLOW_shiftExpression_in_relationalExpression2275); shiftExpression(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:17: ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) int alt60=2; int LA60_0 = input.LA(1); if ( LA60_0==RBRACK||(LA60_0>=SEMI && LA60_0<=COMMA)||(LA60_0>=RPAREN && LA60_0<=GE) ) { alt60=1; } else if ( LA60_0==111 ) { alt60=2; } else { NoViableAltException nvae = new NoViableAltException("585:17: ( ( (LT|GT|LE|GE) shiftExpression )* | \'instanceof\' typeSpec )", 60, 0, input); throw nvae; } switch (alt60) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:25: ( (LT|GT|LE|GE) shiftExpression )* { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:25: ( (LT|GT|LE|GE) shiftExpression )* loop59: do { int alt59=2; int LA59_0 = input.LA(1); if ( (LA59_0>=LT && LA59_0<=GE) ) { alt59=1; } switch (alt59) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:33: (LT|GT|LE|GE) shiftExpression { if ( (input.LA(1)>=LT && input.LA(1)<=GE) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_relationalExpression2285); throw mse; } following.push(FOLLOW_shiftExpression_in_relationalExpression2321); shiftExpression(); following.pop(); } break; default : break loop59; } } while (true); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:592:25: 'instanceof' typeSpec { match(input,111,FOLLOW_111_in_relationalExpression2333); following.push(FOLLOW_typeSpec_in_relationalExpression2335); typeSpec(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25302,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25302,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
1... |
Context cx = theData.itsCX; Scriptable scope = theData.itsScope; | public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; Scriptable theThisObj = theData.itsThisObj; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(lhs, rhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theThisObj; 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 : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[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 : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/54e6f7c03ff7e92a44c059a5aaac54521ad9a7db/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... | |
public abstract Serializer makeSerializer( Writer writer, OutputFormat format ); | public abstract Serializer makeSerializer(OutputFormat format); | public abstract Serializer makeSerializer( Writer writer, OutputFormat format ); | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/6869dd0cf05fb1e2bfe241fc39dedd22e03b9778/SerializerFactory.java/buggy/src/org/apache/xml/serialize/SerializerFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
15348,
1221,
6306,
12,
5497,
2633,
16,
4766,
9079,
3633,
1630,
740,
11272,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
15348,
1221,
6306,
12,
5497,
2633,
16,
4766,
9079,
3633,
1630,
740,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
EnabledHack hack = EnabledHack.NONE; if (username.endsWith("/wm")) { username = username.substring(0, username.length() - 3); hack = EnabledHack.WM5; } Mailbox mailbox = null; ImapSession session = null; try { Provisioning prov = Provisioning.getInstance(); Account account = prov.get(AccountBy.name, username); if (account == null) { sendNO(tag, "LOGIN failed"); return CONTINUE_PROCESSING; } prov.authAccount(account, password); if (!account.getBooleanAttr(Provisioning.A_zimbraImapEnabled, false)) { sendNO(tag, "account does not have IMAP access enabled"); return CONTINUE_PROCESSING; } else if (!Provisioning.onLocalServer(account)) { String correctHost = account.getAttr(Provisioning.A_zimbraMailHost); ZimbraLog.imap.info("LOGIN failed; should be on host " + correctHost); if (correctHost == null || correctHost.trim().equals("")) sendNO(tag, "LOGIN failed [wrong host]"); else sendNO(tag, "[REFERRAL imap: return CONTINUE_PROCESSING; } session = (ImapSession) SessionCache.getNewSession(account.getId(), SessionCache.SESSION_IMAP); if (session == null) { sendNO(tag, "LOGIN failed"); return CONTINUE_PROCESSING; } session.enableHack(hack); mailbox = session.getMailbox(); synchronized (mailbox) { session.setUsername(account.getName()); session.cacheFlags(mailbox); for (Tag ltag : mailbox.getTagList(session.getContext())) session.cacheTag(ltag); } } catch (ServiceException e) { if (mSession != null) mSession.clearTagCache(); ZimbraLog.imap.warn("LOGIN failed", e); if (e.getCode() == AccountServiceException.CHANGE_PASSWORD) sendNO(tag, "[ALERT] password must be changed before IMAP login permitted"); else if (e.getCode() == AccountServiceException.MAINTENANCE_MODE) sendNO(tag, "[ALERT] account undergoing maintenance; please try again later"); else sendNO(tag, "LOGIN failed"); return canContinue(e); } mMailbox = mailbox; mSession = session; mSession.setHandler(this); sendCapability(); sendOK(tag, "LOGIN completed"); return CONTINUE_PROCESSING; | return login(username, username, password, "LOGIN", tag); | boolean doLOGIN(String tag, String username, String password) throws IOException { if (!checkState(tag, ImapSession.STATE_NOT_AUTHENTICATED)) return CONTINUE_PROCESSING; else if (!mStartedTLS && !mServer.allowCleartextLogins()) { sendNO(tag, "cleartext logins disabled"); return CONTINUE_PROCESSING; } // the Windows Mobile 5 hacks are enabled by appending "/wm" to the username EnabledHack hack = EnabledHack.NONE; if (username.endsWith("/wm")) { username = username.substring(0, username.length() - 3); hack = EnabledHack.WM5; } Mailbox mailbox = null; ImapSession session = null; try { Provisioning prov = Provisioning.getInstance(); Account account = prov.get(AccountBy.name, username); if (account == null) { sendNO(tag, "LOGIN failed"); return CONTINUE_PROCESSING; } prov.authAccount(account, password); if (!account.getBooleanAttr(Provisioning.A_zimbraImapEnabled, false)) { sendNO(tag, "account does not have IMAP access enabled"); return CONTINUE_PROCESSING; } else if (!Provisioning.onLocalServer(account)) { String correctHost = account.getAttr(Provisioning.A_zimbraMailHost); ZimbraLog.imap.info("LOGIN failed; should be on host " + correctHost); if (correctHost == null || correctHost.trim().equals("")) sendNO(tag, "LOGIN failed [wrong host]"); else sendNO(tag, "[REFERRAL imap://" + URLEncoder.encode(account.getName(), "utf-8") + '@' + correctHost + "/] LOGIN failed"); return CONTINUE_PROCESSING; } session = (ImapSession) SessionCache.getNewSession(account.getId(), SessionCache.SESSION_IMAP); if (session == null) { sendNO(tag, "LOGIN failed"); return CONTINUE_PROCESSING; } session.enableHack(hack); mailbox = session.getMailbox(); synchronized (mailbox) { session.setUsername(account.getName()); session.cacheFlags(mailbox); for (Tag ltag : mailbox.getTagList(session.getContext())) session.cacheTag(ltag); } } catch (ServiceException e) { if (mSession != null) mSession.clearTagCache(); ZimbraLog.imap.warn("LOGIN failed", e); if (e.getCode() == AccountServiceException.CHANGE_PASSWORD) sendNO(tag, "[ALERT] password must be changed before IMAP login permitted"); else if (e.getCode() == AccountServiceException.MAINTENANCE_MODE) sendNO(tag, "[ALERT] account undergoing maintenance; please try again later"); else sendNO(tag, "LOGIN failed"); return canContinue(e); } // XXX: could use mSession.getMailbox() instead of saving a copy... mMailbox = mailbox; mSession = session; mSession.setHandler(this); sendCapability(); sendOK(tag, "LOGIN completed"); return CONTINUE_PROCESSING; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9d4f2a95e1573221d245d9b4698bbaa7b9a7de7c/ImapHandler.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
19022,
12,
780,
1047,
16,
514,
2718,
16,
514,
2201,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4400,
67,
25114,
6344,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
19022,
12,
780,
1047,
16,
514,
2718,
16,
514,
2201,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4400,
67,
25114,
6344,
371... |
throw new RuntimeException("Method is not implemented"); | throw new RuntimeException("Method is not implemented"); | public BufferStrategy getBufferStrategy() { toolkit.lockAWT(); try { } finally { toolkit.unlockAWT(); } if (true) { throw new RuntimeException("Method is not implemented"); //TODO: implement } return null; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/Canvas.java/buggy/modules/awt/src/main/java/common/java/awt/Canvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3525,
4525,
22238,
4525,
1435,
288,
3639,
5226,
8691,
18,
739,
37,
8588,
5621,
3639,
775,
288,
3639,
289,
3095,
288,
5411,
5226,
8691,
18,
26226,
37,
8588,
5621,
3639,
289,
3639,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3525,
4525,
22238,
4525,
1435,
288,
3639,
5226,
8691,
18,
739,
37,
8588,
5621,
3639,
775,
288,
3639,
289,
3095,
288,
5411,
5226,
8691,
18,
26226,
37,
8588,
5621,
3639,
289,
3639,
30... |
RubyId id = symbol.toId(); | RubyId id = symbol.toId(); | public RubyObject m_const_set(RubySymbol symbol, RubyObject value) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } setConstant(id, value); return value; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
10248,
67,
542,
12,
54,
10340,
5335,
3273,
16,
19817,
921,
460,
13,
288,
202,
202,
54,
10340,
548,
612,
273,
3273,
18,
869,
548,
5621,
202,
202,
430,
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,
225,
202,
482,
19817,
921,
312,
67,
10248,
67,
542,
12,
54,
10340,
5335,
3273,
16,
19817,
921,
460,
13,
288,
202,
202,
54,
10340,
548,
612,
273,
3273,
18,
869,
548,
5621,
202,
202,
430,
16... |
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); | public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen(); | public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix42/DontKnowTrade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
235... |
} | } | public void setVisibleAmount(int visibleAmount) { setValues(value, visibleAmount, minimum, maximum); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
6275,
12,
474,
6021,
6275,
13,
288,
202,
202,
542,
1972,
12,
1132,
16,
6021,
6275,
16,
5224,
16,
4207,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
6275,
12,
474,
6021,
6275,
13,
288,
202,
202,
542,
1972,
12,
1132,
16,
6021,
6275,
16,
5224,
16,
4207,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bThrowDeclared = true; break; | Type t2 = (ClassType) ((TypeNode)i2.next()).getType(); if ( t.equals (t2) || t.descendsFrom (t2 )) { bThrowDeclared = true; break; } | public Node typeCheck( LocalContext c) throws TypeCheckException { boolean bThrowDeclared; Annotate.addThrows ( this, Annotate.getThrows(body ) ); // check our exceptions: SubtypeSet s = jltools.util.Annotate.getThrows( this ); if ( s != null) { for (Iterator i = s.iterator(); i.hasNext() ; ) { bThrowDeclared = false; Type t = (Type)i.next(); if ( !t.isUncheckedException() ) { for (Iterator i2 = exceptions.iterator(); i2.hasNext() ; ) { Type t2 = (ClassType) ((TypeNode)i2.next()).getType(); if ( t.equals (t2) || t.descendsFrom (t2 )) { bThrowDeclared = true; break; } } if ( ! bThrowDeclared) throw new TypeCheckException ( "Method \"" + name + "\" throws the undeclared " + "exception \"" + t.getTypeString() + "\"."); } } } // make sure that all paths return, if our return type is not void if ( !mtiThis.getReturnType().equals (c.getTypeSystem().getVoid() ) && !Annotate.terminatesOnAllPaths ( body ) ) throw new TypeCheckException ( "Not all execution paths in the method \"" + name + "\" lead to a return or throw statement."); c.leaveMethod( ) ; return this; } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/e7fc46743bd2a90b4af1d0c3b0ab16998bb00ef9/MethodNode.java/buggy/src/polyglot/ast/MethodNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
618,
1564,
12,
3566,
1042,
276,
13,
1216,
1412,
1564,
503,
225,
288,
565,
1250,
324,
8282,
18888,
31,
565,
9680,
18,
1289,
21845,
261,
333,
16,
9680,
18,
588,
21845,
12,
343... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
618,
1564,
12,
3566,
1042,
276,
13,
1216,
1412,
1564,
503,
225,
288,
565,
1250,
324,
8282,
18888,
31,
565,
9680,
18,
1289,
21845,
261,
333,
16,
9680,
18,
588,
21845,
12,
343... |
if (dropExpr != null && anElement != null) | if (dropExpr != null && anElement != null) { | public boolean isDropElementSupported(Object anElement) { if (dropExpr != null && anElement != null) try { return dropExpr .evaluate(new EvaluationContext(null, anElement)) == EvaluationResult.TRUE; } catch (CoreException e) { NavigatorPlugin.logError(0, e.getMessage(), e); } return false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CommonDropAdapterDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/dnd/CommonDropAdapterDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
7544,
1046,
7223,
12,
921,
392,
1046,
13,
288,
202,
202,
430,
261,
7285,
4742,
480,
446,
597,
392,
1046,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
2463,
3640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
7544,
1046,
7223,
12,
921,
392,
1046,
13,
288,
202,
202,
430,
261,
7285,
4742,
480,
446,
597,
392,
1046,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
2463,
3640,
... |
baos.close(); | baos.close(); | protected void logFlush() { try { if (fos != null) { fos.close(); } if (baos != null) { baos.close(); } } catch (IOException io) {} } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/727faae6253126291dd52a1103713681e925f96b/ExecTask.java/clean/src/main/org/apache/tools/ant/taskdefs/ExecTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
613,
8207,
1435,
288,
3639,
775,
288,
5411,
309,
261,
5075,
480,
446,
13,
288,
2868,
17615,
18,
4412,
5621,
5411,
289,
5411,
309,
261,
12124,
538,
480,
446,
13,
288,
2868,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
613,
8207,
1435,
288,
3639,
775,
288,
5411,
309,
261,
5075,
480,
446,
13,
288,
2868,
17615,
18,
4412,
5621,
5411,
289,
5411,
309,
261,
12124,
538,
480,
446,
13,
288,
2868,
17... |
AST tmp2347_AST_in = (AST)_t; | AST tmp2351_AST_in = (AST)_t; | public final void selectionlistphrase(AST _t) throws RecognitionException { AST selectionlistphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1960 = _t; AST tmp2342_AST_in = (AST)_t; match(_t,SELECTIONLIST); _t = _t.getFirstChild(); { _loop1970: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SINGLE: { AST tmp2343_AST_in = (AST)_t; match(_t,SINGLE); _t = _t.getNextSibling(); break; } case MULTIPLE: { AST tmp2344_AST_in = (AST)_t; match(_t,MULTIPLE); _t = _t.getNextSibling(); break; } case NODRAG: { AST tmp2345_AST_in = (AST)_t; match(_t,NODRAG); _t = _t.getNextSibling(); break; } case LISTITEMS: { AST __t1962 = _t; AST tmp2346_AST_in = (AST)_t; match(_t,LISTITEMS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1964: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2347_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1964; } } while (true); } _t = __t1962; _t = _t.getNextSibling(); break; } case LISTITEMPAIRS: { AST __t1965 = _t; AST tmp2348_AST_in = (AST)_t; match(_t,LISTITEMPAIRS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1967: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2349_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1967; } } while (true); } _t = __t1965; _t = _t.getNextSibling(); break; } case SCROLLBARHORIZONTAL: { AST tmp2350_AST_in = (AST)_t; match(_t,SCROLLBARHORIZONTAL); _t = _t.getNextSibling(); break; } case SCROLLBARVERTICAL: { AST tmp2351_AST_in = (AST)_t; match(_t,SCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case INNERCHARS: { AST __t1968 = _t; AST tmp2352_AST_in = (AST)_t; match(_t,INNERCHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1968; _t = _t.getNextSibling(); break; } case INNERLINES: { AST __t1969 = _t; AST tmp2353_AST_in = (AST)_t; match(_t,INNERLINES); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1969; _t = _t.getNextSibling(); break; } case SORT: { AST tmp2354_AST_in = (AST)_t; match(_t,SORT); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } default: { break _loop1970; } } } while (true); } _t = __t1960; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4421,
1098,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4421,
1098,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
4421,
1098,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4421,
1098,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.