rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if (limit > 0) forceRedoLimit(contexts[i], limit - 1);
if (limit > 0) { forceRedoLimit(contexts[i], limit - 1); } else { return false; }
private void checkRedoLimit(IUndoableOperation operation) { IUndoContext [] contexts = operation.getContexts(); for (int i=0; i<contexts.length; i++) { int limit = getLimit(contexts[i]); if (limit > 0) forceRedoLimit(contexts[i], limit - 1); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ad9d7ef789ee7473e6f409e221ea04544d4adb03/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 3715, 83, 3039, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 45, 31224, 1042, 5378, 5781, 273, 1674, 18, 588, 15518, 5621, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 18332, 18, 2469, 31, 277, 27245, 288, 1082, 202, 474, 1800, 273, 19563, 12, 18332, 63, 77, 19226, 1082, 202, 430, 261, 3595, 405, 374, 13, 2944, 3715, 83, 3039, 12, 18332, 63, 77, 6487, 1800, 300, 404, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 866, 3715, 83, 3039, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 45, 31224, 1042, 5378, 5781, 273, 1674, 18, 588, 15518, 5621, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 18332, 18, 2469, 31, 277, 27245, 288, 1082, 202, 474, 1800, 273, 19563, 12, 18332, 63, 77, 19226, 1082, 202, 430, 261, 3595, 405, 374, 13, 2944, 3715, 83, 3039, 12, 18332, 63, 77, 6487, 1800, 300, 404, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (_metaData.getColumnCount() <= fieldOffset || fieldOffset < 0)
if (_metaData.getColumnCount() <= fieldOffset || fieldOffset < 0) { env.invalidArgument("field", fieldOffset);
public Value getFieldLength(int fieldOffset) { try { if (_metaData == null) _metaData = _rs.getMetaData(); if (_metaData.getColumnCount() <= fieldOffset || fieldOffset < 0) return BooleanValue.FALSE; else return new LongValue((long) _metaData.getPrecision(fieldOffset + 1)); } catch (SQLException e) { log.log(Level.FINE, e.toString(), e); return BooleanValue.FALSE; } }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/fa16a253ffe7f007a3a5fae9cae0f214a9bcce12/JdbcResultResource.java/clean/quercus/src/main/java/com/caucho/quercus/resources/JdbcResultResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1445, 5031, 1782, 12, 474, 652, 2335, 13, 225, 288, 565, 775, 288, 1377, 309, 261, 67, 3901, 751, 422, 446, 13, 3639, 389, 3901, 751, 273, 389, 5453, 18, 588, 6998, 5621, 1377, 309, 261, 67, 3901, 751, 18, 588, 1494, 1380, 1435, 1648, 652, 2335, 747, 652, 2335, 411, 374, 13, 288, 1550, 18, 5387, 1379, 2932, 1518, 3113, 652, 2335, 1769, 3639, 327, 3411, 620, 18, 21053, 31, 1377, 469, 3639, 327, 394, 3407, 620, 12443, 5748, 13, 389, 3901, 751, 18, 588, 15410, 12, 1518, 2335, 397, 404, 10019, 565, 289, 1044, 261, 23116, 425, 13, 288, 1377, 613, 18, 1330, 12, 2355, 18, 42, 3740, 16, 425, 18, 10492, 9334, 425, 1769, 1377, 327, 3411, 620, 18, 21053, 31, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1445, 5031, 1782, 12, 474, 652, 2335, 13, 225, 288, 565, 775, 288, 1377, 309, 261, 67, 3901, 751, 422, 446, 13, 3639, 389, 3901, 751, 273, 389, 5453, 18, 588, 6998, 5621, 1377, 309, 261, 67, 3901, 751, 18, 588, 1494, 1380, 1435, 1648, 652, 2335, 747, 652, 2335, 411, 374, 13, 288, 1550, 18, 5387, 1379, 2932, 1518, 3113, 652, 2335, 1769, 3639, 327, 3411, 620, 18, 21053, 31, 1377, 469, 3639, 327, 394, 3407, 620, 12443, 5748, 13, 389, 3901, 751, 18, 588, 15410, 12, 1518, 2335, 397, 404, 10019, 565, 289, 1044, 261, 23116, 425, 13, 288, 1377, 613, 18, 1330, 12, 2355, 18, 42, 3740, 16, 425, 18, 10492, 9334, 425, 1769, 2 ]
public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest)arg0; HttpServletResponse response = (HttpServletResponse)arg1; // Enumeration headerNames = request.getHeaderNames();// System.out.println("------------HEADER "+(tmpHeaderCount)+" BEGINS-------------");// while (headerNames.hasMoreElements()) {// String headerName = (String) headerNames.nextElement();// System.out.println("\t["+headerName+"]: "+request.getHeader(headerName));// }// System.out.println("------------HEADER "+(tmpHeaderCount)+" ENDS-------------"); // Enumeration parameterNames = request.getParameterNames();// System.out.println("------------PARAMETERS "+(tmpHeaderCount)+" BEGINS-------------");// while (parameterNames.hasMoreElements()) {// String parameterName = (String) parameterNames.nextElement();// System.out.println("\t["+parameterNames+"]: "+request.getParameter(parameterName));// }// System.out.println("------------PARAMETERS "+(tmpHeaderCount++)+" ENDS-------------");// IWContext iwc = new IWContext(request,response, request.getSession().getServletContext()); try{ if(iwc.isLoggedOn()){ LoggedOnInfo lInfo = getLoginBusiness(iwc).getLoggedOnInfo(iwc); if(request.getUserPrincipal()==null && lInfo != null){ request = new IWSlideAuthenticatedRequest(request,lInfo.getLogin(),lInfo.getUserRoles()); } updateRolesForUser(iwc, lInfo); } else { String[] loginAndPassword = getLoginBusiness(iwc).getLoginNameAndPasswordFromBasicAuthenticationRequest(iwc); String loggedInUser = getUserAuthenticatedBySlide(iwc); if(loginAndPassword != null){ String username = loginAndPassword[0]; String password = loginAndPassword[1]; LoggedOnInfo lInfo = getLoginBusiness(iwc).getLoggedOnInfo(iwc,username); if(loggedInUser==null){ if(isAuthenticated(iwc,lInfo,username,password)){ if(username.equals("root")){ request = new IWSlideAuthenticatedRequest(request,username,Collections.singleton("root")); } else { request = new IWSlideAuthenticatedRequest(request,username,lInfo.getUserRoles()); updateRolesForUser(iwc,lInfo); } setAsAuthenticatiedInSlide(iwc,username); } else { setAsUnauthenticatedInSlide(iwc); } } else if(!username.equals(loggedInUser)){ //request.getSession().invalidate(); if(isAuthenticated(iwc,lInfo,username,password)){ if(username.equals("root")){ request = new IWSlideAuthenticatedRequest(request,username,Collections.singleton("root")); } else { request = new IWSlideAuthenticatedRequest(request,username,lInfo.getUserRoles()); updateRolesForUser(iwc,lInfo); } setAsAuthenticatiedInSlide(iwc,username); } else { setAsUnauthenticatedInSlide(iwc); } } } else if(loggedInUser!=null){ setAsUnauthenticatedInSlide(iwc); } } } catch (HttpException e) { e.printStackTrace(); iwc.getResponse().sendError(e.getReasonCode(),e.getReason()); return; } // if(tmpCounter<0){// tmpCounter++;// // AuthenticationBusiness business = (AuthenticationBusiness)IBOLookup.getServiceInstance(iwc,AuthenticationBusiness.class);// business.tmpPrintOutGroupSetMembers(business.getAllRoles());// // } arg2.doFilter(request, response); }
52728 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52728/05b5737eeaabfc8f7e47f91b504787733a16e978/IWSlideAuthenticator.java/clean/src/java/com/idega/slide/authentication/IWSlideAuthenticator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 1586, 12, 18572, 1501, 20, 16, 7971, 1064, 1501, 21, 16, 4008, 3893, 1501, 22, 13, 1216, 1860, 16, 1082, 202, 4745, 503, 288, 202, 202, 2940, 18572, 590, 273, 261, 2940, 18572, 13, 3175, 20, 31, 202, 202, 2940, 29910, 766, 273, 261, 2940, 29910, 13, 3175, 21, 31, 202, 202, 759, 202, 202, 21847, 1446, 1557, 273, 590, 18, 588, 1864, 1557, 5621, 759, 202, 202, 3163, 18, 659, 18, 8222, 2932, 7620, 7557, 13773, 12, 5645, 1864, 1380, 13, 9078, 19270, 55, 16982, 8863, 759, 202, 202, 17523, 261, 3374, 1557, 18, 5332, 7417, 3471, 10756, 288, 759, 1082, 202, 780, 19430, 273, 261, 780, 13, 1446, 1557, 18, 4285, 1046, 5621, 759, 1082, 202, 3163, 18, 659, 18, 8222, 31458, 88, 9614, 15, 3374, 461, 9078, 14542, 13773, 2293, 18, 588, 1864, 12, 3374, 461, 10019, 759, 202, 202, 97, 759, 202, 202, 3163, 18, 659, 18, 8222, 2932, 7620, 7557, 13773, 12, 5645, 1864, 1380, 13, 9078, 7273, 55, 16982, 8863, 202, 202, 759, 202, 202, 21847, 1569, 1557, 273, 590, 18, 588, 1662, 1557, 5621, 759, 202, 202, 3163, 18, 659, 18, 8222, 2932, 7620, 20103, 13773, 12, 5645, 1864, 1380, 13, 9078, 19270, 55, 16982, 8863, 759, 202, 202, 17523, 261, 6775, 1557, 18, 5332, 7417, 3471, 10756, 288, 759, 1082, 202, 780, 15524, 273, 261, 780, 13, 1569, 1557, 18, 4285, 1046, 5621, 759, 1082, 202, 3163, 18, 659, 18, 8222, 31458, 88, 9614, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 1586, 12, 18572, 1501, 20, 16, 7971, 1064, 1501, 21, 16, 4008, 3893, 1501, 22, 13, 1216, 1860, 16, 1082, 202, 4745, 503, 288, 202, 202, 2940, 18572, 590, 273, 261, 2940, 18572, 13, 3175, 20, 31, 202, 202, 2940, 29910, 766, 273, 261, 2940, 29910, 13, 3175, 21, 31, 202, 202, 759, 202, 202, 21847, 1446, 1557, 273, 590, 18, 588, 1864, 1557, 5621, 759, 202, 202, 3163, 18, 659, 18, 8222, 2932, 7620, 7557, 13773, 12, 5645, 1864, 1380, 13, 9078, 19270, 55, 16982, 8863, 759, 202, 202, 17523, 261, 3374, 1557, 18, 5332, 7417, 3471, 10756, 288, 759, 1082, 202, 780, 19430, 273, 261, 780, 13, 1446, 1557, 18, 4285, 1046, 2 ]
public Object yyparse (RubyYaccLexer yyLex, Object yydebug)
public Object yyparse (RubyYaccLexer yyLex, Object ayydebug)
public Object yyparse (RubyYaccLexer yyLex, Object yydebug) throws java.io.IOException, yyException { return yyparse(yyLex); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/DefaultRubyParser.java/clean/src/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 677, 879, 24378, 261, 54, 10340, 61, 8981, 13356, 9016, 14756, 16, 1033, 9016, 4148, 13, 9506, 202, 15069, 2252, 18, 1594, 18, 14106, 16, 9016, 503, 288, 565, 327, 677, 879, 24378, 12, 6795, 14756, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 677, 879, 24378, 261, 54, 10340, 61, 8981, 13356, 9016, 14756, 16, 1033, 9016, 4148, 13, 9506, 202, 15069, 2252, 18, 1594, 18, 14106, 16, 9016, 503, 288, 565, 327, 677, 879, 24378, 12, 6795, 14756, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
contentPane.setLayout(gridbag);
contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
private SplitLegion(Client client, String parentId, String selectedMarkerId) { super(client.getBoard().getFrame(), client.getPlayerName() + ": Split Legion " + parentId, true); Container contentPane = getContentPane(); contentPane.setLayout(gridbag); this.client = client; if (selectedMarkerId == null) { dispose(); return; } setBackground(Color.lightGray); addMouseListener(this); addWindowListener(this); int scale = 4 * Scale.get(); oldMarker = new Marker(scale, parentId, this, null); constraints.gridx = GridBagConstraints.RELATIVE; constraints.gridy = 0; constraints.gridwidth = 1; gridbag.setConstraints(oldMarker, constraints); contentPane.add(oldMarker); java.util.List imageNames = client.getLegionImageNames(parentId); Iterator it = imageNames.iterator(); while (it.hasNext()) { String imageName = (String)it.next(); Chit chit = new Chit(scale, imageName, this); oldChits.add(chit); gridbag.setConstraints(chit, constraints); contentPane.add(chit); chit.addMouseListener(this); } newMarker = new Marker(scale, selectedMarkerId, this, null); constraints.gridx = GridBagConstraints.RELATIVE; constraints.gridy = 1; constraints.gridwidth = 1; gridbag.setConstraints(newMarker, constraints); contentPane.add(newMarker); JButton button1 = new JButton("Done"); button1.setMnemonic(KeyEvent.VK_D); JButton button2 = new JButton("Cancel"); button2.setMnemonic(KeyEvent.VK_C); // Attempt to center the buttons. int chitWidth = Math.max(oldChits.size(), newChits.size()) + 1; if (chitWidth < 4) { constraints.gridwidth = 1; } else { constraints.gridwidth = 2; } int leadSpace = (chitWidth - 2 * constraints.gridwidth) / 2; if (leadSpace < 0) { leadSpace = 0; } constraints.gridx = leadSpace; constraints.gridy = 2; gridbag.setConstraints(button1, constraints); contentPane.add(button1); button1.addActionListener(this); constraints.gridx = leadSpace + constraints.gridwidth; gridbag.setConstraints(button2, constraints); contentPane.add(button2); button2.addActionListener(this); pack(); centerOnScreen(); setVisible(true); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/2e4a5094b70e3198cc2d961483b0a8b0ba02660c/SplitLegion.java/clean/Colossus/net/sf/colossus/client/SplitLegion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5385, 8329, 285, 12, 1227, 1004, 16, 514, 11582, 16, 3639, 514, 3170, 7078, 548, 13, 565, 288, 3639, 2240, 12, 2625, 18, 588, 22233, 7675, 588, 3219, 9334, 1004, 18, 588, 12148, 461, 1435, 397, 2398, 6398, 5385, 17167, 285, 315, 397, 11582, 16, 638, 1769, 3639, 4039, 913, 8485, 273, 5154, 8485, 5621, 3639, 913, 8485, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 1745, 8485, 16, 8549, 3744, 18, 61, 67, 25614, 10019, 3639, 333, 18, 2625, 273, 1004, 31, 3639, 309, 261, 8109, 7078, 548, 422, 446, 13, 3639, 288, 5411, 15825, 5621, 5411, 327, 31, 3639, 289, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 3639, 527, 9186, 2223, 12, 2211, 1769, 3639, 527, 3829, 2223, 12, 2211, 1769, 3639, 509, 3159, 273, 1059, 380, 12591, 18, 588, 5621, 3639, 1592, 7078, 273, 394, 14742, 12, 5864, 16, 11582, 16, 333, 16, 446, 1769, 3639, 6237, 18, 5222, 92, 273, 13075, 18, 862, 12190, 5354, 31, 3639, 6237, 18, 5222, 93, 273, 374, 31, 3639, 6237, 18, 5222, 2819, 273, 404, 31, 3639, 3068, 22551, 18, 542, 4878, 12, 1673, 7078, 16, 6237, 1769, 3639, 913, 8485, 18, 1289, 12, 1673, 7078, 1769, 3639, 2252, 18, 1367, 18, 682, 1316, 1557, 273, 1004, 18, 588, 8329, 285, 2040, 1557, 12, 2938, 548, 1769, 3639, 4498, 518, 273, 1316, 1557, 18, 9838, 5621, 3639, 1323, 261, 305, 18, 5332, 2134, 10756, 3639, 288, 5411, 514, 29842, 273, 261, 780, 13, 305, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5385, 8329, 285, 12, 1227, 1004, 16, 514, 11582, 16, 3639, 514, 3170, 7078, 548, 13, 565, 288, 3639, 2240, 12, 2625, 18, 588, 22233, 7675, 588, 3219, 9334, 1004, 18, 588, 12148, 461, 1435, 397, 2398, 6398, 5385, 17167, 285, 315, 397, 11582, 16, 638, 1769, 3639, 4039, 913, 8485, 273, 5154, 8485, 5621, 3639, 913, 8485, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 1745, 8485, 16, 8549, 3744, 18, 61, 67, 25614, 10019, 3639, 333, 18, 2625, 273, 1004, 31, 3639, 309, 261, 8109, 7078, 548, 422, 446, 13, 3639, 288, 5411, 15825, 5621, 5411, 327, 31, 3639, 289, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 3639, 527, 9186, 2223, 12, 2211, 1769, 2 ]
public String getToolTipText() { if(lastRefresh == null) return ""; String toolTip = getDescription(true); toolTip += getLastRefreshTime(lastRefresh); return toolTip; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/999a179305547d1dca079031ef25fa01901d8c1d/BugzillaTask.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 336, 29250, 1528, 1435, 288, 202, 202, 430, 12, 2722, 8323, 422, 446, 13, 327, 1408, 31, 202, 202, 780, 5226, 14189, 273, 11056, 12, 3767, 1769, 9506, 202, 6738, 14189, 1011, 7595, 8323, 950, 12, 2722, 8323, 1769, 25083, 202, 2463, 5226, 14189, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 29250, 1528, 1435, 288, 202, 202, 430, 12, 2722, 8323, 422, 446, 13, 327, 1408, 31, 202, 202, 780, 5226, 14189, 273, 11056, 12, 3767, 1769, 9506, 202, 6738, 14189, 1011, 7595, 8323, 950, 12, 2722, 8323, 1769, 25083, 202, 2463, 5226, 14189, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void execute() throws ArchiverException, IOException
protected void execute() throws ArchiverException, IOException
protected void execute() throws ArchiverException, IOException { getLogger().info( "Expanding: " + getSourceFile() + " into " + getDestDirectory() ); ZipFile zf = null; try { zf = new ZipFile( getSourceFile(), encoding ); Enumeration e = zf.getEntries(); while ( e.hasMoreElements() ) { ZipEntry ze = (ZipEntry) e.nextElement(); extractFile( getSourceFile(), getDestDirectory(), zf.getInputStream(ze), ze.getName(), new Date( ze.getTime() ), ze.isDirectory() ); } getLogger().debug( "expand complete" ); } catch ( IOException ioe ) { throw new ArchiverException( "Error while expanding " + getSourceFile().getAbsolutePath(), ioe ); } finally { if ( zf != null ) { try { zf.close(); } catch ( IOException e ) { //ignore } } } }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/AbstractZipUnArchiver.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 1435, 1216, 16959, 1667, 503, 16, 1860, 565, 288, 3639, 7156, 7675, 1376, 12, 315, 12271, 310, 30, 315, 397, 7889, 812, 1435, 397, 315, 1368, 315, 397, 2343, 395, 2853, 1435, 11272, 3639, 18364, 22758, 273, 446, 31, 3639, 775, 3639, 288, 5411, 22758, 273, 394, 18364, 12, 7889, 812, 9334, 2688, 11272, 5411, 13864, 425, 273, 22758, 18, 588, 5400, 5621, 5411, 1323, 261, 425, 18, 5332, 7417, 3471, 1435, 262, 5411, 288, 7734, 23652, 26637, 273, 261, 9141, 1622, 13, 425, 18, 4285, 1046, 5621, 7734, 2608, 812, 12, 7889, 812, 9334, 2343, 395, 2853, 9334, 22758, 18, 588, 4348, 12, 8489, 3631, 18701, 26637, 18, 17994, 9334, 394, 2167, 12, 26637, 18, 588, 950, 1435, 262, 16, 26637, 18, 291, 2853, 1435, 11272, 5411, 289, 5411, 7156, 7675, 4148, 12, 315, 12320, 3912, 6, 11272, 3639, 289, 3639, 1044, 261, 1860, 10847, 262, 3639, 288, 5411, 604, 394, 16959, 1667, 503, 12, 315, 668, 1323, 31283, 315, 397, 7889, 812, 7675, 588, 10368, 743, 9334, 10847, 11272, 3639, 289, 3639, 3095, 3639, 288, 5411, 309, 261, 22758, 480, 446, 262, 5411, 288, 7734, 775, 7734, 288, 10792, 22758, 18, 4412, 5621, 7734, 289, 7734, 1044, 261, 1860, 425, 262, 7734, 288, 10792, 368, 6185, 7734, 289, 5411, 289, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 4750, 918, 1836, 1435, 1216, 16959, 1667, 503, 16, 1860, 565, 288, 3639, 7156, 7675, 1376, 12, 315, 12271, 310, 30, 315, 397, 7889, 812, 1435, 397, 315, 1368, 315, 397, 2343, 395, 2853, 1435, 11272, 3639, 18364, 22758, 273, 446, 31, 3639, 775, 3639, 288, 5411, 22758, 273, 394, 18364, 12, 7889, 812, 9334, 2688, 11272, 5411, 13864, 425, 273, 22758, 18, 588, 5400, 5621, 5411, 1323, 261, 425, 18, 5332, 7417, 3471, 1435, 262, 5411, 288, 7734, 23652, 26637, 273, 261, 9141, 1622, 13, 425, 18, 4285, 1046, 5621, 7734, 2608, 812, 12, 7889, 812, 9334, 2343, 395, 2853, 9334, 22758, 18, 588, 4348, 12, 8489, 3631, 18701, 26637, 18, 17994, 9334, 394, 2167, 12, 26637, 2 ]
btParser.setSym1(nf.If(pos(), a, b)); break; }
Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; }
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/10b0c7616a7abbf0fc08b5455c9818b3be9b7cbc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 7734, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 13, 7734, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 2678, 7005, 310, 4932, 315, 397, 4766, 4202, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 622, 315, 397, 4766, 4202, 846, 87, 1228, 18, 588, 1670, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 6153, 397, 4766, 4202, 846, 87, 1228, 18, 588, 1494, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 1368, 392, 2756, 8863, 7734, 289, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 576, 30, 225, 14488, 559, 493, 33, 16980, 559, 5411, 368, 5411, 648, 576, 30, 7734, 898, 31, 2398, 368, 5411, 368, 6781, 890, 30, 225, 14488, 559, 493, 33, 1250, 5411, 368, 5411, 648, 890, 30, 288, 7734, 10921, 2678, 18, 542, 11901, 21, 12, 82, 74, 18, 15512, 559, 907, 12, 917, 9334, 3742, 18, 5507, 1435, 10019, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 7734, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 13, 7734, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 2678, 7005, 310, 4932, 315, 397, 4766, 4202, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 4766, 4202, 315, 622, 315, 397, 4766, 2 ]
byte[] privilege = permNames[i].getBytes();
byte[] privilege = encoding.encode(permNames[i]);
public java.sql.ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { Field f[] = new Field[7]; Vector v = new Vector(); f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "GRANTOR", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "GRANTEE", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "PRIVILEGE", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "IS_GRANTABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,u.usename,c.relacl "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u "+ " WHERE c.relnamespace = n.oid "+ " AND u.usesysid = c.relowner "+ " AND c.relkind = 'r' "; if (schemaPattern != null && !"".equals(schemaPattern)) { sql += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern)+"' "; } } else { sql = "SELECT NULL::text AS nspname,c.relname,u.usename,c.relacl "+ "FROM pg_class c, pg_user u "+ " WHERE u.usesysid = c.relowner "+ " AND c.relkind = 'r' "; } if (tableNamePattern != null && !"".equals(tableNamePattern)) { sql += " AND c.relname LIKE '"+escapeQuotes(tableNamePattern)+"' "; } sql += " ORDER BY nspname, relname "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte schema[] = rs.getBytes("nspname"); byte table[] = rs.getBytes("relname"); String owner = rs.getString("usename"); String acl = rs.getString("relacl"); Hashtable permissions = parseACL(acl, owner); String permNames[] = new String[permissions.size()]; Enumeration e = permissions.keys(); int i=0; while (e.hasMoreElements()) { permNames[i++] = (String)e.nextElement(); } sortStringArray(permNames); for (i=0; i<permNames.length; i++) { byte[] privilege = permNames[i].getBytes(); Vector grantees = (Vector)permissions.get(permNames[i]); for (int j=0; j<grantees.size(); j++) { String grantee = (String)grantees.elementAt(j); String grantable = owner.equals(grantee) ? "YES" : "NO"; byte[][] tuple = new byte[7][]; tuple[0] = null; tuple[1] = schema; tuple[2] = table; tuple[3] = owner.getBytes(); tuple[4] = grantee.getBytes(); tuple[5] = privilege; tuple[6] = grantable.getBytes(); v.addElement(tuple); } } } rs.close(); return (ResultSet) ((BaseStatement)connection.createStatement()).createResultSet(f, v, "OK", 1, 0, false); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/884ce255cbfe2ce396c902749966d13a52b5c1a3/AbstractJdbc1DatabaseMetaData.java/clean/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 5638, 27692, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 27, 15533, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 6997, 6856, 916, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 6997, 1258, 1448, 41, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 315, 7698, 4136, 900, 7113, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 315, 5127, 67, 6997, 6856, 2782, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 780, 1847, 31, 202, 202, 430, 261, 4071, 18, 21516, 13042, 2081, 1444, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 5638, 27692, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 27, 15533, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 2 ]
public org.quickfix.field.ListExecInstType getListExecInstType() throws FieldNotFound { org.quickfix.field.ListExecInstType value = new org.quickfix.field.ListExecInstType();
public quickfix.field.ListExecInstType getListExecInstType() throws FieldNotFound { quickfix.field.ListExecInstType value = new quickfix.field.ListExecInstType();
public org.quickfix.field.ListExecInstType getListExecInstType() throws FieldNotFound { org.quickfix.field.ListExecInstType value = new org.quickfix.field.ListExecInstType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/buggy/src/java/src/quickfix/fix42/NewOrderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 10033, 1905, 10773, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 10033, 1905, 10773, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 682, 1905, 10773, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
impl.setLdapContext(ldapContext);
impl.setContextSource(this.contextSource);
public void testNotFoundQuery() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); Map ldapAttribsToPortalAttribs = new HashMap(); ldapAttribsToPortalAttribs.put("mail", "email"); impl.setLdapAttributesToPortalAttributes(ldapAttribsToPortalAttribs); impl.setLdapContext(ldapContext); impl.setQuery("(uid={0})"); impl.setQueryAttributes(queryAttrList); Map queryMap = new HashMap(); queryMap.put(queryAttr, "unknown"); Map attribs = impl.getUserAttributes(queryMap); assertNull(attribs); }
55666 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55666/743788790686b82a069236b3070a4f1f113a0178/LdapPersonAttributeDaoImplTest.java/buggy/main/test/java/org/jasig/portal/services/persondir/support/LdapPersonAttributeDaoImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2768, 1138, 1435, 288, 3639, 727, 514, 843, 3843, 273, 315, 1911, 14432, 3639, 727, 987, 843, 3843, 682, 273, 394, 10688, 5621, 3639, 843, 3843, 682, 18, 1289, 12, 2271, 3843, 1769, 7734, 18053, 8346, 1499, 11412, 2828, 9380, 273, 394, 18053, 8346, 1499, 11412, 2828, 5621, 7734, 1635, 8079, 12399, 11634, 24395, 31292, 273, 394, 4317, 5621, 3639, 8079, 12399, 11634, 24395, 31292, 18, 458, 2932, 4408, 3113, 315, 3652, 8863, 7734, 9380, 18, 542, 18437, 2498, 774, 24395, 2498, 12, 14394, 12399, 11634, 24395, 31292, 1769, 7734, 9380, 18, 542, 1042, 1830, 12, 2211, 18, 2472, 1830, 1769, 7734, 9380, 18, 542, 1138, 2932, 12, 1911, 5899, 20, 12646, 1769, 7734, 9380, 18, 542, 1138, 2498, 12, 2271, 3843, 682, 1769, 7734, 1635, 843, 863, 273, 394, 4317, 5621, 3639, 843, 863, 18, 458, 12, 2271, 3843, 16, 315, 8172, 8863, 7734, 1635, 11460, 273, 9380, 18, 588, 1299, 2498, 12, 2271, 863, 1769, 3639, 1815, 2041, 12, 19617, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 2768, 1138, 1435, 288, 3639, 727, 514, 843, 3843, 273, 315, 1911, 14432, 3639, 727, 987, 843, 3843, 682, 273, 394, 10688, 5621, 3639, 843, 3843, 682, 18, 1289, 12, 2271, 3843, 1769, 7734, 18053, 8346, 1499, 11412, 2828, 9380, 273, 394, 18053, 8346, 1499, 11412, 2828, 5621, 7734, 1635, 8079, 12399, 11634, 24395, 31292, 273, 394, 4317, 5621, 3639, 8079, 12399, 11634, 24395, 31292, 18, 458, 2932, 4408, 3113, 315, 3652, 8863, 7734, 9380, 18, 542, 18437, 2498, 774, 24395, 2498, 12, 14394, 12399, 11634, 24395, 31292, 1769, 7734, 9380, 18, 542, 1042, 1830, 12, 2211, 18, 2472, 1830, 1769, 7734, 9380, 18, 542, 1138, 2932, 12, 1911, 5899, 20, 12646, 1769, 7734, 9380, 2 ]
label_25: while (true) { statement(); if (jj_2_91(2147483647)) { ; } else { break label_25; } }
label_25: while (true) { statement(); if (jj_2_91(2147483647)) { ; } else { break label_25; }
static final public void statement_list() throws ParseException { label_25: while (true) { statement(); if (jj_2_91(2147483647)) { ; } else { break label_25; } } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 1071, 918, 3021, 67, 1098, 1435, 1216, 10616, 288, 3639, 1433, 67, 2947, 30, 3639, 1323, 261, 3767, 13, 288, 5411, 3021, 5621, 5411, 309, 261, 78, 78, 67, 22, 67, 12416, 12, 22, 3461, 30623, 30792, 3719, 288, 7734, 274, 5411, 289, 469, 288, 7734, 898, 1433, 67, 2947, 31, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 1071, 918, 3021, 67, 1098, 1435, 1216, 10616, 288, 3639, 1433, 67, 2947, 30, 3639, 1323, 261, 3767, 13, 288, 5411, 3021, 5621, 5411, 309, 261, 78, 78, 67, 22, 67, 12416, 12, 22, 3461, 30623, 30792, 3719, 288, 7734, 274, 5411, 289, 469, 288, 7734, 898, 1433, 67, 2947, 31, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "\\\\";
return "\\";
public String getSearchStringEscape() throws SQLException { // Java's parse takes off two backslashes // and then pg's input parser takes off another layer // so we need many backslashes here. // // This would work differently if you used a PreparedStatement // and " mycol LIKE ? " which using the V3 protocol would skip // pg's input parser, but I don't know what we can do about that. // return "\\\\"; }
7270 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7270/6a7eda5c5bf1c4c7aadca07cab656c834b17d6d4/SPIDatabaseMetaData.java/buggy/src/java/pljava/org/postgresql/pljava/jdbc/SPIDatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 15627, 780, 8448, 1435, 1216, 6483, 202, 95, 202, 202, 759, 5110, 1807, 1109, 5530, 3397, 2795, 1473, 13675, 202, 202, 759, 471, 1508, 7184, 1807, 810, 2082, 5530, 3397, 4042, 3018, 202, 202, 759, 1427, 732, 1608, 4906, 1473, 13675, 2674, 18, 202, 202, 759, 202, 202, 759, 1220, 4102, 1440, 23621, 309, 1846, 1399, 279, 16913, 202, 202, 759, 471, 315, 3399, 1293, 13161, 692, 315, 1492, 1450, 326, 776, 23, 1771, 4102, 2488, 202, 202, 759, 7184, 1807, 810, 2082, 16, 1496, 467, 2727, 1404, 5055, 4121, 732, 848, 741, 2973, 716, 18, 202, 202, 759, 202, 202, 2463, 28040, 2412, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15627, 780, 8448, 1435, 1216, 6483, 202, 95, 202, 202, 759, 5110, 1807, 1109, 5530, 3397, 2795, 1473, 13675, 202, 202, 759, 471, 1508, 7184, 1807, 810, 2082, 5530, 3397, 4042, 3018, 202, 202, 759, 1427, 732, 1608, 4906, 1473, 13675, 2674, 18, 202, 202, 759, 202, 202, 759, 1220, 4102, 1440, 23621, 309, 1846, 1399, 279, 16913, 202, 202, 759, 471, 315, 3399, 1293, 13161, 692, 315, 1492, 1450, 326, 776, 23, 1771, 4102, 2488, 202, 202, 759, 7184, 1807, 810, 2082, 16, 1496, 467, 2727, 1404, 5055, 4121, 732, 848, 741, 2973, 716, 18, 202, 202, 759, 202, 202, 2463, 28040, 2412, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
SenoneHMM contextIndependentHMM = (SenoneHMM) lookupNearestHMM(ciUnit, HMMPosition.UNDEFINED, true); float[][] tmat = contextIndependentHMM.getTransitionMatrix(); return new SenoneHMM(unit, compositeSequence, tmat, position);
if (true) { Unit ciUnit = Unit.getUnit(unit.getName(), unit.isFiller(), Context.EMPTY_CONTEXT); SenoneSequence compositeSequence = getCompositeSenoneSequence(unit, position); SenoneHMM contextIndependentHMM = (SenoneHMM) lookupNearestHMM(ciUnit, HMMPosition.UNDEFINED, true); float[][] tmat = contextIndependentHMM.getTransitionMatrix(); return new SenoneHMM(unit, compositeSequence, tmat, position); } else { Unit ciUnit = lookupUnit(unit.getName()); assert unit.isContextDependent(); if (ciUnit == null) { logger.severe("Can't find HMM for " + unit.getName()); } assert ciUnit != null; assert !ciUnit.isContextDependent(); HMMManager mgr = loader.getHMMManager(); HMM hmm = mgr.get(HMMPosition.UNDEFINED, ciUnit); return hmm; }
private HMM getCompositeHMM(Unit unit, HMMPosition position) { Unit ciUnit = Unit.getUnit(unit.getName(), unit.isFiller(), Context.EMPTY_CONTEXT); SenoneSequence compositeSequence = getCompositeSenoneSequence(unit); SenoneHMM contextIndependentHMM = (SenoneHMM) lookupNearestHMM(ciUnit, HMMPosition.UNDEFINED, true); float[][] tmat = contextIndependentHMM.getTransitionMatrix(); return new SenoneHMM(unit, compositeSequence, tmat, position); }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/72a7a88341a8adc27d238e7d15c048e39cca0a87/TiedStateAcousticModel.java/clean/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/TiedStateAcousticModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 670, 8206, 336, 9400, 44, 8206, 12, 2802, 2836, 16, 670, 8206, 2555, 1754, 13, 288, 202, 8380, 9039, 2802, 273, 8380, 18, 588, 2802, 12, 4873, 18, 17994, 9334, 1082, 2836, 18, 291, 8026, 264, 9334, 1772, 18, 13625, 67, 13181, 1769, 202, 348, 275, 476, 4021, 9635, 4021, 273, 336, 9400, 55, 275, 476, 4021, 12, 4873, 1769, 202, 348, 275, 476, 44, 8206, 819, 382, 10891, 44, 8206, 273, 261, 55, 275, 476, 44, 8206, 13, 3689, 28031, 44, 8206, 12, 8450, 2802, 16, 1082, 670, 8206, 2555, 18, 2124, 15544, 16, 638, 1769, 202, 1431, 63, 6362, 65, 6118, 270, 273, 819, 382, 10891, 44, 8206, 18, 588, 8850, 4635, 5621, 202, 327, 394, 348, 275, 476, 44, 8206, 12, 4873, 16, 9635, 4021, 16, 6118, 270, 16, 1754, 1769, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1377, 3238, 670, 8206, 336, 9400, 44, 8206, 12, 2802, 2836, 16, 670, 8206, 2555, 1754, 13, 288, 202, 8380, 9039, 2802, 273, 8380, 18, 588, 2802, 12, 4873, 18, 17994, 9334, 1082, 2836, 18, 291, 8026, 264, 9334, 1772, 18, 13625, 67, 13181, 1769, 202, 348, 275, 476, 4021, 9635, 4021, 273, 336, 9400, 55, 275, 476, 4021, 12, 4873, 1769, 202, 348, 275, 476, 44, 8206, 819, 382, 10891, 44, 8206, 273, 261, 55, 275, 476, 44, 8206, 13, 3689, 28031, 44, 8206, 12, 8450, 2802, 16, 1082, 670, 8206, 2555, 18, 2124, 15544, 16, 638, 1769, 202, 1431, 63, 6362, 65, 6118, 270, 273, 819, 382, 10891, 44, 8206, 18, 588, 8850, 4635, 5621, 202, 327, 2 ]
writer.println("503 program error, function not performed");
writeLoggedFlushedResponse("503 program error, function not performed");
private void doLIST(String argument) { // see section 9.4.1 String wildmat = "*"; boolean isListNewsgroups = false; String extension = argument; if (argument != null) { int spaceIndex = argument.indexOf(" "); if (spaceIndex >= 0) { wildmat = argument.substring(spaceIndex + 1); extension = argument.substring(0, spaceIndex); } extension = extension.toUpperCase(Locale.US); } if (extension != null) { if (extension.equals("ACTIVE")) { isListNewsgroups = false; } else if (extension.equals("NEWSGROUPS") ) { isListNewsgroups = true; } else if (extension.equals("EXTENSIONS") ) { doLISTEXTENSIONS(); return; } else if (extension.equals("OVERVIEW.FMT") ) { doLISTOVERVIEWFMT(); return; } else if (extension.equals("ACTIVE.TIMES") ) { // not supported - 9.4.2.1, 9.4.3.1, 9.4.4.1 writer.println("503 program error, function not performed"); return; } else if (extension.equals("DISTRIBUTIONS") ) { // not supported - 9.4.2.1, 9.4.3.1, 9.4.4.1 writer.println("503 program error, function not performed"); return; } else if (extension.equals("DISTRIB.PATS") ) { // not supported - 9.4.2.1, 9.4.3.1, 9.4.4.1 writer.println("503 program error, function not performed"); return; } else { writer.println("501 Syntax error"); return; } } Iterator iter = theConfigData.getNNTPRepository().getMatchedGroups(wildmat); writer.println("215 list of newsgroups follows"); while ( iter.hasNext() ) { NNTPGroup theGroup = (NNTPGroup)iter.next(); if (isListNewsgroups) { writer.println(theGroup.getListNewsgroupsFormat()); } else { writer.println(theGroup.getListFormat()); } } writer.println("."); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/186f788911748788751560790f6ce65f95163795/NNTPHandler.java/clean/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7085, 12, 780, 1237, 13, 288, 3639, 368, 2621, 2442, 2468, 18, 24, 18, 21, 3639, 514, 23578, 7373, 273, 10971, 31, 3639, 1250, 28106, 1908, 1055, 656, 87, 273, 629, 31, 3639, 514, 2710, 273, 1237, 31, 3639, 309, 261, 3446, 480, 446, 13, 288, 5411, 509, 3476, 1016, 273, 1237, 18, 31806, 2932, 315, 1769, 5411, 309, 261, 2981, 1016, 1545, 374, 13, 288, 7734, 23578, 7373, 273, 1237, 18, 28023, 12, 2981, 1016, 397, 404, 1769, 7734, 2710, 273, 1237, 18, 28023, 12, 20, 16, 3476, 1016, 1769, 5411, 289, 5411, 2710, 273, 2710, 18, 869, 8915, 12, 3916, 18, 3378, 1769, 3639, 289, 3639, 309, 261, 6447, 480, 446, 13, 288, 5411, 309, 261, 6447, 18, 14963, 2932, 13301, 6, 3719, 288, 7734, 28106, 1908, 1055, 656, 87, 273, 629, 31, 5411, 289, 469, 309, 261, 6447, 18, 14963, 2932, 5407, 2651, 28977, 7923, 262, 288, 7734, 28106, 1908, 1055, 656, 87, 273, 638, 31, 5411, 289, 469, 309, 261, 6447, 18, 14963, 2932, 12796, 55, 7923, 262, 288, 7734, 741, 7085, 12796, 55, 5621, 7734, 327, 31, 5411, 289, 469, 309, 261, 6447, 18, 14963, 2932, 12959, 12145, 18, 42, 6152, 7923, 262, 288, 7734, 741, 7085, 12959, 12145, 42, 6152, 5621, 7734, 327, 31, 5411, 289, 469, 309, 261, 6447, 18, 14963, 2932, 13301, 18, 4684, 55, 7923, 262, 288, 7734, 368, 486, 3260, 300, 2468, 18, 24, 18, 22, 18, 21, 16, 2468, 18, 24, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 7085, 12, 780, 1237, 13, 288, 3639, 368, 2621, 2442, 2468, 18, 24, 18, 21, 3639, 514, 23578, 7373, 273, 10971, 31, 3639, 1250, 28106, 1908, 1055, 656, 87, 273, 629, 31, 3639, 514, 2710, 273, 1237, 31, 3639, 309, 261, 3446, 480, 446, 13, 288, 5411, 509, 3476, 1016, 273, 1237, 18, 31806, 2932, 315, 1769, 5411, 309, 261, 2981, 1016, 1545, 374, 13, 288, 7734, 23578, 7373, 273, 1237, 18, 28023, 12, 2981, 1016, 397, 404, 1769, 7734, 2710, 273, 1237, 18, 28023, 12, 20, 16, 3476, 1016, 1769, 5411, 289, 5411, 2710, 273, 2710, 18, 869, 8915, 12, 3916, 18, 3378, 1769, 3639, 289, 3639, 309, 261, 6447, 480, 446, 13, 288, 2 ]
public void setExcludes(String[] aExcludes)
public void setExcludes(String[] aExcludes)
public void setExcludes(String[] aExcludes) { m_excludes = new String[aExcludes.length]; for (int i = 0; i < aExcludes.length; i++) { m_excludes[i] = aExcludes[i]; if (!m_excludes[i].endsWith(".*")) { // force all package names to end with ".*" to disambiguate // "java.io" m_excludes[i] = m_excludes[i] + ".*"; } } }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/dd746bca54726dd7471962e9cf460b0f2ee167c9/AvoidStarImportCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/imports/AvoidStarImportCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 30866, 12, 780, 8526, 279, 30866, 13, 377, 288, 3639, 312, 67, 338, 8993, 273, 394, 514, 63, 69, 30866, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 279, 30866, 18, 2469, 31, 277, 27245, 288, 5411, 312, 67, 338, 8993, 63, 77, 65, 273, 279, 30866, 63, 77, 15533, 5411, 309, 16051, 81, 67, 338, 8993, 63, 77, 8009, 5839, 1190, 2932, 4509, 6, 3719, 288, 7734, 368, 2944, 777, 2181, 1257, 358, 679, 598, 3552, 7388, 358, 1015, 26011, 340, 7734, 368, 315, 6290, 18, 1594, 6, 1171, 312, 67, 338, 8993, 63, 77, 65, 273, 312, 67, 338, 8993, 63, 77, 65, 397, 3552, 7388, 31, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30866, 12, 780, 8526, 279, 30866, 13, 377, 288, 3639, 312, 67, 338, 8993, 273, 394, 514, 63, 69, 30866, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 279, 30866, 18, 2469, 31, 277, 27245, 288, 5411, 312, 67, 338, 8993, 63, 77, 65, 273, 279, 30866, 63, 77, 15533, 5411, 309, 16051, 81, 67, 338, 8993, 63, 77, 8009, 5839, 1190, 2932, 4509, 6, 3719, 288, 7734, 368, 2944, 777, 2181, 1257, 358, 679, 598, 3552, 7388, 358, 1015, 26011, 340, 7734, 368, 315, 6290, 18, 1594, 6, 1171, 312, 67, 338, 8993, 63, 77, 65, 273, 312, 67, 338, 8993, 63, 77, 65, 397, 3552, 7388, 31, 5411, 2 ]
patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments");
ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return;
public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("repeat: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("repeat: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/4beebbe053e6880f34d1244b354a06ee42d3aa30/PAContext.java/buggy/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 22, 1769, 3639, 309, 16051, 261, 892, 63, 21, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 9374, 30, 7194, 1775, 8863, 3639, 289, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 3588, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 9374, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 21, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3373, 23552, 4830, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 9374, 30, 7194, 1775, 8863, 3639, 289, 3639, 509, 290, 273, 261, 261, 1854, 13, 501, 63, 20, 65, 2934, 474, 620, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245, 288, 1850, 819, 18, 8944, 18, 2567, 12, 16330, 969, 1769, 3639, 289, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 22, 1769, 3639, 309, 16051, 261, 892, 63, 21, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 9374, 30, 7194, 1775, 8863, 3639, 289, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 3588, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 9374, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 21, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3373, 23552, 4830, 3719, 288, 1850, 2 ]
final String b0 = calc0.evaluateString(evaluator); final String b1 = calc1.evaluateString(evaluator); if (b0 == null || b1 == null) { return BooleanNull; } return b0.equals(b1);
return !calc.evaluateBoolean(evaluator);
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) { final StringCalc calc0 = compiler.compileString(call.getArg(0)); final StringCalc calc1 = compiler.compileString(call.getArg(1)); return new AbstractBooleanCalc(call, new Calc[] {calc0, calc1}) { public boolean evaluateBoolean(Evaluator evaluator) { final String b0 = calc0.evaluateString(evaluator); final String b1 = calc1.evaluateString(evaluator); if (b0 == null || b1 == null) { return BooleanNull; } return b0.equals(b1); } }; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 514, 25779, 7029, 20, 273, 5274, 18, 11100, 780, 12, 1991, 18, 588, 4117, 12, 20, 10019, 7734, 727, 514, 25779, 7029, 21, 273, 5274, 18, 11100, 780, 12, 1991, 18, 588, 4117, 12, 21, 10019, 7734, 327, 394, 4115, 5507, 25779, 12, 1991, 16, 394, 29128, 8526, 288, 12448, 20, 16, 7029, 21, 6792, 288, 10792, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 514, 324, 20, 273, 7029, 20, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 727, 514, 324, 21, 273, 7029, 21, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 309, 261, 70, 20, 422, 446, 747, 324, 21, 422, 446, 13, 288, 18701, 327, 3411, 2041, 31, 13491, 289, 13491, 327, 324, 20, 18, 14963, 12, 70, 21, 1769, 10792, 289, 7734, 289, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 514, 25779, 7029, 20, 273, 5274, 18, 11100, 780, 12, 1991, 18, 588, 4117, 12, 20, 10019, 7734, 727, 514, 25779, 7029, 21, 273, 5274, 18, 11100, 780, 12, 1991, 18, 588, 4117, 12, 21, 10019, 7734, 327, 394, 4115, 5507, 25779, 12, 1991, 16, 394, 29128, 8526, 288, 12448, 20, 16, 7029, 21, 6792, 288, 10792, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 514, 324, 20, 273, 7029, 20, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 727, 514, 324, 21, 273, 7029, 21, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 309, 261, 70, 20, 2 ]
CommandThread.core.savePreferences();
PreferenceManager.pref.save();
private void doSearch() { if (m_thread == null) doCancel(); else { m_viewer.reset(); String root = null; if (m_dirCB.isSelected()) { // make sure it's a valid directory name root = m_dirField.getText(); if (!root.endsWith(File.separator)) root += File.separator; File f = new File(root); if (!f.exists() || !f.isDirectory()) { // TODO XXX alert user folder is invalid StaticUtils.log("ERROR - bad directory name '"+ m_dirField.getText()+"'"); // NOI18N return; } if (CommandThread.core != null && m_dirCB.isSelected()) { CommandThread.core.setPreference( OConsts.PREF_SEARCH_DIR, root); // need to explicitly save preferences because project // might not be open CommandThread.core.savePreferences(); } } m_thread.requestSearch(m_searchField.getText(), root, m_recursiveCB.isSelected(), m_exactSearchRB.isSelected(), m_tmSearchCB.isSelected(), m_keywordSearchRB.isSelected()); } }
8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/178ba89b9c039302cec22fccbbbf12db471fd166/SearchWindow.java/clean/src/org/omegat/gui/SearchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 2979, 1435, 202, 95, 202, 202, 430, 261, 81, 67, 5930, 422, 446, 13, 1082, 202, 2896, 6691, 5621, 202, 202, 12107, 202, 202, 95, 1082, 202, 81, 67, 25256, 18, 6208, 5621, 1082, 202, 780, 1365, 273, 446, 31, 1082, 202, 430, 261, 81, 67, 1214, 8876, 18, 291, 7416, 10756, 1082, 202, 95, 9506, 202, 759, 1221, 3071, 518, 1807, 279, 923, 1867, 508, 9506, 202, 3085, 273, 312, 67, 1214, 974, 18, 588, 1528, 5621, 9506, 202, 430, 16051, 3085, 18, 5839, 1190, 12, 812, 18, 11287, 3719, 6862, 202, 3085, 1011, 1387, 18, 11287, 31, 9506, 202, 812, 284, 273, 394, 1387, 12, 3085, 1769, 9506, 202, 430, 16051, 74, 18, 1808, 1435, 747, 401, 74, 18, 291, 2853, 10756, 9506, 202, 95, 6862, 202, 759, 2660, 11329, 6881, 729, 3009, 353, 2057, 10792, 10901, 1989, 18, 1330, 2932, 3589, 300, 5570, 1867, 508, 225, 2119, 15, 18701, 312, 67, 1214, 974, 18, 588, 1528, 1435, 9078, 4970, 1769, 202, 759, 30085, 2643, 50, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 430, 261, 2189, 3830, 18, 3644, 480, 446, 597, 312, 67, 1214, 8876, 18, 291, 7416, 10756, 9506, 202, 95, 6862, 202, 2189, 3830, 18, 3644, 18, 542, 9624, 12, 6862, 9506, 202, 51, 21543, 18, 3670, 42, 67, 17251, 67, 4537, 16, 1365, 1769, 6862, 202, 759, 1608, 358, 8122, 1923, 12750, 2724, 1984, 6862, 202, 759, 202, 81, 750, 486, 506, 1696, 6862, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 2979, 1435, 202, 95, 202, 202, 430, 261, 81, 67, 5930, 422, 446, 13, 1082, 202, 2896, 6691, 5621, 202, 202, 12107, 202, 202, 95, 1082, 202, 81, 67, 25256, 18, 6208, 5621, 1082, 202, 780, 1365, 273, 446, 31, 1082, 202, 430, 261, 81, 67, 1214, 8876, 18, 291, 7416, 10756, 1082, 202, 95, 9506, 202, 759, 1221, 3071, 518, 1807, 279, 923, 1867, 508, 9506, 202, 3085, 273, 312, 67, 1214, 974, 18, 588, 1528, 5621, 9506, 202, 430, 16051, 3085, 18, 5839, 1190, 12, 812, 18, 11287, 3719, 6862, 202, 3085, 1011, 1387, 18, 11287, 31, 9506, 202, 812, 284, 273, 394, 1387, 12, 3085, 1769, 9506, 202, 430, 16051, 74, 2 ]
private void compare(TrustSet msgSet, TrustSet policySet) { if(policySet == null || msgSet == null)return; Iterator keys = policySet.keySet().iterator(); while(keys.hasNext()) { String type = (String)keys.next(); TrustAttribute msgAttribute = msgSet.getAttribute(type); TrustAttribute policyAttribute = policySet.getAttribute(type); try { if(policyAttribute.compareTo(msgAttribute) < 0) msgSet.addAttribute(policyAttribute); } catch(Exception ex) { //ex.printStackTrace(); } } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/dc9fd5855e50eaadd5520fad9ce9335764830777/SecurityAspect.java/buggy/securityservices/src/com/nai/security/crypto/SecurityAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 9877, 12, 14146, 694, 3576, 694, 16, 14146, 694, 5086, 694, 15329, 430, 12, 5086, 694, 631, 2011, 20081, 3576, 694, 631, 2011, 13, 2463, 31, 3198, 2452, 33, 5086, 694, 18, 856, 694, 7675, 9838, 5621, 17523, 12, 2452, 18, 5332, 2134, 10756, 95, 202, 780, 723, 28657, 780, 13, 2452, 18, 4285, 5621, 202, 14146, 12399, 322, 351, 1055, 1499, 33, 3576, 694, 18, 588, 1499, 12, 723, 1769, 202, 14146, 1499, 5086, 1499, 33, 5086, 694, 18, 588, 1499, 12, 723, 1769, 202, 698, 95, 202, 430, 12, 5086, 1499, 18, 9877, 774, 12, 3576, 1499, 13, 32, 20, 13, 202, 3576, 694, 18, 1289, 1499, 12, 5086, 1499, 1769, 202, 97, 202, 14683, 12, 503, 338, 15329, 202, 759, 338, 18, 1188, 6332, 5621, 202, 9090, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 6459, 9877, 12, 14146, 694, 3576, 694, 16, 14146, 694, 5086, 694, 15329, 430, 12, 5086, 694, 631, 2011, 20081, 3576, 694, 631, 2011, 13, 2463, 31, 3198, 2452, 33, 5086, 694, 18, 856, 694, 7675, 9838, 5621, 17523, 12, 2452, 18, 5332, 2134, 10756, 95, 202, 780, 723, 28657, 780, 13, 2452, 18, 4285, 5621, 202, 14146, 12399, 322, 351, 1055, 1499, 33, 3576, 694, 18, 588, 1499, 12, 723, 1769, 202, 14146, 1499, 5086, 1499, 33, 5086, 694, 18, 588, 1499, 12, 723, 1769, 202, 698, 95, 202, 430, 12, 5086, 1499, 18, 9877, 774, 12, 3576, 1499, 13, 32, 20, 13, 202, 3576, 694, 18, 1289, 1499, 12, 5086, 1499, 1769, 202, 97, 202, 14683, 2 ]
SearchManager searchMgr = (SearchManager) wspSearchMgrs.get(workspaceName); if (searchMgr == null) { try { if (wspConfig.getSearchConfig() == null) { return null;
if (wspConfig == null) { throw new NoSuchWorkspaceException(workspaceName); } synchronized (wspSearchMgrs) { SearchManager searchMgr = (SearchManager) wspSearchMgrs.get(workspaceName); if (searchMgr == null) { try { if (wspConfig.getSearchConfig() == null) { return null; } SystemSession s = getSystemSession(workspaceName); searchMgr = new SearchManager(s, wspConfig.getSearchConfig()); } catch (IOException e) { throw new RepositoryException("Exception opening search index.", e);
synchronized SearchManager getSearchManager(String workspaceName) throws NoSuchWorkspaceException, RepositoryException { // check state if (disposed) { throw new IllegalStateException("repository instance has been shut down"); } WorkspaceConfig wspConfig = (WorkspaceConfig) wspConfigs.get(workspaceName); SearchManager searchMgr = (SearchManager) wspSearchMgrs.get(workspaceName); if (searchMgr == null) { try { if (wspConfig.getSearchConfig() == null) { // no search index configured return null; } SystemSession s = getSystemSession(workspaceName); searchMgr = new SearchManager(s, wspConfig.getSearchConfig()); } catch (IOException e) { throw new RepositoryException("Exception opening search index.", e); } wspSearchMgrs.put(workspaceName, searchMgr); } return searchMgr; }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/0ecf861823d2bd78ff7b16b146e3a6bc63b73c12/RepositoryImpl.java/buggy/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 5167, 1318, 15627, 1318, 12, 780, 21522, 13, 5411, 1216, 5823, 8241, 503, 16, 13367, 288, 3639, 368, 866, 919, 3639, 309, 261, 2251, 7423, 13, 288, 5411, 604, 394, 5477, 2932, 9071, 791, 711, 2118, 9171, 2588, 8863, 3639, 289, 3639, 14396, 809, 341, 1752, 809, 273, 261, 8241, 809, 13, 341, 1752, 8062, 18, 588, 12, 14915, 461, 1769, 3639, 5167, 1318, 1623, 9455, 7734, 273, 261, 2979, 1318, 13, 341, 1752, 2979, 9455, 87, 18, 588, 12, 14915, 461, 1769, 3639, 309, 261, 3072, 9455, 422, 446, 13, 288, 5411, 775, 288, 7734, 309, 261, 91, 1752, 809, 18, 588, 2979, 809, 1435, 422, 446, 13, 288, 10792, 368, 1158, 1623, 770, 4351, 10792, 327, 446, 31, 7734, 289, 7734, 2332, 2157, 272, 273, 12996, 2157, 12, 14915, 461, 1769, 7734, 1623, 9455, 273, 394, 5167, 1318, 12, 87, 16, 341, 1752, 809, 18, 588, 2979, 809, 10663, 5411, 289, 1044, 261, 14106, 425, 13, 288, 7734, 604, 394, 13367, 2932, 503, 10890, 1623, 770, 1199, 16, 425, 1769, 5411, 289, 5411, 341, 1752, 2979, 9455, 87, 18, 458, 12, 14915, 461, 16, 1623, 9455, 1769, 3639, 289, 3639, 327, 1623, 9455, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 5167, 1318, 15627, 1318, 12, 780, 21522, 13, 5411, 1216, 5823, 8241, 503, 16, 13367, 288, 3639, 368, 866, 919, 3639, 309, 261, 2251, 7423, 13, 288, 5411, 604, 394, 5477, 2932, 9071, 791, 711, 2118, 9171, 2588, 8863, 3639, 289, 3639, 14396, 809, 341, 1752, 809, 273, 261, 8241, 809, 13, 341, 1752, 8062, 18, 588, 12, 14915, 461, 1769, 3639, 5167, 1318, 1623, 9455, 7734, 273, 261, 2979, 1318, 13, 341, 1752, 2979, 9455, 87, 18, 588, 12, 14915, 461, 1769, 3639, 309, 261, 3072, 9455, 422, 446, 13, 288, 5411, 775, 288, 7734, 309, 261, 91, 1752, 809, 18, 588, 2979, 809, 1435, 422, 446, 13, 288, 10792, 368, 1158, 1623, 770, 4351, 10792, 2 ]
super(); this.iteratorName = iteratorName; }
super(); this.iteratorName = iteratorName; }
private NumCallsToIteratorNextVisitor(String iteratorName) { super(); this.iteratorName = iteratorName; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/9b988832984f0e624cea3998a4bc58a17a3426e2/WhileCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/WhileCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6805, 10125, 774, 3198, 2134, 7413, 12, 780, 2775, 461, 13, 288, 1377, 2240, 5621, 1377, 333, 18, 9838, 461, 273, 2775, 461, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6805, 10125, 774, 3198, 2134, 7413, 12, 780, 2775, 461, 13, 288, 1377, 2240, 5621, 1377, 333, 18, 9838, 461, 273, 2775, 461, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
m_sqlManager.closeAll(dbc, null, stmt, res);
m_sqlManager.closeAll(dbc, null, stmt, res);
public void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException { PreparedStatement stmt = null; PreparedStatement commit = null; PreparedStatement rollback = null; Connection conn = null; ResultSet res = null; boolean wasInTransaction = false; try { conn = m_sqlManager.getConnection(dbc, project.getId()); if (conn.getMetaData().getDriverMajorVersion()<9) { stmt = m_sqlManager.getPreparedStatement(conn, project, "C_ORACLE8_CONTENTS_UPDATECONTENT"); } else { stmt = m_sqlManager.getPreparedStatement(conn, project, "C_ORACLE_CONTENTS_UPDATECONTENT"); } wasInTransaction = !conn.getAutoCommit(); if (!wasInTransaction) { conn.setAutoCommit(false); } // update the file content in the contents table stmt.setString(1, resourceId.toString()); res = ((DelegatingResultSet)stmt.executeQuery()).getInnermostDelegate(); if (!res.next()) { throw new CmsDbEntryNotFoundException( Messages.get().container(Messages.LOG_READING_RESOURCE_1, resourceId)); } // write file content OutputStream output = CmsUserDriver.getOutputStreamFromBlob(res, "FILE_CONTENT"); output.write(content); output.close(); if (!wasInTransaction) { commit = m_sqlManager.getPreparedStatement(conn, "C_COMMIT"); commit.execute(); m_sqlManager.closeAll(dbc, null, commit, null); } m_sqlManager.closeAll(dbc, null, stmt, res); commit = null; stmt = null; res = null; if (!wasInTransaction) { conn.setAutoCommit(true); } } catch (IOException e) { throw new CmsDbIoException(Messages.get().container(Messages.ERR_WRITING_TO_OUTPUT_STREAM_1, resourceId), e); } catch (SQLException e) { throw new CmsDbSqlException(org.opencms.db.generic.Messages.get().container( org.opencms.db.generic.Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); } finally { if (res != null) { try { res.close(); } catch (SQLException exc) { // ignore } } if (commit != null) { try { commit.close(); } catch (SQLException exc) { // ignore } } if (!wasInTransaction) { if (stmt != null) { try { rollback = m_sqlManager.getPreparedStatement(conn, "C_ROLLBACK"); rollback.execute(); rollback.close(); } catch (SQLException se) { // ignore } try { stmt.close(); } catch (SQLException exc) { // ignore } } if (conn != null) { try { conn.setAutoCommit(true); conn.close(); } catch (SQLException se) { // ignore } } } } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/546c122e43ad901e06bfec1c2164259c3ce08c8b/CmsVfsDriver.java/clean/src/org/opencms/db/oracle/CmsVfsDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1350, 12, 4747, 4331, 1042, 9881, 16, 2149, 4109, 1984, 16, 15792, 15035, 16, 1160, 8526, 913, 13, 1216, 2149, 751, 9773, 288, 3639, 16913, 3480, 273, 446, 31, 3639, 16913, 3294, 273, 446, 31, 3639, 16913, 8006, 273, 446, 31, 3639, 4050, 1487, 273, 446, 31, 3639, 10842, 400, 273, 446, 31, 7734, 1250, 1703, 382, 3342, 273, 629, 31, 3639, 775, 288, 13491, 1487, 273, 312, 67, 4669, 1318, 18, 588, 1952, 12, 9137, 16, 1984, 18, 26321, 10663, 5411, 309, 261, 4646, 18, 588, 6998, 7675, 588, 4668, 17581, 1444, 1435, 32, 29, 13, 288, 7734, 3480, 273, 312, 67, 4669, 1318, 18, 588, 29325, 12, 4646, 16, 1984, 16, 315, 39, 67, 916, 2226, 900, 28, 67, 9689, 55, 67, 8217, 9689, 8863, 5411, 289, 469, 288, 7734, 3480, 273, 312, 67, 4669, 1318, 18, 588, 29325, 12, 4646, 16, 1984, 16, 315, 39, 67, 916, 2226, 900, 67, 9689, 55, 67, 8217, 9689, 8863, 5411, 289, 13491, 1703, 382, 3342, 273, 401, 4646, 18, 588, 4965, 5580, 5621, 5411, 309, 16051, 17416, 382, 3342, 13, 288, 7734, 1487, 18, 542, 4965, 5580, 12, 5743, 1769, 5411, 289, 13491, 368, 1089, 326, 585, 913, 316, 326, 2939, 1014, 5411, 3480, 18, 542, 780, 12, 21, 16, 15035, 18, 10492, 10663, 5411, 400, 273, 14015, 15608, 1776, 13198, 13, 10589, 18, 8837, 1138, 1435, 2934, 588, 382, 82, 28055, 9586, 5621, 5411, 309, 16051, 455, 18, 4285, 10756, 288, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1350, 12, 4747, 4331, 1042, 9881, 16, 2149, 4109, 1984, 16, 15792, 15035, 16, 1160, 8526, 913, 13, 1216, 2149, 751, 9773, 288, 3639, 16913, 3480, 273, 446, 31, 3639, 16913, 3294, 273, 446, 31, 3639, 16913, 8006, 273, 446, 31, 3639, 4050, 1487, 273, 446, 31, 3639, 10842, 400, 273, 446, 31, 7734, 1250, 1703, 382, 3342, 273, 629, 31, 3639, 775, 288, 13491, 1487, 273, 312, 67, 4669, 1318, 18, 588, 1952, 12, 9137, 16, 1984, 18, 26321, 10663, 5411, 309, 261, 4646, 18, 588, 6998, 7675, 588, 4668, 17581, 1444, 1435, 32, 29, 13, 288, 7734, 3480, 273, 312, 67, 4669, 1318, 18, 588, 29325, 12, 4646, 16, 1984, 16, 315, 39, 2 ]
FileWindow w = (FileWindow) fileWindows.get(sourceName); super.handleCompilationDone(cx, fnOrScript, source);
/* super.(cx, fnOrScript, source);
public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) { String sourceName = fnOrScript.getSourceName(); FileWindow w = (FileWindow) fileWindows.get(sourceName); super.handleCompilationDone(cx, fnOrScript, source); if (!treeNodes.containsKey(sourceName)) { createTreeNode(sourceName); } if (w != null) { // renew existing file window int position = w.textArea.getCaretPosition(); // System.err.println(" VISIBLE: " + point); // w.sourceInfo.removeAllBreakpoints(); w.sourceInfo = (SourceInfo) sourceNames.get(sourceName); w.updateText(); w.textArea.setCaretPosition(position); } }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/e5033685db66692b025c727bc12f11dab403a21d/HelmaDebugger.java/clean/src/helma/scripting/rhino/debug/HelmaDebugger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 19184, 7387, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 16, 4766, 1377, 514, 1084, 13, 288, 3639, 514, 28337, 273, 2295, 1162, 3651, 18, 588, 1830, 461, 5621, 3639, 1387, 3829, 341, 273, 261, 812, 3829, 13, 585, 10399, 18, 588, 12, 3168, 461, 1769, 3639, 2240, 18, 4110, 19184, 7387, 12, 71, 92, 16, 2295, 1162, 3651, 16, 1084, 1769, 3639, 309, 16051, 3413, 3205, 18, 12298, 653, 12, 3168, 461, 3719, 288, 5411, 752, 12513, 12, 3168, 461, 1769, 3639, 289, 3639, 309, 261, 91, 480, 446, 13, 288, 5411, 368, 15723, 2062, 585, 2742, 5411, 509, 1754, 273, 341, 18, 955, 5484, 18, 588, 39, 20731, 2555, 5621, 5411, 368, 2332, 18, 370, 18, 8222, 2932, 540, 25289, 30, 315, 397, 1634, 1769, 5411, 368, 341, 18, 3168, 966, 18, 4479, 1595, 7634, 4139, 5621, 5411, 341, 18, 3168, 966, 273, 261, 1830, 966, 13, 1084, 1557, 18, 588, 12, 3168, 461, 1769, 5411, 341, 18, 2725, 1528, 5621, 5411, 341, 18, 955, 5484, 18, 542, 39, 20731, 2555, 12, 3276, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1640, 19184, 7387, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 16, 4766, 1377, 514, 1084, 13, 288, 3639, 514, 28337, 273, 2295, 1162, 3651, 18, 588, 1830, 461, 5621, 3639, 1387, 3829, 341, 273, 261, 812, 3829, 13, 585, 10399, 18, 588, 12, 3168, 461, 1769, 3639, 2240, 18, 4110, 19184, 7387, 12, 71, 92, 16, 2295, 1162, 3651, 16, 1084, 1769, 3639, 309, 16051, 3413, 3205, 18, 12298, 653, 12, 3168, 461, 3719, 288, 5411, 752, 12513, 12, 3168, 461, 1769, 3639, 289, 3639, 309, 261, 91, 480, 446, 13, 288, 5411, 368, 15723, 2062, 585, 2742, 5411, 509, 1754, 273, 341, 18, 955, 5484, 18, 588, 39, 20731, 2555, 5621, 5411, 2 ]
if(c.getSearchKey(routingkeyDBE,blockDBE,LockMode.DEFAULT)
if(c.getSearchKey(routingkeyDBE,blockDBE,LockMode.RMW)
public DSAPublicKey fetchPubKey(byte[] hash, boolean dontPromote) throws IOException { if(closed) return null; DatabaseEntry routingkeyDBE = new DatabaseEntry(hash); DatabaseEntry blockDBE = new DatabaseEntry(); Cursor c = null; try{ Transaction t = environment.beginTransaction(null,null); c = chkDB.openCursor(t,null); if(c.getSearchKey(routingkeyDBE,blockDBE,LockMode.DEFAULT) !=OperationStatus.SUCCESS) { c.close(); t.abort(); return null; } StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); DSAPublicKey block = null; byte[] data = new byte[dataBlockSize]; synchronized(chkStore) { chkStore.seek(storeBlock.offset*(long)(dataBlockSize+headerBlockSize)); chkStore.read(data); } try { block = new DSAPublicKey(data); } catch (IOException e) { Logger.error(this, "Could not read key"); return null; } if(!Arrays.equals(block.asBytesHash(), hash)) { Logger.normal(this, "Does not verify, setting accessTime to 0 for : "+HexUtil.bytesToHex(hash)); storeBlock.setRecentlyUsedToZero(); DatabaseEntry updateDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, updateDBE); c.putCurrent(updateDBE); c.close(); t.commit(); return null; } if(!dontPromote) { storeBlock.updateRecentlyUsed(); DatabaseEntry updateDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, updateDBE); c.putCurrent(updateDBE); c.close(); t.commit(); }else{ c.close(); t.abort(); } Logger.minor(this, "Get key: "+HexUtil.bytesToHex(hash)); Logger.minor(this, "Data: "+data.length+" bytes, hash "+data); return block; }catch(Exception ex) { // FIXME: ugly if(c!=null) { try{c.close();}catch(DatabaseException ex2){} } Logger.error(this, "Caught "+ex, ex); ex.printStackTrace(); throw new IOException(ex.getMessage()); } // return null; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/282edcd8020c2c5288c67f95b67f361122318239/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8678, 2203, 24312, 2158, 17924, 12, 7229, 8526, 1651, 16, 1250, 14046, 13224, 1168, 13, 1216, 1860, 565, 288, 377, 202, 430, 12, 12204, 13, 377, 202, 202, 2463, 446, 31, 377, 202, 377, 202, 4254, 1622, 7502, 856, 2290, 41, 273, 394, 5130, 1622, 12, 2816, 1769, 377, 202, 4254, 1622, 1203, 2290, 41, 273, 394, 5130, 1622, 5621, 377, 202, 6688, 276, 273, 446, 31, 377, 202, 698, 95, 377, 202, 202, 3342, 268, 273, 3330, 18, 10086, 3342, 12, 2011, 16, 2011, 1769, 377, 202, 202, 71, 273, 15000, 2290, 18, 3190, 6688, 12, 88, 16, 2011, 1769, 377, 1082, 377, 202, 202, 430, 12, 71, 18, 588, 2979, 653, 12, 16529, 856, 2290, 41, 16, 2629, 2290, 41, 16, 2531, 2309, 18, 8717, 59, 13, 377, 9506, 202, 5, 33, 2988, 1482, 18, 12778, 13, 288, 377, 1082, 202, 71, 18, 4412, 5621, 377, 1082, 202, 88, 18, 18623, 5621, 377, 1082, 202, 2463, 446, 31, 377, 202, 202, 97, 202, 377, 202, 2257, 1768, 1707, 1768, 273, 261, 2257, 1768, 13, 1707, 1768, 9038, 5250, 18, 4099, 19121, 12, 2629, 2290, 41, 1769, 202, 377, 1082, 377, 1082, 377, 202, 3948, 2203, 24312, 1203, 273, 446, 31, 202, 377, 1082, 377, 202, 202, 7229, 8526, 501, 273, 394, 1160, 63, 892, 22506, 15533, 202, 377, 202, 202, 22043, 12, 27038, 2257, 13, 288, 1082, 377, 202, 202, 27038, 2257, 18, 16508, 12, 2233, 1768, 18, 3348, 21556, 5748, 21433, 892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8678, 2203, 24312, 2158, 17924, 12, 7229, 8526, 1651, 16, 1250, 14046, 13224, 1168, 13, 1216, 1860, 565, 288, 377, 202, 430, 12, 12204, 13, 377, 202, 202, 2463, 446, 31, 377, 202, 377, 202, 4254, 1622, 7502, 856, 2290, 41, 273, 394, 5130, 1622, 12, 2816, 1769, 377, 202, 4254, 1622, 1203, 2290, 41, 273, 394, 5130, 1622, 5621, 377, 202, 6688, 276, 273, 446, 31, 377, 202, 698, 95, 377, 202, 202, 3342, 268, 273, 3330, 18, 10086, 3342, 12, 2011, 16, 2011, 1769, 377, 202, 202, 71, 273, 15000, 2290, 18, 3190, 6688, 12, 88, 16, 2011, 1769, 377, 1082, 377, 202, 202, 430, 12, 71, 18, 588, 2979, 653, 12, 16529, 856, 2290, 2 ]
m.setByteProperty("Byte", (byte) Byte.MAX_VALUE); m.setDoubleProperty("Double", (double) Double.MAX_VALUE); m.setFloatProperty("Float", (float) Float.MAX_VALUE); m.setIntProperty("Int", (int) Integer.MAX_VALUE);
void send(int count) throws JMSException { //create a publisher MessageProducer producer = _session.createProducer(_destination); for (int i = 0; i < count; i++) { String text = "Message " + i; messages.add(text); Message m = _session.createTextMessage(text); m.setBooleanProperty("Bool", true);// m.setByteProperty("Byte", (byte) Byte.MAX_VALUE);// m.setDoubleProperty("Double", (double) Double.MAX_VALUE);// m.setFloatProperty("Float", (float) Float.MAX_VALUE);// m.setIntProperty("Int", (int) Integer.MAX_VALUE); m.setJMSCorrelationID("Correlation"); m.setJMSPriority(100); // Set Q //m.setJMSReplyTo(_session.Queue("TestReply")); // Temporary Queue Queue q = _session.createTemporaryQueue(); m.setJMSReplyTo(q);//Queue("TestReply")); m.setStringProperty("TempQueue", q.toString());// m.setJMSType("Test"); m.setLongProperty("UnsignedInt", (long) 4294967295L);// m.setLongProperty("Long", (long) Long.MAX_VALUE);// m.setShortProperty("Short", (short) Short.MAX_VALUE); m.setStringProperty("String", "Test"); _logger.info("Sending Msg:" + m); producer.send(m); } }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/2e4d9c40a39cb0a89cfaae57a3aaca97ce133fbc/PropertyValueTest.java/clean/qpid/java/client/src/test/java/org/apache/qpid/test/unit/basic/PropertyValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 6694, 67, 4051, 1769, 312, 18, 542, 4723, 1396, 2932, 4723, 3113, 261, 5659, 13, 5450, 18, 6694, 67, 4051, 1769, 312, 18, 542, 1702, 1396, 2932, 1702, 3113, 261, 474, 13, 2144, 18, 6694, 67, 4051, 1769, 225, 918, 1366, 12, 474, 1056, 13, 1216, 20343, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 6694, 67, 4051, 1769, 312, 18, 542, 4723, 1396, 2932, 4723, 3113, 261, 5659, 13, 5450, 18, 6694, 67, 4051, 1769, 312, 18, 542, 1702, 1396, 2932, 1702, 3113, 261, 474, 13, 2144, 18, 6694, 67, 4051, 1769, 225, 288, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 6694, 67, 4051, 1769, 312, 18, 542, 4723, 1396, 2932, 4723, 3113, 261, 5659, 13, 5450, 18, 6694, 67, 4051, 1769, 312, 18, 542, 1702, 1396, 2932, 1702, 3113, 261, 474, 13, 2144, 18, 6694, 67, 4051, 1769, 282, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 6694, 67, 4051, 1769, 312, 18, 542, 4723, 1396, 2932, 4723, 3113, 261, 5659, 13, 5450, 18, 6694, 67, 4051, 1769, 312, 18, 542, 1702, 1396, 2932, 1702, 3113, 261, 474, 13, 2144, 18, 6694, 67, 4051, 1769, 225, 918, 1366, 12, 474, 1056, 13, 1216, 20343, 312, 18, 542, 3216, 1396, 2932, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 1769, 312, 18, 542, 5265, 1396, 2932, 5265, 3113, 261, 9056, 13, 3698, 18, 6694, 67, 4051, 1769, 312, 18, 542, 4723, 1396, 2932, 4723, 2 ]
fAnnotationBuffer.append(text.ch[i]);
fAnnotationBuffer.append(ch);
void characters(XMLString text ) { // escape characters if necessary if (!inCDATA) { for (int i = text.offset; i < text.offset+text.length; ++i ) { if (text.ch[i] == '&') { fAnnotationBuffer.append("&amp;"); } else if (text.ch[i] == '<') { fAnnotationBuffer.append("&lt;"); } // character sequence "]]>" cannot appear in content, // therefore we should escape '>'. else if (text.ch[i] == '>') { fAnnotationBuffer.append("&gt;"); } // If CR is part of the document's content, it // must not be printed as a literal otherwise // it would be normalized to LF when the document // is reparsed. else if (text.ch[i] == '\r') { fAnnotationBuffer.append("&#xD;"); } else { fAnnotationBuffer.append(text.ch[i]); } } } else { fAnnotationBuffer.append(text.ch, text.offset, text.length); } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/fbe6887ce5c9be77296ac2d394966241c634d173/SchemaDOM.java/clean/src/org/apache/xerces/impl/xs/opti/SchemaDOM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3949, 12, 4201, 780, 977, 262, 288, 7734, 368, 4114, 3949, 309, 4573, 3639, 309, 16051, 267, 18375, 13, 288, 9079, 364, 261, 474, 277, 273, 977, 18, 3348, 31, 277, 411, 977, 18, 3348, 15, 955, 18, 2469, 31, 965, 77, 262, 288, 7734, 309, 261, 955, 18, 343, 63, 77, 65, 422, 5183, 6134, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 10, 931, 4868, 1769, 7734, 289, 1171, 469, 309, 261, 955, 18, 343, 63, 77, 65, 422, 2368, 6134, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 10, 5618, 4868, 1769, 7734, 289, 7734, 368, 3351, 3102, 9850, 65, 2984, 2780, 9788, 316, 913, 16, 1171, 368, 13526, 732, 1410, 4114, 7481, 18, 7734, 469, 309, 261, 955, 18, 343, 63, 77, 65, 422, 7481, 13, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 10, 4521, 4868, 1769, 7734, 289, 7734, 368, 971, 6732, 353, 1087, 434, 326, 1668, 1807, 913, 16, 518, 7734, 368, 1297, 486, 506, 14099, 487, 279, 7158, 3541, 7734, 368, 518, 4102, 506, 5640, 358, 18803, 1347, 326, 1668, 7734, 368, 353, 283, 10817, 18, 7734, 469, 309, 261, 955, 18, 343, 63, 77, 65, 422, 2337, 86, 6134, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 18642, 17593, 4868, 1769, 7734, 289, 7734, 469, 288, 10792, 284, 3257, 1892, 18, 6923, 12, 343, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 469, 288, 5411, 284, 3257, 1892, 18, 6923, 12, 955, 18, 343, 16, 977, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3949, 12, 4201, 780, 977, 262, 288, 7734, 368, 4114, 3949, 309, 4573, 3639, 309, 16051, 267, 18375, 13, 288, 9079, 364, 261, 474, 277, 273, 977, 18, 3348, 31, 277, 411, 977, 18, 3348, 15, 955, 18, 2469, 31, 965, 77, 262, 288, 7734, 309, 261, 955, 18, 343, 63, 77, 65, 422, 5183, 6134, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 10, 931, 4868, 1769, 7734, 289, 1171, 469, 309, 261, 955, 18, 343, 63, 77, 65, 422, 2368, 6134, 288, 10792, 284, 3257, 1892, 18, 6923, 2932, 10, 5618, 4868, 1769, 7734, 289, 7734, 368, 3351, 3102, 9850, 65, 2984, 2780, 9788, 316, 913, 16, 1171, 368, 13526, 732, 1410, 4114, 7481, 18, 2 ]
int size = 0;
int size = 0;
private int traverseSimpleTypeDecl( Element simpleTypeDecl ) throws Exception { String nameProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME ); String qualifiedName = nameProperty; if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+nameProperty; } //check if we have already traversed the same simpleType decl if (fDatatypeRegistry.getDatatypeValidator(qualifiedName)!=null) { return fStringPool.addSymbol(qualifiedName); } Attr finalAttr = simpleTypeDecl.getAttributeNode(SchemaSymbols.ATT_FINAL); int finalProperty = 0; if(finalAttr != null) finalProperty = parseFinalSet(finalAttr.getValue()); else finalProperty = parseFinalSet(null); // if we have a nonzero final , store it in the hash... if(finalProperty != 0) fSimpleTypeFinalRegistry.put(qualifiedName, new Integer(finalProperty)); boolean list = false; boolean union = false; boolean restriction = false; int newSimpleTypeName = -1; if ( nameProperty.equals("")) { // anonymous simpleType newSimpleTypeName = fStringPool.addSymbol( "#S#"+fSimpleTypeAnonCount++ ); } else newSimpleTypeName = fStringPool.addSymbol( nameProperty ); //annotation?,(list|restriction|union) Element content = XUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" String varietyProperty = content.getLocalName(); String baseTypeQNameProperty = null; Vector dTValidators = null; int size = 0; StringTokenizer unionMembers = null; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_ITEMTYPE ); list = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (!baseTypeQNameProperty.equals("")) { unionMembers = new StringTokenizer( baseTypeQNameProperty ); size = unionMembers.countTokens(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { reportSchemaError(SchemaMessageProvider.FeatureUnsupported, new Object [] { varietyProperty }); return -1; } if(XUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } int typeNameIndex; DatatypeValidator baseValidator = null; if ( baseTypeQNameProperty.equals("") ) { //must 'see' <simpleType> //content = {annotation?,simpleType?...} content = XUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } if (content.getLocalName().equals( SchemaSymbols.ELT_SIMPLETYPE )) { //Test... typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator !=null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( typeNameIndex == -1 || baseValidator == null) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { content.getAttribute( SchemaSymbols.ATT_BASE ), content.getAttribute(SchemaSymbols.ATT_NAME) }); return -1; } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); return -1; } } //end - must see simpleType? else { //base was provided - get proper validator. numOfTypes = 1; if (union) { numOfTypes= size; } // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeQNameProperty = unionMembers.nextToken(); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeQNameProperty, baseRefContext); if ( baseValidator == null) { return (-1); } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available if (list && baseValidator instanceof ListDatatypeValidator) { reportSchemaError(SchemaMessageProvider.InvalidBaseType, new Object [] { baseTypeQNameProperty, simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return -1; } // move to next child // restriction ->[simpleType]->[facets] OR // restriction ->[facets] if (baseTypeQNameProperty.equals ("")) { //we already got the first kid of union/list/restriction content = XUtil.getNextSiblingElement( content ); } else { //we need to look at first kid of union/list/restriction content = XUtil.getFirstChildElement(content); } //get more types for union if any if (union) { int index=size; if (!baseTypeQNameProperty.equals ("")) { content = checkContent(simpleTypeDecl, content, true); } while (content!=null) { typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator != null) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( baseValidator == null || typeNameIndex == -1) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return (-1); } content = XUtil.getNextSiblingElement( content ); } } // end - traverse Union Hashtable facetData =null; int numFacets=0; facetData = new Hashtable(); if (restriction && content != null) { int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(simpleTypeDecl, content , true); StringBuffer pattern = null; String facet; while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { numFacets++; facet =content.getLocalName(); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = content.getAttribute(SchemaSymbols.ATT_VALUE); String localName; if (baseValidator instanceof NOTATIONDatatypeValidator) { String prefix = ""; String localpart = enumVal; int colonptr = enumVal.indexOf(":"); if ( colonptr > 0) { prefix = enumVal.substring(0,colonptr); localpart = enumVal.substring(colonptr+1); } String uriStr = (!prefix.equals(""))?resolvePrefixToURI(prefix):fTargetNSURIString; qualifiedName=uriStr + ":" + localpart; localName = (String)fNotationRegistry.get(qualifiedName); if(localName == null){ localName = traverseNotationFromAnotherSchema( localpart, uriStr); if (localName == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } } if (DEBUGGING) { System.out.println("[notation decl] fullName: = " + qualifiedName); System.out.println("[notation decl] enum value: =" +enumVal); } enumVal=qualifiedName; } enumData.addElement(enumVal); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (pattern == null) { pattern = new StringBuffer (content.getAttribute( SchemaSymbols.ATT_VALUE )); } else { //datatypes: 5.2.4 pattern pattern.append("|"); pattern.append(content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } else { if ( facetData.containsKey(facet) ) reportSchemaError(SchemaMessageProvider.DatatypeError, new Object [] {"The facet '" + facet + "' is defined more than once."} ); facetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } content = XUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (pattern !=null) { facetData.put(SchemaSymbols.ELT_PATTERN, pattern.toString()); } } else if (list && content!=null) { // report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } else if (union && content!=null) { //report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } // create & register validator for "generated" type if it doesn't exist qualifiedName = fStringPool.toString(newSimpleTypeName); if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+qualifiedName; } try { DatatypeValidator newValidator = fDatatypeRegistry.getDatatypeValidator( qualifiedName ); if( newValidator == null ) { // not previously registered if (list) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,true); } else if (restriction) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,false); } else { //union fDatatypeRegistry.createDatatypeValidator( qualifiedName, dTValidators); } } } catch (Exception e) { reportSchemaError(SchemaMessageProvider.DatatypeError,new Object [] { e.getMessage() }); } return fStringPool.addSymbol(qualifiedName); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, 67, 1985, 11272, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 309, 261, 74, 2326, 3156, 3098, 780, 18, 2469, 1832, 480, 374, 13, 288, 5411, 24133, 273, 284, 2326, 3156, 3098, 780, 15, 15937, 15, 529, 1396, 31, 3639, 289, 3639, 368, 1893, 309, 732, 1240, 1818, 29062, 326, 1967, 4143, 559, 3496, 3639, 309, 261, 74, 20228, 4243, 18, 588, 20228, 5126, 12, 19724, 461, 13, 5, 33, 2011, 13, 288, 5411, 327, 284, 780, 2864, 18, 1289, 5335, 12, 19724, 461, 1769, 3639, 289, 7734, 11289, 727, 3843, 273, 4143, 559, 3456, 18, 588, 1499, 907, 12, 3078, 14821, 18, 789, 56, 67, 7263, 1013, 1769, 3639, 509, 727, 1396, 273, 374, 31, 3639, 309, 12, 6385, 3843, 480, 446, 13, 2398, 727, 1396, 273, 1109, 7951, 694, 12, 6385, 3843, 18, 24805, 10663, 3639, 469, 5411, 727, 1396, 273, 1109, 7951, 694, 12, 2011, 1769, 3639, 368, 309, 732, 1240, 279, 16966, 727, 269, 1707, 518, 316, 326, 1651, 2777, 3639, 309, 12, 6385, 1396, 480, 374, 13, 2398, 284, 5784, 559, 7951, 4243, 18, 458, 12, 19724, 461, 16, 394, 2144, 12, 6385, 1396, 10019, 3639, 1250, 666, 273, 629, 31, 3639, 1250, 7812, 273, 629, 31, 3639, 1250, 9318, 273, 629, 31, 3639, 509, 377, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, 67, 1985, 11272, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 309, 261, 74, 2326, 3156, 3098, 780, 18, 2469, 1832, 480, 374, 13, 288, 5411, 24133, 273, 284, 2326, 3156, 3098, 780, 15, 15937, 15, 529, 1396, 31, 3639, 289, 3639, 368, 1893, 309, 732, 1240, 1818, 29062, 326, 1967, 4143, 559, 3496, 3639, 309, 261, 74, 20228, 4243, 18, 588, 20228, 5126, 12, 19724, 461, 13, 5, 33, 2011, 13, 288, 5411, 327, 284, 780, 2864, 18, 1289, 5335, 12, 19724, 461, 2 ]
String msg = userBuis.isUserSuitedForGroup(user,group); if(msg!=null){
String failedMsg = userBuis.isUserSuitedForGroup(user,group); if(failedMsg==null){
private boolean handleInsert(IWContext iwc) throws RemoteException{ String sPid; String sStat; User user; Status stat; UserStatusBusiness usb = (UserStatusBusiness) IBOLookup.getServiceInstance(iwc, UserStatusBusiness.class); failedInserts = new Vector(); boolean errorFree = true; UserBusiness userBuis = getUserBusiness(iwc); for (int i = 1; i <= numberOfRows; i++) { if (iwc.isParameterSet(PARAMETER_SAVE+"_"+i)) { try { sPid = iwc.getParameter(PARAMETER_PID+"_"+i); sStat = iwc.getParameter(PARAMETER_STATUS+"_"+i); user = uHome.findByPersonalID(sPid); if (UserStatusDropdown.NO_STATUS_KEY.equals(sStat)) { stat = null; } else { stat = sHome.findByPrimaryKey(new Integer(sStat)); } String msg = userBuis.isUserSuitedForGroup(user,group); if(msg!=null){ group.addGroup(user); if ( stat != null && (! usb.setUserGroupStatus(user.getID(), ((Integer)group.getPrimaryKey()).intValue(), ((Integer)stat.getPrimaryKey()).intValue(),iwc.getCurrentUserId()) )) { failedInserts.add(new FailedRegisterUser(user,"")); errorFree = false; } if (user.getPrimaryGroup() == null) { user.setPrimaryGroup(group); user.store(); } } else{ failedInserts.add(new FailedRegisterUser(user,msg)); errorFree = false; } } catch (FinderException e) { e.printStackTrace(System.err); } } } return errorFree; }
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/d2676d515265c8b50913472a424e8846889634f1/MassRegisteringWindow.java/clean/src/java/com/idega/user/presentation/MassRegisteringWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1640, 4600, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 95, 3639, 514, 272, 12478, 31, 3639, 514, 272, 5000, 31, 3639, 2177, 729, 31, 3639, 2685, 610, 31, 3639, 2177, 1482, 13423, 31261, 273, 261, 1299, 1482, 13423, 13, 23450, 1741, 4909, 18, 588, 29652, 12, 22315, 71, 16, 2177, 1482, 13423, 18, 1106, 1769, 3639, 2535, 14214, 273, 394, 5589, 5621, 3639, 1250, 555, 9194, 273, 638, 31, 3639, 2177, 13423, 729, 38, 89, 291, 273, 4735, 13423, 12, 22315, 71, 1769, 13491, 364, 261, 474, 277, 273, 404, 31, 277, 1648, 7922, 4300, 31, 277, 27245, 288, 5411, 309, 261, 22315, 71, 18, 291, 1662, 694, 12, 9819, 67, 25242, 9078, 9548, 15, 77, 3719, 288, 7734, 775, 288, 10792, 272, 12478, 273, 25522, 71, 18, 588, 1662, 12, 9819, 67, 16522, 9078, 9548, 15, 77, 1769, 10792, 272, 5000, 273, 25522, 71, 18, 588, 1662, 12, 9819, 67, 8608, 9078, 9548, 15, 77, 1769, 10792, 729, 273, 582, 8684, 18, 4720, 858, 8346, 287, 734, 12, 87, 12478, 1769, 10792, 309, 261, 1299, 1482, 23947, 18, 3417, 67, 8608, 67, 3297, 18, 14963, 12, 87, 5000, 3719, 225, 288, 13491, 610, 273, 446, 31, 10792, 289, 10792, 469, 288, 13491, 610, 273, 272, 8684, 18, 4720, 858, 11575, 12, 2704, 2144, 12, 87, 5000, 10019, 10792, 289, 1082, 10792, 514, 1234, 273, 729, 38, 89, 291, 18, 291, 1299, 55, 14945, 329, 1290, 1114, 12, 1355, 16, 1655, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 4600, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 95, 3639, 514, 272, 12478, 31, 3639, 514, 272, 5000, 31, 3639, 2177, 729, 31, 3639, 2685, 610, 31, 3639, 2177, 1482, 13423, 31261, 273, 261, 1299, 1482, 13423, 13, 23450, 1741, 4909, 18, 588, 29652, 12, 22315, 71, 16, 2177, 1482, 13423, 18, 1106, 1769, 3639, 2535, 14214, 273, 394, 5589, 5621, 3639, 1250, 555, 9194, 273, 638, 31, 3639, 2177, 13423, 729, 38, 89, 291, 273, 4735, 13423, 12, 22315, 71, 1769, 13491, 364, 261, 474, 277, 273, 404, 31, 277, 1648, 7922, 4300, 31, 277, 27245, 288, 5411, 309, 261, 22315, 71, 18, 291, 1662, 694, 12, 9819, 67, 25242, 9078, 9548, 2 ]
NamedEntry namedEntry = new NamedEntry(IIndex.FIELD, IIndex.DECLARATION, field.getFullyQualifiedNameCharArrays(), 0 /*getModifiers()*/, fileNumber); namedEntry.setNameOffset(offset, offsetLength, IIndex.OFFSET); namedEntry.serialize(output);
if (field.isStatic()){ NamedEntry namedEntry = new NamedEntry(IIndex.FIELD, IIndex.DECLARATION, field.getFullyQualifiedNameCharArrays(), 0 /*getModifiers()*/, fileNumber); namedEntry.setNameOffset(offset, offsetLength, IIndex.OFFSET); namedEntry.serialize(output); } else { NamedEntry namedEntry = new NamedEntry(IIndex.FIELD, IIndex.DEFINITION, field.getFullyQualifiedNameCharArrays(), 0 /*getModifiers()*/, fileNumber); namedEntry.setNameOffset(offset, offsetLength, IIndex.OFFSET); namedEntry.serialize(output); }
public void addFieldDeclaration(IASTField field, int fileNumber) { int offset = field.getNameOffset(); int offsetLength = field.getNameEndOffset() - offset; NamedEntry namedEntry = new NamedEntry(IIndex.FIELD, IIndex.DECLARATION, field.getFullyQualifiedNameCharArrays(), 0 /*getModifiers()*/, fileNumber); namedEntry.setNameOffset(offset, offsetLength, IIndex.OFFSET); namedEntry.serialize(output); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f20ffd5b51ae738513d531dd22fd8fda77343010/SourceIndexerRunner.java/clean/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/sourceindexer/SourceIndexerRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11742, 6094, 12, 45, 9053, 974, 652, 16, 509, 585, 1854, 13, 288, 3639, 509, 1384, 273, 652, 18, 17994, 2335, 5621, 3639, 509, 1384, 1782, 273, 652, 18, 17994, 1638, 2335, 1435, 300, 1384, 31, 3639, 202, 202, 7604, 1622, 4141, 1622, 273, 394, 9796, 1622, 12, 45, 1016, 18, 6776, 16, 467, 1016, 18, 23956, 985, 2689, 16, 652, 18, 588, 16999, 12345, 2156, 12726, 9334, 374, 1748, 588, 11948, 1435, 5549, 16, 585, 1854, 1769, 202, 202, 13188, 1622, 18, 542, 461, 2335, 12, 3348, 16, 1384, 1782, 16, 467, 1016, 18, 11271, 1769, 202, 202, 13188, 1622, 18, 6288, 12, 2844, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11742, 6094, 12, 45, 9053, 974, 652, 16, 509, 585, 1854, 13, 288, 3639, 509, 1384, 273, 652, 18, 17994, 2335, 5621, 3639, 509, 1384, 1782, 273, 652, 18, 17994, 1638, 2335, 1435, 300, 1384, 31, 3639, 202, 202, 7604, 1622, 4141, 1622, 273, 394, 9796, 1622, 12, 45, 1016, 18, 6776, 16, 467, 1016, 18, 23956, 985, 2689, 16, 652, 18, 588, 16999, 12345, 2156, 12726, 9334, 374, 1748, 588, 11948, 1435, 5549, 16, 585, 1854, 1769, 202, 202, 13188, 1622, 18, 542, 461, 2335, 12, 3348, 16, 1384, 1782, 16, 467, 1016, 18, 11271, 1769, 202, 202, 13188, 1622, 18, 6288, 12, 2844, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
String repl = expandTemplate(replace.getValue(), false);
String repl = expandTemplate(replace.convertToString().getValue(), false);
private String tr(RubyString search, RubyString replace, boolean squeeze) { String srchSpec = search.getValue(); String srch = expandTemplate(srchSpec, true); if (srchSpec.startsWith("^")) { StringBuffer sbuf = new StringBuffer(256); for (int i = 0; i < 256; i++) { char c = (char) i; if (srch.indexOf(c) == -1) { sbuf.append(c); } } srch = sbuf.toString(); } String repl = expandTemplate(replace.getValue(), false); int strLen = getValue().length(); if (strLen == 0 || srch.length() == 0) { return getValue(); } int repLen = repl.length(); StringBuffer sbuf = new StringBuffer(strLen); int last = -1; for (int i = 0; i < strLen; i++) { char cs = getValue().charAt(i); int pos = srch.indexOf(cs); if (pos == -1) { sbuf.append(cs); last = -1; } else if (repLen > 0) { char cr = repl.charAt(Math.min(pos, repLen - 1)); if (squeeze && cr == last) { continue; } sbuf.append(cr); last = cr; } } return sbuf.toString(); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273, 4542, 2283, 12, 11254, 343, 1990, 16, 638, 1769, 202, 202, 430, 261, 11254, 343, 1990, 18, 17514, 1190, 2932, 66, 6, 3719, 288, 1082, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 5034, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 27245, 288, 9506, 202, 3001, 276, 273, 261, 3001, 13, 277, 31, 9506, 202, 430, 261, 11254, 343, 18, 31806, 12, 71, 13, 422, 300, 21, 13, 288, 6862, 202, 87, 4385, 18, 6923, 12, 71, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 11254, 343, 273, 2393, 696, 18, 10492, 5621, 202, 202, 97, 202, 202, 780, 6831, 273, 4542, 2283, 12, 2079, 18, 24805, 9334, 629, 1769, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 430, 261, 701, 2891, 422, 374, 747, 9133, 343, 18, 2469, 1435, 422, 374, 13, 288, 1082, 202, 2463, 2366, 5621, 202, 202, 97, 202, 202, 474, 2071, 2891, 273, 6831, 18, 2469, 5621, 202, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 701, 2891, 1769, 202, 202, 474, 1142, 273, 300, 21, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 609, 2891, 31, 277, 27245, 288, 1082, 202, 3001, 2873, 273, 2366, 7675, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273, 4542, 2283, 12, 11254, 343, 1990, 16, 638, 1769, 202, 202, 430, 261, 11254, 343, 1990, 18, 17514, 1190, 2932, 66, 6, 3719, 288, 1082, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 5034, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 27245, 288, 9506, 202, 3001, 276, 273, 261, 3001, 13, 277, 31, 9506, 202, 430, 261, 11254, 343, 18, 31806, 12, 71, 13, 422, 300, 21, 13, 288, 6862, 202, 87, 4385, 18, 2 ]
msg.set(NODE_TO_NODE_MESSAGE_DATA, data);
msg.set(NODE_TO_NODE_MESSAGE_DATA, new ShortBuffer(data));
public static final Message createNodeToNodeMessage(int type, String data) { Message msg = new Message(nodeToNodeTextMessage); msg.set(NODE_TO_NODE_MESSAGE_TYPE, type); msg.set(NODE_TO_NODE_MESSAGE_DATA, data); return msg; }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ad0bf740a058caf02fdf4de184f13067e0275d43/DMT.java/clean/src/freenet/io/comm/DMT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 2350, 24584, 31403, 1079, 12, 474, 618, 16, 514, 501, 13, 288, 202, 202, 1079, 1234, 273, 394, 2350, 12, 2159, 31403, 1528, 1079, 1769, 202, 202, 3576, 18, 542, 12, 8744, 67, 4296, 67, 8744, 67, 8723, 67, 2399, 16, 618, 1769, 202, 202, 3576, 18, 542, 12, 8744, 67, 4296, 67, 8744, 67, 8723, 67, 4883, 16, 501, 1769, 202, 202, 2463, 1234, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 2350, 24584, 31403, 1079, 12, 474, 618, 16, 514, 501, 13, 288, 202, 202, 1079, 1234, 273, 394, 2350, 12, 2159, 31403, 1528, 1079, 1769, 202, 202, 3576, 18, 542, 12, 8744, 67, 4296, 67, 8744, 67, 8723, 67, 2399, 16, 618, 1769, 202, 202, 3576, 18, 542, 12, 8744, 67, 4296, 67, 8744, 67, 8723, 67, 4883, 16, 501, 1769, 202, 202, 2463, 1234, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public synchronized int onSendRequestAfter(Request request, int rdvValue, UniversalBody destination) throws RenegotiateSessionException { // if return value is RESEDN, receiver have to recover --> resend the message if (rdvValue == FTManagerCIC.RESEND_MESSAGE) { try { request.resetSendCounter(); Thread.sleep(FTManagerCIC.TIME_TO_RESEND); int rdvValueBis = sendRequest(request, destination); return this.onSendRequestAfter(request, rdvValueBis, destination); } catch (RenegotiateSessionException e1) { throw e1; } catch (InterruptedException e) { e.printStackTrace(); } } int currentCheckpointIndex = this.checkpointIndex; // update checkpoint index if (rdvValue > currentCheckpointIndex) { this.nextMax = Math.max(this.nextMax, rdvValue); // log this in-transit message in the rdvValue-currentIndex next checkpoints this.extendRequestLog(rdvValue); try { //must make deep copy of paramteres request.getMethodCall().makeDeepCopyOfArguments(); //must reset the send counter (this request has not been forrwarded) request.resetSendCounter(); MessageLog log = new RequestLog(request, destination.getRemoteAdapter()); for (int i = currentCheckpointIndex + 1; i <= rdvValue; i++) { ((Vector) (this.requestToResend.get(new Integer(i)))).add(log); } } catch (IOException e) { e.printStackTrace(); } } return 0; }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/03d8487529d188b68ec5675e0fa984ce37dd9045/FTManagerCIC.java/clean/src/org/objectweb/proactive/core/body/ft/protocols/cic/FTManagerCIC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 509, 603, 3826, 691, 4436, 12, 691, 590, 16, 509, 9437, 90, 620, 16, 3639, 27705, 2250, 2929, 13, 1216, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 202, 430, 327, 460, 353, 2438, 1090, 8609, 16, 5971, 1240, 358, 5910, 15431, 31972, 326, 883, 3639, 309, 261, 13623, 90, 620, 422, 478, 56, 1318, 39, 2871, 18, 862, 21675, 67, 8723, 13, 288, 5411, 775, 288, 7734, 590, 18, 6208, 3826, 4789, 5621, 7734, 4884, 18, 19607, 12, 4464, 1318, 39, 2871, 18, 4684, 67, 4296, 67, 862, 21675, 1769, 7734, 509, 9437, 90, 620, 38, 291, 273, 12413, 12, 2293, 16, 2929, 1769, 7734, 327, 333, 18, 265, 3826, 691, 4436, 12, 2293, 16, 9437, 90, 620, 38, 291, 16, 2929, 1769, 5411, 289, 1044, 261, 16290, 27445, 3840, 2157, 503, 425, 21, 13, 288, 7734, 604, 425, 21, 31, 5411, 289, 1044, 261, 24485, 503, 425, 13, 288, 7734, 425, 18, 1188, 6332, 5621, 5411, 289, 3639, 289, 3639, 509, 783, 14431, 1016, 273, 333, 18, 25414, 1016, 31, 3639, 368, 1089, 9776, 770, 3639, 309, 261, 13623, 90, 620, 405, 783, 14431, 1016, 13, 288, 5411, 333, 18, 4285, 2747, 273, 2361, 18, 1896, 12, 2211, 18, 4285, 2747, 16, 9437, 90, 620, 1769, 5411, 368, 613, 333, 316, 17, 2338, 305, 883, 316, 326, 9437, 90, 620, 17, 2972, 1016, 1024, 26402, 5411, 333, 18, 14313, 691, 1343, 12, 13623, 90, 620, 1769, 5411, 775, 288, 7734, 368, 11926, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 509, 603, 3826, 691, 4436, 12, 691, 590, 16, 509, 9437, 90, 620, 16, 3639, 27705, 2250, 2929, 13, 1216, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 202, 430, 327, 460, 353, 2438, 1090, 8609, 16, 5971, 1240, 358, 5910, 15431, 31972, 326, 883, 3639, 309, 261, 13623, 90, 620, 422, 478, 56, 1318, 39, 2871, 18, 862, 21675, 67, 8723, 13, 288, 5411, 775, 288, 7734, 590, 18, 6208, 3826, 4789, 5621, 7734, 4884, 18, 19607, 12, 4464, 1318, 39, 2871, 18, 4684, 67, 4296, 67, 862, 21675, 1769, 7734, 509, 9437, 90, 620, 38, 291, 273, 12413, 12, 2293, 16, 2929, 1769, 7734, 327, 333, 18, 265, 3826, 691, 4436, 12, 2293, 16, 2 ]
outNbElement.value = outIdx; outBegIdx.value = startIdx;
public TA_RetCode CDL3STARSINSOUTH(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double BodyLongPeriodTotal, BodyShortPeriodTotal, ShadowLongPeriodTotal; double[] ShadowVeryShortPeriodTotal = new double[2]; ; int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDL3STARSINSOUTH_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); ShadowLongPeriodTotal = 0; ShadowLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod); ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortPeriodTotal[0] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); BodyShortPeriodTotal = 0; BodyShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod); i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); i++; } i = ShadowLongTrailingIdx; while (i < startIdx) { ShadowLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); i++; } i = ShadowVeryShortTrailingIdx; while (i < startIdx) { ShadowVeryShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowVeryShortPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = BodyShortTrailingIdx; while (i < startIdx) { BodyShortPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 2] >= inOpen[i - 2] ? 1 : -1) == -1 && (inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && (inClose[i] >= inOpen[i] ? 1 : -1) == -1 && (Math.abs(inClose[i - 2] - inOpen[i - 2])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod) != 0.0 ? ShadowLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math.abs(inClose[i - 1] - inOpen[i - 1])) < (Math .abs(inClose[i - 2] - inOpen[i - 2])) && inOpen[i - 1] > inClose[i - 2] && inOpen[i - 1] <= inHigh[i - 2] && inLow[i - 1] < inClose[i - 2] && inLow[i - 1] >= inLow[i - 2] && ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math.abs(inClose[i] - inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod) != 0.0 ? BodyShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inLow[i] > inLow[i - 1] && inHigh[i] < inHigh[i - 1]) outInteger[outIdx++] = 100; else outInteger[outIdx++] = 0; BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - 2] - inOpen[BodyLongTrailingIdx - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - 2] - inLow[BodyLongTrailingIdx - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - 2] - (inClose[BodyLongTrailingIdx - 2] >= inOpen[BodyLongTrailingIdx - 2] ? inClose[BodyLongTrailingIdx - 2] : inOpen[BodyLongTrailingIdx - 2])) + ((inClose[BodyLongTrailingIdx - 2] >= inOpen[BodyLongTrailingIdx - 2] ? inOpen[BodyLongTrailingIdx - 2] : inClose[BodyLongTrailingIdx - 2]) - inLow[BodyLongTrailingIdx - 2]) : 0))); ShadowLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowLongTrailingIdx - 2] - inOpen[ShadowLongTrailingIdx - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowLongTrailingIdx - 2] - inLow[ShadowLongTrailingIdx - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowLongTrailingIdx - 2] - (inClose[ShadowLongTrailingIdx - 2] >= inOpen[ShadowLongTrailingIdx - 2] ? inClose[ShadowLongTrailingIdx - 2] : inOpen[ShadowLongTrailingIdx - 2])) + ((inClose[ShadowLongTrailingIdx - 2] >= inOpen[ShadowLongTrailingIdx - 2] ? inOpen[ShadowLongTrailingIdx - 2] : inClose[ShadowLongTrailingIdx - 2]) - inLow[ShadowLongTrailingIdx - 2]) : 0))); for (totIdx = 1; totIdx >= 0; --totIdx) ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); BodyShortPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyShortTrailingIdx] - inOpen[BodyShortTrailingIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyShortTrailingIdx] - inLow[BodyShortTrailingIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyShortTrailingIdx] - (inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inClose[BodyShortTrailingIdx] : inOpen[BodyShortTrailingIdx])) + ((inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inOpen[BodyShortTrailingIdx] : inClose[BodyShortTrailingIdx]) - inLow[BodyShortTrailingIdx]) : 0))); i++; BodyLongTrailingIdx++; ShadowLongTrailingIdx++; ShadowVeryShortTrailingIdx++; BodyShortTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 23, 20943, 55, 706, 3584, 5844, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 3708, 5027, 5269, 16, 5652, 4897, 5027, 5269, 16, 24915, 3708, 5027, 5269, 31, 202, 202, 9056, 8526, 24915, 58, 627, 4897, 5027, 5269, 273, 394, 1645, 63, 22, 15533, 202, 202, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 9997, 4223, 16, 5652, 3708, 16808, 4223, 16, 5652, 4897, 16808, 4223, 16, 24915, 3708, 16808, 4223, 16, 24915, 58, 627, 4897, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 202, 202, 7330, 823, 5269, 273, 385, 8914, 23, 20943, 55, 706, 3584, 5844, 67, 9794, 823, 5621, 202, 202, 430, 261, 1937, 4223, 411, 2324, 823, 5269, 13, 1082, 202, 1937, 4223, 273, 2324, 823, 5269, 31, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 385, 8914, 23, 20943, 55, 706, 3584, 5844, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 3708, 5027, 5269, 16, 5652, 4897, 5027, 5269, 16, 24915, 3708, 5027, 5269, 31, 202, 202, 9056, 8526, 24915, 58, 627, 4897, 5027, 5269, 273, 394, 1645, 63, 22, 15533, 202, 202, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 9997, 4223, 16, 5652, 3708, 16808, 4223, 16, 2 ]
JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty(absFileName); return jspProperty.getPageEncoding();
JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty(absFileName); return jspProperty.getPageEncoding();
private String getJspConfigPageEncoding(String absFileName) throws JasperException { JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty(absFileName); return jspProperty.getPageEncoding(); }
48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/a744d5bbf47c1e4566df1705a83ad9ec0fe9da47/ParserController.java/buggy/java/org/apache/jasper/compiler/ParserController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 31162, 809, 1964, 4705, 12, 780, 2417, 4771, 13, 5411, 1216, 804, 345, 457, 503, 288, 202, 21796, 809, 22535, 809, 273, 14286, 18, 588, 1320, 7675, 588, 21796, 809, 5621, 202, 21796, 809, 18, 21796, 1396, 22535, 1396, 202, 565, 273, 22535, 809, 18, 4720, 21796, 1396, 12, 5113, 4771, 1769, 202, 2463, 22535, 1396, 18, 588, 1964, 4705, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 31162, 809, 1964, 4705, 12, 780, 2417, 4771, 13, 5411, 1216, 804, 345, 457, 503, 288, 202, 21796, 809, 22535, 809, 273, 14286, 18, 588, 1320, 7675, 588, 21796, 809, 5621, 202, 21796, 809, 18, 21796, 1396, 22535, 1396, 202, 565, 273, 22535, 809, 18, 4720, 21796, 1396, 12, 5113, 4771, 1769, 202, 2463, 22535, 1396, 18, 588, 1964, 4705, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
}
private String formatField(Value v, int idx) { String retval=""; TextFileField field = null; if (idx>=0) field = meta.getOutputFields()[idx]; if (v.isString()) { if (v.isNull() || v.getString()==null) { if (idx>=0 && field!=null && field.getNullString()!=null) { if (meta.isEnclosureForced() && meta.getEnclosure()!=null) { retval=meta.getEnclosure()+field.getNullString()+meta.getEnclosure(); } else { retval=field.getNullString(); } } } else { // Any separators in string? // example: 123.4;"a;b;c";Some name // if (meta.isEnclosureForced() && meta.getEnclosure()!=null) // Force enclosure? { retval=meta.getEnclosure()+v.toString()+meta.getEnclosure(); } else // See if there is a separator in the String... { int seppos = v.toString().indexOf(meta.getSeparator()); if (seppos<0) retval=v.toString(); else retval=meta.getEnclosure()+v.toString()+meta.getEnclosure(); } } } else if (v.isBigNumber()) { if (idx>=0 && field!=null && field.getFormat()!=null) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval = ""; } else { data.df.applyPattern(field.getFormat()); if (field.getDecimalSymbol()!=null && field.getDecimalSymbol().length()>0) data.dfs.setDecimalSeparator( field.getDecimalSymbol().charAt(0) ); if (field.getGroupingSymbol()!=null && field.getGroupingSymbol().length()>0) data.dfs.setGroupingSeparator( field.getGroupingSymbol().charAt(0) ); if (field.getCurrencySymbol()!=null) data.dfs.setCurrencySymbol( field.getCurrencySymbol() ); data.df.setDecimalFormatSymbols(data.dfs); retval=data.df.format(v.getBigNumber()); } } else { if (v.isNull()) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); else retval = ""; } else { retval=v.toString(); } } } else if (v.isNumeric()) { if (idx>=0 && field!=null && field.getFormat()!=null) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval = ""; } else { data.df.applyPattern(field.getFormat()); if (field.getDecimalSymbol()!=null && field.getDecimalSymbol().length()>0) data.dfs.setDecimalSeparator( field.getDecimalSymbol().charAt(0) ); if (field.getGroupingSymbol()!=null && field.getGroupingSymbol().length()>0) data.dfs.setGroupingSeparator( field.getGroupingSymbol().charAt(0) ); if (field.getCurrencySymbol()!=null) data.dfs.setCurrencySymbol( field.getCurrencySymbol() ); data.df.setDecimalFormatSymbols(data.dfs); if ( v.isInteger() ) { retval=data.df.format(v.getInteger()); } else if ( v.isNumber() ) { retval=data.df.format(v.getNumber()); } } } else { if (v.isNull()) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); } else { retval=v.toString(); } } } else if (v.isDate()) { if (idx>=0 && field!=null && field.getFormat()!=null && v.getDate()!=null) { data.daf.applyPattern( field.getFormat() ); data.daf.setDateFormatSymbols(data.dafs); retval= data.daf.format(v.getDate()); } else { if (v.isNull() || v.getDate()==null) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); } else { retval=v.toString(); } } } else if (v.isBinary()) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval=Const.NULL_BINARY; } else { try { retval=new String(v.getBytes(), "US-ASCII"); } catch (UnsupportedEncodingException e) { // changes are small we'll get here. US_ASCII is // mandatory. retval=Const.NULL_BINARY; } } } else // Boolean { if (v.isNull()) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); } else { retval=v.toString(); } } if (meta.isPadded()) // maybe we need to rightpad to field length? { // What's the field length? int length, precision; if (idx<0 || field==null) // Nothing specified: get it from the values themselves. { length =v.getLength()<0?0:v.getLength(); precision=v.getPrecision()<0?0:v.getPrecision(); } else // Get the info from the specified lengths & precision... { length =field.getLength() <0?0:field.getLength(); precision=field.getPrecision()<0?0:field.getPrecision(); } if (v.isNumber()) { length++; // for the sign... if (precision>0) length++; // for the decimal point... } if (v.isDate()) { length=23; precision=0; } if (v.isBoolean()) { length=5; precision=0; } retval=Const.rightPad(new StringBuffer(retval), length+precision); } return retval; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/729d36833e939f70eb40ef1caf890a3102fdd86e/TextFileOutput.java/clean/src/be/ibridge/kettle/trans/step/textfileoutput/TextFileOutput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 740, 974, 12, 620, 331, 16, 509, 2067, 13, 202, 95, 202, 202, 780, 5221, 1546, 14432, 202, 202, 1528, 812, 974, 652, 273, 446, 31, 202, 202, 430, 261, 3465, 34, 33, 20, 13, 652, 273, 2191, 18, 588, 1447, 2314, 1435, 63, 3465, 15533, 202, 202, 430, 261, 90, 18, 291, 780, 10756, 202, 202, 95, 1082, 202, 430, 261, 90, 18, 291, 2041, 1435, 747, 331, 18, 588, 780, 1435, 631, 2011, 13, 1875, 202, 95, 9506, 202, 430, 261, 3465, 34, 33, 20, 597, 652, 5, 33, 2011, 597, 652, 18, 588, 2041, 780, 1435, 5, 33, 2011, 13, 1171, 288, 10792, 309, 261, 3901, 18, 291, 4280, 5919, 1290, 3263, 1435, 597, 2191, 18, 588, 4280, 5919, 1435, 5, 33, 2011, 13, 10792, 288, 13491, 5221, 33, 3901, 18, 588, 4280, 5919, 1435, 15, 1518, 18, 588, 2041, 780, 1435, 15, 3901, 18, 588, 4280, 5919, 5621, 10792, 289, 10792, 469, 10792, 288, 13491, 5221, 33, 1518, 18, 588, 2041, 780, 5621, 10792, 289, 7734, 289, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 759, 5502, 14815, 316, 533, 35, 9506, 202, 759, 3454, 30, 17335, 18, 24, 4868, 69, 31, 70, 31, 71, 14432, 17358, 508, 9506, 202, 759, 7734, 309, 261, 3901, 18, 291, 4280, 5919, 1290, 3263, 1435, 597, 2191, 18, 588, 4280, 5919, 1435, 5, 33, 2011, 13, 368, 11889, 23423, 35, 7734, 288, 10792, 5221, 33, 3901, 18, 588, 4280, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 740, 974, 12, 620, 331, 16, 509, 2067, 13, 202, 95, 202, 202, 780, 5221, 1546, 14432, 202, 202, 1528, 812, 974, 652, 273, 446, 31, 202, 202, 430, 261, 3465, 34, 33, 20, 13, 652, 273, 2191, 18, 588, 1447, 2314, 1435, 63, 3465, 15533, 202, 202, 430, 261, 90, 18, 291, 780, 10756, 202, 202, 95, 1082, 202, 430, 261, 90, 18, 291, 2041, 1435, 747, 331, 18, 588, 780, 1435, 631, 2011, 13, 1875, 202, 95, 9506, 202, 430, 261, 3465, 34, 33, 20, 597, 652, 5, 33, 2011, 597, 652, 18, 588, 2041, 780, 1435, 5, 33, 2011, 13, 1171, 288, 10792, 309, 261, 3901, 18, 291, 4280, 5919, 1290, 3263, 2 ]
case 68:
case 69:
public final java_cup.runtime.Symbol CUP$LexParse$do_action( int CUP$LexParse$act_num, java_cup.runtime.lr_parser CUP$LexParse$parser, java.util.Stack CUP$LexParse$stack, int CUP$LexParse$top) throws java.lang.Exception { /* Symbol object for return from actions */ java_cup.runtime.Symbol CUP$LexParse$result; /* select the action based on the action number */ switch (CUP$LexParse$act_num) { /*. . . . . . . . . . . . . . . . . . . .*/ case 71: // preclass ::= LOWERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.LOWERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 70: // preclass ::= UPPERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.UPPERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 69: // preclass ::= DIGITCLASS { Vector RESULT = null; RESULT = makePreClass(sym.DIGITCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 68: // preclass ::= LETTERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.LETTERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 67: // preclass ::= JLETTERDIGITCLASS { Vector RESULT = null; RESULT = makePreClass(sym.JLETTERDIGITCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 66: // preclass ::= JLETTERCLASS { Vector RESULT = null; RESULT = makePreClass(sym.JLETTERCLASS); CUP$LexParse$result = new java_cup.runtime.Symbol(15/*preclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 65: // classcontentelem ::= CHAR { Interval RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Interval(c.charValue(), c.charValue()); CUP$LexParse$result = new java_cup.runtime.Symbol(11/*classcontentelem*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 64: // classcontentelem ::= CHAR DASH CHAR { Interval RESULT = null; int c1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int c1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Character c1 = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int c2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int c2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c2 = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Interval(c1.charValue(), c2.charValue()); CUP$LexParse$result = new java_cup.runtime.Symbol(11/*classcontentelem*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 63: // classcontent ::= MACROUSE { Vector RESULT = null; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.CHARCLASS_MACRO, identleft, identright); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 62: // classcontent ::= classcontent MACROUSE { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.CHARCLASS_MACRO, identleft, identright); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 61: // classcontent ::= STRING { Vector RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String s = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Vector(); for (int i = 0; i < s.length(); i++) RESULT.addElement(new Interval(s.charAt(i),s.charAt(i))); CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 60: // classcontent ::= classcontent STRING { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String s = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; for (int i = 0; i < s.length(); i++) list.addElement(new Interval(s.charAt(i),s.charAt(i))); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 59: // classcontent ::= preclass { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 58: // classcontent ::= classcontent preclass { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int plistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int plistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector plist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; for (Enumeration e = plist.elements(); e.hasMoreElements();) list.addElement(e.nextElement()); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 57: // classcontent ::= classcontentelem { Vector RESULT = null; int elemleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int elemright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Interval elem = (Interval)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); list.addElement(elem); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 56: // classcontent ::= classcontent classcontentelem { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int elemleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int elemright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Interval elem = (Interval)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; list.addElement(elem); RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(14/*classcontent*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 55: // charclass ::= OPENCLASS HAT DASH classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { list.addElement(new Interval('-','-')); charClasses.makeClassNot(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASSNOT,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 54: // charclass ::= OPENCLASS DASH classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { list.addElement(new Interval('-','-')); charClasses.makeClass(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 53: // charclass ::= OPENCLASS HAT classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { charClasses.makeClassNot(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASSNOT,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 52: // charclass ::= OPENCLASS HAT CLOSECLASS { RegExp RESULT = null; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); list.addElement(new Interval((char)0,CharClasses.maxChar)); try { charClasses.makeClass(list, false); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 51: // charclass ::= OPENCLASS classcontent CLOSECLASS { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int closeleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int closeright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object close = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { charClasses.makeClass(list, Options.jlex && scanner.caseless); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, closeleft, closeright); } RESULT = new RegExp1(sym.CCLASS,list); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 50: // charclass ::= OPENCLASS CLOSECLASS { RegExp RESULT = null; RESULT = new RegExp1(sym.CCLASS,null); CUP$LexParse$result = new java_cup.runtime.Symbol(9/*charclass*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 49: // regexp ::= CHAR { RegExp RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Character c = (Character)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { if ( scanner.caseless ) { charClasses.makeClass(c.charValue(), true); RESULT = new RegExp1(sym.CHAR_I, c); } else { charClasses.makeClass(c.charValue(), false); RESULT = new RegExp1(sym.CHAR, c); } } catch (CharClassException e) { syntaxError(ErrorMessages.CS2SMALL_CHAR, cleft, cright); } CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 48: // regexp ::= POINT { RegExp RESULT = null; Vector any = new Vector(); any.addElement(new Interval('\n','\n')); // assumption: there is no upper case for \n charClasses.makeClass('\n', false); RESULT = new RegExp1(sym.CCLASSNOT, any); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 47: // regexp ::= STRING { RegExp RESULT = null; int strleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int strright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String str = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { if ( scanner.caseless ) { charClasses.makeClass(str, true); RESULT = new RegExp1(sym.STRING_I, str); } else { charClasses.makeClass(str, false); RESULT = new RegExp1(sym.STRING, str); } } catch (CharClassException e) { syntaxError(ErrorMessages.CS2SMALL_STRING, strleft, strright); } CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 46: // regexp ::= preclass { RegExp RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; try { // assumption [correct?]: preclasses are already closed under case charClasses.makeClass(list, false); } catch (CharClassException e) { syntaxError(ErrorMessages.CHARSET_2_SMALL, listleft); } RESULT = new RegExp1(sym.CCLASS, list); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 45: // regexp ::= charclass { RegExp RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp c = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = c; CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 44: // regexp ::= MACROUSE { RegExp RESULT = null; int identleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int identright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String ident = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; if ( !scanner.macroDefinition ) { if ( ! macros.markUsed(ident) ) throw new ScannerException(scanner.file, ErrorMessages.MACRO_UNDECL, identleft, identright); } RESULT = new RegExp1(sym.MACROUSE, ident); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 43: // regexp ::= OPENBRACKET series CLOSEBRACKET { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 42: // regexp ::= regexp REPEAT REPEAT RBRACE { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int n1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int n1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Integer n1 = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int n2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int n2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Integer n2 = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = makeRepeat(r, n1.intValue(), n2.intValue(), n1left, n2right); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 41: // regexp ::= regexp REPEAT RBRACE { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int nleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int nright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Integer n = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int bleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = makeRepeat(r, n.intValue(), n.intValue(), bleft, bright); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 40: // regexp ::= regexp QUESTION { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.QUESTION, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 39: // regexp ::= regexp PLUS { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.PLUS, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 38: // regexp ::= regexp STAR { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp1(sym.STAR, r); CUP$LexParse$result = new java_cup.runtime.Symbol(8/*regexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 37: // nregexp ::= TILDE nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp1(sym.TILDE, r); CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 36: // nregexp ::= BANG nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp1(sym.BANG, r); CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 35: // nregexp ::= regexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(7/*nregexp*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 34: // concs ::= nregexp { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(6/*concs*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 33: // concs ::= concs nregexp { RegExp RESULT = null; int r1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int r1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp r1 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int r2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int r2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r2 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp2(sym.CONCAT, r1, r2); CUP$LexParse$result = new java_cup.runtime.Symbol(6/*concs*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 32: // series ::= BAR { RegExp RESULT = null; int bleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, bleft, bright); CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 31: // series ::= concs { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 30: // series ::= series BAR concs { RegExp RESULT = null; int r1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int r1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r1 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int r2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int r2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r2 = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new RegExp2(sym.BAR, r1, r2); CUP$LexParse$result = new java_cup.runtime.Symbol(5/*series*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 29: // hatOPT ::= { Boolean RESULT = null; RESULT = new Boolean(false); CUP$LexParse$result = new java_cup.runtime.Symbol(17/*hatOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 28: // hatOPT ::= HAT { Boolean RESULT = null; // assumption: there is no upper case for \n charClasses.makeClass('\n', false); RESULT = new Boolean(true); CUP$LexParse$result = new java_cup.runtime.Symbol(17/*hatOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 27: // states ::= IDENT COMMA { Vector RESULT = null; int cleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object c = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, cleft, cright+1); CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 26: // states ::= IDENT { Vector RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; String id = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; Vector list = new Vector(); stateNumber = scanner.states.getNumber( id ); if ( stateNumber != null ) list.addElement( stateNumber ); else { throw new ScannerException(scanner.file, ErrorMessages.LEXSTATE_UNDECL, idleft, idright); } RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 25: // states ::= IDENT COMMA states { Vector RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int idright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; String id = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; stateNumber = scanner.states.getNumber( id ); if ( stateNumber != null ) list.addElement( stateNumber ); else { throw new ScannerException(scanner.file, ErrorMessages.LEXSTATE_UNDECL, idleft, idright); } RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(12/*states*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 24: // statesOPT ::= { Vector RESULT = null; RESULT = new Vector(); CUP$LexParse$result = new java_cup.runtime.Symbol(13/*statesOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 23: // statesOPT ::= LESSTHAN states MORETHAN { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = list; CUP$LexParse$result = new java_cup.runtime.Symbol(13/*statesOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 22: // actions ::= NOACTION { Action RESULT = null; RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(18/*actions*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 21: // actions ::= REGEXPEND ACTION { Action RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = a; CUP$LexParse$result = new java_cup.runtime.Symbol(18/*actions*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 20: // lookaheadOPT ::= LOOKAHEAD series DOLLAR { RegExp RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp s = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = new RegExp2(sym.CONCAT, s, makeNL()); CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 19: // lookaheadOPT ::= { RegExp RESULT = null; RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 18: // lookaheadOPT ::= LOOKAHEAD series { RegExp RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = r; CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 17: // lookaheadOPT ::= DOLLAR { RegExp RESULT = null; RESULT = makeNL(); CUP$LexParse$result = new java_cup.runtime.Symbol(10/*lookaheadOPT*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 16: // rule ::= error { Integer RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 15: // rule ::= statesOPT EOFRULE ACTION { Integer RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; Vector s = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Integer(regExps.insert(s, a)); CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 14: // rule ::= statesOPT hatOPT series lookaheadOPT actions { Integer RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int sright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector s = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int bolleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int bolright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; Boolean bol = (Boolean)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).right; RegExp r = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-2)).value; int lleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int lright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp l = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int aleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Action a = (Action)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Integer(regExps.insert(rleft, s, r, a, bol, l)); CUP$LexParse$result = new java_cup.runtime.Symbol(3/*rule*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 13: // rules ::= rule { Vector RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Integer r = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; RESULT = new Vector(); RESULT.addElement(r); CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 12: // rules ::= LESSTHAN states MORETHAN LBRACE rules RBRACE { Vector RESULT = null; int statesleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int statesright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector states = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int rlistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; Enumeration rs = rlist.elements(); while ( rs.hasMoreElements() ) { Integer elem = (Integer) rs.nextElement(); regExps.addStates( elem.intValue(), states ); } RESULT = rlist; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-5)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 11: // rules ::= rules LESSTHAN states MORETHAN LBRACE rules RBRACE { Vector RESULT = null; int rlist1left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).left; int rlist1right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).right; Vector rlist1 = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).value; int statesleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).left; int statesright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).right; Vector states = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-4)).value; int rlist2left = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlist2right = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist2 = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; Enumeration rs = rlist2.elements(); while ( rs.hasMoreElements() ) { Integer elem = (Integer) rs.nextElement(); regExps.addStates( elem.intValue(), states ); rlist1.addElement( elem ); } RESULT = rlist1; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-6)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 10: // rules ::= rules rule { Vector RESULT = null; int rlistleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int rlistright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; Vector rlist = (Vector)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; int rleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Integer r = (Integer)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; rlist.addElement(r); RESULT = rlist; CUP$LexParse$result = new java_cup.runtime.Symbol(16/*rules*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 9: // macro ::= IDENT EQUALS { Object RESULT = null; int eleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left; int eright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right; Object e = (Object)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).value; syntaxError(ErrorMessages.REGEXP_EXPECTED, eleft, eright); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 8: // macro ::= IDENT EQUALS series REGEXPEND { Object RESULT = null; int nameleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left; int nameright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).right; String name = (String)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).value; int definitionleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int definitionright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; RegExp definition = (RegExp)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; macros.insert(name, definition); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 7: // macro ::= UNICODE { Object RESULT = null; charClasses.setMaxCharCode(0xFFFF); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 6: // macro ::= FULL { Object RESULT = null; charClasses.setMaxCharCode(255); CUP$LexParse$result = new java_cup.runtime.Symbol(2/*macro*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 5: // macros ::= error { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 4: // macros ::= macros macro { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 3: // macros ::= { Object RESULT = null; CUP$LexParse$result = new java_cup.runtime.Symbol(1/*macros*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 2: // specification ::= { NFA RESULT = null; fatalError(ErrorMessages.NO_LEX_SPEC); CUP$LexParse$result = new java_cup.runtime.Symbol(4/*specification*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 1: // specification ::= USERCODE macros DELIMITER rules { NFA RESULT = null; scanner.t.stop(); Out.checkErrors(); Out.time(ErrorMessages.PARSING_TOOK, t); macros.expand(); Enumeration unused = macros.unused(); while ( unused.hasMoreElements() ) { Out.warning("Macro \""+unused.nextElement()+"\" has been declared but never used."); } SemCheck.check(regExps, macros, charClasses.getMaxCharCode(), scanner.file); regExps.checkActions(); if (Options.dump) charClasses.dump(); Out.print("Constructing NFA : "); t.start(); int num = regExps.getNum(); RESULT = new NFA(charClasses.getNumClasses(), scanner, regExps, macros, charClasses); eofActions.setNumLexStates(scanner.states.number()); for (int i = 0; i < num; i++) { if (regExps.isEOF(i)) eofActions.add( regExps.getStates(i), regExps.getAction(i) ); else RESULT.addRegExp(i); } if (scanner.standalone) RESULT.addStandaloneRule(); t.stop(); Out.time(""); Out.time(ErrorMessages.NFA_TOOK, t); CUP$LexParse$result = new java_cup.runtime.Symbol(4/*specification*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-3)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } return CUP$LexParse$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 0: // $START ::= specification EOF { Object RESULT = null; int start_valleft = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left; int start_valright = ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).right; NFA start_val = (NFA)((java_cup.runtime.Symbol) CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).value; RESULT = start_val; CUP$LexParse$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-1)).left, ((java_cup.runtime.Symbol)CUP$LexParse$stack.elementAt(CUP$LexParse$top-0)).right, RESULT); } /* ACCEPT */ CUP$LexParse$parser.done_parsing(); return CUP$LexParse$result; /* . . . . . .*/ default: throw new Exception( "Invalid action number found in internal parse table"); } }
6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/46884aac638f34201a7496133fde462edfc8ffe8/LexParse.java/buggy/src/JFlex/LexParse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 2252, 67, 71, 416, 18, 9448, 18, 5335, 385, 3079, 8, 14756, 3201, 8, 2896, 67, 1128, 12, 565, 509, 13491, 385, 3079, 8, 14756, 3201, 8, 621, 67, 2107, 16, 565, 2252, 67, 71, 416, 18, 9448, 18, 10826, 67, 4288, 385, 3079, 8, 14756, 3201, 8, 4288, 16, 565, 2252, 18, 1367, 18, 2624, 5411, 385, 3079, 8, 14756, 3201, 8, 3772, 16, 565, 509, 13491, 385, 3079, 8, 14756, 3201, 8, 3669, 13, 565, 1216, 2252, 18, 4936, 18, 503, 565, 288, 1377, 1748, 8565, 733, 364, 327, 628, 4209, 1195, 1377, 2252, 67, 71, 416, 18, 9448, 18, 5335, 385, 3079, 8, 14756, 3201, 8, 2088, 31, 1377, 1748, 2027, 326, 1301, 2511, 603, 326, 1301, 1300, 1195, 1377, 1620, 261, 39, 3079, 8, 14756, 3201, 8, 621, 67, 2107, 13, 3639, 288, 1850, 1748, 18, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 5549, 1850, 648, 26465, 30, 368, 675, 1106, 493, 33, 29819, 5237, 2398, 288, 2868, 5589, 17210, 273, 446, 31, 1082, 17210, 273, 1221, 1386, 797, 12, 8117, 18, 23085, 5237, 1769, 9079, 385, 3079, 8, 14756, 3201, 8, 2088, 273, 394, 2252, 67, 71, 416, 18, 9448, 18, 5335, 12, 3600, 20308, 1484, 1106, 5549, 16, 14015, 6290, 67, 71, 416, 18, 9448, 18, 5335, 13, 39, 3079, 8, 14756, 3201, 8, 3772, 18, 2956, 861, 12, 39, 3079, 8, 14756, 3201, 8, 3669, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14756, 3201, 8, 2896, 67, 1128, 12, 565, 509, 13491, 385, 3079, 8, 14756, 3201, 8, 621, 67, 2107, 16, 565, 2252, 67, 71, 416, 18, 9448, 18, 10826, 67, 4288, 385, 3079, 8, 14756, 3201, 8, 4288, 16, 565, 2252, 18, 1367, 18, 2624, 5411, 385, 3079, 8, 14756, 3201, 8, 3772, 16, 565, 509, 13491, 385, 3079, 8, 14756, 3201, 8, 3669, 13, 565, 1216, 2252, 18, 4936, 18, 503, 565, 288, 1377, 1748, 8565, 733, 364, 327, 628, 4209, 1195, 1377, 2252, 67, 71, 416, 18, 9448, 18, 5335, 385, 3079, 8, 14756, 3201, 8, 2088, 31, 1377, 1748, 2027, 326, 1301, 2 ]
ValidationException.wrapException(e, new LocationData(transformer.systemId, 0, 0));
throw ValidationException.wrapException(e, new LocationData(transformer.systemId, 0, 0));
public ProcessorOutput createOutput(String name) { ProcessorOutput output = new ProcessorImpl.CacheableTransformerOutputImpl(getClass(), name) { public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { Transformer transformer = null; TransformerHandler transformerHandler = null; try { // Get URI references from cache KeyValidity configKeyValidity = getInputKeyValidity(pipelineContext, INPUT_CONFIG); URIReferences uriReferences = getURIReferences(pipelineContext, configKeyValidity); // Get transformer from cache if (uriReferences != null) { // FIXME: this won't depend on the transformer input. KeyValidity stylesheetKeyValidity = createStyleSheetKeyValidity(pipelineContext, configKeyValidity, uriReferences); if (stylesheetKeyValidity != null) transformer = (Transformer) ObjectCache.instance() .findValid(pipelineContext, stylesheetKeyValidity.key, stylesheetKeyValidity.validity); } // Get transformer attributes if any Map attributes = null; { // Read attributes input only if connected if (getConnectedInputs().get(INPUT_ATTRIBUTES) != null) { // Read input as an attribute Map and cache it attributes = (Map) readCacheInputAsObject(pipelineContext, getInputByName(INPUT_ATTRIBUTES), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { Document preferencesDocument = readInputAsDOM4J(context, input); OXFPropertiesSerializer.PropertyStore propertyStore = OXFPropertiesSerializer.createPropertyStore(preferencesDocument); OXFProperties.PropertySet propertySet = propertyStore.getGlobalPropertySet(); return propertySet.getObjectMap(); } }); } } // Create transformer if we did not find one in cache if (transformer == null) { // Get transformer configuration Node config = readCacheInputAsDOM4J(pipelineContext, INPUT_TRANSFORMER); String transformerClass = XPathUtils.selectStringValueNormalize(config, "/config/class"); // Create transformer transformer = createTransformer(pipelineContext, transformerClass, attributes); } // Create transformer handler and set output writer for Saxon StringWriter saxonStringWriter = null; StringErrorListener errorListener = new StringErrorListener(logger); transformerHandler = TransformerUtils.getTransformerHandler(transformer.templates, transformer.transformerClass, attributes); transformerHandler.getTransformer().setURIResolver(new TransformerURIResolver(XSLTTransformer.this, pipelineContext)); transformerHandler.getTransformer().setErrorListener(errorListener); String transformerClassName = transformerHandler.getTransformer().getClass().getName(); if (transformerClassName.equals("net.sf.saxon.Controller") || transformerClassName.equals("org.orbeon.saxon.Controller")) { saxonStringWriter = new StringWriter(); Object saxonTransformer = transformerHandler.getTransformer(); Method getMessageEmitter = saxonTransformer.getClass().getMethod("getMessageEmitter", new Class[] {}); Object messageEmitter = getMessageEmitter.invoke(saxonTransformer, new Object[] {}); if (messageEmitter == null) { Method makeMessageEmitter = saxonTransformer.getClass().getMethod("makeMessageEmitter", new Class[] {}); messageEmitter = makeMessageEmitter.invoke(saxonTransformer, new Object[] {}); } Method setWriter = messageEmitter.getClass().getMethod("setWriter", new Class[] {Writer.class}); setWriter.invoke(messageEmitter, new Object[] {saxonStringWriter}); } transformerHandler.setResult(new SAXResult(new SimpleForwardingContentHandler(contentHandler) { // Saxon happens to issue such prefix mappings from time to time. Those // cause issues later down the chain, and anyway serialize to incorrect XML // if xmlns:xmlns="..." gets generated. This appears to happen when Saxon // uses the Copy() instruction. It may be that the source is then // incorrect, but we haven't traced this further. It may also simply be a // bug in Saxon. public void startPrefixMapping(String s, String s1) throws SAXException { if ("xmlns".equals(s)) { return; } super.startPrefixMapping(s, s1); } })); // Execute transformation try { if (XSLTTransformer.this.getConnectedInputs().size() > 3) { // When other inputs are connected, they can be read // with the doc() function in XSLT. Reading those // documents might happen before the whole input // document is read, which is not compatible with // our processing model. So in this case, we first // read the data in a SAX store. SAXStore dataSaxStore = new SAXStore(); readInputAsSAX(pipelineContext, INPUT_DATA, dataSaxStore); dataSaxStore.replay(transformerHandler); } else { readInputAsSAX(pipelineContext, INPUT_DATA, transformerHandler); } } finally { // Log message from Saxon if (saxonStringWriter != null) { String message = saxonStringWriter.toString(); if (message.length() > 0) logger.info(message); } } } catch (ValidationException e) { throw e; } catch (Exception e) { if (transformer != null && transformer.systemId != null) { ValidationException.wrapException(e, new LocationData(transformer.systemId, 0, 0)); } else { throw new OXFException(e); } } } protected boolean supportsLocalKeyValidity() { return true; } protected CacheKey getLocalKey(PipelineContext context) { try { KeyValidity configKeyValidity = getInputKeyValidity(context, INPUT_CONFIG); URIReferences uriReferences = getURIReferences(context, configKeyValidity); if (uriReferences == null || uriReferences.hasDynamicDocumentReferences) return null; List keys = new ArrayList(); keys.add(configKeyValidity.key); List allURIReferences = new ArrayList(); allURIReferences.addAll(uriReferences.stylesheetReferences); allURIReferences.addAll(uriReferences.documentReferences); for (Iterator i = allURIReferences.iterator(); i.hasNext();) { URIReference uriReference = (URIReference) i.next(); keys.add(new InternalCacheKey(XSLTTransformer.this, "xsltURLReference", URLFactory.createURL(uriReference.context, uriReference.spec).toExternalForm())); } return new InternalCacheKey(XSLTTransformer.this, keys); } catch (MalformedURLException e) { throw new OXFException(e); } } protected Object getLocalValidity(PipelineContext context) { try { KeyValidity configKeyValidity = getInputKeyValidity(context, INPUT_CONFIG); URIReferences uriReferences = getURIReferences(context, configKeyValidity); if (uriReferences == null || uriReferences.hasDynamicDocumentReferences) return null; List validities = new ArrayList(); validities.add(configKeyValidity.validity); List allURIReferences = new ArrayList(); allURIReferences.addAll(uriReferences.stylesheetReferences); allURIReferences.addAll(uriReferences.documentReferences); for (Iterator i = allURIReferences.iterator(); i.hasNext();) { URIReference uriReference = (URIReference) i.next(); Processor urlGenerator = new URLGenerator(URLFactory.createURL(uriReference.context, uriReference.spec)); validities.add(((ProcessorOutputImpl)urlGenerator.createOutput(OUTPUT_DATA)).getValidity(context)); } return validities; } catch (IOException e) { throw new OXFException(e); } } private URIReferences getURIReferences(PipelineContext context, KeyValidity configKeyValidity) { if (configKeyValidity == null) return null; return (URIReferences) ObjectCache.instance().findValid(context, configKeyValidity.key, configKeyValidity.validity); } private KeyValidity createStyleSheetKeyValidity(PipelineContext context, KeyValidity configKeyValidity, URIReferences uriReferences) { try { if (configKeyValidity == null) return null; List keys = new ArrayList(); List validities = new ArrayList(); keys.add(configKeyValidity.key); validities.add(configKeyValidity.validity); for (Iterator i = uriReferences.stylesheetReferences.iterator(); i.hasNext();) { URIReference uriReference = (URIReference) i.next(); URL url = URLFactory.createURL(uriReference.context, uriReference.spec); keys.add(new InternalCacheKey(XSLTTransformer.this, "xsltURLReference", url.toExternalForm())); Processor urlGenerator = new URLGenerator(url); validities.add(((ProcessorOutputImpl) urlGenerator.createOutput(OUTPUT_DATA)).getValidity(context));//FIXME: can we do better? See URL generator. } return new KeyValidity(new InternalCacheKey(XSLTTransformer.this, keys), validities); } catch (MalformedURLException e) { throw new OXFException(e); } } /** * Reads the input and creates the JAXP Templates object (wrapped in a * Transformer object). While reading the input, figures out the direct * dependencies on other files (URIReferences object), and stores * these two mappings in cache: * * <pre> * configKey -> uriReferences * uriReferencesKey -> transformer * </pre> */ private Transformer createTransformer(PipelineContext context, String transformerClass, Map attributes) { StringErrorListener errorListener = new StringErrorListener(logger); final StylesheetForwardingContentHandler topStylesheetContentHandler = new StylesheetForwardingContentHandler(); try { // Create transformer final Transformer transformer = new Transformer(); final List xsltContentHandlers = new ArrayList(); { // Create SAXSource adding our forwarding content handler final SAXSource stylesheetSAXSource; { xsltContentHandlers.add(topStylesheetContentHandler); XMLReader xmlReader = new ProcessorOutputXMLReader(context, getInputByName(INPUT_CONFIG).getOutput()) { public void setContentHandler(ContentHandler handler) { super.setContentHandler(new TeeContentHandler(Arrays.asList(new Object[]{ topStylesheetContentHandler, handler}))); } }; stylesheetSAXSource = new SAXSource(xmlReader, new InputSource()); } // Put listener in context that will be called by URI resolved context.setAttribute(PipelineContext.XSLT_STYLESHEET_URI_LISTENER, new URIResolverListener() { public ContentHandler getContentHandler() { StylesheetForwardingContentHandler contentHandler = new StylesheetForwardingContentHandler(); xsltContentHandlers.add(contentHandler); return contentHandler; } }); transformer.templates = TransformerUtils.getTemplates(stylesheetSAXSource, transformerClass, attributes, errorListener, new TransformerURIResolver(XSLTTransformer.this, context)); TransformerUtils.removeURIResolverListener(); transformer.transformerClass = transformerClass; transformer.systemId = topStylesheetContentHandler.getSystemId(); } // Update cache { // Create uriReferences URIReferences uriReferences = new URIReferences(); for (Iterator i = xsltContentHandlers.iterator(); i.hasNext();) { StylesheetForwardingContentHandler contentHandler = (StylesheetForwardingContentHandler) i.next(); uriReferences.hasDynamicDocumentReferences = uriReferences.hasDynamicDocumentReferences || contentHandler.getURIReferences().hasDynamicDocumentReferences; uriReferences.stylesheetReferences.addAll (contentHandler.getURIReferences().stylesheetReferences); uriReferences.documentReferences.addAll (contentHandler.getURIReferences().documentReferences); } // Put in cache: configKey -> uriReferences KeyValidity configKeyValidty = getInputKeyValidity(context, INPUT_CONFIG); if (configKeyValidty != null) ObjectCache.instance().add(context, configKeyValidty.key, configKeyValidty.validity, uriReferences); // Put in cache: (configKey, uriReferences.stylesheetReferences) -> transformer KeyValidity stylesheetKeyValidity = createStyleSheetKeyValidity(context, configKeyValidty, uriReferences); if (stylesheetKeyValidity != null) ObjectCache.instance().add(context, stylesheetKeyValidity.key, stylesheetKeyValidity.validity, transformer); } return transformer; } catch (Exception e) { if (topStylesheetContentHandler.getSystemId() != null) { if (errorListener.hasErrors()) { throw new ValidationException(errorListener.getMessages(), new LocationData(topStylesheetContentHandler.getSystemId(), 0, 0)); } else { throw new ValidationException(e, new LocationData(topStylesheetContentHandler.getSystemId(), 0, 0)); } } else { if (errorListener.hasErrors()) { throw new OXFException(errorListener.getMessages()); } else { throw new OXFException(e); } } } } }; addOutput(name, output); return output; }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/419aeeb8cabb95398ff3868259b1d709788dc5eb/XSLTTransformer.java/clean/src/java/org/orbeon/oxf/processor/transformer/xslt/XSLTTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 1649, 429, 8319, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 11519, 8360, 273, 446, 31, 7734, 11519, 1503, 8360, 1503, 273, 446, 31, 7734, 775, 288, 10792, 368, 968, 3699, 5351, 628, 1247, 10792, 1929, 19678, 26796, 19678, 273, 12353, 653, 19678, 12, 14511, 1042, 16, 12943, 67, 7203, 1769, 10792, 3699, 8221, 2003, 8221, 273, 21375, 8221, 12, 14511, 1042, 16, 26796, 19678, 1769, 10792, 368, 968, 8360, 628, 1247, 10792, 309, 261, 1650, 8221, 480, 446, 13, 288, 13491, 368, 9852, 30, 333, 8462, 1404, 2447, 603, 326, 8360, 810, 18, 13491, 1929, 19678, 13820, 653, 19678, 273, 752, 2885, 8229, 653, 19678, 12, 14511, 1042, 16, 26796, 19678, 16, 2003, 8221, 1769, 13491, 309, 261, 19403, 653, 19678, 480, 446, 13, 18701, 8360, 273, 261, 8319, 13, 1033, 1649, 18, 1336, 1435, 4766, 565, 263, 4720, 1556, 12, 14511, 1042, 16, 13820, 653, 19678, 18, 856, 16, 13820, 653, 19678, 18, 877, 560, 1769, 10792, 289, 10792, 368, 968, 8360, 1677, 309, 1281, 10792, 1635, 1677, 273, 446, 31, 10792, 288, 13491, 368, 2720, 1677, 810, 1338, 309, 5840, 13491, 309, 261, 588, 8932, 10059, 7675, 588, 12, 15934, 67, 22308, 13, 480, 446, 13, 288, 18701, 368, 2720, 810, 487, 392, 1566, 1635, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 1649, 429, 8319, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 11519, 8360, 273, 446, 31, 7734, 11519, 1503, 8360, 1503, 273, 446, 31, 7734, 775, 288, 10792, 368, 968, 3699, 5351, 628, 1247, 10792, 1929, 19678, 26796, 19678, 273, 12353, 653, 19678, 12, 14511, 1042, 16, 12943, 67, 7203, 1769, 10792, 3699, 8221, 2003, 8221, 273, 21375, 8221, 12, 14511, 1042, 16, 26796, 19678, 1769, 10792, 368, 968, 8360, 628, 1247, 10792, 309, 261, 1650, 8221, 480, 446, 13, 2 ]
int redStep = (int) Math.ceil((core.getRed() + 2 * base.getRed()) / 3); int greenStep = (int) Math.ceil((core.getGreen() + 2 * base.getGreen()) / 3); int blueStep = (int) Math.ceil((core.getBlue() + 2 * base.getBlue()) / 3);
int redStep = (int) Math.ceil((core.getRed() + 2 * ColorMap.COLOR_WHITE.getRed()) / 3); int greenStep = (int) Math.ceil((core.getGreen() + 2 * ColorMap.COLOR_WHITE.getGreen()) / 3); int blueStep = (int) Math.ceil((core.getBlue() + 2 * ColorMap.COLOR_WHITE.getBlue()) / 3);
private void initializeHighlight() { try { int redStep = (int) Math.ceil((core.getRed() + 2 * base.getRed()) / 3); int greenStep = (int) Math.ceil((core.getGreen() + 2 * base.getGreen()) / 3); int blueStep = (int) Math.ceil((core.getBlue() + 2 * base.getBlue()) / 3); highlightColor = new Color(Display.getDefault(), redStep, greenStep, blueStep); } catch (Throwable t) { MylarStatusHandler.log(t, "highlighter init failed"); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8ddada43011e09377d9d50cee0080113ac1e888a/Highlighter.java/clean/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/Highlighter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 16205, 1435, 288, 202, 202, 698, 288, 1082, 202, 474, 1755, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 3715, 1435, 397, 576, 380, 1026, 18, 588, 3715, 10756, 342, 890, 1769, 1082, 202, 474, 10004, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 21453, 1435, 397, 576, 380, 1026, 18, 588, 21453, 10756, 342, 890, 1769, 1082, 202, 474, 8024, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 27986, 1435, 397, 576, 380, 1026, 18, 588, 27986, 10756, 342, 890, 1769, 1082, 202, 15978, 2957, 273, 394, 5563, 12, 4236, 18, 588, 1868, 9334, 1755, 4160, 16, 10004, 4160, 16, 8024, 4160, 1769, 202, 202, 97, 1044, 261, 15155, 268, 13, 288, 1082, 202, 12062, 7901, 1482, 1503, 18, 1330, 12, 88, 16, 315, 8766, 23624, 1208, 2535, 8863, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 4046, 16205, 1435, 288, 202, 202, 698, 288, 1082, 202, 474, 1755, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 3715, 1435, 397, 576, 380, 1026, 18, 588, 3715, 10756, 342, 890, 1769, 1082, 202, 474, 10004, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 21453, 1435, 397, 576, 380, 1026, 18, 588, 21453, 10756, 342, 890, 1769, 1082, 202, 474, 8024, 4160, 273, 261, 474, 13, 2361, 18, 311, 330, 12443, 3644, 18, 588, 27986, 1435, 397, 576, 380, 1026, 18, 588, 27986, 10756, 342, 890, 1769, 1082, 202, 15978, 2957, 273, 394, 5563, 12, 4236, 18, 588, 1868, 9334, 1755, 4160, 16, 10004, 2 ]
SOAPBody body = omfactory.createSOAPBody(reqEnv); body.addChild(operation);
reqEnv.getBody().addChild(operation);
public SOAPEnvelope getEchoSoapEnvelope() { SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory(); SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope(); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv"); //reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); reqEnv.declareNamespace("http://soapinterop.org/", "tns"); reqEnv.declareNamespace("http://soapinterop.org/xsd", "s"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi"); OMElement operation = omfactory.createOMElement("echoDate", "http://soapinterop.org/", null); SOAPBody body = omfactory.createSOAPBody(reqEnv); body.addChild(operation); operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null); OMElement part = omfactory.createOMElement("inputDate", "", null); part.addAttribute("xsi:type", "xsd:dateTime", null); part.addChild(omfactory.createText("2002-07-18T19:40:30.387-06:00")); operation.addChild(part); //reqEnv.getBody().addChild(method); return reqEnv; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/adabba9fc5cefa2d978a1abe4543c86a61d36cbd/Round2EchoDateClientUtil.java/buggy/modules/integration/src/test/interop/whitemesa/round2/util/Round2EchoDateClientUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068, 6848, 18, 2640, 27952, 10862, 5621, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 30290, 19, 3113, 315, 19215, 3074, 8863, 3639, 368, 3658, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 4749, 5761, 19, 3113, 315, 16741, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 4749, 5761, 19, 19215, 19, 3113, 315, 19215, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 3113, 315, 19144, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 19, 3113, 315, 27952, 17, 30445, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 19215, 30376, 18, 3341, 19, 3113, 315, 88, 2387, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 19215, 30376, 18, 3341, 19, 19144, 3113, 315, 87, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 4749, 5761, 19, 3113, 315, 4749, 5761, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068, 6848, 18, 2640, 27952, 10862, 5621, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 30290, 19, 3113, 315, 19215, 3074, 8863, 3639, 368, 3658, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 4749, 5761, 19, 3113, 315, 16741, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 4749, 5761, 19, 19215, 19, 3113, 315, 19215, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2 ]
lblBottom.setText("Bottom:");
lblBottom.setText(Messages.getString("InsetsComposite.Lbl.Bottom"));
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glGroup = new GridLayout(); glGroup.horizontalSpacing = 5; glGroup.verticalSpacing = 5; glGroup.marginHeight = 4; glGroup.marginWidth = 4; glGroup.numColumns = 4; this.setLayout(flMain); grpInsets = new Group(this, SWT.NONE); grpInsets.setLayout(glGroup); grpInsets.setText("Insets (in " + sUnits + ")"); Label lblTop = new Label(grpInsets, SWT.NONE); GridData gdLTop = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLTop.heightHint = 20; lblTop.setLayoutData(gdLTop); lblTop.setText("Top:"); txtTop = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTTop = new GridData(GridData.FILL_BOTH); gdTTop.heightHint = 20; gdTTop.widthHint = 45; txtTop.setLayoutData(gdTTop); double dblPoints = insets.getTop(); double dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); txtTop.setText(new Double(dblCurrent).toString()); txtTop.addListener(this); Label lblLeft = new Label(grpInsets, SWT.NONE); GridData gdLLeft = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLLeft.heightHint = 20; lblLeft.setLayoutData(gdLLeft); lblLeft.setText("Left:"); txtLeft = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTLeft = new GridData(GridData.FILL_BOTH); gdTLeft.heightHint = 20; gdTLeft.widthHint = 45; txtLeft.setLayoutData(gdTLeft); dblPoints = insets.getLeft(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); txtLeft.setText(new Double(dblCurrent).toString()); txtLeft.addListener(this); Label lblBottom = new Label(grpInsets, SWT.NONE); GridData gdLBottom = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLBottom.heightHint = 20; lblBottom.setLayoutData(gdLBottom); lblBottom.setText("Bottom:"); txtBottom = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTBottom = new GridData(GridData.FILL_BOTH); gdTBottom.heightHint = 20; gdTBottom.widthHint = 45; txtBottom.setLayoutData(gdTBottom); dblPoints = insets.getBottom(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); txtBottom.setText(new Double(dblCurrent).toString()); txtBottom.addListener(this); Label lblRight = new Label(grpInsets, SWT.NONE); GridData gdLRight = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLRight.heightHint = 20; lblRight.setLayoutData(gdLRight); lblRight.setText("Right:"); txtRight = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTRight = new GridData(GridData.FILL_BOTH); gdTRight.heightHint = 20; gdTRight.widthHint = 45; txtRight.setLayoutData(gdTRight); dblPoints = insets.getRight(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); txtRight.setText(new Double(dblCurrent).toString()); txtRight.addListener(this); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7793e94b4d7fab5891f226c6c937e37d85bebad8/InsetsComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/InsetsComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 14192, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 3639, 1183, 6376, 18, 10107, 2686, 273, 374, 31, 3639, 1183, 6376, 18, 10107, 2384, 273, 374, 31, 3639, 7145, 3744, 5118, 1114, 273, 394, 7145, 3744, 5621, 3639, 5118, 1114, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1114, 18, 17824, 18006, 273, 1381, 31, 3639, 5118, 1114, 18, 10107, 2686, 273, 1059, 31, 3639, 5118, 1114, 18, 10107, 2384, 273, 1059, 31, 3639, 5118, 1114, 18, 2107, 3380, 273, 1059, 31, 3639, 333, 18, 542, 3744, 12, 2242, 6376, 1769, 3639, 14295, 382, 4424, 273, 394, 3756, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 3639, 14295, 382, 4424, 18, 542, 3744, 12, 7043, 1114, 1769, 3639, 14295, 382, 4424, 18, 542, 1528, 2932, 382, 4424, 261, 267, 315, 397, 272, 7537, 397, 7310, 1769, 3639, 5287, 14284, 3401, 273, 394, 5287, 12, 17532, 382, 4424, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 751, 15551, 48, 3401, 273, 394, 7145, 751, 12, 6313, 751, 18, 21654, 10109, 67, 26439, 67, 19835, 1769, 3639, 15551, 48, 3401, 18, 4210, 7002, 273, 4200, 31, 3639, 14284, 3401, 18, 542, 3744, 751, 12, 19016, 48, 3401, 1769, 3639, 14284, 3401, 18, 542, 1528, 2932, 3401, 2773, 1769, 3639, 6463, 3401, 273, 394, 3867, 6946, 9400, 12, 17532, 382, 4424, 16, 348, 8588, 18, 38, 7954, 1769, 3639, 7145, 751, 15551, 1470, 556, 273, 394, 7145, 751, 12, 6313, 751, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 7171, 1435, 565, 288, 3639, 14192, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 3639, 1183, 6376, 18, 10107, 2686, 273, 374, 31, 3639, 1183, 6376, 18, 10107, 2384, 273, 374, 31, 3639, 7145, 3744, 5118, 1114, 273, 394, 7145, 3744, 5621, 3639, 5118, 1114, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1114, 18, 17824, 18006, 273, 1381, 31, 3639, 5118, 1114, 18, 10107, 2686, 273, 1059, 31, 3639, 5118, 1114, 18, 10107, 2384, 273, 1059, 31, 3639, 5118, 1114, 18, 2107, 3380, 273, 1059, 31, 3639, 333, 18, 542, 3744, 12, 2242, 6376, 1769, 3639, 14295, 382, 4424, 273, 394, 3756, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 3639, 14295, 382, 4424, 2 ]
eventDispatcher.setRootNode(gvtRoot);
eventDispatcher.setEventDispatchEnabled(true);
private void renderingStopped() { interruptProgressivePaintThread(); if (doubleBufferedRendering) { suspendInteractions = false; } gvtTreeRenderer = null; if (needRender) { renderGVTTree(); needRender = false; } else { immediateRepaint(); } if (eventDispatcher != null) { eventDispatcher.setRootNode(gvtRoot); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/36d7a3fff8ccd502ca061482e2c5bb909c16be64/JGVTComponent.java/buggy/sources/org/apache/batik/swing/gvt/JGVTComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 9782, 15294, 1435, 288, 5411, 13123, 5491, 688, 12699, 3830, 5621, 5411, 309, 261, 9056, 17947, 14261, 13, 288, 7734, 20413, 2465, 4905, 273, 629, 31, 5411, 289, 5411, 11404, 88, 2471, 6747, 273, 446, 31, 5411, 309, 261, 14891, 3420, 13, 288, 7734, 1743, 25269, 1470, 992, 5621, 7734, 1608, 3420, 273, 629, 31, 5411, 289, 469, 288, 7734, 14483, 18933, 1598, 5621, 5411, 289, 5411, 309, 261, 2575, 6681, 480, 446, 13, 288, 7734, 17556, 18, 542, 1133, 5325, 1526, 12, 3767, 1769, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 9782, 15294, 1435, 288, 5411, 13123, 5491, 688, 12699, 3830, 5621, 5411, 309, 261, 9056, 17947, 14261, 13, 288, 7734, 20413, 2465, 4905, 273, 629, 31, 5411, 289, 5411, 11404, 88, 2471, 6747, 273, 446, 31, 5411, 309, 261, 14891, 3420, 13, 288, 7734, 1743, 25269, 1470, 992, 5621, 7734, 1608, 3420, 273, 629, 31, 5411, 289, 469, 288, 7734, 14483, 18933, 1598, 5621, 5411, 289, 5411, 309, 261, 2575, 6681, 480, 446, 13, 288, 7734, 17556, 18, 542, 1133, 5325, 1526, 12, 3767, 1769, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
jScrollPane.getViewport().add(jPicturesList, null);
private void jbInit() { jUpload.setText("Upload"); jAdd.setText("Add pictures"); GridLayout gridLayout1 = new GridLayout(); JPanel jButtonPanel = new JPanel(); jButtonPanel.setLayout(gridLayout1); gridLayout1.setHgap(5); jButtonPanel.add(jAdd); jButtonPanel.add(jUpload); this.getContentPane().setLayout(new GridBagLayout()); this.getContentPane().add(jButtonPanel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0)); this.getContentPane().add(jStatusBar, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); this.getContentPane().add(jScrollPane, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); jScrollPane.getViewport().add(jPicturesList, null); jAdd.addActionListener(this); jUpload.addActionListener(this); jPicturesList.addKeyListener( new KeyAdapter() { public void keyPressed(KeyEvent e) { jListKeyPressed(e); } }); }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/72da36bad06acb6f1dc8ed3bafeee01cb707715d/GRAppletMini.java/clean/com/gallery/GalleryRemote/GRAppletMini.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20515, 2570, 1435, 288, 202, 202, 78, 4777, 18, 542, 1528, 2932, 4777, 8863, 202, 202, 78, 986, 18, 542, 1528, 2932, 986, 293, 28636, 8863, 202, 202, 6313, 3744, 3068, 3744, 21, 273, 394, 7145, 3744, 5621, 202, 202, 46, 5537, 525, 3616, 5537, 273, 394, 24048, 5621, 202, 202, 78, 3616, 5537, 18, 542, 3744, 12, 5222, 3744, 21, 1769, 202, 202, 5222, 3744, 21, 18, 542, 44, 14048, 12, 25, 1769, 202, 202, 78, 3616, 5537, 18, 1289, 12, 78, 986, 1769, 202, 202, 78, 3616, 5537, 18, 1289, 12, 78, 4777, 1769, 202, 202, 2211, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 7145, 5013, 3744, 10663, 202, 202, 2211, 18, 588, 1350, 8485, 7675, 1289, 12, 78, 3616, 5537, 16, 4202, 394, 13075, 12, 20, 16, 404, 16, 404, 16, 404, 16, 374, 18, 20, 16, 374, 18, 20, 9506, 202, 16, 6313, 6852, 18, 19835, 16, 13075, 18, 38, 18307, 16, 394, 22300, 12, 20, 16, 1381, 16, 1381, 16, 1381, 3631, 374, 16, 374, 10019, 202, 202, 2211, 18, 588, 1350, 8485, 7675, 1289, 12, 78, 1482, 5190, 16, 565, 394, 13075, 12, 20, 16, 576, 16, 404, 16, 404, 16, 404, 18, 20, 16, 374, 18, 20, 9506, 202, 16, 6313, 6852, 18, 19835, 16, 13075, 18, 44, 20344, 16, 394, 22300, 12, 20, 16, 374, 16, 374, 16, 374, 3631, 374, 16, 374, 10019, 202, 202, 2211, 18, 588, 1350, 8485, 7675, 1289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20515, 2570, 1435, 288, 202, 202, 78, 4777, 18, 542, 1528, 2932, 4777, 8863, 202, 202, 78, 986, 18, 542, 1528, 2932, 986, 293, 28636, 8863, 202, 202, 6313, 3744, 3068, 3744, 21, 273, 394, 7145, 3744, 5621, 202, 202, 46, 5537, 525, 3616, 5537, 273, 394, 24048, 5621, 202, 202, 78, 3616, 5537, 18, 542, 3744, 12, 5222, 3744, 21, 1769, 202, 202, 5222, 3744, 21, 18, 542, 44, 14048, 12, 25, 1769, 202, 202, 78, 3616, 5537, 18, 1289, 12, 78, 986, 1769, 202, 202, 78, 3616, 5537, 18, 1289, 12, 78, 4777, 1769, 202, 202, 2211, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 7145, 5013, 3744, 10663, 202, 202, 2211, 2 ]
ReportPlugin.getDefault( ) .getPluginPreferences( ) .setValue( USER_MAX_NUM_OF_SCHEMA, maxDisplaySchemaEditor.getStringValue( ) ); ReportPlugin.getDefault( ) .getPluginPreferences( ) .setValue( USER_MAX_NUM_OF_TABLE_EACH_SCHEMA, maxDisplayTableEditor.getStringValue( ) );
public boolean performOk( ) { ReportPlugin.getDefault( ) .getPluginPreferences( ) .setValue( USER_MAXROW, maxRowEditor.getStringValue( ) ); ReportPlugin.getDefault( ) .getPluginPreferences( ) .setValue( USER_MAX_NUM_OF_SCHEMA, maxDisplaySchemaEditor.getStringValue( ) ); ReportPlugin.getDefault( ) .getPluginPreferences( ) .setValue( USER_MAX_NUM_OF_TABLE_EACH_SCHEMA, maxDisplayTableEditor.getStringValue( ) ); ReportPlugin.getDefault( ).savePluginPreferences( ); return true; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7e93c9983efa0baf71b86991c025daa3c6e97284/DateSetPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/preferences/DateSetPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 12, 262, 202, 95, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 7443, 67, 6694, 11226, 16, 943, 1999, 6946, 18, 588, 19733, 12, 262, 11272, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 7443, 67, 6694, 67, 6069, 67, 3932, 67, 14233, 16, 943, 4236, 3078, 6946, 18, 588, 19733, 12, 262, 11272, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 1082, 202, 18, 588, 3773, 12377, 12, 262, 1082, 202, 18, 542, 620, 12, 7443, 67, 6694, 67, 6069, 67, 3932, 67, 7775, 67, 41, 18133, 67, 14233, 16, 943, 4236, 1388, 6946, 18, 588, 19733, 12, 262, 11272, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 18, 5688, 3773, 12377, 12, 11272, 9506, 202, 2463, 638, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3073, 8809, 12, 262, 202, 95, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 7443, 67, 6694, 11226, 16, 943, 1999, 6946, 18, 588, 19733, 12, 262, 11272, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 7443, 67, 6694, 67, 6069, 67, 3932, 67, 14233, 16, 943, 4236, 3078, 6946, 18, 588, 19733, 12, 262, 11272, 202, 202, 4820, 3773, 18, 588, 1868, 12, 262, 1082, 202, 18, 588, 3773, 12377, 12, 262, 1082, 202, 18, 542, 620, 12, 7443, 67, 6694, 67, 6069, 67, 2 ]
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); } // updateUI()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/JSeparator.java/buggy/core/src/classpath/javax/javax/swing/JSeparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 5370, 1435, 288, 202, 202, 542, 5370, 12443, 6581, 5370, 13, 6484, 1318, 18, 588, 12, 2211, 10019, 202, 202, 5387, 340, 5621, 202, 97, 368, 1089, 5370, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 5370, 1435, 288, 202, 202, 542, 5370, 12443, 6581, 5370, 13, 6484, 1318, 18, 588, 12, 2211, 10019, 202, 202, 5387, 340, 5621, 202, 97, 368, 1089, 5370, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public long getSystemGroupId() { return 0L; }
public long getSystemGroupId() { return 0L; }
public long getSystemGroupId() { return 0L; }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 12996, 8722, 1435, 3196, 202, 95, 202, 2463, 374, 48, 31, 202, 202, 97, 202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1525, 12996, 8722, 1435, 3196, 202, 95, 202, 2463, 374, 48, 31, 202, 202, 97, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
match(input,ID,FOLLOW_ID_in_predicate2039); match(input,30,FOLLOW_30_in_predicate2041);
match(input,ID,FOLLOW_ID_in_predicate2042); match(input,30,FOLLOW_30_in_predicate2044);
public void predicate(List constraints) throws RecognitionException { Token decl=null; Token field=null; String text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:735:17: (decl= ID ':' field= ID '->' '(' text= paren_chunk ')' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:735:17: decl= ID ':' field= ID '->' '(' text= paren_chunk ')' { decl=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2039); match(input,30,FOLLOW_30_in_predicate2041); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2045); match(input,50,FOLLOW_50_in_predicate2047); match(input,21,FOLLOW_21_in_predicate2049); following.push(FOLLOW_paren_chunk_in_predicate2053); text=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_predicate2055); PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), text ); constraints.add( d ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4763, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4763, 30, 4033, 30, 3496, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 5411, 288, 5411, 3496, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 3462, 5520, 1769, 2398, 845, 12, 2630, 16, 5082, 16, 29890, 67, 5082, 67, 267, 67, 18344, 21573, 21, 1769, 2398, 652, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 21573, 25, 1769, 2398, 845, 12, 2630, 16, 3361, 16, 29890, 67, 3361, 67, 267, 67, 18344, 21573, 27, 1769, 2398, 845, 12, 2630, 16, 5340, 16, 29890, 67, 5340, 67, 267, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4763, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 2 ]
private synchronized void handleRequestMessage( Message msg ) { if ( next_seq_id_to_assign < 0 ) { log.error( "Error: TOTAL_OLD.handleRequestMessage() - cannot handle request... do not know what sequence id to assign" ); return; }
private synchronized void handleRequestMessage(Message msg) { if(next_seq_id_to_assign < 0) { log.error("Error: TOTAL_OLD.handleRequestMessage() - cannot handle request... do not know what sequence id to assign"); return; }
private synchronized void handleRequestMessage( Message msg ) { if ( next_seq_id_to_assign < 0 ) { // we cannot assign a valid sequence id log.error( "Error: TOTAL_OLD.handleRequestMessage() - cannot handle request... do not know what sequence id to assign" ); return; } // make the message a broadcast message to the group msg.setDest( null ); // set the source of the message to be me msg.setSrc( local_addr ); // add the sequence id to the message msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_BCAST, next_seq_id_to_assign ) ); // store a copy of this message is the history Message msg_copy = msg.copy(); ack_history.addMessage( msg_copy, next_seq_id_to_assign ); // begin debug { Object header = msg_copy.getHeader(getName()); if ( !(header instanceof TotalHeader) ) { log.error( "Error: TOTAL_OLD.handleRequestMessage() - BAD: stored message that did not contain a TotalHeader - " + next_seq_id_to_assign ); } } // // end debug // increment the next sequence id to use next_seq_id_to_assign++; // pass this new Message (wrapped in an Event) down the Protocol Stack passDown( new Event( Event.MSG, msg ) ); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 15713, 1079, 12, 2350, 1234, 262, 288, 202, 430, 261, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 411, 374, 262, 288, 202, 565, 368, 732, 2780, 2683, 279, 923, 3102, 612, 202, 565, 613, 18, 1636, 12, 315, 668, 30, 399, 19851, 67, 11846, 18, 4110, 691, 1079, 1435, 300, 2780, 1640, 590, 2777, 741, 486, 5055, 4121, 3102, 612, 358, 2683, 6, 11272, 202, 565, 327, 31, 202, 97, 202, 759, 1221, 326, 883, 279, 8959, 883, 358, 326, 1041, 202, 3576, 18, 542, 9378, 12, 446, 11272, 202, 759, 444, 326, 1084, 434, 326, 883, 358, 506, 1791, 202, 3576, 18, 542, 7740, 12, 1191, 67, 4793, 11272, 202, 759, 527, 326, 3102, 612, 358, 326, 883, 202, 3576, 18, 458, 1864, 12, 17994, 9334, 225, 394, 10710, 1864, 12, 10710, 1864, 18, 28624, 67, 38, 21871, 16, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 262, 11272, 202, 759, 1707, 279, 1610, 434, 333, 883, 353, 326, 4927, 202, 1079, 1234, 67, 3530, 273, 1234, 18, 3530, 5621, 202, 484, 67, 8189, 18, 1289, 1079, 12, 1234, 67, 3530, 16, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 11272, 202, 759, 2376, 1198, 202, 288, 202, 565, 1033, 1446, 273, 1234, 67, 3530, 18, 588, 1864, 12, 17994, 10663, 202, 565, 309, 261, 401, 12, 3374, 1276, 10710, 1864, 13, 262, 288, 202, 202, 1330, 18, 1636, 12, 315, 668, 30, 399, 19851, 67, 11846, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 15713, 1079, 12, 2350, 1234, 262, 288, 202, 430, 261, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 411, 374, 262, 288, 202, 565, 368, 732, 2780, 2683, 279, 923, 3102, 612, 202, 565, 613, 18, 1636, 12, 315, 668, 30, 399, 19851, 67, 11846, 18, 4110, 691, 1079, 1435, 300, 2780, 1640, 590, 2777, 741, 486, 5055, 4121, 3102, 612, 358, 2683, 6, 11272, 202, 565, 327, 31, 202, 97, 202, 759, 1221, 326, 883, 279, 8959, 883, 358, 326, 1041, 202, 3576, 18, 542, 9378, 12, 446, 11272, 202, 759, 444, 326, 1084, 434, 326, 883, 358, 506, 1791, 202, 3576, 18, 542, 7740, 12, 1191, 67, 4793, 11272, 202, 759, 527, 2 ]
System.out.println(myAgent.getLocalName()+" write into datastore at key "+wk+":"+valW);
/*System.out.println(myAgent.getLocalName()+" write into datastore at key "+wk+":"+valW);*/
public void action() { System.out.println(myAgent.getLocalName()+" executing RWBehaviour in state "+father.getName(this)+" datastore.size="+getDataStore().size()); if (rk != null) { System.out.println(myAgent.getLocalName()+" read from datastore at key "+rk+":"); Object val = getDataStore().get(rk); if (val instanceof List) for (Iterator i=((List)val).iterator(); i.hasNext(); ) System.out.println(" "+i.next()); else System.out.println(" "+val); } if (wk != null) { Object valR = getDataStore().get(rk); Object valW; if (wl) { if (valR instanceof List) valW = valR; else { valW = new ArrayList(); ((List)valW).add(valR); } System.out.println(myAgent.getLocalName()+" write into datastore at key "+wk+":"); for (Iterator i=((List)valW).iterator(); i.hasNext(); ) System.out.println(" "+i.next()); } else { if (valR instanceof List) valW = ((List)valR).get(0); else valW = valR; System.out.println(myAgent.getLocalName()+" write into datastore at key "+wk+":"+valW); } getDataStore().put(wk,valW); } }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/61e2ed1fcb453bddd93cb795ee676adf50d40e70/ComplexInitiator.java/buggy/src/examples/protocols/ComplexInitiator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1301, 1435, 288, 202, 565, 2332, 18, 659, 18, 8222, 12, 4811, 3630, 18, 588, 29583, 1435, 9078, 11274, 25920, 19376, 477, 316, 919, 13773, 74, 4806, 18, 17994, 12, 2211, 13, 9078, 9290, 18, 1467, 1546, 15, 588, 24977, 7675, 1467, 10663, 202, 565, 309, 261, 86, 79, 480, 446, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 4811, 3630, 18, 588, 29583, 1435, 9078, 855, 628, 9290, 622, 498, 13773, 86, 79, 9078, 2773, 1769, 202, 202, 921, 1244, 273, 4303, 2257, 7675, 588, 12, 86, 79, 1769, 202, 202, 430, 261, 1125, 1276, 987, 13, 1082, 565, 364, 261, 3198, 277, 33, 12443, 682, 13, 1125, 2934, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 225, 13773, 77, 18, 4285, 10663, 202, 202, 12107, 1875, 565, 2332, 18, 659, 18, 8222, 2932, 225, 13773, 1125, 1769, 202, 565, 289, 3196, 565, 309, 261, 17736, 480, 446, 13, 288, 202, 202, 921, 1244, 54, 273, 4303, 2257, 7675, 588, 12, 86, 79, 1769, 202, 202, 921, 1244, 59, 31, 202, 202, 430, 261, 21504, 13, 288, 1082, 565, 309, 261, 1125, 54, 1276, 987, 13, 1875, 202, 1125, 59, 273, 1244, 54, 31, 1082, 565, 469, 288, 1082, 202, 1125, 59, 273, 394, 2407, 5621, 1082, 202, 12443, 682, 13, 1125, 59, 2934, 1289, 12, 1125, 54, 1769, 1082, 565, 289, 1082, 565, 2332, 18, 659, 18, 8222, 12, 4811, 3630, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1301, 1435, 288, 202, 565, 2332, 18, 659, 18, 8222, 12, 4811, 3630, 18, 588, 29583, 1435, 9078, 11274, 25920, 19376, 477, 316, 919, 13773, 74, 4806, 18, 17994, 12, 2211, 13, 9078, 9290, 18, 1467, 1546, 15, 588, 24977, 7675, 1467, 10663, 202, 565, 309, 261, 86, 79, 480, 446, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 4811, 3630, 18, 588, 29583, 1435, 9078, 855, 628, 9290, 622, 498, 13773, 86, 79, 9078, 2773, 1769, 202, 202, 921, 1244, 273, 4303, 2257, 7675, 588, 12, 86, 79, 1769, 202, 202, 430, 261, 1125, 1276, 987, 13, 1082, 565, 364, 261, 3198, 277, 33, 12443, 682, 13, 1125, 2934, 9838, 5621, 277, 2 ]
sendSearch((RouterInfo)ds); sent++;
if (getContext().shitlist().isShitlisted(peer)) { } else { _state.addPending(peer); sendSearch((RouterInfo)ds); sent++; }
protected void continueSearch() { if (_state.completed()) { if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Search already completed", new Exception("already completed")); return; } int toCheck = getBredth() - _state.getPending().size(); if (toCheck <= 0) { // too many already pending if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Too many searches already pending (pending: " + _state.getPending().size() + " max: " + getBredth() + ")"); requeuePending(); return; } List closestHashes = getClosestRouters(_state.getTarget(), toCheck, _state.getAttempted()); if ( (closestHashes == null) || (closestHashes.size() <= 0) ) { if (_state.getPending().size() <= 0) { // we tried to find some peers, but there weren't any and no one else is going to answer if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, and none pending! Already searched: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); fail(); } else { // no more to try, but we might get data or close peers from some outstanding requests if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No peers left, but some are pending! Pending: " + _state.getPending().size() + " attempted: " + _state.getAttempted().size() + " failed: " + _state.getFailed().size()); requeuePending(); return; } } else { _state.addPending(closestHashes); int sent = 0; for (Iterator iter = closestHashes.iterator(); iter.hasNext(); ) { Hash peer = (Hash)iter.next(); DataStructure ds = _facade.getDataStore().get(peer); if ( (ds == null) || !(ds instanceof RouterInfo) ) { if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": Error selecting closest hash that wasnt a router! " + peer + " : " + (ds == null ? "null" : ds.getClass().getName())); _state.replyTimeout(peer); } else { if (getContext().shitlist().isShitlisted(peer)) { // dont bother } else { sendSearch((RouterInfo)ds); sent++; } } } if (sent <= 0) { // the (potentially) last peers being searched for could not be, // er, searched for, so lets retry ASAP (causing either another // peer to be selected, or the whole search to fail) if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": No new peer queued up, so we are going to requeue " + "ourselves in our search for " + _state.getTarget().toBase64()); requeuePending(0); } } }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/4de302101d04a59011b067fbb46e2aee7885335f/SearchJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1324, 2979, 1435, 288, 540, 309, 261, 67, 2019, 18, 13615, 10756, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 5167, 1818, 5951, 3113, 394, 1185, 2932, 17583, 5951, 7923, 1769, 5411, 327, 31, 3639, 289, 3639, 509, 358, 1564, 273, 2882, 1118, 451, 1435, 300, 389, 2019, 18, 588, 8579, 7675, 1467, 5621, 3639, 309, 261, 869, 1564, 1648, 374, 13, 288, 5411, 368, 4885, 4906, 1818, 4634, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5923, 3719, 7734, 389, 1330, 18, 1376, 12, 588, 23378, 1435, 397, 6398, 15869, 4906, 16662, 1818, 4634, 261, 9561, 30, 315, 21821, 397, 389, 2019, 18, 588, 8579, 7675, 1467, 1435, 397, 315, 943, 30, 315, 397, 2882, 1118, 451, 1435, 397, 7310, 1769, 5411, 1111, 1455, 8579, 5621, 5411, 327, 31, 3639, 289, 540, 987, 9219, 14455, 273, 1927, 383, 7781, 4583, 414, 24899, 2019, 18, 588, 2326, 9334, 358, 1564, 16, 389, 2019, 18, 588, 28788, 10663, 3639, 309, 261, 261, 7550, 7781, 14455, 422, 446, 13, 747, 261, 7550, 7781, 14455, 18, 1467, 1435, 1648, 374, 13, 262, 288, 5411, 309, 261, 67, 2019, 18, 588, 8579, 7675, 1467, 1435, 1648, 374, 13, 288, 7734, 368, 732, 12928, 358, 1104, 2690, 10082, 16, 1496, 1915, 22646, 275, 1404, 1281, 471, 1158, 1245, 469, 353, 8554, 358, 5803, 7734, 309, 261, 67, 1330, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1324, 2979, 1435, 288, 540, 309, 261, 67, 2019, 18, 13615, 10756, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 5167, 1818, 5951, 3113, 394, 1185, 2932, 17583, 5951, 7923, 1769, 5411, 327, 31, 3639, 289, 3639, 509, 358, 1564, 273, 2882, 1118, 451, 1435, 300, 389, 2019, 18, 588, 8579, 7675, 1467, 5621, 3639, 309, 261, 869, 1564, 1648, 374, 13, 288, 5411, 368, 4885, 4906, 1818, 4634, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5923, 3719, 7734, 389, 1330, 18, 1376, 12, 588, 23378, 1435, 397, 6398, 15869, 4906, 16662, 1818, 4634, 261, 2 ]
for (TreeItem item : dirtyItemsCreateDOM)
while (dirtyItemsCreateDOM.isEmpty() == false)
public final void updateTree(final AjaxRequestTarget target) { if (target == null) { return; } // check whether the model hasn't changed checkModel(); // is the whole tree dirty if (dirtyAll) { // render entire tree component target.addComponent(this); } else { // remove DOM elements that need to be removed if (deleteIds.length() != 0) { String js = getElementsDeleteJavascript(); // add the javascript to target target.prependJavascript(js); } for (TreeItem item : dirtyItemsCreateDOM) { TreeItem parent = item.getParentItem(); int index = parent.getChildren().indexOf(item); TreeItem previous; // we need item before this (in dom structure) if (index == 0) { previous = parent; } else { previous = parent.getChildren().get(index - 1); // get the last item of previous item subtree while (previous.getChildren() != null && previous.getChildren().size() > 0) { previous = previous.getChildren().get(previous.getChildren().size() - 1); } } target.prependJavascript("Wicket.Tree.createElement(\"" + item.getMarkupId() + "\"," + "\"" + previous.getMarkupId() + "\")"); } // iterate through dirty items for (TreeItem item : dirtyItems) { // does the item need to rebuild children? if (item.getChildren() == null) { // rebuld the children buildItemChildren(item); // set flag on item so that it renders itself together with // it's children item.setRenderChildren(true); } // add the component to target target.addComponent(item); } // clear dirty flags updated(); } }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/7ac4f6707bf8db3246c2a0552f1b261eae345cbc/AbstractTree.java/clean/wicket/src/java/wicket/markup/html/tree/AbstractTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1089, 2471, 12, 6385, 18772, 691, 2326, 1018, 13, 202, 95, 202, 202, 430, 261, 3299, 422, 446, 13, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 866, 2856, 326, 938, 13342, 1404, 3550, 202, 202, 1893, 1488, 5621, 202, 202, 759, 353, 326, 7339, 2151, 9603, 202, 202, 430, 261, 18013, 1595, 13, 202, 202, 95, 1082, 202, 759, 1743, 7278, 2151, 1794, 1082, 202, 3299, 18, 1289, 1841, 12, 2211, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 759, 1206, 4703, 2186, 716, 1608, 358, 506, 3723, 1082, 202, 430, 261, 3733, 2673, 18, 2469, 1435, 480, 374, 13, 1082, 202, 95, 9506, 202, 780, 3828, 273, 8886, 2613, 27129, 5621, 9506, 202, 759, 527, 326, 11341, 358, 1018, 9506, 202, 3299, 18, 23100, 27129, 12, 2924, 1769, 1082, 202, 97, 1082, 202, 1884, 261, 2471, 1180, 761, 294, 9603, 3126, 1684, 8168, 13, 1082, 202, 95, 9506, 202, 2471, 1180, 982, 273, 761, 18, 588, 3054, 1180, 5621, 9506, 202, 474, 770, 273, 982, 18, 588, 4212, 7675, 31806, 12, 1726, 1769, 9506, 202, 2471, 1180, 2416, 31, 9506, 202, 759, 732, 1608, 761, 1865, 333, 261, 267, 4092, 3695, 13, 9506, 202, 430, 261, 1615, 422, 374, 13, 9506, 202, 95, 6862, 202, 11515, 273, 982, 31, 9506, 202, 97, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 11515, 273, 982, 18, 588, 4212, 7675, 588, 12, 1615, 300, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 2471, 12, 6385, 18772, 691, 2326, 1018, 13, 202, 95, 202, 202, 430, 261, 3299, 422, 446, 13, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 866, 2856, 326, 938, 13342, 1404, 3550, 202, 202, 1893, 1488, 5621, 202, 202, 759, 353, 326, 7339, 2151, 9603, 202, 202, 430, 261, 18013, 1595, 13, 202, 202, 95, 1082, 202, 759, 1743, 7278, 2151, 1794, 1082, 202, 3299, 18, 1289, 1841, 12, 2211, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 759, 1206, 4703, 2186, 716, 1608, 358, 506, 3723, 1082, 202, 430, 261, 3733, 2673, 18, 2469, 1435, 480, 374, 13, 1082, 202, 95, 9506, 2 ]
PathExpr expr = new PathExpr();
PathExpr expr = new PathExpr(context);
protected ResourceSet doQuery(String query, DocumentSet docs, NodeSet contextSet, String sortExpr) throws XMLDBException { DBBroker broker = null; try { broker = brokerPool.get(user); StaticContext context = new StaticContext(broker); context.setBaseURI(collection.getPath()); Map.Entry entry; // declare namespace/prefix mappings for(Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); LOG.debug("prefix " + entry.getKey() + " = " + entry.getValue()); context.declareNamespace((String)entry.getKey(), (String)entry.getValue()); } // declare static variables for(Iterator i = variableDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); context.declareVariable((String)entry.getKey(), (String)entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(query)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if(parser.foundErrors()) { LOG.debug(parser.getErrorMessage()); throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringTree()); PathExpr expr = new PathExpr(); treeParser.xpath(ast, expr); if(treeParser.foundErrors()) { throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, treeParser.getErrorMessage()); } LOG.info("query: " + expr.pprint()); long start = System.currentTimeMillis(); //if (parser.foundErrors()) // throw new XMLDBException(ErrorCodes.VENDOR_ERROR, parser.getErrorMsg()); Sequence result = null; docs = (docs == null ? expr.preselect(context) : expr.preselect(docs, context)); if (docs.getLength() == 0) { result = Sequence.EMPTY_SEQUENCE; LOG.info("no documents!"); } else result = expr.eval(context, docs, contextSet, null); LOG.info( expr.pprint() + " found: " + result.getLength() + " in " + (System.currentTimeMillis() - start) + "ms."); LocalResourceSet resultSet = new LocalResourceSet( user, brokerPool, collection, result, properties, sortExpr); return resultSet; } catch (antlr.RecognitionException re) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, re.getMessage(), re); } catch (antlr.TokenStreamException te) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, te.getMessage(), te); } catch (IllegalArgumentException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } finally { brokerPool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/LocalXPathQueryService.java/buggy/src/org/exist/xmldb/LocalXPathQueryService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2591, 694, 741, 1138, 12, 780, 843, 16, 4319, 694, 3270, 16, 3196, 202, 907, 694, 819, 694, 16, 514, 1524, 4742, 13, 202, 202, 15069, 26014, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 12, 1355, 1769, 5411, 10901, 1042, 819, 273, 394, 10901, 1042, 12, 21722, 1769, 5411, 819, 18, 542, 2171, 3098, 12, 5548, 18, 588, 743, 10663, 13491, 1635, 18, 1622, 1241, 31, 5411, 368, 14196, 1981, 19, 3239, 7990, 5411, 364, 12, 3198, 277, 273, 1981, 1799, 3251, 18, 4099, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 7734, 1241, 273, 261, 863, 18, 1622, 13, 77, 18, 4285, 5621, 7734, 2018, 18, 4148, 2932, 3239, 315, 397, 1241, 18, 588, 653, 1435, 397, 315, 273, 315, 397, 1241, 18, 24805, 10663, 7734, 819, 18, 29554, 3402, 12443, 780, 13, 4099, 18, 588, 653, 9334, 261, 780, 13, 4099, 18, 24805, 10663, 5411, 289, 5411, 368, 14196, 760, 3152, 5411, 364, 12, 3198, 277, 273, 2190, 1799, 3251, 18, 4099, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 2398, 202, 4099, 273, 261, 863, 18, 1622, 13, 77, 18, 4285, 5621, 2398, 202, 2472, 18, 29554, 3092, 12443, 780, 13, 4099, 18, 588, 653, 9334, 261, 780, 13, 4099, 18, 24805, 10663, 5411, 289, 1082, 202, 14124, 13356, 22, 8512, 273, 394, 10172, 13356, 22, 12, 2704, 26227, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2591, 694, 741, 1138, 12, 780, 843, 16, 4319, 694, 3270, 16, 3196, 202, 907, 694, 819, 694, 16, 514, 1524, 4742, 13, 202, 202, 15069, 26014, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 12, 1355, 1769, 5411, 10901, 1042, 819, 273, 394, 10901, 1042, 12, 21722, 1769, 5411, 819, 18, 542, 2171, 3098, 12, 5548, 18, 588, 743, 10663, 13491, 1635, 18, 1622, 1241, 31, 5411, 368, 14196, 1981, 19, 3239, 7990, 5411, 364, 12, 3198, 277, 273, 1981, 1799, 3251, 18, 4099, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 7734, 1241, 273, 261, 863, 18, 2 ]
while(removes.hasNext()){ if(currentList.getMarker((IMarker) removes.next())!= null)
while (removes.hasNext()) { if (currentList.getMarker((IMarker) removes.next()) != null)
private boolean removeRefreshRequired(Collection removedMarkers) { if(removedMarkers.isEmpty()) return false; MarkerList currentList = getCurrentMarkers(); Iterator removes = removedMarkers.iterator(); while(removes.hasNext()){ if(currentList.getMarker((IMarker) removes.next())!= null) return true; } return false; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e4aadc0c38193d304df3f17736fc9f4558cd1453/MarkerView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 1250, 1206, 8323, 3705, 12, 2532, 3723, 21644, 13, 288, 1082, 202, 430, 12, 14923, 21644, 18, 291, 1921, 10756, 9506, 202, 2463, 629, 31, 25083, 202, 7078, 682, 783, 682, 273, 5175, 21644, 5621, 1082, 202, 3198, 7157, 273, 3723, 21644, 18, 9838, 5621, 1082, 202, 17523, 12, 2764, 10829, 18, 5332, 2134, 10756, 95, 9506, 202, 430, 12, 2972, 682, 18, 588, 7078, 12443, 3445, 1313, 264, 13, 7157, 18, 4285, 10756, 5, 33, 446, 13, 6862, 202, 2463, 638, 31, 1082, 202, 97, 25083, 202, 2463, 629, 31, 202, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 1250, 1206, 8323, 3705, 12, 2532, 3723, 21644, 13, 288, 1082, 202, 430, 12, 14923, 21644, 18, 291, 1921, 10756, 9506, 202, 2463, 629, 31, 25083, 202, 7078, 682, 783, 682, 273, 5175, 21644, 5621, 1082, 202, 3198, 7157, 273, 3723, 21644, 18, 9838, 5621, 1082, 202, 17523, 12, 2764, 10829, 18, 5332, 2134, 10756, 95, 9506, 202, 430, 12, 2972, 682, 18, 588, 7078, 12443, 3445, 1313, 264, 13, 7157, 18, 4285, 10756, 5, 33, 446, 13, 6862, 202, 2463, 638, 31, 1082, 202, 97, 25083, 202, 2463, 629, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
getSelectedObjects() { if (selectedIndex == -1) return null;
public synchronized Object[] getSelectedObjects() { if (selectedIndex == -1) return null;
getSelectedObjects(){ if (selectedIndex == -1) return null; Object[] objs = new Object[1]; objs[0] = pItems.elementAt(selectedIndex); return(objs);}
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/de1def922d61f2c8775ff796242c973408a67856/Choice.java/clean/libjava/classpath/java/awt/Choice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 16625, 4710, 1435, 95, 225, 309, 261, 8109, 1016, 422, 300, 21, 13, 565, 327, 446, 31, 225, 1033, 8526, 12721, 273, 394, 1033, 63, 21, 15533, 225, 12721, 63, 20, 65, 273, 293, 3126, 18, 2956, 861, 12, 8109, 1016, 1769, 225, 327, 12, 18093, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16625, 4710, 1435, 95, 225, 309, 261, 8109, 1016, 422, 300, 21, 13, 565, 327, 446, 31, 225, 1033, 8526, 12721, 273, 394, 1033, 63, 21, 15533, 225, 12721, 63, 20, 65, 273, 293, 3126, 18, 2956, 861, 12, 8109, 1016, 1769, 225, 327, 12, 18093, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private JTextField createOutputField() { JTextField field= new JTextField("0", 4);
private JTextField createOutputField(int width) { JTextField field= new JTextField("0", width); field.setMinimumSize(field.getPreferredSize()); field.setMaximumSize(field.getPreferredSize());
private JTextField createOutputField() { JTextField field= new JTextField("0", 4); field.setHorizontalAlignment(JTextField.LEFT); field.setFont(StatusLine.BOLD_FONT); field.setEditable(false); field.setBorder(BorderFactory.createEmptyBorder()); return field; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4b4449dde49cdcaed9ae00d1ac057ecfeb8d8c23/CounterPanel.java/buggy/org.eclipse.jdt.core.tests.model/workspace/Converter/junit/swingui/CounterPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 804, 16157, 752, 1447, 974, 1435, 288, 202, 202, 46, 16157, 652, 33, 394, 804, 16157, 2932, 20, 3113, 1059, 1769, 202, 202, 1518, 18, 542, 14457, 11535, 12, 46, 16157, 18, 10066, 1769, 202, 202, 1518, 18, 542, 5711, 12, 1482, 1670, 18, 38, 11846, 67, 25221, 1769, 202, 202, 1518, 18, 542, 15470, 12, 5743, 1769, 202, 202, 1518, 18, 542, 8107, 12, 8107, 1733, 18, 2640, 1921, 8107, 10663, 202, 202, 2463, 652, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 804, 16157, 752, 1447, 974, 1435, 288, 202, 202, 46, 16157, 652, 33, 394, 804, 16157, 2932, 20, 3113, 1059, 1769, 202, 202, 1518, 18, 542, 14457, 11535, 12, 46, 16157, 18, 10066, 1769, 202, 202, 1518, 18, 542, 5711, 12, 1482, 1670, 18, 38, 11846, 67, 25221, 1769, 202, 202, 1518, 18, 542, 15470, 12, 5743, 1769, 202, 202, 1518, 18, 542, 8107, 12, 8107, 1733, 18, 2640, 1921, 8107, 10663, 202, 202, 2463, 652, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final char ch = signature.charAt(signature.length() - 1); if (ch == 'V') { /** No return value */ } else if ((ch == 'J') || (ch == 'D')) { /** Wide return value */ stackMgr.writePUSH64(JvmType.SignatureToType(ch), Register.EAX, Register.EDX); } else { /** Normal return value */ stackMgr.writePUSH(JvmType.SignatureToType(ch), Register.EAX);
final int returnType = JvmType.getReturnType(signature); assertCondition(signature.endsWith("V") == (returnType == JvmType.VOID), "Return type"); switch (returnType) { case JvmType.VOID: break; case JvmType.DOUBLE: case JvmType.LONG: stackMgr.writePUSH64(returnType, Register.EAX, Register.EDX); break; default: stackMgr.writePUSH(returnType, Register.EAX);
public final void invokeJavaMethod(String signature) { os.writeCALL(Register.EAX, context.getVmMethodNativeCodeField() .getOffset()); //writeJumpTableCALL(X86JumpTable.VM_INVOKE_OFS); final char ch = signature.charAt(signature.length() - 1); if (ch == 'V') { /** No return value */ } else if ((ch == 'J') || (ch == 'D')) { /** Wide return value */ stackMgr.writePUSH64(JvmType.SignatureToType(ch), Register.EAX, Register.EDX); } else { /** Normal return value */ stackMgr.writePUSH(JvmType.SignatureToType(ch), Register.EAX); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/55b12818040bb69b51502c4cd0f42118d2046977/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 4356, 5852, 1305, 12, 780, 3372, 13, 288, 3639, 1140, 18, 2626, 13730, 12, 3996, 18, 41, 2501, 16, 819, 18, 588, 22143, 1305, 9220, 1085, 974, 1435, 7734, 263, 588, 2335, 10663, 3639, 368, 2626, 26743, 1388, 13730, 12, 60, 5292, 26743, 1388, 18, 7397, 67, 706, 17691, 41, 67, 3932, 55, 1769, 3639, 727, 1149, 462, 273, 3372, 18, 3001, 861, 12, 8195, 18, 2469, 1435, 300, 404, 1769, 3639, 309, 261, 343, 422, 296, 58, 6134, 288, 5411, 1783, 2631, 327, 460, 1195, 3639, 289, 469, 309, 14015, 343, 422, 296, 46, 6134, 747, 261, 343, 422, 296, 40, 26112, 288, 5411, 1783, 678, 831, 327, 460, 1195, 5411, 2110, 9455, 18, 2626, 30348, 1105, 12, 6071, 559, 18, 5374, 31616, 12, 343, 3631, 5433, 18, 41, 2501, 16, 5433, 18, 2056, 60, 1769, 3639, 289, 469, 288, 5411, 1783, 8769, 327, 460, 1195, 5411, 2110, 9455, 18, 2626, 30348, 12, 6071, 559, 18, 5374, 31616, 12, 343, 3631, 5433, 18, 41, 2501, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 4356, 5852, 1305, 12, 780, 3372, 13, 288, 3639, 1140, 18, 2626, 13730, 12, 3996, 18, 41, 2501, 16, 819, 18, 588, 22143, 1305, 9220, 1085, 974, 1435, 7734, 263, 588, 2335, 10663, 3639, 368, 2626, 26743, 1388, 13730, 12, 60, 5292, 26743, 1388, 18, 7397, 67, 706, 17691, 41, 67, 3932, 55, 1769, 3639, 727, 1149, 462, 273, 3372, 18, 3001, 861, 12, 8195, 18, 2469, 1435, 300, 404, 1769, 3639, 309, 261, 343, 422, 296, 58, 6134, 288, 5411, 1783, 2631, 327, 460, 1195, 3639, 289, 469, 309, 14015, 343, 422, 296, 46, 6134, 747, 261, 343, 422, 296, 40, 26112, 288, 5411, 1783, 678, 831, 327, 460, 1195, 5411, 2110, 9455, 18, 2 ]
NodePeer pn = peers.closestPeer(loc2); if(pn == null) { Logger.error(this, "Nowhere to send routed ping on "+this); return -1; } Logger.normal(this, "Ping to "+loc2+": "+portNumber+" -> "+pn.getPeer().getPort()); Message m = DMT.createFNPRoutedPing(uid, loc2, MAX_HTL, initialX, lm.getLocation().getValue());
Message m = DMT.createFNPRoutedPing(uid, loc2, MAX_HTL, initialX);
public int routedPing(double loc2) { long uid = random.nextLong(); int initialX = random.nextInt(); NodePeer pn = peers.closestPeer(loc2); if(pn == null) { Logger.error(this, "Nowhere to send routed ping on "+this); return -1; } Logger.normal(this, "Ping to "+loc2+": "+portNumber+" -> "+pn.getPeer().getPort()); Message m = DMT.createFNPRoutedPing(uid, loc2, MAX_HTL, initialX, lm.getLocation().getValue()); Logger.normal(this, "Message: "+m); dispatcher.handleRouted(m); // FIXME: might be rejected MessageFilter mf1 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPRoutedPong).setTimeout(5000); MessageFilter mf2 = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPRoutedRejected).setTimeout(5000); m = usm.waitFor(mf1.or(mf2)); if(m == null) return -1; if(m.getSpec() == DMT.FNPRoutedRejected) return -1; return m.getInt(DMT.COUNTER) - initialX; }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/67ffc74c653c146c3327643dba419ef696af844a/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3237, 329, 17223, 12, 9056, 1515, 22, 13, 288, 3639, 1525, 4555, 273, 2744, 18, 4285, 3708, 5621, 3639, 509, 2172, 60, 273, 2744, 18, 4285, 1702, 5621, 3639, 2029, 6813, 11059, 273, 10082, 18, 7550, 7781, 6813, 12, 1829, 22, 1769, 3639, 309, 12, 7449, 422, 446, 13, 288, 5411, 4242, 18, 1636, 12, 2211, 16, 315, 8674, 14852, 358, 1366, 3237, 329, 10087, 603, 13773, 2211, 1769, 5411, 327, 300, 21, 31, 3639, 289, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 17223, 358, 13773, 1829, 22, 15, 6877, 13773, 655, 1854, 9078, 317, 13773, 7449, 18, 588, 6813, 7675, 588, 2617, 10663, 3639, 2350, 312, 273, 463, 6152, 18, 2640, 19793, 52, 4583, 329, 17223, 12, 1911, 16, 1515, 22, 16, 4552, 67, 5062, 48, 16, 2172, 60, 16, 14966, 18, 588, 2735, 7675, 24805, 10663, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 1079, 30, 13773, 81, 1769, 7734, 7393, 18, 4110, 4583, 329, 12, 81, 1769, 3639, 368, 9852, 30, 4825, 506, 11876, 3639, 2350, 1586, 14749, 21, 273, 2350, 1586, 18, 2640, 7675, 542, 974, 12, 40, 6152, 18, 3060, 16, 4555, 2934, 542, 559, 12, 40, 6152, 18, 19793, 52, 4583, 329, 52, 932, 2934, 542, 2694, 12, 25, 3784, 1769, 3639, 2350, 1586, 14749, 22, 273, 2350, 1586, 18, 2640, 7675, 542, 974, 12, 40, 6152, 18, 3060, 16, 4555, 2934, 542, 559, 12, 40, 6152, 18, 19793, 52, 4583, 329, 19902, 2934, 542, 2694, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 3237, 329, 17223, 12, 9056, 1515, 22, 13, 288, 3639, 1525, 4555, 273, 2744, 18, 4285, 3708, 5621, 3639, 509, 2172, 60, 273, 2744, 18, 4285, 1702, 5621, 3639, 2029, 6813, 11059, 273, 10082, 18, 7550, 7781, 6813, 12, 1829, 22, 1769, 3639, 309, 12, 7449, 422, 446, 13, 288, 5411, 4242, 18, 1636, 12, 2211, 16, 315, 8674, 14852, 358, 1366, 3237, 329, 10087, 603, 13773, 2211, 1769, 5411, 327, 300, 21, 31, 3639, 289, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 17223, 358, 13773, 1829, 22, 15, 6877, 13773, 655, 1854, 9078, 317, 13773, 7449, 18, 588, 6813, 7675, 588, 2617, 10663, 3639, 2350, 312, 273, 463, 6152, 18, 2640, 19793, 52, 4583, 2 ]
e = de - Bias - (P-1) + k;
e[0] = de - Bias - (P-1) + k; bits[0] = P - k;
static int d2b(double d, byte bits[]) { int e, k, y, z, de; long dBits = Double.doubleToLongBits(d); int d0 = (int)(dBits >>> 32); int d1 = (int)(dBits); z = d0 & Frac_mask; d0 &= 0x7fffffff; /* clear sign bit, which we ignore */ if ((de = (int)(d0 >>> Exp_shift)) != 0) z |= Exp_msk1; if ((y = d1) != 0) { k = lo0bits(y); y >>>= k; if (k != 0) { stuffBits(bits, 4, y | z << (32 - k)); z >>= k; } else stuffBits(bits, 4, y); stuffBits(bits, 0, z); } else { // JS_ASSERT(z); k = lo0bits(z); z >>>= k; stuffBits(bits, 4, z); k += 32; } if (de != 0) { e = de - Bias - (P-1) + k; } else { e = de - Bias - (P-1) + 1 + k; } return e; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3726b9fb19b6fab5f4203f81c219670d795ffdbd/DToA.java/buggy/js/rhino/org/mozilla/javascript/DToA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 509, 302, 22, 70, 12, 9056, 302, 16, 1160, 4125, 63, 5717, 565, 288, 3639, 509, 425, 16, 417, 16, 677, 16, 998, 16, 443, 31, 3639, 1525, 302, 6495, 273, 3698, 18, 9056, 30220, 6495, 12, 72, 1769, 3639, 509, 302, 20, 273, 261, 474, 21433, 72, 6495, 4080, 3847, 1769, 3639, 509, 302, 21, 273, 261, 474, 21433, 72, 6495, 1769, 3639, 998, 273, 302, 20, 473, 478, 8836, 67, 4455, 31, 3639, 302, 20, 12058, 374, 92, 27, 18217, 74, 31, 282, 1748, 2424, 1573, 2831, 16, 1492, 732, 2305, 1195, 3639, 309, 14015, 323, 273, 261, 474, 21433, 72, 20, 4080, 7784, 67, 4012, 3719, 480, 374, 13, 5411, 998, 5626, 7784, 67, 959, 79, 21, 31, 3639, 309, 14015, 93, 273, 302, 21, 13, 480, 374, 13, 288, 5411, 417, 273, 437, 20, 6789, 12, 93, 1769, 5411, 677, 4080, 33, 417, 31, 5411, 309, 261, 79, 480, 374, 13, 288, 7734, 10769, 6495, 12, 6789, 16, 1059, 16, 677, 571, 998, 2296, 261, 1578, 300, 417, 10019, 7734, 998, 23359, 417, 31, 5411, 289, 5411, 469, 7734, 10769, 6495, 12, 6789, 16, 1059, 16, 677, 1769, 5411, 10769, 6495, 12, 6789, 16, 374, 16, 998, 1769, 3639, 289, 3639, 469, 288, 565, 368, 3639, 6756, 67, 8423, 11539, 12, 94, 1769, 5411, 417, 273, 437, 20, 6789, 12, 94, 1769, 5411, 998, 4080, 33, 417, 31, 5411, 10769, 6495, 12, 6789, 16, 1059, 16, 998, 1769, 5411, 417, 1011, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 302, 22, 70, 12, 9056, 302, 16, 1160, 4125, 63, 5717, 565, 288, 3639, 509, 425, 16, 417, 16, 677, 16, 998, 16, 443, 31, 3639, 1525, 302, 6495, 273, 3698, 18, 9056, 30220, 6495, 12, 72, 1769, 3639, 509, 302, 20, 273, 261, 474, 21433, 72, 6495, 4080, 3847, 1769, 3639, 509, 302, 21, 273, 261, 474, 21433, 72, 6495, 1769, 3639, 998, 273, 302, 20, 473, 478, 8836, 67, 4455, 31, 3639, 302, 20, 12058, 374, 92, 27, 18217, 74, 31, 282, 1748, 2424, 1573, 2831, 16, 1492, 732, 2305, 1195, 3639, 309, 14015, 323, 273, 261, 474, 21433, 72, 20, 4080, 7784, 67, 4012, 3719, 480, 374, 13, 5411, 998, 5626, 7784, 67, 2 ]
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = type.getSuperClass()) { RubyModule realType = type.getNonIncludedClass(); for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); String methodName = (String) entry.getKey(); if (method.isUndefined()) { undefinedMethods.put(methodName, Boolean.TRUE); continue; } if (method.getImplementationClass() == realType && method.getVisibility().is(visibility) && undefinedMethods.get(methodName) == null) { RubyString name = getRuntime().newString(methodName); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 7734, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 7734, 514, 4918, 273, 261, 780, 13, 1241, 18, 588, 653, 5621, 7734, 309, 261, 2039, 18, 291, 10317, 10756, 288, 1171, 202, 5978, 4712, 18, 458, 12, 2039, 461, 16, 3411, 18, 18724, 1769, 1171, 202, 17143, 31, 7734, 289, 7734, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 597, 5397, 707, 18, 588, 10135, 7675, 291, 12, 14422, 13, 597, 3109, 4712, 18, 588, 12, 2039, 461, 13, 422, 446, 13, 288, 1171, 202, 54, 10340, 780, 508, 273, 18814, 7675, 2704, 780, 12, 2039, 461, 1769, 1171, 202, 430, 16051, 814, 18, 18499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 2 ]
private void getImagesPerPage(int numSeis){ final int numOfSeis = numSeis; final JDialog dialog = new JDialog(); dialog.getContentPane().setLayout(new BorderLayout()); dialog.setTitle("Printing Options"); dialog.setModal(true); JLabel information = new JLabel("Seismograms per page: "); Integer[] numbers = new Integer[numOfSeis];//to initialize the combo box with correct values for(int i = 0; i < numOfSeis; i++){ numbers[i] = new Integer(i + 1); } final JComboBox options = new JComboBox(numbers); options.setEditable(true); options.setMaximumSize(options.getMinimumSize()); options.setPreferredSize(options.getMinimumSize()); if(numOfSeis < imagesPerPage){ imagesPerPage = numOfSeis; } options.setSelectedIndex(imagesPerPage-1); JButton next = new JButton("Next"); next.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ int currentNumber = ((Integer)options.getSelectedItem()).intValue(); if(currentNumber < 0){ JOptionPane.showMessageDialog(null, "The number of seismograms selected must be greater than 0", "Selected Too Few", JOptionPane.WARNING_MESSAGE); }else if(currentNumber > numOfSeis){ JOptionPane.showMessageDialog(null, "The number of seismograms selected must less than " + (numOfSeis + 1), "Selected Too Many", JOptionPane.WARNING_MESSAGE); }else{ setSeisPerPage(currentNumber); dialog.dispose(); } } }); JButton cancel = new JButton("Cancel"); cancel.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ dialog.dispose(); } }); JPanel north = new JPanel(new BorderLayout()); north.setBorder(EMPTY_BORDER); north.add(information, BorderLayout.WEST); north.add(options, BorderLayout.EAST); JPanel south = new JPanel(new BorderLayout()); south.setBorder(EMPTY_BORDER); south.add(cancel, BorderLayout.WEST); south.add(next, BorderLayout.EAST); dialog.getContentPane().add(north, BorderLayout.NORTH); dialog.getContentPane().add(south, BorderLayout.SOUTH); Toolkit tk = Toolkit.getDefaultToolkit(); dialog.setLocation(tk.getScreenSize().width/2, tk.getScreenSize().height/2); dialog.pack(); dialog.show(); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/28f35c2c75d1223fc89ecc9c4ce8c8df117095a9/SeismogramPDFBuilder.java/buggy/src/edu/sc/seis/fissuresUtil/display/SeismogramPDFBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 336, 8946, 13005, 12, 474, 818, 1761, 291, 15329, 3639, 727, 509, 23153, 1761, 291, 273, 818, 1761, 291, 31, 3639, 727, 804, 6353, 6176, 273, 394, 804, 6353, 5621, 3639, 6176, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 3639, 6176, 18, 542, 4247, 2932, 5108, 310, 5087, 8863, 3639, 6176, 18, 542, 20191, 12, 3767, 1769, 3639, 21403, 1779, 273, 394, 21403, 2932, 1761, 6228, 5553, 87, 1534, 1363, 30, 225, 315, 1769, 3639, 2144, 8526, 5600, 273, 394, 2144, 63, 2107, 951, 1761, 291, 15533, 759, 869, 4046, 326, 16778, 3919, 598, 3434, 924, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 23153, 1761, 291, 31, 277, 27245, 95, 5411, 5600, 63, 77, 65, 273, 394, 2144, 12, 77, 397, 404, 1769, 3639, 289, 3639, 727, 804, 22199, 702, 273, 394, 804, 22199, 12, 13851, 1769, 3639, 702, 18, 542, 15470, 12, 3767, 1769, 3639, 702, 18, 542, 13528, 1225, 12, 2116, 18, 588, 13042, 1225, 10663, 3639, 702, 18, 542, 16028, 1225, 12, 2116, 18, 588, 13042, 1225, 10663, 3639, 309, 12, 2107, 951, 1761, 291, 411, 4602, 13005, 15329, 5411, 4602, 13005, 273, 23153, 1761, 291, 31, 3639, 289, 3639, 702, 18, 542, 7416, 1016, 12, 7369, 13005, 17, 21, 1769, 3639, 28804, 1024, 273, 394, 28804, 2932, 2134, 8863, 3639, 1024, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 95, 10792, 1071, 918, 26100, 12, 1803, 1133, 425, 15329, 13491, 509, 783, 1854, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 8946, 13005, 12, 474, 818, 1761, 291, 15329, 3639, 727, 509, 23153, 1761, 291, 273, 818, 1761, 291, 31, 3639, 727, 804, 6353, 6176, 273, 394, 804, 6353, 5621, 3639, 6176, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 3639, 6176, 18, 542, 4247, 2932, 5108, 310, 5087, 8863, 3639, 6176, 18, 542, 20191, 12, 3767, 1769, 3639, 21403, 1779, 273, 394, 21403, 2932, 1761, 6228, 5553, 87, 1534, 1363, 30, 225, 315, 1769, 3639, 2144, 8526, 5600, 273, 394, 2144, 63, 2107, 951, 1761, 291, 15533, 759, 869, 4046, 326, 16778, 3919, 598, 3434, 924, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 23153, 1761, 291, 31, 277, 27245, 2 ]
final Element element = view.getElement(); if (pos < element.getStartOffset() || pos > element.getEndOffset()) {
if (pos < view.getStartOffset() || pos > view.getEndOffset()) {
public static void isPositionValid(final View view, final int pos) throws BadLocationException { final Element element = view.getElement(); if (pos < element.getStartOffset() || pos > element.getEndOffset()) { throw new BadLocationException(pos + " not in range " + element.getStartOffset() + "," + element.getEndOffset(), pos); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/TextUtils.java/buggy/modules/awt/src/main/java/common/org/apache/harmony/awt/text/TextUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 353, 2555, 1556, 12, 6385, 4441, 1476, 16, 727, 509, 949, 13, 3639, 1216, 6107, 2735, 503, 288, 3639, 727, 3010, 930, 273, 1476, 18, 21336, 5621, 3639, 309, 261, 917, 411, 930, 18, 588, 1685, 2335, 1435, 747, 949, 405, 930, 18, 588, 1638, 2335, 10756, 288, 5411, 604, 394, 6107, 2735, 503, 12, 917, 397, 315, 486, 316, 1048, 315, 4766, 6647, 397, 930, 18, 588, 1685, 2335, 1435, 397, 5753, 4766, 6647, 397, 930, 18, 588, 1638, 2335, 9334, 949, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 353, 2555, 1556, 12, 6385, 4441, 1476, 16, 727, 509, 949, 13, 3639, 1216, 6107, 2735, 503, 288, 3639, 727, 3010, 930, 273, 1476, 18, 21336, 5621, 3639, 309, 261, 917, 411, 930, 18, 588, 1685, 2335, 1435, 747, 949, 405, 930, 18, 588, 1638, 2335, 10756, 288, 5411, 604, 394, 6107, 2735, 503, 12, 917, 397, 315, 486, 316, 1048, 315, 4766, 6647, 397, 930, 18, 588, 1685, 2335, 1435, 397, 5753, 4766, 6647, 397, 930, 18, 588, 1638, 2335, 9334, 949, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ValueNumber replaceMe, ValueNumberFrame prevVnaFrame, ValueNumberFrame targetVnaFrame, IsNullValue replacementValue) {
ValueNumber replaceMe, ValueNumberFrame prevVnaFrame, ValueNumberFrame targetVnaFrame, IsNullValue replacementValue) {
private IsNullValueFrame replaceValues(IsNullValueFrame origFrame, IsNullValueFrame frame, ValueNumber replaceMe, ValueNumberFrame prevVnaFrame, ValueNumberFrame targetVnaFrame, IsNullValue replacementValue) { // If required, make a copy of the frame frame = modifyFrame(origFrame, frame); assert frame.getNumSlots() == targetVnaFrame.getNumSlots(); // The VNA frame may have more slots than the IsNullValueFrame // if it was produced by an IF comparison (whose operand or operands // are subsequently popped off the stack). final int targetNumSlots = targetVnaFrame.getNumSlots(); final int prefixNumSlots = Math.min(frame.getNumSlots(), prevVnaFrame.getNumSlots()); // Here's the deal: // - "replaceMe" is the value number from the previous frame (at the if branch) // which indicates a value that we have updated is-null information about // - in the target value number frame (at entry to the target block), // we find the value number in the stack slot corresponding to the "replaceMe" // value; this is the "corresponding" value // - all instances of the "corresponding" value in the target frame have // their is-null information updated to "replacementValue" // This should thoroughly make use of the updated information. for (int i = 0; i < prefixNumSlots; ++i) { if (prevVnaFrame.getValue(i).equals(replaceMe)) { ValueNumber corresponding = targetVnaFrame.getValue(i); for (int j = 0; j < targetNumSlots; ++j) { if (targetVnaFrame.getValue(j).equals(corresponding)) frame.setValue(j, replacementValue); } } } return frame; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/IsNullValueAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/IsNullValueAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 30230, 620, 3219, 1453, 1972, 12, 2520, 2041, 620, 3219, 1647, 3219, 16, 30230, 620, 3219, 2623, 16, 202, 202, 620, 1854, 1453, 4667, 16, 1445, 1854, 3219, 2807, 58, 6582, 3219, 16, 1445, 1854, 3219, 1018, 58, 6582, 3219, 16, 30230, 620, 6060, 620, 13, 288, 202, 202, 759, 971, 1931, 16, 1221, 279, 1610, 434, 326, 2623, 202, 202, 3789, 273, 5612, 3219, 12, 4949, 3219, 16, 2623, 1769, 202, 202, 11231, 2623, 18, 588, 2578, 16266, 1435, 422, 1018, 58, 6582, 3219, 18, 588, 2578, 16266, 5621, 202, 202, 759, 1021, 776, 11277, 2623, 2026, 1240, 1898, 12169, 2353, 326, 30230, 620, 3219, 202, 202, 759, 309, 518, 1703, 14929, 635, 392, 11083, 5826, 261, 3350, 2584, 9886, 578, 14883, 202, 202, 759, 854, 10815, 715, 30766, 3397, 326, 2110, 2934, 202, 202, 6385, 509, 1018, 2578, 16266, 273, 1018, 58, 6582, 3219, 18, 588, 2578, 16266, 5621, 202, 202, 6385, 509, 1633, 2578, 16266, 273, 2361, 18, 1154, 12, 3789, 18, 588, 2578, 16266, 9334, 2807, 58, 6582, 3219, 18, 588, 2578, 16266, 10663, 202, 202, 759, 13743, 1807, 326, 10490, 30, 202, 202, 759, 300, 315, 2079, 4667, 6, 353, 326, 460, 1300, 628, 326, 2416, 2623, 261, 270, 326, 309, 3803, 13, 202, 202, 759, 282, 1492, 8527, 279, 460, 716, 732, 1240, 3526, 353, 17, 2011, 1779, 2973, 202, 202, 759, 300, 316, 326, 1018, 460, 1300, 2623, 261, 270, 1241, 358, 326, 1018, 1203, 3631, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30230, 620, 3219, 1453, 1972, 12, 2520, 2041, 620, 3219, 1647, 3219, 16, 30230, 620, 3219, 2623, 16, 202, 202, 620, 1854, 1453, 4667, 16, 1445, 1854, 3219, 2807, 58, 6582, 3219, 16, 1445, 1854, 3219, 1018, 58, 6582, 3219, 16, 30230, 620, 6060, 620, 13, 288, 202, 202, 759, 971, 1931, 16, 1221, 279, 1610, 434, 326, 2623, 202, 202, 3789, 273, 5612, 3219, 12, 4949, 3219, 16, 2623, 1769, 202, 202, 11231, 2623, 18, 588, 2578, 16266, 1435, 422, 1018, 58, 6582, 3219, 18, 588, 2578, 16266, 5621, 202, 202, 759, 1021, 776, 11277, 2623, 2026, 1240, 1898, 12169, 2353, 326, 30230, 620, 3219, 202, 202, 759, 309, 518, 1703, 14929, 635, 392, 11083, 2 ]
if (workspaces.containsKey(wsID)) {
if (workspaces.containsKey(tsID)) {
private void updateWorkspaces(HashMap<String, String> workspaces, IProgressMonitor monitor) { monitor.setTaskName("Synchronizing workspaces ..."); // init SVN types svnClient.username(client.getOptions() .getProperty(MindClient.LOGIN_KEY)); svnClient.password(client.getOptions().getProperty( MindClient.PASSWORD_KEY)); // get directory for workspaces File workspacesDir = new File(RegUtil.getMyDocumentsFolder()); if (!workspacesDir.exists()) { workspacesDir.mkdir(); } // loop existing workspace directories for (String wsID : workspacesDir.list()) { if (monitor.isCanceled()) { return; } // loop received workspace items if (workspaces.containsKey(wsID)) { // remove entry from workspace list workspaces.remove(wsID); // TODO check if folder is under version control // update workspace monitor.setTaskName("Synchronizing workspace " + wsID + " ..."); //$NON-NLS-2$ updateWorkspace(new File(workspacesDir.getAbsolutePath() + "/" + wsID)); //$NON-NLS-1$ } } // add additional workspace directories for (String wsID : workspaces.keySet()) { if (monitor.isCanceled()) { return; } // create directory for the new workspace File newWorkspaceDir = new File(workspacesDir.getAbsolutePath() + "/" + wsID); //$NON-NLS-1$ newWorkspaceDir.mkdir(); monitor.setTaskName("Synchronizing workspace " + wsID + " ..."); //$NON-NLS-2$ checkoutWorkspace(workspaces.get(wsID), newWorkspaceDir); } }
56092 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56092/342bd7a7a095bd5a16ec8a6a35cf2518abb23433/SynchronizeOperation.java/clean/src/main/java/com/mindquarry/client/workspace/SynchronizeOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 22287, 12, 8658, 32, 780, 16, 514, 34, 23527, 16, 5411, 467, 5491, 7187, 6438, 13, 288, 3639, 6438, 18, 542, 2174, 461, 2932, 19298, 6894, 23527, 1372, 8863, 3639, 368, 1208, 29537, 50, 1953, 3639, 5893, 82, 1227, 18, 5053, 12, 2625, 18, 588, 1320, 1435, 7734, 263, 588, 1396, 12, 49, 728, 1227, 18, 19022, 67, 3297, 10019, 3639, 5893, 82, 1227, 18, 3664, 12, 2625, 18, 588, 1320, 7675, 588, 1396, 12, 7734, 490, 728, 1227, 18, 13784, 67, 3297, 10019, 3639, 368, 336, 1867, 364, 23527, 3639, 1387, 23527, 1621, 273, 394, 1387, 12, 1617, 1304, 18, 588, 12062, 12922, 3899, 10663, 3639, 309, 16051, 1252, 9554, 1621, 18, 1808, 10756, 288, 5411, 23527, 1621, 18, 26686, 5621, 3639, 289, 3639, 368, 2798, 2062, 6003, 6402, 3639, 364, 261, 780, 4945, 734, 294, 23527, 1621, 18, 1098, 10756, 288, 5411, 309, 261, 10259, 18, 291, 23163, 10756, 288, 7734, 327, 31, 5411, 289, 5411, 368, 2798, 5079, 6003, 1516, 5411, 309, 261, 1252, 9554, 18, 12298, 653, 12, 3428, 734, 3719, 288, 7734, 368, 1206, 1241, 628, 6003, 666, 7734, 23527, 18, 4479, 12, 4749, 734, 1769, 7734, 368, 2660, 866, 309, 3009, 353, 3613, 1177, 3325, 7734, 368, 1089, 6003, 7734, 6438, 18, 542, 2174, 461, 2932, 19298, 6894, 6003, 315, 397, 4945, 734, 397, 315, 1372, 8863, 4329, 3993, 17, 5106, 17, 22, 8, 7734, 1089, 8241, 12, 2704, 1387, 12, 1252, 9554, 1621, 18, 588, 10368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 22287, 12, 8658, 32, 780, 16, 514, 34, 23527, 16, 5411, 467, 5491, 7187, 6438, 13, 288, 3639, 6438, 18, 542, 2174, 461, 2932, 19298, 6894, 23527, 1372, 8863, 3639, 368, 1208, 29537, 50, 1953, 3639, 5893, 82, 1227, 18, 5053, 12, 2625, 18, 588, 1320, 1435, 7734, 263, 588, 1396, 12, 49, 728, 1227, 18, 19022, 67, 3297, 10019, 3639, 5893, 82, 1227, 18, 3664, 12, 2625, 18, 588, 1320, 7675, 588, 1396, 12, 7734, 490, 728, 1227, 18, 13784, 67, 3297, 10019, 3639, 368, 336, 1867, 364, 23527, 3639, 1387, 23527, 1621, 273, 394, 1387, 12, 1617, 1304, 18, 588, 12062, 12922, 3899, 10663, 3639, 309, 16051, 1252, 9554, 1621, 18, 1808, 10756, 2 ]
Object returnValue = super.getPropertyValue(key);
Object returnValue = (key.equals(IBasicPropertyConstants.P_TEXT)) ? TextProcessor .process(element.getName()) : super.getPropertyValue(key);
public Object getPropertyValue(Object key) { Object returnValue = super.getPropertyValue(key); if (returnValue != null) { return returnValue; } if (key.equals(IResourcePropertyConstants.P_SIZE_RES)) { return getSizeString((IFile) element); } return null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a1ca365a318b96e23065f4e725ff1528454d7642/FilePropertySource.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/FilePropertySource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 21694, 12, 921, 498, 13, 288, 4202, 1033, 7750, 273, 261, 856, 18, 14963, 12, 45, 8252, 1396, 2918, 18, 52, 67, 5151, 3719, 692, 3867, 5164, 263, 2567, 12, 2956, 18, 17994, 10756, 294, 2240, 18, 588, 16107, 12, 856, 1769, 3639, 309, 261, 2463, 620, 480, 446, 13, 288, 1082, 202, 2463, 7750, 31, 202, 202, 97, 3639, 309, 261, 856, 18, 14963, 12, 45, 1420, 1396, 2918, 18, 52, 67, 4574, 67, 7031, 3719, 288, 1082, 202, 2463, 9950, 780, 12443, 45, 812, 13, 930, 1769, 202, 202, 97, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 21694, 12, 921, 498, 13, 288, 4202, 1033, 7750, 273, 261, 856, 18, 14963, 12, 45, 8252, 1396, 2918, 18, 52, 67, 5151, 3719, 692, 3867, 5164, 263, 2567, 12, 2956, 18, 17994, 10756, 294, 2240, 18, 588, 16107, 12, 856, 1769, 3639, 309, 261, 2463, 620, 480, 446, 13, 288, 1082, 202, 2463, 7750, 31, 202, 202, 97, 3639, 309, 261, 856, 18, 14963, 12, 45, 1420, 1396, 2918, 18, 52, 67, 4574, 67, 7031, 3719, 288, 1082, 202, 2463, 9950, 780, 12443, 45, 812, 13, 930, 1769, 202, 202, 97, 3639, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
readers[i] = new DataInputStream(buckets[i].getInputStream()); } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i] = buckets[i+k].getOutputStream(); toEncode[numberToEncode++] = i+k; } else { writers[i] = null; } } if(numberToEncode > 0) { for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { for(int i=0;i<k;i++) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } long startTime = System.currentTimeMillis(); code.encode(dataPackets, checkPackets, toEncode); long endTime = System.currentTimeMillis(); Logger.minor(this, "Stripe encode took "+(endTime-startTime)+" ms for k="+k+", n="+n+", stripeSize="+STRIPE_SIZE); for(int i=k;i<n;i++) { if(writers[i-k] != null) writers[i-k].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE);
for (int i = 0; i < checkBlockStatus.length; i++) { buckets[i + k] = checkBlockStatus[i].getData(); if (buckets[i + k] == null) { buckets[i + k] = bf.makeBucket(blockLength); writers[i] = buckets[i + k].getOutputStream(); toEncode[numberToEncode++] = i + k; } else { writers[i] = null;
private void realEncode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { System.err.println("************* Encoding "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); Logger.minor(this, "Doing encode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] dataPackets = new Buffer[k]; Buffer[] checkPackets = new Buffer[n-k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[n-k]; int[] toEncode = new int[n-k]; int numberToEncode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for(int i=0;i<k;i++) dataPackets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<n-k;i++) checkPackets[i] = new Buffer(realBuffer, (i+k)*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } readers[i] = new DataInputStream(buckets[i].getInputStream()); } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i] = buckets[i+k].getOutputStream(); toEncode[numberToEncode++] = i+k; } else { writers[i] = null; } } if(numberToEncode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<k;i++) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } // Do the encode // Not shuffled long startTime = System.currentTimeMillis(); code.encode(dataPackets, checkPackets, toEncode); long endTime = System.currentTimeMillis(); Logger.minor(this, "Stripe encode took "+(endTime-startTime)+" ms for k="+k+", n="+n+", stripeSize="+STRIPE_SIZE); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=k;i<n;i++) { if(writers[i-k] != null) writers[i-k].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<k;i++) if(readers[i] != null) readers[i].close(); for(int i=0;i<n-k;i++) if(writers[i] != null) writers[i].close(); // Set new buckets only after have a successful decode. for(int i=0;i<checkBlockStatus.length;i++) { Bucket data = buckets[i+k]; if(data == null) throw new NullPointerException(); checkBlockStatus[i].setData(data); } System.err.println("************* Encoded "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/fbdde7654afdefd24ae4365520a38c1c680248a7/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2863, 5509, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1644, 23490, 13400, 13773, 892, 1768, 1482, 18, 2469, 9078, 317, 13773, 1893, 1768, 1482, 18, 2469, 9078, 380, 1644, 1007, 8863, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2017, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 18, 2469, 480, 290, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 480, 417, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 1892, 8526, 501, 27328, 273, 394, 3525, 63, 79, 15533, 202, 202, 1892, 8526, 866, 27328, 273, 394, 3525, 63, 82, 17, 79, 15533, 202, 202, 4103, 8526, 9169, 273, 394, 7408, 63, 82, 15533, 202, 202, 751, 4348, 8526, 16527, 273, 394, 29382, 63, 79, 15533, 202, 202, 4632, 8526, 18656, 273, 394, 8962, 63, 82, 17, 79, 15533, 202, 202, 474, 8526, 358, 5509, 273, 394, 509, 63, 82, 17, 79, 15533, 202, 202, 474, 1300, 774, 5509, 273, 374, 31, 368, 848, 506, 5242, 2353, 290, 17, 79, 9506, 202, 7229, 8526, 2863, 1892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2863, 5509, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1644, 23490, 13400, 13773, 892, 1768, 1482, 18, 2469, 9078, 317, 13773, 1893, 1768, 1482, 18, 2469, 9078, 380, 1644, 1007, 8863, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2017, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 2 ]
if (getContentProvider() instanceof NavigatorContentProvider)
if (getContentProvider() instanceof SafeDelegateTreeContentProvider)
public ICommonLabelProvider getLabelProvider() { if (labelProvider != null || labelProviderInitializationFailed) return labelProvider; synchronized (this) { try { if (labelProvider == null) { ILabelProvider tempLabelProvider = descriptor .createLabelProvider(); if (tempLabelProvider instanceof ICommonLabelProvider) { labelProvider = (ICommonLabelProvider) tempLabelProvider; if (getContentProvider() instanceof NavigatorContentProvider) labelProvider .init( getStateModel(), ((NavigatorContentProvider) getContentProvider()) .getDelegateContentProvider()); else labelProvider.init(getStateModel(), SkeletonTreeContentProvider.INSTANCE); } else { labelProvider = new DelegateCommonLabelProvider( tempLabelProvider); } } } catch (CoreException e) { labelProviderInitializationFailed = true; e.printStackTrace(); } catch (RuntimeException e) { labelProviderInitializationFailed = true; e.printStackTrace(); } if (labelProviderInitializationFailed) labelProvider = SkeletonLabelProvider.INSTANCE; } return labelProvider; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c93d807ed962723d90daba76fc2003e2c1801cbc/NavigatorContentExtension.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/NavigatorContentExtension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6517, 2224, 2249, 11237, 2249, 1435, 288, 202, 202, 430, 261, 1925, 2249, 480, 446, 747, 1433, 2249, 17701, 2925, 13, 1082, 202, 2463, 1433, 2249, 31, 202, 202, 22043, 261, 2211, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 1925, 2249, 422, 446, 13, 288, 6862, 202, 45, 2224, 2249, 1906, 2224, 2249, 273, 4950, 6862, 1082, 202, 18, 2640, 2224, 2249, 5621, 6862, 202, 430, 261, 5814, 2224, 2249, 1276, 467, 6517, 2224, 2249, 13, 288, 25083, 202, 1925, 2249, 273, 261, 45, 6517, 2224, 2249, 13, 1906, 2224, 2249, 31, 25083, 202, 430, 261, 588, 1350, 2249, 1435, 1276, 423, 13061, 1350, 2249, 13, 6862, 1082, 202, 1925, 2249, 6862, 6862, 202, 18, 2738, 12, 6862, 6862, 1082, 202, 588, 1119, 1488, 9334, 6862, 6862, 1082, 202, 12443, 22817, 1350, 2249, 13, 5154, 2249, 10756, 6862, 6862, 6862, 202, 18, 588, 9586, 1350, 2249, 10663, 25083, 202, 12107, 6862, 1082, 202, 1925, 2249, 18, 2738, 12, 588, 1119, 1488, 9334, 6862, 6862, 202, 28070, 2471, 1350, 2249, 18, 13341, 1769, 6862, 202, 97, 469, 288, 25083, 202, 1925, 2249, 273, 394, 27687, 6517, 2224, 2249, 12, 6862, 9506, 202, 5814, 2224, 2249, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1044, 261, 25341, 425, 13, 288, 9506, 202, 1925, 2249, 17701, 2925, 273, 638, 31, 9506, 202, 73, 18, 1188, 6332, 5621, 1082, 202, 97, 1044, 261, 11949, 425, 13, 288, 9506, 202, 1925, 2249, 17701, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6517, 2224, 2249, 11237, 2249, 1435, 288, 202, 202, 430, 261, 1925, 2249, 480, 446, 747, 1433, 2249, 17701, 2925, 13, 1082, 202, 2463, 1433, 2249, 31, 202, 202, 22043, 261, 2211, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 1925, 2249, 422, 446, 13, 288, 6862, 202, 45, 2224, 2249, 1906, 2224, 2249, 273, 4950, 6862, 1082, 202, 18, 2640, 2224, 2249, 5621, 6862, 202, 430, 261, 5814, 2224, 2249, 1276, 467, 6517, 2224, 2249, 13, 288, 25083, 202, 1925, 2249, 273, 261, 45, 6517, 2224, 2249, 13, 1906, 2224, 2249, 31, 25083, 202, 430, 261, 588, 1350, 2249, 1435, 1276, 423, 13061, 1350, 2249, 13, 6862, 1082, 202, 1925, 2249, 6862, 2 ]
addJob("I'm the local baker. But since the road to Ados is blocked, we don't get many orders, so I also #make sandwiches for our valuable customers."); addReply("bread", "Didn't you talk to Erna? She is responsible for giving bread to our customers."); addReply("cheese", "Cheese is a bit hard to find in Semos, since we have a rat plague. I wonder where those critters take it to."); addReply("ham", "You look like a skilled hunter. Why don't you go to the nearby forests and hunt deers? But don't bring me meat - I only make sandwiches from high quality ham!"); addHelp("Do you know my daughter Sally? She's a scout; I think she's currently camping south of Orril castle. Maybe she can help you to get ham."); addGoodbye();
addJob("I'm the local baker. We used to get a lot of orders from Ados before the war broke out and they blocked the road. At least it gives me more time to #make sandwiches for out valuable customers; everybody says they're great!"); addReply("bread", "Oh, Erna handles that side of the business; just go over and talk to her."); addReply("cheese", "Cheese is pretty hard to find at the minute, we had a big rat infestation recently. I wonder where the little rodents took it all to?"); addReply("ham", "Well, you look like a skilled hunter; why not go to the forest and hunt some up fresh? Don't bring me those little pieces of meat, though... I only make sandwiches from high quality ham!"); addHelp("My daughter Sally might be able to help you get ham. She's a scout, you see; I think she's currently camped out south of Or'ril Castle."); addGoodbye();
private void buildSemosBakeryArea(StendhalRPZone zone) { Portal portal = new Portal(); zone.assignRPObjectID(portal); portal.setX(26); portal.setY(14); portal.setNumber(0); portal.setDestination("0_semos_city", 10); zone.addPortal(portal); SpeakerNPC erna = new SpeakerNPC("Erna") { @Override protected void createPath() { List<Path.Node> nodes = new LinkedList<Path.Node>(); nodes.add(new Path.Node(26, 8)); nodes.add(new Path.Node(26, 5)); nodes.add(new Path.Node(28, 5)); nodes.add(new Path.Node(28, 1)); nodes.add(new Path.Node(28, 4)); nodes.add(new Path.Node(22, 4)); nodes.add(new Path.Node(22, 3)); nodes.add(new Path.Node(22, 6)); nodes.add(new Path.Node(26, 6)); setPath(nodes, true); } @Override protected void createDialog() { addJob("I'm the shop assistant at this bakery."); addReply("flour", "We usually get our flour from a mill northeast of here. If you bring us some, we can make bread for you."); addHelp("Bread is very healthy. And my colleague Leander can make tasty sandwiches from it."); addGoodbye(); // Erna bakes bread if you bring her flour. Map<String, Integer> requiredResources = new HashMap<String, Integer>(); requiredResources.put("flour", new Integer(2)); ProducerBehaviour behaviour = new ProducerBehaviour( "erna_bake_bread", "bake", "bread", requiredResources, 10 * 60); addProducer(behaviour, "Welcome to the Semos bakery. We #bake fine bread for everyone who brings us #flour."); } }; npcs.add(erna); zone.assignRPObjectID(erna); erna.put("class", "housewifenpc"); erna.set(26, 8); erna.initHP(100); zone.addNPC(erna); SpeakerNPC leander = new SpeakerNPC("Leander") { @Override protected void createPath() { List<Path.Node> nodes = new LinkedList<Path.Node>(); // to the well nodes.add(new Path.Node(15, 2)); // to a barrel nodes.add(new Path.Node(15, 7)); // to the baguette on the table nodes.add(new Path.Node(13, 7)); // around the table nodes.add(new Path.Node(13, 9)); nodes.add(new Path.Node(10, 9)); // to the sink nodes.add(new Path.Node(10, 11)); // to the pizza/cake/whatever nodes.add(new Path.Node(7, 11)); nodes.add(new Path.Node(7, 9)); // to the pot nodes.add(new Path.Node(3, 9)); // towards the oven nodes.add(new Path.Node(3, 3)); nodes.add(new Path.Node(5, 3)); // to the oven nodes.add(new Path.Node(5, 2)); // one step back nodes.add(new Path.Node(5, 3)); // towards the well nodes.add(new Path.Node(15, 3)); setPath(nodes, true); } @Override protected void createDialog() { addJob("I'm the local baker. But since the road to Ados is blocked, we don't get many orders, so I also #make sandwiches for our valuable customers."); addReply("bread", "Didn't you talk to Erna? She is responsible for giving bread to our customers."); addReply("cheese", "Cheese is a bit hard to find in Semos, since we have a rat plague. I wonder where those critters take it to."); addReply("ham", "You look like a skilled hunter. Why don't you go to the nearby forests and hunt deers? But don't bring me meat - I only make sandwiches from high quality ham!"); addHelp("Do you know my daughter Sally? She's a scout; I think she's currently camping south of Orril castle. Maybe she can help you to get ham."); addGoodbye(); // Leander makes sandwiches if you bring him bread, cheese, and ham. Map<String, Integer> requiredResources = new HashMap<String, Integer>(); requiredResources.put("bread", new Integer(1)); requiredResources.put("cheese", new Integer(2)); requiredResources.put("ham", new Integer(1)); ProducerBehaviour behaviour = new ProducerBehaviour( "leander_make_sandwiches", "make", "sandwich", requiredResources, 3 * 60); addProducer(behaviour, "Hallo! I guess you have come because you want me to #make sandwiches for you."); } }; npcs.add(leander); zone.assignRPObjectID(leander); leander.put("class", "chefnpc"); leander.setDirection(Direction.DOWN); leander.set(15, 2); leander.initHP(100); zone.addNPC(leander); Chest chest = new NPCOwnedChest(erna); zone.assignRPObjectID(chest); chest.set(29, 6); zone.add(chest); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/f905cd9146303a879199c22689291c46fea4477c/SemosCityInside.java/clean/src/games/stendhal/server/maps/semos/SemosCityInside.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 13185, 538, 38, 581, 627, 5484, 12, 510, 409, 22314, 54, 52, 4226, 4157, 13, 288, 202, 202, 24395, 11899, 273, 394, 25478, 5621, 202, 202, 3486, 18, 6145, 54, 52, 22359, 12, 24386, 1769, 202, 202, 24386, 18, 542, 60, 12, 5558, 1769, 202, 202, 24386, 18, 542, 61, 12, 3461, 1769, 202, 202, 24386, 18, 542, 1854, 12, 20, 1769, 202, 202, 24386, 18, 542, 5683, 2932, 20, 67, 12000, 538, 67, 14240, 3113, 1728, 1769, 202, 202, 3486, 18, 1289, 24395, 12, 24386, 1769, 202, 202, 55, 347, 6388, 50, 3513, 6445, 6582, 273, 394, 348, 347, 6388, 50, 3513, 2932, 29228, 6582, 7923, 288, 1082, 202, 36, 6618, 1082, 202, 1117, 918, 752, 743, 1435, 288, 9506, 202, 682, 32, 743, 18, 907, 34, 2199, 273, 394, 10688, 32, 743, 18, 907, 34, 5621, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 5558, 16, 1725, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 5558, 16, 1381, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 6030, 16, 1381, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 6030, 16, 404, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 6030, 16, 1059, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 3787, 16, 1059, 10019, 9506, 202, 4690, 18, 1289, 12, 2704, 2666, 18, 907, 12, 3787, 16, 890, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13185, 538, 38, 581, 627, 5484, 12, 510, 409, 22314, 54, 52, 4226, 4157, 13, 288, 202, 202, 24395, 11899, 273, 394, 25478, 5621, 202, 202, 3486, 18, 6145, 54, 52, 22359, 12, 24386, 1769, 202, 202, 24386, 18, 542, 60, 12, 5558, 1769, 202, 202, 24386, 18, 542, 61, 12, 3461, 1769, 202, 202, 24386, 18, 542, 1854, 12, 20, 1769, 202, 202, 24386, 18, 542, 5683, 2932, 20, 67, 12000, 538, 67, 14240, 3113, 1728, 1769, 202, 202, 3486, 18, 1289, 24395, 12, 24386, 1769, 202, 202, 55, 347, 6388, 50, 3513, 6445, 6582, 273, 394, 348, 347, 6388, 50, 3513, 2932, 29228, 6582, 7923, 288, 1082, 202, 36, 6618, 1082, 202, 2 ]
while (i.hasNext()) { num_fields++; Field f=(Field)i.next();
while (i.hasNext()) { num_fields++; Field f = (Field) i.next();
public void completeHeader(HttpFields fields, boolean allContentAdded) throws IOException { if (_state!=STATE_HEADER) return; if (_last&&!allContentAdded) throw new IllegalStateException("last?"); _last=_last|allContentAdded; boolean has_server=false; if (_version==HttpVersions.HTTP_1_0_ORDINAL) _close=true; // get a header buffer if (_header==null) _header=_buffers.getBuffer(_headerBufferSize); Buffer tmpbuf=_buffer; _buffer=_header; try { // start the header _buffer.put((byte)'A'); _buffer.put((byte)'B'); addInt(0); _buffer.put((byte)0x4); addInt(_status); if (_reason==null) _reason=getReasonBuffer(_status); if (_reason==null) _reason=new ByteArrayBuffer(TypeUtil.toString(_status)); addBuffer(_reason); if (_status==100||_status==204||_status==304) { _noContent=true; _content=null; } // allocate 2 bytes for number of headers int field_index=_buffer.putIndex(); addInt(0); // Add headers Iterator i=fields.getFields(); int num_fields=0; while (i.hasNext()) { num_fields++; Field f=(Field)i.next(); byte[] codes=(byte[])__headerHash.get(f.getName()); if (codes!=null) { _buffer.put(codes); } else { addString(f.getName()); } addString(f.getValue()); } if (!has_server&&_status>100&&getSendServerVersion()) { num_fields++; addString("Server"); addString(SERVER); } // TODO Add content length if last content known. // insert the number of headers int tmp=_buffer.putIndex(); _buffer.setPutIndex(field_index); addInt(num_fields); _buffer.setPutIndex(tmp); // get the payload size ( - 4 bytes for the ajp header) // excluding the // ajp header int payloadSize=_buffer.length()-4; // insert the total packet size on 2nd and 3rd byte that // was previously // allocated addInt(2,payloadSize); } finally { _buffer=tmpbuf; } _state=STATE_CONTENT; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/b19f540b47523f4ad2c831b94ae789899c86bb18/Ajp13Generator.java/clean/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Generator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3912, 1864, 12, 2940, 2314, 1466, 16, 1250, 777, 1350, 8602, 13, 1216, 1860, 565, 288, 3639, 309, 261, 67, 2019, 5, 33, 7998, 67, 7557, 13, 5411, 327, 31, 3639, 309, 261, 67, 2722, 10, 10, 5, 454, 1350, 8602, 13, 5411, 604, 394, 5477, 2932, 2722, 7225, 1769, 3639, 389, 2722, 33, 67, 2722, 96, 454, 1350, 8602, 31, 3639, 1250, 711, 67, 3567, 33, 5743, 31, 3639, 309, 261, 67, 1589, 631, 2940, 5940, 18, 3693, 67, 21, 67, 20, 67, 916, 21329, 1013, 13, 5411, 389, 4412, 33, 3767, 31, 3639, 368, 336, 279, 1446, 1613, 3639, 309, 261, 67, 3374, 631, 2011, 13, 5411, 389, 3374, 33, 67, 28101, 18, 588, 1892, 24899, 3374, 15384, 1769, 3639, 3525, 1853, 4385, 33, 67, 4106, 31, 3639, 389, 4106, 33, 67, 3374, 31, 3639, 775, 3639, 288, 5411, 368, 787, 326, 1446, 5411, 389, 4106, 18, 458, 12443, 7229, 2506, 37, 8284, 5411, 389, 4106, 18, 458, 12443, 7229, 2506, 38, 8284, 5411, 527, 1702, 12, 20, 1769, 5411, 389, 4106, 18, 458, 12443, 7229, 13, 20, 92, 24, 1769, 5411, 527, 1702, 24899, 2327, 1769, 5411, 309, 261, 67, 10579, 631, 2011, 13, 7734, 389, 10579, 33, 588, 8385, 1892, 24899, 2327, 1769, 5411, 309, 261, 67, 10579, 631, 2011, 13, 7734, 389, 10579, 33, 2704, 7964, 1892, 12, 559, 1304, 18, 10492, 24899, 2327, 10019, 5411, 527, 1892, 24899, 10579, 1769, 5411, 309, 261, 67, 2327, 631, 6625, 20081, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3912, 1864, 12, 2940, 2314, 1466, 16, 1250, 777, 1350, 8602, 13, 1216, 1860, 565, 288, 3639, 309, 261, 67, 2019, 5, 33, 7998, 67, 7557, 13, 5411, 327, 31, 3639, 309, 261, 67, 2722, 10, 10, 5, 454, 1350, 8602, 13, 5411, 604, 394, 5477, 2932, 2722, 7225, 1769, 3639, 389, 2722, 33, 67, 2722, 96, 454, 1350, 8602, 31, 3639, 1250, 711, 67, 3567, 33, 5743, 31, 3639, 309, 261, 67, 1589, 631, 2940, 5940, 18, 3693, 67, 21, 67, 20, 67, 916, 21329, 1013, 13, 5411, 389, 4412, 33, 3767, 31, 3639, 368, 336, 279, 1446, 1613, 3639, 309, 261, 67, 3374, 631, 2011, 13, 5411, 389, 3374, 33, 67, 28101, 18, 588, 2 ]
public Object getValue( Object object )
public Object getValue( Object object )
public ParamDescriptor() { super(); nsURI = "http://castor.exolab.org/"; xmlName = "param"; XMLFieldDescriptorImpl desc = null; XMLFieldHandler handler = null; FieldValidator fieldValidator = null; //-- initialize attribute descriptors //-- _name desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { Param target = (Param) object; return target.getName(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { Param target = (Param) object; target.setName( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); desc.setRequired(true); addFieldDescriptor(desc); //-- validation code for: _name fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(1); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- _value desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_value", "value", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { Param target = (Param) object; return target.getValue(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { Param target = (Param) object; target.setValue( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); desc.setRequired(true); addFieldDescriptor(desc); //-- validation code for: _value fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(1); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- initialize element descriptors } //-- org.exolab.castor.mapping.xml.ParamDescriptor()
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/d7fabc686ef68f29e8236fd9afc60109670d1fd4/ParamDescriptor.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/xml/ParamDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3014, 3187, 1435, 288, 3639, 2240, 5621, 3639, 3153, 3098, 273, 315, 2505, 2207, 4155, 280, 18, 338, 355, 378, 18, 3341, 4898, 31, 3639, 2025, 461, 273, 315, 891, 14432, 3639, 3167, 974, 3187, 2828, 225, 3044, 6647, 273, 446, 31, 3639, 3167, 974, 1503, 540, 1838, 3639, 273, 446, 31, 3639, 2286, 5126, 1850, 652, 5126, 273, 446, 31, 3639, 368, 413, 4046, 1566, 14215, 7734, 368, 413, 389, 529, 3639, 3044, 273, 394, 3167, 974, 3187, 2828, 12, 6290, 18, 4936, 18, 780, 18, 1106, 16, 4192, 529, 3113, 315, 529, 3113, 20896, 18, 1499, 1769, 3639, 3044, 18, 542, 16014, 12, 3767, 1769, 3639, 1838, 273, 261, 2704, 3167, 974, 1503, 1435, 288, 5411, 1071, 1033, 2366, 12, 1033, 733, 262, 1171, 1216, 5477, 5411, 288, 7734, 3014, 1018, 273, 261, 786, 13, 733, 31, 7734, 327, 1018, 18, 17994, 5621, 5411, 289, 5411, 1071, 918, 5524, 12, 1033, 733, 16, 1033, 460, 13, 1171, 1216, 5477, 16, 2754, 5411, 288, 7734, 775, 288, 10792, 3014, 1018, 273, 261, 786, 13, 733, 31, 10792, 1018, 18, 542, 461, 12, 261, 6290, 18, 4936, 18, 780, 13, 460, 1769, 7734, 289, 7734, 1044, 261, 503, 431, 13, 288, 10792, 604, 394, 5477, 12, 338, 18, 10492, 10663, 7734, 289, 5411, 289, 5411, 1071, 1033, 5984, 12, 1033, 982, 262, 288, 7734, 327, 446, 31, 5411, 289, 3639, 289, 11272, 3639, 3044, 18, 542, 1503, 12, 4176, 1769, 3639, 3044, 18, 542, 26857, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3014, 3187, 1435, 288, 3639, 2240, 5621, 3639, 3153, 3098, 273, 315, 2505, 2207, 4155, 280, 18, 338, 355, 378, 18, 3341, 4898, 31, 3639, 2025, 461, 273, 315, 891, 14432, 3639, 3167, 974, 3187, 2828, 225, 3044, 6647, 273, 446, 31, 3639, 3167, 974, 1503, 540, 1838, 3639, 273, 446, 31, 3639, 2286, 5126, 1850, 652, 5126, 273, 446, 31, 3639, 368, 413, 4046, 1566, 14215, 7734, 368, 413, 389, 529, 3639, 3044, 273, 394, 3167, 974, 3187, 2828, 12, 6290, 18, 4936, 18, 780, 18, 1106, 16, 4192, 529, 3113, 315, 529, 3113, 20896, 18, 1499, 1769, 3639, 3044, 18, 542, 16014, 12, 3767, 1769, 3639, 1838, 273, 261, 2704, 3167, 974, 1503, 1435, 288, 2 ]
if(searchFilterButton.getState()==ThreeStateButton.SELECTED){ filter[search].setInvert(false); }
private void handleAction(String command) { if (callerTable != null) { CellEditor ce = callerTable.getCellEditor(); if (ce != null) { ce.cancelCellEditing(); } } if (command.equals(FILTER_CALLIN_NOTHING)) { syncFilterWithButton(filter[callIn], callInFilterButton); return; } if (command.equals(FILTER_CALLINFAILED)) { syncFilterWithButton(filter[callInFailed], callInFailedFilterButton); return; } if (command.equals(FILTER_CALLOUT)) { syncFilterWithButton(filter[callOut], callOutFilterButton); return; } if (command.equals(FILTER_COMMENT)) { syncFilterWithButton(filter[comment], commentFilterButton); return; } if (command.equals(FILTER_ANONYM)) { syncFilterWithButton(filter[anonym], anonymFilterButton); return; } if (command.equals(FILTER_FIXED)) { syncFilterWithButton(filter[fixed], fixedFilterButton); return; } if (command.equals(FILTER_HANDY)) { syncFilterWithButton(filter[handy], handyFilterButton); return; } if (command.equals(FILTER_SEARCH)) { if (searchFilterButton.getState() == ThreeStateButton.NOTHING) { searchFilterTextField.setVisible(false); searchLabel.setVisible(false); filter[search].setEnabled(false); } else { searchFilterTextField.setVisible(true); searchLabel.setVisible(true); ((SearchFilter) filter[search]) .setSearchString(searchFilterTextField.getText()); // do nothing // if(searchFilterButton.getState()==ThreeStateButton.SELECTED) if (searchFilterButton.getState() == ThreeStateButton.INVERTED) { filter[search].setInvert(true); } } return; } if (command.equals(FILTER_DATE)) { syncFilterWithButton(filter[date], dateFilterButton); if (dateFilterButton.getState() == ThreeStateButton.NOTHING) { startDateChooser.setVisible(false); endDateChooser.setVisible(false); } else { // selected or inverted check if some rows are selected if ((callerTable != null) && (callerTable.getSelectedRowCount() != 0)) { // some rows are selected so the the date according to the // selected rows int[] rows = callerTable.getSelectedRows(); // min und max bestimmen Date min = ((Call) callerList.getFilteredCallVector().get( rows[0])).getCalldate(); Date max = ((Call) callerList.getFilteredCallVector().get( rows[0])).getCalldate(); Date current; for (int i = 0; i < rows.length; i++) { current = ((Call) callerList.getFilteredCallVector() .get(rows[i])).getCalldate(); if (current.before(min)) { min = current; } if (current.after(max)) { max = current; } Debug.msg("currentDate: " + current); } Debug.msg("minDate: " + min); Debug.msg("maxDate: " + max); startDateChooser.setDate(min); endDateChooser.setDate(max); } else {// no rows selected so we only have the days and set the // hours to min and max startDateChooser.setDate(JFritzUtils .setStartOfDay(startDateChooser.getDate())); endDateChooser.setDate(JFritzUtils .setEndOfDay(endDateChooser.getDate())); } ((DateFilter) filter[date]).setStartDate(startDateChooser .getDate()); ((DateFilter) filter[date]) .setEndDate(endDateChooser.getDate()); if (dateFilterButton.getState() == ThreeStateButton.INVERTED) { filter[date].setInvert(true); } startDateChooser.setVisible(true); endDateChooser.setVisible(true); } dateSpecialSaveString = ""; return; } if (command.equals(THIS_DAY)) { setThisDayFilter(); return; } if (command.equals(LAST_DAY)) { setLastDayFilter(); return; } if (command.equals(THIS_WEEK)) { setThisWeekFilter(); return; } if (command.equals(LAST_WEEK)) { setLastWeekFilter(); return; } if (command.equals(THIS_MONTH)) { setThisMonthFilter(); return; } if (command.equals(LAST_MONTH)) { setLastMonthFilter(); return; } if (command.equals("filter_callinfailed_allWithoutComment")) { //$NON-NLS-1$ clearAllFilter(); callInFailedFilterButton.setState(ThreeStateButton.SELECTED); commentFilterButton.setState(ThreeStateButton.INVERTED); syncAllFilters(); return; } if (command.equals("filter_callinfailed_allWithoutCommentLastWeek")) { //$NON-NLS-1$ clearAllFilter(); callInFailedFilterButton.setState(ThreeStateButton.SELECTED); commentFilterButton.setState(ThreeStateButton.INVERTED); // dateFilter stuff for last week Calendar cal = Calendar.getInstance(); Date start = cal.getTime(); cal.set(Calendar.DAY_OF_MONTH, cal.get(Calendar.DAY_OF_MONTH) - 7); Date end = cal.getTime(); JFritzUtils.setStartOfDay(start); JFritzUtils.setEndOfDay(end); ((DateFilter) filter[date]).setStartDate(start); ((DateFilter) filter[date]).setEndDate(end); startDateChooser.setDate(end); endDateChooser.setDate(start); startDateChooser.setVisible(true); endDateChooser.setVisible(true); syncAllFilters(); return; } if (command.equals(FILTER_SIP)) { ((SipFilter) filter[sip]).setProvider(getSipProvider(callerList)); syncFilterWithButton(filter[sip], sipFilterButton); return; } if (command.equals(FILTER_CALLBYCALL)) { ((CallByCallFilter) filter[callByCall]) .setCallbyCallProvider(getCallByCallProvider(callerList)); syncFilterWithButton(filter[callByCall], callByCallFilterButton); return; } if (command.equals("clearFilter")) { //$NON-NLS-1$ clearAllFilter(); return; } if (command.equals(DELETE_ENTRY)) { if (JOptionPane.showConfirmDialog(parentFrame, Main .getMessage("really_delete_entries"), //$NON-NLS-1$ Main.PROGRAM_NAME, JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { Debug.msg("Removing entries"); //$NON-NLS-1$ int rows[] = callerTable.getSelectedRows(); callerList.removeEntries(rows); } return; } if (command.equals("reverselookup")) { //$NON-NLS-1$ callerList.doReverseLookup(callerTable.getSelectedRows()); return; } if (command.equals("export_csv")) { //$NON-NLS-1$ JFritz.getJframe().exportCallerListToCSV(); return; } if (command.equals("export_xml")) { //$NON-NLS-1$ JFritz.getJframe().exportCallerListToXML(); return; } if (command.equals("import_callerlist_csv")) { //$NON-NLS-1$ JFritz.getJframe().importCallerlistCSV(); return; } if (command.equals("clipboard_number")) { //$NON-NLS-1$ Call call = callerList.getSelectedCall(); if (call != null) { PhoneNumber number = call.getPhoneNumber(); if ((number != null) && (call != null)) { JFritzClipboard.copy(number.convertToNationalNumber()); } } // JFritz.getJframe().copyNumberToClipboard(); return; } if (command.equals("clipboard_adress")) { //$NON-NLS-1$ Call call = callerList.getSelectedCall(); if (call != null) { Person person = call.getPerson(); if (person != null) { JFritzClipboard.copy(person.getAddress()); } } // JFritz.getJframe().copyAddressToClipboard(); } Debug.err("unknown command: " + command); }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/ef81191fe6ebf80747b0a7de51110243452c1110/CallerListPanel.java/clean/jfritz/src/de/moonflower/jfritz/callerlist/CallerListPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 918, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 1640, 1803, 12, 780, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 1296, 13, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 288, 202, 202, 430, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 261, 16140, 1388, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 480, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 446, 13, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 288, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 918, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 1640, 1803, 12, 780, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 5743, 1769, 289, 1296, 13, 430, 12, 3072, 1586, 3616, 18, 588, 1119, 1435, 631, 28019, 1119, 3616, 18, 4803, 2056, 15329, 1034, 63, 3072, 8009, 542, 382, 1097, 12, 2 ]
ITask task = TaskListView.getDefault().getSelectedTask();
ITask task = TaskListView.getFromActivePerspective().getSelectedTask();
public void run(IAction action) { ITask task = TaskListView.getDefault().getSelectedTask(); if (task instanceof AbstractRepositoryTask) { try { ContextRetrieveWizard wizard = new ContextRetrieveWizard((AbstractRepositoryTask)task); Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); if (wizard != null && shell != null && !shell.isDisposed()) { WizardDialog dialog = new WizardDialog(shell, wizard); dialog.create(); dialog.setTitle(ContextRetrieveWizard.WIZARD_TITLE); dialog.setBlockOnOpen(true); if (dialog.open() == Dialog.CANCEL) { dialog.close(); return; } } } catch (Exception e) { MylarStatusHandler.fail(e, e.getMessage(), true); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e5dab796c6efd0dc2b845a7eaada8eb3254ee0c8/ContextRetrieveAction.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/ContextRetrieveAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1285, 835, 1562, 273, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 7416, 2174, 5621, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 698, 288, 9506, 202, 1042, 5767, 27130, 24204, 273, 394, 1772, 5767, 27130, 12443, 7469, 3305, 2174, 13, 4146, 1769, 9506, 202, 13220, 5972, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 9506, 202, 430, 261, 31837, 480, 446, 597, 5972, 480, 446, 597, 401, 10304, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 27130, 6353, 6176, 273, 394, 678, 13412, 6353, 12, 10304, 16, 24204, 1769, 6862, 202, 12730, 18, 2640, 5621, 6862, 202, 12730, 18, 542, 4247, 12, 1042, 5767, 27130, 18, 59, 6867, 8085, 67, 14123, 1769, 6862, 202, 12730, 18, 542, 1768, 1398, 3678, 12, 3767, 1769, 6862, 202, 430, 261, 12730, 18, 3190, 1435, 422, 17242, 18, 25268, 13, 288, 25083, 202, 12730, 18, 4412, 5621, 25083, 202, 2463, 31, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 12062, 7901, 1482, 1503, 18, 6870, 12, 73, 16, 425, 18, 24906, 9334, 638, 1769, 1082, 202, 97, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1285, 835, 1562, 273, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 7416, 2174, 5621, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 698, 288, 9506, 202, 1042, 5767, 27130, 24204, 273, 394, 1772, 5767, 27130, 12443, 7469, 3305, 2174, 13, 4146, 1769, 9506, 202, 13220, 5972, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 9506, 202, 430, 261, 31837, 480, 446, 597, 5972, 480, 446, 597, 401, 10304, 18, 291, 1669, 7423, 10756, 288, 6862, 202, 27130, 6353, 6176, 273, 394, 678, 13412, 6353, 12, 10304, 16, 24204, 1769, 6862, 202, 2 ]
public static final void destroy(String concretePortletID, PortletRequest req, PortletResponse res) throws IOException, PortletException {
public static final void destroy(String concretePortletID, PortletRequest req, PortletResponse res) throws IOException, PortletException {
public static final void destroy(String concretePortletID, PortletRequest req, PortletResponse res) throws IOException, PortletException { log.debug("in destroy " + concretePortletID); String appID = getApplicationPortletID(concretePortletID); ApplicationPortlet appPortlet = registry.getApplicationPortlet(appID); if (appPortlet != null) { PortletDispatcher dispatcher = appPortlet.getPortletDispatcher(); // destroy the application portlet dispatcher.destroy(req, res); } else { log.info("in destroy: Unable to find portlet in registry: " + concretePortletID); } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/f6677a2bb280160c46298df34a36b7caf8ba6416/PortletInvoker.java/buggy/src/org/gridlab/gridsphere/portletcontainer/PortletInvoker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 918, 5546, 12, 780, 12220, 18566, 734, 16, 21305, 691, 1111, 16, 21305, 1064, 400, 13, 1216, 1860, 16, 21305, 503, 288, 3639, 613, 18, 4148, 2932, 267, 5546, 315, 397, 12220, 18566, 734, 1769, 3639, 514, 24411, 273, 9615, 18566, 734, 12, 23470, 18566, 734, 1769, 3639, 4257, 18566, 595, 18566, 273, 4023, 18, 588, 3208, 18566, 12, 2910, 734, 1769, 3639, 309, 261, 2910, 18566, 480, 446, 13, 288, 5411, 21305, 6681, 7393, 273, 595, 18566, 18, 588, 18566, 6681, 5621, 5411, 368, 5546, 326, 2521, 13114, 5411, 7393, 18, 11662, 12, 3658, 16, 400, 1769, 3639, 289, 469, 288, 5411, 613, 18, 1376, 2932, 267, 5546, 30, 18640, 358, 1104, 13114, 316, 4023, 30, 315, 397, 12220, 18566, 734, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 918, 5546, 12, 780, 12220, 18566, 734, 16, 21305, 691, 1111, 16, 21305, 1064, 400, 13, 1216, 1860, 16, 21305, 503, 288, 3639, 613, 18, 4148, 2932, 267, 5546, 315, 397, 12220, 18566, 734, 1769, 3639, 514, 24411, 273, 9615, 18566, 734, 12, 23470, 18566, 734, 1769, 3639, 4257, 18566, 595, 18566, 273, 4023, 18, 588, 3208, 18566, 12, 2910, 734, 1769, 3639, 309, 261, 2910, 18566, 480, 446, 13, 288, 5411, 21305, 6681, 7393, 273, 595, 18566, 18, 588, 18566, 6681, 5621, 5411, 368, 5546, 326, 2521, 13114, 5411, 7393, 18, 11662, 12, 3658, 16, 400, 1769, 3639, 289, 469, 288, 5411, 613, 18, 1376, 2932, 267, 5546, 30, 18640, 358, 1104, 13114, 316, 2 ]
String expectedResult = " public class X {\n" + " /**\n" + " * ppp\n" + " */\n" + " private void f(int i){ " }\n" + " }";
String expectedResult = "public class X {\n" + " /**\n" + " * ppp\n" + " */\n" + " private void f(int i){ "}\n" + "}";
public void testClassReplacement6() { String actualResult; String s1 = "public class X {\n" + " /**\n" + " * zzz\n" + " */\n" + " private void f(int i) {\n" + " //s\n" + " }\n" + "}"; String s1_2 = "public class X {\n" + " /**\n" + " * zzz\n" + " */\n" + " private void f(int i) {\n" + " int a = 1;\n" + " //s\n" + " }\n" + "}"; String s2 = "class 'c {\n" + " /**\n" + " * zzz\n" + " */\n" + " void f('t 'p){'s+;}\n" + "}"; String s3 = "class $c$ {\n" + " /**\n" + " * ppp\n" + " */\n" + " void f($t$ $p$){$s$;}\n" + "}"; String expectedResult = " public class X {\n" + " /**\n" + " * ppp\n" + " */\n" + " private void f(int i){//s\n" + " }\n" + " }"; actualResult = replacer.testReplace(s1,s2,s3,options); assertEquals( "Correct class replacement", expectedResult, actualResult ); String expectedResult2 = " public class X {\n" + " /**\n" + " * ppp\n" + " */\n" + " private void f(int i){int a = 1;\n" + " //s\n" + " }\n" + " }"; actualResult = replacer.testReplace(s1_2,s2,s3,options); assertEquals( "Correct class replacement, 2", expectedResult2, actualResult ); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9c2e64e4fd3d0bb80e77f27e3910e8d2ced2234e/StructuralReplaceTest.java/clean/plugins/structuralsearch/testSource/com/intellij/structuralsearch/StructuralReplaceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 797, 15201, 26, 1435, 288, 565, 514, 3214, 1253, 31, 565, 514, 272, 21, 273, 315, 482, 667, 1139, 18890, 82, 6, 397, 7734, 315, 282, 1783, 64, 82, 6, 397, 7734, 315, 565, 380, 998, 6378, 64, 82, 6, 397, 7734, 315, 565, 1195, 64, 82, 6, 397, 7734, 315, 282, 3238, 918, 284, 12, 474, 277, 13, 18890, 82, 6, 397, 7734, 315, 4202, 368, 87, 64, 82, 6, 397, 7734, 315, 282, 289, 64, 82, 6, 397, 7734, 11883, 31, 565, 514, 272, 21, 67, 22, 273, 315, 482, 667, 1139, 18890, 82, 6, 397, 7734, 315, 282, 1783, 64, 82, 6, 397, 7734, 315, 565, 380, 998, 6378, 64, 82, 6, 397, 7734, 315, 565, 1195, 64, 82, 6, 397, 7734, 315, 282, 3238, 918, 284, 12, 474, 277, 13, 18890, 82, 6, 397, 7734, 315, 4202, 509, 279, 273, 404, 9747, 82, 6, 397, 7734, 315, 4202, 368, 87, 64, 82, 6, 397, 7734, 315, 282, 289, 64, 82, 6, 397, 7734, 11883, 31, 565, 514, 272, 22, 273, 315, 1106, 296, 71, 18890, 82, 6, 397, 7734, 315, 282, 1783, 64, 82, 6, 397, 7734, 315, 565, 380, 998, 6378, 64, 82, 6, 397, 7734, 315, 565, 1195, 64, 82, 6, 397, 7734, 315, 282, 918, 284, 2668, 88, 296, 84, 15329, 11, 87, 15, 31, 6280, 82, 6, 397, 7734, 11883, 31, 565, 514, 272, 23, 273, 315, 1106, 271, 71, 8, 18890, 82, 6, 397, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 797, 15201, 26, 1435, 288, 565, 514, 3214, 1253, 31, 565, 514, 272, 21, 273, 315, 482, 667, 1139, 18890, 82, 6, 397, 7734, 315, 282, 1783, 64, 82, 6, 397, 7734, 315, 565, 380, 998, 6378, 64, 82, 6, 397, 7734, 315, 565, 1195, 64, 82, 6, 397, 7734, 315, 282, 3238, 918, 284, 12, 474, 277, 13, 18890, 82, 6, 397, 7734, 315, 4202, 368, 87, 64, 82, 6, 397, 7734, 315, 282, 289, 64, 82, 6, 397, 7734, 11883, 31, 565, 514, 272, 21, 67, 22, 273, 315, 482, 667, 1139, 18890, 82, 6, 397, 7734, 315, 282, 1783, 64, 82, 6, 397, 7734, 315, 565, 380, 998, 6378, 64, 82, 6, 2 ]
public void setAbstract(boolean isAbstract) { this.isAbstract = isAbstract;
public void setAbstract(final boolean isAbstract) { this._isAbstract = isAbstract;
public void setAbstract(boolean isAbstract) { this.isAbstract = isAbstract; } //-- setAbstract
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JModifiers.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JModifiers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7469, 12, 6494, 24996, 13, 288, 3639, 333, 18, 291, 7469, 273, 24996, 31, 565, 289, 368, 413, 444, 7469, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7469, 12, 6494, 24996, 13, 288, 3639, 333, 18, 291, 7469, 273, 24996, 31, 565, 289, 368, 413, 444, 7469, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
propertySet.setBoolProperty(PARAM_DEAD_ON_ENTRY, true);
propertySet.addProperty(DeadLocalStoreProperty.PARAM_DEAD_ON_ENTRY);
private void analyzeMethod(ClassContext classContext, Method method) throws DataflowAnalysisException, CFGBuilderException { JavaClass javaClass = classContext.getJavaClass(); Dataflow<BitSet, LiveLocalStoreAnalysis> llsaDataflow = classContext.getLiveLocalStoreDataflow(method); int numLocals = method.getCode().getMaxLocals(); int [] localStoreCount = new int[numLocals]; int [] localLoadCount = new int[numLocals]; int [] localIncrementCount = new int[numLocals]; MethodGen methodGen = classContext.getMethodGen(method); CFG cfg = classContext.getCFG(method); BitSet liveStoreSetAtEntry = llsaDataflow.getAnalysis().getResultFact(cfg.getEntry()); BitSet complainedAbout = new BitSet(); // Get number of locals that are parameters. int localsThatAreParameters = method.getArgumentTypes().length; if (!method.isStatic()) localsThatAreParameters++; // Scan method to determine number of loads, stores, and increments // of local variables. countLocalStoresLoadsAndIncrements( localStoreCount, localLoadCount, localIncrementCount, cfg); // Scan method for // - dead stores // - stores to parameters that are dead upon entry to the method for (Iterator<Location> i = cfg.locationIterator(); i.hasNext(); ) { Location location = i.next(); // Skip any instruction which is not a store if (!isStore(location)) continue; // Heuristic: exception handler blocks often contain // dead stores generated by the compiler. propertySet.setBoolProperty( EXCEPTION_HANDLER, location.getBasicBlock().isExceptionHandler()); IndexedInstruction ins = (IndexedInstruction) location.getHandle().getInstruction(); int local = ins.getIndex(); // Heuristic: name of local variable. checkLocalVariableName( method.getLocalVariableTable(), local, location.getHandle().getPosition()); // Is this a store to a parameter which was dead on entry to the method? boolean parameterThatIsDeadAtEntry = local < localsThatAreParameters && !llsaDataflow.getAnalysis().isStoreAlive(liveStoreSetAtEntry, local); if (parameterThatIsDeadAtEntry && !complainedAbout.get(local)) { BugInstance bugInstance = new BugInstance(this, "IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN", NORMAL_PRIORITY) .addClassAndMethod(methodGen, javaClass.getSourceFileName()) .addSourceLine(methodGen, javaClass.getSourceFileName(), location.getHandle()); bugReporter.reportBug(bugInstance); complainedAbout.set(local); } // Get live stores at this instruction. // Note that the analysis also computes which stores were // killed by a subsequent unconditional store. BitSet liveStoreSet = llsaDataflow.getAnalysis().getFactAtLocation(location); // Is store alive? if (llsaDataflow.getAnalysis().isStoreAlive(liveStoreSet, local)) continue; // Store is dead // Ignore assignments that were killed by a subsequent assignment. propertySet.setBoolProperty( KILLED_BY_SUBSEQUENT_STORE, llsaDataflow.getAnalysis().killedByStore(liveStoreSet, local)); // Ignore dead assignments of null and 0. // These often indicate defensive programming. InstructionHandle prev = location.getBasicBlock().getPredecessorOf(location.getHandle()); propertySet.setBoolProperty( DEFENSIVE_CONSTANT_OPCODE, prev != null && defensiveConstantValueOpcodes.get(prev.getInstruction().getOpcode()) ); if (ins instanceof IINC) { // special handling of IINC propertySet.setBoolProperty(DEAD_INCREMENT, true); if (localIncrementCount[local] == 1) propertySet.setBoolProperty(SINGLE_DEAD_INCREMENT, true); } else if (ins instanceof ASTORE && prev != null) { // Look for objects created but never used Instruction prevIns = prev.getInstruction(); if ((prevIns instanceof INVOKESPECIAL && ((INVOKESPECIAL)prevIns).getMethodName(methodGen.getConstantPool()).equals("<init>")) || prevIns instanceof ANEWARRAY || prevIns instanceof NEWARRAY || prevIns instanceof MULTIANEWARRAY) { propertySet.setBoolProperty(DEAD_OBJECT_STORE, true); } } else if (localStoreCount[local] == 2 && localLoadCount[local] > 0) { // TODO: why is this significant? propertySet.setBoolProperty(TWO_STORES_MULTIPLE_LOADS, true); } else if (localStoreCount[local] == 1) { // TODO: why is this significant? propertySet.setBoolProperty(SINGLE_STORE, true); } else if (localLoadCount[local] == 0) { // TODO: why is this significant? propertySet.setBoolProperty(NO_LOADS, true); } if (parameterThatIsDeadAtEntry) { if (DEBUG) System.out.println("Raising priority"); propertySet.setBoolProperty(PARAM_DEAD_ON_ENTRY, true); } int priority = determineWarningPriority(); if (priority >= 0) { // Report the warning BugInstance bugInstance = new BugInstance(this, "DLS_DEAD_LOCAL_STORE", priority) .addClassAndMethod(methodGen, javaClass.getSourceFileName()) .addSourceLine(methodGen, javaClass.getSourceFileName(), location.getHandle()); if (DEBUG) System.out.println("Reporting " + bugInstance); // If in relaxed reporting mode, encode heuristic information. if (AnalysisContext.currentAnalysisContext().getBoolProperty( FindBugsAnalysisProperties.RELAXED_REPORTING_MODE)) { propertySet.decorateBugInstance(bugInstance, schema); } bugReporter.reportBug(bugInstance); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b9bcac8a334c2cd7b816ee39131cc1c6f23064d3/FindDeadLocalStores.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDeadLocalStores.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 12375, 1305, 12, 797, 1042, 667, 1042, 16, 2985, 707, 13, 1082, 202, 15069, 1910, 2426, 9418, 503, 16, 7577, 1263, 503, 288, 9506, 202, 5852, 797, 2252, 797, 273, 667, 1042, 18, 588, 5852, 797, 5621, 9506, 202, 751, 2426, 32, 5775, 694, 16, 21559, 2042, 2257, 9418, 34, 328, 3251, 69, 751, 2426, 273, 1082, 202, 1106, 1042, 18, 588, 12328, 2042, 2257, 751, 2426, 12, 2039, 1769, 9506, 202, 474, 818, 1333, 1031, 273, 707, 18, 588, 1085, 7675, 588, 2747, 1333, 1031, 5621, 202, 202, 474, 5378, 1191, 2257, 1380, 273, 394, 509, 63, 2107, 1333, 1031, 15533, 202, 202, 474, 5378, 1191, 2563, 1380, 273, 394, 509, 63, 2107, 1333, 1031, 15533, 202, 202, 474, 5378, 1191, 10798, 1380, 273, 394, 509, 63, 2107, 1333, 1031, 15533, 202, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 202, 202, 19727, 2776, 273, 667, 1042, 18, 588, 19727, 12, 2039, 1769, 202, 202, 5775, 694, 8429, 2257, 694, 861, 1622, 273, 328, 3251, 69, 751, 2426, 18, 588, 9418, 7675, 588, 1253, 9766, 12, 7066, 18, 588, 1622, 10663, 202, 202, 5775, 694, 532, 7446, 329, 24813, 273, 394, 21199, 5621, 9506, 202, 759, 968, 1300, 434, 8985, 716, 854, 1472, 18, 202, 202, 474, 8985, 18163, 4704, 2402, 273, 707, 18, 588, 1379, 2016, 7675, 2469, 31, 202, 202, 430, 16051, 2039, 18, 291, 5788, 10756, 8985, 18163, 4704, 2402, 9904, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12375, 1305, 12, 797, 1042, 667, 1042, 16, 2985, 707, 13, 1082, 202, 15069, 1910, 2426, 9418, 503, 16, 7577, 1263, 503, 288, 9506, 202, 5852, 797, 2252, 797, 273, 667, 1042, 18, 588, 5852, 797, 5621, 9506, 202, 751, 2426, 32, 5775, 694, 16, 21559, 2042, 2257, 9418, 34, 328, 3251, 69, 751, 2426, 273, 1082, 202, 1106, 1042, 18, 588, 12328, 2042, 2257, 751, 2426, 12, 2039, 1769, 9506, 202, 474, 818, 1333, 1031, 273, 707, 18, 588, 1085, 7675, 588, 2747, 1333, 1031, 5621, 202, 202, 474, 5378, 1191, 2257, 1380, 273, 394, 509, 63, 2107, 1333, 1031, 15533, 202, 202, 474, 5378, 1191, 2563, 1380, 273, 394, 509, 63, 2107, 1333, 2 ]
return module.getMethods() == getMethods();
return this == module;
public boolean isSame(RubyModule module) { // FIXME: lame equality check; need something better return module.getMethods() == getMethods(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1250, 23061, 12, 54, 10340, 3120, 1605, 13, 288, 4202, 368, 9852, 30, 328, 339, 14958, 866, 31, 1608, 5943, 7844, 1377, 327, 333, 422, 1605, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 565, 1071, 1250, 23061, 12, 54, 10340, 3120, 1605, 13, 288, 4202, 368, 9852, 30, 328, 339, 14958, 866, 31, 1608, 5943, 7844, 1377, 327, 333, 422, 1605, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
type = Type.float_type;
type = LangPrimType.floatType;
public Expression inline (ApplyExp exp) { Expression folded = ApplyExp.inlineIfConstant(this, exp); if (folded != exp) return folded; Expression[] args = exp.getArgs(); if (args.length > 2) return pairwise(this, exp.getFunction(), args); if (args.length == 1 && plusOrMinus < 0) { Type type0 = args[0].getType(); if (type0 instanceof PrimType) { char sig0 = type0.getSignature().charAt(0); Type type = null; int opcode = 0; if (sig0 == 'V' || sig0 == 'Z' || sig0 == 'C') { // error } else if (sig0 == 'D') { opcode = 119 /* dneg */; type = Type.double_type; } else if (sig0 == 'F') { opcode = 118 /* fneg */; type = Type.float_type; } else if (sig0 == 'J') { opcode = 117 /* lneg */; type = Type.long_type; } else { opcode = 116 /* ineg */; type = Type.int_type; } if (type != null) { PrimProcedure prim = PrimProcedure.makeBuiltinBinary(opcode, type); return new ApplyExp(prim, args); } } } if (args.length == 2) { Type type0 = args[0].getType(); Type type1 = args[1].getType(); if (type0 instanceof PrimType && type1 instanceof PrimType) { char sig0 = type0.getSignature().charAt(0); char sig1 = type1.getSignature().charAt(0); Type type = null; int opcode = 0; if (sig0 == 'V' || sig0 == 'Z' || sig0 == 'C' || sig1 == 'V' || sig1 == 'Z' || sig1 == 'C') { // error } else if (sig0 == 'D' || sig1 == 'D') { opcode = plusOrMinus > 0 ? 99 /* dadd */ : 103 /* dsub */; type = Type.double_type; } else if (sig0 == 'F' || sig1 == 'F') { opcode = plusOrMinus > 0 ? 98 /* fadd */ : 102 /* fsub */; type = Type.float_type; } else if (sig0 == 'J' || sig1 == 'J') { opcode = plusOrMinus > 0 ? 97 /* ladd */ : 101 /* lsub */; type = Type.long_type; } else { opcode = plusOrMinus > 0 ? 96 /* iadd */ : 100 /* isub */; type = Type.int_type; } if (type != null) { PrimProcedure prim = PrimProcedure.makeBuiltinBinary(opcode, type); return new ApplyExp(prim, args); } } } return exp; }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/bcb2d6c9163c02bcc78e2033f3f249047aa482ac/AddOp.java/buggy/gnu/kawa/functions/AddOp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5371, 6370, 261, 7001, 2966, 1329, 13, 225, 288, 565, 5371, 28420, 785, 273, 5534, 2966, 18, 10047, 2047, 6902, 12, 2211, 16, 1329, 1769, 565, 309, 261, 9002, 785, 480, 1329, 13, 1377, 327, 28420, 785, 31, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 309, 261, 1968, 18, 2469, 405, 576, 13, 1377, 327, 21886, 12, 2211, 16, 1329, 18, 588, 2083, 9334, 833, 1769, 565, 309, 261, 1968, 18, 2469, 422, 404, 597, 8737, 1162, 18434, 411, 374, 13, 1377, 288, 3639, 1412, 618, 20, 273, 833, 63, 20, 8009, 588, 559, 5621, 3639, 309, 261, 723, 20, 1276, 2301, 381, 559, 13, 1850, 288, 5411, 1149, 3553, 20, 273, 618, 20, 18, 588, 5374, 7675, 3001, 861, 12, 20, 1769, 5411, 1412, 618, 273, 446, 31, 5411, 509, 11396, 273, 374, 31, 5411, 309, 261, 7340, 20, 422, 296, 58, 11, 747, 3553, 20, 422, 296, 62, 11, 747, 3553, 20, 422, 296, 39, 6134, 2868, 288, 7734, 368, 555, 2868, 289, 5411, 469, 309, 261, 7340, 20, 422, 296, 40, 6134, 2868, 288, 7734, 11396, 273, 404, 3657, 1748, 8800, 1332, 1195, 31, 7734, 618, 273, 1412, 18, 9056, 67, 723, 31, 2868, 289, 5411, 469, 309, 261, 7340, 20, 422, 296, 42, 6134, 2868, 288, 7734, 11396, 273, 404, 2643, 1748, 2295, 1332, 1195, 31, 7734, 618, 273, 13346, 2050, 381, 559, 18, 5659, 559, 31, 2868, 289, 5411, 469, 309, 261, 7340, 20, 422, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5371, 6370, 261, 7001, 2966, 1329, 13, 225, 288, 565, 5371, 28420, 785, 273, 5534, 2966, 18, 10047, 2047, 6902, 12, 2211, 16, 1329, 1769, 565, 309, 261, 9002, 785, 480, 1329, 13, 1377, 327, 28420, 785, 31, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 309, 261, 1968, 18, 2469, 405, 576, 13, 1377, 327, 21886, 12, 2211, 16, 1329, 18, 588, 2083, 9334, 833, 1769, 565, 309, 261, 1968, 18, 2469, 422, 404, 597, 8737, 1162, 18434, 411, 374, 13, 1377, 288, 3639, 1412, 618, 20, 273, 833, 63, 20, 8009, 588, 559, 5621, 3639, 309, 261, 723, 20, 1276, 2301, 381, 559, 13, 1850, 288, 5411, 1149, 3553, 20, 273, 618, 2 ]
ruby.getInterpreter().setDynamicVars((RubyVarmap)oldMap.get(ruby));
ruby.getInterpreter().setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop());
public static void pop(Ruby ruby) { ruby.getInterpreter().setDynamicVars((RubyVarmap)oldMap.get(ruby)); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyVarmap.java/buggy/org/jruby/interpreter/RubyVarmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1843, 12, 54, 10340, 22155, 13, 288, 3639, 22155, 18, 588, 30010, 7675, 542, 9791, 5555, 12443, 54, 10340, 1537, 1458, 13, 12443, 54, 10340, 2624, 13, 1673, 863, 18, 588, 12, 27768, 13, 2934, 5120, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1843, 12, 54, 10340, 22155, 13, 288, 3639, 22155, 18, 588, 30010, 7675, 542, 9791, 5555, 12443, 54, 10340, 1537, 1458, 13, 12443, 54, 10340, 2624, 13, 1673, 863, 18, 588, 12, 27768, 13, 2934, 5120, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (CommonarchiveFactory) getEFactoryInstance();
return (CommonarchiveFactory)getEFactoryInstance();
public CommonarchiveFactory getCommonarchiveFactory() { return (CommonarchiveFactory) getEFactoryInstance(); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/ebce0dfcf980c405fd07c019b6f4466152262cb7/CommonarchivePackageImpl.java/clean/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchivePackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5658, 10686, 1733, 30863, 10686, 1733, 1435, 288, 202, 202, 2463, 261, 6517, 10686, 1733, 13, 4774, 1733, 1442, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5658, 10686, 1733, 30863, 10686, 1733, 1435, 288, 202, 202, 2463, 261, 6517, 10686, 1733, 13, 4774, 1733, 1442, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (int i=0; i<srcFiles.length; i++) {
for (int i = 0; i < srcFiles.length; i++) {
protected String[] getCommandline(String[] srcFiles, File[] baseDirs) { Vector targets = new Vector(); if (targetFilePos != null) { Hashtable addedFiles = new Hashtable(); for (int i=0; i<srcFiles.length; i++) { String[] subTargets = mapper.mapFileName(srcFiles[i]); if (subTargets != null) { for (int j=0; j<subTargets.length; j++) { String name = null; if (!relative) { name = (new File(destDir, subTargets[j])).getAbsolutePath(); } else { name = subTargets[j]; } if (!addedFiles.contains(name)) { targets.addElement(name); addedFiles.put(name, name); } } } } } String[] targetFiles = new String[targets.size()]; targets.copyInto(targetFiles); String[] orig = cmdl.getCommandline(); String[] result = new String[orig.length+srcFiles.length+targetFiles.length]; int srcIndex = orig.length; if (srcFilePos != null) { srcIndex = srcFilePos.getPosition(); } if (targetFilePos != null) { int targetIndex = targetFilePos.getPosition(); if (srcIndex < targetIndex || (srcIndex == targetIndex && srcIsFirst)) { // 0 --> srcIndex System.arraycopy(orig, 0, result, 0, srcIndex); // srcIndex --> targetIndex System.arraycopy(orig, srcIndex, result, srcIndex + srcFiles.length, targetIndex - srcIndex); // targets are already absolute file names System.arraycopy(targetFiles, 0, result, targetIndex + srcFiles.length, targetFiles.length); // targetIndex --> end System.arraycopy(orig, targetIndex, result, targetIndex + srcFiles.length + targetFiles.length, orig.length - targetIndex); } else { // 0 --> targetIndex System.arraycopy(orig, 0, result, 0, targetIndex); // targets are already absolute file names System.arraycopy(targetFiles, 0, result, targetIndex, targetFiles.length); // targetIndex --> srcIndex System.arraycopy(orig, targetIndex, result, targetIndex + targetFiles.length, srcIndex - targetIndex); // srcIndex --> end System.arraycopy(orig, srcIndex, result, srcIndex + srcFiles.length + targetFiles.length, orig.length - srcIndex); srcIndex += targetFiles.length; } } else { // no targetFilePos // 0 --> srcIndex System.arraycopy(orig, 0, result, 0, srcIndex); // srcIndex --> end System.arraycopy(orig, srcIndex, result, srcIndex + srcFiles.length, orig.length - srcIndex); } // fill in source file names for (int i=0; i < srcFiles.length; i++) { if (!relative) { result[srcIndex+i] = (new File(baseDirs[i], srcFiles[i])).getAbsolutePath(); } else { result[srcIndex+i] = srcFiles[i]; } } return result; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/ExecuteOn.java/buggy/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 8526, 12856, 1369, 12, 780, 8526, 1705, 2697, 16, 1387, 8526, 1026, 9872, 13, 288, 3639, 5589, 5774, 273, 394, 5589, 5621, 3639, 309, 261, 3299, 812, 1616, 480, 446, 13, 288, 5411, 18559, 3096, 2697, 273, 394, 18559, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1705, 2697, 18, 2469, 31, 277, 27245, 288, 7734, 514, 8526, 720, 9432, 273, 5815, 18, 1458, 4771, 12, 4816, 2697, 63, 77, 19226, 7734, 309, 261, 1717, 9432, 480, 446, 13, 288, 10792, 364, 261, 474, 525, 33, 20, 31, 525, 32, 1717, 9432, 18, 2469, 31, 525, 27245, 288, 13491, 514, 508, 273, 446, 31, 13491, 309, 16051, 11626, 13, 288, 18701, 508, 273, 27573, 261, 2704, 1387, 12, 10488, 1621, 16, 720, 9432, 63, 78, 5717, 2934, 588, 10368, 743, 5621, 13491, 289, 469, 288, 18701, 508, 273, 720, 9432, 63, 78, 15533, 13491, 289, 13491, 309, 16051, 9665, 2697, 18, 12298, 12, 529, 3719, 288, 18701, 5774, 18, 1289, 1046, 12, 529, 1769, 18701, 3096, 2697, 18, 458, 12, 529, 16, 508, 1769, 13491, 289, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 3639, 514, 8526, 1018, 2697, 273, 394, 514, 63, 11358, 18, 1467, 1435, 15533, 3639, 5774, 18, 3530, 5952, 12, 3299, 2697, 1769, 7734, 514, 8526, 1647, 273, 1797, 80, 18, 588, 2189, 1369, 5621, 3639, 514, 8526, 563, 273, 394, 514, 63, 4949, 18, 2469, 15, 4816, 2697, 18, 2469, 15, 3299, 2697, 18, 2469, 15533, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 8526, 12856, 1369, 12, 780, 8526, 1705, 2697, 16, 1387, 8526, 1026, 9872, 13, 288, 3639, 5589, 5774, 273, 394, 5589, 5621, 3639, 309, 261, 3299, 812, 1616, 480, 446, 13, 288, 5411, 18559, 3096, 2697, 273, 394, 18559, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1705, 2697, 18, 2469, 31, 277, 27245, 288, 7734, 514, 8526, 720, 9432, 273, 5815, 18, 1458, 4771, 12, 4816, 2697, 63, 77, 19226, 7734, 309, 261, 1717, 9432, 480, 446, 13, 288, 10792, 364, 261, 474, 525, 33, 20, 31, 525, 32, 1717, 9432, 18, 2469, 31, 525, 27245, 288, 13491, 514, 508, 273, 446, 31, 13491, 309, 16051, 11626, 13, 288, 18701, 508, 273, 2 ]
int id = sp.getRefID(); ptr.getSlideOffsetDataLocationsLookup().put( new Integer(id), new Integer((slideRecordPos+1)*4) ); ptr.getSlideLocationsLookup().put( new Integer(id), new Integer(slideOffset)); ptr.addSlideLookup(id, slideOffset);
ptr.addSlideLookup(sp.getRefID(), slideOffset);
public Slide createSlide() throws IOException { SlideListWithText[] slwts = _documentRecord.getSlideListWithTexts(); SlideListWithText slist = null; if(slwts.length > 1) { // Just use the last one slist = slwts[slwts.length - 1]; } else { // Need to add a new one slist = new SlideListWithText(); // Goes in just before the EndDocumentRecord Record[] docChildren = _documentRecord.getChildRecords(); Record endDoc = docChildren[docChildren.length - 1]; if(endDoc.getRecordType() != RecordTypes.EndDocument.typeID) { throw new IllegalStateException("The last child record of a Document should be EndDocument, but it was " + endDoc); } _documentRecord.addChildBefore(slist, endDoc); } // Grab the last SlidePersistAtom, if there was one SlidePersistAtom prev = null; SlideAtomsSet[] sas = slist.getSlideAtomsSets(); if(sas != null && sas.length > 0) { prev = sas[sas.length - 1].getSlidePersistAtom(); } // Add a new SlidePersistAtom SlidePersistAtom sp = new SlidePersistAtom(); // Refernce is the 1-based index of the slide container in // the document root. // It always starts with 3 (1 is Document, 2 is MainMaster, 3 is // the first slide) sp.setRefID(prev == null ? 3 : (prev.getRefID() + 1)); // First slideId is always 256 sp.setSlideIdentifier(prev == null ? 256 : (prev.getSlideIdentifier() + 1)); // Add this new SlidePersistAtom to the SlideListWithText slist.appendChildRecord(sp); // Create a new Slide Slide slide = new Slide(); Slide[] s = new Slide[_slides.length+1]; System.arraycopy(_slides, 0, s, 0, _slides.length); s[_slides.length] = slide; _slides = s; System.out.println("Added slide " + _slides.length + " with ref " + sp.getRefID() + " and identifier " + sp.getSlideIdentifier()); // Add in to the core records org.apache.poi.hslf.record.Slide slideRecord = slide.getSlideRecord(); int slideRecordPos = _hslfSlideShow.appendRootLevelRecord(slideRecord); // Add the new Slide into the PersistPtr stuff int offset = 0; int slideOffset = 0; PersistPtrHolder ptr = null; UserEditAtom usr = null; for (int i = 0; i < _records.length; i++) { Record record = _records[i]; ByteArrayOutputStream out = new ByteArrayOutputStream(); record.writeOut(out); // Grab interesting records as they come past if(_records[i].getRecordType() == RecordTypes.PersistPtrIncrementalBlock.typeID){ ptr = (PersistPtrHolder)_records[i]; } if(_records[i].getRecordType() == RecordTypes.UserEditAtom.typeID) { usr = (UserEditAtom)_records[i]; } if(i == slideRecordPos) { slideOffset = offset; } offset += out.size(); } // Add the new slide into the last PersistPtr slideRecord.setLastOnDiskOffset(slideOffset); int id = sp.getRefID(); ptr.getSlideOffsetDataLocationsLookup().put( new Integer(id), new Integer((slideRecordPos+1)*4) ); ptr.getSlideLocationsLookup().put( new Integer(id), new Integer(slideOffset)); ptr.addSlideLookup(id, slideOffset); System.out.println("New slide ended up at " + slideOffset); // Last view is now of the slide usr.setLastViewType((short)UserEditAtom.LAST_VIEW_SLIDE_VIEW); // All done and added return slide; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/72fd120c8ffe019c915bf4ff4a14b3770c451f60/SlideShow.java/buggy/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 202, 482, 348, 8130, 752, 21068, 1435, 1216, 1860, 288, 21114, 202, 21068, 682, 1190, 1528, 8526, 2020, 91, 3428, 273, 389, 5457, 2115, 18, 588, 21068, 682, 1190, 30114, 5621, 21114, 202, 21068, 682, 1190, 1528, 272, 1098, 273, 446, 31, 26924, 21114, 202, 430, 12, 2069, 91, 3428, 18, 2469, 405, 404, 13, 288, 26924, 202, 759, 12526, 999, 326, 1142, 1245, 26924, 202, 87, 1098, 273, 2020, 91, 3428, 63, 2069, 91, 3428, 18, 2469, 300, 404, 15533, 21114, 202, 97, 469, 288, 26924, 202, 759, 12324, 358, 527, 279, 394, 1245, 26924, 202, 87, 1098, 273, 394, 348, 8130, 682, 1190, 1528, 5621, 282, 9506, 26924, 202, 759, 4220, 281, 316, 2537, 1865, 326, 4403, 2519, 2115, 26924, 202, 2115, 8526, 997, 4212, 273, 389, 5457, 2115, 18, 588, 1763, 6499, 5621, 26924, 202, 2115, 679, 1759, 273, 997, 4212, 63, 2434, 4212, 18, 2469, 300, 404, 15533, 26924, 202, 430, 12, 409, 1759, 18, 588, 2115, 559, 1435, 480, 5059, 2016, 18, 1638, 2519, 18, 723, 734, 13, 288, 282, 9506, 202, 12849, 394, 5477, 2932, 1986, 1142, 1151, 1409, 434, 279, 4319, 1410, 506, 4403, 2519, 16, 1496, 518, 1703, 315, 397, 679, 1759, 1769, 26924, 202, 97, 26924, 202, 67, 5457, 2115, 18, 1289, 1763, 4649, 12, 87, 1098, 16, 679, 1759, 1769, 21114, 202, 97, 21114, 202, 759, 17150, 326, 1142, 348, 8130, 12771, 3641, 16, 309, 1915, 1703, 1245, 21114, 202, 21068, 12771, 3641, 2807, 273, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 482, 348, 8130, 752, 21068, 1435, 1216, 1860, 288, 21114, 202, 21068, 682, 1190, 1528, 8526, 2020, 91, 3428, 273, 389, 5457, 2115, 18, 588, 21068, 682, 1190, 30114, 5621, 21114, 202, 21068, 682, 1190, 1528, 272, 1098, 273, 446, 31, 26924, 21114, 202, 430, 12, 2069, 91, 3428, 18, 2469, 405, 404, 13, 288, 26924, 202, 759, 12526, 999, 326, 1142, 1245, 26924, 202, 87, 1098, 273, 2020, 91, 3428, 63, 2069, 91, 3428, 18, 2469, 300, 404, 15533, 21114, 202, 97, 469, 288, 26924, 202, 759, 12324, 358, 527, 279, 394, 1245, 26924, 202, 87, 1098, 273, 394, 348, 8130, 682, 1190, 1528, 5621, 282, 9506, 26924, 202, 759, 4220, 281, 316, 2537, 1865, 326, 2 ]
void backupNSSupport() {
void backupNSSupport(SchemaNamespaceSupport nsSupport) {
void backupNSSupport() { SchemaNamespaceSupportStack.push(fNamespaceSupport); fNamespaceSupport = new SchemaNamespaceSupport(fNamespaceSupportRoot); // bind "xml" prefix to "http://www.w3.org/XML/1998/namespace" // per Namespace Constraint: Prefix Declared (Namespaces in XML REC) fNamespaceSupport.declarePrefix(fSymbolTable.addSymbol("xml"), fSymbolTable.addSymbol("http://www.w3.org/XML/1998/namespace")); fValidationContext.setNamespaceSupport(fNamespaceSupport); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/49c5129e28bdb60164f380f18fde08cf9976ca96/XSDocumentInfo.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDocumentInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 5114, 50, 1260, 416, 655, 12, 3078, 3402, 6289, 3153, 6289, 13, 288, 3639, 4611, 3402, 6289, 2624, 18, 6206, 12, 74, 3402, 6289, 1769, 3639, 284, 3402, 6289, 273, 394, 4611, 3402, 6289, 12, 74, 3402, 6289, 2375, 1769, 3639, 368, 1993, 315, 2902, 6, 1633, 358, 315, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4201, 19, 19818, 28, 19, 4937, 6, 3639, 368, 1534, 6005, 10770, 30, 10139, 16110, 2258, 261, 13180, 316, 3167, 2438, 39, 13, 3639, 284, 3402, 6289, 18, 29554, 2244, 12, 74, 5335, 1388, 18, 1289, 5335, 2932, 2902, 6, 3631, 284, 5335, 1388, 18, 1289, 5335, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4201, 19, 19818, 28, 19, 4937, 7923, 1769, 3639, 284, 4354, 1042, 18, 542, 3402, 6289, 12, 74, 3402, 6289, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 5114, 50, 1260, 416, 655, 12, 3078, 3402, 6289, 3153, 6289, 13, 288, 3639, 4611, 3402, 6289, 2624, 18, 6206, 12, 74, 3402, 6289, 1769, 3639, 284, 3402, 6289, 273, 394, 4611, 3402, 6289, 12, 74, 3402, 6289, 2375, 1769, 3639, 368, 1993, 315, 2902, 6, 1633, 358, 315, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4201, 19, 19818, 28, 19, 4937, 6, 3639, 368, 1534, 6005, 10770, 30, 10139, 16110, 2258, 261, 13180, 316, 3167, 2438, 39, 13, 3639, 284, 3402, 6289, 18, 29554, 2244, 12, 74, 5335, 1388, 18, 1289, 5335, 2932, 2902, 6, 3631, 284, 5335, 1388, 18, 1289, 5335, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4201, 19, 2 ]
return getRuntime().newFixnum(hashCode());
return getRuntime().newFixnum(value.hashCode());
public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/4b12521bf34cff2c9841b1dacb1a929f6def5327/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 1651, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 1132, 18, 2816, 1085, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 1651, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 1132, 18, 2816, 1085, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IProject[][] prereqs = ResourcesPlugin.getWorkspace().computePrerequisiteOrder(projects); ArrayList ordered = new ArrayList(); ordered.addAll(Arrays.asList(prereqs[0])); ordered.addAll(Arrays.asList(prereqs[1])); return ordered;
IWorkspace.ProjectOrder po = ResourcesPlugin.getWorkspace().computeProjectOrder(projects); ArrayList orderedProjects = new ArrayList(); orderedProjects.addAll(Arrays.asList(po.projects)); return orderedProjects;
List pruneResources(List resourceCollection) { // Optimize... if (resourceCollection.size() < 2) return resourceCollection; // Try the workspace's description build order if specified String[] orderedNames = ResourcesPlugin.getWorkspace().getDescription().getBuildOrder(); if (orderedNames != null) { List orderedProjects = new ArrayList(resourceCollection.size()); //Projects may not be in the build order but should be built if selected List unorderedProjects = new ArrayList(resourceCollection.size()); unorderedProjects.addAll(resourceCollection); for (int i = 0; i < orderedNames.length; i++) { String projectName = orderedNames[i]; for (int j = 0; j < resourceCollection.size(); j++) { IProject project = (IProject) resourceCollection.get(j); if (project.getName().equals(projectName)) { orderedProjects.add(project); unorderedProjects.remove(project); break; } } } //Add anything not specified before we return orderedProjects.addAll(unorderedProjects); return orderedProjects; } // Try the project prerequisite order then IProject[] projects = new IProject[resourceCollection.size()]; projects = (IProject[]) resourceCollection.toArray(projects); IProject[][] prereqs = ResourcesPlugin.getWorkspace().computePrerequisiteOrder(projects); ArrayList ordered = new ArrayList(); ordered.addAll(Arrays.asList(prereqs[0])); ordered.addAll(Arrays.asList(prereqs[1])); return ordered;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a9ca0e7393d25928f6a97ca63a1e3e29af827f31/BuildAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/BuildAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 987, 13293, 3805, 12, 682, 1058, 2532, 13, 288, 202, 759, 12056, 10153, 2777, 202, 430, 261, 3146, 2532, 18, 1467, 1435, 411, 576, 13, 202, 202, 2463, 1058, 2532, 31, 202, 759, 6161, 326, 6003, 1807, 2477, 1361, 1353, 309, 1269, 202, 780, 8526, 5901, 1557, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 3291, 7675, 588, 3116, 2448, 5621, 202, 430, 261, 9885, 1557, 480, 446, 13, 288, 202, 202, 682, 5901, 15298, 273, 394, 2407, 12, 3146, 2532, 18, 1467, 10663, 202, 202, 759, 15298, 2026, 486, 506, 316, 326, 1361, 1353, 1496, 1410, 506, 6650, 309, 3170, 202, 202, 682, 29573, 15298, 273, 394, 2407, 12, 3146, 2532, 18, 1467, 10663, 202, 202, 318, 9885, 15298, 18, 1289, 1595, 12, 3146, 2532, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5901, 1557, 18, 2469, 31, 277, 27245, 288, 1082, 202, 780, 17234, 273, 5901, 1557, 63, 77, 15533, 1082, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 1058, 2532, 18, 1467, 5621, 525, 27245, 288, 9506, 202, 45, 4109, 1984, 273, 261, 45, 4109, 13, 1058, 2532, 18, 588, 12, 78, 1769, 9506, 202, 430, 261, 4406, 18, 17994, 7675, 14963, 12, 4406, 461, 3719, 288, 6862, 202, 9885, 15298, 18, 1289, 12, 4406, 1769, 6862, 202, 318, 9885, 15298, 18, 4479, 12, 4406, 1769, 6862, 202, 8820, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 986, 6967, 486, 1269, 1865, 732, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 13293, 3805, 12, 682, 1058, 2532, 13, 288, 202, 759, 12056, 10153, 2777, 202, 430, 261, 3146, 2532, 18, 1467, 1435, 411, 576, 13, 202, 202, 2463, 1058, 2532, 31, 202, 759, 6161, 326, 6003, 1807, 2477, 1361, 1353, 309, 1269, 202, 780, 8526, 5901, 1557, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 3291, 7675, 588, 3116, 2448, 5621, 202, 430, 261, 9885, 1557, 480, 446, 13, 288, 202, 202, 682, 5901, 15298, 273, 394, 2407, 12, 3146, 2532, 18, 1467, 10663, 202, 202, 759, 15298, 2026, 486, 506, 316, 326, 1361, 1353, 1496, 1410, 506, 6650, 309, 3170, 202, 202, 682, 29573, 15298, 273, 394, 2407, 12, 3146, 2532, 18, 1467, 10663, 202, 202, 318, 9885, 2 ]
public org.quickfix.field.IOIQualifier getIOIQualifier() throws FieldNotFound { org.quickfix.field.IOIQualifier value = new org.quickfix.field.IOIQualifier();
public quickfix.field.IOIQualifier getIOIQualifier() throws FieldNotFound { quickfix.field.IOIQualifier value = new quickfix.field.IOIQualifier();
public org.quickfix.field.IOIQualifier getIOIQualifier() throws FieldNotFound { org.quickfix.field.IOIQualifier value = new org.quickfix.field.IOIQualifier(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationofInterest.java/clean/src/java/src/quickfix/fix40/IndicationofInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 336, 4294, 45, 16185, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 336, 4294, 45, 16185, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 16185, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
manager.add(filterAction); manager.add(refreshListAction); ISelection selection = viewer.getSelection(); if (!selection.isEmpty()) { IUndoableOperation operation = (IUndoableOperation)((IStructuredSelection) selection).getFirstElement(); selectiveUndoAction.setEnabled(operation.canUndo()); } else { selectiveUndoAction.setEnabled(false); }
manager.add(filterAction); manager.add(refreshListAction);
private void fillContextMenu(IMenuManager manager) { undoAction.update(); redoAction.update(); manager.add(undoAction); manager.add(redoAction); manager.add(new Separator()); manager.add(selectiveUndoAction); manager.add(filterAction); manager.add(refreshListAction); ISelection selection = viewer.getSelection(); if (!selection.isEmpty()) { IUndoableOperation operation = (IUndoableOperation)((IStructuredSelection) selection).getFirstElement(); selectiveUndoAction.setEnabled(operation.canUndo()); } else { selectiveUndoAction.setEnabled(false); } // Other plug-ins can contribute there actions here manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/50b0f4b798ee84ccffa054a9faa539415a2fbef7/UndoHistoryView.java/buggy/examples/org.eclipse.ui.examples.undo/Eclipse UI Examples Undo/org/eclipse/ui/examples/undo/views/UndoHistoryView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 27315, 12, 3445, 2104, 1318, 3301, 13, 288, 3639, 15436, 1803, 18, 2725, 5621, 3639, 24524, 1803, 18, 2725, 5621, 3639, 3301, 18, 1289, 12, 31226, 1803, 1769, 3639, 3301, 18, 1289, 12, 1118, 83, 1803, 1769, 202, 202, 4181, 18, 1289, 12, 2704, 27519, 10663, 202, 202, 4181, 18, 1289, 12, 4025, 688, 31224, 1803, 1769, 3639, 3301, 18, 1289, 12, 2188, 1803, 1769, 3639, 3301, 18, 1289, 12, 9144, 682, 1803, 1769, 7734, 467, 6233, 4421, 273, 14157, 18, 588, 6233, 5621, 3639, 309, 16051, 10705, 18, 291, 1921, 10756, 288, 5411, 467, 31224, 429, 2988, 1674, 273, 261, 45, 31224, 429, 2988, 13, 12443, 45, 30733, 6233, 13, 4421, 2934, 588, 3759, 1046, 5621, 5411, 2027, 688, 31224, 1803, 18, 542, 1526, 12, 7624, 18, 4169, 31224, 10663, 3639, 289, 469, 288, 5411, 2027, 688, 31224, 1803, 18, 542, 1526, 12, 5743, 1769, 3639, 289, 3639, 368, 4673, 15852, 17, 2679, 848, 356, 887, 1915, 4209, 2674, 3639, 3301, 18, 1289, 12, 2704, 27519, 12, 45, 2421, 22144, 1803, 2918, 18, 7969, 67, 8355, 7022, 55, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 918, 3636, 27315, 12, 3445, 2104, 1318, 3301, 13, 288, 3639, 15436, 1803, 18, 2725, 5621, 3639, 24524, 1803, 18, 2725, 5621, 3639, 3301, 18, 1289, 12, 31226, 1803, 1769, 3639, 3301, 18, 1289, 12, 1118, 83, 1803, 1769, 202, 202, 4181, 18, 1289, 12, 2704, 27519, 10663, 202, 202, 4181, 18, 1289, 12, 4025, 688, 31224, 1803, 1769, 3639, 3301, 18, 1289, 12, 2188, 1803, 1769, 3639, 3301, 18, 1289, 12, 9144, 682, 1803, 1769, 7734, 467, 6233, 4421, 273, 14157, 18, 588, 6233, 5621, 3639, 309, 16051, 10705, 18, 291, 1921, 10756, 288, 5411, 467, 31224, 429, 2988, 1674, 273, 261, 45, 31224, 429, 2988, 13, 12443, 45, 30733, 6233, 13, 4421, 2934, 588, 3759, 2 ]
public IRubyObject convertToFloat() {
public RubyFloat convertToFloat() {
public IRubyObject convertToFloat() { return getRuntime().newFloat(getDoubleValue()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4723, 8137, 4723, 1435, 288, 3639, 327, 18814, 7675, 2704, 4723, 12, 588, 5265, 620, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4723, 8137, 4723, 1435, 288, 3639, 327, 18814, 7675, 2704, 4723, 12, 588, 5265, 620, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Collection ifsWithServices = getIpInterfaceDao().findByServiceType(svcName);
Collection ifsWithServices = getIpInterfaceDao().findHierarchyByServiceType(svcName);
private void scheduleInterfacesWithService(String svcName) { log().debug("scheduleInterfacesWithService: svcName = " + svcName); Collection ifsWithServices = getIpInterfaceDao().findByServiceType(svcName); for (Iterator it = ifsWithServices.iterator(); it.hasNext();) { OnmsIpInterface iface = (OnmsIpInterface) it.next(); scheduleInterface(iface, svcName, true); } }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/34ca45a4bf7ff0888419af339cdab20f26ef4593/Collectd.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/collectd/Collectd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4788, 10273, 1190, 1179, 12, 780, 7538, 461, 13, 288, 202, 202, 1330, 7675, 4148, 2932, 10676, 10273, 1190, 1179, 30, 7538, 461, 273, 315, 397, 7538, 461, 1769, 202, 202, 2532, 309, 87, 1190, 5676, 273, 336, 5273, 1358, 11412, 7675, 4720, 858, 1179, 559, 12, 30992, 461, 1769, 202, 202, 1884, 261, 3198, 518, 273, 309, 87, 1190, 5676, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 1398, 959, 5273, 1358, 9751, 273, 261, 1398, 959, 5273, 1358, 13, 518, 18, 4285, 5621, 1082, 202, 10676, 1358, 12, 31479, 16, 7538, 461, 16, 638, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 4788, 10273, 1190, 1179, 12, 780, 7538, 461, 13, 288, 202, 202, 1330, 7675, 4148, 2932, 10676, 10273, 1190, 1179, 30, 7538, 461, 273, 315, 397, 7538, 461, 1769, 202, 202, 2532, 309, 87, 1190, 5676, 273, 336, 5273, 1358, 11412, 7675, 4720, 858, 1179, 559, 12, 30992, 461, 1769, 202, 202, 1884, 261, 3198, 518, 273, 309, 87, 1190, 5676, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 1398, 959, 5273, 1358, 9751, 273, 261, 1398, 959, 5273, 1358, 13, 518, 18, 4285, 5621, 1082, 202, 10676, 1358, 12, 31479, 16, 7538, 461, 16, 638, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (event != null) retargetAction.runWithEvent(event); else retargetAction.run();
if (event != null) { retargetAction.runWithEvent(event); } else { retargetAction.run(); }
public void runWithEvent(Event event) { if (retargetAction == null) { super.runWithEvent(event); return; } if (event != null) retargetAction.runWithEvent(event); else retargetAction.run(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WWinPluginAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPluginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1190, 1133, 12, 1133, 871, 13, 288, 3639, 309, 261, 1349, 826, 1803, 422, 446, 13, 288, 5411, 2240, 18, 2681, 1190, 1133, 12, 2575, 1769, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2575, 480, 446, 13, 5411, 325, 826, 1803, 18, 2681, 1190, 1133, 12, 2575, 1769, 3639, 469, 5411, 325, 826, 1803, 18, 2681, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 1190, 1133, 12, 1133, 871, 13, 288, 3639, 309, 261, 1349, 826, 1803, 422, 446, 13, 288, 5411, 2240, 18, 2681, 1190, 1133, 12, 2575, 1769, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2575, 480, 446, 13, 5411, 325, 826, 1803, 18, 2681, 1190, 1133, 12, 2575, 1769, 3639, 469, 5411, 325, 826, 1803, 18, 2681, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (selectedVet != null) {
if (selectedVet != null)
public String getSelectedObjectName() { Vet selectedVet = getSelectedVet(); if (selectedVet != null) { return selectedVet.getFirstName() + " " + selectedVet.getLastName(); } else { return "Vets"; } }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/970bcdd60ee0c816ab5b641ca1f14ae19799a842/VetManagerView.java/buggy/samples/petclinic/gui/src/main/java/org/springframework/richclient/samples/petclinic/ui/VetManagerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 514, 16625, 16707, 1435, 288, 7734, 776, 278, 3170, 58, 278, 273, 16625, 58, 278, 5621, 7734, 309, 261, 8109, 58, 278, 480, 446, 13, 10792, 327, 3170, 58, 278, 18, 588, 3759, 461, 1435, 397, 315, 315, 397, 3170, 58, 278, 18, 588, 3024, 461, 5621, 7734, 289, 7734, 469, 288, 10792, 327, 315, 58, 2413, 14432, 7734, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2398, 1071, 514, 16625, 16707, 1435, 288, 7734, 776, 278, 3170, 58, 278, 273, 16625, 58, 278, 5621, 7734, 309, 261, 8109, 58, 278, 480, 446, 13, 10792, 327, 3170, 58, 278, 18, 588, 3759, 461, 1435, 397, 315, 315, 397, 3170, 58, 278, 18, 588, 3024, 461, 5621, 7734, 289, 7734, 469, 288, 10792, 327, 315, 58, 2413, 14432, 7734, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
BeanProperty bp = new BeanProperty(getter, setter, setters); toAdd.put(beanPropertyName, bp); }
} BeanProperty bp = new BeanProperty(getter, setter, setters); toAdd.put(beanPropertyName, bp);
private void reflect(Scriptable scope) { // We reflect methods first, because we want overloaded field/method // names to be allocated to the NativeJavaMethod before the field // gets in the way. Method[] methods = cl.getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; int mods = method.getModifiers(); if (!Modifier.isPublic(mods)) { continue; } boolean isStatic = Modifier.isStatic(mods); Hashtable ht = isStatic ? staticMembers : members; String name = method.getName(); Object value = ht.get(name); if (value == null) { ht.put(name, method); } else { ObjArray overloadedMethods; if (value instanceof ObjArray) { overloadedMethods = (ObjArray)value; } else { if (!(value instanceof Method)) Kit.codeBug(); // value should be instance of Method as at this stage // staticMembers and members can only contain methods overloadedMethods = new ObjArray(); overloadedMethods.add(value); ht.put(name, overloadedMethods); } overloadedMethods.add(method); } } // replace Method instances by wrapped NativeJavaMethod objects // first in staticMembers and then in members for (int tableCursor = 0; tableCursor != 2; ++tableCursor) { boolean isStatic = (tableCursor == 0); Hashtable ht = (isStatic) ? staticMembers : members; Enumeration e = ht.keys(); while (e.hasMoreElements()) { String name = (String)e.nextElement(); MemberBox[] methodBoxes; Object value = ht.get(name); if (value instanceof Method) { methodBoxes = new MemberBox[1]; methodBoxes[0] = new MemberBox((Method)value); } else { ObjArray overloadedMethods = (ObjArray)value; int N = overloadedMethods.size(); if (N < 2) Kit.codeBug(); methodBoxes = new MemberBox[N]; for (int i = 0; i != N; ++i) { Method method = (Method)overloadedMethods.get(i); methodBoxes[i] = new MemberBox(method); } } NativeJavaMethod fun = new NativeJavaMethod(methodBoxes); if (scope != null) { ScriptRuntime.setFunctionProtoAndParent(fun, scope); } ht.put(name, fun); } } // Reflect fields. Field[] fields = cl.getFields(); for (int i = 0; i < fields.length; i++) { Field field = fields[i]; int mods = field.getModifiers(); if (!Modifier.isPublic(mods)) { continue; } boolean isStatic = Modifier.isStatic(mods); Hashtable ht = isStatic ? staticMembers : members; String name = field.getName(); Object member = ht.get(name); if (member == null) { ht.put(name, field); } else if (member instanceof NativeJavaMethod) { NativeJavaMethod method = (NativeJavaMethod) member; FieldAndMethods fam = new FieldAndMethods(scope, method.methods, field); Hashtable fmht = isStatic ? staticFieldAndMethods : fieldAndMethods; if (fmht == null) { fmht = new Hashtable(4); if (isStatic) { staticFieldAndMethods = fmht; } else { fieldAndMethods = fmht; } } fmht.put(name, fam); ht.put(name, fam); } else if (member instanceof Field) { Field oldField = (Field) member; // If this newly reflected field shadows an inherited field, // then replace it. Otherwise, since access to the field // would be ambiguous from Java, no field should be reflected. // For now, the first field found wins, unless another field // explicitly shadows it. if (oldField.getDeclaringClass(). isAssignableFrom(field.getDeclaringClass())) { ht.put(name, field); } } else { // "unknown member type" Kit.codeBug(); } } // Create bean propeties from corresponding get/set methods first for // static members and then for instance members for (int tableCursor = 0; tableCursor != 2; ++tableCursor) { boolean isStatic = (tableCursor == 0); Hashtable ht = (isStatic) ? staticMembers : members; Hashtable toAdd = new Hashtable(); // Now, For each member, make "bean" properties. for (Enumeration e = ht.keys(); e.hasMoreElements(); ) { // Is this a getter? String name = (String) e.nextElement(); boolean memberIsGetMethod = name.startsWith("get"); boolean memberIsIsMethod = name.startsWith("is"); if (memberIsGetMethod || memberIsIsMethod) { // Double check name component. String nameComponent = name.substring(memberIsGetMethod ? 3 : 2); if (nameComponent.length() == 0) continue; // Make the bean property name. String beanPropertyName = nameComponent; char ch0 = nameComponent.charAt(0); if (Character.isUpperCase(ch0)) { if (nameComponent.length() == 1) { beanPropertyName = nameComponent.toLowerCase(); } else { char ch1 = nameComponent.charAt(1); if (!Character.isUpperCase(ch1)) { beanPropertyName = Character.toLowerCase(ch0) +nameComponent.substring(1); } } } // If we already have a member by this name, don't do this // property. if (ht.containsKey(beanPropertyName)) continue; // Get the method by this name. Object member = ht.get(name); if (!(member instanceof NativeJavaMethod)) continue; NativeJavaMethod njmGet = (NativeJavaMethod)member; MemberBox getter = extractGetMethod(njmGet.methods, isStatic); if (getter != null) { // We have a getter. Now, do we have a setter? NativeJavaMethod njmSet = null; MemberBox setter = null; NativeJavaMethod setters = null; String setterName = "set".concat(nameComponent); if (ht.containsKey(setterName)) { // Is this value a method? member = ht.get(setterName); if (member instanceof NativeJavaMethod) { njmSet = (NativeJavaMethod)member; Class type = getter.method().getReturnType(); setter = extractSetMethod(type, njmSet.methods, isStatic); if (njmSet.methods.length > 1) { setters = njmSet; } } } // Make the property. BeanProperty bp = new BeanProperty(getter, setter, setters); toAdd.put(beanPropertyName, bp); } } } // Add the new bean properties. for (Enumeration e = toAdd.keys(); e.hasMoreElements();) { Object key = e.nextElement(); Object value = toAdd.get(key); ht.put(key, value); } } // Reflect constructors Constructor[] constructors = cl.getConstructors(); ctors = new MemberBox[constructors.length]; for (int i = 0; i != constructors.length; ++i) { ctors[i] = new MemberBox(constructors[i]); } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/c8c17412af9d4b22117bfb1a3d56f6cba4029088/JavaMembers.java/clean/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3037, 12, 3651, 429, 2146, 13, 565, 288, 3639, 368, 1660, 3037, 2590, 1122, 16, 2724, 732, 2545, 1879, 4230, 652, 19, 2039, 3639, 368, 1257, 358, 506, 11977, 358, 326, 16717, 5852, 1305, 1865, 326, 652, 3639, 368, 5571, 316, 326, 4031, 18, 3639, 2985, 8526, 2590, 273, 927, 18, 588, 4712, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2590, 18, 2469, 31, 277, 27245, 288, 5411, 2985, 707, 273, 2590, 63, 77, 15533, 5411, 509, 15546, 273, 707, 18, 588, 11948, 5621, 5411, 309, 16051, 9829, 18, 291, 4782, 12, 22760, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 1250, 16116, 273, 12832, 18, 291, 5788, 12, 22760, 1769, 5411, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 5411, 514, 508, 273, 707, 18, 17994, 5621, 5411, 1033, 460, 273, 14049, 18, 588, 12, 529, 1769, 5411, 309, 261, 1132, 422, 446, 13, 288, 7734, 14049, 18, 458, 12, 529, 16, 707, 1769, 5411, 289, 469, 288, 7734, 18760, 1076, 1879, 4230, 4712, 31, 7734, 309, 261, 1132, 1276, 18760, 1076, 13, 288, 10792, 1879, 4230, 4712, 273, 261, 2675, 1076, 13, 1132, 31, 7734, 289, 469, 288, 10792, 309, 16051, 12, 1132, 1276, 2985, 3719, 1475, 305, 18, 710, 19865, 5621, 10792, 368, 460, 1410, 506, 791, 434, 2985, 487, 622, 333, 6009, 10792, 368, 760, 6918, 471, 4833, 848, 1338, 912, 2590, 10792, 1879, 4230, 4712, 273, 394, 18760, 1076, 5621, 10792, 1879, 4230, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3037, 12, 3651, 429, 2146, 13, 565, 288, 3639, 368, 1660, 3037, 2590, 1122, 16, 2724, 732, 2545, 1879, 4230, 652, 19, 2039, 3639, 368, 1257, 358, 506, 11977, 358, 326, 16717, 5852, 1305, 1865, 326, 652, 3639, 368, 5571, 316, 326, 4031, 18, 3639, 2985, 8526, 2590, 273, 927, 18, 588, 4712, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2590, 18, 2469, 31, 277, 27245, 288, 5411, 2985, 707, 273, 2590, 63, 77, 15533, 5411, 509, 15546, 273, 707, 18, 588, 11948, 5621, 5411, 309, 16051, 9829, 18, 291, 4782, 12, 22760, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 1250, 16116, 273, 12832, 18, 291, 5788, 12, 22760, 1769, 5411, 2 ]
BlockArea blockArea = new BlockArea(fs, area.getAllocationWidth(), area.spaceLeft(), startIndent, endIndent, 0, align, alignLast, lineHeight); blockArea.setPage(area.getPage()); blockArea.setBackgroundColor(backgroundColor); blockArea.start();
if (this.isInListBody) { startIndent += bodyIndent + distanceBetweenStarts; bodyIndent = startIndent; } if (this.isInTableCell) { startIndent += forcedStartOffset; endIndent += area.getAllocationWidth() - forcedWidth - forcedStartOffset; } String id = this.properties.get("id").getString(); area.getIDReferences().initializeID(id, area); } BlockArea blockArea = new BlockArea(fs, area.getAllocationWidth(), area.spaceLeft(), startIndent, endIndent, 0, align, alignLast, lineHeight); blockArea.setPage(area.getPage()); blockArea.setBackgroundColor(backgroundColor); blockArea.start();
public Status layout(Area area) throws FOPException { if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getString(); String fontWeight = this.properties.get("font-weight").getString(); int fontSize = this.properties.get("font-size").getLength().mvalue(); this.fs = new FontState(area.getFontInfo(), fontFamily, fontStyle, fontWeight, fontSize); this.align = this.properties.get("text-align").getEnum(); this.alignLast = this.properties.get("text-align-last").getEnum(); this.lineHeight = this.properties.get("line-height").getLength().mvalue(); this.startIndent = this.properties.get("start-indent").getLength().mvalue(); this.endIndent = this.properties.get("end-indent").getLength().mvalue(); this.spaceBefore = this.properties.get("space-before.optimum").getLength().mvalue(); this.spaceAfter = this.properties.get("space-after.optimum").getLength().mvalue(); this.provisionalDistanceBetweenStarts = this.properties.get("provisional-distance-between-starts").getLength().mvalue(); this.provisionalLabelSeparation = this.properties.get("provisional-label-separation").getLength().mvalue(); this.spaceBetweenListRows = 0; // not used at present this.backgroundColor = this.properties.get("background-color").getColorType(); this.marker = 0; if (area instanceof BlockArea) { area.end(); } if (spaceBefore != 0) { area.addDisplaySpace(spaceBefore); } if (this.isInListBody) { startIndent += bodyIndent + distanceBetweenStarts; bodyIndent = startIndent; } if (this.isInTableCell) { startIndent += forcedStartOffset; endIndent += area.getAllocationWidth() - forcedWidth - forcedStartOffset; } // initialize id String id = this.properties.get("id").getString(); area.getIDReferences().initializeID(id,area); } BlockArea blockArea = new BlockArea(fs, area.getAllocationWidth(), area.spaceLeft(), startIndent, endIndent, 0, align, alignLast, lineHeight); blockArea.setPage(area.getPage()); blockArea.setBackgroundColor(backgroundColor); blockArea.start(); blockArea.setAbsoluteHeight(area.getAbsoluteHeight()); blockArea.setIDReferences(area.getIDReferences()); int numChildren = this.children.size(); for (int i = this.marker; i < numChildren; i++) { if (!(children.elementAt(i) instanceof ListItem)) { MessageHandler.errorln("WARNING: This version of FOP requires list-items inside list-blocks"); return new Status(Status.OK); } ListItem listItem = (ListItem) children.elementAt(i); listItem.setDistanceBetweenStarts(this.provisionalDistanceBetweenStarts); listItem.setLabelSeparation(this.provisionalLabelSeparation); listItem.setBodyIndent(this.bodyIndent); Status status; if ((status = listItem.layout(blockArea)).isIncomplete()) { this.marker = i; blockArea.end(); area.addChild(blockArea); area.increaseHeight(blockArea.getHeight()); area.setAbsoluteHeight(blockArea.getAbsoluteHeight()); return status; } } blockArea.end(); area.addChild(blockArea); area.increaseHeight(blockArea.getHeight()); area.setAbsoluteHeight(blockArea.getAbsoluteHeight()); if (spaceAfter != 0) { area.addDisplaySpace(spaceAfter); } if (area instanceof BlockArea) { area.start(); } return new Status(Status.OK); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/f8c7932c511034da70219c920bd60ef5c4d4636c/ListBlock.java/buggy/src/org/apache/fop/fo/flow/ListBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2685, 3511, 12, 5484, 5091, 13, 1216, 478, 3665, 503, 288, 202, 430, 261, 2211, 18, 11145, 422, 10485, 13, 288, 202, 565, 514, 3512, 9203, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 9309, 20387, 588, 780, 5621, 3196, 565, 514, 3512, 2885, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 4060, 20387, 588, 780, 5621, 3196, 565, 514, 3512, 6544, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 4865, 20387, 588, 780, 5621, 3196, 565, 509, 16746, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 1467, 20387, 588, 1782, 7675, 81, 1132, 5621, 9785, 202, 565, 333, 18, 2556, 273, 394, 10063, 1119, 12, 5036, 18, 588, 5711, 966, 9334, 3512, 9203, 16, 6862, 565, 3512, 2885, 16, 3512, 6544, 16, 16746, 1769, 202, 377, 202, 565, 333, 18, 7989, 273, 333, 18, 4738, 18, 588, 2932, 955, 17, 7989, 20387, 588, 3572, 5621, 3196, 565, 333, 18, 7989, 3024, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 955, 17, 7989, 17, 2722, 20387, 588, 3572, 5621, 3196, 565, 333, 18, 1369, 2686, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 1369, 17, 4210, 20387, 588, 1782, 7675, 81, 1132, 5621, 3196, 565, 333, 18, 1937, 7790, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 1937, 17, 9355, 20387, 588, 1782, 7675, 81, 1132, 5621, 3196, 565, 333, 18, 409, 7790, 273, 202, 202, 2211, 18, 4738, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2685, 3511, 12, 5484, 5091, 13, 1216, 478, 3665, 503, 288, 202, 430, 261, 2211, 18, 11145, 422, 10485, 13, 288, 202, 565, 514, 3512, 9203, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 9309, 20387, 588, 780, 5621, 3196, 565, 514, 3512, 2885, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 4060, 20387, 588, 780, 5621, 3196, 565, 514, 3512, 6544, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 4865, 20387, 588, 780, 5621, 3196, 565, 509, 16746, 273, 202, 202, 2211, 18, 4738, 18, 588, 2932, 5776, 17, 1467, 20387, 588, 1782, 7675, 81, 1132, 5621, 9785, 202, 565, 333, 18, 2556, 273, 394, 10063, 1119, 2 ]
final public String yytext() { return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );
public final String yytext() { return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
final public String yytext() { return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead ); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 514, 9016, 955, 1435, 288, 565, 327, 394, 514, 12, 9016, 67, 4106, 16, 9016, 67, 1937, 1994, 16, 9016, 67, 3355, 329, 1616, 17, 6795, 67, 1937, 1994, 11272, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 1071, 514, 9016, 955, 1435, 288, 565, 327, 394, 514, 12, 9016, 67, 4106, 16, 9016, 67, 1937, 1994, 16, 9016, 67, 3355, 329, 1616, 17, 6795, 67, 1937, 1994, 11272, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(canvasAdded && (canvas != null)) {
if(animator != null) {
public final void destroy() { // Run this on another thread than the AWE event queue to // make sure the call to Animator.stop() completes before exiting. new Thread( new Runnable() { public void run() { if(canvasAdded && (canvas != null)) { animator.stop(); System.exit(0); } } } ).start(); }
46042 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46042/9a7347575a61d9dc348de3504325a2b07c9846c8/JOGLScreensaver.java/buggy/src/incubator/screensaver/src/api/org/jdesktop/jdic/screensaver/JOGLScreensaver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 5546, 1435, 288, 3639, 368, 1939, 333, 603, 4042, 2650, 2353, 326, 432, 6950, 871, 2389, 358, 3639, 368, 1221, 3071, 326, 745, 358, 1922, 12502, 18, 5681, 1435, 7218, 1865, 15702, 18, 3639, 394, 4884, 12, 5411, 394, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 309, 12, 304, 12502, 480, 446, 13, 288, 13491, 10536, 639, 18, 5681, 5621, 13491, 2332, 18, 8593, 12, 20, 1769, 10792, 289, 7734, 289, 5411, 289, 3639, 262, 18, 1937, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 5546, 1435, 288, 3639, 368, 1939, 333, 603, 4042, 2650, 2353, 326, 432, 6950, 871, 2389, 358, 3639, 368, 1221, 3071, 326, 745, 358, 1922, 12502, 18, 5681, 1435, 7218, 1865, 15702, 18, 3639, 394, 4884, 12, 5411, 394, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 309, 12, 304, 12502, 480, 446, 13, 288, 13491, 10536, 639, 18, 5681, 5621, 13491, 2332, 18, 8593, 12, 20, 1769, 10792, 289, 7734, 289, 5411, 289, 3639, 262, 18, 1937, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
debug="newAggregate";
private void newAggregate(Row r) { debug="newAggregate"; //$NON-NLS-1$ // Put all the counters at 0 for (int i=0;i<data.counts.length;i++) data.counts[i]=0; data.agg = new Row(); for (int i=0;i<data.subjectnrs.length;i++) { Value subj = r.getValue(data.subjectnrs[i]); Value v=null; switch(meta.getAggregateType()[i]) { case GroupByMeta.TYPE_GROUP_SUM : case GroupByMeta.TYPE_GROUP_AVERAGE : case GroupByMeta.TYPE_GROUP_COUNT_ALL : v = new Value(meta.getAggregateField()[i], subj.isNumeric()?subj.getType():Value.VALUE_TYPE_NUMBER); switch(subj.getType()) { case Value.VALUE_TYPE_BIGNUMBER: v.setValue(new BigDecimal(0)); break; case Value.VALUE_TYPE_INTEGER: v.setValue(0L); break; case Value.VALUE_TYPE_NUMBER: default: v.setValue(0.0); break; } break; case GroupByMeta.TYPE_GROUP_MIN : case GroupByMeta.TYPE_GROUP_MAX : v = new Value(meta.getAggregateField()[i], subj.getType()); v.setValue(subj); break; case GroupByMeta.TYPE_GROUP_CONCAT_COMMA : v = new Value(meta.getAggregateField()[i], Value.VALUE_TYPE_STRING); v.setValue(""); //$NON-NLS-1$ break; default: break; } if (meta.getAggregateType()[i]!=GroupByMeta.TYPE_GROUP_COUNT_ALL) { v.setLength(subj.getLength(), subj.getPrecision()); } if (v!=null) data.agg.addValue(v); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/b8c6b02ffc35cf6ae44d1cb0cdf4ecec0144af21/GroupBy.java/clean/kettle/src/be/ibridge/kettle/trans/step/groupby/GroupBy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 394, 11490, 12, 1999, 436, 13, 202, 95, 202, 202, 4148, 1546, 2704, 11490, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 759, 4399, 777, 326, 13199, 622, 374, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 77, 32, 892, 18, 8008, 18, 2469, 31, 77, 27245, 501, 18, 8008, 63, 77, 65, 33, 20, 31, 9506, 202, 892, 18, 17535, 273, 394, 6556, 5621, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 77, 32, 892, 18, 7857, 82, 5453, 18, 2469, 31, 77, 27245, 202, 202, 95, 1082, 202, 620, 15333, 273, 436, 18, 24805, 12, 892, 18, 7857, 82, 5453, 63, 77, 19226, 1082, 202, 620, 331, 33, 2011, 31, 1082, 202, 9610, 12, 3901, 18, 588, 11490, 559, 1435, 63, 77, 5717, 1082, 202, 95, 9506, 202, 3593, 3756, 858, 2781, 18, 2399, 67, 8468, 67, 14020, 5411, 294, 4697, 202, 3593, 3756, 858, 2781, 18, 2399, 67, 8468, 67, 37, 2204, 2833, 3639, 294, 9506, 202, 3593, 3756, 858, 2781, 18, 2399, 67, 8468, 67, 7240, 67, 4685, 1377, 294, 10792, 331, 273, 394, 1445, 12, 3901, 18, 588, 11490, 974, 1435, 63, 77, 6487, 15333, 18, 291, 9902, 1435, 35, 1717, 78, 18, 588, 559, 13332, 620, 18, 4051, 67, 2399, 67, 9931, 1769, 10792, 1620, 12, 1717, 78, 18, 588, 559, 10756, 10792, 288, 10792, 648, 1445, 18, 4051, 67, 2399, 67, 19044, 9931, 30, 331, 18, 542, 620, 12, 2704, 8150, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 11490, 12, 1999, 436, 13, 202, 95, 202, 202, 4148, 1546, 2704, 11490, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 759, 4399, 777, 326, 13199, 622, 374, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 77, 32, 892, 18, 8008, 18, 2469, 31, 77, 27245, 501, 18, 8008, 63, 77, 65, 33, 20, 31, 9506, 202, 892, 18, 17535, 273, 394, 6556, 5621, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 77, 32, 892, 18, 7857, 82, 5453, 18, 2469, 31, 77, 27245, 202, 202, 95, 1082, 202, 620, 15333, 273, 436, 18, 24805, 12, 892, 18, 7857, 82, 5453, 63, 77, 19226, 1082, 202, 620, 331, 33, 2011, 2 ]
if (parameters.returnParam.getType().isBaseType()) outputs.add(processParameter(parameters.returnParam)); else { ComplexTypeDescriptor complex = new ComplexTypeDescriptor(); complex.setName(parameters.returnParam.getName()); complex.setType(parameters.returnParam.getType().getQName().getLocalPart()); outputs.add(complex); }
outputs.add(processParameter(parameters.returnParam));
public void getOperationParameters(String operationName, List inputs, List outputs) throws UnknownOperationException, IOException { Operation operation = getOperation(operationName); if (operation == null) { throw new UnknownOperationException("operation called " + operationName + " does not exist for this wsdl"); } Parameters parameters = getSymbolTable().getOperationParameters(operation, "", new BindingEntry(getBinding())); for (Iterator iterator = parameters.list.iterator(); iterator.hasNext();) { Parameter param = (Parameter) iterator.next(); if (param.getMode() == Parameter.IN) { TypeDescriptor typeDescriptor = processParameter(param); if (typeDescriptor instanceof ComplexTypeDescriptor && getStyle().equals("document")) { //for document based, if operation requires no parameters the param still exists (representing the operation) but with empty inner elements if (((ComplexTypeDescriptor)typeDescriptor).getElements().size()>0) { inputs.add(typeDescriptor); } } else { inputs.add(typeDescriptor); } } else if (param.getMode() == Parameter.OUT) outputs.add(processParameter(param)); else if (param.getMode() == Parameter.INOUT) { inputs.add(processParameter(param)); outputs.add(processParameter(param)); } } if (parameters.returnParam != null) { if (parameters.returnParam.getType().isBaseType()) outputs.add(processParameter(parameters.returnParam)); else { ComplexTypeDescriptor complex = new ComplexTypeDescriptor(); complex.setName(parameters.returnParam.getName()); complex.setType(parameters.returnParam.getType().getQName().getLocalPart()); outputs.add(complex); } } cachedComplexTypes.clear(); }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/20b77ada38fc5b39e414f249ac6e7f95a8ed7e60/WSDLParser.java/clean/trunk/taverna1.0/src/org/embl/ebi/escience/scuflworkers/wsdl/parser/WSDLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21162, 2402, 12, 780, 22697, 16, 987, 4540, 16, 987, 6729, 13, 1082, 202, 15069, 9077, 10602, 16, 1860, 288, 202, 202, 2988, 1674, 273, 21162, 12, 7624, 461, 1769, 202, 202, 430, 261, 7624, 422, 446, 13, 288, 1082, 202, 12849, 394, 9077, 10602, 2932, 7624, 2566, 315, 397, 22697, 397, 315, 1552, 486, 1005, 364, 333, 17642, 8863, 202, 202, 97, 202, 202, 2402, 1472, 273, 18712, 1388, 7675, 588, 2988, 2402, 12, 7624, 16, 23453, 394, 15689, 1622, 12, 588, 5250, 1435, 10019, 202, 202, 1884, 261, 3198, 2775, 273, 1472, 18, 1098, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 1662, 579, 273, 261, 1662, 13, 2775, 18, 4285, 5621, 1082, 202, 430, 261, 891, 18, 588, 2309, 1435, 422, 5498, 18, 706, 13, 1082, 202, 95, 9506, 202, 559, 3187, 618, 3187, 273, 1207, 1662, 12, 891, 1769, 9506, 202, 430, 261, 723, 3187, 1276, 16060, 559, 3187, 597, 14210, 7675, 14963, 2932, 5457, 6, 3719, 9506, 202, 95, 6862, 202, 759, 1884, 1668, 2511, 16, 309, 1674, 4991, 1158, 1472, 326, 579, 4859, 1704, 261, 28205, 310, 326, 1674, 13, 1496, 598, 1008, 3443, 2186, 6862, 202, 430, 261, 12443, 12795, 559, 3187, 13, 723, 3187, 2934, 588, 3471, 7675, 1467, 1435, 34, 20, 13, 6862, 202, 95, 25083, 202, 10029, 18, 1289, 12, 723, 3187, 1769, 6862, 202, 97, 9506, 202, 97, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 10029, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21162, 2402, 12, 780, 22697, 16, 987, 4540, 16, 987, 6729, 13, 1082, 202, 15069, 9077, 10602, 16, 1860, 288, 202, 202, 2988, 1674, 273, 21162, 12, 7624, 461, 1769, 202, 202, 430, 261, 7624, 422, 446, 13, 288, 1082, 202, 12849, 394, 9077, 10602, 2932, 7624, 2566, 315, 397, 22697, 397, 315, 1552, 486, 1005, 364, 333, 17642, 8863, 202, 202, 97, 202, 202, 2402, 1472, 273, 18712, 1388, 7675, 588, 2988, 2402, 12, 7624, 16, 23453, 394, 15689, 1622, 12, 588, 5250, 1435, 10019, 202, 202, 1884, 261, 3198, 2775, 273, 1472, 18, 1098, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 1662, 579, 273, 261, 1662, 13, 2775, 2 ]
public TA_RetCode BOP(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) {
public TA_RetCode BOP( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ) {
public TA_RetCode BOP(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int outIdx, i; double tempReal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; outIdx = 0; for (i = startIdx; i <= endIdx; i++) { tempReal = inHigh[i] - inLow[i]; if ((tempReal < 0.00000001)) outReal[outIdx++] = 0.0; else outReal[outIdx++] = (inClose[i] - inOpen[i]) / tempReal; } outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 605, 3665, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1645, 29205, 63, 5717, 288, 202, 202, 474, 596, 4223, 16, 277, 31, 202, 202, 9056, 31497, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 202, 202, 659, 4223, 273, 374, 31, 202, 202, 1884, 261, 77, 273, 27108, 31, 277, 1648, 679, 4223, 31, 277, 27245, 288, 1082, 202, 5814, 6955, 273, 316, 8573, 63, 77, 65, 300, 316, 10520, 63, 77, 15533, 1082, 202, 430, 14015, 5814, 6955, 411, 374, 18, 9449, 1611, 3719, 9506, 202, 659, 6955, 63, 659, 4223, 9904, 65, 273, 374, 18, 20, 31, 1082, 202, 12107, 9506, 202, 659, 6955, 63, 659, 4223, 9904, 65, 273, 261, 267, 4605, 63, 77, 65, 300, 316, 3678, 63, 77, 5717, 342, 31497, 31, 202, 202, 97, 202, 202, 659, 22816, 1046, 18, 1132, 273, 596, 4223, 31, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 605, 3665, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1645, 29205, 63, 5717, 288, 202, 202, 474, 596, 4223, 16, 277, 31, 202, 202, 9056, 31497, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 2 ]
u3 = newAid; }
u3 = newAid; }
public void setAId(String newAid) { u3 = newAid; }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/clean/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 37, 548, 12, 780, 394, 37, 350, 13, 288, 202, 202, 89, 23, 273, 394, 37, 350, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 37, 548, 12, 780, 394, 37, 350, 13, 288, 202, 202, 89, 23, 273, 394, 37, 350, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println(" ------ REQUEST ------");
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 ["+strResponse+"]"); cce.setErrorNumber("-"); throw cce; }else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
57901 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57901/ca5208385a4066b89fd7272bbf1c18ec2790c314/KortathjonustanCreditCardClient.java/buggy/src/java/com/idega/block/creditcard/business/KortathjonustanCreditCardClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 18559, 7521, 1064, 1435, 1216, 1475, 499, 421, 78, 265, 89, 541, 6063, 503, 288, 202, 202, 5582, 14544, 1790, 273, 446, 31, 202, 202, 3163, 18, 659, 18, 8222, 2932, 31913, 12492, 31913, 8863, 1082, 21114, 565, 368, 5748, 328, 13649, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 698, 288, 1082, 202, 6745, 1227, 1004, 273, 336, 6745, 1227, 5621, 1082, 202, 780, 1892, 609, 3349, 751, 33, 394, 6674, 5621, 377, 202, 202, 6923, 1396, 12, 701, 3349, 751, 16, 9759, 67, 20609, 16, 23832, 1769, 759, 6, 4256, 33, 3787, 6, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 4714, 16, 7443, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 13784, 16, 23446, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 21417, 916, 67, 15176, 67, 734, 16, 29749, 916, 67, 15176, 67, 734, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 21417, 916, 67, 13355, 16, 29749, 916, 67, 13355, 14865, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 6743, 67, 9931, 16, 609, 6743, 1854, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 6743, 67, 18433, 862, 16, 609, 6743, 17033, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 2192, 51, 5321, 16, 609, 6275, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 7509, 25231, 67, 5572, 16, 609, 28976, 1769, 1377, 714, 1396, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18559, 7521, 1064, 1435, 1216, 1475, 499, 421, 78, 265, 89, 541, 6063, 503, 288, 202, 202, 5582, 14544, 1790, 273, 446, 31, 202, 202, 3163, 18, 659, 18, 8222, 2932, 31913, 12492, 31913, 8863, 1082, 21114, 565, 368, 5748, 328, 13649, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 698, 288, 1082, 202, 6745, 1227, 1004, 273, 336, 6745, 1227, 5621, 1082, 202, 780, 1892, 609, 3349, 751, 33, 394, 6674, 5621, 377, 202, 202, 6923, 1396, 12, 701, 3349, 751, 16, 9759, 67, 20609, 16, 23832, 1769, 759, 6, 4256, 33, 3787, 6, 1377, 714, 1396, 12, 701, 3349, 751, 16, 9759, 67, 4714, 16, 7443, 1769, 1377, 714, 1396, 12, 701, 3349, 751, 2 ]
String[] userPaths = option.getIncludePaths(); for (int index = 0; index < userPaths.length; ++index) { IPath userPath = new Path(userPaths[index]); if (userPath.isAbsolute()) { paths.add(userPath.toOSString()); } else { IPath absPath = root.addTrailingSeparator().append(userPath); paths.add(absPath.makeAbsolute().toOSString());
IOptionApplicability applicabilityCalculator = option .getApplicabilityCalculator(); if (applicabilityCalculator == null || applicabilityCalculator.isOptionUsedInCommandLine(tool)) { String[] userPaths = option.getIncludePaths(); for (int index = 0; index < userPaths.length; ++index) { IPath userPath = new Path(userPaths[index]); if (userPath.isAbsolute()) { paths.add(userPath.toOSString()); } else { IPath absPath = root.addTrailingSeparator().append(userPath); paths.add(absPath.makeAbsolute().toOSString()); }
public String[] getIncludePaths() { // Return the include paths for the default configuration ArrayList paths = getIncludePathEntries(); IConfiguration config = getDefaultConfiguration(); IPath location = owner.getLocation(); // If the build info is out of date this might be null if (location == null) { location = new Path("."); //$NON-NLS-1$ } if (config != null) { IPath root = location.addTrailingSeparator().append(config.getName()); ITool[] tools = config.getFilteredTools(); for (int i = 0; i < tools.length; i++) { ITool tool = tools[i]; // The tool checks out for this project, get its options IOption[] opts = tool.getOptions(); for (int j = 0; j < opts.length; j++) { IOption option = opts[j]; try { if (option.getValueType() == IOption.INCLUDE_PATH) { // Get all the user-defined paths from the option as absolute paths String[] userPaths = option.getIncludePaths(); for (int index = 0; index < userPaths.length; ++index) { IPath userPath = new Path(userPaths[index]); if (userPath.isAbsolute()) { paths.add(userPath.toOSString()); } else { IPath absPath = root.addTrailingSeparator().append(userPath); paths.add(absPath.makeAbsolute().toOSString()); } } } } catch (BuildException e) { // TODO: report error continue; } } } //add paths specified in the environment String envIncludePaths[] = ManagedBuildManager.getEnvironmentVariableProvider().getBuildPaths(config,IEnvVarBuildPath.BUILDPATH_INCLUDE); if(envIncludePaths != null) paths.addAll(Arrays.asList(envIncludePaths)); } // Answer the results as an array return (String[])paths.toArray(new String[paths.size()]); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/107015f42710bd6aa44335ede117d866b68eaaef/ManagedBuildInfo.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 7854, 1571, 4466, 1435, 288, 202, 202, 759, 2000, 326, 2341, 2953, 364, 326, 805, 1664, 202, 202, 19558, 2953, 273, 7854, 1571, 743, 5400, 5621, 202, 202, 45, 1750, 642, 273, 4829, 1750, 5621, 202, 202, 45, 743, 2117, 273, 3410, 18, 588, 2735, 5621, 202, 202, 759, 971, 326, 1361, 1123, 353, 596, 434, 1509, 333, 4825, 506, 446, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 3562, 273, 394, 2666, 2932, 1199, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 430, 261, 1425, 480, 446, 13, 288, 1082, 202, 45, 743, 1365, 273, 2117, 18, 1289, 16808, 6581, 7675, 6923, 12, 1425, 18, 17994, 10663, 1082, 202, 45, 6364, 8526, 8513, 273, 642, 18, 588, 14478, 10348, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8513, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 6364, 5226, 273, 8513, 63, 77, 15533, 9506, 202, 759, 1021, 5226, 4271, 596, 364, 333, 1984, 16, 336, 2097, 702, 9506, 202, 45, 1895, 8526, 1500, 273, 5226, 18, 588, 1320, 5621, 9506, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 1500, 18, 2469, 31, 525, 27245, 288, 6862, 202, 45, 1895, 1456, 273, 1500, 63, 78, 15533, 6862, 202, 698, 288, 25083, 202, 430, 261, 3482, 18, 588, 17930, 1435, 422, 1665, 375, 18, 26003, 67, 4211, 13, 288, 6862, 1082, 202, 759, 968, 777, 326, 729, 17, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 7854, 1571, 4466, 1435, 288, 202, 202, 759, 2000, 326, 2341, 2953, 364, 326, 805, 1664, 202, 202, 19558, 2953, 273, 7854, 1571, 743, 5400, 5621, 202, 202, 45, 1750, 642, 273, 4829, 1750, 5621, 202, 202, 45, 743, 2117, 273, 3410, 18, 588, 2735, 5621, 202, 202, 759, 971, 326, 1361, 1123, 353, 596, 434, 1509, 333, 4825, 506, 446, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 3562, 273, 394, 2666, 2932, 1199, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 430, 261, 1425, 480, 446, 13, 288, 1082, 202, 45, 743, 1365, 273, 2117, 18, 1289, 16808, 6581, 7675, 6923, 12, 1425, 18, 2 ]