rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
for (int i = 0; i < len; i++) {
RubyClass fixnumClass = getRuntime().getClass("Fixnum"); for (int i = 0; i < minCommon; i++) {
public IRubyObject op_cmp(IRubyObject other) { RubyArray ary = other.convertToArray(); int otherLen = ary.getLength(); int len = getLength(); if (len != otherLen) { return (len > otherLen) ? RubyFixnum.one(getRuntime()) : RubyFixnum.minus_one(getRuntime()); } ThreadContext context = getRuntime().getCurrentContext(); for (int i = 0; i < len; i++) { IRubyObject result = entry(i).callMethod(context, "<=>", ary.entry(i)); if (result.isNil() || ((RubyFixnum)result).getLongValue() != 0) { return result; } } return RubyFixnum.zero(getRuntime()); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/c5efec819547c1904f24520251cba220ba8d4a25/RubyArray.java/clean/src/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 19817, 1076, 11841, 273, 1308, 18, 6283, 11698, 5621, 3639, 509, 1308, 2891, 273, 11841, 18, 588, 1782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 19817, 1076, 11841, 273, 1308, 18, 6283, 11698, 5621, 3639, 509, 1308, 2891, 273, 11841, 18, 588, 1782, ...
private void init(String sTitle) { display = Display.getDefault();
private void init( String sTitle ) { display = Display.getDefault( );
private void init(String sTitle) { display = Display.getDefault(); if ( PlatformUI.isWorkbenchRunning( ) ) { shell = new Shell( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } else { shell = new Shell( display, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } shell.setText(sTitle); shell.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); shell.setLayout(new FillLayout()); // CENTER THE DIALOG ON SCREEN shell.setLocation((display.getClientArea().width / 2) - (shell.getSize().x / 2), (display.getClientArea().height / 2) - (shell.getSize().y / 2)); placeComponents(); shell.setDefaultButton(btnOK); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) { display.sleep(); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a9320be9ea7b1e0ded35d1f9f455bafd282468e8/ErrorDialog.java/clean/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/errordisplay/ErrorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 780, 272, 4247, 13, 565, 288, 3639, 2562, 273, 9311, 18, 588, 1868, 5621, 202, 202, 430, 261, 11810, 5370, 18, 291, 2421, 22144, 7051, 12, 262, 262, 202, 202, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 780, 272, 4247, 13, 565, 288, 3639, 2562, 273, 9311, 18, 588, 1868, 5621, 202, 202, 430, 261, 11810, 5370, 18, 291, 2421, 22144, 7051, 12, 262, 262, 202, 202, 95, ...
new SQLException("Query was cancelled or timed out."));
new SQLException("Query was cancelled or timed out.", "HY008"));
protected synchronized void goToNextResult(final SQLWarningChain warningChain, final TdsStatement stmt) throws TdsException, java.io.IOException, SQLException { final boolean isPreparedStmt = stmt instanceof PreparedStatement; final boolean isCallableStmt = stmt instanceof CallableStatement; // SAfe Need to process messages, output parameters and return values // here, or even better, in the processXXX methods. while (moreResults) { final byte next = comm.peek(); // SAfe If the next packet is a rowcount or ResultSet, break if (next == TDS_DONE || next == TDS_COLMETADATA || next == TDS_COL_NAME_TOKEN || (next == TDS_DONEINPROC && isPreparedStmt && !isCallableStmt)) { break; } final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { warningChain.addOrReturn((PacketMsgResult) res); } else if (res instanceof PacketOutputParamResult) { stmt.handleParamResult((PacketOutputParamResult) res); } else if (res instanceof PacketRetStatResult) { stmt.handleRetStat((PacketRetStatResult) res); } else if (res instanceof PacketEndTokenResult) { if (((PacketEndTokenResult) res).wasCanceled()) { warningChain.addException( new SQLException("Query was cancelled or timed out.")); } } } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/8552aa9a2df546b4d1977c587b04556c7b854ab4/Tds.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 1960, 774, 2134, 1253, 12, 6385, 3063, 6210, 3893, 3436, 3893, 16, 727, 399, 2377, 3406, 3480, 13, 5411, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 16, 6483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1960, 774, 2134, 1253, 12, 6385, 3063, 6210, 3893, 3436, 3893, 16, 727, 399, 2377, 3406, 3480, 13, 5411, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 16, 6483, ...
int x = 0;
public static FreenetURI readFullBinaryKey(DataInputStream dis) throws IOException { int x = 0; byte type = dis.readByte(); String keyType; if(type == CHK) keyType = "CHK"; else if(type == SSK) keyType = "SSK"; else throw new MalformedURLException("Unrecognized type "+type); // routingKey is a hash, so is exactly 32 bytes byte[] routingKey = new byte[32]; dis.readFully(routingKey); // cryptoKey is a 256 bit AES key, so likewise byte[] cryptoKey = new byte[32]; dis.readFully(cryptoKey); // Number of bytes of extra depends on key type int extraLen; if(type == CHK) extraLen = ClientCHK.EXTRA_LENGTH; else throw new UnsupportedOperationException("SSKs not implemented yet!"); //extraLen = ClientSSK.EXTRA_LENGTH; byte[] extra = new byte[extraLen]; dis.readFully(extra); String docName = dis.readUTF(); int count = dis.readByte() & 0xff; String[] metaStrings = new String[count]; for(int i=0;i<metaStrings.length;i++) metaStrings[i] = dis.readUTF(); return new FreenetURI(keyType, docName, metaStrings, routingKey, cryptoKey, extra); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/5f6cd14357e2fd98f1b8e460aa78526429387ea0/FreenetURI.java/clean/src/freenet/keys/FreenetURI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 478, 2842, 278, 3098, 855, 5080, 5905, 653, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 202, 202, 474, 619, 273, 374, 31, 202, 202, 7229, 618, 273, 1015, 18, 896, 3216, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 478, 2842, 278, 3098, 855, 5080, 5905, 653, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 202, 202, 474, 619, 273, 374, 31, 202, 202, 7229, 618, 273, 1015, 18, 896, 3216, 5...
String table = mapping.getTable();
String table = mapping.getUnqualifiedTable();
public boolean generate(XPathContext context, ProgramWriter out) { try { out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); out.print("\n\n<!-- Generated by OpenXava: "); out.print(new Date()); out.print(" -->"); String componentName = properties.getProperty("arg3"); String aggregateName = properties.getProperty("arg4"); MetaComponent component = MetaComponent.get(componentName); ModelMapping mapping = null; if (aggregateName == null) { mapping = component.getEntityMapping(); } else { mapping = component.getAggregateMapping(aggregateName); } String tableId = Strings.change(mapping.getTable(), ".", "_"); String table = mapping.getTable(); String schema = mapping.getSchema(); out.print(" \n\n<RDBSchema:RDBTable xmi:version=\"2.0\" xmlns:xmi=\"http://www.omg.org/XMI\" xmlns:RDBSchema=\"RDBSchema.xmi\" xmi:id=\""); out.print(tableId); out.print("\" name=\""); out.print(table); out.print("\" primaryKey=\"C4404645\">\n <database href=\"META-INF/backends/OPENXAVA/DB.dbxmi#DB\"/>\n <schema href=\"META-INF/backends/OPENXAVA/"); out.print(schema); out.print(".schxmi#"); out.print(schema); out.print("\"/>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"DNI\" name=\"DNI\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075972\" characterSet=\"800\" length=\"10\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"NOMBRE\" name=\"NOMBRE\" allowNull=\"true\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075973\" characterSet=\"800\" length=\"20\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"APELLIDOS\" name=\"APELLIDOS\" allowNull=\"true\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075974\" characterSet=\"800\" length=\"50\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <namedGroup xmi:type=\"RDBSchema:SQLReference\" xmi:id=\"C4404645\" name=\"C4404645\" members=\"DNI\" constraint=\"SQLConstraint_1107953075972\"/>\n <constraints xmi:id=\"SQLConstraint_1107953075972\" name=\"C4404645\" type=\"PRIMARYKEY\" primaryKey=\"C4404645\"/>\n</RDBSchema:RDBTable>"); } catch (Exception e) { System.out.println("Exception: "+e.getMessage()); e.printStackTrace(); return false; } return true; }
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/bb55d319c3d36bb6e749a1706ac75b2b08018f35/WebsphereTblxmiPG.java/buggy/OpenXava/generator/WebsphereTblxmiPG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2103, 12, 14124, 1042, 819, 16, 13586, 2289, 596, 13, 288, 3639, 775, 288, 565, 596, 18, 1188, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 241...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2103, 12, 14124, 1042, 819, 16, 13586, 2289, 596, 13, 288, 3639, 775, 288, 565, 596, 18, 1188, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 241...
pbeParamSpec = new PBEParameterSpec( new byte[] {1,2,3,4,5,6,7,8}, 10); SecretKeyFactory skf = (provider==null) ? SecretKeyFactory.getInstance(algName) : SecretKeyFactory.getInstance(algName, provider);
pbeParamSpec = new PBEParameterSpec(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 10); SecretKeyFactory skf = (provider == null) ? SecretKeyFactory .getInstance(algName) : SecretKeyFactory.getInstance(algName, provider);
public TestDataGenerator(String algName, String transformation, byte[] privateKeyInfo, Provider provider) throws AllowedFailure { try { c = (provider==null) ? Cipher.getInstance(transformation!=null?transformation:algName) : Cipher.getInstance(transformation!=null?transformation:algName, provider); } catch (NoSuchAlgorithmException e) { throw new AllowedFailure(e.getMessage()); } catch (NoSuchPaddingException e) { throw new AllowedFailure(e.getMessage()); } try { KeyGenerator kg = (provider==null) ? KeyGenerator.getInstance(algName) : KeyGenerator.getInstance(algName, provider); k = kg.generateKey(); } catch (NoSuchAlgorithmException e) { } if (k == null) { try { KeyPairGenerator kpg = (provider==null) ? KeyPairGenerator.getInstance(algName) : KeyPairGenerator.getInstance(algName, provider); KeyPair kp = kpg.genKeyPair(); k = kp.getPrivate(); pubK = kp.getPublic(); } catch (NoSuchAlgorithmException e) { } } PBEParameterSpec pbeParamSpec = null; if (k == null) { try { pbeParamSpec = new PBEParameterSpec( new byte[] {1,2,3,4,5,6,7,8}, 10); SecretKeyFactory skf = (provider==null) ? SecretKeyFactory.getInstance(algName) : SecretKeyFactory.getInstance(algName, provider); PBEKeySpec ks = new PBEKeySpec("12345678".toCharArray()); try { k = skf.generateSecret(ks); } catch (InvalidKeySpecException e) { throw new AllowedFailure(e.getMessage()); } } catch (NoSuchAlgorithmException e) { throw new AllowedFailure(e.getMessage()); } } try { if (pbeParamSpec == null) { c.init(Cipher.ENCRYPT_MODE, k); } else { c.init(Cipher.ENCRYPT_MODE, k, pbeParamSpec); } } catch (InvalidKeyException e) { throw new AllowedFailure(e.getMessage()); } catch (SecurityException e) { throw new AllowedFailure(e.getMessage()); } catch (InvalidAlgorithmParameterException e) { throw new AllowedFailure(e.getMessage()); } ap = c.getParameters(); try {// int blkS = c.getBlockSize();// blkS = blkS==0?10:blkS;// ct = new byte[c.getOutputSize(privateKeyInfo.length)];// if (blkS != 0) {// int cltOff = 0, ctOff = 0;// for (int i=0; i<privateKeyInfo.length/blkS; i++) {// ctOff += c.update(privateKeyInfo, cltOff, blkS, ct, ctOff);// cltOff += blkS;// }// c.doFinal(privateKeyInfo, cltOff, privateKeyInfo.length%blkS, ct, ctOff);// } else { ct = c.doFinal(privateKeyInfo);// } } catch (IllegalStateException e) { throw new AllowedFailure(e.getMessage()); } catch (IllegalBlockSizeException e) { throw new AllowedFailure(e.getMessage()); } catch (BadPaddingException e) { throw new AllowedFailure(e.getMessage()); }// } catch (ShortBufferException e) {// throw new AllowedFailure(e.getMessage());// } catch (RuntimeException e) { throw new AllowedFailure(e.getMessage()); } try { // try to convert pbeParamSpec->ap if (pbeParamSpec != null) { try { ap = (provider==null) ? AlgorithmParameters.getInstance(algName) : AlgorithmParameters.getInstance(algName, provider); ap.init(pbeParamSpec); pbeParamSpec = null; } catch (NoSuchAlgorithmException e) { // couldn't convert throw new AllowedFailure(e.getMessage()); } catch (InvalidParameterSpecException e) { // couldn't convert throw new AllowedFailure(e.getMessage()); } } if (ap == null) { c.init(Cipher.DECRYPT_MODE, pubK==null ? k : pubK); } else { c.init(Cipher.DECRYPT_MODE, pubK==null ? k : pubK, ap); } } catch (InvalidKeyException e) { throw new AllowedFailure(e.getMessage()); } catch (SecurityException e) { throw new AllowedFailure(e.getMessage()); } catch (InvalidAlgorithmParameterException e) { throw new AllowedFailure(e.getMessage()); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4d76bfb2eadb70e06c48c35a604c83b3f0eefc76/EncryptedPrivateKeyInfoTest.java/buggy/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/EncryptedPrivateKeyInfoTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7766, 751, 3908, 12, 780, 11989, 461, 16, 7734, 514, 8620, 16, 1160, 8526, 11896, 966, 16, 7734, 7561, 2893, 13, 1216, 16740, 5247, 288, 5411, 775, 288, 10792, 276, 273, 261, 6778, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7766, 751, 3908, 12, 780, 11989, 461, 16, 7734, 514, 8620, 16, 1160, 8526, 11896, 966, 16, 7734, 7561, 2893, 13, 1216, 16740, 5247, 288, 5411, 775, 288, 10792, 276, 273, 261, 6778, ...
if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue();
return rubyObject.toString();
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/59743974f1f8d5a50153b05647dac2d75d510976/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1765, 54, 10340, 774, 5852, 12, 54, 10340, 22155, 16, 19817, 921, 22155, 921, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 27768, 921, 422, 22155, 18, 588, 12616, 10756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1765, 54, 10340, 774, 5852, 12, 54, 10340, 22155, 16, 19817, 921, 22155, 921, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 27768, 921, 422, 22155, 18, 588, 12616, 10756,...
/*
public void execute( PrintStream out,HttpInput query_parameters,PlanServiceContext psc,PlanServiceUtilities psu ) throws Exception { if(MonitoringUtils.debug>0) System.out.println("assign psp got called $$$$$$$$$$$$$$$$$$$$$$$"); if(query_parameters.isPostRequest()) { if(MonitoringUtils.debug>0) System.out.println("is post"); //Vector v=query_parameters.getBodyAsString(); //for(int i=0;i<v.size();i++) //{ String x= query_parameters.getBodyAsString(); if(MonitoringUtils.debug>0) System.out.println("got resp element"+x); Vector vec=MonitoringUtils.parseString(x,'&'); //} String type=null; String Sensor=null; String id=null; long unique_id=0; String Analyzer=null; if(!vec.isEmpty()) { if(vec.size()>3) { type=(MonitoringUtils.parseString(vec.elementAt(0).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("type is :"+type); id=(MonitoringUtils.parseString(vec.elementAt(1).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("id in string is :"+id); try { Long lg=new Long (id.trim()); unique_id=lg.longValue(); System.out.println("id in long is :"+unique_id); } catch(Exception exp) { exp.printStackTrace(); } Sensor=(MonitoringUtils.parseString(vec.elementAt(2).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("Sensor is :"+Sensor); Analyzer=(MonitoringUtils.parseString(vec.elementAt(3).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("analyzer is :"+Analyzer); } else { System.out.println("Error in url parameter"); } } Collection response=psc.getServerPlugInSupport().queryForSubscriber(new responsePredicate()); Vector responsetasks= getResponseObj(response,unique_id); if(responsetasks.size()> 1) { System.out.println("too many response::::::::::"); } ResponseObj robj=(ResponseObj)responsetasks.elementAt(0); Organization sensororg= findOrg(robj,Sensor,"sensor"); Organization analyzerorg=findOrg(robj,Analyzer,"Analyzer"); cmdObj cmd= new cmdObj(type,sensororg, analyzerorg); psc.getServerPlugInSupport().publishAddForSubscriber(cmd); out.println("<html>"); out.println( "<body>"); out.print("<h2> Started providing sensor data for event" +type+"</h2>"); out.println("Details" ); out.println("<ul>"); out.println("<li> Sensor from manager agent:"+sensororg.getClusterPG().getClusterIdentifier().getAddress()+"</li>"); out.println("<li> analyzer from manager agent:"+analyzerorg.getClusterPG().getClusterIdentifier().getAddress()+"</li>"); out.println("</ul>"); out.println("<p>"); out.println("Query Parameters are :"+query_parameters); out.println("<p>"); /* ServerPlugInSupport sps; // url and cluster info String clusterID; String encodedClusterID; String base_url; String cluster_url; String cluster_psp_url; String psp_path; sps = psc.getServerPlugInSupport(); // url and cluster info clusterID = sps.getClusterIDAsString(); encodedClusterID = URLEncoder.encode(clusterID); int port = psc.getLocalPort(); String loc; try { loc = psc.getLocalAddress().getLocalHost().getHostAddress(); } catch (Exception e) { System.err.println("UNABLE TO FIND HOST!"); loc = "UNKNOWN"; } base_url = "http://"+loc+":"+port+"/"; cluster_url = base_url+"$"+encodedClusterID; if (clusterID != null) { */ out.print("<a href=\"/Search.PSP\">"); // link to cluster out.print("Search </a> "); for(int i=0;i<responsetasks.size();i++) { if(MonitoringUtils.debug>0) System.out.println("vec element at ::"+i+responsetasks.elementAt(i).toString()); } } else { System.out.println("not a post response"); } out.flush(); out.close(); }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/24afb93e387b09b61fc6bc70149feaae5a6e0572/PSP_Assign.java/clean/securityservices/src/com/nai/security/monitoring/ui/PSP_Assign.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 21677, 596, 16, 2940, 1210, 843, 67, 3977, 16, 5365, 1179, 1042, 293, 1017, 16, 5365, 1179, 11864, 4250, 89, 262, 1216, 1185, 565, 288, 202, 430, 12, 18410, 1989, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 21677, 596, 16, 2940, 1210, 843, 67, 3977, 16, 5365, 1179, 1042, 293, 1017, 16, 5365, 1179, 11864, 4250, 89, 262, 1216, 1185, 565, 288, 202, 430, 12, 18410, 1989, 1...
System.out.println("Provider " + nsdigest.getProvider()); System.out.println("algorithm " + nsdigest.getAlgorithm()); System.out.println("length of digest " + nsdigest.getDigestLength()); if( nsdigestOut.length == nsdigest.getDigestLength() ) { System.out.println("digest output size is " + nsdigestOut.length);
if( mozillaDigestOut.length == mozillaDigest.getDigestLength() ) { System.out.println(mozillaDigest.getAlgorithm() + " " + " digest output size is " + mozillaDigestOut.length);
public static boolean testJSSDigest(String alg, byte[] toBeDigested) throws Exception { byte[] nsdigestOut; byte[] sundigestOut; java.security.MessageDigest nsdigest = java.security.MessageDigest.getInstance(alg, "Mozilla-JSS"); nsdigestOut = nsdigest.digest(toBeDigested); System.out.println("Provider " + nsdigest.getProvider()); System.out.println("algorithm " + nsdigest.getAlgorithm()); System.out.println("length of digest " + nsdigest.getDigestLength()); if( nsdigestOut.length == nsdigest.getDigestLength() ) { System.out.println("digest output size is " + nsdigestOut.length); } else { throw new Exception("ERROR: digest output size is "+ nsdigestOut.length + ", should be "+nsdigest.getDigestLength() ); } return true; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/7b145dd9ac02a9b498816737db5aac9deb70c6d1/DigestTest.java/buggy/security/jss/org/mozilla/jss/tests/DigestTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1842, 46, 1260, 9568, 12, 780, 11989, 16, 1160, 8526, 21333, 4907, 3149, 13, 565, 1216, 1185, 288, 3639, 1160, 8526, 3153, 10171, 1182, 31, 3639, 1160, 8526, 272, 1074, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1842, 46, 1260, 9568, 12, 780, 11989, 16, 1160, 8526, 21333, 4907, 3149, 13, 565, 1216, 1185, 288, 3639, 1160, 8526, 3153, 10171, 1182, 31, 3639, 1160, 8526, 272, 1074, 3...
UserFile file = new UserFile(); file.setContent("simple content of global file!"); file.setOwnerID(Long.valueOf(150)); file.setType(UserFile.UFT_THEME);
public void saveAndLoad() throws DAOException { UserFile file = new UserFile(); file.setContent("simple content of global file!"); file.setOwnerID(Long.valueOf(150)); file.setType(UserFile.UFT_THEME); fileDAO.save(file); UserFile file2 = fileDAO.load(file.getId()); assertEquals(file, file2); }
48076 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48076/23a7bf0759d441dcf52f44009903cbc7f2d08b3d/UserFileDAOHibernateImplTest.java/clean/src/tests/dao/hr/fer/zemris/vhdllab/dao/impl/hibernate/UserFileDAOHibernateImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 1876, 2563, 1435, 1216, 463, 20463, 503, 288, 202, 202, 1299, 812, 585, 273, 394, 2177, 812, 5621, 202, 202, 768, 18, 542, 1350, 2932, 9647, 913, 434, 2552, 585, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 1876, 2563, 1435, 1216, 463, 20463, 503, 288, 202, 202, 1299, 812, 585, 273, 394, 2177, 812, 5621, 202, 202, 768, 18, 542, 1350, 2932, 9647, 913, 434, 2552, 585, 44...
private void chargerReferentiel() { // TODO Auto-generated method stub File ref = new File(Application.getApplication().getConfigPropriete("referentiel_demarrage")); if (ref.exists()) { CChargerReferentielDemarrage c = new CChargerReferentielDemarrage(ref); if (c.executer()) { new FenetreChoixProcessus(this.fenetrePpale); } else { FenetreChoixReferentiel fcr = new FenetreChoixReferentiel(this.fenetrePpale); } } else { FenetreChoixReferentiel fcr = new FenetreChoixReferentiel(this.fenetrePpale); } }
9100 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9100/95bf3cd58a31c628cdc277dd7079038ccd91dd06/Application.java/clean/iepp/iepp/Application.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 3001, 693, 426, 3518, 77, 292, 1435, 202, 95, 202, 202, 759, 6241, 4965, 17, 11168, 2039, 12847, 202, 202, 25579, 822, 74, 33, 2704, 812, 12, 3208, 18, 588, 3208, 7675,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 3001, 693, 426, 3518, 77, 292, 1435, 202, 95, 202, 202, 759, 6241, 4965, 17, 11168, 2039, 12847, 202, 202, 25579, 822, 74, 33, 2704, 812, 12, 3208, 18, 588, 3208, 7675,...
}
}
public void aboutToRun(IJobChangeEvent event) { // ignore }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/249a54647efc3e5268f65f7eeaa111912f576d2d/OpenTaskListElementAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/actions/OpenTaskListElementAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 2973, 774, 1997, 12, 45, 2278, 20930, 871, 13, 288, 25083, 202, 759, 2305, 6862, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 2973, 774, 1997, 12, 45, 2278, 20930, 871, 13, 288, 25083, 202, 759, 2305, 6862, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
SystemProperties.expandProperties();
public static void launch(String classname, String[] args){ setIsBootstrapped(); readProperties(System.getProperty("org.cougaar.properties.url")); getBootstrapper().launchApplication(classname, args); }
7982 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7982/d8cc8f214b5989b237977e57f9e0384bc4a2d165/Bootstrapper.java/clean/bootstrap/src/org/cougaar/bootstrap/Bootstrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2332, 2297, 18, 12320, 2297, 5621, 225, 2332, 2297, 18, 12320, 2297, 5621, 225, 1071, 3163, 2297, 18, 12320, 2297, 5621, 225, 760, 3163, 2297, 18, 12320, 2297, 5621, 225, 918, 3163, 2297, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2332, 2297, 18, 12320, 2297, 5621, 225, 2332, 2297, 18, 12320, 2297, 5621, 225, 1071, 3163, 2297, 18, 12320, 2297, 5621, 225, 760, 3163, 2297, 18, 12320, 2297, 5621, 225, 918, 3163, 2297, 18, ...
String msg;
String msg;
private static org.omg.DynamicAny.DynStruct createDynAnyFromTypeCode (org.omg.CORBA.TypeCode tc) { String msg; org.omg.DynamicAny.DynStruct dynAny = null; try { dynAny = (org.omg.DynamicAny.DynStruct) factory.create_dyn_any_from_type_code (tc); } catch (Throwable ex) { msg = "Factory failed to create DynAny from TypeCode using "; msg += "DynAny::create_dyn_any_from_type_code operation: " + ex; fail (msg); } return dynAny; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/8f8c68b638239e127bed454a75fc4a720a4cee82/DynAnyEmptyExTest.java/buggy/test/regression/src/org/jacorb/test/orb/dynany/DynAnyEmptyExTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 2358, 18, 362, 75, 18, 9791, 2961, 18, 10419, 3823, 752, 10419, 2961, 1265, 15460, 1377, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 15460, 1715, 13, 282, 288, 1377, 514, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 2358, 18, 362, 75, 18, 9791, 2961, 18, 10419, 3823, 752, 10419, 2961, 1265, 15460, 1377, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 15460, 1715, 13, 282, 288, 1377, 514, 12...
return InspectionGadgetsBundle.message("parameter.limit.option"); }
return InspectionGadgetsBundle.message("parameter.limit.option"); }
protected String getConfigurationLabel() { return InspectionGadgetsBundle.message("parameter.limit.option"); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/99336f1791510cfcd3ff200df94a9d442cbf8ed8/ParametersPerMethodInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/methodmetrics/ParametersPerMethodInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 10316, 2224, 1435, 288, 565, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 6775, 18, 3595, 18, 3482, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 4750, 514, 10316, 2224, 1435, 288, 565, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 6775, 18, 3595, 18, 3482, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100...
previewString = new StringFormatter( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM ? formatCategroy : formatPattern,
previewString = new StringFormatter( isCustom( ) ? formatPattern : formatCategroy,
private void updateFormatField( ) { String displayFormat; String previewString; String type = getSelectedDataType( ); IChoiceSet choiceSet = getFormatChoiceSet( type ); if ( choiceSet == null ) {// Boolean type; displayFormat = DEUtil.getMetaDataDictionary( ) .getChoiceSet( DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE ) .findChoice( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED ) .getDisplayName( ); previewString = "True"; //$NON-NLS-1$ } else { displayFormat = choiceSet.findChoice( formatCategroy ) .getDisplayName( ); if ( defaultValue != null ) { previewString = format( defaultValue ); } else { if ( formatCategroy == DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM || formatCategroy == DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM || formatCategroy == DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM ) { displayFormat += ": " + formatPattern; //$NON-NLS-1$ } if ( type.equals( DesignChoiceConstants.PARAM_TYPE_DATETIME ) ) { previewString = new DateFormatter( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM.equals( formatCategroy ) ? formatPattern : formatCategroy, ULocale.getDefault( ) ).format( new Date( ) ); } else if ( type.equals( DesignChoiceConstants.PARAM_TYPE_STRING ) ) { previewString = new StringFormatter( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( Messages.getString( "ParameterDialog.Label.Sample" ) ); //$NON-NLS-1$ } else if ( type.equals( DesignChoiceConstants.PARAM_TYPE_INTEGER ) ) { previewString = new NumberFormatter( formatCategroy != DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( 1234567890 ); } else { previewString = new NumberFormatter( formatCategroy != DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( 123456789.01234 ); } } } formatField.setText( displayFormat ); previewLabel.setText( convertNullString( previewString ) ); changeFormat.setEnabled( choiceSet != null ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/05eaa07ecbd0b690fd917d050b42db71034caf5d/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1630, 974, 12, 262, 202, 95, 202, 202, 780, 2562, 1630, 31, 202, 202, 780, 10143, 780, 31, 202, 202, 780, 618, 273, 16625, 6273, 12, 11272, 202, 202, 45, 10538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1630, 974, 12, 262, 202, 95, 202, 202, 780, 2562, 1630, 31, 202, 202, 780, 10143, 780, 31, 202, 202, 780, 618, 273, 16625, 6273, 12, 11272, 202, 202, 45, 10538, ...
HierarchyAccess hierarchyAccess = new HierarchyAccess( hierarchy, access, topLevel, bottomLevel); hierarchyAccess.memberGrants.putAll(memberGrants); return hierarchyAccess; }
HierarchyAccess hierarchyAccess = new HierarchyAccess( hierarchy, access, topLevel, bottomLevel); hierarchyAccess.memberGrants.putAll(memberGrants); return hierarchyAccess; }
public Object clone() { HierarchyAccess hierarchyAccess = new HierarchyAccess( hierarchy, access, topLevel, bottomLevel); hierarchyAccess.memberGrants.putAll(memberGrants); return hierarchyAccess; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/Role.java/clean/src/main/mondrian/olap/Role.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 3236, 1435, 288, 1082, 202, 12074, 1862, 9360, 1862, 273, 394, 670, 6000, 1862, 12, 6862, 202, 17937, 16, 2006, 16, 21289, 16, 5469, 2355, 1769, 1082, 202, 17937, 1862, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 3236, 1435, 288, 1082, 202, 12074, 1862, 9360, 1862, 273, 394, 670, 6000, 1862, 12, 6862, 202, 17937, 16, 2006, 16, 21289, 16, 5469, 2355, 1769, 1082, 202, 17937, 1862, 1...
translateCall(classGen, methodGen);
il.append(new ALOAD(keyIterator.getIndex()));
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final int getNodeHandle = cpg.addInterfaceMethodref(DOM_INTF, "getNodeHandle", "(I)"+NODE_SIG); // Wrap the KeyIndex (iterator) inside a duplicate filter iterator // to pre-read the indexed nodes and cache them. final int dupInit = cpg.addMethodref(DUP_FILTERED_ITERATOR, "<init>", "("+NODE_ITERATOR_SIG+")V"); il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR))); il.append(DUP); translateCall(classGen, methodGen); il.append(new INVOKESPECIAL(dupInit)); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/1ca29c27de15c3f0758c79f0f3360a05eaae2495/KeyCall.java/buggy/src/org/apache/xalan/xsltc/compiler/KeyCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 9506, 225, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 9506, 225, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 2...
{ if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); }
{ if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); }
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert to UTF8"; } break; } type = next; } return runtime.newString(result.toString()); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 780, 2298, 12, 682, 666, 16, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 780, 2298, 12, 682, 666, 16, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139...
0, 0, 98, 99, 100, 22, 23, 24, 25, 0,
0, 0, 98, 20, 21, 22, 23, 24, 25, 0,
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
if (verboseJNI) VM.sysWrite("JNI called: GetArrayLength \n");
if (traceJNI) VM.sysWrite("JNI called: GetArrayLength \n");
private static int GetArrayLength(int envJREF, int arrayJREF) { if (verboseJNI) VM.sysWrite("JNI called: GetArrayLength \n"); VM_JNIEnvironment env; try { env = VM_Thread.getCurrentThread().getJNIEnv(); Object theArray = (Object) env.getJNIRef(arrayJREF); VM_Type arrayType = VM_Magic.getObjectType(theArray); if (arrayType.isArrayType()) return VM_Magic.getArrayLength(theArray); else return -1; } catch (Throwable unexpected) { env = VM_Thread.getCurrentThread().getJNIEnv(); env.recordException(unexpected); return -1; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4062e6b002bdf9991c940012d22443401650712a/VM_JNIFunctions.java/clean/rvm/src/vm/jni/VM_JNIFunctions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 968, 1076, 1782, 12, 474, 1550, 46, 10771, 16, 509, 526, 46, 10771, 13, 288, 565, 309, 261, 5129, 46, 50, 45, 13, 8251, 18, 9499, 3067, 2932, 46, 50, 45, 2566, 30, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 968, 1076, 1782, 12, 474, 1550, 46, 10771, 16, 509, 526, 46, 10771, 13, 288, 565, 309, 261, 5129, 46, 50, 45, 13, 8251, 18, 9499, 3067, 2932, 46, 50, 45, 2566, 30, 9...
public long getSize();
public long getSize() { return mSize; }
public long getSize();
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/b17d05d071612293d6f09ab67b1bbdcf47c5a136/ZConversation.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/ZConversation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1525, 9950, 5621, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1525, 9950, 5621, 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, ...
ldmlComparator.addAttribute(attribute);
private void push(String qName, Attributes attributes) { //SHOW_ALL && if (log != null) log.println("push\t" + qName + "\t" + show(attributes)); currentXPath += "/" + qName; currentFullXPath += "/" + qName; ldmlComparator.addElement(qName); if (attributes.getLength() > 0) { attributeOrder.clear(); for (int i = 0; i < attributes.getLength(); ++i) { String attribute = attributes.getQName(i); String value = attributes.getValue(i); ldmlComparator.addAttribute(attribute); // must do BEFORE put //ldmlComparator.addValue(value); attributeOrder.put(attribute, value); } for (Iterator it = attributeOrder.keySet().iterator(); it.hasNext();) { String attribute = (String)it.next(); String value = (String)attributeOrder.get(attribute); String both = "[@" + attribute + "=\"" + value + "\"]"; // TODO quote the value?? currentFullXPath += both; // distinguishing = key, registry, alt, and type (except for the type attribute on the elements default and mapping). if (isDistinguishing(qName, attribute)) { currentXPath += both; } } } justPopped = false; if (SHOW_ALL && log != null) log.println("currentXPath\t" + currentXPath + "\tcurrentFullXPath\t" + currentFullXPath); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/97d56b66ca317c8732f0acc8fdac7776519eb508/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1152, 918, 1817, 12, 780, 22914, 16, 9055, 1677, 13, 288, 377, 202, 202, 759, 16677, 67, 4685, 597, 1377, 202, 202, 430, 261, 1330, 480, 446, 13, 613, 18, 8222, 2932, 6206, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1152, 918, 1817, 12, 780, 22914, 16, 9055, 1677, 13, 288, 377, 202, 202, 759, 16677, 67, 4685, 597, 1377, 202, 202, 430, 261, 1330, 480, 446, 13, 613, 18, 8222, 2932, 6206, 64, ...
int index; UndoableEdit current; for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } return false; }
return false; }
public boolean isSignificant() { // Variables int index; UndoableEdit current; // Check each edit for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); if (current.isSignificant() == true) { return true; } } // for: index return false; } // isSignificant()
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 29822, 1435, 288, 202, 202, 759, 23536, 202, 202, 474, 9506, 202, 1615, 31, 202, 202, 31224, 429, 4666, 202, 2972, 31, 202, 202, 759, 2073, 1517, 3874, 202, 202, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 29822, 1435, 288, 202, 202, 759, 23536, 202, 202, 474, 9506, 202, 1615, 31, 202, 202, 31224, 429, 4666, 202, 2972, 31, 202, 202, 759, 2073, 1517, 3874, 202, 202, 18...
if (isReadOnly(column)) return true; else return false;
return !isReadOnly(column);
public boolean isWritable(int column) throws SQLException { if (isReadOnly(column)) return true; else return false; }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/afa178e7e2118800d9723a0608eb1dc8a4beef6f/ResultSetMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 12061, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 309, 261, 291, 12066, 12, 2827, 3719, 1377, 327, 638, 31, 565, 469, 1377, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 12061, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 309, 261, 291, 12066, 12, 2827, 3719, 1377, 327, 638, 31, 565, 469, 1377, 327, 629, 31, 225, 289, 2, -100, -100, ...
permissionPanel.setLayout(new GridBagLayout());
permissionPanel.setLayout(new BorderLayout());
private JPanel builPermissionPanel() { permissionPanel = new JPanel(); permissionPanel.setLayout(new GridBagLayout()); return permissionPanel; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/editor/EditorPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 25666, 330, 5041, 5537, 1435, 565, 288, 3639, 4132, 5537, 273, 394, 24048, 5621, 540, 4132, 5537, 18, 542, 3744, 12, 2704, 30814, 10663, 3639, 327, 4132, 5537, 31, 565, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24048, 25666, 330, 5041, 5537, 1435, 565, 288, 3639, 4132, 5537, 273, 394, 24048, 5621, 540, 4132, 5537, 18, 542, 3744, 12, 2704, 30814, 10663, 3639, 327, 4132, 5537, 31, 565, 289, ...
ProjectBrowser.TheInstance.getNavigatorPane().forceUpdate();
ProjectBrowser.getInstance().getNavigatorPane().forceUpdate();
public void moveUp(int index) { if(_getMethod != null && _setMethod != null) { try { Collection oldCollection = (Collection) _getMethod.invoke(getContainer(),_noArgs); Collection newCollection = moveUpUtil(oldCollection,index); _setMethod.invoke(getContainer(),new Object[] { newCollection }); ProjectBrowser.TheInstance.getNavigatorPane().forceUpdate(); } catch(InvocationTargetException ex) { cat.error(ex.getTargetException().toString() + " is InvocationTargetException in UMLReflectionListModel.moveUp()", ex); } catch(Exception e) { cat.error(e.toString() + " in UMLReflectionListModel.moveUp()", e); } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1ebb17ac06205415cc8d51f57abdfb1e5ec54d76/UMLReflectionListModel.java/buggy/src_new/org/argouml/uml/ui/UMLReflectionListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3635, 1211, 12, 474, 770, 13, 288, 3639, 309, 24899, 588, 1305, 480, 446, 597, 389, 542, 1305, 480, 446, 13, 288, 5411, 775, 288, 7734, 2200, 1592, 2532, 273, 261, 2532, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3635, 1211, 12, 474, 770, 13, 288, 3639, 309, 24899, 588, 1305, 480, 446, 597, 389, 542, 1305, 480, 446, 13, 288, 5411, 775, 288, 7734, 2200, 1592, 2532, 273, 261, 2532, 13, ...
.addProperty(DATA_SOURCE_BEAN,new RuntimeBeanReference(DATA_SOURCE_BEAN));
.addProperty(DATA_SOURCE_BEAN,new RuntimeBeanReference(DATA_SOURCE_BEAN,parentDataSource));
private void populateDataSourceReferences(RuntimeSpringConfiguration springConfig) { GrailsDataSource ds = application.getGrailsDataSource(); BeanConfiguration localSessionFactoryBean = springConfig .addSingletonBean(SESSION_FACTORY_BEAN,ConfigurableLocalSessionFactoryBean.class); if(ds != null) { BeanConfiguration dataSource; if(ds.isPooled()) { dataSource = springConfig .addSingletonBean(DATA_SOURCE_BEAN, BasicDataSource.class) .setDestroyMethod("close"); } else { dataSource = springConfig .addSingletonBean(DATA_SOURCE_BEAN, DriverManagerDataSource.class); } dataSource .addProperty("driverClassName", ds.getDriverClassName()) .addProperty("url", ds.getUrl()) .addProperty("username", ds.getUsername()) .addProperty("password",ds.getPassword()); if(ds.getConfigurationClass() != null) { LOG.info("[SpringConfig] Using custom Hibernate configuration class ["+ds.getConfigurationClass()+"]"); localSessionFactoryBean .addProperty("configClass", ds.getConfigurationClass()); } } else { // if no data source exists create in-memory HSQLDB instance springConfig .addSingletonBean(DATA_SOURCE_BEAN, BasicDataSource.class) .setDestroyMethod("close") .addProperty("driverClassName", "org.hsqldb.jdbcDriver") .addProperty("url", "jdbc:hsqldb:mem:grailsDB") .addProperty("username", "sa") .addProperty("password",""); } // set-up auto detection of Hibernate dialect // first attempt to load any extra dialects defined in hibernate-dialects.properties Properties vendorNameDialectMappings = new Properties(); URL hibernateDialects = this.application.getClassLoader().getResource("hibernate-dialects.properties"); if(hibernateDialects != null) { Properties p = new Properties(); try { p.load(hibernateDialects.openStream()); Iterator iter = p.entrySet().iterator(); while(iter.hasNext()) { Map.Entry e = (Map.Entry)iter.next(); // Note: the entry is reversed in the properties file since the database product // name can contain spaces. vendorNameDialectMappings.put(e.getValue(), "org.hibernate.dialect." + e.getKey()); } } catch (IOException e) { LOG.info("[SpringConfig] Error loading hibernate-dialects.properties file: " + e.getMessage()); } } ManagedMap hibernatePropertiesMap = new ManagedMap(); // enable sql logging yes/no if(ds != null && ds.isLoggingSql()) { hibernatePropertiesMap.put("hibernate.show_sql","true"); hibernatePropertiesMap.put("hibernate.format_sql","true"); } // configure dialect if(ds != null && ds.getDialect()!= null) { hibernatePropertiesMap.put("hibernate.dialect", ds.getDialect().getName()); } else { // setup dialect detector bean springConfig .addSingletonBean(DIALECT_DETECTOR_BEAN, HibernateDialectDetectorFactoryBean.class) .addProperty(DATA_SOURCE_BEAN, new RuntimeBeanReference(DATA_SOURCE_BEAN)) .addProperty("vendorNameDialectMappings",vendorNameDialectMappings); hibernatePropertiesMap.put("hibernate.dialect", new RuntimeBeanReference(DIALECT_DETECTOR_BEAN)); } if(ds == null ) { hibernatePropertiesMap.put("hibernate.hbm2ddl.auto", "create-drop"); } else { if(ds.getDbCreate() != null) { hibernatePropertiesMap.put("hibernate.hbm2ddl.auto", ds.getDbCreate()); } } localSessionFactoryBean .addProperty(DATA_SOURCE_BEAN,new RuntimeBeanReference(DATA_SOURCE_BEAN)); if(loadExternalPersistenceConfig) { URL hibernateConfig = application.getClassLoader().getResource("hibernate.cfg.xml"); if(hibernateConfig != null) { localSessionFactoryBean .addProperty("configLocation", "classpath:hibernate.cfg.xml"); } } springConfig .addSingletonBean(HIBERNATE_PROPERTIES_BEAN,MapToPropertiesFactoryBean.class) .addProperty("map", hibernatePropertiesMap); localSessionFactoryBean .addProperty(HIBERNATE_PROPERTIES_BEAN, new RuntimeBeanReference(HIBERNATE_PROPERTIES_BEAN)) .addProperty(GrailsApplication.APPLICATION_ID, new RuntimeBeanReference(GrailsApplication.APPLICATION_ID,true)) .addProperty("classLoader", new RuntimeBeanReference(CLASS_LOADER_BEAN)); springConfig .addSingletonBean(TRANSACTION_MANAGER_BEAN,HibernateTransactionManager.class) .addProperty(SESSION_FACTORY_BEAN, new RuntimeBeanReference(SESSION_FACTORY_BEAN)); }
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/19601f65169b576936ff7d5084709da10ec6a748/GrailsRuntimeConfigurator.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 8597, 8221, 12, 5576, 55, 11638, 1750, 25974, 809, 13, 288, 9506, 202, 14571, 14573, 8597, 3780, 273, 2521, 18, 588, 14571, 14573, 8597, 5621, 1082, 202, 3381, 1750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 8597, 8221, 12, 5576, 55, 11638, 1750, 25974, 809, 13, 288, 9506, 202, 14571, 14573, 8597, 3780, 273, 2521, 18, 588, 14571, 14573, 8597, 5621, 1082, 202, 3381, 1750, ...
wrappedRequest = new DummyParameterRequestWrapper(wrappedRequest, cd.getLastRequestParameters());
final HttpSession portalSession = pcs.getHttpServletRequest().getSession(false); final Map requestParams; if (portalSession != null) { requestParams = (Map)portalSession.getAttribute(sessionParamsKey); } else { requestParams = null; } wrappedRequest = new DummyParameterRequestWrapper(wrappedRequest, requestParams);
protected synchronized String getMarkup(String uid) throws PortalException { ChannelState channelState = (ChannelState)channelStateMap.get(uid); ChannelRuntimeData rd = channelState.getRuntimeData(); ChannelStaticData sd = channelState.getStaticData(); ChannelData cd = channelState.getChannelData(); PortletWindow portletWindow = cd.getPortletWindow(); PortalControlStructures pcs = channelState.getPortalControlStructures(); String markup = "<b>Problem rendering portlet " + sd.getParameter("portletDefinitionId") + "</b>"; try { PortletContainerServices.prepare(uniqueContainerName); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); HttpServletRequest wrappedRequest = new ServletRequestImpl(((PortletWindowImpl)cd.getPortletWindow()).getHttpServletRequest(), sd.getPerson(), portletWindow.getPortletEntity().getPortletDefinition().getInitSecurityRoleRefSet()); HttpServletResponse wrappedResponse = ServletObjectAccess.getStoredServletResponse(pcs.getHttpServletResponse(), pw); // Hide the request parameters if this portlet isn't targeted if (!rd.isTargeted()) { wrappedRequest = new DummyParameterRequestWrapper(wrappedRequest, cd.getLastRequestParameters()); } // Use the parameters from the last request so the portlet maintains it's state else { wrappedRequest = new PortletParameterRequestWrapper(wrappedRequest); cd.setLastRequestParameters(wrappedRequest.getParameterMap()); } //Set up request attributes (user info, portal session, etc...) setupRequestAttributes(wrappedRequest, uid); //System.out.println("Rendering portlet " + cd.getPortletWindow().getId()); portletContainer.renderPortlet(portletWindow, wrappedRequest, wrappedResponse); //Support for the portlet modifying it's cache timeout Map properties = PropertyManager.getRequestProperties(portletWindow, wrappedRequest); String[] exprCacheTimeStr = (String[])properties.get(RenderResponse.EXPIRATION_CACHE); if (exprCacheTimeStr != null && exprCacheTimeStr.length > 0) { PortletEntity pe = portletWindow.getPortletEntity(); PortletDefinition pd = pe.getPortletDefinition(); try { Integer.parseInt(exprCacheTimeStr[0]); //Check for valid number cd.setExpirationCache(exprCacheTimeStr[0]); } catch (NumberFormatException nfe) { log.error("The specified RenderResponse.EXPIRATION_CACHE value of (" + exprCacheTimeStr + ") is not a number.", nfe); throw nfe; } } markup = sw.toString(); cd.setProcessedAction(false); } catch (Throwable t) { // TODO: review this // t.printStackTrace(); // since the stack trace will be logged, this printStackTrace() // was overkill? -andrew.petro@yale.edu log.error(t, t); throw new PortalException(t); } finally { PortletContainerServices.release(); } //Keep track of the last time the portlet was successfully rendered cd.setLastRenderTime(System.currentTimeMillis()); return markup; }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/8330cbc23d81bb2476500bb77aff5b87cb528e25/CPortletAdapter.java/clean/source/org/jasig/portal/channels/portlet/CPortletAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 514, 23232, 416, 12, 780, 4555, 13, 1216, 25478, 503, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 1911, 1769, 3639, 5307, 5576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 514, 23232, 416, 12, 780, 4555, 13, 1216, 25478, 503, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 1911, 1769, 3639, 5307, 5576, ...
RubyString nextLine = internalGets(args); while (!nextLine.isNil()) { getRuntime().yield(nextLine); nextLine = internalGets(args);
for (RubyString line = internalGets(args); !line.isNil(); line = internalGets(args)) { getRuntime().yield(line);
public RubyIO each_line(IRubyObject[] args) { RubyString nextLine = internalGets(args); while (!nextLine.isNil()) { getRuntime().yield(nextLine); nextLine = internalGets(args); } return this; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4294, 1517, 67, 1369, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 780, 26638, 273, 2713, 3002, 12, 1968, 1769, 3639, 1323, 16051, 4285, 1670, 18, 291, 12616, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 4294, 1517, 67, 1369, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 780, 26638, 273, 2713, 3002, 12, 1968, 1769, 3639, 1323, 16051, 4285, 1670, 18, 291, 12616, 10756, ...
case TokenStream.TRY : pc += 6; break;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case TokenStream.TRY : // Skip starting pc of catch/finally blocks and with depth pc += 6; break; case TokenStream.CATCH: { // See comments in generateICodeFromTree: the following code should // be executed inside try/catch inside main loop, not in the loop catch // block itself if (javaException == null) Context.codeBug(); int pcTry = -1; int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof WrappedException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script pcTry = idata.itsExceptionTable[handlerOffset]; if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, pcTry + 1); if (catch_offset != 0) { // Has catch block doCatch = true; pcNew = pcTry + catch_offset; } } if (pcNew < 0) { int finally_offset = getShort(iCode, pcTry + 3); if (finally_offset != 0) { // has finally block pcNew = pcTry + finally_offset; } } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = getIndex(iCode, pcTry + 5); while (tryWithDepth != withDepth) { if (scope == null) Context.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case TokenStream.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); exceptionPC = pc; if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case TokenStream.POP : stack[stackTop] = null; stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); String sourceName = strings[getIndex(iCode, pc + 5)]; int count = getIndex(iCode, pc + 7); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, sourceName, sourceLine); pc += 8; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/3bad6fe1f865acfaff0361b1b58340e6526addd8/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
runtime.getIterStack().pop();
getRuntime().getIterStack().pop();
public void callInit(IRubyObject[] args) { runtime.getIterStack().push(runtime.isBlockGiven() ? Iter.ITER_PRE : Iter.ITER_NOT); try { callMethod("initialize", args); } finally { runtime.getIterStack().pop(); } }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/buggy/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 745, 2570, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 3099, 18, 588, 2360, 2624, 7675, 6206, 12, 9448, 18, 291, 1768, 6083, 1435, 692, 3016, 18, 11844, 67, 3670, 294, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 745, 2570, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 3099, 18, 588, 2360, 2624, 7675, 6206, 12, 9448, 18, 291, 1768, 6083, 1435, 692, 3016, 18, 11844, 67, 3670, 294, 30...
this.color = color;
public ParticleMotion(DataSetSeismogram hSeis, DataSetSeismogram vSeis, TimeConfig tc, Color color, String key, boolean horizPlane) { horiz = new SeismogramContainer(this,hSeis); vert = new SeismogramContainer(this, vSeis); this.tc = tc; this.key = key; setUpConfigs(); this.horizPlane = horizPlane; if(horizPlane){ pmd.displayBackAzimuth(hSeis.getDataSet(), hSeis.getRequestFilter().channel_id, color); } this.color = color; tc.fireTimeEvent(); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/5e78a72dfe80f6d8e15c615cbf55c0794da383b9/ParticleMotionView.java/clean/src/edu/sc/seis/fissuresUtil/display/ParticleMotionView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 6393, 3711, 29360, 12, 13676, 1761, 6228, 5553, 366, 1761, 291, 16, 14065, 1761, 6228, 5553, 331, 1761, 291, 16, 17311, 2647, 809, 1715, 16, 5563, 2036, 16, 514, 498, 16, 17311, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 6393, 3711, 29360, 12, 13676, 1761, 6228, 5553, 366, 1761, 291, 16, 14065, 1761, 6228, 5553, 331, 1761, 291, 16, 17311, 2647, 809, 1715, 16, 5563, 2036, 16, 514, 498, 16, 17311, 125...
_ancestorNamespaces.add( c.getXmlnsPrefix() ); _ancestorNamespaces.add( c.getXmlnsUri() );
String prefix = c.getXmlnsPrefix(); String uri = c.getXmlnsUri(); if (uri.length() > 0 || prefix.length() == 0) { _ancestorNamespaces.add( c.getXmlnsPrefix() ); _ancestorNamespaces.add( c.getXmlnsUri() ); }
private void computeAncestorNamespaces ( Cur c ) { _ancestorNamespaces = new ArrayList(); while ( c.toParentRaw() ) { if (c.toFirstAttr()) { do { if (c.isXmlns()) { _ancestorNamespaces.add( c.getXmlnsPrefix() ); _ancestorNamespaces.add( c.getXmlnsUri() ); } } while ( c.toNextAttr() ); c.toParent(); } } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/6076dd765ddd92677b95284fc292709905fc79ec/Saver.java/clean/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 3671, 15637, 13180, 261, 7251, 276, 262, 3639, 288, 5411, 389, 28798, 13180, 273, 394, 2407, 5621, 13491, 1323, 261, 276, 18, 869, 3054, 4809, 1435, 262, 5411, 288, 7734, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 3671, 15637, 13180, 261, 7251, 276, 262, 3639, 288, 5411, 389, 28798, 13180, 273, 394, 2407, 5621, 13491, 1323, 261, 276, 18, 869, 3054, 4809, 1435, 262, 5411, 288, 7734, 309, ...
106, 47, 48, 49, 0, 526, 0, 51, 52, 53,
106, 47, 48, 49, 0, 593, 0, 51, 52, 53,
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
private IPropertySource getPropertySource(Object object) {
protected IPropertySource getPropertySource(Object object) {
private IPropertySource getPropertySource(Object object) { if (sources.containsKey(object)) return (IPropertySource) sources.get(object); IPropertySource result = null; if (propertySourceProvider != null) result = propertySourceProvider.getPropertySource(object); else if (object instanceof IPropertySource) result = (IPropertySource) object; else if (object instanceof IAdaptable) result = (IPropertySource) ((IAdaptable) object) .getAdapter(IPropertySource.class); sources.put(object, result); return result; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5df4fb8d030d97ee4d1ed8653c8ae1faad254856/PropertySheetEntry.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 1396, 1830, 3911, 1830, 12, 921, 733, 13, 288, 3639, 309, 261, 10141, 18, 12298, 653, 12, 1612, 3719, 5411, 327, 261, 45, 1396, 1830, 13, 5550, 18, 588, 12, 1612, 1769, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1396, 1830, 3911, 1830, 12, 921, 733, 13, 288, 3639, 309, 261, 10141, 18, 12298, 653, 12, 1612, 3719, 5411, 327, 261, 45, 1396, 1830, 13, 5550, 18, 588, 12, 1612, 1769, 3639,...
IBond bond = null; IAtom atom = null;
IBond bond; IAtom atom;
private static boolean testSubgraphHeuristics(IAtomContainer ac1, IAtomContainer ac2) { int ac1SingleBondCount = 0; int ac1DoubleBondCount = 0; int ac1TripleBondCount = 0; int ac1AromaticBondCount = 0; int ac2SingleBondCount = 0; int ac2DoubleBondCount = 0; int ac2TripleBondCount = 0; int ac2AromaticBondCount = 0; int ac1SCount = 0; int ac1OCount = 0; int ac1NCount = 0; int ac1FCount = 0; int ac1ClCount = 0; int ac1BrCount = 0; int ac1ICount = 0; int ac1CCount = 0; int ac2SCount = 0; int ac2OCount = 0; int ac2NCount = 0; int ac2FCount = 0; int ac2ClCount = 0; int ac2BrCount = 0; int ac2ICount = 0; int ac2CCount = 0; IBond bond = null; IAtom atom = null; for (int i = 0; i < ac1.getBondCount(); i++) { bond = ac1.getBondAt(i); if (bond.getFlag(CDKConstants.ISAROMATIC)) ac1AromaticBondCount ++; else if (bond.getOrder() == 1) ac1SingleBondCount ++; else if (bond.getOrder() == 2) ac1DoubleBondCount ++; else if (bond.getOrder() == 3) ac1TripleBondCount ++; } for (int i = 0; i < ac2.getBondCount(); i++) { bond = ac2.getBondAt(i); if (bond instanceof IQueryBond) continue; if (bond.getFlag(CDKConstants.ISAROMATIC)) ac2AromaticBondCount ++; else if (bond.getOrder() == 1) ac2SingleBondCount ++; else if (bond.getOrder() == 2) ac2DoubleBondCount ++; else if (bond.getOrder() == 3) ac2TripleBondCount ++; } if (ac2SingleBondCount > ac1SingleBondCount) return false; if (ac2AromaticBondCount > ac1AromaticBondCount) return false; if (ac2DoubleBondCount > ac1DoubleBondCount) return false; if (ac2TripleBondCount > ac1TripleBondCount) return false; for (int i = 0; i < ac1.getAtomCount(); i++) { atom = ac1.getAtomAt(i); if (atom.getSymbol().equals("S")) ac1SCount ++; else if (atom.getSymbol().equals("N")) ac1NCount ++; else if (atom.getSymbol().equals("O")) ac1OCount ++; else if (atom.getSymbol().equals("F")) ac1FCount ++; else if (atom.getSymbol().equals("Cl")) ac1ClCount ++; else if (atom.getSymbol().equals("Br")) ac1BrCount ++; else if (atom.getSymbol().equals("I")) ac1ICount ++; else if (atom.getSymbol().equals("C")) ac1CCount ++; } for (int i = 0; i < ac2.getAtomCount(); i++) { atom = ac2.getAtomAt(i); if (atom instanceof IQueryAtom) continue; if (atom.getSymbol().equals("S")) ac2SCount ++; else if (atom.getSymbol().equals("N")) ac2NCount ++; else if (atom.getSymbol().equals("O")) ac2OCount ++; else if (atom.getSymbol().equals("F")) ac2FCount ++; else if (atom.getSymbol().equals("Cl")) ac2ClCount ++; else if (atom.getSymbol().equals("Br")) ac2BrCount ++; else if (atom.getSymbol().equals("I")) ac2ICount ++; else if (atom.getSymbol().equals("C")) ac2CCount ++; } if (ac1SCount < ac2SCount) return false; if (ac1NCount < ac2NCount) return false; if (ac1OCount < ac2OCount) return false; if (ac1FCount < ac2FCount) return false; if (ac1ClCount < ac2ClCount) return false; if (ac1BrCount < ac2BrCount) return false; if (ac1ICount < ac2ICount) return false; if (ac1CCount < ac2CCount) return false; return true; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/56c201de67d3ab0b41150bdf3c9bae4980107820/UniversalIsomorphismTester.java/clean/src/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 1842, 1676, 4660, 5256, 295, 4287, 12, 45, 3641, 2170, 1721, 21, 16, 13922, 1721, 22, 13, 225, 288, 202, 225, 509, 1721, 21, 5281, 9807, 1380, 273, 374, 31, 202, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 1842, 1676, 4660, 5256, 295, 4287, 12, 45, 3641, 2170, 1721, 21, 16, 13922, 1721, 22, 13, 225, 288, 202, 225, 509, 1721, 21, 5281, 9807, 1380, 273, 374, 31, 202, 225, ...
log.debug("FLUSH block at " + localAddress + " for " + timeout);
if (log.isDebugEnabled()) log.debug("FLUSH block at " + localAddress + " for " + timeout);
public void down(Event evt) { switch (evt.getType()) { case Event.MSG: synchronized (blockMutex) { while (isFlushRunning()) { log.debug("FLUSH block at " + localAddress + " for " + timeout); try { blockMutex.wait(timeout); if (isFlushRunning()) { log.warn("Forcing FLUSH unblock at " + localAddress); passDown(new Event(Event.SUSPEND_OK)); isBlockState=false; } } catch (InterruptedException e) { } } } break; case Event.SUSPEND: onSuspend((View) evt.getArg()); return; case Event.RESUME: onResume(); return; } passDown(evt); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/546d91912f1d4c8f7da7955bcfd8bb18d230fa15/FLUSH.java/buggy/src/org/jgroups/protocols/pbcast/FLUSH.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2588, 12, 1133, 6324, 13, 288, 202, 202, 9610, 261, 73, 11734, 18, 588, 559, 10756, 288, 1082, 202, 3593, 2587, 18, 11210, 30, 9506, 202, 22043, 261, 2629, 11433, 13, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2588, 12, 1133, 6324, 13, 288, 202, 202, 9610, 261, 73, 11734, 18, 588, 559, 10756, 288, 1082, 202, 3593, 2587, 18, 11210, 30, 9506, 202, 22043, 261, 2629, 11433, 13, 288...
Label lblOrigin = new Label( cmpBasic, SWT.NONE ); lblOrigin.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Origin" ) );
if ( getChart( ).getDimension( ).getValue( ) != ChartDimension.THREE_DIMENSIONAL ) { Label lblOrigin = new Label( cmpBasic, SWT.NONE ); lblOrigin.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Origin" ) );
public void getComponent( Composite parent ) { cmpContent = new Composite( parent, SWT.NONE ); { GridLayout glContent = new GridLayout( 2, false ); cmpContent.setLayout( glContent ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpContent.setLayoutData( gd ); } Composite cmpBasic = new Composite( cmpContent, SWT.NONE ); { cmpBasic.setLayout( new GridLayout( 3, false ) ); cmpBasic.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Title" ) ); //$NON-NLS-1$ List keys = null; IUIServiceProvider serviceprovider = getContext( ).getUIServiceProvider( ); if ( serviceprovider != null ) { keys = serviceprovider.getRegisteredKeys( ); } txtTitle = new ExternalizedTextEditorComposite( cmpBasic, SWT.BORDER | SWT.SINGLE, -1, -1, keys, serviceprovider, getAxisForProcessing( ).getTitle( ).getCaption( ).getValue( ) ); { GridData gd = new GridData( ); gd.widthHint = 250; gd.horizontalSpan = 2; txtTitle.setLayoutData( gd ); txtTitle.addListener( this ); } Label lblType = new Label( cmpBasic, SWT.NONE ); lblType.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Type" ) ); //$NON-NLS-1$ cmbTypes = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( ); gd.widthHint = 200; cmbTypes.setLayoutData( gd ); cmbTypes.addSelectionListener( this ); } btnFormatSpecifier = new Button( cmpBasic, SWT.PUSH ); { GridData gdBTNFormatSpecifier = new GridData( ); gdBTNFormatSpecifier.widthHint = 20; gdBTNFormatSpecifier.horizontalIndent = -3; btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier ); btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$ btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); //$NON-NLS-1$ btnFormatSpecifier.addSelectionListener( this ); btnFormatSpecifier.getImage( ) .setBackground( btnFormatSpecifier.getBackground( ) ); } Label lblOrigin = new Label( cmpBasic, SWT.NONE ); lblOrigin.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Origin" ) ); //$NON-NLS-1$ cmbOrigin = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( ); gd.widthHint = 200; gd.horizontalSpan = 2; cmbOrigin.setLayoutData( gd ); cmbOrigin.addSelectionListener( this ); } boolean bValueOrigin = false; if ( getAxisForProcessing( ).getOrigin( ) != null ) { if ( getAxisForProcessing( ).getOrigin( ) .getType( ) .equals( IntersectionType.VALUE_LITERAL ) ) { bValueOrigin = true; } } lblValue = new Label( cmpBasic, SWT.NONE ); { lblValue.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Value" ) ); //$NON-NLS-1$ lblValue.setEnabled( bValueOrigin ); } txtValue = new TextEditorComposite( cmpBasic, SWT.BORDER | SWT.SINGLE ); { GridData gd = new GridData( ); gd.widthHint = 225; gd.horizontalSpan = 2; txtValue.setLayoutData( gd ); txtValue.addListener( this ); txtValue.setEnabled( bValueOrigin ); } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Labels" ) ); //$NON-NLS-1$ btnVisible = new Button( cmpBasic, SWT.CHECK ); { btnVisible.setText( Messages.getString( "AxisYSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; btnVisible.setLayoutData( gd ); btnVisible.addSelectionListener( this ); btnVisible.setSelection( getAxisForProcessing( ).getLabel( ) .isVisible( ) ); } createButtonGroup( cmpContent ); populateLists( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b7743b34e1d4aa062c44ee59a8b7377b982d9960/AbstractAxisSubtask.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/axis/AbstractAxisSubtask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273,...
((EARComponentCreationDataModel)getModel()).setProperty(EARComponentCreationDataModel.J2EE_COMPONENT_LIST, getCheckedElementsAsList());
(getDataModel()).setProperty(J2EE_COMPONENT_LIST, getCheckedElementsAsList());
public void checkStateChanged(CheckStateChangedEvent event) { if (!ignoreCheckedState) { ((EARComponentCreationDataModel)getModel()).setProperty(EARComponentCreationDataModel.J2EE_COMPONENT_LIST, getCheckedElementsAsList()); } }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/59b6004d2898a63ab8beb09f095b3e971307dd92/EARComponentCreationSecondPage.java/clean/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/EARComponentCreationSecondPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 13632, 5033, 12, 1564, 1119, 27553, 871, 13, 288, 9506, 202, 430, 16051, 6185, 11454, 1119, 13, 288, 6862, 202, 12443, 9250, 1841, 9906, 26349, 13, 588, 1488, 1435, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 13632, 5033, 12, 1564, 1119, 27553, 871, 13, 288, 9506, 202, 430, 16051, 6185, 11454, 1119, 13, 288, 6862, 202, 12443, 9250, 1841, 9906, 26349, 13, 588, 1488, 1435, 2934, ...
User user = UserDirectoryService.getCurrentUser();
public Collection getEntityAuthzGroups(Reference ref) { // double check that it's mine if (APPLICATION_ID != ref.getType()) return null; Collection rv = (Collection) ThreadLocalManager.get("getEntityAuthzGroups@" + ref.getReference()); if(rv != null) { return rv; } // use the resources realm, all container (folder) realms rv = new Vector(); try { // try the resource, all the folders above it (don't include /) String paths[] = StringUtil.split(ref.getId(), Entity.SEPARATOR); boolean container = ref.getId().endsWith(Entity.SEPARATOR); if (paths.length > 1) { String root = getReference(Entity.SEPARATOR + paths[1] + Entity.SEPARATOR); rv.add(root); for (int next = 2; next < paths.length - 1; next++) {// root = root + paths[next];// if (next < paths.length - 1)// {// root = root + Entity.SEPARATOR;// }// else if(container)// {// // don't include the container itself// break;// } root = root + paths[next] + Entity.SEPARATOR; rv.add(root); } } boolean isDropbox = false; // special check for group-user : the grant's in the user's My Workspace site String parts[] = StringUtil.split(ref.getId(), Entity.SEPARATOR); if ((parts.length > 3) && (parts[1].equals("group-user"))) { rv.add(m_siteService.siteReference(m_siteService.getUserSiteId(parts[3]))); isDropbox = true; } ContentEntity entity = null; if(ref.getId().endsWith(Entity.SEPARATOR)) { entity = findCollection(ref.getId()); } else { entity = findResource(ref.getId()); } if(entity == null) { entity = findCollection(isolateContainingId(ref.getId())); } boolean inherited = false; AccessMode access = entity.getAccess(); if(AccessMode.INHERITED.equals(access)) { inherited = true; access = entity.getInheritedAccess(); } if(isDropbox || AccessMode.SITE == access || AccessMode.INHERITED == access || AccessMode.PUBLIC == access) { // site ref.addSiteContextAuthzGroup(rv); } else if(AccessMode.GROUPED.equals(access)) { Site site = m_siteService.getSite(ref.getContext()); User user = UserDirectoryService.getCurrentUser(); boolean useSiteAsContext = false; if(site != null && user != null) { useSiteAsContext = site.isAllowed(user.getId(), EVENT_RESOURCE_ALL_GROUPS); } if(useSiteAsContext) { ref.addSiteContextAuthzGroup(rv); } else if(inherited) { rv.addAll(entity.getInheritedGroups()); } else { rv.addAll(entity.getGroups()); } } } catch (Throwable e) { } ThreadLocalManager.set("getEntityAuthzGroups@" + ref.getReference(), rv); return rv; }
48934 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48934/398cf5a4dc4585b977cca7e4a4756924251eabbe/BaseContentService.java/clean/content-impl/impl/src/java/org/sakaiproject/content/impl/BaseContentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 6352, 1730, 94, 3621, 12, 2404, 1278, 13, 202, 95, 202, 202, 759, 1645, 866, 716, 518, 1807, 312, 558, 202, 202, 430, 261, 25039, 67, 734, 480, 1278, 18, 588, 559, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 6352, 1730, 94, 3621, 12, 2404, 1278, 13, 202, 95, 202, 202, 759, 1645, 866, 716, 518, 1807, 312, 558, 202, 202, 430, 261, 25039, 67, 734, 480, 1278, 18, 588, 559, 107...
public EvaluatorException(String detail)
EvaluatorException(String detail)
public EvaluatorException(String detail) { super(detail); Context cx = Context.getCurrentContext(); if (cx!= null) { int[] linep = { 0 }; this.sourceName = cx.getSourcePositionFromStack(linep); this.lineNumber = linep[0]; } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b538849b5b431bc21e58fb6e0fc818f0a017ed10/EvaluatorException.java/buggy/js/rhino/src/org/mozilla/javascript/EvaluatorException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 31956, 503, 12, 780, 7664, 13, 565, 288, 3639, 2240, 12, 8992, 1769, 3639, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 309, 261, 71, 92, 5, 33, 446, 13, 288, 5411, 509, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31956, 503, 12, 780, 7664, 13, 565, 288, 3639, 2240, 12, 8992, 1769, 3639, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 309, 261, 71, 92, 5, 33, 446, 13, 288, 5411, 509, 85...
System.out.println("Document load started...");
System.out.println(msg);
public void documentLoadingStarted(SVGDocumentLoaderEvent e) { if (debug) { System.out.println("Document load started..."); time = System.currentTimeMillis(); } statusBar.setMainMessage(resources.getString("Message.documentLoad")); stopAction.update(true); svgCanvas.setCursor(WAIT_CURSOR); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/29cea1762c4e7b5b49d64ee8b6354ccd45327394/JSVGViewerFrame.java/clean/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1668, 10515, 9217, 12, 26531, 2519, 2886, 1133, 425, 13, 288, 3639, 309, 261, 4148, 13, 288, 5411, 2332, 18, 659, 18, 8222, 12, 3576, 1769, 5411, 813, 273, 2332, 18, 2972, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1668, 10515, 9217, 12, 26531, 2519, 2886, 1133, 425, 13, 288, 3639, 309, 261, 4148, 13, 288, 5411, 2332, 18, 659, 18, 8222, 12, 3576, 1769, 5411, 813, 273, 2332, 18, 2972, 28...
String stitle = null;
public void doRender(GridSphereEvent event) throws PortletLayoutException, IOException { // title bar: configure, edit, help, title, min, max PortletRequest req = event.getPortletRequest(); PortletResponse res = event.getPortletResponse(); // get the appropriate title for this client Client client = req.getClient(); String stitle = null; if (settings != null) { Enumeration enum = req.getLocales(); while (enum.hasMoreElements()) { Locale locale = (Locale)enum.nextElement(); stitle = settings.getTitle(locale, client); } if (stitle != null) { title = stitle; } else { Locale deflocale = settings.getDefaultLocale(); String deftitle = settings.getTitle(deflocale, client); title = deftitle; } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/f6e643dc5f274e18098425bbcb7ec47dd15bdb36/PortletTitleBar.java/clean/src/org/gridlab/gridsphere/layout/PortletTitleBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3420, 12, 6313, 22747, 1133, 871, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 368, 2077, 4653, 30, 5068, 16, 3874, 16, 2809, 16, 2077, 16, 1131, 16, 943, 3639, 2130...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3420, 12, 6313, 22747, 1133, 871, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 368, 2077, 4653, 30, 5068, 16, 3874, 16, 2809, 16, 2077, 16, 1131, 16, 943, 3639, 2130...
expandNumber(part, wordRelation);
expandNumber(part, wordRelation, tokenItem);
private static void expandLargeNumber(String numberString, String order, int numberZeroes, WordRelation wordRelation) { int numberDigits = numberString.length(); // parse out the prefix, e.g., "113" in "113,000" int i = numberDigits - numberZeroes; String part = numberString.substring(0, i); // get how many thousands/millions/billions Item oldTail = wordRelation.getTail(); expandNumber(part, wordRelation); if (wordRelation.getTail() == oldTail) { expandNumberAt(numberString, i, wordRelation); } else { wordRelation.addWord(order); expandNumberAt(numberString, i, wordRelation); } }
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/460d07833503253a5c476790f8921bd1e3c702a9/NumberExpander.java/clean/java/de/dfki/lt/mary/modules/en/NumberExpander.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4542, 20020, 1854, 12, 780, 1300, 780, 16, 25083, 225, 514, 1353, 16, 25083, 225, 509, 1300, 7170, 281, 16, 25083, 225, 9926, 3963, 2076, 3963, 13, 288, 202, 474, 1300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4542, 20020, 1854, 12, 780, 1300, 780, 16, 25083, 225, 514, 1353, 16, 25083, 225, 509, 1300, 7170, 281, 16, 25083, 225, 9926, 3963, 2076, 3963, 13, 288, 202, 474, 1300, ...
else if (toprocess.valuebinding != null && (toprocess.acquireValue() == null || UITypes .isPlaceholder(toprocess.acquireValue()))) {
if (toprocess.valuebinding != null && (toprocess.acquireValue() == null || UITypes.isPlaceholder(toprocess.acquireValue()) || hadcached)) {
public void processComponent(UIComponent toprocesso) { if (toprocesso instanceof UIBound) { UIBound toprocess = (UIBound) toprocesso; // If there is a value in the SVE, return it to the control. SubmittedValueEntry sve = rsvc.byID(toprocess.getFullID()); if (sve != null) { toprocess.updateValue(sve.newvalue); } else if (toprocess.valuebinding != null && (toprocess.acquireValue() == null || UITypes .isPlaceholder(toprocess.acquireValue()))) { // a bound component ALWAYS contains a value of the correct type. Object oldvalue = toprocess.acquireValue(); String stripbinding = toprocess.valuebinding.value; BeanResolver resolver = computeResolver(toprocess); Object flatvalue = null; try { flatvalue = alterer.getFlattenedValue(stripbinding, beanlocator, oldvalue.getClass(), resolver); } catch (Exception e) { // don't let a bad bean model prevent the correct reference being // encoded Logger.log.info("Error resolving EL reference " + stripbinding, e); } if (flatvalue != null) { toprocess.updateValue(flatvalue); } } if (toprocess.submittingname == null) { toprocess.submittingname = toprocess.getFullID(); } if (toprocess.valuebinding != null) { // TODO: Think carefully whether we want these "encoded" bindings to // EVER appear in the component tree. Tradeoffs - we would need to // create // more classes that renderer could recognise to compute bindings, and // increase its knowledge about the rest of RSF. if (toprocess.fossilize && toprocess.fossilizedbinding == null) { UIParameter fossilized = fossilizedconverter .computeFossilizedBinding(toprocess); toprocess.fossilizedbinding = fossilized; } if (toprocess.darreshaper != null) { toprocess.fossilizedshaper = fossilizedconverter .computeReshaperBinding(toprocess); } } } }
45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/019870a39edd86c6670e37b269d61719cf0967bd/ValueFixer.java/buggy/src/uk/org/ponder/rsf/componentprocessor/ValueFixer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 1841, 12, 5370, 1841, 358, 2567, 83, 13, 288, 565, 309, 261, 3669, 16127, 83, 1276, 6484, 3499, 13, 288, 1377, 6484, 3499, 358, 2567, 273, 261, 5370, 3499, 13, 358, 256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1841, 12, 5370, 1841, 358, 2567, 83, 13, 288, 565, 309, 261, 3669, 16127, 83, 1276, 6484, 3499, 13, 288, 1377, 6484, 3499, 358, 2567, 273, 261, 5370, 3499, 13, 358, 256...
} finally { Thread.currentThread().setContextClassLoader (oldCtxClassLoader);
public synchronized void unload() throws ServletException { // Nothing to do if we have never loaded the instance if (!singleThreadModel && (instance == null)) return; unloading = true; // Loaf a while if the current instance is allocated // (possibly more than once if non-STM) if (countAllocated > 0) { int nRetries = 0; long delay = unloadDelay / 20; while ((nRetries < 21) && (countAllocated > 0)) { if ((nRetries % 10) == 0) { log.info(sm.getString("standardWrapper.waiting", new Integer(countAllocated))); } try { Thread.sleep(delay); } catch (InterruptedException e) { ; } nRetries++; } } ClassLoader oldCtxClassLoader = Thread.currentThread().getContextClassLoader(); ClassLoader classLoader = instance.getClass().getClassLoader(); PrintStream out = System.out; if (swallowOutput) { SystemLogHandler.startCapture(); } // Call the servlet destroy() method try { instanceSupport.fireInstanceEvent (InstanceEvent.BEFORE_DESTROY_EVENT, instance); Thread.currentThread().setContextClassLoader(classLoader); if( System.getSecurityManager() != null) { SecurityUtil.doAsPrivilege("destroy", instance); SecurityUtil.remove(instance); } else { instance.destroy(); } instanceSupport.fireInstanceEvent (InstanceEvent.AFTER_DESTROY_EVENT, instance); // Annotation processing if (!((Context) getParent()).getIgnoreAnnotations()) { AnnotationProcessor.preDestroy(instance); } } catch (Throwable t) { instanceSupport.fireInstanceEvent (InstanceEvent.AFTER_DESTROY_EVENT, instance, t); instance = null; instancePool = null; nInstances = 0; fireContainerEvent("unload", this); unloading = false; throw new ServletException (sm.getString("standardWrapper.destroyException", getName()), t); } finally { // restore the context ClassLoader Thread.currentThread().setContextClassLoader(oldCtxClassLoader); // Write captured output if (swallowOutput) { String log = SystemLogHandler.stopCapture(); if (log != null && log.length() > 0) { if (getServletContext() != null) { getServletContext().log(log); } else { out.println(log); } } } } // Deregister the destroyed instance instance = null; if (singleThreadModel && (instancePool != null)) { try { Thread.currentThread().setContextClassLoader(classLoader); while (!instancePool.isEmpty()) { Servlet s = (Servlet) instancePool.pop(); if (System.getSecurityManager() != null) { SecurityUtil.doAsPrivilege("destroy", s); SecurityUtil.remove(instance); } else { s.destroy(); } // Annotation processing if (!((Context) getParent()).getIgnoreAnnotations()) { AnnotationProcessor.preDestroy(s); } } } catch (Throwable t) { instancePool = null; nInstances = 0; unloading = false; fireContainerEvent("unload", this); throw new ServletException (sm.getString("standardWrapper.destroyException", getName()), t); } finally { // restore the context ClassLoader Thread.currentThread().setContextClassLoader (oldCtxClassLoader); } instancePool = null; nInstances = 0; } singleThreadModel = false; unloading = false; fireContainerEvent("unload", this); }
15905 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15905/276e5acca8d80e7a1e02280bd8376799151e6aa2/StandardWrapper.java/clean/java/org/apache/catalina/core/StandardWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 27060, 1435, 1216, 16517, 288, 3639, 368, 13389, 358, 741, 309, 732, 1240, 5903, 4203, 326, 791, 3639, 309, 16051, 7526, 3830, 1488, 597, 261, 1336, 422, 446, 3719, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 27060, 1435, 1216, 16517, 288, 3639, 368, 13389, 358, 741, 309, 732, 1240, 5903, 4203, 326, 791, 3639, 309, 16051, 7526, 3830, 1488, 597, 261, 1336, 422, 446, 3719, 5411, ...
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
private void showNewDebugger(EnhancedDebugger debugger) { if (frame == null) { createDebug(); } debugger.tabbedPane.setName("Connection_" + tabbedPane.getComponentCount()); tabbedPane.add(debugger.tabbedPane, tabbedPane.getComponentCount() - 1); tabbedPane.setIconAt(tabbedPane.indexOfComponent(debugger.tabbedPane), connectionCreatedIcon); frame.setTitle( "Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1)); // Keep the added debugger for later access debuggers.add(debugger); }
45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/78becc3d7305388cff280b2bc0e2842644b0cd9b/EnhancedDebuggerWindow.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 1908, 24113, 12, 664, 17221, 24113, 19977, 13, 288, 3639, 309, 261, 3789, 422, 446, 13, 288, 5411, 752, 2829, 5621, 3639, 289, 3639, 19977, 18, 7032, 2992, 8485, 18, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 1908, 24113, 12, 664, 17221, 24113, 19977, 13, 288, 3639, 309, 261, 3789, 422, 446, 13, 288, 5411, 752, 2829, 5621, 3639, 289, 3639, 19977, 18, 7032, 2992, 8485, 18, 542,...
setPane(selectedRow);
String row = "-1"; for(int i=0; i<columns.length; i++) { if(columns[i].equals("ID")) { row = (String) sorter.getValueAt(selectedRow, i); } } setPane(row);
public OMETablePanel(Frame frame, Object[][] tableData, String[] columnNames, Object[][] details) { cancelPlugin = false; //Creates the Dialog Box for getting OME login information dialog = new JDialog(frame, "Search Results", true); JPanel mainpane = new JPanel(); mainpane.setMinimumSize(new Dimension(800, 100)); //sets up the detail panel paneR = new JPanel(); paneR.setLayout(new BoxLayout(paneR, BoxLayout.Y_AXIS)); JPanel paneOwner = new JPanel(); paneThumb = new JPanel(); GridBagLayout grid = new GridBagLayout(); paneOwner.setLayout(grid); GridBagConstraints e = new GridBagConstraints(); GridBagConstraints d = new GridBagConstraints(); e.weightx = 0; e.weighty = 0; e.gridheight = 1; e.gridwidth = 1; e.gridx = 0; e.gridy = 0; e.anchor = GridBagConstraints.FIRST_LINE_END; e.insets = new Insets(2,2,2,2); e.fill = GridBagConstraints.NONE; d.gridwidth = GridBagConstraints.REMAINDER; d.gridheight = 1; d.weighty = 0; d.weightx = 1; d.gridx = 1; d.gridy = 0; d.fill = GridBagConstraints.HORIZONTAL; d.insets = new Insets(2,2,2,2); d.anchor = GridBagConstraints.FIRST_LINE_START; paneR.add(paneThumb); paneR.add(paneOwner); JLabel owner = new JLabel("Owner: ", JLabel.RIGHT); JLabel type = new JLabel("Image Type: ", JLabel.RIGHT); JLabel c = new JLabel("Size C: ", JLabel.RIGHT); JLabel t = new JLabel("Size T: ", JLabel.RIGHT); JLabel x = new JLabel("Size X: ", JLabel.RIGHT); JLabel y = new JLabel("Size Y: ", JLabel.RIGHT); JLabel z = new JLabel("Size Z: ", JLabel.RIGHT); JLabel descrip = new JLabel("Description: ", JLabel.RIGHT); owner.setMinimumSize(new Dimension(15, 2)); type.setMinimumSize(new Dimension(15, 2)); c.setMinimumSize(new Dimension(10, 2)); t.setMinimumSize(new Dimension(10, 2)); x.setMinimumSize(new Dimension(10, 2)); y.setMinimumSize(new Dimension(10, 2)); z.setMinimumSize(new Dimension(10, 2)); descrip.setMinimumSize(new Dimension(20, 2)); areas = new JTextArea[] {own, typ, c1, t1, x1, y1, z1, des}; for(int i=0; i<areas.length; i++) { areas[i] = new JTextArea("", 1, 6); areas[i].setEditable(false); } thumb = new JTextArea(2,15); areas[areas.length-1].setLineWrap(true); thumb.setLineWrap(true); areas[areas.length-1].setWrapStyleWord(true); thumb.setWrapStyleWord(true); thumb.setEditable(false); Dimension thsize = new Dimension(300,100); thumb.setMinimumSize(thsize); thumb.setMaximumSize(thsize); JScrollPane desScroll = new JScrollPane(des); JLabel[] labels = {owner, type, c, t, x, y, z}; for(int i=0; i<labels.length; i++) { paneOwner.add(labels[i], e); paneOwner.add(areas[i], d); e.gridy++; d.gridy++; } e.gridheight = 2; e.weighty = 2; d.gridheight = 2; d.weighty = 2; e.fill = GridBagConstraints.VERTICAL; d.fill = GridBagConstraints.BOTH; paneOwner.add(descrip,e); paneOwner.add(desScroll,d); paneThumb.add(thumb); extra = details; mainpane.setLayout(new BoxLayout(mainpane, BoxLayout.Y_AXIS)); JLabel label = new JLabel("Select which image(s) to download to ImageJ."); label.setAlignmentX(JLabel.CENTER_ALIGNMENT); mainpane.add(label); //create table MyTableModel tableModel = new MyTableModel(tableData, columnNames); sorter = new TableSorter(tableModel); table = new JTable(sorter); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); //Ask to be notified of selection changes. ListSelectionModel rowSM = table.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { setPane(-1); } else { int selectedRow = lsm.getMinSelectionIndex(); setPane(selectedRow); } } }); sorter.setTableHeader(table.getTableHeader()); JScrollPane scrollPane = new JScrollPane(table); scrollPane.setMinimumSize(new Dimension(500, 300)); table.setPreferredScrollableViewportSize(new Dimension(800, 300)); //size columns table.getColumnModel().getColumn(0).setMaxWidth(10); table.getColumnModel().getColumn(1).setPreferredWidth(50); table.getColumnModel().getColumn(2).setPreferredWidth(30); table.getColumnModel().getColumn(2).setMaxWidth(40); table.getColumnModel().getColumn(3).setPreferredWidth(50); //put panel together JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, scrollPane, paneR); splitPane.setDividerLocation(.5); splitPane.setResizeWeight(.5); splitPane.setAlignmentX(JSplitPane.CENTER_ALIGNMENT); mainpane.add(splitPane); dialog.setContentPane(mainpane); EmptyBorder bord = new EmptyBorder(5,5,5,5); JButton ok = new JButton("OK"), cancels = new JButton("Cancel"); ok.setActionCommand("OK"); cancels.setActionCommand("cancels"); JPanel paneBut = new JPanel(); paneBut.setLayout(new BoxLayout(paneBut,BoxLayout.X_AXIS)); paneBut.add(ok); paneBut.add(cancels); paneBut.add(Box.createHorizontalGlue()); mainpane.add(paneBut); cancels.addActionListener(this); ok.addActionListener(this); mainpane.setBorder(bord); mainpane.setMinimumSize(new Dimension(800,300)); dialog.pack(); OMESidePanel.centerWindow(frame, dialog); }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/d55fc1b232068a6dd02bc4b6a146b835648e9033/OMETablePanel.java/buggy/loci/ome/ij/OMETablePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 531, 958, 1388, 5537, 12, 3219, 2623, 16, 1033, 63, 6362, 65, 1014, 751, 16, 514, 8526, 19975, 16, 1377, 1033, 63, 6362, 65, 3189, 13, 288, 202, 1377, 3755, 3773, 273, 629, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 531, 958, 1388, 5537, 12, 3219, 2623, 16, 1033, 63, 6362, 65, 1014, 751, 16, 514, 8526, 19975, 16, 1377, 1033, 63, 6362, 65, 3189, 13, 288, 202, 1377, 3755, 3773, 273, 629, 31, ...
this.d=d;
public void init(int W, int K, float [][] d){ output = new Channel(Float.TYPE, K*W); this.W=W; this.K=K; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/0ee6fa67abbef91333f2d5ee032ba97260cbf573/AdapTest.java/clean/streams/docs/asplos02-sub/asplos-apps/nokia/streamit/AdapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 293, 440, 933, 76, 291, 18, 72, 33, 72, 31, 918, 2211, 18, 72, 33, 72, 31, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 333, 18, 72, 33, 72, 31, 293, 440, 933, 76, 291, 18, 72, 33, 72, 31, 918, 2211, 18, 72, 33, 72, 31, 120...
return isMirrored((int) c);
int value = c / 16; if (value >= mirrored.length) { return false; } int bit = 1 << (c % 16); return (mirrored[value] & bit) != 0;
public static boolean isMirrored(char c) { return isMirrored((int) c); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/edb3218459cee1a0861f3562352bbf296c7303bd/Character.java/clean/modules/luni/src/main/java/java/lang/Character.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 15707, 481, 23226, 12, 3001, 276, 13, 288, 3639, 509, 460, 273, 276, 342, 2872, 31, 309, 261, 1132, 1545, 312, 481, 23226, 18, 2469, 13, 288, 327, 629, 31, 289, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 15707, 481, 23226, 12, 3001, 276, 13, 288, 3639, 509, 460, 273, 276, 342, 2872, 31, 309, 261, 1132, 1545, 312, 481, 23226, 18, 2469, 13, 288, 327, 629, 31, 289, 5...
} else if (SortKey.DIRECTION_MEMBER.equals(property)) {
} else if ( SortKey.DIRECTION_MEMBER.equals( property ) ) {
public static Object[] getChoiceSet(String property) { // The dataSet has different access method. if (AttributeConstant.DATASET.equals(property)) { return getDataSets(); } String unitKey = DesignChoiceConstants.CHOICE_UNITS; if (AttributeConstant.BACKGROUND_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_SIZE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_SIZE; } else if (AttributeConstant.FONT_FAMILY.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_FAMILY; } else if (AttributeConstant.TEXT_FORMAT.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_CONTENT_TYPE; } else if (AttributeConstant.BORDER_STYLE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_STYLE; } else if (AttributeConstant.BORDER_WIDTH.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_WIDTH; } else if (SortKey.DIRECTION_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_SORT_DIRECTION; } else if (FilterCondition.OPERATOR_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FILTER_OPERATOR; } else if (StyleHandle.VERTICAL_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_VERTICAL_ALIGN; } else if (StyleHandle.TEXT_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_ALIGN; } else if (MasterPageHandle.ORIENTATION_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION; } else if (MasterPageHandle.TYPE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE; } else if (GroupHandle.INTERVAL_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_INTERVAL; } else if (StyleHandle.PAGE_BREAK_BEFORE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_AFTER_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_INSIDE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE; } return getUnitChoiceSet(unitKey); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7ca10c49a247dfe395b2e0483af9946ea07fe89b/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 336, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 759, 1021, 14837, 711, 3775, 2006, 707, 18, 202, 202, 430, 261, 1499, 6902, 18, 4883, 4043, 18, 14963, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 336, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 759, 1021, 14837, 711, 3775, 2006, 707, 18, 202, 202, 430, 261, 1499, 6902, 18, 4883, 4043, 18, 14963, 12, ...
if (namespaceURI == null && namespaceURI.length() == 0) {
if (namespaceURI == null || namespaceURI.length() == 0) {
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); int attrQName = ownerDocument.getNodeName(fNodeIndex); StringPool pool = ownerDocument.getStringPool(); name = pool.toString(attrQName); // extract prefix and local part from QName int index = name.indexOf(':'); String prefix; if (index < 0) { prefix = null; localName = name; } else { prefix = name.substring(0, index); localName = name.substring(index + 1); } isSpecified(ownerDocument.getNodeValue(fNodeIndex) == 1); //namespaceURI = pool.toString(ownerDocument.getNodeURI(attrQName)); namespaceURI = pool.toString(ownerDocument.getNodeURI(fNodeIndex)); // DOM Level 2 wants all namespace declaration attributes // to be bound to "http://www.w3.org/2000/xmlns/" // So as long as the XML parser doesn't do it, it needs to // done here. if (namespaceURI == null && namespaceURI.length() == 0) { if (prefix != null) { if (prefix.equals("xmlns")) { namespaceURI = "http://www.w3.org/2000/xmlns/"; } } else if (name.equals("xmlns")) { namespaceURI = "http://www.w3.org/2000/xmlns/"; } } } // synchronizeData()
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/c345f816f303afcedee6c3eddf425beb94365d70/DeferredAttrNSImpl.java/clean/src/org/apache/xerces/dom/DeferredAttrNSImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16978, 751, 1435, 288, 3639, 368, 1158, 1608, 358, 3792, 316, 326, 3563, 3639, 4260, 4047, 751, 12, 5743, 1769, 3639, 368, 1183, 3809, 501, 3639, 12816, 2519, 2828, 19701, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16978, 751, 1435, 288, 3639, 368, 1158, 1608, 358, 3792, 316, 326, 3563, 3639, 4260, 4047, 751, 12, 5743, 1769, 3639, 368, 1183, 3809, 501, 3639, 12816, 2519, 2828, 19701, 273, ...
private PsiMethod findMethod(PsiFile file, int offset) {
private static PsiMethod findMethod(PsiFile file, int offset) {
private PsiMethod findMethod(PsiFile file, int offset) { PsiElement element = file.findElementAt(offset); PsiMethod res = PsiTreeUtil.getParentOfType(element, PsiMethod.class); if (res == null) return null; //Not available in method's body PsiCodeBlock body = res.getBody(); if (body == null) return null; if (body.getTextRange().getStartOffset() <= offset) return null; return res; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/25e56e0105602d24181c3fe62a607228153642af/AddOverrideAnnotationAction.java/clean/source/com/intellij/codeInsight/intention/impl/AddOverrideAnnotationAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 453, 7722, 1305, 1104, 1305, 12, 52, 7722, 812, 585, 16, 509, 1384, 13, 288, 565, 453, 7722, 1046, 930, 273, 585, 18, 4720, 1046, 861, 12, 3348, 1769, 565, 453, 7722, 1305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 453, 7722, 1305, 1104, 1305, 12, 52, 7722, 812, 585, 16, 509, 1384, 13, 288, 565, 453, 7722, 1046, 930, 273, 585, 18, 4720, 1046, 861, 12, 3348, 1769, 565, 453, 7722, 1305, ...
if (jj_scan_token(LBRACKET)) return true; if (jj_scan_token(RBRACKET)) return true;
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_517()) { jj_scanpos = xsp; break; } }
final private boolean jj_3R_503() { if (jj_scan_token(LBRACKET)) return true; if (jj_scan_token(RBRACKET)) return true; return false; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3361, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 21217, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3361, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 21217, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316,...
public Frameset(Tag tag){ super(tag); if ( knownTags == null ) { knownTags = new netscape.util.Hashtable(); registerTags(knownTags); } horizontal_ = tag.containsAttribute(COLS);
public Frameset(){ this(true);
public Frameset(Tag tag){ super(tag); if ( knownTags == null ) { knownTags = new netscape.util.Hashtable(); registerTags(knownTags); } horizontal_ = tag.containsAttribute(COLS); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/cc323a7cc819ef90c1be0849f6c8df50e43667e7/Frameset.java/buggy/modules/edtplug/classes/netscape/plugin/composer/frameEdit/Frameset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13363, 753, 278, 12, 1805, 1047, 15329, 3639, 2240, 12, 2692, 1769, 3639, 309, 261, 4846, 3453, 422, 446, 262, 288, 5411, 4846, 3453, 273, 394, 2901, 12476, 18, 1367, 18, 5582, 1454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13363, 753, 278, 12, 1805, 1047, 15329, 3639, 2240, 12, 2692, 1769, 3639, 309, 261, 4846, 3453, 422, 446, 262, 288, 5411, 4846, 3453, 273, 394, 2901, 12476, 18, 1367, 18, 5582, 1454...
.getLastPathComponent()).getUserObject();
.getLastPathComponent()).getUserObject();
public void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent) { _cat.debug("dropping ... "); try { Transferable tr = dropTargetDropEvent.getTransferable(); //flavor not supported, reject drop if (!tr.isDataFlavorSupported( TransferableModelElement.ELEM_FLAVOR)) { _cat.debug("! isDataFlavorSupported"); dropTargetDropEvent.rejectDrop(); } //get the model element that is being transfered. Object modelElement = tr.getTransferData(TransferableModelElement.ELEM_FLAVOR ); _cat.debug("transfer data = " + modelElement); //get new parent node Point loc = dropTargetDropEvent.getLocation(); TreePath destinationPath = getPathForLocation(loc.x, loc.y); final String msg = isValidDropTarget(destinationPath, _selectedTreePath); if (msg != null) { dropTargetDropEvent.rejectDrop(); SwingUtilities.invokeLater(new Runnable() { public void run() { JOptionPane.showMessageDialog( ProjectBrowser.getInstance(), msg, "Error Dialog", JOptionPane.ERROR_MESSAGE ); } }); // reset the cursor. //dropTargetDropEvent.getDropTargetContext() // .getComponent().setCursor(Cursor.getDefaultCursor()); return; } Object destinationModelElement = ((DefaultMutableTreeNode) destinationPath .getLastPathComponent()).getUserObject(); //get old parent node Object oldParentME = ((DefaultMutableTreeNode) _selectedTreePath.getParentPath() .getLastPathComponent()).getUserObject(); int action = dropTargetDropEvent.getDropAction(); boolean copyAction = (action == DnDConstants.ACTION_COPY); boolean moveAction = (action == DnDConstants.ACTION_MOVE); try { if (moveAction) { _cat.debug("move " + modelElement); ModelFacade.setNamespace(modelElement, destinationModelElement); } if (copyAction) dropTargetDropEvent .acceptDrop(DnDConstants.ACTION_COPY); else dropTargetDropEvent .acceptDrop(DnDConstants.ACTION_MOVE); } catch (java.lang.IllegalStateException ils) { _cat.debug("drop IllegalStateException"); dropTargetDropEvent.rejectDrop(); } dropTargetDropEvent.getDropTargetContext().dropComplete(true); } catch (IOException io) { _cat.debug("drop IOException"); dropTargetDropEvent.rejectDrop(); } catch (UnsupportedFlavorException ufe) { _cat.debug("drop UnsupportedFlavorException"); dropTargetDropEvent.rejectDrop(); } catch (Exception e) { _cat.debug("drop Exception"); dropTargetDropEvent.rejectDrop(); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/2bca90cd19361bbc94b4bf9813d1e3efd96e52fe/DnDNavigatorTree.java/buggy/src_new/org/argouml/ui/DnDNavigatorTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3640, 12, 6290, 18, 2219, 88, 18, 72, 4880, 18, 7544, 2326, 7544, 1133, 3640, 2326, 7544, 1133, 13, 288, 13491, 389, 2574, 18, 4148, 2932, 7285, 1382, 1372, 315, 1769, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3640, 12, 6290, 18, 2219, 88, 18, 72, 4880, 18, 7544, 2326, 7544, 1133, 3640, 2326, 7544, 1133, 13, 288, 13491, 389, 2574, 18, 4148, 2932, 7285, 1382, 1372, 315, 1769, 5411, ...
model1.getCursor().current().getState());
model1.currentToken().getState()); model1.move(1);
public void testQuoteBreakComment2() { model1.insertSlash(); model1.insertStar(); model1.insertStar(); model1.insertSlash(); model1.getCursor().prev(); assertEquals("#0.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#0.1", "*/", model1.getCursor().current().getType()); model1.getCursor().prev(); // "#/**/ model1.insertQuote(); assertEquals("#1.0", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#1.1", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#1.2", ReducedToken.INSIDE_QUOTE, model1.getCursor().current().getState()); assertEquals("#1.3", ReducedToken.INSIDE_QUOTE, model1.getCursor().nextItem().getState()); assertEquals("#1.4", "*", model1.getCursor().nextItem().getType()); assertEquals("#1.4", "\"", model1.getCursor().prevItem().getType()); assertEquals("#1.4", "/", model1.getCursor().current().getType()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/ReducedModelTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/ReducedModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10257, 7634, 4469, 22, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10257, 7634, 4469, 22, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18...
System.out.println("Finished load at: " + (new Date()));
LOGGER.warn("Finished load at: " + (new Date()));
public static void main(String[] args) { System.out.println("Starting load at: " + (new Date())); try { new MondrianFoodMartLoader(args).load(); } catch (Throwable e) { e.printStackTrace(); } System.out.println("Finished load at: " + (new Date())); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/fb2c3676710865fd954e58e04ef53f8b10bd8d52/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 11715, 1262, 622, 30, 315, 397, 261, 2704, 2167, 1435, 10019, 3639, 775, 288, 5411, 394, 490, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 11715, 1262, 622, 30, 315, 397, 261, 2704, 2167, 1435, 10019, 3639, 775, 288, 5411, 394, 490, 143...
this.in = new LineBuffer(in, lineno);
public TokenStream(Reader in, Scriptable scope, String sourceName, int lineno) { this.in = new LineBuffer(in, lineno); this.scope = scope; this.pushbackToken = EOF; this.sourceName = sourceName; flags = 0; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/5739d875ab983543fdf729f70a15773fdbe9b1bd/TokenStream.java/clean/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3155, 1228, 12, 2514, 316, 16, 22780, 2146, 16, 15604, 514, 28337, 16, 509, 7586, 13, 565, 288, 9079, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 6206, 823, 1345, 273, 6431, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3155, 1228, 12, 2514, 316, 16, 22780, 2146, 16, 15604, 514, 28337, 16, 509, 7586, 13, 565, 288, 9079, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 6206, 823, 1345, 273, 6431, 31, ...
if (operand == null) { return; }
public void visitClassObjectAccessExpression(PsiClassObjectAccessExpression exp) { super.visitClassObjectAccessExpression(exp); final PsiTypeElement operand = exp.getOperand(); if (operand == null) { return; } final PsiType classType = operand.getType(); addDependency(classType); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/10dfc0821a579a6a0ff949a64d378572f57a4625/CouplingVisitor.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/classmetrics/CouplingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 797, 921, 1862, 2300, 12, 52, 7722, 797, 921, 1862, 2300, 1329, 13, 288, 3639, 2240, 18, 11658, 797, 921, 1862, 2300, 12, 2749, 1769, 3639, 727, 453, 7722, 559, 1046, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 797, 921, 1862, 2300, 12, 52, 7722, 797, 921, 1862, 2300, 1329, 13, 288, 3639, 2240, 18, 11658, 797, 921, 1862, 2300, 12, 2749, 1769, 3639, 727, 453, 7722, 559, 1046, 9...
try { cvs.validate(); fail("CVS should throw exceptions when required fields are not set."); } catch (CruiseControlException e) {
OSEnvironment env = new OSEnvironment(); if (env.getVariable("CVSROOT") == null) { try { cvs.validate(); fail("CVS should throw exceptions when required fields are not set."); } catch (CruiseControlException e) { }
public void testValidate() throws IOException { CVS cvs = new CVS(); try { cvs.validate(); fail("CVS should throw exceptions when required fields are not set."); } catch (CruiseControlException e) { } cvs.setCvsRoot("cvsroot"); try { cvs.validate(); } catch (CruiseControlException e) { fail("CVS should not throw exceptions when required fields are set."); } cvs = new CVS(); File tempFile = File.createTempFile("temp", "txt"); cvs.setLocalWorkingCopy(tempFile.getParent()); tempFile.delete(); try { cvs.validate(); } catch (CruiseControlException e) { fail("CVS should not throw exceptions when required fields are set."); } String badDirName = "z:/foo/foo/foo/bar"; cvs.setLocalWorkingCopy(badDirName); try { cvs.validate(); fail("CVS.validate should throw exception on non-existant directory."); } catch (CruiseControlException e) { } }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/9aa429e2a608277c2de7f70270bdc1c584a75dc6/CVSTest.java/buggy/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4270, 1435, 1216, 1860, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 775, 288, 5411, 276, 6904, 18, 5662, 5621, 5411, 2321, 2932, 39, 14640, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4270, 1435, 1216, 1860, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 775, 288, 5411, 276, 6904, 18, 5662, 5621, 5411, 2321, 2932, 39, 14640, 1410, ...
selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK
selection(tmp, (e.getModifiers() & MouseEvent.CTRL_MASK) == MouseEvent.CTRL_MASK
public NodePanel() { addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { if (!m_stopped) { return; } if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK && !e.isAltDown()) { Graphics g = NodePanel.this.getGraphics(); int x = e.getX(); int y = e.getY(); int w = NodePanel.this.getWidth(); int h = NodePanel.this.getHeight(); int u = 0; FastVector tmp = new FastVector(4); for (int noa = 0; noa < m_numAttributes; noa++) { if (m_inputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_inputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } for (int noa = 0; noa < m_numClasses; noa++) { if (m_outputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_outputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } for (int noa = 0; noa < m_neuralNodes.length; noa++) { if (m_neuralNodes[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_neuralNodes[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } NeuralNode temp = new NeuralNode(String.valueOf(m_nextId), m_random, m_sigmoidUnit); m_nextId++; temp.setX((double)e.getX() / w); temp.setY((double)e.getY() / h); tmp.addElement(temp); addNode(temp); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); } else { //then right click Graphics g = NodePanel.this.getGraphics(); int x = e.getX(); int y = e.getY(); int w = NodePanel.this.getWidth(); int h = NodePanel.this.getHeight(); int u = 0; FastVector tmp = new FastVector(4); for (int noa = 0; noa < m_numAttributes; noa++) { if (m_inputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_inputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } for (int noa = 0; noa < m_numClasses; noa++) { if (m_outputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_outputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } for (int noa = 0; noa < m_neuralNodes.length; noa++) { if (m_neuralNodes[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_neuralNodes[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } selection(null, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); } } }); }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/cd962793826db37348322a62c5c01adc9613fe7a/MultilayerPerceptron.java/buggy/classifiers/functions/MultilayerPerceptron.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 5537, 1435, 288, 5411, 527, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 202, 21114, 225, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 288, 202, 377, 202, 565, 309, 16051...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 5537, 1435, 288, 5411, 527, 9186, 2223, 12, 2704, 17013, 4216, 1435, 288, 202, 21114, 225, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 288, 202, 377, 202, 565, 309, 16051...
sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2;
sDbl[stackTop] = idata.itsDoubleTable[indexReg];
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + slot]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_LOAD_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_LOAD_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_LOAD_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; continue Loop; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; continue Loop; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_AND_THIS : { boolean skipGetThis = (0 != iCode[pc]); stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, skipGetThis); ++pc; continue Loop; } case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; continue Loop; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; continue Loop; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; continue Loop; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; continue Loop; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/c3a64d2b269a8284dd3145271f1e6f8250800383/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
alternate = alternateStr.substring(1, alternateStr.length()-1).equals("yes");
alternate = alternateStr.substring(1, alternateStr.length() - 1).equals("yes");
public void processingInstruction (String target, String data) throws SAXException { if(target.equals("xml-stylesheet")) { String href = null; // CDATA #REQUIRED String type = null; // CDATA #REQUIRED String title = null; // CDATA #IMPLIED String media = null; // CDATA #IMPLIED String charset = null; // CDATA #IMPLIED boolean alternate = false; // (yes|no) "no" StringTokenizer tokenizer = new StringTokenizer(data, " \t="); while(tokenizer.hasMoreTokens()) { String name = tokenizer.nextToken(); if(name.equals("type")) { String typeVal = tokenizer.nextToken(); type = typeVal.substring(1, typeVal.length()-1); } else if(name.equals("href")) { href = tokenizer.nextToken(); href = href.substring(1, href.length()-1); href = SystemIDResolver.getAbsoluteURI(href, m_source.getSystemId()); } else if(name.equals("title")) { title = tokenizer.nextToken(); title = title.substring(1, title.length()-1); } else if(name.equals("media")) { media = tokenizer.nextToken(); media = media.substring(1, media.length()-1); } else if(name.equals("charset")) { charset = tokenizer.nextToken(); charset = charset.substring(1, charset.length()-1); } else if(name.equals("alternate")) { String alternateStr = tokenizer.nextToken(); alternate = alternateStr.substring(1, alternateStr.length()-1).equals("yes"); } } if((null != type) && type.equals("text/xsl") && (null != href)) { if(null != m_media) { if(null != media) { if(!media.equals(m_media)) return; } else return; } if(null != m_charset) { if(null != charset) { if(!charset.equals(m_charset)) return; } else return; } if(null != m_title) { if(null != title) { if(!title.equals(m_title)) return; } else return; } m_stylesheets.addElement(new InputSource(href)); } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/6fbfc5b396871b2ddb731ea98fccffe88307b5d3/StylesheetPIHandler.java/clean/src/org/apache/xalan/processor/StylesheetPIHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4929, 11983, 261, 780, 1018, 16, 514, 501, 13, 565, 1216, 14366, 225, 288, 565, 309, 12, 3299, 18, 14963, 2932, 2902, 17, 19403, 6, 3719, 565, 288, 1377, 514, 3897, 273, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4929, 11983, 261, 780, 1018, 16, 514, 501, 13, 565, 1216, 14366, 225, 288, 565, 309, 12, 3299, 18, 14963, 2932, 2902, 17, 19403, 6, 3719, 565, 288, 1377, 514, 3897, 273, 446,...
if( (expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPEID_TYPEID) ){
if( expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION ) {
protected List getExpressionResultType(IASTExpression expression, ISymbol symbol){ List result = new ArrayList(); TypeInfo info = new TypeInfo(); // types that resolve to void if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_EMPTY) || (expression.getExpressionKind() == IASTExpression.Kind.THROWEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_DESTRUCTOR) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_DESTRUCTOR) || (expression.getExpressionKind() == IASTExpression.Kind.DELETE_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.DELETE_VECTORCASTEXPRESSION) ){ info.setType(TypeInfo.t_void); result.add(info); return result; } // types that resolve to int if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT) ){ info.setType(TypeInfo.t_int); result.add(info); return result; } // size of is always unsigned int if ((expression.getExpressionKind() == IASTExpression.Kind.UNARY_SIZEOF_TYPEID) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_SIZEOF_UNARYEXPRESSION) ){ info.setType(TypeInfo.t_int); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // types that resolve to char if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_CHAR_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR)){ info.setType(TypeInfo.t_char); result.add(info); return result; } // types that resolve to float if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT)){ info.setType(TypeInfo.t_float); result.add(info); return result; } // types that resolve to string if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_STRING_LITERAL){ info.setType(TypeInfo.t_char); info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); result.add(info); return result; } // types that resolve to double if( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE){ info.setType(TypeInfo.t_double); result.add(info); return result; } // types that resolve to wchar if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART){ info.setType(TypeInfo.t_wchar_t); result.add(info); return result; } // types that resolve to bool if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_EQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_NOTEQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALOREXPRESSION) ) { info.setType(TypeInfo.t_bool); result.add(info); return result; } // short added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isShort); result.add(info); return result; } // long added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isLong); result.add(info); return result; } // signed added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(false, TypeInfo.isUnsigned); result.add(info); return result; } // unsigned added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // types that resolve to t_type, symbol already looked up in type id if( (expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPEID_TYPEID) ){ info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); result.add(info); return result; } // an ampersand implies a pointer operation of type reference if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.addressof ); } result.add(info); return result; } // a star implies a pointer operation of type pointer if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null)&& (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); } result.add(info); return result; } // subscript if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SUBSCRIPT){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.subscript ); } result.add(info); return result; } // the dot and the arrow resolves to the type of the member if ((expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP) ){ if(symbol != null){ info = new TypeInfo(symbol.getTypeInfo()); result.add(info); return result; } } // the dot* and the arrow* are the same as dot/arrow + unary star if ((expression.getExpressionKind() == IASTExpression.Kind.PM_DOTSTAR) || (expression.getExpressionKind() == IASTExpression.Kind.PM_ARROWSTAR) ){ List rhsResult = ((ASTExpression)expression.getRHSExpression()).getResultType(); if( rhsResult.iterator().hasNext()) info = (TypeInfo)rhsResult.iterator().next(); if (info != null){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); } if(symbol != null){ info.setTypeSymbol(symbol); } result.add(info); return result; } // this if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_THIS){ if(symbol != null) { info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); info.addOperatorExpression( TypeInfo.OperatorExpression.addressof ); result.add(info); return result; } } // conditional if (expression.getExpressionKind() == IASTExpression.Kind.CONDITIONALEXPRESSION){ ASTExpression right = (ASTExpression)expression.getRHSExpression(); ASTExpression third = (ASTExpression)expression.getThirdExpression(); if((right != null ) && (third != null)){ TypeInfo rightType =(TypeInfo)right.getResultType().iterator().next(); TypeInfo thirdType =(TypeInfo)third.getResultType().iterator().next(); info = conditionalExpressionConversions(rightType, thirdType); result.add(info); return result; } } // new /* if((expression.getExpressionKind() == IASTExpression.Kind.NEW_NEWTYPEID) || (expression.getExpressionKind() == IASTExpression.Kind.NEW_TYPEID) ){ if(symbol != null){ info.setType(symbol.getType()); info.setTypeSymbol(symbol); result.add(info); return result; } }*/ // types that use the usual arithmetic conversions if((expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MULTIPLY) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_DIVIDE) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MODULUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.EXCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.INCLUSIVEOREXPRESSION) ){ ASTExpression left = (ASTExpression)expression.getLHSExpression(); ASTExpression right = (ASTExpression)expression.getRHSExpression(); if((left != null ) && (right != null)){ TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); TypeInfo rightType =(TypeInfo)right.getResultType().iterator().next(); info = usualArithmeticConversions(leftType, rightType); result.add(info); return result; } } // types that resolve to LHS types if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BRACKETED_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_PLUS_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_MINUS_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_NOT_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_TILDE_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_LEFT) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_RIGHT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_NORMAL) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MULT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_DIV) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MOD) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_LSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_RSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_AND) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_OR) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_XOR) ){ ASTExpression left = (ASTExpression)expression.getLHSExpression(); if(left != null){ TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); result.add(leftType); return result; } } // the cast changes the types to the type looked up in typeId = symbol if((expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DYNAMIC_CAST) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_REINTERPRET_CAST) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_STATIC_CAST) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_CONST_CAST) ){ if(symbol != null){ info = new TypeInfo(symbol.getTypeInfo()); info.setTypeSymbol(symbol); result.add(info); return result; } } // a list collects all types of left and right hand sides if(expression.getExpressionKind() == IASTExpression.Kind.EXPRESSIONLIST){ if(expression.getLHSExpression() != null){ Iterator i = ((ASTExpression)expression.getLHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } if(expression.getRHSExpression() != null){ Iterator i = ((ASTExpression)expression.getRHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } return result; } // a function call type is the return type of the function if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ if(symbol != null){ IParameterizedSymbol psymbol = (IParameterizedSymbol) symbol; ISymbol returnTypeSymbol = psymbol.getReturnType(); info.setType(returnTypeSymbol.getType()); } result.add(info); return result; } return result; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/02c194aaf46b86d6f7a904d6f531e535d47002ba/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 16183, 1253, 559, 12, 45, 9053, 2300, 2652, 16, 4437, 3284, 3273, 15329, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 17305, 1123, 273, 394, 1412, 966, 5621, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 16183, 1253, 559, 12, 45, 9053, 2300, 2652, 16, 4437, 3284, 3273, 15329, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 17305, 1123, 273, 394, 1412, 966, 5621, 9506, ...
private double js_cos(double x) { return Math.cos(x); }
private double js_cos(double x) { if (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) return Double.NaN; return Math.cos(x); }
private double js_cos(double x) { return Math.cos(x); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/NativeMath.java/clean/src/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 67, 14445, 12, 9056, 619, 13, 288, 327, 2361, 18, 14445, 12, 92, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 67, 14445, 12, 9056, 619, 13, 288, 327, 2361, 18, 14445, 12, 92, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (e == -1) { if (decimal == chars.length - 2 && chars[chars.length-1] == '0') { return new String(chars, 0, chars.length - 2);
if (base != 10) { /* Monkey see, Rhino do */ if (d < 0) return "-" + Long.toString( ((long)-d) & 0xFFFFFFFFL, base); else return Long.toString( ((long)d) & 0xFFFFFFFFL, base); } else { final int MIN_NO_EXP = -6; final int MAX_NO_EXP = 20; String s = Double.toString(d); char[] chars = s.toCharArray(); int decimal = -1; int e = -1; boolean negative = false; boolean negativeExponent = false; for (int i=0; i < chars.length; i++) { switch (chars[i]) { case '-': if (e == -1) negative = true; else negativeExponent = true; break; case '.': decimal = i; break; case 'E': e = i; break; }
public static String numberToString(double d) { if (d != d) return "NaN"; if (d == Double.POSITIVE_INFINITY) return "Infinity"; if (d == Double.NEGATIVE_INFINITY) return "-Infinity"; if (d == 0.0) return "0"; // Okay, this is gross. But Java doesn't seem to have any number // formatting routines exposed. // So we let Java format it and then selectively reformat it using // string operations to get the appropriate bounds on exponential // representation as well as little things like case of 'e' and // always including the sign of the exponent. // OPT: format from the floating point number directly. final int MIN_NO_EXP = -6; final int MAX_NO_EXP = 20; String s = Double.toString(d); char[] chars = s.toCharArray(); int decimal = -1; int e = -1; boolean negative = false; boolean negativeExponent = false; for (int i=0; i < chars.length; i++) { switch (chars[i]) { case '-': if (e == -1) negative = true; else negativeExponent = true; break; case '.': decimal = i; break; case 'E': e = i; break; } } if (e == -1) { if (decimal == chars.length - 2 && chars[chars.length-1] == '0') { // Format 1.0 as "1", not "1.0" return new String(chars, 0, chars.length - 2); } return s; } int exponent = Integer.parseInt(new String(chars, e+1, chars.length - e - 1)); StringBuffer sb = new StringBuffer(); boolean singleDigit = decimal + 2 == e && chars[decimal+1] == '0'; if (exponent < MIN_NO_EXP || exponent > MAX_NO_EXP) { int len = singleDigit ? 1 : e; if (negative) { sb.append('-'); sb.append(chars, 1, len); } else { sb.append(chars, 0, len); } sb.append('e'); sb.append(exponent < 0 ? '-' : '+'); int expStart = e + (exponent < 0 ? 2 : 1); sb.append(chars, expStart, chars.length - expStart); return sb.toString(); } if (negative) sb.append('-'); if (exponent < 0) { sb.append("0."); for (int i=exponent+1; i < 0; i++) sb.append('0'); } sb.append(chars[decimal - 1]); int fractionalLength = 0; if (!singleDigit) { fractionalLength = e - decimal - 1; if (exponent > 0 && exponent < fractionalLength) { sb.append(chars, decimal + 1, exponent); sb.append('.'); sb.append(chars, decimal + exponent + 1, fractionalLength - exponent); } else { sb.append(chars, decimal + 1, fractionalLength); } } if (exponent > 0) { for (int i = fractionalLength; i < exponent; i++) sb.append('0'); } return sb.toString(); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/4bf675b98aeb91f7b1aa93aa6af7bc7944745bed/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1300, 5808, 12, 9056, 302, 13, 288, 3639, 309, 261, 72, 480, 302, 13, 5411, 327, 315, 21172, 14432, 3639, 309, 261, 72, 422, 3698, 18, 7057, 16325, 67, 17716, 13, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1300, 5808, 12, 9056, 302, 13, 288, 3639, 309, 261, 72, 480, 302, 13, 5411, 327, 315, 21172, 14432, 3639, 309, 261, 72, 422, 3698, 18, 7057, 16325, 67, 17716, 13, 5411, ...
if (ht.containsKey(beanPropertyName)) { Object propertyMethod = ht.get(beanPropertyName); if (propertyMethod instanceof Field) continue; Method[] methods = ((NativeJavaMethod) propertyMethod).getMethods(); boolean exclude = false; for (int i = 0; i < methods.length; ++i) if (Modifier.isStatic(methods[i].getModifiers()) != isStatic || methods[i].getParameterTypes().length > 0) exclude = true; if (exclude) continue; }
if (ht.containsKey(beanPropertyName)) continue;
void makeBeanProperties(Scriptable scope, boolean isStatic) { 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; if (nameComponent.length() > 1 && Character.isUpperCase(nameComponent.charAt(0)) && !Character.isUpperCase(nameComponent.charAt(1))) { beanPropertyName = Character.toLowerCase(nameComponent.charAt(0)) + nameComponent.substring(1); } // If we already have a field by this name, don't do this // property. if (ht.containsKey(beanPropertyName)) { // Exclude field. Object propertyMethod = ht.get(beanPropertyName); if (propertyMethod instanceof Field) continue; // Exclude when there's a method with non-bean // characteristics or non-static affinity. Method[] methods = ((NativeJavaMethod) propertyMethod).getMethods(); boolean exclude = false; for (int i = 0; i < methods.length; ++i) if (Modifier.isStatic(methods[i].getModifiers()) != isStatic || methods[i].getParameterTypes().length > 0) exclude = true; if (exclude) continue; } // Get the method by this name. Object method = ht.get(name); if (!(method instanceof NativeJavaMethod)) continue; NativeJavaMethod getJavaMethod = (NativeJavaMethod) method; // Grab and inspect the getter method; does it have an empty parameter list, // with a return value (eg. a getSomething() or isSomething())? Class[] params; Method[] getMethods = getJavaMethod.getMethods(); Class type; if (getMethods != null && getMethods.length == 1 && (type = getMethods[0].getReturnType()) != null && (params = getMethods[0].getParameterTypes()) != null && params.length == 0) { // Make sure the method static-ness is preserved for this property. if (isStatic && !Modifier.isStatic(getMethods[0].getModifiers())) continue; // We have a getter. Now, do we have a setter? Method setMethod = null; String setter = "set" + nameComponent; if (ht.containsKey(setter)) { // Is this value a method? method = ht.get(setter); if (method instanceof NativeJavaMethod) { // // Note: it may be preferable to allow NativeJavaMethod.findFunction() // to find the appropriate setter; unfortunately, it requires an // instance of the target arg to determine that. // // Make two passes: one to find a method with direct type assignment, // and one to find a widening conversion. NativeJavaMethod setJavaMethod = (NativeJavaMethod) method; Method[] setMethods = setJavaMethod.getMethods(); for (int pass = 1; pass <= 2 && setMethod == null; ++pass) { for (int i = 0; i < setMethods.length; ++i) { if (setMethods[i].getReturnType() == void.class && (!isStatic || Modifier.isStatic(setMethods[i].getModifiers())) && (params = setMethods[i].getParameterTypes()) != null && params.length == 1 ) { if ((pass == 1 && params[0] == type) || (pass == 2 && params[0].isAssignableFrom(type))) { setMethod = setMethods[i]; break; } } } } } } // Make the property. BeanProperty bp = new BeanProperty(getMethods[0], setMethod); toAdd.put(beanPropertyName, bp); } } } // Add the new bean properties. for (Enumeration e = toAdd.keys(); e.hasMoreElements();) { String key = (String) e.nextElement(); Object value = toAdd.get(key); ht.put(key, value); } }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/564f1dca5bf75c1332937707e92405bef96946c9/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1221, 3381, 2297, 12, 3651, 429, 2146, 16, 1250, 16116, 13, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 18559, 25607, 273, 394, 18559, 5621, 7734, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 3381, 2297, 12, 3651, 429, 2146, 16, 1250, 16116, 13, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 18559, 25607, 273, 394, 18559, 5621, 7734, 368, ...
System.out.print("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " +
p("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " +
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // System.out.print("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { System.out.print("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); System.out.print("static const int VM_Constants_THREAD_ID_REGISTER = " + VM_Constants.THREAD_ID_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); System.out.print("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { System.out.print("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); System.out.print("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); System.out.print("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); System.out.print("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); System.out.print("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); System.out.print("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); System.out.print("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); System.out.print("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); System.out.print("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif System.out.print("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); System.out.print("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); System.out.print("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT = " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); System.out.print("\n"); // values in VM_ObjectModel // System.out.println("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // System.out.print("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); System.out.print("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); System.out.print("\n"); // values in VM_ThreadEventConstants // System.out.print("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // System.out.print("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); System.out.print("\n"); // values in VM_ThreadIOConstants // System.out.print("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); System.out.print("\n"); // values in VM_ThreadProcessWaitQueue // System.out.print("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // System.out.print("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); System.out.print("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); System.out.print("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); System.out.print("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); System.out.print("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); System.out.print("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); System.out.print("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); System.out.print("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); System.out.println(); // values in VM_FileSystem // System.out.print("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); System.out.print("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.threadSwitchRequestedField.getOffset(); System.out.print("static const int VM_Processor_threadSwitchRequested_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); System.out.print("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); System.out.print("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.epochField.getOffset(); System.out.print("static const int VM_Processor_epoch_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); System.out.print("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.processorThreadIdField.getOffset(); System.out.print("static const int VM_Processor_threadId_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorFPField.getOffset(); System.out.print("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorJTOCField.getOffset(); System.out.print("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorTrapParamField.getOffset(); System.out.print("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); System.out.print("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); System.out.print("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); System.out.print("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); System.out.print("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); System.out.print("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); System.out.print("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); System.out.print("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); System.out.print("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); System.out.print("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); System.out.print("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIEnvAddressField.getOffset(); System.out.print("static const int VM_JNIEnvironment_JNIEnvAddress_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); System.out.print("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); System.out.print("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); System.out.print("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); System.out.print("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcInProgressField.getOffset(); System.out.print("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcInProgressOffset = " + offset + ";\n"); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/925454167bc483f10cf328dfcd6f344b2ba4704d/GenerateInterfaceDeclarations.java/clean/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, ...
else return m_distribution.prob(classIndex);
} else { double [] weights = weights(instance); if (weights == null) { return m_distribution.prob(classIndex); } else { double prob = 0; for (int i = 0; i < weights.length; i++) { prob += weights[i] * m_distribution.prob(classIndex, i); } return prob; } }
public double classProb(int classIndex,Instance instance) throws Exception { int theSubset = whichSubset(instance); if (theSubset > -1) return m_distribution.prob(classIndex,theSubset); else return m_distribution.prob(classIndex); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/58592303c619abe08416a56f9064f48eb63523ff/ClassifierSplitModel.java/clean/weka/classifiers/trees/j48/ClassifierSplitModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 667, 9152, 12, 474, 667, 1016, 16, 1442, 791, 13, 3639, 1216, 1185, 288, 3639, 509, 326, 20315, 273, 1492, 20315, 12, 1336, 1769, 565, 309, 261, 5787, 20315, 405, 300, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 667, 9152, 12, 474, 667, 1016, 16, 1442, 791, 13, 3639, 1216, 1185, 288, 3639, 509, 326, 20315, 273, 1492, 20315, 12, 1336, 1769, 565, 309, 261, 5787, 20315, 405, 300, 21, 1...
_sName += "." + (new String(getToken(0).image));
_sName += "." + getToken(0).image;
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 3238, 918, 1770, 1435, 1216, 10616, 202, 95, 202, 202, 3004, 5621, 202, 202, 67, 87, 461, 273, 394, 514, 12, 588, 1345, 12, 20, 2934, 2730, 1769, 202, 202, 1925, 67, 2947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6385, 3238, 918, 1770, 1435, 1216, 10616, 202, 95, 202, 202, 3004, 5621, 202, 202, 67, 87, 461, 273, 394, 514, 12, 588, 1345, 12, 20, 2934, 2730, 1769, 202, 202, 1925, 67, 2947, ...
}
public void initializeStorage() throws IOException { File bundleStore; // only touch the file system if reset is specified // we create the area on demand later if needed if (reset && (bundleStore = getBundleStoreRootDir()).exists()) { if (!canWrite() || !rm(bundleStore)) { if (Debug.DEBUG && Debug.DEBUG_GENERAL) { Debug.println("Could not remove directory: " + bundleStore.getPath()); //$NON-NLS-1$ } throw new IOException(NLS.bind(AdaptorMsg.ADAPTOR_DIRECTORY_REMOVE_EXCEPTION, bundleStore)); } } initializeMetadata(); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/004445721bcd135458e3e53100cbb701369726e9/AbstractFrameworkAdaptor.java/buggy/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractFrameworkAdaptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 3245, 1435, 1216, 1860, 288, 202, 202, 812, 3440, 2257, 31, 202, 202, 759, 1338, 6920, 326, 585, 2619, 309, 2715, 353, 1269, 202, 202, 759, 732, 752, 326, 5091, 603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 3245, 1435, 1216, 1860, 288, 202, 202, 812, 3440, 2257, 31, 202, 202, 759, 1338, 6920, 326, 585, 2619, 309, 2715, 353, 1269, 202, 202, 759, 732, 752, 326, 5091, 603...
Transaction trans = transactionCache.get(id); if(trans == null) { trans = new Transaction(id); transactionCache.put(id, trans); } return trans;
trans = new Transaction(id); transactionCache.put(id, trans);
static Transaction getTransactionForID(final Integer id) { synchronized(transactionCache) { Transaction trans = transactionCache.get(id); if(trans == null) { trans = new Transaction(id); transactionCache.put(id, trans); } return trans; } }
11042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11042/42f15ce06e127523723133285c793cb25214f02b/Transaction.java/buggy/trunk/JPAS/src/org/jpas/model/Transaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 5947, 15674, 1290, 734, 12, 6385, 2144, 612, 13, 565, 288, 3639, 3852, 12, 7958, 1649, 13, 3639, 288, 202, 377, 202, 3342, 906, 273, 2492, 1649, 18, 588, 12, 350, 1769, 202, 377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5947, 15674, 1290, 734, 12, 6385, 2144, 612, 13, 565, 288, 3639, 3852, 12, 7958, 1649, 13, 3639, 288, 202, 377, 202, 3342, 906, 273, 2492, 1649, 18, 588, 12, 350, 1769, 202, 377, ...
if (simpleDeclaration.getDeclSpecifier().isTypedef()){
if (simpleDeclaration.getDeclSpecifier().isTypedef()) {
private void createElement(SimpleDeclaration simpleDeclaration, Declarator declarator){ // typedef if (simpleDeclaration.getDeclSpecifier().isTypedef()){ createTypeDef(declarator, simpleDeclaration); } else { ParameterDeclarationClause pdc = declarator.getParms(); if (pdc == null){ createVariableSpecification(simpleDeclaration, declarator); } else{ createFunctionSpecification(simpleDeclaration, declarator, pdc, false); } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c8cfea5fba01ebac580118315148d60620c88127/ComparatorModelBuilder.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/compare/ComparatorModelBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6310, 12, 5784, 6094, 4143, 6094, 16, 16110, 5880, 3496, 5880, 15329, 202, 202, 759, 618, 536, 202, 202, 430, 261, 9647, 6094, 18, 588, 3456, 21416, 7675, 291, 559, 536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6310, 12, 5784, 6094, 4143, 6094, 16, 16110, 5880, 3496, 5880, 15329, 202, 202, 759, 618, 536, 202, 202, 430, 261, 9647, 6094, 18, 588, 3456, 21416, 7675, 291, 559, 536, ...
rule.addProperty("minimum", "3"); runTests(new TestDescriptor[]{ new TestDescriptor(TEST6, "threshold test", 2, rule), }); }
runTest(tests[5]); }
public void testThreshold() { rule.addProperty("minimum", "3"); runTests(new TestDescriptor[]{ new TestDescriptor(TEST6, "threshold test", 2, rule), }); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/LongVariableRuleTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/LongVariableRuleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7614, 1435, 288, 3639, 1720, 18, 1289, 1396, 2932, 15903, 3113, 315, 23, 8863, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 26, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7614, 1435, 288, 3639, 1720, 18, 1289, 1396, 2932, 15903, 3113, 315, 23, 8863, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 26, 16...
long lowest_ack_seq = getLowestSeqAck(); if ( lowest_ack_seq < 0 ) { return; }
long lowest_ack_seq=getLowestSeqAck(); if(lowest_ack_seq < 0) { return; }
private synchronized void truncateHistory() { long lowest_ack_seq = getLowestSeqAck(); if ( lowest_ack_seq < 0 ) { // either no members, or someone has not received any messages yet // either way, do nothing return; } // don't want message_history being altered during this operation synchronized( message_history ) { long lowest_stored_seq; // keep deleting the oldest stored message for as long as we can while( ((lowest_stored_seq = message_history.getFirstSeq()) >=0) && (lowest_stored_seq > lowest_ack_seq) ) { // we can delete the oldest stored message message_history.getFirstMessage(); } } // synchronized( message_history ) }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 10310, 5623, 1435, 288, 202, 5748, 11981, 67, 484, 67, 5436, 273, 9014, 543, 395, 6926, 11931, 5621, 202, 430, 261, 11981, 67, 484, 67, 5436, 411, 374, 262, 288, 202, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 10310, 5623, 1435, 288, 202, 5748, 11981, 67, 484, 67, 5436, 273, 9014, 543, 395, 6926, 11931, 5621, 202, 430, 261, 11981, 67, 484, 67, 5436, 411, 374, 262, 288, 202, 5...
CTFPlayer[] players = fTeam.getPlayers();
CTFPlayer[] players = ctfTeam.getPlayers();
protected void registerKill( CTFPlayer victim ) { if ( victim.fTeam == fTeam ) { // only add points to attacker when victim is on other team. return; } // did the victim carry the flag? if ( victim.isCarrying("flag")) { Object[] args = {new Integer(CTF_FRAG_CARRIER_BONUS)}; fEntity.centerprint(fResourceGroup.format("q2java.ctf.CTFMessages", "bonus_points", args) + "\n"); // The victim had the flag, clear the hurt carrier field on our team CTFPlayer[] players = fTeam.getPlayers(); for ( int i=0; i<players.length; i++) players[i].fLastCarrierHurt = 0f; setScore(1 + CTF_FRAG_CARRIER_BONUS, false); } // was the victim aggressive against our flagcarrier lately? if ( Game.getGameTime() < (victim.fLastCarrierHurt+CTF_CARRIER_DANGER_PROTECT_TIMEOUT) && getInventory("flag") == null ) { Object[] args = {getName(), fTeam.getTeamIndex()}; Game.localecast("q2java.ctf.CTFMessages", "defend_aggressive", args, Engine.PRINT_MEDIUM); setScore(1 + CTF_CARRIER_DANGER_PROTECT_BONUS, false); } // if our flag is laying around somewhere, we can get extra bonuses GenericFlag ourFlag = fTeam.getFlag(); //if ( ourFlag.getState() == GenericFlag.CTF_FLAG_STATE_CARRIED ) // return; // check to see if we are defending the base. Vector3f v1 = new Vector3f( this.fEntity.getOrigin() ); Vector3f v2 = new Vector3f( victim.fEntity.getOrigin() ); v1.sub( fTeam.getBaseOrigin() ); v2.sub( fTeam.getBaseOrigin() ); //if ( v1.length() < CTF_TARGET_PROTECT_RADIUS || v2.length() < CTF_TARGET_PROTECT_RADIUS // || this.canSee(ourFlag) || victim.canSee(ourFlag) ) if ( v1.length() < CTF_TARGET_PROTECT_RADIUS || v2.length() < CTF_TARGET_PROTECT_RADIUS || this.canSee(fTeam.getBaseOrigin()) || victim.canSee(fTeam.getBaseOrigin()) ) { // OK, either we or our victim is in sight of our base. // Send message based on if the flag is at base or not... Object[] args = {getName(), fTeam.getTeamIndex()}; if ( ourFlag.getState() == GenericFlag.CTF_FLAG_STATE_STANDING ) Game.localecast("q2java.ctf.CTFMessages", "defend_flag", args, Engine.PRINT_MEDIUM); else Game.localecast("q2java.ctf.CTFMessages", "defend_base", args, Engine.PRINT_MEDIUM); setScore(1 + CTF_FLAG_DEFENSE_BONUS, false); } // No bonusses left if carrying flag... if ( isCarrying("flag") ) setScore(1, false); // check to see if we are defending someone on our team with enemy flag. GenericFlag enemyFlag = ( Team.TEAM1.getFlag() == ourFlag ? Team.TEAM2.getFlag() : Team.TEAM1.getFlag() ); if ( enemyFlag.getState() == GenericFlag.CTF_FLAG_STATE_CARRIED ) { Player carrier = enemyFlag.getCarrier(); v1.set( carrier.fEntity.getOrigin() ); v2.set( carrier.fEntity.getOrigin() ); v1.sub( this.fEntity.getOrigin() ); v2.sub( victim.fEntity.getOrigin() ); if ( v1.length() < CTF_ATTACKER_PROTECT_RADIUS || v2.length() < CTF_ATTACKER_PROTECT_RADIUS || this.canSee(carrier.fEntity.getOrigin()) || victim.canSee(carrier.fEntity.getOrigin()) ) { Object[] args = {getName(), fTeam.getTeamIndex()}; Game.localecast("q2java.ctf.CTFMessages", "defend_carrier", args, Engine.PRINT_MEDIUM); setScore(1 + CTF_CARRIER_PROTECT_BONUS, false); } } // Hmm, no bonusses left... setScore(1, false); }
1990 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1990/578d435afa17c19ab50dae1f666d2a43a2c4c175/CTFPlayer.java/buggy/classes/q2java/ctf/CTFPlayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1744, 19045, 12, 385, 17963, 12148, 28873, 381, 262, 202, 95, 202, 202, 430, 261, 28873, 381, 18, 74, 8689, 422, 284, 8689, 262, 202, 202, 95, 1082, 202, 759, 1338, 527,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1744, 19045, 12, 385, 17963, 12148, 28873, 381, 262, 202, 95, 202, 202, 430, 261, 28873, 381, 18, 74, 8689, 422, 284, 8689, 262, 202, 202, 95, 1082, 202, 759, 1338, 527,...
} else if ((thisSegmentMarker & 0xFF) == (SEGMENT_MARKER_EOI & 0xFF)) {
} else if ((thisSegmentMarker & 0xFF) == (MARKER_EOI & 0xFF)) {
public byte[] readSegment(int segmentMarker) throws JpegProcessingException { InputStream fileStream = null; int offset = 0; try { fileStream = new BufferedInputStream(new FileInputStream(_file)); // first two bytes should be jpeg magic number if (!isValidJpegHeaderBytes(fileStream)) { throw new IOException("not a jpeg file"); } offset += 2; do { // next byte is 0xFF byte segmentIdentifier = (byte)(fileStream.read() & 0xFF); if ((segmentIdentifier & 0xFF) != 0xFF) { throw new JpegProcessingException("expected jpeg segment start identifier 0xFF at offset " + offset + ", not 0x" + Integer.toHexString(segmentIdentifier & 0xFF)); } offset++; // next byte is <segment-marker> byte thisSegmentMarker = (byte)(fileStream.read() & 0xFF); offset++; // next 2-bytes are <segment-size>: [high-byte] [low-byte] byte[] segmentLengthBytes = new byte[2]; fileStream.read(segmentLengthBytes, 0, 2); offset += 2; int segmentLength = ((segmentLengthBytes[0] << 8) & 0xFF00) | (segmentLengthBytes[1] & 0xFF); // segment length includes size bytes, so subtract two segmentLength -= 2; if (segmentLength > fileStream.available()) { throw new JpegProcessingException("segment size would extend beyond file stream length"); } byte[] segmentBytes = new byte[segmentLength]; fileStream.read(segmentBytes, 0, segmentLength); offset += segmentLength; if ((thisSegmentMarker & 0xFF) == (segmentMarker & 0xFF)) { return segmentBytes; } else if ((thisSegmentMarker & 0xFF) == (SEGMENT_MARKER_SOS & 0xFF)) { // The 'Start-Of-Scan' segment's length doesn't include the image data, instead would // have to search for the two bytes: 0xFF 0xD9 (EOI). // It comes last so simply return at this point return null; } else if ((thisSegmentMarker & 0xFF) == (SEGMENT_MARKER_EOI & 0xFF)) { // the 'End-Of-Image' segment -- this should never be found in this fashion return null; } // didn't find the one we're looking for, loop through to the next segment } while (true); } catch (IOException ioe) { throw new JpegProcessingException("IOException processing Jpeg file", ioe); } finally { try { if (fileStream != null) fileStream.close(); } catch (IOException ioe) { throw new JpegProcessingException("IOException processing Jpeg file", ioe); } } }
14183 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14183/b9e1bf553d0044703426bd987566c8ad58557b28/JpegSegmentReader.java/buggy/src/com/drew/imaging/jpeg/JpegSegmentReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 855, 4131, 12, 474, 3267, 7078, 13, 1216, 804, 9001, 23684, 565, 288, 3639, 5037, 585, 1228, 273, 446, 31, 3639, 509, 1384, 273, 374, 31, 3639, 775, 288, 5411, 585, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 855, 4131, 12, 474, 3267, 7078, 13, 1216, 804, 9001, 23684, 565, 288, 3639, 5037, 585, 1228, 273, 446, 31, 3639, 509, 1384, 273, 374, 31, 3639, 775, 288, 5411, 585, 12...
if (s.indexOf("MAC")>=0) {
if (s.indexOf("MAC") >= 0) {
public static final String getMACAddress() { String ip = getIPAddress(); String mac = "none"; String os = getOS(); String s = ""; //System.out.println("os = "+os+", ip="+ip); if (os.equalsIgnoreCase("Windows NT") || os.equalsIgnoreCase("Windows 2000") || os.equalsIgnoreCase("Windows XP") || os.equalsIgnoreCase("Windows 95") || os.equalsIgnoreCase("Windows 98") || os.equalsIgnoreCase("Windows Me") || os.startsWith("Windows") ) { try { // System.out.println("EXEC> nbtstat -a "+ip); Process p = Runtime.getRuntime().exec("nbtstat -a "+ip); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { // System.out.println("NBTSTAT> "+s); if (s.indexOf("MAC")>=0) { int idx = s.indexOf("="); mac = s.substring(idx+2); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("Linux")) { try { Process p = Runtime.getRuntime().exec("/sbin/ifconfig -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { int idx = s.indexOf("HWaddr"); if (idx>=0) { mac = s.substring(idx+7); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("Solaris")) { try { Process p = Runtime.getRuntime().exec("/usr/sbin/ifconfig -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { int idx = s.indexOf("ether"); if (idx>=0) { mac = s.substring(idx+6); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("HP-UX")) { try { Process p = Runtime.getRuntime().exec("/usr/sbin/lanscan -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { if (s.indexOf("MAC")>=0) { int idx = s.indexOf("0x"); mac = s.substring(idx+2); } } } stdInput.close(); } catch(Exception e) { } } return Const.trim(mac); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/a04c5a2e26bf2c06481b36b24b45d2666de5d7ce/Const.java/buggy/src/be/ibridge/kettle/core/Const.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 514, 2108, 2226, 1887, 1435, 202, 95, 202, 202, 780, 2359, 273, 336, 22507, 5621, 202, 202, 780, 5318, 273, 315, 6102, 14432, 202, 202, 780, 1140, 273, 336, 4618, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 514, 2108, 2226, 1887, 1435, 202, 95, 202, 202, 780, 2359, 273, 336, 22507, 5621, 202, 202, 780, 5318, 273, 315, 6102, 14432, 202, 202, 780, 1140, 273, 336, 4618, 56...
DataSetHandle dsHandle = ( (JointDataSetHandle) dataSetHandle ).getModuleHandle( ) .findDataSet( dataSets.get( i ).toString( ) ); if ( dsHandle != null && dsHandle instanceof ScriptDataSetHandle ) { return true; }
updateModelColumn( dataSetHandle, uniqueColumnName, i + 1 ); if ( hasResultSetHint != true ) hasResultSetHint = true;
private boolean needsUseResultHint( DataSetHandle dataSetHandle ) { if ( dataSetHandle instanceof ScriptDataSetHandle ) return true; else if ( dataSetHandle instanceof JointDataSetHandle ) { List dataSets = ( (JointDataSetHandle) dataSetHandle ).getDataSetNames( ); for ( int i = 0; i < dataSets.size( ); i++ ) { DataSetHandle dsHandle = ( (JointDataSetHandle) dataSetHandle ).getModuleHandle( ) .findDataSet( dataSets.get( i ).toString( ) ); if ( dsHandle != null && dsHandle instanceof ScriptDataSetHandle ) { return true; } } } return false; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/da030e2e1c54b44b8969eb66bf1201b7ea175d83/DataSetMetaDataHelper.java/clean/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 4260, 3727, 1253, 7002, 12, 14065, 3259, 14837, 3259, 262, 202, 95, 202, 202, 430, 261, 14837, 3259, 1276, 7739, 13676, 3259, 262, 1082, 202, 2463, 638, 31, 202, 202, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 4260, 3727, 1253, 7002, 12, 14065, 3259, 14837, 3259, 262, 202, 95, 202, 202, 430, 261, 14837, 3259, 1276, 7739, 13676, 3259, 262, 1082, 202, 2463, 638, 31, 202, 202, 121...
{ mT34(); if (failed) return ;
{ mT37(); if (failed) return ;
public void mTokens() throws RecognitionException { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | MISC ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T26 { mT26(); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T27 { mT27(); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T28 { mT28(); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T29 { mT29(); if (failed) return ; } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T30 { mT30(); if (failed) return ; } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T31 { mT31(); if (failed) return ; } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T32 { mT32(); if (failed) return ; } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T33 { mT33(); if (failed) return ; } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T34 { mT34(); if (failed) return ; } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T35 { mT35(); if (failed) return ; } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T36 { mT36(); if (failed) return ; } break; case 12 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T37 { mT37(); if (failed) return ; } break; case 13 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T38 { mT38(); if (failed) return ; } break; case 14 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T39 { mT39(); if (failed) return ; } break; case 15 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T40 { mT40(); if (failed) return ; } break; case 16 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T41 { mT41(); if (failed) return ; } break; case 17 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T42 { mT42(); if (failed) return ; } break; case 18 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T43 { mT43(); if (failed) return ; } break; case 19 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T44 { mT44(); if (failed) return ; } break; case 20 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T45 { mT45(); if (failed) return ; } break; case 21 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T46 { mT46(); if (failed) return ; } break; case 22 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T47 { mT47(); if (failed) return ; } break; case 23 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T48 { mT48(); if (failed) return ; } break; case 24 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T49 { mT49(); if (failed) return ; } break; case 25 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T50 { mT50(); if (failed) return ; } break; case 26 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T51 { mT51(); if (failed) return ; } break; case 27 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T52 { mT52(); if (failed) return ; } break; case 28 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T53 { mT53(); if (failed) return ; } break; case 29 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T54 { mT54(); if (failed) return ; } break; case 30 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T55 { mT55(); if (failed) return ; } break; case 31 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T56 { mT56(); if (failed) return ; } break; case 32 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T57 { mT57(); if (failed) return ; } break; case 33 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T58 { mT58(); if (failed) return ; } break; case 34 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T59 { mT59(); if (failed) return ; } break; case 35 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T60 { mT60(); if (failed) return ; } break; case 36 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T61 { mT61(); if (failed) return ; } break; case 37 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T62 { mT62(); if (failed) return ; } break; case 38 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T63 { mT63(); if (failed) return ; } break; case 39 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T64 { mT64(); if (failed) return ; } break; case 40 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T65 { mT65(); if (failed) return ; } break; case 41 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T66 { mT66(); if (failed) return ; } break; case 42 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T67 { mT67(); if (failed) return ; } break; case 43 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T68 { mT68(); if (failed) return ; } break; case 44 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T69 { mT69(); if (failed) return ; } break; case 45 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T70 { mT70(); if (failed) return ; } break; case 46 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T71 { mT71(); if (failed) return ; } break; case 47 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T72 { mT72(); if (failed) return ; } break; case 48 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T73 { mT73(); if (failed) return ; } break; case 49 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: MISC { mMISC(); if (failed) return ; } break; } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b99d41f54ef70aa0e75d0c3121bc025256c35f4f/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
if (rootFolder == null) { rootFolder = (String) this.getAttributes().get("rootFolder"); }
public void initializeContent() { Boolean useUserHomeFolder = (Boolean) this.getAttributes().get("useUserHomeFolder"); if (useUserHomeFolder != null && useUserHomeFolder.booleanValue()) { try { rootFolder = super.getIWSlideSession().getUserHomeFolder(); } catch (RemoteException e) { e.printStackTrace(); } } String startFolder = (String) this.getAttributes().get("startFolder"); if (rootFolder == null) { rootFolder = (String) this.getAttributes().get("rootFolder"); } String iconTheme = (String) this.getAttributes().get("iconTheme");// rootFolder ="/files/shared"; WFBlock listBlock = new WFBlock(); WFTitlebar tb = new WFTitlebar(); tb.addTitleText(getBundle().getLocalizedText("document_list")); tb.addTitleText(" ("); tb.addTitleText(getCurrentResourcePath());// tb.addTitleText("WebDAVListBean.virtualWebDAVPath", true);// tb.addTitleText("WebDAVListBean.webDAVPath", true); tb.addTitleText(")"); listBlock.setToolbarEmbeddedInTitlebar(true); listBlock.setTitlebar(tb); listBlock.setToolbar(getToolbar()); WebDAVList list = new WebDAVList(); list.setId(getId()+"_list"); list.setRendered(renderWebDAVList); list.setStartFolder(startFolder); list.setRootFolder(rootFolder); list.setIconTheme(iconTheme); listBlock.add(list); WFBlock detailsBlock = new WFBlock(); WFTitlebar detailsBar = new WFTitlebar(); detailsBar.addTitleText(getBundle().getLocalizedText("document_details")); detailsBar.addTitleText(" ("); detailsBar.addTitleText(getCurrentResourcePath()); detailsBar.addTitleText(")"); detailsBlock.setTitlebar(detailsBar); detailsBlock.setToolbar(getToolbar()); WebDAVFileDetails details = new WebDAVFileDetails(); details.setRendered(renderWebDAVFileDetails); details.setId(getId()+"_details"); detailsBlock.add(details); WFBlock previewBlock = new WFBlock(); WFTitlebar previewBar = new WFTitlebar(); previewBar.addTitleText(getBundle().getLocalizedText("document_details")); previewBar.addTitleText(" ("); previewBar.addTitleText(getCurrentResourcePath()); previewBar.addTitleText(")"); previewBlock.setTitlebar(previewBar); previewBlock.setToolbar(getToolbar()); WebDAVFileDetails details2 = new WebDAVFileDetails(); details2.setRendered(renderWebDAVFilePreview); details2.setId(getId()+"_details"); details2.setDetailed(false); WebDAVFilePreview preview = new WebDAVFilePreview(); preview.setRendered(renderWebDAVFilePreview); preview.setId(getId()+"_preview"); previewBlock.add(details2); WFBlock folderBlock = new WFBlock(); WFTitlebar folderBar = new WFTitlebar(); folderBar.addTitleText(getBundle().getLocalizedText("create_a_folder")); folderBar.addTitleText(" ("); folderBar.addTitleText(getCurrentResourcePath()); folderBar.addTitleText(")"); folderBlock.setTitlebar(folderBar); folderBlock.setToolbar(new WFToolbar()); WebDAVFolderCreation folder = new WebDAVFolderCreation(); folder.setRendered(renderWebDAVNewFolder); folder.setId(getId()+"_folder"); folderBlock.add(folder); WFBlock uploadBlock = new WFBlock(); WFTitlebar uploadBar = new WFTitlebar(); uploadBar.addTitleText(getBundle().getLocalizedText("upload")); uploadBar.addTitleText(" ("); uploadBar.addTitleText(getCurrentResourcePath()); uploadBar.addTitleText(")"); uploadBlock.setTitlebar(uploadBar); uploadBlock.setToolbar(new WFToolbar()); WebDAVUpload upload = new WebDAVUpload();// upload.setRendered(renderWebDAVUpload); upload.setId(getId()+"_upload"); uploadBlock.add(upload); WFBlock deleteBlock = new WFBlock(); WFTitlebar deleteBar = new WFTitlebar(); deleteBar.addTitleText(getBundle().getLocalizedText("delete")); deleteBar.addTitleText(" ("); deleteBar.addTitleText(getCurrentResourcePath()); deleteBar.addTitleText(")"); deleteBlock.setTitlebar(deleteBar); deleteBlock.setToolbar(new WFToolbar()); WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter(); deleter.setRendered(renderWebDAVDeleter); deleter.setId(getId()+"_deleter"); deleteBlock.add(deleter);// getFacets().put(BAR, bar);// getChildren().add(bar);// super.setToolbar(bar); WFBlock permissionsBlock = new WFBlock(); WFTitlebar permissionsBar = new WFTitlebar(); permissionsBar.addTitleText(getBundle().getLocalizedText("permissions")); permissionsBar.addTitleText(" ("); permissionsBar.addTitleText(getCurrentResourcePath()); permissionsBar.addTitleText(")"); permissionsBlock.setTitlebar(permissionsBar); permissionsBlock.setToolbar(getToolbar()); WebDAVFilePermissions permissions = new WebDAVFilePermissions(); permissions.setRendered(renderWebDAVFilePermissions); permissions.setId(getId()+"_permissions"); permissionsBlock.add(permissions); getFacets().put(LIST, listBlock); getFacets().put(FILE_DETAILS, detailsBlock); getFacets().put(FILE_DETAILS_LESS, previewBlock); getFacets().put(PREVIEW, preview); getFacets().put(PERMISSIONS, permissionsBlock); getFacets().put(NEW_FOLDER, folderBlock); getFacets().put(UPLOAD, uploadBlock); getFacets().put(DELETE, deleteBlock); // getChildren().add(list);// getChildren().add(details);// System.out.println("tmp Eiki"); }
10078 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10078/6d5a7057367994ed7445f723c11b62bc2358503b/ContentViewer.java/buggy/src/java/com/idega/content/presentation/ContentViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 1350, 1435, 288, 1082, 202, 5507, 999, 1299, 8684, 3899, 273, 261, 5507, 13, 333, 18, 588, 2498, 7675, 588, 2932, 1202, 1299, 8684, 3899, 8863, 202, 202, 430, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 1350, 1435, 288, 1082, 202, 5507, 999, 1299, 8684, 3899, 273, 261, 5507, 13, 333, 18, 588, 2498, 7675, 588, 2932, 1202, 1299, 8684, 3899, 8863, 202, 202, 430, 261, ...
fDeleteLine= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLine."); fDeleteLineToBeginning= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLineToBeginning."); fDeleteLineToEnd= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLineToEnd."); fSetMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "SetMark."); fClearMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "ClearMark."); fSwapMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "SwapMark.");
fDeleteLine= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.DeleteLine."); fDeleteLineToBeginning= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.DeleteLineToBeginning."); fDeleteLineToEnd= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.DeleteLineToEnd."); fSetMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.SetMark."); fClearMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.ClearMark."); fSwapMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "Editor.SwapMark.");
public BasicTextEditorActionContributor() { fDeleteLine= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLine."); //$NON-NLS-1$ fDeleteLineToBeginning= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLineToBeginning."); //$NON-NLS-1$ fDeleteLineToEnd= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "DeleteLineToEnd."); //$NON-NLS-1$ fSetMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "SetMark."); //$NON-NLS-1$ fClearMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "ClearMark."); //$NON-NLS-1$ fSwapMark= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "SwapMark."); //$NON-NLS-1$ fFindNext= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "FindNext."); //$NON-NLS-1$ fFindPrevious= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "FindPrevious."); //$NON-NLS-1$ fIncrementalFind= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "IncrementalFind."); //$NON-NLS-1$ fGotoLine= new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "GotoLine."); //$NON-NLS-1$ fStatusFields= new HashMap(3); for (int i= 0; i < STATUSFIELDS.length; i++) fStatusFields.put(STATUSFIELDS[i], new StatusLineContributionItem(STATUSFIELDS[i])); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f0522025010fe8f35890c00d6bff29c938556f4e/BasicTextEditorActionContributor.java/clean/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicTextEditorActionContributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7651, 1528, 6946, 1803, 442, 19293, 1435, 288, 9506, 202, 74, 2613, 1670, 33, 394, 17100, 826, 1528, 6946, 1803, 12, 6946, 5058, 18, 588, 18731, 9334, 315, 2613, 1670, 1199, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7651, 1528, 6946, 1803, 442, 19293, 1435, 288, 9506, 202, 74, 2613, 1670, 33, 394, 17100, 826, 1528, 6946, 1803, 12, 6946, 5058, 18, 588, 18731, 9334, 315, 2613, 1670, 1199, 176...
if ( (tunnelTestTime10m != null) && (tunnelTestTime60m != null) ) {
if ( (tunnelTestTime10m != null) && (tunnelTestTime60m != null) && (tunnelTestTime10m.getLastEventCount() > 0) ) {
public boolean acceptTunnelRequest(TunnelCreateMessage msg) { long lag = _context.jobQueue().getMaxLag(); RateStat rs = _context.statManager().getRate("router.throttleNetworkCause"); Rate r = null; if (rs != null) r = rs.getRate(10*60*1000); long throttleEvents = (r != null ? r.getCurrentEventCount() + r.getLastEventCount() : 0); if (throttleEvents > THROTTLE_EVENT_LIMIT) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + " since there have been " + throttleEvents + " throttle events in the last 15 minutes or so"); _context.statManager().addRateData("router.throttleTunnelCause", lag, lag); return false; } rs = _context.statManager().getRate("transport.sendProcessingTime"); r = null; if (rs != null) r = rs.getRate(10*60*1000); double processTime = (r != null ? r.getAverageValue() : 0); if (processTime > 1000) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 10 minute message processing time is too slow (" + processTime + ")"); _context.statManager().addRateData("router.throttleTunnelProcessingTime10m", (long)processTime, (long)processTime); return false; } if (rs != null) r = rs.getRate(60*1000); processTime = (r != null ? r.getAverageValue() : 0); if (processTime > 2000) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 1 minute message processing time is too slow (" + processTime + ")"); _context.statManager().addRateData("router.throttleTunnelProcessingTime1m", (long)processTime, (long)processTime); return false; } // ok, we're not hosed, but can we handle the bandwidth requirements // of another tunnel? rs = _context.statManager().getRate("tunnel.participatingMessagesProcessed"); r = null; if (rs != null) r = rs.getRate(10*60*1000); double msgsPerTunnel = (r != null ? r.getAverageValue() : 0); r = null; rs = _context.statManager().getRate("tunnel.relayMessageSize"); if (rs != null) r = rs.getRate(10*60*1000); double bytesPerMsg = (r != null ? r.getAverageValue() : 0); double bytesPerTunnel = msgsPerTunnel * bytesPerMsg; int numTunnels = _context.tunnelManager().getParticipatingCount(); double bytesAllocated = (numTunnels + 1) * bytesPerTunnel; if (_context.getProperty(Router.PROP_SHUTDOWN_IN_PROGRESS) != null) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are shutting down ASAP"); return false; } if (numTunnels > getMinThrottleTunnels()) { Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(60*60*1000); if (avgTunnels != null) { double avg = avgTunnels.getAverageValue(); if (avg < numTunnels) { // we're accelerating, lets try not to take on too much too fast double probAccept = avg / numTunnels; if (_context.random().nextDouble() < probAccept) { // ok } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (avg=" + avg + " current=" + numTunnels + ")"); _context.statManager().addRateData("router.throttleTunnelProbTooFast", (long)(numTunnels-avg), 0); return false; } } } Rate tunnelTestTime10m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(10*60*1000); Rate tunnelTestTime60m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(60*60*1000); if ( (tunnelTestTime10m != null) && (tunnelTestTime60m != null) ) { double avg10m = tunnelTestTime10m.getAverageValue(); double avg60m = tunnelTestTime60m.getAverageValue(); if (avg10m > avg60m) { double probAccept = avg60m/avg10m; if (_context.random().nextDouble() < probAccept) { // ok } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (test time avg 10m=" + avg10m + " 60m=" + avg60m + ")"); _context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg10m-avg60m), 0); return false; } } } } String maxTunnels = _context.getProperty(PROP_MAX_TUNNELS); if (maxTunnels != null) { try { int max = Integer.parseInt(maxTunnels); if (numTunnels >= max) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are already participating in " + numTunnels + " (our max is " + max + ")"); _context.statManager().addRateData("router.throttleTunnelMaxExceeded", numTunnels, 0); return false; } } catch (NumberFormatException nfe) { // no default, ignore it } } _context.statManager().addRateData("tunnel.bytesAllocatedAtAccept", (long)bytesAllocated, msg.getTunnelDurationSeconds()*1000); // todo: um, throttle (include bw usage of the netDb, our own tunnels, the clients, // and check to see that they are less than the bandwidth limits if (_log.shouldLog(Log.DEBUG)) _log.debug("Accepting a new tunnel request (now allocating " + bytesAllocated + " bytes across " + numTunnels + " tunnels with lag of " + lag + " and " + throttleEvents + " throttle events)"); return true; }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/d91ac7ef212d0138fe6d03398ad03645701ac680/RouterThrottleImpl.java/clean/router/java/src/net/i2p/router/RouterThrottleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2791, 20329, 691, 12, 20329, 1684, 1079, 1234, 13, 288, 540, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2791, 20329, 691, 12, 20329, 1684, 1079, 1234, 13, 288, 540, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, ...
registerGlobalAction(backAction);
register(backAction);
private void makeActions(IWorkbenchConfigurer workbenchConfigurer, IActionBarConfigurer actionBarConfigurer) { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem setCurrentActionBarConfigurer(actionBarConfigurer); // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); registerGlobalAction(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); registerGlobalAction(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); registerGlobalAction(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); registerGlobalAction(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); registerGlobalAction(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); registerGlobalAction(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); registerGlobalAction(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); registerGlobalAction(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); registerGlobalAction(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); registerGlobalAction(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); registerGlobalAction(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); registerGlobalAction(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); registerGlobalAction(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); registerGlobalAction(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); registerGlobalAction(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); registerGlobalAction(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); registerGlobalAction(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); registerGlobalAction(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); registerGlobalAction(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); registerGlobalAction(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); registerGlobalAction(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); registerGlobalAction(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); registerGlobalAction(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); registerGlobalAction(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); registerGlobalAction(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); registerGlobalAction(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); registerGlobalAction(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); registerGlobalAction(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); registerGlobalAction(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); registerGlobalAction(nextEditorAction); registerGlobalAction(prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); registerGlobalAction(nextPartAction); registerGlobalAction(prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); registerGlobalAction(nextPerspectiveAction); registerGlobalAction(prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); registerGlobalAction(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); registerGlobalAction(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); registerGlobalAction(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); registerGlobalAction(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); registerGlobalAction(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); registerGlobalAction(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); registerGlobalAction(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); registerGlobalAction(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); registerGlobalAction(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); registerGlobalAction(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); registerGlobalAction(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); registerGlobalAction(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); registerGlobalAction(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); registerGlobalAction(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); registerGlobalAction(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); registerGlobalAction(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); registerGlobalAction(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); registerGlobalAction(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); registerGlobalAction(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); registerGlobalAction(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); registerGlobalAction(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); registerGlobalAction(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); registerGlobalAction(forwardAction); upAction = ActionFactory.UP.create(getWindow()); registerGlobalAction(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); registerGlobalAction(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); registerGlobalAction(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); registerGlobalAction(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); registerGlobalAction(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); registerGlobalAction(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); registerGlobalAction(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); registerGlobalAction(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); registerGlobalAction(introAction); } final String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; registerGlobalAction(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; registerGlobalAction(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/02a63c83a96f095b44f6c4a9bd0de64e8b842628/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct"));
newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct"));
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/1278c5bb3507a052d150d814f15453542ae41aed/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 5984, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 514, 508, 273, 446, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 597, 833, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 5984, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 514, 508, 273, 446, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 597, 833, 63...
Object[] contentAttrs = fAttrChecker.checkAttributes(content, false);
Object[] contentAttrs = fAttrChecker.checkAttributes(content, false, schemaDoc.fNamespaceSupport);
private int traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues) { String nameProperty = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; String qualifiedName = nameProperty; //--------------------------------------------------- // set qualified name //--------------------------------------------------- if (nameProperty == null) { // anonymous simpleType qualifiedName = fSchemaDoc.fTargetNamespace+","+"#S#"+(fSimpleTypeAnonCount++); //REVISIT: // add to symbol table? } else { // this behaviour has been changed so that we neither // process unqualified names as if they came from the schemaforschema namespace nor // fail to pick up unqualified names from schemas with no // targetnamespace. - NG //if (fTargetNSURIString.length () != 0) { qualifiedName = fSchemaDoc.fTargetNamespace+","+qualifiedName; //} //REVISIT: // add to symbol table? } //---------------------------------------------------------------------- //check if we have already traversed the same simpleType decl //---------------------------------------------------------------------- /*if (fSchemaHandler.getSimpleTypeValidator(qualifiedName)!=null) { return resetSimpleTypeNameStack(qualifiedName); } else { if (fSimpleTypeNameStack.search(qualifiedName) != -1) { // cos-no-circular-unions && no circular definitions reportGenericSchemaError("cos-no-circular-unions: no circular definitions are allowed for an element '"+ nameProperty+"'"); return resetSimpleTypeNameStack(fSchemaHandler.EMPTY_STRING); } }*/ //---------------------------------------------------------- // REVISIT! // update _final_ registry //---------------------------------------------------------- Integer finalAttr = (Integer)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? 0 : finalAttr.intValue(); //---------------------------------------------------------------------- //annotation?,(list|restriction|union) //---------------------------------------------------------------------- Element content = DOMUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(simpleTypeDecl, content, false); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return -1; } // General Attribute Checking Object[] contentAttrs = fAttrChecker.checkAttributes(content, false); // REVISIT: when to return the array fAttrChecker.returnAttrArray(contentAttrs); //---------------------------------------------------------------------- //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" //---------------------------------------------------------------------- String varietyProperty = DOMUtil.getLocalName(content); //content.getLocalName(); QName baseTypeQNameProperty = null; Vector memberTypes = null; Vector dTValidators = null; int size = 0; boolean list = false; boolean union = false; boolean restriction = false; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeQNameProperty = (QName)contentAttrs[XSAttributeChecker.ATTIDX_ITEMTYPE]; list = true; if (fListName.length() != 0) { // parent is <list> datatype reportCosListOfAtomic(); return -1; } else { fListName = qualifiedName; } } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeQNameProperty = (QName)contentAttrs[XSAttributeChecker.ATTIDX_BASE]; //content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (memberTypes != null) { size = memberTypes.size(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { Object[] args = { varietyProperty}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "FeatureUnsupported", args, XMLErrorReporter.SEVERITY_ERROR); } if (DOMUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } DatatypeValidator baseValidator = null; int simpleTypeIndex = -1; if (baseTypeQNameProperty == null && memberTypes == null) { //--------------------------- //must 'see' <simpleType> //--------------------------- //content = {annotation?,simpleType?...} content = DOMUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(simpleTypeDecl, content, false); if (content == null) { reportGenericSchemaError("no child element found for simpleType '"+ nameProperty+"'"); return -1; } if (DOMUtil.getLocalName(content).equals( SchemaSymbols.ELT_SIMPLETYPE )) { simpleTypeIndex = traverse(content, fSchemaDoc, fGrammar); if (simpleTypeIndex != -1) { baseValidator = (DatatypeValidator)fGrammar.getTypeDecl(simpleTypeIndex); if (baseValidator != null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if (baseValidator == null) { Object[] args = {content.getAttribute( SchemaSymbols.ATT_BASE )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); return -1; } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); 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 = (QName)memberTypes.elementAt(i); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeQNameProperty, baseRefContext); if (baseValidator == null) { return -1; } // ------------------------------ // (variety is list)cos-list-of-atomic // ------------------------------ if (fListName.length() != 0) { if (baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return -1; } //----------------------------------------------------- // if baseValidator is of type (union) need to look // at Union validators to make sure that List is not one of them //----------------------------------------------------- if (isListDatatype(baseValidator)) { reportCosListOfAtomic(); return -1; } } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available // ------------------------------------------ // move to next child // <base==empty)->[simpleType]->[facets] OR // <base!=empty)->[facets] // ------------------------------------------ if (baseTypeQNameProperty == null) { content = DOMUtil.getNextSiblingElement( content ); } else { content = DOMUtil.getFirstChildElement(content); } // ------------------------------------------ //get more types for union if any // ------------------------------------------ if (union) { int index=size; if (memberTypes != null) { content = checkContent(simpleTypeDecl, content, true); } while (content!=null) { simpleTypeIndex = traverse(content, fSchemaDoc, fGrammar); baseValidator = null; if (simpleTypeIndex != -1) { baseValidator= (DatatypeValidator)fGrammar.getTypeDecl(simpleTypeIndex); if (baseValidator != null) { if (fListName.length() != 0 && baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(); return -1; } dTValidators.addElement((DatatypeValidator)baseValidator); } } if (baseValidator == null) { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "UnknownBaseDatatype", args, XMLErrorReporter.SEVERITY_ERROR); return -1; } content = DOMUtil.getNextSiblingElement( content ); } } // end - traverse Union if (fListName.length() != 0) { // reset fListName, meaning that we are done with // traversing <list> and its itemType resolves to atomic value if (fListName.equals(qualifiedName)) { fListName = ""; } } int numFacets=0; fFacetData.clear(); if (restriction && content != null) { short flags = 0; // flag facets that have fixed="true" int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(simpleTypeDecl, content , true); String facet; while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { // General Attribute Checking Object[] attrs = fAttrChecker.checkAttributes(content, false); // REVISIT: when to return the array fAttrChecker.returnAttrArray(attrs); numFacets++; facet = DOMUtil.getLocalName(content); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = DOMUtil.getAttrValue(content, 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.length() != 0)?fSchemaHandler.resolvePrefixToURI(prefix):fSchemaDoc.fTargetNamespace; nameProperty=uriStr + ":" + localpart; localName = (String)fSchemaHandler.fNotationRegistry.get(nameProperty); if (localName == null) { //REVISIT: when implementing notation! //localName = traverseNotationFromAnotherSchema( localpart, uriStr); if (localName == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } } enumVal=nameProperty; } enumData.addElement(enumVal); checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { //REVISIT: Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (fPattern == null) { //REVISIT: size of buffer fPattern = new StringBuffer (DOMUtil.getAttrValue( content, SchemaSymbols.ATT_VALUE )); } else { // --------------------------------------------- //datatypes: 5.2.4 pattern: src-multiple-pattern // --------------------------------------------- fPattern.append("|"); fPattern.append(DOMUtil.getAttrValue(content, SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } } else { if (fFacetData.containsKey(facet)) fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "DatatypeError", new Object[]{"The facet '" + facet + "' is defined more than once."}, XMLErrorReporter.SEVERITY_ERROR); fFacetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); if (content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE) || content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE_1)) { // -------------------------------------------- // set fixed facet flags // length - must remain const through derivation // thus we don't care if it fixed // -------------------------------------------- if (facet.equals(SchemaSymbols.ELT_MINLENGTH)) { flags |= DatatypeValidator.FACET_MINLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXLENGTH)) { flags |= DatatypeValidator.FACET_MAXLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXEXCLUSIVE)) { flags |= DatatypeValidator.FACET_MAXEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MAXINCLUSIVE)) { flags |= DatatypeValidator.FACET_MAXINCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MINEXCLUSIVE)) { flags |= DatatypeValidator.FACET_MINEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MININCLUSIVE)) { flags |= DatatypeValidator.FACET_MININCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_TOTALDIGITS)) { flags |= DatatypeValidator.FACET_TOTALDIGITS; } else if (facet.equals(SchemaSymbols.ELT_FRACTIONDIGITS)) { flags |= DatatypeValidator.FACET_FRACTIONDIGITS; } else if (facet.equals(SchemaSymbols.ELT_WHITESPACE) && baseValidator instanceof StringDatatypeValidator) { flags |= DatatypeValidator.FACET_WHITESPACE; } } checkContent(simpleTypeDecl, DOMUtil.getFirstChildElement( content ), true); } } content = DOMUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { fFacetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (fPattern !=null) { fFacetData.put(SchemaSymbols.ELT_PATTERN, fPattern.toString()); } if (flags != 0) { fFacetData.put(DatatypeValidator.FACET_FIXED, new Short(flags)); } fPattern = null; } else if (list && content!=null) { // report error - must not have any children! if (baseTypeQNameProperty != null) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { //REVISIT: Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else if (union && content!=null) { //report error - must not have any children! if (memberTypes != null) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } } DatatypeValidator newDV = null; if (list) { try { newDV = new ListDatatypeValidator(baseValidator, fFacetData, true); } catch (InvalidDatatypeFacetException e) { reportGenericSchemaError(e.getMessage()); } } else if (restriction) { Class validatorDef = baseValidator.getClass(); Class [] validatorArgsClass = new Class[] { org.apache.xerces.impl.v2.datatypes.DatatypeValidator.class, java.util.Hashtable.class, boolean.class}; Object [] validatorArgs = new Object[] {baseValidator, fFacetData, Boolean.FALSE}; try { Constructor validatorConstructor = validatorDef.getConstructor( validatorArgsClass ); newDV = (DatatypeValidator) validatorConstructor.newInstance(validatorArgs); } catch (NoSuchMethodException e) { } catch ( InstantiationException e ) { } catch ( IllegalAccessException e ) { } catch ( IllegalArgumentException e ) { } catch ( InvocationTargetException e ) { reportGenericSchemaError(e.getMessage()); } } else { //union newDV = new UnionDatatypeValidator(dTValidators); } newDV.setFinalSet(finalProperty); //REVISIT: add type name into type //int newDVIdx = fGrammar.addTypeDecl(nameProperty, newDV); int newDVIdx = fGrammar.addTypeDecl(newDV); return newDVIdx; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0f2aae2c22c5dc0957f0413b6320b4c5497482e8/XSDSimpleTypeTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDSimpleTypeTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 1033, 8526, 1604, 1972, 13, 288, 3639, 514, 508, 1396, 225, 273, 261, 780, 13, 1747, 1972, 63, 60, 55, 1499, 8847, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 1033, 8526, 1604, 1972, 13, 288, 3639, 514, 508, 1396, 225, 273, 261, 780, 13, 1747, 1972, 63, 60, 55, 1499, 8847, 18, ...
return fMarkupDepth;
return fMarkupDepth;
protected int scanEndElement() throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanEndElement()"); // pop context fElementStack.popElement(fElementQName) ; // Take advantage of the fact that next string _should_ be "fElementQName.rawName", //In scanners most of the time is consumed on checks done for XML characters, we can // optimize on it and avoid the checks done for endElement, //we will also avoid symbol table lookup - neeraj.bajaj@sun.com // this should work both for namespace processing true or false... //REVISIT: if the string is not the same as expected.. we need to do better error handling.. //We can skip this for now... In any case if the string doesn't match -- document is not well formed. if (!fEntityScanner.skipString(fElementQName.rawname)) { reportFatalError("ETagRequired", new Object[]{fElementQName.rawname}); } // end fEntityScanner.skipSpaces(); if (!fEntityScanner.skipChar('>')) { reportFatalError("ETagUnterminated", new Object[]{fElementQName.rawname}); } fMarkupDepth--; //we have increased the depth for two markup "<" characters fMarkupDepth--; // check that this element was opened in the same entity if (fMarkupDepth < fEntityStack[fEntityDepth - 1]) { reportFatalError("ElementEntityMismatch", new Object[]{fCurrentElement.rawname}); } // call handler if (fDocumentHandler != null ) { fDocumentHandler.endElement(fElementQName, null); if (fBindNamespaces) { fNamespaceContext.popContext(); } } return fMarkupDepth; } // scanEndElement():int
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/d954abe66b7b1e4cc31b4a4cd05201210fc8aa4a/XML11NSDocumentScannerImpl.java/buggy/src/org/apache/xerces/impl/XML11NSDocumentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 4135, 1638, 1046, 1435, 1216, 1860, 16, 1139, 50, 45, 503, 288, 202, 202, 430, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 2332, 18, 659, 18, 8222, 2932, 23012, 4135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 4135, 1638, 1046, 1435, 1216, 1860, 16, 1139, 50, 45, 503, 288, 202, 202, 430, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 2332, 18, 659, 18, 8222, 2932, 23012, 4135...
public MockPage(final PageParameters parameters) {
public MockPage() {
public MockPage(final PageParameters parameters) { // Action link counts link clicks final Link actionLink = new Link("actionLink") { private static final long serialVersionUID = 1L; public void onClick() { linkClickCount++; } }; actionLink.add(new Label("linkClickCount", new PropertyModel(this, "linkClickCount"))); add(actionLink); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/0fdf3c0295a9652408915ea02c10f339dc24347f/MockPage.java/buggy/wicket/src/test/wicket/protocol/http/MockPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7867, 1964, 1435, 288, 3639, 368, 4382, 1692, 6880, 1692, 27659, 3639, 727, 4048, 1301, 2098, 273, 394, 4048, 2932, 1128, 2098, 7923, 288, 1082, 202, 1152, 760, 727, 1525, 30244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7867, 1964, 1435, 288, 3639, 368, 4382, 1692, 6880, 1692, 27659, 3639, 727, 4048, 1301, 2098, 273, 394, 4048, 2932, 1128, 2098, 7923, 288, 1082, 202, 1152, 760, 727, 1525, 30244, ...
return haveMinimumServerVersion("7.1");
return connection.haveMinimumServerVersion("7.1");
public boolean supportsOuterJoins() throws SQLException { return haveMinimumServerVersion("7.1"); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/184505bbfc2484103083728601999f8b7cb87944/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 6146, 15040, 21108, 1435, 1216, 6483, 225, 288, 1377, 327, 1459, 18, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1250, 6146, 15040, 21108, 1435, 1216, 6483, 225, 288, 1377, 327, 1459, 18, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -...
if (descriptor instanceof ProblemDescriptor) { if (((ProblemDescriptor)descriptor).getPsiElement() != null) { ((LocalQuickFix)fix).applyFix(project, (ProblemDescriptor)descriptor); } } else { ((GlobalQuickFix)fix).applyFix(); }
fix.applyFix(project, descriptor);
public void run() { CommandProcessor.getInstance().markCurrentCommandAsComplex(project); ApplicationManager.getApplication().runWriteAction(new Runnable() { public void run() { for (CommonProblemDescriptor descriptor : descriptors) { final QuickFix[] fixes = descriptor.getFixes(); if (fixes != null) { for (QuickFix fix : fixes) { if (fix != null) { final QuickFixAction quickFixAction = QuickFixAction.this; if (quickFixAction instanceof LocalQuickFixWrapper && !((LocalQuickFixWrapper)quickFixAction).getFix().getClass().isInstance(fix)) { continue; } if (descriptor instanceof ProblemDescriptor) { if (((ProblemDescriptor)descriptor).getPsiElement() != null) { ((LocalQuickFix)fix).applyFix(project, (ProblemDescriptor)descriptor); } } else { ((GlobalQuickFix)fix).applyFix(); } tool.ignoreProblem(descriptor, fix); } } } } } }); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e066503348c6af00cf888b6392b3fadcc43d5d48/QuickFixAction.java/clean/inspections/impl/com/intellij/codeInspection/ex/QuickFixAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 3498, 5164, 18, 588, 1442, 7675, 3355, 3935, 2189, 1463, 12795, 12, 4406, 1769, 3639, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 2704, 10254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4202, 1071, 918, 1086, 1435, 288, 3639, 3498, 5164, 18, 588, 1442, 7675, 3355, 3935, 2189, 1463, 12795, 12, 4406, 1769, 3639, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 2704, 10254, ...
this.guidanceId = guidanceId;
wizardPageDefinition.setGuidanceId(guidanceId);
public void setGuidanceId(Id guidanceId) { this.guidanceId = guidanceId; }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/7bdbe0d45de7a01a7cd7e8f567681868ab2d69e9/ScaffoldingCell.java/buggy/matrix/api/src/java/org/theospi/portfolio/matrix/model/ScaffoldingCell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 444, 22549, 1359, 548, 12, 548, 9875, 1359, 548, 13, 288, 1377, 24204, 1964, 1852, 18, 542, 22549, 1359, 548, 12, 14066, 1359, 548, 1769, 282, 289, 2, 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, 0, 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, 918, 444, 22549, 1359, 548, 12, 548, 9875, 1359, 548, 13, 288, 1377, 24204, 1964, 1852, 18, 542, 22549, 1359, 548, 12, 14066, 1359, 548, 1769, 282, 289, 2, -100, -100, -100, -100, ...
{ int j = readBufferPos; if (count > 0 && (count % 4) != 0) { encodingError ( "number of bytes in UCS-4 encoding not divisible by 4", -1, count); } for (int i = 0; i < count; i += 4) { int value = (((rawReadBuffer [i] & 0xff) << shift1) | ((rawReadBuffer [i + 1] & 0xff) << shift2) | ((rawReadBuffer [i + 2] & 0xff) << shift3) | ((rawReadBuffer [i + 3] & 0xff) << shift4)); if (value < 0x0000ffff) { readBuffer [j++] = (char) value; if (value == (int) '\r') { sawCR = true; } } else if (value < 0x0010ffff) { value -= 0x010000; readBuffer [j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer [j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError ("UCS-4 value out of range for Unicode", value, i); } } readBufferLength = j; }
{ int j = readBufferPos; if (count > 0 && (count % 4) != 0) { encodingError("number of bytes in UCS-4 encoding " + "not divisible by 4", -1, count); } for (int i = 0; i < count; i += 4) { int value = (((rawReadBuffer [i] & 0xff) << shift1) | ((rawReadBuffer [i + 1] & 0xff) << shift2) | ((rawReadBuffer [i + 2] & 0xff) << shift3) | ((rawReadBuffer [i + 3] & 0xff) << shift4)); if (value < 0x0000ffff) { readBuffer [j++] = (char) value; if (value == (int) '\r') { sawCR = true; } } else if (value < 0x0010ffff) { value -= 0x010000; readBuffer[j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer[j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError("UCS-4 value out of range for Unicode", value, i); } } readBufferLength = j; }
private void copyUcs4ReadBuffer (int count, int shift1, int shift2, int shift3, int shift4) throws SAXException { int j = readBufferPos; if (count > 0 && (count % 4) != 0) { encodingError ( "number of bytes in UCS-4 encoding not divisible by 4", -1, count); } for (int i = 0; i < count; i += 4) { int value = (((rawReadBuffer [i] & 0xff) << shift1) | ((rawReadBuffer [i + 1] & 0xff) << shift2) | ((rawReadBuffer [i + 2] & 0xff) << shift3) | ((rawReadBuffer [i + 3] & 0xff) << shift4)); if (value < 0x0000ffff) { readBuffer [j++] = (char) value; if (value == (int) '\r') { sawCR = true; } } else if (value < 0x0010ffff) { value -= 0x010000; readBuffer [j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer [j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError ("UCS-4 value out of range for Unicode", value, i); } } readBufferLength = j; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 57, 2143, 24, 1994, 1892, 261, 474, 1056, 16, 509, 4654, 21, 16, 509, 4654, 22, 16, 9506, 1377, 509, 4654, 23, 16, 509, 4654, 24, 13, 565, 1216, 14366, 565, 288, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 57, 2143, 24, 1994, 1892, 261, 474, 1056, 16, 509, 4654, 21, 16, 509, 4654, 22, 16, 9506, 1377, 509, 4654, 23, 16, 509, 4654, 24, 13, 565, 1216, 14366, 565, 288, 202,...
if(!is_server) { msg_copy=msg.copy(); msg_copy.putHeader(getName(), hdr); queued_msgs.add(msg_copy); passUp(new Event(Event.MSG, msg)); return; }
case NakAckHeader.NAK_ACK_MSG: case NakAckHeader.NAK_MSG: if(hdr.type == NakAckHeader.NAK_ACK_MSG) { Message ack_msg=new Message(msg.getSrc(), null, null); NakAckHeader h=new NakAckHeader(NakAckHeader.NAK_ACK_RSP, hdr.seqno, null); ack_msg.putHeader(getName(), h); passDown(new Event(Event.MSG, ack_msg)); } if(!is_server) { msg_copy=msg.copy(); msg_copy.putHeader(getName(), hdr); queued_msgs.add(msg_copy); passUp(new Event(Event.MSG, msg)); return; }
public void up(Event evt) { NakAckHeader hdr=null; Message msg, msg_copy; int rc; switch(evt.getType()) { case Event.SUSPECT: if(Trace.trace) Trace.info("NAKACK.up()", "received SUSPECT event (suspected member=" + evt.getArg() + ")"); naker.suspect((Address) evt.getArg()); out_of_bander.suspect((Address) evt.getArg()); break; case Event.STABLE: // generated by STABLE layer. Delete stable messages passed in arg naker.stable((long[])evt.getArg()); return; // don't pass up further (Bela Aug 7 2001) case Event.SET_LOCAL_ADDRESS: local_addr=(Address)evt.getArg(); break; case Event.GET_MSGS_RECEIVED: // returns the highest seqnos delivered to the appl. (used by STABLE) long[] highest=naker.getHighestSeqnosDelivered(); passDown(new Event(Event.GET_MSGS_RECEIVED_OK, highest)); return; // don't pass up further (bela Aug 7 2001) case Event.MSG: synchronized (this) { msg=(Message)evt.getArg(); // check to see if this is a wrapped msg. If yes, send an ACK hdr=(NakAckHeader)msg.removeHeader(WRAPPED_MSG_KEY); // see whether it is a wrapped message if(hdr != null && hdr.type == NakAckHeader.WRAPPED_MSG) { // send back an ACK to hdr.sender Message ack_msg=new Message(hdr.sender, null, null); NakAckHeader h=new NakAckHeader(NakAckHeader.NAK_ACK_RSP, hdr.seqno, null); if(hdr.sender == null) Trace.warn("NAKACK.up()", "WRAPPED: header's 'sender' field is null; " + "cannot send ACK !"); ack_msg.putHeader(getName(), h); passDown(new Event(Event.MSG, ack_msg)); } hdr=(NakAckHeader)msg.removeHeader(getName()); if(hdr == null) break; // pass up switch(hdr.type) { case NakAckHeader.NAK_ACK_MSG: case NakAckHeader.NAK_MSG: if(hdr.type == NakAckHeader.NAK_ACK_MSG) { // first thing: send ACK back to sender Message ack_msg=new Message(msg.getSrc(), null, null); NakAckHeader h=new NakAckHeader(NakAckHeader.NAK_ACK_RSP, hdr.seqno, null); ack_msg.putHeader(getName(), h); passDown(new Event(Event.MSG, ack_msg)); } // while still a client, we just pass up all messages, without checking for message // view IDs or seqnos: other layers further up will discard messages not destined // for us (e.g. based on view IDs). // Also: store msg in queue, when view change is received, replay messages with the same // vid as the new view if(!is_server) { msg_copy=msg.copy(); // msg without header msg_copy.putHeader(getName(), hdr); // put header back on as we removed it above queued_msgs.add(msg_copy); // need a copy since passUp() will modify msg passUp(new Event(Event.MSG, msg)); return; } // check for VIDs: is the message's VID the same as ours ? if(vid != null && hdr.vid != null) { // only check if our vid and message's vid available Address my_addr=vid.getCoordAddress(), other_addr=hdr.vid.getCoordAddress(); if(my_addr == null || other_addr == null) { Trace.warn("NAKACK.up()", "my vid or message's vid does not contain " + "a coordinator; discarding message !"); return; } if(!my_addr.equals(other_addr)) { Trace.warn("NAKACK.up()", "creator of own vid (" + my_addr + ")is different from " + "creator of message's vid (" + other_addr + "); discarding message !"); return; } rc=hdr.vid.compareTo(vid); if(rc > 0) { // message is sent in next view -> store ! if(Trace.trace) Trace.info("NAKACK.up()", "message's vid (" + hdr.vid + "#" + hdr.seqno + ") is bigger than current vid: (" + vid+ ") message is queued !"); msg.putHeader(getName(), hdr); // put header back on as we removed it above queued_msgs.add(msg); return; } if(rc < 0) { // message sent in prev. view -> discard ! if(Trace.trace) Trace.warn("NAKACK.up()", "message's vid (" + hdr.vid +") is smaller than " + "current vid ("+ vid+"): message <"+ msg.getSrc() + ":#" + hdr.seqno + "> is discarded ! Hdr is " + hdr); return; } // If we made it down here, the vids are the same --> OK } msg.putHeader(getName(), hdr); // stored in received_msgs, re-sent later that's why hdr is added ! naker.receive(hdr.seqno, msg, null); return; // naker passes message up for us ! case NakAckHeader.RETRANSMIT_MSG: naker.retransmit(msg.getSrc(), hdr.seqno, hdr.last_seqno); return; case NakAckHeader.NAK_ACK_RSP: naker.receiveAck(hdr.seqno, msg.getSrc()); return; // discard, no need to pass up case NakAckHeader.OUT_OF_BAND_MSG: out_of_bander.receive(hdr.seqno, msg, hdr.stable_msgs); return; // naker passes message up for us ! case NakAckHeader.OUT_OF_BAND_RSP: out_of_bander.receiveAck(hdr.seqno, msg.getSrc()); return; default: Trace.error("NAKACK.up()", "NakAck header type " + hdr.type + " not known !"); break; } } //end synchronized } passUp(evt); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/75359f4186603c5a949e15ffab51fb811f04ed8e/NAKACK.java/buggy/src/org/jgroups/protocols/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 202, 50, 581, 11931, 1864, 225, 7723, 33, 2011, 31, 202, 1079, 4202, 1234, 16, 1234, 67, 3530, 31, 202, 474, 6647, 4519, 31, 202, 9610, 12, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 731, 12, 1133, 6324, 13, 288, 202, 50, 581, 11931, 1864, 225, 7723, 33, 2011, 31, 202, 1079, 4202, 1234, 16, 1234, 67, 3530, 31, 202, 474, 6647, 4519, 31, 202, 9610, 12, 73...
suite.addTestSuite(TestBug0.class);
static public Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TestBug0.class); // TODO Cannot replicate in test context yet return suite; } // static public Test suite()
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/f08c86858f7af1a89edd3862c3aaf8569b47ed92/SuiteBugsOpen.java/clean/grouper/src/test/edu/internet2/middleware/grouper/SuiteBugsOpen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 7766, 11371, 1435, 288, 565, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 2398, 368, 2660, 14143, 28476, 316, 1842, 819, 4671, 565, 327, 11371, 31, 225, 289, 368, 760, 1071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 7766, 11371, 1435, 288, 565, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 2398, 368, 2660, 14143, 28476, 316, 1842, 819, 4671, 565, 327, 11371, 31, 225, 289, 368, 760, 1071, ...
TableEditorImpl(StructuredViewer viewer) {
TableEditorImpl(ColumnViewer viewer) {
TableEditorImpl(StructuredViewer viewer) { this.viewer = viewer; initCellEditorListener(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/72b02dfa9a75652d45af68d329d447e0e8bbe40d/TableEditorImpl.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableEditorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3555, 6946, 2828, 12, 1494, 18415, 14157, 13, 288, 3639, 333, 18, 25256, 273, 14157, 31, 3639, 1208, 4020, 6946, 2223, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3555, 6946, 2828, 12, 1494, 18415, 14157, 13, 288, 3639, 333, 18, 25256, 273, 14157, 31, 3639, 1208, 4020, 6946, 2223, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (((prevStepIsOnPavement && movementType == IEntityMovementType.MOVE_RUN) || srcHex .containsTerrain(Terrains.ICE))
if (((prevStepIsOnPavement && movementType == IEntityMovementType.MOVE_RUN) || (srcHex.containsTerrain(Terrains.ICE)) && movementType != IEntityMovementType.MOVE_JUMP)
public static boolean isPilotingSkillNeeded(IGame game, int entityId, Coords src, Coords dest, int movementType, boolean isTurning, boolean prevStepIsOnPavement, int srcElevation, int destElevation) { final Entity entity = game.getEntity(entityId); final IHex srcHex = game.getBoard().getHex(src); final IHex destHex = game.getBoard().getHex(dest); final boolean isInfantry = (entity instanceof Infantry); final boolean isPavementStep = canMoveOnPavement(game, src, dest); // arguments valid? if (entity == null) { throw new IllegalArgumentException("Entity invalid."); } if (src.distance(dest) > 1) { throw new IllegalArgumentException("Coordinates must be adjacent."); } // let's only worry about actual movement, please if (src.equals(dest)) { return false; } // check for rubble if (movementType != IEntityMovementType.MOVE_JUMP && destHex.terrainLevel(Terrains.RUBBLE) > 0 && entity.getMovementMode() != IEntityMovementMode.VTOL && !isInfantry) { return true; } // check for swamp if (destHex.containsTerrain(Terrains.SWAMP) && !(entity.getElevation() > destHex.getElevation()) && entity.getMovementMode() != IEntityMovementMode.HOVER && entity.getMovementMode() != IEntityMovementMode.VTOL && movementType != IEntityMovementType.MOVE_JUMP) { return true; } // check for thin ice if (destHex.containsTerrain(Terrains.ICE) && destHex.containsTerrain(Terrains.WATER) && !(entity.getElevation() > destHex.getElevation()) && !isPavementStep) { return true; } // Check for water unless we're a hovercraft or naval or using a bridge // or flying. if (movementType != IEntityMovementType.MOVE_JUMP && !(entity.getElevation() > destHex.surface()) && !(entity.getMovementMode() == IEntityMovementMode.HOVER || entity.getMovementMode() == IEntityMovementMode.NAVAL || entity.getMovementMode() == IEntityMovementMode.HYDROFOIL || entity .getMovementMode() == IEntityMovementMode.SUBMARINE) && destHex.terrainLevel(Terrains.WATER) > 0 && !isPavementStep) { return true; } // Check for skid. Please note, the skid will be rolled on the // current step, but starts from the previous step's location. // TODO: add check for elevation of pavement, road, // or bridge matches entity elevation. /* * Bug 754610: Revert fix for bug 702735. if ( ( * srcHex.contains(Terrain.PAVEMENT) || srcHex.contains(Terrain.ROAD) || * srcHex.contains(Terrain.BRIDGE) ) */ if (((prevStepIsOnPavement && movementType == IEntityMovementType.MOVE_RUN) || srcHex .containsTerrain(Terrains.ICE)) && isTurning && !isInfantry) { return true; } // If we entering or leaving a building, all non-infantry // need to make a piloting check to avoid damage. // TODO: allow entities to occupy different levels of buildings. if ((srcElevation < srcHex.terrainLevel(Terrains.BLDG_ELEV) || destElevation < destHex .terrainLevel(Terrains.BLDG_ELEV)) && !(entity instanceof Infantry)) { return true; } // check sideslips if (entity instanceof VTOL) { if (isTurning && ((movementType == IEntityMovementType.MOVE_RUN) || (movementType == IEntityMovementType.MOVE_VTOL_RUN))) return true; } return false; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d0b47fdec139e586c65ccf375390ea51c9bfe4be/Compute.java/clean/megamek/src/megamek/common/Compute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 29962, 330, 17128, 9030, 11449, 12, 3047, 339, 7920, 16, 509, 15052, 16, 5411, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 509, 26017, 559, 16, 1250, 353, 15858, 310, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 29962, 330, 17128, 9030, 11449, 12, 3047, 339, 7920, 16, 509, 15052, 16, 5411, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 509, 26017, 559, 16, 1250, 353, 15858, 310, 16, ...
if (cx.isGeneratingDebug()) {
if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) {
private void generatePrologue(Context cx, Node tree, boolean inFunction, int directParameterCount) { funObjLocal = reserveWordLocal(0); contextLocal = reserveWordLocal(1); variableObjectLocal = reserveWordLocal(2); thisObjLocal = reserveWordLocal(3); if (inFunction && !cx.hasCompileFunctionsWithDynamicScope() && directParameterCount == -1) { // Unless we're either using dynamic scope or we're in a // direct call, use the enclosing scope of the function as our // variable object. aload(funObjLocal); classFile.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()", "Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount != null) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount.intValue(); i++) { reserveWordLocal(itsLocalAllocationBase + i); } } hasVarsInRegs = inFunction && !((OptFunctionNode)tree).requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = vars.getParameterCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < vars.size(); i++) { OptLocalVariable lVar = (OptLocalVariable) vars.getVariable(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = vars; // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); push(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;Z)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); Vector fns = (Vector) tree.getProp(Node.FUNCTION_PROP); if (inFunction && fns != null) { for (int i=0; i < fns.size(); i++) { FunctionNode fn = (FunctionNode) fns.elementAt(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, true); } } } if (cx.isGeneratingDebug()) { debugVars = new OptVariableTable(); debugVars.addLocal(debugVariableName); OptLocalVariable lv = (OptLocalVariable) debugVars.getVariable(debugVariableName); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction && ((OptFunctionNode)tree).containsCalls(-1)) { if (((OptFunctionNode)tree).containsCalls(0)) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (((OptFunctionNode)tree).containsCalls(1)) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/5425d1691bf0027c3411689a78202b7f4d1cc124/Codegen.java/buggy/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 626, 1330, 344, 12, 1042, 9494, 16, 2029, 2151, 16, 1250, 316, 2083, 16, 21394, 509, 2657, 1662, 1380, 13, 565, 288, 3639, 9831, 2675, 2042, 273, 20501, 3944, 2042, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 626, 1330, 344, 12, 1042, 9494, 16, 2029, 2151, 16, 1250, 316, 2083, 16, 21394, 509, 2657, 1662, 1380, 13, 565, 288, 3639, 9831, 2675, 2042, 273, 20501, 3944, 2042, 12, ...
ListView.this.modelChanging();
addStateChange(new Change() { private static final long serialVersionUID = 1L; final int oldIndex = index; public void undo() { Collections.swap(getList(), oldIndex - 1, oldIndex); } });
public final Link moveUpLink(final String id, final ListItem item) { return new Link(id) { private static final long serialVersionUID = 1L; /** * @see wicket.Component#onBeginRequest() */ protected void onBeginRequest() { setAutoEnable(false); if (getList().indexOf(item.getModelObject()) == 0) { setEnabled(false); } } /** * @see wicket.markup.html.link.Link#onClick() */ public void onClick() { final int index = getList().indexOf(item.getModelObject()); if (index != -1) { ListView.this.modelChanging(); // Swap items and invalidate listView Collections.swap(getList(), index, index - 1); ListView.this.modelChanged(); } } }; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/42288a8cabedf39bac098a8ef4831bd369c8c121/ListView.java/buggy/wicket/src/java/wicket/markup/html/list/ListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 4048, 3635, 1211, 2098, 12, 6385, 514, 612, 16, 727, 987, 1180, 761, 13, 202, 95, 202, 202, 2463, 394, 4048, 12, 350, 13, 202, 202, 95, 1082, 202, 1152, 760, 727, 1525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4048, 3635, 1211, 2098, 12, 6385, 514, 612, 16, 727, 987, 1180, 761, 13, 202, 95, 202, 202, 2463, 394, 4048, 12, 350, 13, 202, 202, 95, 1082, 202, 1152, 760, 727, 1525,...