rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if( output != null && output.trim().length() > 0 ) | if ( output != null ) | public void execute() throws MojoExecutionException { StringWriter sWriter = new StringWriter(); MavenXpp3Writer pomWriter = new MavenXpp3Writer(); try { pomWriter.write( sWriter, pom ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot serialize POM to XML.", e ); } if( output != null && output.trim().length() > 0 ) { FileWriter fWriter = null; try { File outFile = new File( output ).getAbsoluteFile(); File dir = outFile.getParentFile(); if( !dir.exists() ) { dir.mkdirs(); } getLog().info( "Writing effective-POM to: " + outFile ); fWriter = new FileWriter( outFile ); fWriter.write( sWriter.toString() ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write effective-POM to output: " + output, e ); } finally { if( fWriter != null ) { try { fWriter.close(); } catch( IOException e ) { getLog().debug( "Cannot close FileWriter to output location: " + output, e ); } } } } else { StringBuffer message = new StringBuffer(); message.append( "\nEffective POM, after all profiles are factored in:\n\n" ); message.append( sWriter.toString() ); message.append( "\n\n" ); getLog().info( message ); } } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/47d9a60537492490741c4fb9b09f5da38debfa46/EffectivePomPlugin.java/clean/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/EffectivePomPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
17436,
272,
2289,
273,
394,
17436,
5621,
7734,
17176,
60,
11858,
23,
2289,
21400,
2289,
273,
394,
17176,
60,
11858,
23,
2289,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
17436,
272,
2289,
273,
394,
17436,
5621,
7734,
17176,
60,
11858,
23,
2289,
21400,
2289,
273,
394,
17176,
60,
11858,
23,
2289,
5621,... |
assertEquals(0, TupleComparator.compareObjects(null, null) ); assertEquals(-1, TupleComparator.compareObjects(null, "abc") ); assertEquals(1, TupleComparator.compareObjects("abc", null) ); | assertEquals(0, TupleComparator.compareObjects(null, null, null) ); assertEquals(-1, TupleComparator.compareObjects(null, "abc", null) ); assertEquals(1, TupleComparator.compareObjects("abc", null, null) ); | public void testCompareObjects() { assertEquals(0, TupleComparator.compareObjects(null, null) ); assertEquals(-1, TupleComparator.compareObjects(null, "abc") ); //$NON-NLS-1$ assertEquals(1, TupleComparator.compareObjects("abc", null) ); //$NON-NLS-1$ assertEquals(1, TupleComparator.compareObjects("abc", "a") ); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals(-1, TupleComparator.compareObjects("ab", "b") ); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals(0, TupleComparator.compareObjects("abc", "abc") ); //$NON-NLS-1$ //$NON-NLS-2$ Integer n1 = new Integer(80); Integer n2 = new Integer(60); assertEquals(1, TupleComparator.compareObjects(n1, n2) ); assertEquals(-1, TupleComparator.compareObjects(n2, n1) ); Date a = new Date((long)8E8); Date b = new Date((long)7E9); assertEquals(-1, TupleComparator.compareObjects(a, b) ); assertEquals(1, TupleComparator.compareObjects(b, a) ); Calendar c1 = Calendar.getInstance(); c1.set(1999,2,5); Calendar c2 = Calendar.getInstance(); c2.set(2000,1,23); assertEquals(-1, TupleComparator.compareObjects(c1, c2) ); assertEquals(1, TupleComparator.compareObjects(c2, c1) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ccb408c37d65187712860e300730d338d02743ed/TupleComparatorTest.java/clean/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/internal/TupleComparatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8583,
4710,
1435,
288,
202,
202,
11231,
8867,
12,
20,
16,
7257,
5559,
18,
9877,
4710,
12,
2011,
16,
446,
13,
11272,
202,
202,
11231,
8867,
19236,
21,
16,
7257,
5559... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8583,
4710,
1435,
288,
202,
202,
11231,
8867,
12,
20,
16,
7257,
5559,
18,
9877,
4710,
12,
2011,
16,
446,
13,
11272,
202,
202,
11231,
8867,
19236,
21,
16,
7257,
5559... |
IDebugModelPresentation debugLabelProvider = (IDebugModelPresentation)labelProvider; debugLabelProvider.setAttribute( IDebugModelPresentation.DISPLAY_VARIABLE_TYPE_NAMES, ( on ? Boolean.TRUE : Boolean.FALSE ) ); | debugLabelProvider.setAttribute( IDebugModelPresentation.DISPLAY_VARIABLE_TYPE_NAMES, ( on ? Boolean.TRUE : Boolean.FALSE ) ); | private void valueChanged( boolean on ) { if ( getViewer().getControl().isDisposed() ) { return; } ILabelProvider labelProvider = (ILabelProvider)getViewer().getLabelProvider(); if ( labelProvider instanceof IDebugModelPresentation ) { IDebugModelPresentation debugLabelProvider = (IDebugModelPresentation)labelProvider; debugLabelProvider.setAttribute( IDebugModelPresentation.DISPLAY_VARIABLE_TYPE_NAMES, ( on ? Boolean.TRUE : Boolean.FALSE ) ); BusyIndicator.showWhile( getViewer().getControl().getDisplay(), new Runnable() { public void run() { getViewer().refresh(); } } ); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c7b323e4fb3b60c5f50c85464158b44fda3fd63f/ShowRegisterTypesAction.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowRegisterTypesAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
460,
5033,
12,
1250,
603,
262,
202,
95,
202,
202,
430,
261,
8893,
264,
7675,
588,
3367,
7675,
291,
1669,
7423,
1435,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
460,
5033,
12,
1250,
603,
262,
202,
95,
202,
202,
430,
261,
8893,
264,
7675,
588,
3367,
7675,
291,
1669,
7423,
1435,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
... |
throw new NoSuchCommandScmException( "diff" ); | login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.START_REVISION, startRevision ); parameters.setString( CommandParameter.END_REVISION, endRevision ); return diff( repository, fileSet, parameters ); | protected DiffScmResult diff( ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { throw new NoSuchCommandScmException( "diff" ); } | 48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/1f76f673e3d5bd53765cc3e757f60285d2bbc122/AbstractScmProvider.java/buggy/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
13008,
1541,
81,
1253,
3122,
12,
2850,
81,
3305,
3352,
16,
2850,
81,
812,
694,
585,
694,
16,
3498,
2402,
1472,
262,
3639,
1216,
2850,
81,
503,
565,
288,
3639,
3925,
12,
3352,
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,
4750,
13008,
1541,
81,
1253,
3122,
12,
2850,
81,
3305,
3352,
16,
2850,
81,
812,
694,
585,
694,
16,
3498,
2402,
1472,
262,
3639,
1216,
2850,
81,
503,
565,
288,
3639,
3925,
12,
3352,
16,
... |
if (matchToken(Token.ASSIGN, 0)) { | if (matchToken(Token.ASSIGN)) { | private Node variables(boolean inForInit) throws IOException, ParserException { Node pn = nf.createVariables(ts.getLineno()); boolean first = true; decompiler.addToken(Token.VAR); for (;;) { Node name; Node init; mustMatchToken(Token.NAME, "msg.bad.var"); String s = ts.getString(); if (!first) decompiler.addToken(Token.COMMA); first = false; decompiler.addName(s); currentScriptOrFn.addVar(s); name = nf.createName(s); // omitted check for argument hiding if (matchToken(Token.ASSIGN, 0)) { decompiler.addToken(Token.ASSIGN); init = assignExpr(inForInit); nf.addChildToBack(name, init); } nf.addChildToBack(pn, name); if (!matchToken(Token.COMMA, 0)) break; } return pn; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3152,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
13958,
18,
2640,
6158,
12,
3428,
18,
588,
48,
267,
5764,
10663,
3639,
1250,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
3152,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
13958,
18,
2640,
6158,
12,
3428,
18,
588,
48,
267,
5764,
10663,
3639,
1250,... |
Event snmpEvent = new Event(); snmpEvent.setInterface("127.0.0.1"); snmpEvent.setNodeid(0); snmpEvent.setUei("uei.opennms.org/default/trap"); System.out.println("Anticipating: " + new EventWrapper(snmpEvent)); m_anticipator.anticipateEvent(snmpEvent); | anticipateEvent("uei.opennms.org/default/trap"); | public void doTestTrap(String version, boolean newSuspectOnTrap) throws UnknownHostException, InterruptedException { setUpTrapHandler(newSuspectOnTrap); Event snmpEvent = new Event(); snmpEvent.setInterface("127.0.0.1"); snmpEvent.setNodeid(0); snmpEvent.setUei("uei.opennms.org/default/trap"); System.out.println("Anticipating: " + new EventWrapper(snmpEvent)); m_anticipator.anticipateEvent(snmpEvent); if (version.equals("v1")) { SnmpPduTrap pdu = new SnmpPduTrap(); pdu.setGeneric(6); pdu.setSpecific(1); pdu.setAgentAddress(new SnmpIPAddress(InetAddress.getByName("127.0.0.1"))); m_trapHandler.snmpReceivedTrap(null, InetAddress.getByName("127.0.0.1"), 10000, new SnmpOctetString("public".getBytes()), pdu); } else if (version.equals("v2c")) { SnmpPduRequest pdu = new SnmpPduRequest(SnmpPduPacket.V2TRAP);// pdu.setGeneric(6);// pdu.setSpecific(1); m_trapHandler.snmpReceivedTrap(null, InetAddress.getByName("127.0.0.1"), 10000, new SnmpOctetString("public".getBytes()), pdu); } else { throw new UndeclaredThrowableException(null, "unsupported SNMP version for test: " + version); } finishUp(); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/3dd7eec7d966bc726092ffc7f3b8c3e87d53ff48/TrapHandlerTest.java/buggy/src/services/org/opennms/netmgt/trapd/TrapHandlerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4709,
56,
1266,
12,
780,
1177,
16,
1250,
30826,
407,
1181,
1398,
56,
1266,
13,
1216,
30592,
16,
7558,
288,
202,
202,
542,
1211,
56,
1266,
1503,
12,
2704,
55,
407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4709,
56,
1266,
12,
780,
1177,
16,
1250,
30826,
407,
1181,
1398,
56,
1266,
13,
1216,
30592,
16,
7558,
288,
202,
202,
542,
1211,
56,
1266,
1503,
12,
2704,
55,
407,
... |
public static JClass createSource(ClassInfo classInfo) { JMethod method = null; JSourceCode vcode = null; String className = classInfo.getJClass().getName(); String nsPrefix = classInfo.getNamespacePrefix(); String nsURI = classInfo.getNamespaceURI(); String variableName = "_"+className; JClass marshalInfo = new JClass(className+"MarshalInfo"); marshalInfo.addInterface("org.exolab.castor.xml.MarshalInfo"); marshalInfo.addImport("org.exolab.castor.xml.*"); marshalInfo.addImport("java.lang.reflect.Method"); marshalInfo.addMember(new JMember(mdArrayClass, "elements") ); marshalInfo.addMember(new JMember(mdArrayClass, "attributes") ); marshalInfo.addMember(new JMember(simpleMDClass, "contentDesc")); marshalInfo.addMember(new JMember(gvrClass, "gvr")); marshalInfo.addMember(new JMember(vrClass.createArray(), "rules")); //marshalInfo.addMember(new JMember(iResolver, "_resolver")); //-- create constructor JConstructor cons = marshalInfo.createConstructor(); marshalInfo.addConstructor( cons ); JSourceCode jsc = cons.getSourceCode(); jsc.add("SimpleMarshalDescriptor desc = null;"); jsc.add("Class[] emptyClassArgs = new Class[0];"); jsc.add("Class[] classArgs = new Class[1];"); //-- create validation method method = new JMethod(vrClass.createArray(), "getValidationRules"); vcode = method.getSourceCode(); vcode.add("return rules;"); marshalInfo.addMethod(method); //-- create GroupValidationRule jsc.add("gvr = new GroupValidationRule();"); jsc.add("BasicValidationRule bvr = null;"); //-- handle text content if (classInfo.allowsTextContent()) { jsc.add("contentDesc = new SimpleMarshalDescriptor("); jsc.append("String.class, \"vContent\", \"PCDATA\");"); jsc.add("try {"); jsc.indent(); //-- read method jsc.add("contentDesc.setReadMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append("getContent"); jsc.append("\", emptyClassArgs));"); //-- write method jsc.add("classArgs[0] = String.class;"); jsc.add("contentDesc.setWriteMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append("setContent"); jsc.append("\", classArgs));"); jsc.unindent(); jsc.add("}"); jsc.add("catch(java.lang.NoSuchMethodException nsme) {};"); } FieldInfo[] atts = classInfo.getAttributeFields(); //-- initialized rules jsc.add("rules = new ValidationRule["); jsc.append(Integer.toString(atts.length+1)); jsc.append("];"); //-- create attribute descriptors jsc.add("//-- initialize attributes"); jsc.add(""); jsc.add("attributes = new MarshalDescriptor["); jsc.append(Integer.toString(atts.length)); jsc.append("];"); for (int i = 0; i < atts.length; i++) { FieldInfo member = atts[i]; //-- skip transient members if (member.isTransient()) continue; jsc.add("//-- "); jsc.append(member.getName()); XSType xsType = member.getSchemaType(); jsc.add("desc = new "); switch (xsType.getType()) { case XSType.TIME_INSTANT: jsc.append("DateMarshalDescriptor(\""); break; case XSType.CLASS: XSClass xsClass = (XSClass)xsType; if (xsClass.isEnumerated()) { jsc.append("EnumMarshalDescriptor("); jsc.append(xsClass.getName()); jsc.append(".class,\""); break; } //-- do not break here default: jsc.append("SimpleMarshalDescriptor("); jsc.append(classType(xsType.getJType())); jsc.append(", \""); break; } jsc.append(member.getName()); jsc.append("\", \""); jsc.append(member.getNodeName()); jsc.append("\");"); jsc.add("desc.setDescriptorType(DescriptorType.attribute);"); //-- access methods jsc.add("try {"); jsc.indent(); //-- read method jsc.add("desc.setReadMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append(member.getReadMethodName()); jsc.append("\", emptyClassArgs));"); //-- write method jsc.add("classArgs[0] = "); jsc.append(xsType.getJType().getName()); jsc.append(".class;"); jsc.add("desc.setWriteMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append(member.getWriteMethodName()); jsc.append("\", classArgs));"); jsc.unindent(); jsc.add("}"); jsc.add("catch(java.lang.NoSuchMethodException nsme) {};"); jsc.add(""); if (member.isRequired()) { jsc.add("desc.setRequired(true);"); } jsc.add("attributes["); jsc.append(Integer.toString(i)); jsc.append("] = desc;"); jsc.add(""); //-- Add Validation Code jsc.add("bvr = new BasicValidationRule(\""); jsc.append(member.getNodeName()); jsc.append("\");"); jsc.add("bvr.setAsAttributeRule();"); validationCode(member, jsc); jsc.add("rules["); jsc.append(Integer.toString(i)); jsc.append("] = bvr;"); } //-- create element descriptors jsc.add("rules["); jsc.append(Integer.toString(atts.length)); jsc.append("] = gvr;"); FieldInfo[] elements = classInfo.getElementFields(); jsc.add("//-- initialize elements"); jsc.add(""); jsc.add("elements = new MarshalDescriptor["); jsc.append(Integer.toString(elements.length)); jsc.append("];"); for (int i = 0; i < elements.length; i++) { FieldInfo member = elements[i]; //-- skip transient members if (member.isTransient()) continue; XSType xsType = member.getSchemaType(); if (xsType.getType() == XSType.LIST) xsType = ((SGList)member).getContent().getSchemaType(); jsc.add("//-- "); jsc.append(member.getName()); //-- a hack, I know, I will change later (kv) if (member.getName().equals("_anyList")) { jsc.add("desc = (new SimpleMarshalDescriptor("); jsc.append(classType(xsType.getJType())); jsc.append(", \""); jsc.append(member.getName()); jsc.append("\", \""); jsc.append(member.getNodeName()); jsc.append("\") {"); jsc.indent(); jsc.add("public boolean matches(String xmlName) {"); jsc.add(" return true;"); jsc.add("}"); jsc.unindent(); jsc.add("});"); } else { jsc.add("desc = new "); switch (xsType.getType()) { case XSType.TIME_INSTANT: jsc.append("DateMarshalDescriptor(\""); break; case XSType.CLASS: XSClass xsClass = (XSClass)xsType; if (xsClass.isEnumerated()) { jsc.append("EnumMarshalDescriptor("); jsc.append(xsClass.getJType().getName()); jsc.append(".class,\""); break; } //-- do not break here default: jsc.append("SimpleMarshalDescriptor("); jsc.append(classType(xsType.getJType())); jsc.append(", \""); break; } jsc.append(member.getName()); jsc.append("\", \""); jsc.append(member.getNodeName()); jsc.append("\");"); } jsc.add("desc.setDescriptorType(DescriptorType.element);"); //-- access methods jsc.add("try {"); jsc.indent(); //-- read method jsc.add("desc.setReadMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append(member.getReadMethodName()); jsc.append("\", emptyClassArgs));"); //-- write method jsc.add("classArgs[0] = "); JType jType = xsType.getJType(); jsc.append(jType.toString()); jsc.append(".class;"); jsc.add("desc.setWriteMethod("); jsc.append(className); jsc.append(".class.getMethod(\""); jsc.append(member.getWriteMethodName()); jsc.append("\", classArgs));"); jsc.unindent(); jsc.add("}"); jsc.add("catch(java.lang.NoSuchMethodException nsme) {};"); jsc.add(""); if (member.isRequired()) { jsc.add("desc.setRequired(true);"); } //-- mark as multi or single valued jsc.add("desc.setMultivalued("+member.isMultivalued()); jsc.append(");"); jsc.add("elements["); jsc.append(Integer.toString(i)); jsc.append("] = desc;"); jsc.add(""); //-- Add Validation Code jsc.add("bvr = new BasicValidationRule(\""); jsc.append(member.getNodeName()); jsc.append("\");"); validationCode(member, jsc); jsc.add("gvr.addValidationRule(bvr);"); } //-- create getAttributeDescriptors method method = new JMethod(mdArrayClass, "getAttributeDescriptors"); jsc = method.getSourceCode(); jsc.add("return attributes;"); marshalInfo.addMethod(method); //-- create getClassType method method = new JMethod(SGTypes.Class, "getClassType"); jsc = method.getSourceCode(); jsc.add("return "); jsc.append(classType(classInfo.getJClass())); jsc.append(";"); marshalInfo.addMethod(method); //-- create getElementDescriptors method method = new JMethod(mdArrayClass, "getElementDescriptors"); jsc = method.getSourceCode(); jsc.add("return elements;"); marshalInfo.addMethod(method); //-- create getContentDescriptor method method = new JMethod(mdClass, "getContentDescriptor"); jsc = method.getSourceCode(); jsc.add("return contentDesc;"); marshalInfo.addMethod(method); //-- create getMarshalFilter method //method = new JMethod(mdClass, "getMarshalFilter"); //jsc = method.getSourceCode(); //jsc.add("return null;"); //marshalInfo.addMethod(method); //-- create getNameSpacePrefix method method = new JMethod(SGTypes.String, "getNameSpacePrefix"); jsc = method.getSourceCode(); if (nsPrefix != null) { jsc.add("return \""); jsc.append(nsPrefix); jsc.append("\";"); } else jsc.add("return null;"); marshalInfo.addMethod(method); //-- create getNameSpacePrefix method method = new JMethod(SGTypes.String, "getNameSpaceURI"); jsc = method.getSourceCode(); if (nsURI != null) { jsc.add("return \""); jsc.append(nsURI); jsc.append("\";"); } else jsc.add("return null;"); marshalInfo.addMethod(method); return marshalInfo; } //-- createSource | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/c2600472823b878bcc58ad43d4a8762144ddc6f9/MarshalInfoSourceFactory.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/MarshalInfoSourceFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
804,
797,
752,
1830,
12,
19455,
23566,
13,
288,
13491,
804,
1305,
377,
707,
273,
446,
31,
3639,
804,
1830,
1085,
331,
710,
225,
273,
446,
31,
7734,
514,
2658,
282,
273,
23566... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
797,
752,
1830,
12,
19455,
23566,
13,
288,
13491,
804,
1305,
377,
707,
273,
446,
31,
3639,
804,
1830,
1085,
331,
710,
225,
273,
446,
31,
7734,
514,
2658,
282,
273,
23566... | ||
return xmlFile != null ? getCachedElement(xmlFile).getRootHandler() : null; } else { parent = _getDomElement(parentTag); | if (xmlFile != null) { final DomFileElementImpl element = getCachedElement(xmlFile); if (element != null) { return element.getRootHandler(); } } return null; | private DomInvocationHandler _getDomElement(final XmlTag tag) { if (tag == null) return null; DomInvocationHandler invocationHandler = getCachedElement(tag); if (invocationHandler != null && invocationHandler.isValid()) { return invocationHandler; } DomInvocationHandler parent; final XmlTag parentTag = tag.getParentTag(); if (parentTag == null) { final XmlFile xmlFile = (XmlFile)tag.getContainingFile(); return xmlFile != null ? getCachedElement(xmlFile).getRootHandler() : null; } else { parent = _getDomElement(parentTag); } if (parent == null) return null; final GenericInfoImpl info = parent.getGenericInfo(); final String tagName = tag.getName(); final DomChildrenDescription childDescription; if (info.isCollectionChild(tagName)) { childDescription = info.getCollectionChildDescription(tagName); } else { childDescription = info.getFixedChildDescription(tagName); } if (childDescription == null) return null; childDescription.getValues(parent.getProxy()); return getCachedElement(tag); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/fe6bfaed840f07d66f3d5e5eef6fdacff43e2cc3/DomManagerImpl.java/clean/source/com/intellij/util/xml/impl/DomManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
12965,
9267,
1503,
389,
588,
8832,
1046,
12,
6385,
5714,
1805,
1047,
13,
288,
565,
309,
261,
2692,
422,
446,
13,
327,
446,
31,
565,
12965,
9267,
1503,
9495,
1503,
273,
20543,
1046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12965,
9267,
1503,
389,
588,
8832,
1046,
12,
6385,
5714,
1805,
1047,
13,
288,
565,
309,
261,
2692,
422,
446,
13,
327,
446,
31,
565,
12965,
9267,
1503,
9495,
1503,
273,
20543,
1046,
... |
return RubyFloat.newFloat(runtime, getTimeInMillis() / 1000.0); | return RubyFloat.newFloat(runtime, getTimeInMillis() / 1000 + microseconds() / 1000000.0); | public RubyFloat to_f() { return RubyFloat.newFloat(runtime, getTimeInMillis() / 1000.0); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/ff2657d75cfcff1964e39f97c3ed3c1054b4baef/RubyTime.java/clean/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4723,
358,
67,
74,
1435,
288,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
9448,
16,
6135,
16620,
1435,
342,
4336,
397,
19967,
1435,
342,
15088,
18,
20,
1769,
565,
289,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4723,
358,
67,
74,
1435,
288,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
9448,
16,
6135,
16620,
1435,
342,
4336,
397,
19967,
1435,
342,
15088,
18,
20,
1769,
565,
289,
2,
-... |
classLoader.defineClass(className, bytes); Class clazz = classLoader.loadClass(className, true); result = (Invoker)clazz.newInstance(); | Context cx = Context.getCurrentContext(); SecuritySupport ss = cx == null ? null : cx.getSecuritySupport(); Class c; if (ss != null) { Object securityDomain = cx.getSecurityDomainForStackDepth(-1); c = ss.defineClass(className, bytes, securityDomain); } else { classLoader.defineClass(className, bytes); c = classLoader.loadClass(className, true); } result = (Invoker)c.newInstance(); | public static Invoker createInvoker(Method method, Class[] types, JavaAdapter.DefiningClassLoader classLoader) { String className; Invoker result = null; //synchronized(invokers) { // is "++" atomic? className = "inv" + ++classNumber; //} ClassFileWriter cfw = new ClassFileWriter(className, "org.mozilla.javascript.FunctionObject$Invoker", ""); cfw.setFlags((short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); // Add our instantiator! cfw.startMethod("<init>", "()V", ClassFileWriter.ACC_PUBLIC); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.INVOKESPECIAL, "org.mozilla.javascript.FunctionObject$Invoker", "<init>", "()", "V"); cfw.add(ByteCode.RETURN); cfw.stopMethod((short)1, null); // one argument -- this??? // Add the invoke() method call cfw.startMethod("invoke", "(Ljava/lang/Object;[Ljava/lang/Object;)"+ "Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); // If we return a primitive type, then do something special! String declaringClassName = method.getDeclaringClass().getName ().replace('.', '/'); Class returnType = method.getReturnType(); String invokeSpecial = null; String invokeSpecialType = null; boolean returnsVoid = false; boolean returnsBoolean = false; if (returnType.isPrimitive()) { if (returnType == Boolean.TYPE) { returnsBoolean = true; invokeSpecialType = "(Z)"; } else if (returnType == Void.TYPE) { returnsVoid = true; invokeSpecialType = "(V)"; } else if (returnType == Integer.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Integer"); cfw.add(ByteCode.DUP); invokeSpecialType = "(I)"; } else if (returnType == Long.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Long"); cfw.add(ByteCode.DUP); invokeSpecialType = "(J)"; } else if (returnType == Short.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Short"); cfw.add(ByteCode.DUP); invokeSpecialType = "(S)"; } else if (returnType == Float.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Float"); cfw.add(ByteCode.DUP); invokeSpecialType = "(F)"; } else if (returnType == Double.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Double"); cfw.add(ByteCode.DUP); invokeSpecialType = "(D)"; } else if (returnType == Byte.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Byte"); cfw.add(ByteCode.DUP); invokeSpecialType = "(B)"; } else if (returnType == Character.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Character"); cfw.add(ByteCode.DUP); invokeSpecialType = "(C)"; } } // handle setup of call to virtual function (if calling non-static) if (!java.lang.reflect.Modifier.isStatic(method.getModifiers())) { cfw.add(ByteCode.ALOAD_1); cfw.add(ByteCode.CHECKCAST, declaringClassName); } // Handle parameters! StringBuffer params = new StringBuffer(2 + ((types!=null)?(20 * types.length):0)); params.append("("); if (types != null) { for(int i = 0; i < types.length; i++) { Class type = types[i]; cfw.add(ByteCode.ALOAD_2); if (i <= 5) { cfw.add((byte) (ByteCode.ICONST_0 + i)); } else if (i <= Byte.MAX_VALUE) { cfw.add(ByteCode.BIPUSH, i); } else if (i <= Short.MAX_VALUE) { cfw.add(ByteCode.SIPUSH, i); } else { cfw.addLoadConstant((int)i); } cfw.add(ByteCode.AALOAD); if (type.isPrimitive()) { // Convert enclosed type back to primitive. if (type == Boolean.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Boolean"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()", "Z"); params.append("Z"); } else if (type == Integer.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "intValue", "()", "I"); params.append("I"); } else if (type == Short.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "shortValue", "()", "S"); params.append("S"); } else if (type == Character.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Character"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Character", "charValue", "()", "C"); params.append("C"); } else if (type == Double.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "doubleValue", "()", "D"); params.append("D"); } else if (type == Float.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "floatValue", "()", "F"); params.append("F"); } else if (type == Byte.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Byte"); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/Byte", "byteValue", "()", "B"); params.append("B"); } } else { String typeName = type.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, typeName); if (!type.isArray()) { params.append('L'); } params.append(typeName); if (!type.isArray()) { params.append(';'); } } } } params.append(")"); // Call actual function! if (!java.lang.reflect.Modifier.isStatic(method.getModifiers())) { cfw.add(ByteCode.INVOKEVIRTUAL, declaringClassName, method.getName(), params.toString(), (invokeSpecialType!=null?invokeSpecialType.substring(1,2) :returnType.isArray()? returnType.getName().replace('.','/') :"L".concat (returnType.getName().replace('.', '/').concat(";")))); } else { cfw.add(ByteCode.INVOKESTATIC, declaringClassName, method.getName(), params.toString(), (invokeSpecialType!=null?invokeSpecialType.substring(1,2) :returnType.isArray()? returnType.getName().replace('.','/') :"L".concat (returnType.getName().replace('.', '/').concat(";")))); } // Handle return value if (returnsVoid) { cfw.add(ByteCode.ACONST_NULL); cfw.add(ByteCode.ARETURN); } else if (returnsBoolean) { // HACK //check to see if true; // '7' is the number of bytes of the ifeq<branch> plus getstatic<TRUE> plus areturn instructions cfw.add(ByteCode.IFEQ, 7); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.ARETURN); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.ARETURN); } else if (invokeSpecial != null) { cfw.add(ByteCode.INVOKESPECIAL, invokeSpecial, "<init>", invokeSpecialType, "V"); cfw.add(ByteCode.ARETURN); } else { cfw.add(ByteCode.ARETURN); } cfw.stopMethod((short)3, null); // three arguments, including the this pointer??? // Add class to our classloader. java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream(550); try { cfw.write(bos); } catch (IOException ioe) { throw new RuntimeException("unexpected IOException" + ioe.toString()); } try { byte[] bytes = bos.toByteArray(); classLoader.defineClass(className, bytes); Class clazz = classLoader.loadClass(className, true); result = (Invoker)clazz.newInstance(); if (false) { System.out.println("Generated method delegate for: " + method.getName() + " on " + method.getDeclaringClass().getName() + " :: " + params.toString() + " :: " + types); } } catch (ClassNotFoundException e) { throw new RuntimeException("unexpected " + e.toString()); } catch (InstantiationException e) { throw new RuntimeException("unexpected " + e.toString()); } catch (IllegalAccessException e) { throw new RuntimeException("unexpected " + e.toString()); } return result; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/488a6bc1e380915cbfb9ed564472ba9490c5e2bf/FunctionObject.java/buggy/org/mozilla/javascript/FunctionObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
760,
17602,
264,
752,
24455,
12,
1305,
707,
16,
1659,
8526,
1953,
16,
4766,
5411,
5110,
4216,
18,
6443,
310,
7805,
11138,
13,
3639,
288,
5411,
514,
2658,
31,
5411,
17602,
264,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
17602,
264,
752,
24455,
12,
1305,
707,
16,
1659,
8526,
1953,
16,
4766,
5411,
5110,
4216,
18,
6443,
310,
7805,
11138,
13,
3639,
288,
5411,
514,
2658,
31,
5411,
17602,
264,
563,
... |
public void loginCompleted(MsnMessenger messenger) { Log.debug("MSN login completed"); Presence p = new Presence(); p.setTo(msnSession.getJID()); p.setFrom(msnSession.getTransport().getJID()); msnSession.getTransport().sendPacket(p); msnSession.getRegistration().setLastLogin(new Date()); msnSession.setLoginStatus(true); } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/12d10395815de53fcffc6b6f054c5f933594cc26/MSNListener.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/msn/MSNListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5819,
9556,
12,
6947,
82,
29329,
81,
18912,
15329,
1343,
18,
4148,
2932,
3537,
50,
5819,
13615,
8863,
22590,
84,
33,
2704,
22590,
5621,
84,
18,
542,
774,
12,
959,
82,
2157,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5819,
9556,
12,
6947,
82,
29329,
81,
18912,
15329,
1343,
18,
4148,
2932,
3537,
50,
5819,
13615,
8863,
22590,
84,
33,
2704,
22590,
5621,
84,
18,
542,
774,
12,
959,
82,
2157,
18,
5... | ||
412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, | 412, 412, 0, 412, 412, 412, 412, 412, 334, 469, 0, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 469, 469, 469, 412, | private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... |
super(s); | super(); | public InvalidMidiDataException(String s) { super(s); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/InvalidMidiDataException.java/clean/core/src/classpath/javax/javax/sound/midi/InvalidMidiDataException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1962,
20711,
77,
22480,
12,
780,
272,
13,
225,
288,
565,
2240,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1962,
20711,
77,
22480,
12,
780,
272,
13,
225,
288,
565,
2240,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (VM.TraceStkMaps) | if (true || VM.TraceStkMaps) | setupJSRSubroutineMap(int frameAddress, int mapid, VM_CompiledMethod compiledMethod) { // first clear the maps in the extraUnusualMap // int j = extraUnusualMap.getReferenceMapIndex(); int k = extraUnusualMap.getNonReferenceMapIndex(); int l = extraUnusualMap.getReturnAddressMapIndex(); for ( int i = 0; i < bytesPerMap; i++,k++,l++) { unusualReferenceMaps[j + i] = 0; unusualReferenceMaps[k + i] = 0; unusualReferenceMaps[l + i] = 0; } // use the mapid to get index of the Unusual Map // if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRSubroutineMap- mapid = " ); VM.sysWrite( mapid); VM.sysWrite(" - mapid = " ); VM.sysWrite(- mapid); VM.sysWrite( "\n"); VM.sysWrite(" -referenceMaps[(- mapid) * bytesPerMap] = " ); VM.sysWrite(referenceMaps[(- mapid) * bytesPerMap]); VM.sysWrite( "\n"); VM.sysWrite(" unusual mapid index = " ); VM.sysWrite(referenceMaps[(- mapid) * bytesPerMap]&JSR_INDEX_MASK); VM.sysWrite( "\n"); } int unusualMapid = (referenceMaps[(-mapid) * bytesPerMap] & JSR_INDEX_MASK); // if jsr map is > 127 go search for the right one if ( unusualMapid == JSR_INDEX_MASK) unusualMapid = findUnusualMap(-mapid); VM_UnusualMaps unusualMap = unusualMaps[unusualMapid]; // unusualMapcopy(unusualMap, -mapid); // deep copy unusual map into the extra map unusualMapcopy(unusualMap); // deep copy unusual map into the extra map // from the unusual map and the frame - get the location of the jsr invoker // int jsrAddressOffset = unusualMap.getReturnAddressOffset(); int callerAddress = VM_Magic.getMemoryWord(frameAddress + jsrAddressOffset); // NOTE: -4 is subtracted when the map is determined ie locateGCpoint // from the invoker address and the code base address - get the machine code offset // int machineCodeOffset = callerAddress - VM_Magic.objectAsAddress(compiledMethod.getInstructions()); if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRMap- inputMapid = "); VM.sysWrite( mapid); VM.sysWrite( "\n"); VM.sysWrite(" jsrReturnAddressOffset = "); VM.sysWrite( jsrAddressOffset); // VM.sysWrite( "\n"); VM.sysWrite(" jsr callers address = "); VM.sysWrite( callerAddress); VM.sysWrite( "\n"); VM.sysWrite(" machine code offset of caller = "); VM.sysWrite( machineCodeOffset); VM.sysWrite( "\n"); if (machineCodeOffset <0) VM.sysWrite( "BAD MACHINE CODE OFFSET\n"); } // from the machine code offset locate the map for the jsr instruction // int jsrMapid = locateGCPoint(machineCodeOffset, compiledMethod.getMethod()); if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRMap- locateGCpoint returns mapid = "); VM.sysWrite( jsrMapid); VM.sysWrite( "\n"); } // if the invoker was in a jsr (ie nested jsrs)- merge the delta maps of each jsr and // compute the new total delta // while ( jsrMapid < 0) { jsrMapid = -jsrMapid; if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRsubroutineMap- outer MapIndex = "); VM.sysWrite( jsrMapid); VM.sysWrite(" unusualMapIndex = "); VM.sysWrite( referenceMaps[jsrMapid]); VM.sysWrite( "\n"); } // merge unusual maps- occurs in nested jsr conditions // merge each nested delta into the maps of the extraUnusualmap int unusualMapIndex = JSR_INDEX_MASK & referenceMaps[ jsrMapid*bytesPerMap]; if (unusualMapIndex == JSR_INDEX_MASK) { unusualMapIndex = findUnusualMap(jsrMapid); } // extraUnusualMap = combineDeltaMaps(jsrMapid, unusualMapid); extraUnusualMap = combineDeltaMaps(unusualMapIndex); // locate the next jsr from the current // VM_UnusualMaps thisMap = unusualMaps[unusualMapIndex]; int thisJsrAddressOffset = thisMap.getReturnAddressOffset(); int nextCallerAddress = VM_Magic.getMemoryWord(frameAddress + thisJsrAddressOffset); int nextMachineCodeOffset = nextCallerAddress - VM_Magic.objectAsAddress(compiledMethod.getInstructions()); jsrMapid = locateGCPoint(nextMachineCodeOffset, compiledMethod.getMethod()); if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRsubroutineMap- nested jsrs extraUnusualMap = \n"); extraUnusualMap.showInfo(); VM.sysWrite( "\n"); VM.sysWrite("VM_ReferenceMaps-setupJSRsubroutineMap- nested jsrs thisMap =\n "); thisMap.showInfo(); VM.sysWrite( "\n"); VM.sysWrite(" setupJSRsubroutineMap- nested jsrs end of loop- = \n"); VM.sysWrite(" next jsraddress offset = "); VM.sysWrite(thisJsrAddressOffset); VM.sysWrite("\n next callers address = "); VM.sysWrite(nextCallerAddress); VM.sysWrite("\n next machinecodeoffset = "); VM.sysWrite(nextMachineCodeOffset); VM.sysWrite( "\n"); } } // end while // merge the jsr (unusual )map with the base level (ie jsr instruction) map(s) // the results are stored in mergedReferenceMap and mergedReturnAddresMap // as indices in the referenceMaps table // finalMergeMaps((jsrMapid * bytesPerMap), extraUnusualMap); if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-setupJSRsubroutineMap- afterfinalMerge extraUnusualMap =\n "); extraUnusualMap.showInfo(); VM.sysWrite( "\n"); VM.sysWrite(" mergedReferenceMap Index = "); VM.sysWrite( mergedReferenceMap); VM.sysWrite( "\n"); VM.sysWrite(" mergedReferenceMap = "); showAnUnusualMap(mergedReferenceMap); VM.sysWrite( unusualReferenceMaps[mergedReferenceMap]); VM.sysWrite( "\n"); VM.sysWrite(" mergedReturnAddressMap Index = "); VM.sysWrite( mergedReturnAddressMap); VM.sysWrite( "\n"); VM.sysWrite(" mergedReturnAddressMap = "); VM.sysWrite( unusualReferenceMaps[mergedReturnAddressMap]); VM.sysWrite( "\n"); showUnusualMapInfo(); } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/0a323e6af9db88b41b8dd710bf2d293b13ef4bd5/VM_ReferenceMaps.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_ReferenceMaps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3875,
6479,
54,
1676,
22640,
863,
12,
474,
2623,
1887,
16,
509,
852,
350,
16,
8251,
67,
20733,
1305,
7743,
1305,
13,
225,
288,
565,
368,
1122,
2424,
326,
225,
7565,
316,
326,
2870,
984,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
6479,
54,
1676,
22640,
863,
12,
474,
2623,
1887,
16,
509,
852,
350,
16,
8251,
67,
20733,
1305,
7743,
1305,
13,
225,
288,
565,
368,
1122,
2424,
326,
225,
7565,
316,
326,
2870,
984,... |
weapon.flags |= F_LASER | F_ENERGY; | weapon.flags |= F_LASER | F_ENERGY | F_PULSE; | private static WeaponType createISMediumXPulseLaser() { WeaponType weapon = new WeaponType(); weapon.techLevel = TechConstants.T_IS_LEVEL_3; weapon.name = "Medium X-Pulse Laser"; weapon.setInternalName("ISMediumXPulseLaser"); weapon.addLookupName("IS X-Pulse Med Laser"); weapon.addLookupName("IS Medium X-Pulse Laser"); weapon.heat = 6; weapon.damage = 6; weapon.toHitModifier = -2; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 3; weapon.mediumRange = 6; weapon.longRange = 9; weapon.extremeRange = 12; weapon.waterShortRange = 2; weapon.waterMediumRange = 3; weapon.waterLongRange = 4; weapon.waterExtremeRange = 6; weapon.tonnage = 2.0f; weapon.criticals = 1; weapon.flags |= F_LASER | F_ENERGY; weapon.bv = 71; weapon.cost = 110000; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/6e1b12cd6539c07d258d62cd05cf7c5a167a9268/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1660,
28629,
559,
752,
5127,
25599,
60,
52,
24667,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
5127,
25599,
60,
52,
24667,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
... |
public void setArc(double x, double y, double w, double h, double start, double extent, int type) | public void setArc(double x, double y, double w, double h, double start, double extent, int type) | public void setArc(double x, double y, double w, double h, double start, double extent, int type) { this.x = x; this.y = y; width = w; height = h; this.start = start; this.extent = extent; setArcType(type); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b20d0a695843e575c328a55000265cb08be3480d/Arc2D.java/buggy/libraries/javalib/java/awt/geom/Arc2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
14598,
12,
9056,
619,
16,
1645,
677,
16,
1645,
341,
16,
1645,
366,
16,
15604,
1645,
787,
16,
1645,
11933,
16,
509,
618,
13,
565,
288,
1377,
333,
18,
92,
273,
619,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
14598,
12,
9056,
619,
16,
1645,
677,
16,
1645,
341,
16,
1645,
366,
16,
15604,
1645,
787,
16,
1645,
11933,
16,
509,
618,
13,
565,
288,
1377,
333,
18,
92,
273,
619,
31,
... |
resetButton = createButton( parent, WorkbenchMessages.getString("FontsPreference.reset")); | resetButton = createButton(parent, WorkbenchMessages.getString("FontsPreference.reset")); | private void createResetControl(Composite parent) { resetButton = createButton( parent, WorkbenchMessages.getString("FontsPreference.reset")); //$NON-NLS-1$ resetButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { FontDefinition definition = getSelectedFontDefinition(); //Put an entry of null in to represent the reset fontDataSettings.put(definition.getId(), DEFAULT_TOKEN); updateForSelectedFontDefinition(definition); } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c3215d23c99197165e72b0ab6b8bb81fa0fbba83/FontPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
7013,
3367,
12,
9400,
982,
13,
288,
202,
202,
6208,
3616,
273,
1082,
202,
2640,
3616,
12,
9506,
202,
2938,
16,
9506,
202,
2421,
22144,
5058,
18,
588,
780,
2932,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
7013,
3367,
12,
9400,
982,
13,
288,
202,
202,
6208,
3616,
273,
1082,
202,
2640,
3616,
12,
9506,
202,
2938,
16,
9506,
202,
2421,
22144,
5058,
18,
588,
780,
2932,
571... |
if (c.isArray() && c.getComponentType() == Byte.TYPE) { | if (c.isArray() && c.getComponentType() == Byte.TYPE) | public Object __tojava__(Class c) { //This is a hack to make almost all Java calls happy if (c == String.class || c == Object.class) return string; if (c == Character.TYPE) if (string.length() == 1) return new Character(string.charAt(0)); if (c.isArray() && c.getComponentType() == Byte.TYPE) { return getBytes(); } if (c.isInstance(this)) return this; return Py.NoConversion; } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/8ab4933e5096c24d3627be8ec668b36e978c1c6b/PyString.java/buggy/org/python/core/PyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1001,
869,
6290,
972,
12,
797,
276,
13,
288,
202,
759,
2503,
353,
279,
11769,
358,
1221,
23889,
777,
5110,
4097,
5622,
2074,
202,
430,
261,
71,
422,
514,
18,
1106,
747,
276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1001,
869,
6290,
972,
12,
797,
276,
13,
288,
202,
759,
2503,
353,
279,
11769,
358,
1221,
23889,
777,
5110,
4097,
5622,
2074,
202,
430,
261,
71,
422,
514,
18,
1106,
747,
276,... |
suite.addTestSuite(ResourceListenerTest.class); | suite.addTestSuite(ResourcesContextTest.class); suite.addTestSuite(ChangeSetManagerTest.class); | public static Test suite() { TestSuite suite = new TestSuite( "Test for org.eclipse.mylar.ide.tests"); //$JUnit-BEGIN$ suite.addTestSuite(ResourceListenerTest.class); //$JUnit-END$ return suite; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c20efa6e0e39ac041c808c5caad415d44335ad73/AllIdeTests.java/buggy/org.eclipse.mylyn.ide.tests/src/org/eclipse/mylyn/ide/tests/AllIdeTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
273,
394,
7766,
13587,
12,
9506,
202,
6,
4709,
364,
2358,
18,
20416,
18,
4811,
7901,
18,
831,
18,
16341,
8863,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
4709,
13587,
11371,
273,
394,
7766,
13587,
12,
9506,
202,
6,
4709,
364,
2358,
18,
20416,
18,
4811,
7901,
18,
831,
18,
16341,
8863,
202,
... |
sql += "SERIALIZABLE"; | sql += "SNAPSHOT"; | synchronized public void setTransactionIsolation(int level) throws SQLException { checkOpen(); if (transactionIsolation == level) { // No need to submit a request return; } String sql = "SET TRANSACTION ISOLATION LEVEL "; boolean sybase = serverType == Driver.SYBASE; switch (level) { case java.sql.Connection.TRANSACTION_READ_UNCOMMITTED: sql += (sybase) ? "0" : "READ UNCOMMITTED"; break; case java.sql.Connection.TRANSACTION_READ_COMMITTED: sql += (sybase) ? "1" : "READ COMMITTED"; break; case java.sql.Connection.TRANSACTION_REPEATABLE_READ: sql += (sybase) ? "2" : "REPEATABLE READ"; break; case java.sql.Connection.TRANSACTION_SERIALIZABLE: sql += (sybase) ? "3" : "SERIALIZABLE"; break; case TRANSACTION_SNAPSHOT: if (sybase) { throw new SQLException( Messages.get("error.generic.optvalue", "TRANSACTION_SNAPSHOT", "setTransactionIsolation"), "HY024"); } else { sql += "SERIALIZABLE"; } break; case java.sql.Connection.TRANSACTION_NONE: throw new SQLException( Messages.get("error.generic.optvalue", "TRANSACTION_NONE", "setTransactionIsolation"), "HY024"); default: throw new SQLException( Messages.get("error.generic.badoption", Integer.toString(level), "level"), "HY092"); } transactionIsolation = level; baseTds.submitSQL(sql); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/b005e33f0773a5202a2b26d872958fab916216d3/ConnectionJDBC2.java/clean/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
1071,
918,
444,
3342,
22982,
12,
474,
1801,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
309,
261,
7958,
22982,
422,
1801,
13,
288,
5411,
368,
2631,
1608,
358,
4879,
279,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
1071,
918,
444,
3342,
22982,
12,
474,
1801,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
309,
261,
7958,
22982,
422,
1801,
13,
288,
5411,
368,
2631,
1608,
358,
4879,
279,
590,
... |
PdeBase.saveFile(code[i].program, new File(buildPath, filename)); | try { PdeBase.saveFile(code[i].program, new File(buildPath, filename)); } catch (IOException e) { e.printStackTrace(); throw new PdeException("Problem moving " + filename + " to the build folder"); } | protected String build(String buildPath, String suggestedClassName) throws PdeException { String importPackageList[] = null; classPath = buildPath + File.pathSeparator + System.getProperty("java.class.path"); // figure out the contents of the code folder to see if there // are files that need to be added to the imports //File codeFolder = new File(folder, "code"); if (codeFolder.exists()) { externalRuntime = true; classPath += File.separator + PdeCompiler.contentsToClassPath(codeFolder); importPackageList = PdeCompiler.magicImports(classPath); //libraryPath = codeFolder.getCanonicalPath(); libraryPath = codeFolder.getAbsolutePath(); } else { externalRuntime = (codeCount > 1); // may still be set true later importPackageList = null; libraryPath = ""; } // first run preproc on the 'main' file, using the sugg class name // then for code 1..count // if .java, write programs[i] to buildpath // if .pde, run preproc to buildpath // if no class def'd for the pde file, then complain String primaryClassName = null; for (int i = 0; i < codeCount; i++) { if (code[i].flavor == JAVA) { // no pre-processing services necessary for java files // just write the the contents of 'program' to a .java file // into the build directory. uses byte stream and reader/writer // shtuff so that unicode bunk is properly handled String filename = code[i].name + ".java"; PdeBase.saveFile(code[i].program, new File(buildPath, filename)); code[i].preprocName = filename; } else if (code[i].flavor == PDE) { PdePreprocessor preprocessor = new PdePreprocessor(); try { // if (i != 0) preproc will fail if a pde file is not // java mode, since that's required String className = preprocessor.write(code[i].program, buildPath, (i == 0) ? suggestedClassName : null, additionalImports); if (className == null) { // TODO this is temporary for debugging System.err.println("class could not be determined for " + code[i].name + " hopefully an error has " + "already been reported."); return null; } else { code[i].preprocName = className + ".java"; } if (i == 0) { // store this for the compiler and the runtime primaryClassName = className; // check if the 'main' file is in java mode if (PdePreprocessor.programType == PdePreprocessor.JAVA) { externalRuntime = true; // we in advanced mode now, boy } } } catch (antlr.RecognitionException re) { // this even returns a column throw new PdeException(re.getMessage(), re.getLine() - 1, re.getColumn()); } catch (antlr.TokenStreamRecognitionException tsre) { // while this seems to store line and column internally, // there doesn't seem to be a method to grab it.. // so instead it's done using a regexp PatternMatcher matcher = new Perl5Matcher(); PatternCompiler compiler = new Perl5Compiler(); // line 3:1: unexpected char: 0xA0 String mess = "^line (\\d+):(\\d+):\\s"; Pattern pattern = compiler.compile(mess); PatternMatcherInput input = new PatternMatcherInput(tsre.toString()); if (matcher.contains(input, pattern)) { MatchResult result = matcher.getMatch(); int line = Integer.parseInt(result.group(1).toString()); int column = Integer.parseInt(result.group(2).toString()); throw new PdeException(tsre.getMessage(), line-1, column); } else { throw new PdeException(tsre.toString()); } } catch (PdeException pe) { // PdeExceptions are caught here and re-thrown, so that they don't // get lost in the more general "Exception" handler below. throw pe; } catch (Exception ex) { // TODO better method for handling this? System.err.println("Uncaught exception type:" + ex.getClass()); ex.printStackTrace(); throw new PdeException(ex.toString()); } } } // compile the program. errors will happen as a PdeException // that will bubble up to whomever called build(). // PdeCompiler compiler = new PdeCompiler(); boolean success = compiler.compile(this, buildPath); return success ? primaryClassName : null; } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/1857d6bd6ff6dcba19ab6c73bcac3b7f4424d746/PdeSketch.java/buggy/app/PdeSketch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1361,
12,
780,
1361,
743,
16,
514,
22168,
3834,
13,
565,
1216,
453,
323,
503,
288,
565,
514,
1930,
2261,
682,
8526,
273,
446,
31,
565,
22503,
273,
1361,
743,
397,
1387,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1361,
12,
780,
1361,
743,
16,
514,
22168,
3834,
13,
565,
1216,
453,
323,
503,
288,
565,
514,
1930,
2261,
682,
8526,
273,
446,
31,
565,
22503,
273,
1361,
743,
397,
1387,
18,
... |
} | log("Chat: " + myChat); | public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException{ log("startar do get"); // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; HttpSession session = req.getSession(false); // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( !isUserAuthorized( req, res, user ) ){ return; } // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String chatPoolServer = Utility.getDomainPref("chat_server",host) ; //RmiConf rmi = new RmiConf(user) ; String action = req.getParameter("action") ; if(action == null){ action = (String)req.getAttribute("action"); if(action == null){ action = "" ; String header = "ChatCreator servlet. " ; ChatError err = new ChatError(req,res,header,3) ; log(header + err.getErrorMsg()) ; return ; } } RmiConf rmi = new RmiConf(user); // ********* Create NEW Chat ********************************************************* if(action.equalsIgnoreCase("NEW")){ log("NEW"); //vi mste hmta allt som behvs frn databasen och sedan fixa till mallen //skapa en temp chat int meta_id = Integer.parseInt((String)session.getAttribute("Chat.meta_id")); Chat myChat = createChat(req, user, meta_id); session.setAttribute("myChat",myChat); // Lets build the Responsepage to the loginpage Vector vect = createTaggs(req, myChat); sendHtml(req,res,vect,HTML_TEMPLATE,myChat); return ; } String templateAdmin = req.getParameter("ADMIN_TEMPLATES"); if (templateAdmin != null) {//ok we have done upload template or image lets get back to the adminpage this.doPost(req,res); return; } if (action.equalsIgnoreCase("admin_chat")){ log("action = admin_chat"); //check which chat we have String chatName = req.getParameter("chatName"); log("ChatName: " + chatName); Vector tags = new Vector(); tags.add("#chatName#"); tags.add( chatName ) ; String metaId = (String)session.getAttribute("Chat.meta_id"); log("MetaId: " + metaId); ServletContext myContext = getServletContext(); Chat myChat = (Chat)myContext.getAttribute("theChat"+metaId); log("Chat: " + myChat); Vector vect = createTaggs(req, myChat); sendHtml(req,res,vect,HTML_TEMPLATE,myChat); return ; } } // End doGet | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChatCreator.java/buggy/servlets/chat/ChatCreator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
15069,
16517,
16,
1860,
95,
202,
202,
1330,
2932,
1937,
297,
741,
336,
8863,
202,
202,
759,
511,
2413,
1954,
326,
1339,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
15069,
16517,
16,
1860,
95,
202,
202,
1330,
2932,
1937,
297,
741,
336,
8863,
202,
202,
759,
511,
2413,
1954,
326,
1339,
... |
protected Image getImage(IMylarContextNode node) { | protected Image getImage(IMylarElement node) { | protected Image getImage(IMylarContextNode node) { return MylarImages.getImage(MylarImages.BUG); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f5bfb4859762da1543c326b182b2de34d0d94c08/BugzillaContextLabelProvider.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaContextLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3421,
10567,
12,
3445,
93,
7901,
1042,
907,
756,
13,
288,
202,
202,
2463,
8005,
7901,
8946,
18,
588,
2040,
12,
12062,
7901,
8946,
18,
4827,
1769,
225,
202,
97,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3421,
10567,
12,
3445,
93,
7901,
1042,
907,
756,
13,
288,
202,
202,
2463,
8005,
7901,
8946,
18,
588,
2040,
12,
12062,
7901,
8946,
18,
4827,
1769,
225,
202,
97,
2,
-100,
-100,... |
if(now - softLastPacketSendTime > minSoftDelay / 2) { softLastPacketSendTime = now - (minSoftDelay / 2); | if(nowNS - softLastPacketSendTimeNSec > softLimitPeriodNSec) { softLastPacketSendTimeNSec = nowNS - (softLimitPeriodNSec); | private boolean delay(long startCycleTime) { // Get the current inter-packet delay long delay = throttle.getDelay(); while(true) { long now = System.currentTimeMillis(); long endTime = -1; boolean thenSend = true; // Synchronize on the static lock, and update synchronized(lastPacketSendTimeSync) { // Get the current time now = System.currentTimeMillis(); // Update time if necessary to avoid spurts if(hardLastPacketSendTime < (now - minPacketDelay)) hardLastPacketSendTime = now - minPacketDelay; // Wait until the next send window long newHardLastPacketSendTime = hardLastPacketSendTime + minPacketDelay; long earliestSendTime = startCycleTime + delay; if(earliestSendTime > newHardLastPacketSendTime) { // Don't clog up other senders! thenSend = false; endTime = earliestSendTime; } else { hardLastPacketSendTime = newHardLastPacketSendTime; endTime = hardLastPacketSendTime; // What about the soft limit? if(now - softLastPacketSendTime > minSoftDelay / 2) { softLastPacketSendTime = now - (minSoftDelay / 2); } softLastPacketSendTime += minSoftDelay; if(softLastPacketSendTime > hardLastPacketSendTime) { endTime = hardLastPacketSendTime = softLastPacketSendTime; } } } while(now < endTime) { synchronized(_senderThread) { if(_sendComplete) return true; try { _senderThread.wait(endTime - now); } catch (InterruptedException e) { // Ignore } } if(_sendComplete) return true; now = System.currentTimeMillis(); } if(thenSend) return false; } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/BlockTransmitter.java/clean/src/freenet/io/xfer/BlockTransmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
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,
1875,
202,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
9506,... |
accessLogger.logService(AccessStatusType.SUCCESSFUL_GET_PROXY_TICKET, servicePrincipal, ticketGrantingTicket, proxyTicketId); | accessLogger.logService(AccessStatusType.SUCCESSFUL_GET_PROXY_TICKET, servicePrincipal, ticketGrantingTicket, proxyTicketId); | public static String getProxyTicket(final String ticketGrantingTicket, final String proxyServicePrincipal, final String servicePrincipal) throws AuthorizationException, IllegalInputException, InoperableStateException, UnknownTicketException { /* Check controller state */ if (!ready) { throw new InoperableStateException(NOT_READY); } /* Validate arguments */ if (ticketGrantingTicket == null || ticketGrantingTicket.equals("")) { throw new IllegalInputException("'ticketGrantingTicket' must be a non-empty string."); } if (proxyServicePrincipal == null || proxyServicePrincipal.equals("")) { throw new IllegalInputException("'proxyServicePrincipal' must be a non-empty string."); } if (servicePrincipal == null || servicePrincipal.equals("")) { throw new IllegalInputException("'servicePrincipal' must be a non-empty string."); } /* Authorize creation of proxy ticket */ authorizationCheck(servicePrincipal, new String[]{}, PROXY_AUTH_OPER); try { if (!authzManager.getSubsystems(servicePrincipal).contains(proxyServicePrincipal)) { accessLogger.logService(AccessStatusType.PROXY_TICKET_GENERATION_DENIED_UNAUTHORIZED, servicePrincipal, ticketGrantingTicket, null); throw new AuthorizationException("Request for proxy ticket denied."); } } catch (UnknownServicePrincipalException e) { accessLogger.logService(AccessStatusType.PROXY_TICKET_GENERATION_DENIED_INVALID_PRINCIPAL, servicePrincipal, ticketGrantingTicket, null); messageLogger.logInfo("UnknownServicePrincipalException caught", e); throw new AuthorizationException("Unknown service principal: " + servicePrincipal); } /* Return proxyTicket */ final String proxyTicketId; try { proxyTicketId = store.createProxyTicket(ticketGrantingTicket, servicePrincipal, proxyServicePrincipal); } catch (InvalidTicketException e) { accessLogger.logService(AccessStatusType.INVALID_TGT, servicePrincipal, ticketGrantingTicket, null); messageLogger.logWarn(CAUGHT_INVALID_TICKET, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (NonExistentTicketException e) { accessLogger.logService(AccessStatusType.NONEXISTENT_TGT, servicePrincipal, ticketGrantingTicket, null); messageLogger.logInfo(CAUGHT_NONEXISTENT_TICKET, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (MoriaStoreException e) { messageLogger.logCritical(CAUGHT_STORE, e); throw new InoperableStateException(STORE_DOWN); } accessLogger.logService(AccessStatusType.SUCCESSFUL_GET_PROXY_TICKET, servicePrincipal, ticketGrantingTicket, proxyTicketId); return proxyTicketId; } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/eaf64b8eda79a005e6c05d482fef1a43fceccb37/MoriaController.java/buggy/moria2/modules/moria-ctrl/src/java/no/feide/moria/controller/MoriaController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
18992,
13614,
12,
6385,
514,
9322,
9021,
310,
13614,
16,
727,
514,
2889,
1179,
9155,
16,
4766,
3639,
727,
514,
1156,
9155,
13,
5411,
1216,
10234,
503,
16,
2141,
20518,
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,
514,
18992,
13614,
12,
6385,
514,
9322,
9021,
310,
13614,
16,
727,
514,
2889,
1179,
9155,
16,
4766,
3639,
727,
514,
1156,
9155,
13,
5411,
1216,
10234,
503,
16,
2141,
20518,
16,... |
return 0; | return 0; | public static final int getHeaderSize() throws InlinePragma {return 0; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/fcd75edc79dd2d11a22c8bdd22f8fcd19eb62a3c/TraceInterface.java/buggy/MMTk/src/org/mmtk/vm/TraceInterface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
509,
7911,
1225,
1435,
1216,
16355,
2050,
9454,
288,
2463,
374,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
509,
7911,
1225,
1435,
1216,
16355,
2050,
9454,
288,
2463,
374,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"http: | "http: | public void testGetFilteredPolledNodes() throws Exception { Iterator nodeIt = nodeManager.getFilteredPolledNodes(mau.getAUCachedUrlSet(), PollState.RUNNING + PollState.WON); assertTrue(!nodeIt.hasNext()); CachedUrlSet cus = getCUS("http://www.example.com/branch1"); NodeState node = nodeManager.getNodeState(cus); ((NodeStateImpl)node).addPollState(new PollState(Poll.CONTENT_POLL, "", PollState.RUNNING, 123, null)); cus = getCUS("http://www.example.com/branch2/file1.doc"); node = nodeManager.getNodeState(cus); ((NodeStateImpl)node).addPollState(new PollState(Poll.NAME_POLL, "", PollState.WON, 123, null)); nodeIt = nodeManager.getFilteredPolledNodes(mau.getAUCachedUrlSet(), PollState.RUNNING + PollState.WON); ArrayList nodeL = new ArrayList(2); while (nodeIt.hasNext()) { node = (NodeState)nodeIt.next(); nodeL.add(node.getCachedUrlSet().getPrimaryUrl()); } String[] expectedA = new String[] { "http://www.example.com/branch1", "http://www.example.com/branch2/file1.doc" }; assertIsomorphic(expectedA, nodeL); nodeIt = nodeManager.getFilteredPolledNodes(mau.getAUCachedUrlSet(), PollState.RUNNING); nodeL = new ArrayList(1); while (nodeIt.hasNext()) { node = (NodeState)nodeIt.next(); nodeL.add(node.getCachedUrlSet().getPrimaryUrl()); } expectedA = new String[] { "http://www.example.com/branch1" }; assertIsomorphic(expectedA, nodeL); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/804a9886e6b9ddef3548eda18fe4bd85f6819092/TestNodeManagerImpl.java/buggy/test/src/org/lockss/state/TestNodeManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
14478,
5850,
1259,
3205,
1435,
1216,
1185,
288,
565,
4498,
756,
7193,
273,
756,
1318,
18,
588,
14478,
5850,
1259,
3205,
12,
2540,
89,
18,
588,
14237,
9839,
1489,
694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
14478,
5850,
1259,
3205,
1435,
1216,
1185,
288,
565,
4498,
756,
7193,
273,
756,
1318,
18,
588,
14478,
5850,
1259,
3205,
12,
2540,
89,
18,
588,
14237,
9839,
1489,
694... |
startPersister(); | public void maybeStart() throws IOException, InvalidConfigValueException { if (this.enabled) { if(enablePersistentDownloads) { loadPersistentRequests(); startPersister(); } Logger.normal(this, "Starting FCP server on "+bindTo+":"+port+"."); System.out.println("Starting FCP server on "+bindTo+":"+port+"."); NetworkInterface tempNetworkInterface = null; try { tempNetworkInterface = new NetworkInterface(port, bindTo, allowedHosts); } catch (BindException be) { Logger.error(this, "Couldn't bind to FCP Port "+bindTo+":"+port+". FCP Server not started."); System.out.println("Couldn't bind to FCP Port "+bindTo+":"+port+". FCP Server not started."); } this.networkInterface = tempNetworkInterface; if (this.networkInterface != null) { Thread t = new Thread(this, "FCP server"); t.setDaemon(true); t.start(); } } else { Logger.normal(this, "Not starting FCP server as it's disabled"); System.out.println("Not starting FCP server as it's disabled"); this.networkInterface = null; } } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/536c284f73ae3e7cdd8f17af72670c1a036ba8b4/FCPServer.java/clean/src/freenet/node/fcp/FCPServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6944,
1685,
1435,
1216,
1860,
16,
1962,
809,
9738,
288,
202,
202,
430,
261,
2211,
18,
5745,
13,
288,
25083,
202,
430,
12,
7589,
11906,
22141,
13,
288,
9506,
202,
945,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6944,
1685,
1435,
1216,
1860,
16,
1962,
809,
9738,
288,
202,
202,
430,
261,
2211,
18,
5745,
13,
288,
25083,
202,
430,
12,
7589,
11906,
22141,
13,
288,
9506,
202,
945,
119... | |
Thread doSyncFolder = new CmsSyncFolderThread(cms, synchronizeResources, m_newProject); | Thread doSyncFolder = new CmsSyncFolderThread(cms, synchronizeResources, m_newProject, session); | public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); //CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); String action = new String(); action = (String)parameters.get("action"); CmsXmlTemplateFile xmlTemplateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue("lasturl"); action = "start"; } // create a vector with the resources to be synchronized Vector synchronizeResources = parseResources(cms.getRegistry().getSystemValues(C_SYNCHRONISATION_RESOURCE)); // first we look if the thread is already running if((action != null) && ("working".equals(action))) { // still working? Thread doProjectNew = (Thread)session.getValue(C_SYNCFOLDER_THREAD); if(doProjectNew.isAlive()) { String time = (String)parameters.get("time"); int wert = Integer.parseInt(time); wert += 5; xmlTemplateDocument.setData("time", "" + wert); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "wait"); } else { // thread has come to an end, was there an error? String errordetails = (String)session.getValue(C_SESSION_THREAD_ERROR); if(errordetails == null) { return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "done"); } else { // get errorpage: xmlTemplateDocument.setData("details", errordetails); session.removeValue(C_SESSION_THREAD_ERROR); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "error"); } } } // is the wait-page showing? if("start".equals(action)) { // synchronize the resources try { // this is because the simpler 'getParameterValues' method doesn't work with Silverstream int numRes = synchronizeResources.size(); checkRedundancies(synchronizeResources); numRes = synchronizeResources.size(); // could have been changed Vector notWriteable = new Vector(); for(int i = numRes - 1;i >= 0;i--) { String theFolder = (String)synchronizeResources.elementAt(i); // if a new project was created for synchronisation, copy the resource to the project // this is now done in the thread //if (m_newProject){ // cms.copyResourceToProject(theFolder); //} if(!checkWriteable(cms, theFolder)) { notWriteable.addElement(theFolder); templateSelector = "error"; } } if(!"error".equals(templateSelector)) { // set the currentProject to the synchronizeProject Vector allProjects = cms.getAllAccessibleProjects(); int count = 0; CmsProject cmsProject = null; int projectId = cms.getRequestContext().currentProject().getId(); String projectName = cms.getRegistry().getSystemValue(C_SYNCHRONISATION_PROJECT); for( int i = 0; i < allProjects.size(); i++ ) { cmsProject = (CmsProject)allProjects.elementAt(i); if (cmsProject.getName().equals(projectName)){ projectId = cmsProject.getId(); count++; } } if (count == 1){ // only one syncproject was found, so set this project reqCont.setCurrentProject(projectId); m_newProject = false; } else if (count == 0){ // there is no syncproject, so create a new one and set this as the current project // the necessary resources will be copied later to this project reqCont.setCurrentProject(cms.createProject(projectName, "Project for synchronisation", "Users", "Projectmanager").getId()); m_newProject = true; } else { // there are too many projects with the name of the syncproject, so return an error xmlTemplateDocument.setData("details", "Too many projects for synchronisation."); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, "error"); } // start the thread for: synchronize the resources // first clear the session entry if necessary if(session.getValue(C_SESSION_THREAD_ERROR) != null) { session.removeValue(C_SESSION_THREAD_ERROR); } Thread doSyncFolder = new CmsSyncFolderThread(cms, synchronizeResources, m_newProject); doSyncFolder.start(); session.putValue(C_SYNCFOLDER_THREAD, doSyncFolder); xmlTemplateDocument.setData("time", "5"); templateSelector = "wait"; } else { // at least one of the choosen folders was not writeable -> don't synchronize. xmlTemplateDocument.setData("details", "The following folders were not writeable:" + notWriteable.toString()); } } catch(Exception exc) { xmlTemplateDocument.setData("details", Utils.getStackTrace(exc)); templateSelector = "error"; } } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/d2f589c32828861a6a82eed378db4ca7381ae0b3/CmsSyncFolder.java/clean/src/com/opencms/workplace/CmsSyncFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
1082,
202,
5582,
14544,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
202,
202,
430,
12,
39,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
1082,
202,
5582,
14544,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
202,
202,
430,
12,
39,
67,
... |
try { return getSession().save(object); } catch(HibernateException ex) { invalidateSession(); throw ex; } } | try { return getDelegatedSession().save(object); } catch (HibernateException ex) { throw handleException(ex); } catch (RuntimeException ex) { throw handleException(ex); } } | public Serializable save(Object object) throws HibernateException { try { return getSession().save(object); } catch(HibernateException ex) { invalidateSession(); throw ex; } } | 9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/cfa1414127b7a9b2e82c8e522e6166c1f1472f81/SessionDelegator.java/buggy/java/nanocontainer-persistence/trunk/persistence/src/java/org/nanocontainer/persistence/hibernate/classic/SessionDelegator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13687,
1923,
12,
921,
733,
13,
1216,
670,
24360,
503,
288,
3639,
775,
288,
5411,
327,
7183,
7675,
5688,
12,
1612,
1769,
3639,
289,
1044,
12,
44,
24360,
503,
431,
13,
288,
5411,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13687,
1923,
12,
921,
733,
13,
1216,
670,
24360,
503,
288,
3639,
775,
288,
5411,
327,
7183,
7675,
5688,
12,
1612,
1769,
3639,
289,
1044,
12,
44,
24360,
503,
431,
13,
288,
5411,
11... |
putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) { | putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) { | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; // 1 for this int code_length = 16; // aload_0, getfield, aload_0, getstatic, const, // aaload, const/aconst_null, invokeinterface if (i > 5) { if (i > Byte.MAX_VALUE) code_length += 2; // sipush else code_length++; // bipush } if (paramtypes.length > 0) { code_length += 3; // anewarray if (paramtypes.length > Byte.MAX_VALUE) code_length += 2; // sipush else if (paramtypes.length > 5) code_length++; // bipush for (int j = 0; j < paramtypes.length; j++) { code_length += 4; // dup, const, load, store Class type = paramtypes[j]; if (j > 5) { if (j > Byte.MAX_VALUE) code_length += 2; // sipush else code_length++; // bipush } if (param_count >= 4) code_length++; // 2-byte load param_count++; if (type.isPrimitive()) { code_length += 7; // new, dup, invokespecial if (type == long.class || type == double.class) { wrap_overhead = 3; param_count++; } else if (wrap_overhead < 2) wrap_overhead = 2; } } } int end_pc = code_length; Class ret_type = m.getReturnType(); if (ret_type == void.class) code_length++; // return else if (ret_type.isPrimitive()) code_length += 7; // cast, invokevirtual, return else code_length += 4; // cast, return int exception_count = 0; boolean throws_throwable = false; for (int j = 0; j < e.length; j++) if (e[j] == Throwable.class) { throws_throwable = true; break; } if (! throws_throwable) { exception_count = e.length + 3; // Throwable, Error, RuntimeException code_length += 9; // new, dup_x1, swap, invokespecial, athrow } int handler_pc = code_length - 1; StringBuffer signature = new StringBuffer("("); for (int j = 0; j < paramtypes.length; j++) signature.append(TypeSignature.getEncodingOfClass(paramtypes[j])); signature.append(")").append(TypeSignature.getEncodingOfClass(ret_type)); // Now we have enough information to emit the method. // handler.access_flags putU2(Modifier.PUBLIC | Modifier.FINAL); // handler.name_index putU2(utf8Info(m.getName())); // handler.descriptor_index putU2(utf8Info(signature.toString())); // handler.attributes_count - Code is necessary, Exceptions possible putU2(e.length > 0 ? 2 : 1); // handler.Code.info: // type name(args) { // try { // return (type) h.invoke(this, methods[i], new Object[] {args}); // } catch (<declared Exceptions> e) { // throw e; // } catch (Throwable t) { // throw new UndeclaredThrowableException(t); // } // } // Special cases: // if arg_n is primitive, wrap it // if method throws Throwable, try-catch is not needed // if method returns void, return statement not needed // if method returns primitive, unwrap it // save space by sharing code for all the declared handlers // handler.Code.attribute_name_index putU2(utf8Info("Code")); // handler.Code.attribute_length putU4(12 + code_length + 8 * exception_count); // handler.Code.max_stack putU2(param_count == 1 ? 4 : 7 + wrap_overhead); // handler.Code.max_locals putU2(param_count); // handler.Code.code_length putU4(code_length); // handler.Code.code[] putU1(ALOAD_0); putU1(GETFIELD); putU2(refInfo(FIELD, "java/lang/reflect/Proxy", "h", "Ljava/lang/reflect/InvocationHandler;")); putU1(ALOAD_0); putU1(GETSTATIC); putU2(refInfo(FIELD, TypeSignature.getEncodingOfClass(qualName, false), "m", "[Ljava/lang/reflect/Method;")); putConst(i); putU1(AALOAD); if (paramtypes.length > 0) { putConst(paramtypes.length); putU1(ANEWARRAY); putU2(classInfo("java/lang/Object")); param_count = 1; for (int j = 0; j < paramtypes.length; j++, param_count++) { putU1(DUP); putConst(j); if (paramtypes[j].isPrimitive()) { putU1(NEW); putU2(classInfo(wrapper(paramtypes[j]))); putU1(DUP); } putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) { putU1(INVOKESPECIAL); putU2(refInfo(METHOD, wrapper(paramtypes[j]), "<init>", '(' + (TypeSignature .getEncodingOfClass(paramtypes[j]) + ")V"))); if (paramtypes[j] == long.class || paramtypes[j] == double.class) param_count++; } putU1(AASTORE); } } else putU1(ACONST_NULL); putU1(INVOKEINTERFACE); putU2(refInfo(INTERFACE, "java/lang/reflect/InvocationHandler", "invoke", INVOKE_SIG)); putU1(4); // InvocationHandler, this, Method, Object[] putU1(0); if (ret_type == void.class) putU1(RETURN); else if (ret_type.isPrimitive()) { putU1(CHECKCAST); putU2(classInfo(wrapper(ret_type))); putU1(INVOKEVIRTUAL); putU2(refInfo(METHOD, wrapper(ret_type), ret_type.getName() + "Value", "()" + TypeSignature.getEncodingOfClass(ret_type))); if (ret_type == long.class) putU1(LRETURN); else if (ret_type == float.class) putU1(FRETURN); else if (ret_type == double.class) putU1(DRETURN); else putU1(IRETURN); } else { putU1(CHECKCAST); putU2(classInfo(ret_type)); putU1(ARETURN); } if (! throws_throwable) { putU1(NEW); putU2(classInfo("java/lang/reflect/UndeclaredThrowableException")); putU1(DUP_X1); putU1(SWAP); putU1(INVOKESPECIAL); putU2(refInfo(METHOD, "java/lang/reflect/UndeclaredThrowableException", "<init>", "(Ljava/lang/Throwable;)V")); putU1(ATHROW); } // handler.Code.exception_table_length putU2(exception_count); // handler.Code.exception_table[] if (! throws_throwable) { // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo("java/lang/Error")); // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo("java/lang/RuntimeException")); for (int j = 0; j < e.length; j++) { // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo(e[j])); } // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc - // -8 for undeclared handler, which falls thru to normal one putU2(handler_pc - 8); // handler.Code.exception_table.catch_type putU2(0); } // handler.Code.attributes_count putU2(0); // handler.Code.attributes[] if (e.length > 0) { // handler.Exceptions.attribute_name_index putU2(utf8Info("Exceptions")); // handler.Exceptions.attribute_length putU4(2 * e.length + 2); // handler.Exceptions.number_of_exceptions putU2(e.length); // handler.Exceptions.exception_index_table[] for (int j = 0; j < e.length; j++) putU2(classInfo(e[j])); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4912e36e2c7c8022f56aa40cb456494925b6065d/Proxy.java/buggy/core/src/classpath/java/java/lang/reflect/Proxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
1305,
12,
474,
277,
16,
1659,
8526,
425,
13,
565,
288,
5411,
368,
5783,
16,
732,
675,
11162,
326,
707,
769,
471,
1308,
1779,
18,
1377,
2985,
312,
273,
2590,
63,
77,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
1305,
12,
474,
277,
16,
1659,
8526,
425,
13,
565,
288,
5411,
368,
5783,
16,
732,
675,
11162,
326,
707,
769,
471,
1308,
1779,
18,
1377,
2985,
312,
273,
2590,
63,
77,
1... |
setLabelLayoutData( label, width ); | setLabelLayoutData( label ); | private void createLabel( Composite parent, String content, int width ) { Label label = new Label( parent, SWT.NONE ); if ( content != null ) { label.setText( content ); } setLabelLayoutData( label, width ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/31a80f48beb9d599facbdada555a36a918b898f1/ParameterDialog.java/buggy/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,
752,
2224,
12,
14728,
982,
16,
514,
913,
16,
509,
1835,
262,
202,
95,
202,
202,
2224,
1433,
273,
394,
5287,
12,
982,
16,
348,
8588,
18,
9826,
11272,
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,
1152,
918,
752,
2224,
12,
14728,
982,
16,
514,
913,
16,
509,
1835,
262,
202,
95,
202,
202,
2224,
1433,
273,
394,
5287,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
430,
261... |
if (howMuch >= HIERARCHY && status < HIERARCHY) { modifiers = Modifier.PUBLIC | 0x20; | if (howMuch >= HIERARCHY) { | public void guess(int howMuch) { if (howMuch >= OUTERCLASS && status < OUTERCLASS) { int dollar = name.lastIndexOf('$'); if (dollar == -1) { /* normal class */ } else if (Character.isDigit(name.charAt(dollar+1))) { /* anonymous class */ modifiers = Modifier.PUBLIC | 0x20; methodScoped = true; } else { modifiers = Modifier.PUBLIC | 0x20; className = name.substring(dollar+1); int prevDollar = name.lastIndexOf('$', dollar); if (prevDollar >= 0 && Character.isDigit(name.charAt(prevDollar))) { /* probably method scoped class, (or inner class * of anoymous class) */ methodScoped = true; outerClass = classpath.getClassInfo (name.substring(0, prevDollar)); } else { /* inner class */ modifiers = Modifier.PUBLIC | 0x20; outerClass = classpath.getClassInfo (name.substring(0, dollar)); } } } if (howMuch >= HIERARCHY && status < HIERARCHY) { modifiers = Modifier.PUBLIC | 0x20; if (name.equals("java.lang.Object")) superclass = null; else superclass = classpath.getClassInfo("java.lang.Object"); interfaces = new ClassInfo[0]; } if (howMuch >= PUBLICDECLARATIONS && status < PUBLICDECLARATIONS) { methods = new MethodInfo[0]; fields = new FieldInfo[0]; innerClasses = new ClassInfo[0]; } status = howMuch; } | 5628 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5628/3b2648f2701255bc1c18283b0e4f29f3befd3216/ClassInfo.java/buggy/jode/jode/bytecode/ClassInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7274,
12,
474,
3661,
49,
2648,
13,
377,
288,
202,
430,
261,
13606,
49,
2648,
1545,
28759,
5237,
597,
1267,
411,
28759,
5237,
13,
288,
202,
565,
509,
302,
25442,
273,
508,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7274,
12,
474,
3661,
49,
2648,
13,
377,
288,
202,
430,
261,
13606,
49,
2648,
1545,
28759,
5237,
597,
1267,
411,
28759,
5237,
13,
288,
202,
565,
509,
302,
25442,
273,
508,
18,... |
aliasVal = aliasVal.substring(0, si).trim(); | ifAlias = ifAlias.substring(0, si).trim(); | String getAliasDir(String ifAliasComment) { String aliasVal = getNewIfAlias(); if (aliasVal != null) { if (ifAliasComment != null) { int si = aliasVal.indexOf(ifAliasComment); if (si > -1) { aliasVal = aliasVal.substring(0, si).trim(); } } if (aliasVal != null) { aliasVal = AlphaNumeric.parseAndReplaceExcept(aliasVal, SnmpCollector.nonAnRepl, SnmpCollector.AnReplEx); } } logAlias(); return aliasVal; } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/2d9cfe471055b5ea9917af107a2609e6dc68491d/IfInfo.java/clean/opennms-services/src/main/java/org/opennms/netmgt/collectd/IfInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
13131,
1621,
12,
780,
309,
2936,
4469,
13,
288,
3639,
514,
2308,
3053,
273,
12654,
2047,
2936,
5621,
3639,
309,
261,
4930,
3053,
480,
446,
13,
288,
5411,
309,
261,
430,
2936,
4469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
13131,
1621,
12,
780,
309,
2936,
4469,
13,
288,
3639,
514,
2308,
3053,
273,
12654,
2047,
2936,
5621,
3639,
309,
261,
4930,
3053,
480,
446,
13,
288,
5411,
309,
261,
430,
2936,
4469,
... |
btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup ); | Button btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup ); | private void createButtonGroup( Composite parent ) { Composite cmp = new Composite( parent, SWT.NONE ); { cmp.setLayout( new GridLayout( 5, false ) ); GridData gridData = new GridData( GridData.FILL_HORIZONTAL ); gridData.horizontalSpan = 2; gridData.grabExcessVerticalSpace = true; gridData.verticalAlignment = SWT.END; cmp.setLayoutData( gridData ); } ITaskPopupSheet popup = new AxisScaleSheet( Messages.getString( "AxisYSheetImpl.Label.Scale" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ) ); btnScale = createToggleButton( cmp, popup.getTitle( ), popup ); btnScale.addSelectionListener( this ); popup = new AxisTextSheet( Messages.getString( "AxisYSheetImpl.Label.TextFormat" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ), getAxisAngleType( ) ); btnAxisTitle = createToggleButton( cmp, popup.getTitle( ), popup ); btnAxisTitle.addSelectionListener( this ); popup = new AxisGridLinesSheet( Messages.getString( "AxisYSheetImpl.Label.Gridlines" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ), getAxisAngleType( ) ); btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup ); btnGridlines.addSelectionListener( this ); // Marker is not supported for 3D popup = new AxisMarkersSheet( Messages.getString( "AxisYSheetImpl.Label.Markers" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ) ); btnMarkers = createToggleButton( cmp, popup.getTitle( ), popup ); btnMarkers.addSelectionListener( this ); btnMarkers.setEnabled( !ChartUIUtil.is3DType( getChart( ) ) ); // Interactivity popup = new InteractivitySheet( Messages.getString( "SeriesYSheetImpl.Label.Interactivity" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ).getTriggers( ), false, true ); btnInteractivity = createToggleButton( cmp, popup.getTitle( ), popup ); btnInteractivity.addSelectionListener( this ); btnInteractivity.setEnabled( getChart( ).getInteractivity( ).isEnable( ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/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,
1152,
918,
752,
3616,
1114,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
9625,
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,
225,
202,
1152,
918,
752,
3616,
1114,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
9625,
18,
542,
... |
url = new URL("http: | url = new URL("http: | private URLConnection getConnection() throws IOException { URLConnection con; if (path != null) { con = (new File(path).toURL()).openConnection(); } else { if (proxySettings.isUse()) { System.getProperties().put("proxyHost", proxySettings.getHost()); System.getProperties().put("proxyPort", proxySettings.getPort()); } URL url = null; if(!ControlMovieGuideTab.movieGuideFile.exists()){ url = new URL("http://www.premiere.de/content/download/mguide_d_s_"+ SerFormatter.getAktuellDateString(0,"MM_yy")+".txt"); xml = 0; }else{ url = new URL("http://www.premiere.de/content/download/mguide_d_s_"+ SerFormatter.getAktuellDateString(1,"MM_yy")+".txt"); xml = 1; } if(ControlMain.getSettingsMovieGuide().isMgStoreOriginal()){ fw = new FileWriter(ControlMain.getSettingsPath().getWorkDirectory()+File.separator+url.getFile().substring(18)); } con =url.openConnection(); if (proxySettings.isUse()) { con.setRequestProperty("Proxy-Authorization", "Basic " + proxySettings.getUserPass()); } } return con; } | 8459 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8459/ecf18f0610c2344f4abd278e4da5b2a5f6838d68/SerMovieGuide2Xml.java/clean/jtjg/service/SerMovieGuide2Xml.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1976,
1952,
6742,
1435,
1216,
1860,
288,
565,
1976,
1952,
356,
31,
3639,
309,
261,
803,
480,
446,
13,
288,
3639,
356,
273,
261,
2704,
1387,
12,
803,
2934,
869,
1785,
1435,
2934,
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,
3238,
1976,
1952,
6742,
1435,
1216,
1860,
288,
565,
1976,
1952,
356,
31,
3639,
309,
261,
803,
480,
446,
13,
288,
3639,
356,
273,
261,
2704,
1387,
12,
803,
2934,
869,
1785,
1435,
2934,
3... |
public String addAttributeAndCheck(Attribute attribute) throws ManifestException { if (attribute.getName() == null || attribute.getValue() == null) { throw new ManifestException("Attributes must have name and value"); | public String addAttributeAndCheck( Attribute attribute ) throws ManifestException { if ( attribute.getName() == null || attribute.getValue() == null ) { throw new ManifestException( "Attributes must have name and value" ); | public String addAttributeAndCheck(Attribute attribute) throws ManifestException { if (attribute.getName() == null || attribute.getValue() == null) { throw new ManifestException("Attributes must have name and value"); } if (attribute.getKey().equalsIgnoreCase(ATTRIBUTE_NAME)) { warnings.addElement("\"" + ATTRIBUTE_NAME + "\" attributes " + "should not occur in the main section and must be the " + "first element in all other sections: \"" + attribute.getName() + ": " + attribute.getValue() + "\""); return attribute.getValue(); } if (attribute.getKey().startsWith(ATTRIBUTE_FROM.toLowerCase())) { warnings.addElement("Manifest attributes should not start " + "with \"" + ATTRIBUTE_FROM + "\" in \"" + attribute.getName() + ": " + attribute.getValue() + "\""); } else { // classpath attributes go into a vector String attributeKey = attribute.getKey(); if (attributeKey.equalsIgnoreCase(ATTRIBUTE_CLASSPATH)) { Attribute classpathAttribute = (Attribute) attributes.get(attributeKey); if (classpathAttribute == null) { storeAttribute(attribute); } else { warnings.addElement("Multiple Class-Path attributes " + "are supported but violate the Jar " + "specification and may not be correctly " + "processed in all environments"); Enumeration e = attribute.getValues(); while (e.hasMoreElements()) { String value = (String) e.nextElement(); classpathAttribute.addValue(value); } } } else if (attributes.containsKey(attributeKey)) { throw new ManifestException("The attribute \"" + attribute.getName() + "\" may not occur more " + "than once in the same section"); } else { storeAttribute(attribute); } } return null; } | 55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/Manifest.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
10759,
31151,
12,
1499,
1566,
13,
2398,
1216,
15443,
503,
288,
5411,
309,
261,
4589,
18,
17994,
1435,
422,
446,
747,
1566,
18,
24805,
1435,
422,
446,
13,
288,
7734,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
10759,
31151,
12,
1499,
1566,
13,
2398,
1216,
15443,
503,
288,
5411,
309,
261,
4589,
18,
17994,
1435,
422,
446,
747,
1566,
18,
24805,
1435,
422,
446,
13,
288,
7734,
604,
394,
... |
sb.append("\n"); sb.append(" sb.append("</SCRIPT>\n\n"); | sb.append("\n"); sb.append(" sb.append("</script>\n\n"); | protected String getJavascriptEnd() { StringBuffer sb = new StringBuffer(); sb.append("\n"); sb.append("// End -->\n"); sb.append("</SCRIPT>\n\n"); return sb.toString(); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/e83c067c2d66a81f6e82cf4402ecd24628f44cda/JavascriptValidatorTag.java/buggy/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
9285,
8711,
1638,
1435,
288,
4202,
6674,
2393,
273,
394,
6674,
5621,
4202,
2393,
18,
6923,
31458,
82,
8863,
4202,
2393,
18,
6923,
2932,
759,
225,
4403,
1493,
5333,
82,
8863,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
9285,
8711,
1638,
1435,
288,
4202,
6674,
2393,
273,
394,
6674,
5621,
4202,
2393,
18,
6923,
31458,
82,
8863,
4202,
2393,
18,
6923,
2932,
759,
225,
4403,
1493,
5333,
82,
8863,
42... |
private static boolean isArrayLoopStatement(PsiForStatement forStatement){ | static boolean isArrayLoopStatement(PsiForStatement forStatement){ | private static boolean isArrayLoopStatement(PsiForStatement forStatement){ final PsiStatement initialization = forStatement.getInitialization(); if(!(initialization instanceof PsiDeclarationStatement)){ return false; } final PsiDeclarationStatement declaration = (PsiDeclarationStatement) initialization; if(declaration.getDeclaredElements().length != 1){ return false; } final PsiLocalVariable indexVar = (PsiLocalVariable) declaration.getDeclaredElements()[0]; final PsiExpression initialValue = indexVar.getInitializer(); if(initialValue == null){ return false; } final String initializerText = initialValue.getText(); if(!"0".equals(initializerText)){ return false; } final PsiExpression condition = forStatement.getCondition(); if(!isArrayLengthComparison(condition, indexVar)){ return false; } final PsiStatement update = forStatement.getUpdate(); if(!isIncrement(update, indexVar)){ return false; } final PsiReferenceExpression arrayReference = getVariableReferenceFromCondition(condition); final PsiStatement body = forStatement.getBody(); if(body == null){ return false; } final String arrayName = arrayReference.getText(); if(!indexVarOnlyUsedAsIndex(arrayName, indexVar, body)){ return false; } return !isVariableAssigned(arrayName, body); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8629082a2f885120180c8da4e7204776468af6a2/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
5439,
6452,
3406,
12,
52,
7722,
1290,
3406,
364,
3406,
15329,
3639,
727,
453,
7722,
3406,
10313,
273,
364,
3406,
18,
588,
17701,
5621,
3639,
309,
12,
5,
12,
6769,
1588,
1276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
5439,
6452,
3406,
12,
52,
7722,
1290,
3406,
364,
3406,
15329,
3639,
727,
453,
7722,
3406,
10313,
273,
364,
3406,
18,
588,
17701,
5621,
3639,
309,
12,
5,
12,
6769,
1588,
1276,
... |
index = closeBrackets.indexOf(ch); if(index != -1) { char openBracket = openBrackets.charAt(index); int[] match = TextUtilities.locateBracketBackward( document,dot - 1,openBracket,ch); if(match != null) { int mark = getLineStartOffset(match[0]) + match[1]; select(dot,mark); return; } } | bl.printStackTrace(); | private void doDoubleClick(MouseEvent evt, int line, int offset, int dot) throws BadLocationException { String lineText = getLineText(line); String openBrackets = (String)document.getProperty("openBrackets"); String closeBrackets = (String)document.getProperty("closeBrackets"); char ch = lineText.charAt(Math.max(0,offset - 1)); int index = openBrackets.indexOf(ch); if(index != -1) { char closeBracket = closeBrackets.charAt(index); int[] match = TextUtilities.locateBracketForward( document,dot - 1,ch,closeBracket); if(match != null) { int mark = getLineStartOffset(match[0]) + match[1]; select(dot - 1,mark + 1); return; } } else { index = closeBrackets.indexOf(ch); if(index != -1) { char openBracket = openBrackets.charAt(index); int[] match = TextUtilities.locateBracketBackward( document,dot - 1,openBracket,ch); if(match != null) { int mark = getLineStartOffset(match[0]) + match[1]; select(dot,mark); return; } } } // Ok, it's not a bracket... select the word String noWordSep = (String)document.getProperty("noWordSep"); // If the user clicked on a non-letter char, // we select the surrounding non-letters boolean selectNoLetter = (!Character .isLetterOrDigit(ch) && noWordSep.indexOf(ch) == -1); int wordStart = 0; for(int i = offset - 1; i >= 0; i--) { ch = lineText.charAt(i); if(selectNoLetter ^ (!Character .isLetterOrDigit(ch) && noWordSep.indexOf(ch) == -1)) { wordStart = i + 1; break; } } int wordEnd = lineText.length(); for(int i = offset; i < lineText.length(); i++) { ch = lineText.charAt(i); if(selectNoLetter ^ (!Character .isLetterOrDigit(ch) && noWordSep.indexOf(ch) == -1)) { wordEnd = i; break; } } int lineStart = getLineStartOffset(line); select(lineStart + wordStart,lineStart + wordEnd); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/74cfad32646b1c4f3eec12a6f57a063e18221c2a/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
741,
5265,
6563,
12,
9186,
1133,
6324,
16,
509,
980,
16,
1082,
202,
474,
1384,
16,
509,
3928,
13,
1216,
6107,
2735,
503,
202,
202,
95,
1082,
202,
780,
980,
1528,
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,
3196,
202,
1152,
918,
741,
5265,
6563,
12,
9186,
1133,
6324,
16,
509,
980,
16,
1082,
202,
474,
1384,
16,
509,
3928,
13,
1216,
6107,
2735,
503,
202,
202,
95,
1082,
202,
780,
980,
1528,
273,
... |
public static Object lookup( PageContext pageContext, String name, String property, String scope) | public static Object lookup(PageContext pageContext, String name, String scopeName) | public static Object lookup( PageContext pageContext, String name, String property, String scope) throws JspException { // :TODO: Remove after Struts 1.2 return TagUtils.getInstance().lookup(pageContext, name, property, scope); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/08e826c30dbe112730cc452501b7f91747778cd9/RequestUtils.java/buggy/src/share/org/apache/struts/util/RequestUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3689,
12,
5411,
3460,
1042,
21442,
16,
5411,
514,
508,
16,
5411,
514,
1272,
16,
5411,
514,
2146,
13,
5411,
1216,
27485,
288,
3639,
368,
294,
6241,
30,
3581,
1839,
3978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3689,
12,
5411,
3460,
1042,
21442,
16,
5411,
514,
508,
16,
5411,
514,
1272,
16,
5411,
514,
2146,
13,
5411,
1216,
27485,
288,
3639,
368,
294,
6241,
30,
3581,
1839,
3978,
... |
Authenticate.getSiteAuth().allowSetPassword(context, request, | AuthenticationManager.allowSetPassword(context, request, | private void processPersonalInfo(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // Get the token String token = request.getParameter("token"); // Get the email address String email = AccountManager.getEmail(context, token); String netid = request.getParameter("netid"); if ((netid!=null)&&(email==null)) email = request.getParameter("email"); // If the token isn't valid, show an error if (email == null && netid==null) { log.info(LogManager.getHeader(context, "invalid_token", "token=" + token)); // Invalid token JSPManager .showJSP(request, response, "/register/invalid-token.jsp"); return; } // If the token is valid, we create an eperson record if need be EPerson eperson = null; if (email!=null) eperson = EPerson.findByEmail(context, email); EPerson eperson2 = null; eperson2 = EPerson.findByNetid(context, netid); if (eperson2 !=null) eperson = eperson2; if (eperson == null) { // Need to create new eperson // FIXME: TEMPORARILY need to turn off authentication, as usually // only site admins can create e-people context.setIgnoreAuthorization(true); eperson = EPerson.create(context); eperson.setEmail(email); eperson.setNetid(netid); eperson.update(); context.setIgnoreAuthorization(false); } // Now set the current user of the context // to the user associated with the token, so they can update their // info context.setCurrentUser(eperson); // Set the user profile info boolean infoOK = EditProfileServlet.updateUserProfile(eperson, request); eperson.setCanLogIn(true); eperson.setSelfRegistered(true); // Give site auth a chance to set/override appropriate fields Authenticate.getSiteAuth().initEPerson(context, request, eperson); // If the user set a password, make sure it's OK boolean passwordOK = true; if (eperson.getRequireCertificate() == false && netid==null && Authenticate.getSiteAuth().allowSetPassword(context, request, eperson.getEmail())) { passwordOK = EditProfileServlet.confirmAndSetPassword(eperson, request); } if (infoOK && passwordOK) { // All registered OK. log.info(LogManager.getHeader(context, "usedtoken_register", "email=" + eperson.getEmail())); // delete the token if (token!=null) AccountManager.deleteToken(context, token); // Update user record eperson.update(); request.setAttribute("eperson", eperson); JSPManager.showJSP(request, response, "/register/registered.jsp"); context.complete(); } else { request.setAttribute("token", token); request.setAttribute("eperson", eperson); request.setAttribute("netid", netid); request.setAttribute("missing.fields", new Boolean(!infoOK)); request.setAttribute("password.problem", new Boolean(!passwordOK)); // Indicate if user can set password boolean setPassword = Authenticate.getSiteAuth().allowSetPassword( context, request, email); request.setAttribute("set.password", new Boolean(setPassword)); JSPManager.showJSP(request, response, "/register/registration-form.jsp"); // Changes to/creation of e-person in DB cancelled context.abort(); } } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/ed0b7a874baa6ea64f0ef03c065253ff1b71de12/RegisterServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/RegisterServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
8346,
287,
966,
12,
1042,
819,
16,
5411,
9984,
590,
16,
12446,
766,
13,
5411,
1216,
16517,
16,
1860,
16,
6483,
16,
5411,
23859,
503,
565,
288,
3639,
368,
968,
326,
1147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
8346,
287,
966,
12,
1042,
819,
16,
5411,
9984,
590,
16,
12446,
766,
13,
5411,
1216,
16517,
16,
1860,
16,
6483,
16,
5411,
23859,
503,
565,
288,
3639,
368,
968,
326,
1147... |
next_seq_id_to_assign++; | next_seq_id_to_assign++; | private synchronized void handleRequestMessage( Message msg ) { if ( next_seq_id_to_assign < 0 ) { // we cannot assign a valid sequence id log.error( "Error: TOTAL_OLD.handleRequestMessage() - cannot handle request... do not know what sequence id to assign" ); return; } // make the message a broadcast message to the group msg.setDest( null ); // set the source of the message to be me msg.setSrc( local_addr ); // add the sequence id to the message msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_BCAST, next_seq_id_to_assign ) ); // store a copy of this message is the history Message msg_copy = msg.copy(); ack_history.addMessage( msg_copy, next_seq_id_to_assign ); // begin debug { Object header = msg_copy.getHeader(getName()); if ( !(header instanceof TotalHeader) ) { log.error( "Error: TOTAL_OLD.handleRequestMessage() - BAD: stored message that did not contain a TotalHeader - " + next_seq_id_to_assign ); } } // // end debug // increment the next sequence id to use next_seq_id_to_assign++; // pass this new Message (wrapped in an Event) down the Protocol Stack passDown( new Event( Event.MSG, msg ) ); } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
15713,
1079,
12,
2350,
1234,
262,
288,
202,
430,
261,
1024,
67,
5436,
67,
350,
67,
869,
67,
6145,
411,
374,
262,
288,
202,
565,
368,
732,
2780,
2683,
279,
923,
3102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
15713,
1079,
12,
2350,
1234,
262,
288,
202,
430,
261,
1024,
67,
5436,
67,
350,
67,
869,
67,
6145,
411,
374,
262,
288,
202,
565,
368,
732,
2780,
2683,
279,
923,
3102,
... |
IPreferenceStore store = IDEWorkbenchPlugin.getDefault().getPreferenceStore(); store.addPropertyChangeListener(propertyChangeListener); | private void hookListeners() { // Listen for preference property changes to // update the menubar and toolbar IPreferenceStore store = IDEWorkbenchPlugin.getDefault().getPreferenceStore(); store.addPropertyChangeListener(propertyChangeListener); // Listen to workbench page lifecycle methods to enable // and disable the perspective menu items as needed. getWindow().addPageListener(new IPageListener() { public void pageActivated(IWorkbenchPage page) { enableActions(page.getPerspective() != null); } public void pageClosed(IWorkbenchPage page) { IWorkbenchPage pg = getWindow().getActivePage(); enableActions(pg != null && pg.getPerspective() != null); } public void pageOpened(IWorkbenchPage page) { } }); // Listen to workbench perspective lifecycle methods to enable // and disable the perspective menu items as needed. getWindow().addPageListener(new IPageListener() { public void pageActivated(IWorkbenchPage page) { } public void pageClosed(IWorkbenchPage page) { enableActions(false); } public void pageOpened(IWorkbenchPage page) { } }); getWindow().addPerspectiveListener(new IPerspectiveListener() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { enableActions(true); } public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7c2f7bb96fd191635ec08a5772f57f526967af9b/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
1435,
288,
202,
202,
759,
13426,
364,
11555,
1272,
3478,
358,
202,
202,
759,
1089,
326,
21247,
373,
297,
471,
12748,
202,
202,
45,
9624,
2257,
1707,
273,
1082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
1435,
288,
202,
202,
759,
13426,
364,
11555,
1272,
3478,
358,
202,
202,
759,
1089,
326,
21247,
373,
297,
471,
12748,
202,
202,
45,
9624,
2257,
1707,
273,
1082,... | |
fudgeAcross = 0.0 /*- maxBounds.getCenterX()*/; | fudgeAcross = - maxBounds.getCenterX(); | public void paint( Graphics2D g, SequenceRenderContext src ) { SymbolList seq = src.getSymbols(); int direction = src.getDirection(); g.setFont(src.getFont()); Rectangle2D oldClip = g.getClipBounds(); // AffineTransform oldTrans = g.getTransform(); g.setColor(Color.black); double scale = src.getScale(); Rectangle2D maxBounds = g.getFont().getMaxCharBounds(g.getFontRenderContext()); if( // symbol must be larger than 30% of char size // attempting to render src.getScale() >= maxBounds.getWidth()*0.3 && src.getScale() >= maxBounds.getHeight()*0.3 ) { double fudgeAcross = 0.0; // intended to center text in band double fudgeDown = 0.0; if (direction == src.HORIZONTAL) { fudgeAcross = 0.0 /*- maxBounds.getCenterX()*/; fudgeDown = depth * 0.5 - maxBounds.getCenterY(); } else { fudgeAcross = depth * 0.5 - maxBounds.getCenterX(); fudgeDown = scale * 0.5 - maxBounds.getCenterY(); } int leading; // these correspond to the symbol index value int trailing; // of the ends of the clip region int symOffset = src.getRange().getMin(); // first symbol by base index value double graphOffset = src.sequenceToGraphics(symOffset); // by pixels if(src.getDirection() == src.HORIZONTAL) { // compute base nos. associated with ends of clip region leading = src.graphicsToSequence(oldClip.getMinX()); trailing = src.graphicsToSequence(oldClip.getMaxX()); // A transform to render the symbols is setup in // SequencePanel.paintComponent(). // start of leader will place you at leftmost edge of draw area. // the default clip region from SequencePanel.paintComponent() // spans the leader, sequence range and trailer. // it is adequate for this method although we could further // restrict it to the sequence region itself // g.translate(-graphOffset, 0.0); // g.setClip(AffineTransform.getTranslateInstance(-graphOffset, 0.0) // .createTransformedShape(oldClip)); } else { leading = src.graphicsToSequence(oldClip.getMinY()); trailing = src.graphicsToSequence(oldClip.getMaxY()); // g.translate(0.0, -graphOffset); // g.setClip(AffineTransform.getTranslateInstance(0.0, -graphOffset) // .createTransformedShape(oldClip)); } // Rectangle2D clip = g.getClipBounds(); // can this ever happen? leading > pos.getMin?, // pos.getMax() > trailing? int min = Math.max(src.getRange().getMin(), leading); int max = Math.min(src.getRange().getMax(), trailing+1); /* System.out.println("oldTrans: " + oldTrans); System.out.println("pos: " + src.getRange()); System.out.println("symOffset: " + symOffset); System.out.println("graphOffset: " + graphOffset); System.out.println("leading: " + leading); System.out.println("trailing: " + trailing); System.out.println("min: " + min); System.out.println("max: " + max); System.out.println("-"); */ for (int sPos = min; sPos <= max; ++sPos) { double gPos = src.sequenceToGraphics(sPos /* - symOffset */ + 1); char c = seq.symbolAt(sPos).getToken(); if (direction == SequencePanel.HORIZONTAL) { //charBox.x = gPos; g.drawString( String.valueOf(c), (int) (gPos + fudgeAcross), (int) fudgeDown ); // g.drawString( // String.valueOf(sPos).substring(0, 1), // (int) (gPos + fudgeAcross), (int) fudgeDown // ); if(sPos == 10) { g.draw(new Rectangle2D.Double(gPos, 0.0, src.getScale(), 10.0)); } } else { //charBox.y = gPos; g.drawString( String.valueOf(c), (int) fudgeAcross, (int) (gPos + fudgeDown) ); } //g.draw(charBox); } } // g.setTransform(oldTrans);// g.setClip(oldClip); } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/64d840b0a718ba0cc8816854629a1d583d36e738/SymbolSequenceRenderer.java/clean/src/org/biojava/bio/gui/sequence/SymbolSequenceRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
1377,
16830,
22,
40,
314,
16,
1377,
8370,
3420,
1042,
1705,
565,
262,
288,
1377,
8565,
682,
3833,
273,
1705,
18,
588,
14821,
5621,
1377,
509,
4068,
273,
1705,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
1377,
16830,
22,
40,
314,
16,
1377,
8370,
3420,
1042,
1705,
565,
262,
288,
1377,
8565,
682,
3833,
273,
1705,
18,
588,
14821,
5621,
1377,
509,
4068,
273,
1705,
18,
... |
private void addCustomInstallHandlerSection(Composite parent) { Composite container = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); container.setLayout(layout); container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));// Label spacer = new Label(container, SWT.NULL);// GridData gd = new GridData();// gd.horizontalSpan = 2;// spacer.setLayoutData(gd); customChoice = new Button(container, SWT.CHECK); customChoice.setText(PDEPlugin.getResourceString(KEY_CUSTOM_INSTALL_HANDLER)); customChoice.setSelection(false); customChoice.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { boolean isSelected = ((Button) e.widget).getSelection(); libraryText.setEnabled(isSelected); sourceText.setEnabled(isSelected); buildOutputText.setEnabled(isSelected); libraryLabel.setEnabled(isSelected); sourceLabel.setEnabled(isSelected); buildOutputLabel.setEnabled(isSelected); getContainer().updateButtons(); } }); } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/61167f99093ccc2f220f40e68ea03e39ee95892e/FeatureCustomHandlerPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/feature/FeatureCustomHandlerPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3802,
6410,
1503,
5285,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3802,
6410,
1503,
5285,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394... | ||
DatagramPacket packet = new DatagramPacket(new byte[1500], 1500); | DatagramPacket packet = new DatagramPacket(new byte[MAX_RECEIVE_SIZE], MAX_RECEIVE_SIZE); | private DatagramPacket getPacket() { try { // We make it timeout every 100ms so that we can check for // _filters which have timed out, this // is ugly but our only option without resorting to java.nio // because there is no way to forcefully // interrupt a socket wait operation _sock.setSoTimeout(100); } catch (SocketException e) { throw new RuntimeException(e); } // TODO: Avoid recreating the packet each time (warning, there are some issues reusing DatagramPackets, be // careful) DatagramPacket packet = new DatagramPacket(new byte[1500], 1500); try { _sock.receive(packet); // TODO: keep? IOStatisticCollector.addInfo(packet.getAddress() + ":" + packet.getPort(), packet.getLength(), 0); } catch (SocketTimeoutException e1) { packet = null; } catch (IOException e2) { throw new RuntimeException(e2); } if(logMINOR) Logger.minor(this, "Received packet"); return packet; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/e2294d5e5d87dd3c20fdf4a49cccac98526b4b4b/UdpSocketManager.java/buggy/src/freenet/io/comm/UdpSocketManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
6168,
17049,
6667,
30401,
278,
1435,
288,
202,
202,
698,
288,
1082,
202,
759,
1660,
1221,
518,
2021,
3614,
2130,
959,
1427,
716,
732,
848,
866,
364,
1082,
202,
759,
389,
6348,
1492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6168,
17049,
6667,
30401,
278,
1435,
288,
202,
202,
698,
288,
1082,
202,
759,
1660,
1221,
518,
2021,
3614,
2130,
959,
1427,
716,
732,
848,
866,
364,
1082,
202,
759,
389,
6348,
1492,... |
/* pw.print("SUM("); pw.print(sqlQuery.getDialect().quoteIdentifier(t.getName(), c.getName())); pw.print(") AS "); */ | public String insertIntoCollapsed() { StringWriter sw = new StringWriter(512); PrintWriter pw = new PrintWriter(sw); String prefix = " "; String factTableName = getFactTableName(); SqlQuery sqlQuery = getSqlQuery(); pw.print("INSERT INTO "); pw.print(makeCollapsedAggregateTableName(getFactTableName())); pw.println(" ("); for (Iterator it = collapsedColumnUsages.values().iterator(); it.hasNext(); ) { List list = (List) it.next(); for (Iterator lit = list.iterator(); lit.hasNext(); ) { JdbcSchema.Table.Column.Usage usage = (JdbcSchema.Table.Column.Usage) lit.next(); JdbcSchema.Table.Column c = usage.getColumn(); pw.print(prefix); if (usage.usagePrefix != null) { pw.print(usage.usagePrefix); } pw.print(c.getName()); pw.println(','); } } for (Iterator it = measures.iterator(); it.hasNext(); ) { JdbcSchema.Table.Column.Usage usage = (JdbcSchema.Table.Column.Usage) it.next(); JdbcSchema.Table.Column c = usage.getColumn(); pw.print(prefix); String name = getUsageName(usage); pw.print(name); //pw.print(c.getName()); pw.println(','); } // do fact_count pw.print(prefix); pw.print(getFactCount()); pw.println(")"); pw.println("SELECT"); int dimCnt = 0; for (Iterator it = collapsedColumnUsages.values().iterator(); it.hasNext(); ) { List list = (List) it.next(); for (Iterator lit = list.iterator(); lit.hasNext(); ) { JdbcSchema.Table.Column.Usage usage = (JdbcSchema.Table.Column.Usage) lit.next(); JdbcSchema.Table.Column c = usage.getColumn(); JdbcSchema.Table t = c.getTable(); pw.print(prefix); pw.print(sqlQuery.getDialect().quoteIdentifier(t.getName(), c.getName())); pw.print(" AS "); String n = (usage.usagePrefix == null) ? c.getName() : usage.usagePrefix + c.getName(); pw.print(sqlQuery.getDialect().quoteIdentifier(n)); pw.println(','); } } for (Iterator it = measures.iterator(); it.hasNext(); ) { JdbcSchema.Table.Column.Usage usage = (JdbcSchema.Table.Column.Usage) it.next(); JdbcSchema.Table.Column c = usage.getColumn(); JdbcSchema.Table t = c.getTable(); RolapAggregator agg = usage.getAggregator(); pw.print(prefix); pw.print( agg.getExpression(sqlQuery.getDialect().quoteIdentifier( t.getName(), c.getName())).toUpperCase());/* pw.print("SUM("); pw.print(sqlQuery.getDialect().quoteIdentifier(t.getName(), c.getName())); pw.print(") AS ");*/ pw.print(" AS "); pw.print(sqlQuery.getDialect().quoteIdentifier(c.getName())); pw.println(','); } // do fact_count pw.print(prefix); pw.print("COUNT(*) AS "); pw.println(sqlQuery.getDialect().quoteIdentifier(getFactCount())); pw.println("FROM "); pw.print(prefix); pw.print(sqlQuery.getDialect().quoteIdentifier(factTableName)); pw.print(" "); pw.print(sqlQuery.getDialect().quoteIdentifier(factTableName)); pw.println(','); // add dimension tables dimCnt = 0; for (Iterator it = collapsedColumnUsages.keySet().iterator(); it.hasNext(); ) { RolapStar.Table rt = (RolapStar.Table) it.next(); pw.print(prefix); pw.print(sqlQuery.getDialect().quoteIdentifier(rt.getAlias())); pw.print(" AS "); pw.print(sqlQuery.getDialect().quoteIdentifier(rt.getAlias())); // walk up tables if (rt.getParentTable() != null) { while (rt.getParentTable().getParentTable() != null) { rt = rt.getParentTable(); pw.println(','); pw.print(prefix); pw.print(sqlQuery.getDialect().quoteIdentifier(rt.getAlias())); pw.print(" AS "); pw.print(sqlQuery.getDialect().quoteIdentifier(rt.getAlias())); } } if (it.hasNext()) { pw.println(','); } else { pw.println(); } } pw.println("WHERE "); for (Iterator it = collapsedColumnUsages.keySet().iterator(); it.hasNext(); ) { RolapStar.Table rt = (RolapStar.Table) it.next(); RolapStar.Condition cond = rt.getCondition(); if (cond == null) { continue; } pw.print(prefix); pw.print(cond.toString(sqlQuery)); if (rt.getParentTable() != null) { while (rt.getParentTable().getParentTable() != null) { rt = rt.getParentTable(); cond = rt.getCondition(); pw.println(" and"); pw.print(prefix); pw.print(cond.toString(sqlQuery)); } } if (it.hasNext()) { pw.println(" and"); } else { pw.println(); } } pw.println("GROUP BY "); dimCnt = 0; for (Iterator it = collapsedColumnUsages.values().iterator(); it.hasNext(); ) { List list = (List) it.next(); for (Iterator lit = list.iterator(); lit.hasNext(); ) { JdbcSchema.Table.Column.Usage usage = (JdbcSchema.Table.Column.Usage) lit.next(); JdbcSchema.Table.Column c = usage.getColumn(); JdbcSchema.Table t = c.getTable(); pw.print(prefix); pw.print(sqlQuery.getDialect().quoteIdentifier(t.getName(), c.getName())); if (it.hasNext()) { pw.println(','); } } } pw.println(';'); return sw.toString(); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/346324a9a90eb442dde3b9ddfa063208ff332011/AggGen.java/buggy/src/main/mondrian/rolap/aggmatcher/AggGen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2243,
5952,
28084,
1435,
288,
3639,
17436,
1352,
273,
394,
17436,
12,
13757,
1769,
3639,
14071,
8772,
273,
394,
14071,
12,
5328,
1769,
3639,
514,
1633,
273,
315,
565,
13636,
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,
1071,
514,
2243,
5952,
28084,
1435,
288,
3639,
17436,
1352,
273,
394,
17436,
12,
13757,
1769,
3639,
14071,
8772,
273,
394,
14071,
12,
5328,
1769,
3639,
514,
1633,
273,
315,
565,
13636,
3639... | |
this.input = input; | this.input = new BufferedReader(input); | public void setReader(Reader reader) throws CDKException { this.input = input; } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/Gaussian03Reader.java/buggy/src/org/openscience/cdk/io/Gaussian03Reader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2514,
12,
2514,
2949,
13,
1216,
24570,
288,
3639,
333,
18,
2630,
273,
394,
10633,
12,
2630,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2514,
12,
2514,
2949,
13,
1216,
24570,
288,
3639,
333,
18,
2630,
273,
394,
10633,
12,
2630,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (WebBrowserUtil.isDefaultBrowserMozilla()) { | if (!WebBrowserUtil.isDefaultBrowserMozilla()) { if (isWindows) { InitUtility.appendEnv(libPathEnv, binaryPath + File.separator + "ielib"); } } else { | public void initBrowserNative() throws JdicInitException { // The Browser component is used. // If the Browser specific native file setting was already initialized, // just return. if (isBrowserNativeInitialized) { return; } try { // Pre-append the JDIC binary path to PATH(on Windows) or // LD_LIBRARY_PATH(on Unix). InitUtility.appendEnv(libPathEnv, binaryPath); String browserPath = WebBrowserUtil.getBrowserPath(); if (browserPath == null) { throw new JdicInitException( "Can't locate the native browser path!"); } // Mozilla is the default/embedded browser. if (WebBrowserUtil.isDefaultBrowserMozilla()) { // Use the user defined env variable or the mozilla binary // path as the default MOZILLA_FIVE_HOME value. String envMFH = InitUtility.getEnv("MOZILLA_FIVE_HOME"); if (envMFH == null) { File browserFile = new File(browserPath); if (browserFile.isDirectory()) { envMFH = browserFile.getCanonicalPath(); } else { envMFH = browserFile.getCanonicalFile().getParent(); } } if (!isWindows) { // On Unix, add the binary path to PATH. InitUtility.appendEnv("PATH", binaryPath); // When running on webstart, the browser binary will lose // "x" permission after extracted from .jar file. String browserBinary = WebBrowser.getBrowserBinary(); Runtime.getRuntime().exec("chmod a+x "+ binaryPath + File.separator + browserBinary); } else { // Mozilla on Windows, reset MOZILLA_FIVE_HOME to the GRE // directory path: // [Common Files]\mozilla.org\GRE\1.x_BUILDID, // if Mozilla installs from a .exe package. // String xpcomPath = envMFH + File.separator + "xpcom.dll"; if (!(new File(xpcomPath).isFile())) { // Mozilla installs from a .exe package. Check the // installed GRE directory. String mozGreHome = WebBrowserUtil.getMozillaGreHome(); if (mozGreHome == null) { throw new JdicInitException( "Can't locate the GRE directory of the " + "installed Mozilla binary: " + envMFH); } envMFH = mozGreHome; } } InitUtility.appendEnv("MOZILLA_FIVE_HOME", envMFH); InitUtility.appendEnv(libPathEnv, envMFH); } // end - Mozilla is the default/embedded browser. } catch (Throwable e) { throw new JdicInitException(e); } isBrowserNativeInitialized = true; } | 4176 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4176/af7845596b0ee4c6f9b61915b6b5b62b6c2f96f6/JdicManager.java/buggy/src/jdic/src/share/classes/org/jdesktop/jdic/init/JdicManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
9132,
9220,
1435,
1216,
804,
15859,
2570,
503,
288,
3639,
368,
1021,
15408,
1794,
353,
1399,
18,
3639,
368,
971,
326,
15408,
2923,
6448,
585,
3637,
1703,
1818,
6454,
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,
918,
1208,
9132,
9220,
1435,
1216,
804,
15859,
2570,
503,
288,
3639,
368,
1021,
15408,
1794,
353,
1399,
18,
3639,
368,
971,
326,
15408,
2923,
6448,
585,
3637,
1703,
1818,
6454,
16,
... |
public void visitLSUB(LSUB obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); } | public void visitLSUB(LSUB obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); } | public void visitLSUB(LSUB obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/BetterTypeFrameModelingVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterTypeFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
3045,
3457,
12,
3045,
3457,
1081,
13,
6862,
202,
95,
7865,
2624,
12,
2603,
1769,
1817,
620,
12,
723,
3305,
18,
588,
3708,
559,
10663,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
3045,
3457,
12,
3045,
3457,
1081,
13,
6862,
202,
95,
7865,
2624,
12,
2603,
1769,
1817,
620,
12,
723,
3305,
18,
588,
3708,
559,
10663,
289,
2,
-100,
-100,
-100,
-100... |
JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT)); | JPanel p = new JPanel(new BorderLayout()); JCheckBox cb = new JCheckBox("Show Whitespace Text Nodes"); cb.setSelected(showWhitespace); cb.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent ie) { setShowWhitespace (ie.getStateChange() == ItemEvent.SELECTED); } }); p.add(cb, BorderLayout.WEST); | public DOMViewer() { super(resources.getString("Frame.title")); setSize(resources.getInteger("Frame.width"), resources.getInteger("Frame.height")); listeners.put("CloseButtonAction", new CloseButtonAction()); getContentPane().add(panel); JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT)); ButtonFactory bf = new ButtonFactory(bundle, this); p.add(bf.createJButton("CloseButton")); getContentPane().add("South", p); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/ff8a6091b8643e1ca5f8248aab90ed58bb698651/DOMViewer.java/clean/sources/org/apache/batik/util/gui/DOMViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4703,
18415,
1435,
288,
202,
9565,
12,
4683,
18,
588,
780,
2932,
3219,
18,
2649,
7923,
1769,
202,
542,
1225,
12,
4683,
18,
588,
4522,
2932,
3219,
18,
2819,
6,
3631,
202,
202,
4683... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4703,
18415,
1435,
288,
202,
9565,
12,
4683,
18,
588,
780,
2932,
3219,
18,
2649,
7923,
1769,
202,
542,
1225,
12,
4683,
18,
588,
4522,
2932,
3219,
18,
2819,
6,
3631,
202,
202,
4683... |
GraphModelConnection conn = (GraphModelConnection) i.next(); GraphicalEditPart part = (GraphicalEditPart) conn.getEditPart(); | IGraphModelConnection conn = (IGraphModelConnection) i.next(); GraphicalEditPart part = (GraphicalEditPart) getViewer().getEditPartRegistry().get(conn); | public void filterConnections(NestedGraphModelNode node, boolean filter) { List connections = node.getGraphModel().getConnections(); for (Iterator i = connections.iterator(); i.hasNext();) { GraphModelConnection conn = (GraphModelConnection) i.next(); GraphicalEditPart part = (GraphicalEditPart) conn.getEditPart(); if (part != null) { if (!filter) { part.getFigure().setVisible(true); continue; } NestedGraphModelNode source = (NestedGraphModelNode) conn.getSource(); NestedGraphModelNode dest = (NestedGraphModelNode) conn.getDestination(); int sourceRel = node.getRelationshipBetweenNodes(source); int destRel = node.getRelationshipBetweenNodes(dest); boolean visible = ( ((sourceRel == NestedGraphModelNode.ANCESTOR) || (sourceRel == NestedGraphModelNode.SAME_NODE)) && ((destRel == NestedGraphModelNode.ANCESTOR) || (destRel == NestedGraphModelNode.SAME_NODE)) ); part.getFigure().setVisible(visible); } } } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/1aa9d8e4021b81d1278aaf3ff0dc441a0f195829/NestedGraphEditPart.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/nestedgraphviewer/parts/NestedGraphEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1034,
9314,
12,
8649,
4137,
1488,
907,
756,
16,
1250,
1034,
13,
288,
202,
202,
682,
5921,
273,
756,
18,
588,
4137,
1488,
7675,
588,
9314,
5621,
202,
202,
1884,
261,
3198,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1034,
9314,
12,
8649,
4137,
1488,
907,
756,
16,
1250,
1034,
13,
288,
202,
202,
682,
5921,
273,
756,
18,
588,
4137,
1488,
7675,
588,
9314,
5621,
202,
202,
1884,
261,
3198,... |
return new Node(Token.FALSE); | return left; | Node createBinary(int nodeType, Node left, Node right) { switch (nodeType) { case Token.ADD: // numerical addition and string concatenation if (left.type == Token.STRING) { String s2; if (right.type == Token.STRING) { s2 = right.getString(); } else if (right.type == Token.NUMBER) { s2 = ScriptRuntime.numberToString(right.getDouble(), 10); } else { break; } String s1 = left.getString(); left.setString(s1.concat(s2)); return left; } else if (left.type == Token.NUMBER) { if (right.type == Token.NUMBER) { left.setDouble(left.getDouble() + right.getDouble()); return left; } else if (right.type == Token.STRING) { String s1, s2; s1 = ScriptRuntime.numberToString(left.getDouble(), 10); s2 = right.getString(); right.setString(s1.concat(s2)); return right; } } // can't do anything if we don't know both types - since // 0 + object is supposed to call toString on the object and do // string concantenation rather than addition break; case Token.SUB: // numerical subtraction if (left.type == Token.NUMBER) { double ld = left.getDouble(); if (right.type == Token.NUMBER) { //both numbers left.setDouble(ld - right.getDouble()); return left; } else if (ld == 0.0) { // first 0: 0-x -> -x return new Node(Token.NEG, right); } } else if (right.type == Token.NUMBER) { if (right.getDouble() == 0.0) { //second 0: x - 0 -> +x // can not make simply x because x - 0 must be number return new Node(Token.POS, left); } } break; case Token.MUL: // numerical multiplication if (left.type == Token.NUMBER) { double ld = left.getDouble(); if (right.type == Token.NUMBER) { //both numbers left.setDouble(ld * right.getDouble()); return left; } else if (ld == 1.0) { // first 1: 1 * x -> +x return new Node(Token.POS, right); } } else if (right.type == Token.NUMBER) { if (right.getDouble() == 1.0) { //second 1: x * 1 -> +x // can not make simply x because x - 0 must be number return new Node(Token.POS, left); } } // can't do x*0: Infinity * 0 gives NaN, not 0 break; case Token.DIV: // number division if (right.type == Token.NUMBER) { double rd = right.getDouble(); if (left.type == Token.NUMBER) { // both constants -- just divide, trust Java to handle x/0 left.setDouble(left.getDouble() / rd); return left; } else if (rd == 1.0) { // second 1: x/1 -> +x // not simply x to force number convertion return new Node(Token.POS, left); } } break; case Token.AND: { int leftStatus = isAlwaysDefinedBoolean(left); if (leftStatus == ALWAYS_FALSE_BOOLEAN) { // if the first one is false, replace with FALSE return new Node(Token.FALSE); } else if (leftStatus == ALWAYS_TRUE_BOOLEAN) { // if first is true, set to second return right; } int rightStatus = isAlwaysDefinedBoolean(right); if (rightStatus == ALWAYS_FALSE_BOOLEAN) { // if the second one is false, replace with FALSE if (!hasSideEffects(left)) { return new Node(Token.FALSE); } } else if (rightStatus == ALWAYS_TRUE_BOOLEAN) { // if second is true, set to first return left; } break; } case Token.OR: { int leftStatus = isAlwaysDefinedBoolean(left); if (leftStatus == ALWAYS_TRUE_BOOLEAN) { // if the first one is true, replace with TRUE return new Node(Token.TRUE); } else if (leftStatus == ALWAYS_FALSE_BOOLEAN) { // if first is false, set to second return right; } int rightStatus = isAlwaysDefinedBoolean(right); if (rightStatus == ALWAYS_TRUE_BOOLEAN) { // if the second one is true, replace with TRUE if (!hasSideEffects(left)) { return new Node(Token.TRUE); } } else if (rightStatus == ALWAYS_FALSE_BOOLEAN) { // if second is false, set to first return left; } break; } } return new Node(nodeType, left, right); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/c60f7529c444e06ec5b1196e72f59cac239b16fe/IRFactory.java/buggy/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
752,
5905,
12,
474,
9507,
16,
2029,
2002,
16,
2029,
2145,
13,
565,
288,
3639,
1620,
261,
2159,
559,
13,
288,
1850,
648,
3155,
18,
8355,
30,
5411,
368,
17409,
2719,
471,
533,
26833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
752,
5905,
12,
474,
9507,
16,
2029,
2002,
16,
2029,
2145,
13,
565,
288,
3639,
1620,
261,
2159,
559,
13,
288,
1850,
648,
3155,
18,
8355,
30,
5411,
368,
17409,
2719,
471,
533,
26833... |
public CommonActionProviderDescriptor(IConfigurationElement aConfigElement, IConfigurationElement anEnablementExpression, String anOverrideId, boolean nestedUnderNavigatorContent) { | public CommonActionProviderDescriptor(IConfigurationElement aConfigElement) { | public CommonActionProviderDescriptor(IConfigurationElement aConfigElement, IConfigurationElement anEnablementExpression, String anOverrideId, boolean nestedUnderNavigatorContent) { super(); Assert.isTrue(TAG_ACTION_PROVIDER.equals(aConfigElement.getName())); Assert.isTrue(TAG_POSSIBLE_CHILDREN.equals(anEnablementExpression .getName()) || TAG_ENABLEMENT.equals(anEnablementExpression.getName())); configurationElement = aConfigElement; enablementElement = anEnablementExpression; visibilityId = anOverrideId; isNested = nestedUnderNavigatorContent; init(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/CommonActionProviderDescriptor.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/CommonActionProviderDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5658,
1803,
2249,
3187,
12,
45,
1750,
1046,
279,
809,
1046,
16,
1082,
202,
45,
1750,
1046,
392,
8317,
475,
2300,
16,
514,
392,
6618,
548,
16,
1082,
202,
6494,
4764,
14655,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5658,
1803,
2249,
3187,
12,
45,
1750,
1046,
279,
809,
1046,
16,
1082,
202,
45,
1750,
1046,
392,
8317,
475,
2300,
16,
514,
392,
6618,
548,
16,
1082,
202,
6494,
4764,
14655,
228... |
Message reject = DMT.createFNPRoutedRejected(id); | Message reject = DMT.createFNPRoutedRejected(id, htl); | private boolean forward(Message m, long id, NodePeer pn, short htl, double target, RoutedContext ctx) { Logger.minor(this, "Should forward"); // Forward m = preForward(m, htl); NodePeer next = node.peers.closerPeer(pn, ctx.routedTo, target); Logger.minor(this, "Next: "+next+" message: "+m); if(next != null) { Logger.minor(this, "Forwarding "+m.getSpec()+" to "+next.getPeer().getPort()); ctx.addSent(next); next.sendAsync(m); } else { Logger.minor(this, "Reached dead end for "+m.getSpec()+" on "+node.portNumber); // Reached a dead end... Message reject = DMT.createFNPRoutedRejected(id); if(pn != null) pn.sendAsync(reject); } return true; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/67ffc74c653c146c3327643dba419ef696af844a/NodeDispatcher.java/clean/src/freenet/node/NodeDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
5104,
12,
1079,
312,
16,
1525,
612,
16,
2029,
6813,
11059,
16,
3025,
366,
6172,
16,
1645,
1018,
16,
7271,
329,
1042,
1103,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
5104,
12,
1079,
312,
16,
1525,
612,
16,
2029,
6813,
11059,
16,
3025,
366,
6172,
16,
1645,
1018,
16,
7271,
329,
1042,
1103,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,... |
if (jj_scan_token(LBRACKET)) return true; if (jj_scan_token(RBRACKET)) return true; | if (jj_scan_token(PLUS)) return true; | final private boolean jj_3R_315() { if (jj_scan_token(LBRACKET)) return true; if (jj_scan_token(RBRACKET)) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d443fc629d3f9538d4772fc74e3c6afa936e3ced/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23,
3600,
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,
23,
3600,
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,... |
runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, null)); | runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, runtime.getNil())); | public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freeze(); runtime.defineGlobalConstant("RUBY_VERSION", version); runtime.defineGlobalConstant("RUBY_RELEASE_DATE", release); runtime.defineGlobalConstant("RUBY_PLATFORM", platform); runtime.defineGlobalConstant("VERSION", version); runtime.defineGlobalConstant("RELEASE_DATE", release); runtime.defineGlobalConstant("PLATFORM", platform); // FIXME: ENV Not really a RubyHash (but close) // FIXME: ENV Should not copy system properties, but should reference them instead HashMap envs = new HashMap(); envs.put(runtime.newString("HOME"), runtime.newString(System.getProperty("user.home"))); runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, null)); runtime.defineVariable(new StringGlobalVariable(runtime, "$KCODE", runtime.newString("UTF8"))); runtime.defineVariable(new StringGlobalVariable(runtime, "$/", runtime.newString("\n"))); runtime.defineVariable(new StringGlobalVariable(runtime, "$\\", runtime.getNil())); runtime.defineVariable(new StringGlobalVariable(runtime, "$,", runtime.getNil())); runtime.defineVariable(new LineNumberGlobalVariable(runtime, "$.", RubyFixnum.one(runtime))); runtime.defineVariable(new LastlineGlobalVariable(runtime, "$_")); runtime.defineVariable(new ErrorInfoGlobalVariable(runtime, "$!", runtime.getNil())); runtime.defineVariable(new SafeGlobalVariable(runtime, "$SAFE")); runtime.defineVariable(new BacktraceGlobalVariable(runtime, "$@")); IRubyObject stdin = RubyIO.fdOpen(runtime, RubyIO.STDIN); IRubyObject stdout = RubyIO.fdOpen(runtime, RubyIO.STDOUT); IRubyObject stderr = RubyIO.fdOpen(runtime, RubyIO.STDERR); runtime.defineVariable(new InputGlobalVariable(runtime, "$stdin", stdin)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$stdout", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$stderr", stderr)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$>", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$defout", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$deferr", stderr)); runtime.defineGlobalConstant("STDIN", stdin); runtime.defineGlobalConstant("STDOUT", stdout); runtime.defineGlobalConstant("STDERR", stderr); runtime.defineVariable(new LoadedFeatures(runtime, "$\"")); runtime.defineVariable(new LoadPath(runtime, "$:")); runtime.defineVariable(new LoadPath(runtime, "$-I")); runtime.defineVariable(new LoadPath(runtime, "$LOAD_PATH")); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(runtime); argsFile.initArgsFile(); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/ebc655285fa55c939b42b33be335d9f4b2040047/RubyGlobal.java/buggy/src/org/jruby/RubyGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
752,
19834,
12,
7937,
10340,
3099,
13,
288,
3639,
368,
4049,
1779,
30,
3639,
15908,
10340,
921,
1177,
273,
3099,
18,
2704,
780,
12,
2918,
18,
54,
3457,
61,
67,
5757,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
752,
19834,
12,
7937,
10340,
3099,
13,
288,
3639,
368,
4049,
1779,
30,
3639,
15908,
10340,
921,
1177,
273,
3099,
18,
2704,
780,
12,
2918,
18,
54,
3457,
61,
67,
5757,
293... |
synPredMatched428 = false; | synPredMatched1060 = false; | public final void unaryExpressionNotPlusMinus() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST unaryExpressionNotPlusMinus_AST = null; Token lpb = null; AST lpb_AST = null; Token lp = null; AST lp_AST = null; switch ( LA(1)) { case BNOT: { AST tmp318_AST = null; tmp318_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp318_AST); match(BNOT); nls(); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } case LNOT: { AST tmp319_AST = null; tmp319_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp319_AST); match(LNOT); nls(); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } case LBRACK: case IDENT: case LPAREN: case LITERAL_super: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: case LCURLY: case LITERAL_this: case STRING_LITERAL: case LITERAL_true: case LITERAL_false: case LITERAL_null: case STRING_CTOR_START: case LITERAL_new: case NUM_INT: case NUM_FLOAT: case NUM_LONG: case NUM_DOUBLE: case NUM_BIG_INT: case NUM_BIG_DECIMAL: { { boolean synPredMatched426 = false; if (((LA(1)==LPAREN) && ((LA(2) >= LITERAL_void && LA(2) <= LITERAL_any)) && (LA(3)==LBRACK||LA(3)==RPAREN))) { int _m426 = mark(); synPredMatched426 = true; inputState.guessing++; try { { match(LPAREN); builtInTypeSpec(true); match(RPAREN); unaryExpression(); } } catch (RecognitionException pe) { synPredMatched426 = false; } rewind(_m426); inputState.guessing--; } if ( synPredMatched426 ) { lpb = LT(1); lpb_AST = astFactory.create(lpb); astFactory.makeASTRoot(currentAST, lpb_AST); match(LPAREN); if ( inputState.guessing==0 ) { lpb_AST.setType(TYPECAST); } builtInTypeSpec(true); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); } else { boolean synPredMatched428 = false; if (((LA(1)==LPAREN) && (LA(2)==IDENT) && (_tokenSet_126.member(LA(3))))) { int _m428 = mark(); synPredMatched428 = true; inputState.guessing++; try { { match(LPAREN); classTypeSpec(true); match(RPAREN); unaryExpressionNotPlusMinus(); } } catch (RecognitionException pe) { synPredMatched428 = false; } rewind(_m428); inputState.guessing--; } if ( synPredMatched428 ) { lp = LT(1); lp_AST = astFactory.create(lp); astFactory.makeASTRoot(currentAST, lp_AST); match(LPAREN); if ( inputState.guessing==0 ) { lp_AST.setType(TYPECAST); } classTypeSpec(true); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); unaryExpressionNotPlusMinus(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_127.member(LA(1))) && (_tokenSet_128.member(LA(2))) && (_tokenSet_8.member(LA(3)))) { postfixExpression(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } } unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = unaryExpressionNotPlusMinus_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/0116bf864ced52bd188b9d77a4ac03fe93680645/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
2300,
1248,
13207,
18434,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
2300,
1248,
13207,
18434,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154... |
_length = -1; _state = STATE_HEADER_VALUE; | _length=-1; _state=STATE_HEADER_VALUE; | public boolean parseNext() throws IOException { if (_buffer==null) { _header = _buffers.getBuffer(_headerBufferSize); _buffer = _header; _tok0 = new View(_header); _tok1 = new View(_header); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); } if (_state == STATE_END) throw new IllegalStateException("STATE_END"); if (_state == STATE_CONTENT && _contentPosition == _contentLength) { _state = STATE_END; _handler.messageComplete(_contentPosition); return false; } int length=_buffer.length(); boolean fill_called=false; // Fill buffer if we can if (length == 0) { int filled = -1; if (_content!=null && _buffer!=_content) { _buffer=_content; filled=_buffer.length(); } if (_buffer.markIndex() == 0 && _buffer.putIndex() == _buffer.capacity()) throw new IOException("FULL"); if (_endp != null && filled<=0) { // Compress buffer if handling _content buffer // TODO check this is not moving data too much if (_buffer == _content) _buffer.compact(); if (_buffer.space() == 0) { throw new IOException("FULL"); } try { filled = _endp.fill(_buffer); fill_called=true; } catch(IOException ioe) { Log.debug(ioe); reset(true); throw new IOException("EOF"); } } if (filled < 0 && _state == STATE_EOF_CONTENT) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } if (filled < 0) { reset(true); throw new IOException("EOF"); } length=_buffer.length(); } // EventHandler header byte ch; byte[] array = _buffer.array(); Buffer cached = null; while (_state < STATE_END && length-->0) { ch = _buffer.get(); if (_eol == CARRIAGE_RETURN && ch == LINE_FEED) { _eol = LINE_FEED; continue; } _eol = 0; switch (_state) { case STATE_START: _contentLength = UNKNOWN_CONTENT; if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD0; } break; case STATE_FIELD0: if (ch == SPACE) { _tok0.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE1; continue; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_SPACE1: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD1; _response = ch >= '1' && ch <= '5'; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_FIELD1: if (ch == SPACE) { _tok1.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE2; continue; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer .sliceFromMark(), null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_SPACE2: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD2; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_FIELD2: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_response) _handler.startResponse(HttpVersions.CACHE.lookup(_tok0), BufferUtil .toInt(_tok1), _buffer.sliceFromMark()); else _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, HttpVersions.CACHE.lookup(_buffer.sliceFromMark())); _eol = ch; _state = STATE_HEADER; _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; return fill_called; } break; case STATE_HEADER: if (ch == COLON || ch == SPACE || ch == TAB) { // header value without name - continuation? _length = -1; _state = STATE_HEADER_VALUE; } else { // handler last header if any if (cached!=null || _tok0.length() > 0 || _tok1.length() > 0 || _multiLineValue != null) { Buffer header = cached!=null?cached:HttpHeaders.CACHE.lookup(_tok0); cached=null; Buffer value = _multiLineValue == null ? (Buffer) _tok1 : (Buffer) new ByteArrayBuffer(_multiLineValue); int ho = HttpHeaders.CACHE.getOrdinal(header); if (ho >= 0) { int vo = -1; switch (ho) { case HttpHeaders.CONTENT_LENGTH_ORDINAL: if (_contentLength != CHUNKED_CONTENT) { _contentLength = BufferUtil.toInt(value); if (_contentLength <= 0) _contentLength = HttpParser.NO_CONTENT; } break; case HttpHeaders.CONNECTION_ORDINAL: // TODO comma list of connections !!! value = HttpHeaderValues.CACHE.lookup(value); break; case HttpHeaders.TRANSFER_ENCODING_ORDINAL: value = HttpHeaderValues.CACHE.lookup(value); vo=HttpHeaderValues.CACHE.getOrdinal(value); if (HttpHeaderValues.CHUNKED_ORDINAL == vo) _contentLength = CHUNKED_CONTENT; else { // TODO avoid string conversion here String c = value.toString(); if (c.endsWith(HttpHeaderValues.CHUNKED)) _contentLength = CHUNKED_CONTENT; else if (c.indexOf(HttpHeaderValues.CHUNKED) >= 0) throw new HttpException(400,null); } break; case HttpHeaders.CONTENT_TYPE_ORDINAL: _hasContent = true; break; } } _handler.parsedHeader(header, value); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; } // now handle ch if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { // End of header // work out the _content demarcation if (_contentLength == UNKNOWN_CONTENT) { if (_hasContent || _response) _contentLength = EOF_CONTENT; else _contentLength = NO_CONTENT; } _contentPosition = 0; _eol = ch; switch (_contentLength) { case HttpParser.EOF_CONTENT: _state = STATE_EOF_CONTENT; if(_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.CHUNKED_CONTENT: _state = STATE_CHUNKED_CONTENT; if (_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.NO_CONTENT: _state = STATE_END; _handler.headerComplete(); // May recurse here ! _handler.messageComplete(_contentPosition); break; default: _state = STATE_CONTENT; if(_buffers!=null && _content==null && _buffer==_header && _contentLength>(_header.capacity()-_header.getIndex())) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; } return fill_called; } else { // New header _length = 1; _buffer.mark(); _state = STATE_HEADER_NAME; // try cached name! cached = HttpHeaders.CACHE.getBest(array, _buffer.markIndex(), length+1); if (cached!=null) { _length=cached.length(); _buffer.setGetIndex(_buffer.markIndex()+_length); length=_buffer.length(); } } } break; case STATE_HEADER_NAME: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _eol = ch; _state = STATE_HEADER; } else if (ch == COLON) { if (_length > 0 && cached==null) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _length = -1; _state = STATE_HEADER_VALUE; } else if (ch != SPACE && ch != TAB) { // Drag the mark if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; case STATE_HEADER_VALUE: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) { if (_tok1.length() == 0) _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); else { // Continuation line! // TODO - deal with CR LF and COLON? if (_multiLineValue == null) _multiLineValue = _tok1.toString(); _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); _multiLineValue += " " + _tok1.toString(); } } _eol = ch; _state = STATE_HEADER; } else if (ch != SPACE && ch != TAB) { if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; } } // end of HEADER states loop // Handle _content Buffer chunk; length = _buffer.length(); while (_state > STATE_END && length > 0) { if (_eol == CARRIAGE_RETURN && _buffer.peek() == LINE_FEED) { _eol = _buffer.get(); length = _buffer.length(); continue; } _eol = 0; switch (_state) { case STATE_EOF_CONTENT: chunk = _buffer.get(_buffer.length()); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; case STATE_CONTENT: { int remaining = _contentLength - _contentPosition; if (remaining == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; } case STATE_CHUNKED_CONTENT: { ch = _buffer.peek(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) _eol = _buffer.get(); else if (ch <= SPACE) _buffer.get(); else { _chunkLength = 0; _chunkPosition = 0; _state = STATE_CHUNK_SIZE; } break; } case STATE_CHUNK_SIZE: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } else if (ch <= SPACE || ch == SEMI_COLON) _state = STATE_CHUNK_PARAMS; else if (ch >= '0' && ch <= '9') _chunkLength = _chunkLength * 16 + (ch - '0'); else if (ch >= 'a' && ch <= 'f') _chunkLength = _chunkLength * 16 + (10 + ch - 'a'); else if (ch >= 'A' && ch <= 'F') _chunkLength = _chunkLength * 16 + (10 + ch - 'A'); else throw new IOException("bad chunk char: " + ch); break; } case STATE_CHUNK_PARAMS: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } break; } case STATE_CHUNK: { int remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_CHUNKED_CONTENT; break; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _chunkPosition += chunk.length(); _handler.content(chunk); return fill_called; } } length = _buffer.length(); } return fill_called; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/a90899eaab63c0168ef6437b6555c13e623995b5/HttpParser.java/buggy/modules/jetty/src/main/java/org/mortbay/jetty/HttpParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
38... |
assertEqual(t.toString(), expecting); | assertEquals(t.toString(), expecting); | public void testEscapes() throws Exception { StringTemplateGroup group = new StringTemplateGroup("dummy", "."); String newline = System.getProperty("line.separator"); group.defineTemplate("foo", "$x$ && $it$"); StringTemplate t = new StringTemplate( group, "$A:foo(x=\"dog\\\"\\\"\")$" // $A:foo("dog\"\"")$ ); StringTemplate u = new StringTemplate( group, "$A:foo(x=\"dog\\\"g\")$" // $A:foo(x="dog\"g")$ ); StringTemplate v = new StringTemplate( group, // $A:{$attr:foo(x="\{dog\}\"")$ is cool}$ "$A:{$it:foo(x=\"\\{dog\\}\\\"\")$ is cool}$" ); t.setAttribute("A", "ick"); u.setAttribute("A", "ick"); v.setAttribute("A", "ick"); //System.out.println("t is '"+t.toString()+"'"); //System.out.println("u is '"+u.toString()+"'"); //System.out.println("v is '"+v.toString()+"'"); String expecting = "dog\"\" && ick"; assertEqual(t.toString(), expecting); expecting = "dog\"g && ick"; assertEqual(u.toString(), expecting); expecting = "{dog}\" && ick is cool"; assertEqual(v.toString(), expecting); } | 52527 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52527/158b0f9c5220709dc9d801ee911d1605a906ccaf/TestStringTemplate.java/clean/src/org/antlr/stringtemplate/test/TestStringTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
30092,
1435,
1216,
1185,
288,
202,
202,
780,
2283,
1114,
1041,
273,
9506,
202,
2704,
514,
2283,
1114,
2932,
21050,
3113,
4585,
1769,
202,
202,
780,
9472,
273,
2332,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30092,
1435,
1216,
1185,
288,
202,
202,
780,
2283,
1114,
1041,
273,
9506,
202,
2704,
514,
2283,
1114,
2932,
21050,
3113,
4585,
1769,
202,
202,
780,
9472,
273,
2332,
1... |
throws SQLException { | throws SQLException { | public int insertCronTrigger(Connection conn, CronTrigger trigger) throws SQLException { PreparedStatement ps = null; try { ps = conn.prepareStatement(rtp(INSERT_CRON_TRIGGER)); ps.setString(1, trigger.getName()); ps.setString(2, trigger.getGroup()); ps.setString(3, trigger.getCronExpression()); ps.setString(4, trigger.getTimeZone().getID()); return ps.executeUpdate(); } finally { closeStatement(ps); } } | 15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/StdJDBCDelegate.java/buggy/src/java/org/quartz/impl/jdbcjobstore/StdJDBCDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2243,
18586,
6518,
12,
1952,
1487,
16,
18972,
6518,
3080,
13,
5411,
1216,
6483,
288,
3639,
16913,
4250,
273,
446,
31,
3639,
775,
288,
5411,
4250,
273,
1487,
18,
9366,
3406,
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,
509,
2243,
18586,
6518,
12,
1952,
1487,
16,
18972,
6518,
3080,
13,
5411,
1216,
6483,
288,
3639,
16913,
4250,
273,
446,
31,
3639,
775,
288,
5411,
4250,
273,
1487,
18,
9366,
3406,
12,... |
if ( resend_msg == null ) { log.error( "TOTAL_OLD.handleResendRequest() - could not find the message " + seq + " in the history to resend" ); return; } resend_msg.setDest( requester ); | if(resend_msg == null) { log.error("TOTAL_OLD.handleResendRequest() - could not find the message " + seq + " in the history to resend"); return; } resend_msg.setDest(requester); | private synchronized void handleResendRequest( Message msg, long seq ) { log.error( "TOTAL_OLD.handleRequestMessage() - received resend request for message " + seq ); /* just rebroadcast for now because i can't get the source - this is bad (TODO: fix this) Object requester = msg.makeReply().getSrc(); // Address? of requester - test (debug) /* Object temp_obj = msg.getSrc(); if ( temp_obj instanceof Address ) { Address requester = (Address) temp_obj; } else { log.error( "Error: TOTAL_OLD.handleResendRequest() - could not cast source of message to an Address" ); return; } * / if ( requester == null ) { // don't know who to send this back to log.error( "TOTAL_OLD.handleResendRequest() - do not know who requested this resend request for sequence " + seq ); return; } */ Address requester = null;// log.error( "TOTAL_OLD: got here - 1" ); Message resend_msg = ack_history.getMessage( seq );// log.error( "TOTAL_OLD: got here - 2" ); if ( resend_msg == null ) { // couldn't find this message in the history log.error( "TOTAL_OLD.handleResendRequest() - could not find the message " + seq + " in the history to resend" ); return; } resend_msg.setDest( requester ); // note: do not need to add a TotalHeader because it should already be a // TOTAL_BCAST message // begin debug { Object header = resend_msg.getHeader(getName()); if ( header instanceof TotalHeader ) { //log.error( "TOTAL_OLD: resend msg GOOD (header is TotalHeader) - " + seq ); } else { log.error( "TOTAL_OLD: resend msg BAD (header is NOT a TotalHeader) - " + seq ); } } // // end debug passDown( new Event( Event.MSG, resend_msg ) ); log.error( "TOTAL_OLD.handleResendRequest() - responded to resend request for message " + seq ); } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1640,
607,
409,
691,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
691,
1079,
1435,
300,
5079,
31972,
590,
364,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
607,
409,
691,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
691,
1079,
1435,
300,
5079,
31972,
590,
364,
883... |
else if ( currentDataSetName == newName || ( currentDataSetName != null && currentDataSetName.equals( newName ) ) ) | else if ( currentDataSetName.equals( newName ) ) | private int canChangeDataSet( String newName ) { String currentDataSetName = getDataSetName( ); if ( currentDataSetName == null && !inputElement.columnBindingsIterator( ).hasNext( ) ) { return 0; } else if ( currentDataSetName == newName || ( currentDataSetName != null && currentDataSetName.equals( newName ) ) ) { return 2; } MessageDialog prefDialog = new MessageDialog( UIUtil.getDefaultShell( ), Messages.getString( "dataBinding.title.changeDataSet" ),//$NON-NLS-1$ null, Messages.getString( "dataBinding.message.changeDataSet" ),//$NON-NLS-1$ MessageDialog.INFORMATION, new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL, }, 0 ); return prefDialog.open( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f93286dc6d03bc1b6417b1a9244304ed2d4b7ce9/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
848,
3043,
13676,
12,
514,
13253,
262,
202,
95,
202,
202,
780,
30685,
11924,
273,
4303,
11924,
12,
11272,
202,
202,
430,
261,
30685,
11924,
422,
446,
9506,
202,
10,
10,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
848,
3043,
13676,
12,
514,
13253,
262,
202,
95,
202,
202,
780,
30685,
11924,
273,
4303,
11924,
12,
11272,
202,
202,
430,
261,
30685,
11924,
422,
446,
9506,
202,
10,
10,
... |
throw new SemanticException("The statement property(...) must occur only in the body of a constructor ", | throw new SemanticException("The statement property(...) must occur only in the body of a constructor.", | public Node typeCheck(TypeChecker tc) throws SemanticException { TypeSystem ts = tc.typeSystem(); Context ctx = tc.context(); if (! (ctx.inCode()) || ! (ctx.currentCode() instanceof X10ConstructorInstance)) throw new SemanticException("The statement property(...) must occur only in the body of a constructor ", position()); thisConstructor = (X10ConstructorInstance) ctx.currentCode(); // Now check that the types of each actual argument are subtypes of the corresponding // property for the class reachable through the constructor. // stub for now. return super.typeCheck(tc); } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/AssignPropertyCall_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/AssignPropertyCall_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
618,
1564,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
202,
202,
559,
3163,
3742,
273,
1715,
18,
723,
3163,
5621,
202,
202,
1042,
1103,
273,
1715,
18,
2472,
5621,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
618,
1564,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
202,
202,
559,
3163,
3742,
273,
1715,
18,
723,
3163,
5621,
202,
202,
1042,
1103,
273,
1715,
18,
2472,
5621,
20... |
Node getFirstChild(Node node) { if (node == null) return null; if ( !fEntityReferenceExpansion && node.getNodeType() == Node.ENTITY_REFERENCE_NODE) return null; Node newNode = node.getFirstChild(); if (newNode == null) return getNextSibling(node); int accept = acceptNode(newNode); if (accept == NodeFilter.FILTER_ACCEPT) return newNode; else if (accept == NodeFilter.FILTER_SKIP && newNode.hasChildNodes()) { return getFirstChild(newNode); } else //if (accept == NodeFilter.REJECT_NODE) { return getNextSibling(newNode); } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/904469745efa247c002caac264e0143abda23342/TreeWalkerImpl.java/clean/src/org/apache/xerces/dom/TreeWalkerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2029,
588,
3759,
1763,
12,
50,
369,
20680,
15329,
430,
12,
2159,
631,
2011,
13,
2463,
2011,
31,
430,
12,
5,
74,
1943,
2404,
2966,
12162,
10,
10,
2159,
18,
588,
15101,
1435,
631,
907,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2029,
588,
3759,
1763,
12,
50,
369,
20680,
15329,
430,
12,
2159,
631,
2011,
13,
2463,
2011,
31,
430,
12,
5,
74,
1943,
2404,
2966,
12162,
10,
10,
2159,
18,
588,
15101,
1435,
631,
907,
18,
1... | ||
public abstract boolean getExpandedState(TreePath value0); | public abstract boolean getExpandedState(TreePath path); | public abstract boolean getExpandedState(TreePath value0); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/AbstractLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/AbstractLayoutCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
1250,
336,
17957,
1119,
12,
2471,
743,
460,
20,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
1250,
336,
17957,
1119,
12,
2471,
743,
460,
20,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
private DayProgramFile extractLevel(DayProgramFile prog, int levelIdx) throws PreparationException { DayProgramFile levelProg = new DayProgramFile(); for (int i = 0; i < prog.getProgramFrameCount(); i++) { ProgramFrame frame = prog.getProgramFrameAt(i); ProgramFrame levelFrame = null; if (levelIdx == 0) { // base: All information but description and the image levelFrame = (ProgramFrame) frame.clone(); levelFrame.removeProgramFieldOfType(ProgramFieldType.DESCRIPTION_TYPE); levelFrame.removeProgramFieldOfType(ProgramFieldType.IMAGE_TYPE); } else { ProgramField levelField = null; switch (levelIdx) { case 1: // image16-00: Only the image between 16 pm and midnight if (getProgramStartTime(frame) > (16 * 60)) { levelField = frame.getProgramFieldOfType(ProgramFieldType.IMAGE_TYPE); } break; case 2: // image00-16: Only the image between midnight and 16 pm if (getProgramStartTime(frame) <= (16 * 60)) { levelField = frame.getProgramFieldOfType(ProgramFieldType.IMAGE_TYPE); } break; case 3: // desc16-00: Only the descriptions between 16 pm and midnight if (getProgramStartTime(frame) > (16 * 60)) { levelField = frame.getProgramFieldOfType(ProgramFieldType.DESCRIPTION_TYPE); } break; case 4: // desc00-16: Only the descriptions between midnight and 16 pm if (getProgramStartTime(frame) <= (16 * 60)) { levelField = frame.getProgramFieldOfType(ProgramFieldType.DESCRIPTION_TYPE); } break; } if (levelField != null) { levelFrame = new ProgramFrame(frame.getId()); levelFrame.addProgramField(levelField); } } if (levelFrame != null) { levelProg.addProgramFrame(levelFrame); } } return levelProg; } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/8e98242cdb6be4a4df2f68b00cc3a3bbfa0b2087/PrimaryDataManager.java/buggy/tvbrowser/src/primarydatamanager/PrimaryDataManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
13735,
9459,
812,
2608,
2355,
12,
4245,
9459,
812,
11243,
16,
509,
1801,
4223,
13,
565,
1216,
2962,
20961,
503,
225,
288,
565,
13735,
9459,
812,
1801,
626,
75,
273,
394,
13735,
9459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13735,
9459,
812,
2608,
2355,
12,
4245,
9459,
812,
11243,
16,
509,
1801,
4223,
13,
565,
1216,
2962,
20961,
503,
225,
288,
565,
13735,
9459,
812,
1801,
626,
75,
273,
394,
13735,
9459... | ||
GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.widthHint = convertHorizontalDLUsToPixels(400); descriptionText.setLayoutData(gridData); | GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.widthHint = convertHorizontalDLUsToPixels(400); descriptionText.setLayoutData(gridData); | private void createDescriptionArea(Composite parent) { Label label = new Label(parent, SWT.NONE); label.setText(MarkerMessages.propertiesDialog_description_text); descriptionText = new Text(parent, (SWT.SINGLE | SWT.BORDER)); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.widthHint = convertHorizontalDLUsToPixels(400); descriptionText.setLayoutData(gridData); descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5dfab9acd886f09a1ca9341cff1d740dc40e3c35/DialogMarkerProperties.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... |
if (n < 2) { | if (n <= 2) { | public static double oddsAbove(int n) { if (n < 2) { return 100.0; } else if (n > 12) { return 0; } double[] odds = {100.0, 100.0, 100.0, 97.2, 91.6, 83.3, 72.2, 58.3, 41.6, 27.7, 16.6, 8.3, 5.56, 2.78, 0}; return odds[n]; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2d7f2261ffdd77dbc49aa14c0367b9e3097dc311/Compute.java/buggy/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
14800,
87,
25477,
12,
474,
290,
13,
288,
3639,
309,
261,
82,
1648,
576,
13,
288,
5411,
327,
2130,
18,
20,
31,
3639,
289,
469,
309,
261,
82,
405,
2593,
13,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
14800,
87,
25477,
12,
474,
290,
13,
288,
3639,
309,
261,
82,
1648,
576,
13,
288,
5411,
327,
2130,
18,
20,
31,
3639,
289,
469,
309,
261,
82,
405,
2593,
13,
288,
5411,
... |
public void handleStale(IObservable source) { processStalenessChange(source, true); | public void handleStale(StaleEvent event) { processStalenessChange((IObservable) event.getSource(), true); | public void handleStale(IObservable source) { processStalenessChange(source, true); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/6aecdb31231a8602dbf72944625703c440949c78/StalenessTracker.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/internal/databinding/observable/StalenessTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,
4294,
3745,
1084,
13,
288,
1082,
202,
2567,
510,
287,
15681,
3043,
12,
3168,
16,
638,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,
4294,
3745,
1084,
13,
288,
1082,
202,
2567,
510,
287,
15681,
3043,
12,
3168,
16,
638,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
setErrorMessage(null, message); } | setErrorMessage(null, message); } | public void setErrorMessage(String message) { setErrorMessage(null, message);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/40d04a08a2b629d5d97a4f6e3000928d0e5cb346/StatusLine.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/StatusLine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9967,
1079,
12,
780,
883,
13,
288,
202,
542,
14935,
12,
2011,
16,
883,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9967,
1079,
12,
780,
883,
13,
288,
202,
542,
14935,
12,
2011,
16,
883,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
private void bindNamespacesToElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { fNamespacesScope.increaseDepth(); if (fAttrListHandle != -1 || !fSeenRootElement) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); int attPrefix = attrList.getAttrPrefix(index); if (fStringPool.equalNames(attName, fXMLLang)) { /*** // NOTE: This check is done in the validateElementsAndAttributes // method. fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); /***/ } else if (fStringPool.equalNames(attName, fNamespacesPrefix)) { int uri = fStringPool.addSymbol(attrList.getAttValue(index)); fNamespacesScope.setNamespaceForPrefix(StringPool.EMPTY_STRING, uri); } else { if (attPrefix == fNamespacesPrefix) { int nsPrefix = attrList.getAttrLocalpart(index); int uri = fStringPool.addSymbol(attrList.getAttValue(index)); fNamespacesScope.setNamespaceForPrefix(nsPrefix, uri); if (fValidating && fSchemaValidation) { boolean seeXsi = false; String attrValue = fStringPool.toString(attrList.getAttValue(index)); if (attrValue.equals(SchemaSymbols.URI_XSI)) { fXsiPrefix = nsPrefix; seeXsi = true; } } } } index = attrList.getNextAttr(index); } String location = null; String uri = null; // if validating, walk through the list again to deal with "xsi:...." if (fValidating && fSchemaValidation) { fLocationUriPairs.clear(); if (!fSeenRootElement) { // we are at the root element // and user set property on the parser to include external schemas // if (fExternalSchemas != null && fExternalSchemas.length()!=0) { parseSchemaLocation(fExternalSchemas); } if (fExternalNoNamespaceSchema!=null && fExternalNoNamespaceSchema.length() !=0 ) { fLocationUriPairs.put(fExternalNoNamespaceSchema, ""); //REVISIT: wrong solution (see AndyC note below) if (fNamespacesScope != null) { //bind prefix "" to URI "" in this case fNamespacesScope.setNamespaceForPrefix( fStringPool.addSymbol(""), fStringPool.addSymbol("")); } } parseSchemas(); fLocationUriPairs.clear(); } fXsiTypeAttValue = -1; index = attrList.getFirstAttr(fAttrListHandle); int attName; int attPrefix; while (index != -1) { attName = attrList.getAttrName(index); attPrefix = attrList.getAttrPrefix(index); if (fStringPool.equalNames(attName, fNamespacesPrefix)) { // REVISIT } else { if ( DEBUG_SCHEMA_VALIDATION ) { System.out.println("deal with XSI"); System.out.println("before find XSI: "+fStringPool.toString(attPrefix) +","+fStringPool.toString(fXsiPrefix) ); } if ( fXsiPrefix != -1 && attPrefix == fXsiPrefix ) { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("find XSI: "+fStringPool.toString(attPrefix) +","+fStringPool.toString(attName) ); } int localpart = attrList.getAttrLocalpart(index); if (localpart == fStringPool.addSymbol(SchemaSymbols.XSI_SCHEMALOCACTION)) { parseSchemaLocation(fStringPool.toString(attrList.getAttValue(index))); } else if (localpart == fStringPool.addSymbol(SchemaSymbols.XSI_NONAMESPACESCHEMALOCACTION)) { fLocationUriPairs.put(fStringPool.toString(attrList.getAttValue(index)), ""); /***/ // NOTE: This is the *wrong* solution to the problem // of finding the grammar associated to elements // when the grammar does *not* have a target // namespace!!! -Ac if (fNamespacesScope != null) { //bind prefix "" to URI "" in this case fNamespacesScope.setNamespaceForPrefix( fStringPool.addSymbol(""), fStringPool.addSymbol("")); } /***/ } else if ( localpart == fStringPool.addSymbol(SchemaSymbols.XSI_TYPE) ) { fXsiTypeAttValue = attrList.getAttValue(index); } else if ( localpart == fStringPool.addSymbol(SchemaSymbols.ATT_NIL) ) { fNil = (fStringPool.toString(attrList.getAttValue(index)).equals("true")) ? true: false; } // REVISIT: should we break here? //break; } } index = attrList.getNextAttr(index); } parseSchemas (); } } // bind element to URI int prefix = element.prefix != -1 ? element.prefix : 0; int uri = fNamespacesScope.getNamespaceForPrefix(prefix); if (element.prefix != -1 || uri != StringPool.EMPTY_STRING) { element.uri = uri; if (element.uri == StringPool.EMPTY_STRING) { Object[] args = { fStringPool.toString(element.prefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); if (!fStringPool.equalNames(attName, fNamespacesPrefix)) { int attPrefix = attrList.getAttrPrefix(index); if (attPrefix != fNamespacesPrefix) { if (attPrefix != -1 ) { int attrUri = fNamespacesScope.getNamespaceForPrefix(attPrefix); if (attrUri == -1) { Object[] args = { fStringPool.toString(attPrefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } attrList.setAttrURI(index, attrUri); } } } index = attrList.getNextAttr(index); } } } // bindNamespacesToElementAndAttributes(QName,XMLAttrList) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/23bc37847e0e3642384699c8b863860647f11658/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1993,
13180,
774,
1046,
1876,
2498,
12,
13688,
930,
16,
4766,
5397,
3167,
3843,
682,
1604,
682,
13,
282,
1216,
1185,
288,
1377,
284,
13180,
3876,
18,
267,
11908,
6148,
5621,
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,
565,
3238,
918,
1993,
13180,
774,
1046,
1876,
2498,
12,
13688,
930,
16,
4766,
5397,
3167,
3843,
682,
1604,
682,
13,
282,
1216,
1185,
288,
1377,
284,
13180,
3876,
18,
267,
11908,
6148,
5621,
13... | ||
protected ImageDescriptor getBaseImage(IResource resource) { IProject project = (IProject) resource; boolean isOpen = project.isOpen(); String baseKey = isOpen ? IDE.SharedImages.IMG_OBJ_PROJECT : IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED; if (isOpen) { try { String[] natureIds = project.getDescription().getNatureIds(); for (int i = 0; i < natureIds.length; ++i) { // Have to use a cache because OverlayIcon does not define its own equality criteria, // so WorkbenchLabelProvider would always create a new image otherwise. String imageKey = natureIds[i]; ImageDescriptor overlayImage = (ImageDescriptor) imageCache.get(imageKey); if (overlayImage != null) { return overlayImage; } ImageDescriptor natureImage = IDEWorkbenchPlugin.getDefault().getProjectImageRegistry().getNatureImage(natureIds[i]); if (natureImage != null) { // @issue move IDE specific images ImageDescriptor baseImage = IDEInternalWorkbenchImages.getImageDescriptor(baseKey); // @issue ref to internal generic workbench class overlayImage = new OverlayIcon(baseImage, new ImageDescriptor[][] {{ natureImage }}, new Point(16, 16)); imageCache.put(imageKey, overlayImage); return overlayImage; } } } catch (CoreException e) { } } return IDEInternalWorkbenchImages.getImageDescriptor(baseKey);} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0e914e33b925bd58fd9aa38ff0cc40549e2e5f3c/WorkbenchProject.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/model/WorkbenchProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
2040,
3187,
588,
2171,
2040,
12,
45,
607,
477,
2750,
281,
552,
15329,
202,
45,
4109,
4406,
28657,
45,
4109,
13,
3146,
31,
202,
6494,
291,
3678,
33,
4406,
18,
291,
3678,
5621,
202,
780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
2040,
3187,
588,
2171,
2040,
12,
45,
607,
477,
2750,
281,
552,
15329,
202,
45,
4109,
4406,
28657,
45,
4109,
13,
3146,
31,
202,
6494,
291,
3678,
33,
4406,
18,
291,
3678,
5621,
202,
780,... | ||
void setAction(IAction action) { | private void setAction(IAction action) { | void setAction(IAction action) { if (action == gotoAction) return; if (gotoAction != null) gotoAction.removePropertyChangeListener(this); gotoAction= action; if (gotoAction != null) { gotoAction.addPropertyChangeListener(this); String tooltip= gotoAction.getToolTipText(); if (tooltip != null) setToolTipText(tooltip); } else { setToolTipText(text); } setLinkEnable(action != null && action.isEnabled()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/28e4a5fca903401353ae41f42638fce8be5f1ef5/NewProgressViewer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
22517,
12,
45,
1803,
1301,
13,
288,
1082,
202,
430,
261,
1128,
422,
2897,
1803,
13,
9506,
202,
2463,
31,
1082,
202,
430,
261,
75,
6302,
1803,
480,
446,
13,
9506,
202,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
22517,
12,
45,
1803,
1301,
13,
288,
1082,
202,
430,
261,
1128,
422,
2897,
1803,
13,
9506,
202,
2463,
31,
1082,
202,
430,
261,
75,
6302,
1803,
480,
446,
13,
9506,
202,
75,
... |
public void visitIUSHR(IUSHR obj) { consumeStack(obj); pushValue(Type.INT); } | public void visitIUSHR(IUSHR obj) { consumeStack(obj); pushValue(Type.INT); } | public void visitIUSHR(IUSHR obj) { consumeStack(obj); pushValue(Type.INT); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/TypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/TypeFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
45,
57,
2664,
54,
12,
45,
57,
2664,
54,
1081,
13,
9506,
202,
95,
7865,
2624,
12,
2603,
1769,
1817,
620,
12,
559,
18,
3217,
1769,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
45,
57,
2664,
54,
12,
45,
57,
2664,
54,
1081,
13,
9506,
202,
95,
7865,
2624,
12,
2603,
1769,
1817,
620,
12,
559,
18,
3217,
1769,
289,
2,
-100,
-100,
-100,
-100,
... |
System.out.println("Ratio: " + ratio); | public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); if(ratio < 1) { int [] loadColor = new int[getWidth()]; int [] cacheColor = new int[getWidth()]; for(int i = 0;i < loadColor.length;i++) { loadColor[i] = -1; cacheColor[i] = -1; } //find how many entries of the cache are handled per pixel of indicator int perPixel; double integers = 2; double dPerPixel = ratio * integers; System.out.println("Ratio: " + ratio); while(dPerPixel < 1) { integers++; dPerPixel = ratio * integers; } Double temp = new Double(integers); perPixel = temp.intValue(); System.out.println("PerPixel: " + perPixel); int colorAmount = 255 / perPixel; System.out.println("ColorAmount: " + colorAmount); for(int i = 0;i<loadList.length;i++) { int index = translate(loadList[i]); if (loadColor[index] == -1) loadColor[index] = 0; loadColor[index] = loadColor[index] + colorAmount; if (loadColor[index] > 255) { System.out.println("RED: " + loadColor[index]); loadColor[index] = 255; } } for(int i = 0;i<cache.length;i++) { int index = translate(cache[i]); if (cacheColor[index] == -1) cacheColor[index] = 0; cacheColor[index] = cacheColor[index] + colorAmount; if (cacheColor[index] > 255) { System.out.println("BLUE: " + cacheColor[index]); cacheColor[index] = 255; } } for(int i = 0;i < getWidth();i++) { if(loadColor[i] != -1 || cacheColor[i] != -1) { if(loadColor[i] == -1) loadColor[i] = 0; if(cacheColor[i] == -1) cacheColor[i] = 0; g.setColor(new Color(loadColor[i],0,cacheColor[i])); g.drawLine(i,1,i,COMPONENT_HEIGHT - 2); } else continue; } } else { int prevLoad = -1; int startLoad = -1; g.setColor(Color.red); for(int i = 0;i<loadList.length;i++) { int toLoad = loadList[i]; if(startLoad == -1) { startLoad = toLoad; prevLoad = toLoad; } else if(toLoad == prevLoad + 1 && startLoad != -1 && i != loadList.length - 1) { prevLoad = toLoad; } else { prevLoad = prevLoad + 1; int x = translate(startLoad); int wid = translate(prevLoad) - x; g.fillRect(x,1,wid,COMPONENT_HEIGHT - 2); startLoad = -1; } } prevLoad = -1; startLoad = -1; g.setColor(Color.blue); for(int i = 0;i<cache.length;i++) { int toLoad = cache[i]; if(startLoad == -1) { startLoad = toLoad; prevLoad = toLoad; } else if(toLoad == prevLoad + 1 && startLoad != -1 && i != cache.length - 1) { prevLoad = toLoad; } else { prevLoad = prevLoad + 1; int x = translate(startLoad); int wid = translate(prevLoad) - x; g.fillRect(x,1,wid,COMPONENT_HEIGHT - 2); startLoad = -1; } } } } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/10b7736cc57ec6d68a6821b26159769bff1e9cb4/CacheIndicator.java/clean/loci/plugins/browser/CacheIndicator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
12,
17558,
314,
13,
288,
565,
314,
18,
542,
2957,
12,
2957,
18,
14739,
1769,
565,
314,
18,
5935,
6120,
12,
20,
16,
20,
16,
588,
2384,
1435,
17,
21,
16,
22922,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
12,
17558,
314,
13,
288,
565,
314,
18,
542,
2957,
12,
2957,
18,
14739,
1769,
565,
314,
18,
5935,
6120,
12,
20,
16,
20,
16,
588,
2384,
1435,
17,
21,
16,
22922,
67,
... | |
jj_la1[116] = jj_gen; break label_44; | jj_la1[118] = jj_gen; break label_46; | final public void StatementExpressionList() throws ParseException { /*@bgen(jjtree) StatementExpressionList */ ASTStatementExpressionList jjtn000 = new ASTStatementExpressionList(this, JJTSTATEMENTEXPRESSIONLIST); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { StatementExpression(); label_44: while (true) { switch (jj_nt.kind) { case COMMA: ; break; default: jj_la1[116] = jj_gen; break label_44; } jj_consume_token(COMMA); StatementExpression(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
8056,
2300,
682,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
8056,
2300,
682,
1195,
225,
9183,
3406,
2300,
682,
10684,
5088,
3784,
273,
394,
9183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
8056,
2300,
682,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
8056,
2300,
682,
1195,
225,
9183,
3406,
2300,
682,
10684,
5088,
3784,
273,
394,
9183,
... |
if (lastComplitedMacher != null && lastComplitedMacher.match(patternString)) { | if (lastComplitedFilter != null && lastComplitedFilter.isSubFilter(filter.getNamePattern())) { | private void scheduleSearchJob() { searchJobTicket++; if (lastComplitedMacher != null && lastComplitedMacher.match(patternString)) { searchJob = new ResourceCachedResultJob(searchJobTicket, lastCompletedResult, model, (ResourceHistory) history); } else { lastComplitedMacher = null; lastCompletedResult = null; searchJob = new ResourceSearchEngineJob(searchJobTicket, model, (ResourceHistory) history, this); } searchJob.schedule(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ae3d354a71713373749ce0e06f69f1d25ce8c0e4/ResourceSearcher.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4788,
2979,
2278,
1435,
288,
202,
202,
3072,
2278,
13614,
9904,
31,
202,
202,
430,
261,
2722,
799,
1127,
329,
49,
27779,
480,
446,
9506,
202,
10,
10,
1142,
799,
1127,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4788,
2979,
2278,
1435,
288,
202,
202,
3072,
2278,
13614,
9904,
31,
202,
202,
430,
261,
2722,
799,
1127,
329,
49,
27779,
480,
446,
9506,
202,
10,
10,
1142,
799,
1127,
32... |
return doShow(console, view, monitor); | return doShow(view, monitor); | public IStatus runInUIThread(IProgressMonitor monitor) { IWorkbenchPage page = getPage(); NIConsole console = fConsoleToShow; if (page == null || console == null) { return Status.CANCEL_STATUS; } try { if (page == UIAccess.getActiveWorkbenchPage(true)) { cancelShowConsoleViewDefaultJob(); } IWorkbenchPart activePart = page.getActivePart(); if (activePart instanceof IConsoleView) { if (console == ((IConsoleView) activePart).getConsole()) { return Status.OK_STATUS; } } List<IConsoleView> views = getConsoleViews(page); ListIterator<IConsoleView> iter = views.listIterator(); while (iter.hasNext()) { IConsoleView view = iter.next(); if (view.isPinned()) { // visible and pinned if (console == view.getConsole()) { return doShow(console, view, monitor); } else { iter.remove(); } } } IConsoleView[] preferedView = new IConsoleView[4]; for (IConsoleView view : views) { if (console == view.getConsole()) { if (page.isPartVisible(view)) { // already visible return doShow(console, view, monitor); } else { // already selected preferedView[0] = view; } } else { // for same type created view String secId = view.getViewSite().getSecondaryId(); if (secId != null && secId.startsWith(console.getType())) { preferedView[1] = view; } else if (page.isPartVisible(view)) { // visible views preferedView[2] = view; } else { // other views preferedView[3] = view; } } } for (int i = 0; i < preferedView.length; i++) { if (preferedView[i] != null) { return doShow(console, preferedView[i], monitor); } } return doShow(console, null, monitor); } catch (PartInitException e) { StatetPlugin.logUnexpectedError(e); return Status.OK_STATUS; } finally { fConsoleToShow = null; } } | 48482 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48482/d3bba4266f35b585495a603d2b7a2630e87ff6c4/PageRegistry.java/clean/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/internal/PageRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
45,
2421,
22144,
1964,
1363,
273,
8957,
5621,
1082,
202,
50,
45,
10215,
2983,
273,
284,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
45,
2421,
22144,
1964,
1363,
273,
8957,
5621,
1082,
202,
50,
45,
10215,
2983,
273,
284,... |
public TA_RetCode CDLLADDERBOTTOM( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double ShadowVeryShortPeriodTotal; int i, outIdx, ShadowVeryShortTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLLADDERBOTTOM_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } ShadowVeryShortPeriodTotal = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) ; i = ShadowVeryShortTrailingIdx; while( i < startIdx ) { ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-4] >= inOpen[i-4] ? 1 : -1 ) == -1 && ( inClose[i-3] >= inOpen[i-3] ? 1 : -1 ) == -1 && ( inClose[i-2] >= inOpen[i-2] ? 1 : -1 ) == -1 && inOpen[i-4] > inOpen[i-3] && inOpen[i-3] > inOpen[i-2] && inClose[i-4] > inClose[i-3] && inClose[i-3] > inClose[i-2] && ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == -1 && ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) != 0.0? ShadowVeryShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == 1 && inOpen[i] > inOpen[i-1] && inClose[i] > inHigh[i-1] ) outInteger[outIdx++] = 100; else outInteger[outIdx++] = 0; ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[ShadowVeryShortTrailingIdx-1] - inOpen[ShadowVeryShortTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[ShadowVeryShortTrailingIdx-1] - inLow[ShadowVeryShortTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[ShadowVeryShortTrailingIdx-1] - ( inClose[ShadowVeryShortTrailingIdx-1] >= inOpen[ShadowVeryShortTrailingIdx-1] ? inClose[ShadowVeryShortTrailingIdx-1] : inOpen[ShadowVeryShortTrailingIdx-1] ) ) + ( ( inClose[ShadowVeryShortTrailingIdx-1] >= inOpen[ShadowVeryShortTrailingIdx-1] ? inOpen[ShadowVeryShortTrailingIdx-1] : inClose[ShadowVeryShortTrailingIdx-1] ) - inLow[ShadowVeryShortTrailingIdx-1] ) : 0 ) ) ) ; i++; ShadowVeryShortTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
10160,
4503,
1880,
4179,
28891,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
3678,
63,
6487,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
10160,
4503,
1880,
4179,
28891,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
3678,
63,
6487,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,... | ||
aload(savedVariableObject); astore(variableObjectLocal); | cfw.addALoad(savedVariableObject); cfw.addAStore(variableObjectLocal); | private void generateCatchBlock(int exceptionType, short savedVariableObject, int catchLabel, int startLabel) { int handler = acquireLabel(); classFile.markHandler(handler); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(contextLocal); aload(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); // unwrap the exception... addScriptRuntimeInvoke( "getCatchObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Throwable;" +")Ljava/lang/Object;"); String exceptionName; if (exceptionType == JAVASCRIPT_EXCEPTION) { exceptionName = "org/mozilla/javascript/JavaScriptException"; } else if (exceptionType == WRAPPED_EXCEPTION) { exceptionName = "org/mozilla/javascript/WrappedException"; } else { if (exceptionType != ECMAERROR_EXCEPTION) Context.codeBug(); exceptionName = "org/mozilla/javascript/EcmaError"; } // mark the handler classFile.addExceptionHandler(startLabel, catchLabel, handler, exceptionName); addByteCode(ByteCode.GOTO, catchLabel); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
14842,
1768,
12,
474,
1520,
559,
16,
4766,
565,
3025,
5198,
3092,
921,
16,
4766,
565,
509,
1044,
2224,
16,
4766,
565,
509,
787,
2224,
13,
565,
288,
3639,
509,
1838,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
14842,
1768,
12,
474,
1520,
559,
16,
4766,
565,
3025,
5198,
3092,
921,
16,
4766,
565,
509,
1044,
2224,
16,
4766,
565,
509,
787,
2224,
13,
565,
288,
3639,
509,
1838,
273... |
printDebug(2,"end addDueIns(), number of refillTasks is "+total); | if (logger.isDebugEnabled()) { logger.debug("end addDueIns(), number of refillTasks is " + total); } | private void addPreviousRefills() { printDebug(" : addPreviousRefills()"); int total=0; Iterator inventories = changedSet_.iterator(); Inventory inv; InventoryPG invpg; while (inventories.hasNext()) { inv = (Inventory)inventories.next(); invpg = (InventoryPG)inv.getInventoryPG(); // maintainInventory Task is the parent of all the refills for this inventory Task maintainInventory = inventoryPlugin_.findOrMakeMILTask(inv); // should never be null but may want to add a check AHF total += invpg.addPreviousRefillsToInventory(maintainInventory); invpg.determineInventoryLevels(); // invpg.printInventoryLevels(inv, clusterId_); } printDebug(2,"end addDueIns(), number of refillTasks is "+total); } | 7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/a7ff68e46c5f394c11380f3797c541d8a0ac59d4/InventoryManager.java/clean/glm/src/org/cougaar/glm/plugins/inventory/InventoryManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
8351,
1957,
737,
87,
1435,
288,
565,
1172,
2829,
2932,
1377,
294,
527,
8351,
1957,
737,
87,
1435,
8863,
565,
509,
2078,
33,
20,
31,
565,
4498,
316,
616,
2401,
273,
3550,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
527,
8351,
1957,
737,
87,
1435,
288,
565,
1172,
2829,
2932,
1377,
294,
527,
8351,
1957,
737,
87,
1435,
8863,
565,
509,
2078,
33,
20,
31,
565,
4498,
316,
616,
2401,
273,
3550,... |
if(i > 0) { | if (i > 0) { | private void generateHTTPPort(OMFactory fac, OMElement service) throws Exception { for (int i = 0; i < urls.length; i++) { String urlString = urls[i]; if (urlString != null && urlString.startsWith("http")) { OMElement port = fac.createOMElement(PORT, wsdl); service.addChild(port); String name = axisService.getName() + HTTP_PORT; if(i > 0) { name += i; } port.addAttribute(ATTRIBUTE_NAME, name, null); port.addAttribute(BINDING_LOCAL_NAME, tns.getPrefix() + ":" + axisService.getName() + HTTP_BINDING, null); OMElement extElement = fac.createOMElement("address", http); port.addChild(extElement); urlString = urlString.replaceAll(servicePath, "rest"); extElement.addAttribute("location", urlString, null); } } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/244aa4f43ff8119055aa57a36d41877e9626c506/AxisService2OM.java/buggy/modules/kernel/src/org/apache/axis2/description/AxisService2OM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
3693,
2617,
12,
1872,
1733,
5853,
16,
531,
12310,
1156,
13,
5411,
1216,
1185,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6903,
18,
2469,
31,
277,
27245,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
3693,
2617,
12,
1872,
1733,
5853,
16,
531,
12310,
1156,
13,
5411,
1216,
1185,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6903,
18,
2469,
31,
277,
27245,
288... |
public void set(Map settings) { final Object alignmentForArgumentsInAllocationExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION); if (alignmentForArgumentsInAllocationExpressionOption != null) { try { this.alignment_for_arguments_in_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInAllocationExpressionOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInEnumConstantOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ENUM_CONSTANT); if (alignmentForArgumentsInEnumConstantOption != null) { try { this.alignment_for_arguments_in_enum_constant = Integer.parseInt((String) alignmentForArgumentsInEnumConstantOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInExplicitConstructorCallOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL); if (alignmentForArgumentsInExplicitConstructorCallOption != null) { try { this.alignment_for_arguments_in_explicit_constructor_call = Integer.parseInt((String) alignmentForArgumentsInExplicitConstructorCallOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInMethodInvocationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION); if (alignmentForArgumentsInMethodInvocationOption != null) { try { this.alignment_for_arguments_in_method_invocation = Integer.parseInt((String) alignmentForArgumentsInMethodInvocationOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInQualifiedAllocationExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION); if (alignmentForArgumentsInQualifiedAllocationExpressionOption != null) { try { this.alignment_for_arguments_in_qualified_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInQualifiedAllocationExpressionOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForAssignmentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT); if (alignmentForAssignmentOption != null) { try { this.alignment_for_assignment = Integer.parseInt((String) alignmentForAssignmentOption); } catch (NumberFormatException e) { this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; } catch (ClassCastException e) { this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; } } final Object alignmentForBinaryExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); if (alignmentForBinaryExpressionOption != null) { try { this.alignment_for_binary_expression = Integer.parseInt((String) alignmentForBinaryExpressionOption); } catch (NumberFormatException e) { this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForCompactIfOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF); if (alignmentForCompactIfOption != null) { try { this.alignment_for_compact_if = Integer.parseInt((String) alignmentForCompactIfOption); } catch (NumberFormatException e) { this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; } catch (ClassCastException e) { this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; } } final Object alignmentForConditionalExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION); if (alignmentForConditionalExpressionOption != null) { try { this.alignment_for_conditional_expression = Integer.parseInt((String) alignmentForConditionalExpressionOption); } catch (NumberFormatException e) { this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; } catch (ClassCastException e) { this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; } } final Object alignmentForEnumConstantsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS); if (alignmentForEnumConstantsOption != null) { try { this.alignment_for_enum_constants = Integer.parseInt((String) alignmentForEnumConstantsOption); } catch (NumberFormatException e) { this.alignment_for_enum_constants = Alignment.NONE; } catch (ClassCastException e) { this.alignment_for_enum_constants = Alignment.NONE; } } final Object alignmentForExpressionsInArrayInitializerOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER); if (alignmentForExpressionsInArrayInitializerOption != null) { try { this.alignment_for_expressions_in_array_initializer = Integer.parseInt((String) alignmentForExpressionsInArrayInitializerOption); } catch (NumberFormatException e) { this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForMultipleFieldsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS); if (alignmentForMultipleFieldsOption != null) { try { this.alignment_for_multiple_fields = Integer.parseInt((String) alignmentForMultipleFieldsOption); } catch (NumberFormatException e) { this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForParametersInConstructorDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION); if (alignmentForParametersInConstructorDeclarationOption != null) { try { this.alignment_for_parameters_in_constructor_declaration = Integer.parseInt((String) alignmentForParametersInConstructorDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForParametersInMethodDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION); if (alignmentForParametersInMethodDeclarationOption != null) { try { this.alignment_for_parameters_in_method_declaration = Integer.parseInt((String) alignmentForParametersInMethodDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForSelectorInMethodInvocationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION); if (alignmentForSelectorInMethodInvocationOption != null) { try { this.alignment_for_selector_in_method_invocation = Integer.parseInt((String) alignmentForSelectorInMethodInvocationOption); } catch (NumberFormatException e) { this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForSuperclassInTypeDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION); if (alignmentForSuperclassInTypeDeclarationOption != null) { try { this.alignment_for_superclass_in_type_declaration = Integer.parseInt((String) alignmentForSuperclassInTypeDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForSuperinterfacesInEnumDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_ENUM_DECLARATION); if (alignmentForSuperinterfacesInEnumDeclarationOption != null) { try { this.alignment_for_superinterfaces_in_enum_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInEnumDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForSuperinterfacesInTypeDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION); if (alignmentForSuperinterfacesInTypeDeclarationOption != null) { try { this.alignment_for_superinterfaces_in_type_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInTypeDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForThrowsClauseInConstructorDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION); if (alignmentForThrowsClauseInConstructorDeclarationOption != null) { try { this.alignment_for_throws_clause_in_constructor_declaration = Integer.parseInt((String) alignmentForThrowsClauseInConstructorDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForThrowsClauseInMethodDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION); if (alignmentForThrowsClauseInMethodDeclarationOption != null) { try { this.alignment_for_throws_clause_in_method_declaration = Integer.parseInt((String) alignmentForThrowsClauseInMethodDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignTypeMembersOnColumnsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS); if (alignTypeMembersOnColumnsOption != null) { this.align_type_members_on_columns = DefaultCodeFormatterConstants.TRUE.equals(alignTypeMembersOnColumnsOption); } final Object bracePositionForArrayInitializerOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER); if (bracePositionForArrayInitializerOption != null) { try { this.brace_position_for_array_initializer = (String) bracePositionForArrayInitializerOption; } catch(ClassCastException e) { this.brace_position_for_array_initializer = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForBlockOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK); if (bracePositionForBlockOption != null) { try { this.brace_position_for_block = (String) bracePositionForBlockOption; } catch(ClassCastException e) { this.brace_position_for_block = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForBlockInCaseOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE); if (bracePositionForBlockInCaseOption != null) { try { this.brace_position_for_block_in_case = (String) bracePositionForBlockInCaseOption; } catch(ClassCastException e) { this.brace_position_for_block_in_case = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForConstructorDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION); if (bracePositionForConstructorDeclarationOption != null) { try { this.brace_position_for_constructor_declaration = (String) bracePositionForConstructorDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_constructor_declaration = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForEnumConstantOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_CONSTANT); if (bracePositionForEnumConstantOption != null) { try { this.brace_position_for_enum_constant = (String) bracePositionForEnumConstantOption; } catch(ClassCastException e) { this.brace_position_for_enum_constant = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForEnumDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_DECLARATION); if (bracePositionForEnumDeclarationOption != null) { try { this.brace_position_for_enum_declaration = (String) bracePositionForEnumDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_enum_declaration = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForMethodDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION); if (bracePositionForMethodDeclarationOption != null) { try { this.brace_position_for_method_declaration = (String) bracePositionForMethodDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_method_declaration = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForSwitchOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH); if (bracePositionForSwitchOption != null) { try { this.brace_position_for_switch = (String) bracePositionForSwitchOption; } catch(ClassCastException e) { this.brace_position_for_switch = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForTypeDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION); if (bracePositionForTypeDeclarationOption != null) { try { this.brace_position_for_type_declaration = (String) bracePositionForTypeDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE; } } final Object continuationIndentationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION); if (continuationIndentationOption != null) { try { this.continuation_indentation = Integer.parseInt((String) continuationIndentationOption); } catch (NumberFormatException e) { this.continuation_indentation = 2; } catch(ClassCastException e) { this.continuation_indentation = 2; } } final Object continuationIndentationForArrayInitializerOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER); if (continuationIndentationForArrayInitializerOption != null) { try { this.continuation_indentation_for_array_initializer = Integer.parseInt((String) continuationIndentationForArrayInitializerOption); } catch (NumberFormatException e) { this.continuation_indentation_for_array_initializer = 2; } catch(ClassCastException e) { this.continuation_indentation_for_array_initializer = 2; } }// final Object blankLinesAfterImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_IMPORTS);// if (blankLinesAfterImportsOption != null) {// try {// this.blank_lines_after_imports = Integer.parseInt((String) blankLinesAfterImportsOption);// } catch (NumberFormatException e) {// this.blank_lines_after_imports = 0;// } catch(ClassCastException e) {// this.blank_lines_after_imports = 0;// }// }// final Object blankLinesAfterPackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE);// if (blankLinesAfterPackageOption != null) {// try {// this.blank_lines_after_package = Integer.parseInt((String) blankLinesAfterPackageOption);// } catch (NumberFormatException e) {// this.blank_lines_after_package = 0;// } catch(ClassCastException e) {// this.blank_lines_after_package = 0;// }// }// final Object blankLinesBeforeFieldOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD);// if (blankLinesBeforeFieldOption != null) {// try {// this.blank_lines_before_field = Integer.parseInt((String) blankLinesBeforeFieldOption);// } catch (NumberFormatException e) {// this.blank_lines_before_field = 0;// } catch(ClassCastException e) {// this.blank_lines_before_field = 0;// }// }// final Object blankLinesBeforeFirstClassBodyDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION);// if (blankLinesBeforeFirstClassBodyDeclarationOption != null) {// try {// this.blank_lines_before_first_class_body_declaration = Integer.parseInt((String) blankLinesBeforeFirstClassBodyDeclarationOption);// } catch (NumberFormatException e) {// this.blank_lines_before_first_class_body_declaration = 0;// } catch(ClassCastException e) {// this.blank_lines_before_first_class_body_declaration = 0;// }// }// final Object blankLinesBeforeImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS);// if (blankLinesBeforeImportsOption != null) {// try {// this.blank_lines_before_imports = Integer.parseInt((String) blankLinesBeforeImportsOption);// } catch (NumberFormatException e) {// this.blank_lines_before_imports = 0;// } catch(ClassCastException e) {// this.blank_lines_before_imports = 0;// }// }// final Object blankLinesBeforeMemberTypeOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE);// if (blankLinesBeforeMemberTypeOption != null) {// try {// this.blank_lines_before_member_type = Integer.parseInt((String) blankLinesBeforeMemberTypeOption);// } catch (NumberFormatException e) {// this.blank_lines_before_member_type = 0;// } catch(ClassCastException e) {// this.blank_lines_before_member_type = 0;// }// }// final Object blankLinesBeforeMethodOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD);// if (blankLinesBeforeMethodOption != null) {// try {// this.blank_lines_before_method = Integer.parseInt((String) blankLinesBeforeMethodOption);// } catch (NumberFormatException e) {// this.blank_lines_before_method = 0;// } catch(ClassCastException e) {// this.blank_lines_before_method = 0;// }// }// final Object blankLinesBeforeNewChunkOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK);// if (blankLinesBeforeNewChunkOption != null) {// try {// this.blank_lines_before_new_chunk = Integer.parseInt((String) blankLinesBeforeNewChunkOption);// } catch (NumberFormatException e) {// this.blank_lines_before_new_chunk = 0;// } catch(ClassCastException e) {// this.blank_lines_before_new_chunk = 0;// }// }// final Object blankLinesBeforePackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE);// if (blankLinesBeforePackageOption != null) {// try {// this.blank_lines_before_package = Integer.parseInt((String) blankLinesBeforePackageOption);// } catch (NumberFormatException e) {// this.blank_lines_before_package = 0;// } catch(ClassCastException e) {// this.blank_lines_before_package = 0;// }// }// final Object blankLinesBetweenTypeDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS);// if (blankLinesBetweenTypeDeclarationsOption != null) {// try {// this.blank_lines_between_type_declarations = Integer.parseInt((String) blankLinesBetweenTypeDeclarationsOption);// } catch (NumberFormatException e) {// this.blank_lines_between_type_declarations = 0;// } catch(ClassCastException e) {// this.blank_lines_between_type_declarations = 0;// }// }// final Object blankLinesAtBeginningOfMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY);// if (blankLinesAtBeginningOfMethodBodyOption != null) {// try {// this.blank_lines_at_beginning_of_method_body = Integer.parseInt((String) blankLinesAtBeginningOfMethodBodyOption);// } catch (NumberFormatException e) {// this.blank_lines_at_beginning_of_method_body = 0;// } catch(ClassCastException e) {// this.blank_lines_at_beginning_of_method_body = 0;// }// }// final Object commentClearBlankLinesOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES);// if (commentClearBlankLinesOption != null) {// this.comment_clear_blank_lines = CodeFormatterConstants.TRUE.equals(commentClearBlankLinesOption);// }// final Object commentFormatOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT);// if (commentFormatOption != null) {// this.comment_format = CodeFormatterConstants.TRUE.equals(commentFormatOption);// }// final Object commentFormatHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HEADER);// if (commentFormatHeaderOption != null) {// this.comment_format_header = CodeFormatterConstants.TRUE.equals(commentFormatHeaderOption);// }// final Object commentFormatHtmlOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HTML);// if (commentFormatHtmlOption != null) {// this.comment_format_html = CodeFormatterConstants.TRUE.equals(commentFormatHtmlOption);// }// final Object commentFormatSourceOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_SOURCE);// if (commentFormatSourceOption != null) {// this.comment_format_source = CodeFormatterConstants.TRUE.equals(commentFormatSourceOption);// }// final Object commentLineLengthOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_LINE_LENGTH);// if (commentLineLengthOption != null) {// try {// this.comment_line_length = Integer.parseInt((String) commentLineLengthOption);// } catch (NumberFormatException e) {// this.comment_line_length = 80;// } catch(ClassCastException e) {// this.comment_line_length = 80;// }// } final Object indentStatementsCompareToBlockOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK); if (indentStatementsCompareToBlockOption != null) { this.indent_statements_compare_to_block = DefaultCodeFormatterConstants.TRUE.equals(indentStatementsCompareToBlockOption); } final Object indentStatementsCompareToBodyOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY); if (indentStatementsCompareToBodyOption != null) { this.indent_statements_compare_to_body = DefaultCodeFormatterConstants.TRUE.equals(indentStatementsCompareToBodyOption); } final Object indentBodyDeclarationsCompareToEnumConstantHeaderOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_CONSTANT_HEADER); if (indentBodyDeclarationsCompareToEnumConstantHeaderOption != null) { this.indent_body_declarations_compare_to_enum_constant_header = DefaultCodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumConstantHeaderOption); } final Object indentBodyDeclarationsCompareToEnumDeclarationHeaderOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER); if (indentBodyDeclarationsCompareToEnumDeclarationHeaderOption != null) { this.indent_body_declarations_compare_to_enum_declaration_header = DefaultCodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumDeclarationHeaderOption); } final Object indentAccessSpecifierCompareToTypeHeaderOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_ACCESS_SPECIFIER_COMPARE_TO_TYPE_HEADER); if (indentAccessSpecifierCompareToTypeHeaderOption != null) { this.indent_access_specifier_compare_to_type_header = DefaultCodeFormatterConstants.TRUE.equals(indentAccessSpecifierCompareToTypeHeaderOption); } final Object indentBodyDeclarationsCompareToAccessSpecifierOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ACCESS_SPECIFIER); if (indentBodyDeclarationsCompareToAccessSpecifierOption != null) { this.indent_body_declarations_compare_to_access_specifier = DefaultCodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToAccessSpecifierOption); } final Object indentBreaksCompareToCasesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES); if (indentBreaksCompareToCasesOption != null) { this.indent_breaks_compare_to_cases = DefaultCodeFormatterConstants.TRUE.equals(indentBreaksCompareToCasesOption); } final Object indentEmptyLinesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES); if (indentEmptyLinesOption != null) { this.indent_empty_lines = DefaultCodeFormatterConstants.TRUE.equals(indentEmptyLinesOption); } final Object indentSwitchstatementsCompareToCasesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES); if (indentSwitchstatementsCompareToCasesOption != null) { this.indent_switchstatements_compare_to_cases = DefaultCodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToCasesOption); } final Object indentSwitchstatementsCompareToSwitchOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH); if (indentSwitchstatementsCompareToSwitchOption != null) { this.indent_switchstatements_compare_to_switch = DefaultCodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToSwitchOption); } final Object indentationSizeOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENTATION_SIZE); if (indentationSizeOption != null) { try { this.indentation_size = Integer.parseInt((String) indentationSizeOption); } catch (NumberFormatException e) { this.indentation_size = 4; } catch(ClassCastException e) { this.indentation_size = 4; } }// final Object insertNewLineAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertNewLineAfterOpeningBraceInArrayInitializerOption != null) {// this.insert_new_line_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineAfterOpeningBraceInArrayInitializerOption);// }// final Object insertNewLineAtEndOfFileIfMissingOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AT_END_OF_FILE_IF_MISSING);// if (insertNewLineAtEndOfFileIfMissingOption != null) {// this.insert_new_line_at_end_of_file_if_missing = CCorePlugin.INSERT.equals(insertNewLineAtEndOfFileIfMissingOption);// }// final Object insertNewLineBeforeCatchInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT);// if (insertNewLineBeforeCatchInTryStatementOption != null) {// this.insert_new_line_before_catch_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeCatchInTryStatementOption);// }// final Object insertNewLineBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER);// if (insertNewLineBeforeClosingBraceInArrayInitializerOption != null) {// this.insert_new_line_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineBeforeClosingBraceInArrayInitializerOption);// }// final Object insertNewLineBeforeElseInIfStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT);// if (insertNewLineBeforeElseInIfStatementOption != null) {// this.insert_new_line_before_else_in_if_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeElseInIfStatementOption);// }// final Object insertNewLineBeforeFinallyInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT);// if (insertNewLineBeforeFinallyInTryStatementOption != null) {// this.insert_new_line_before_finally_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeFinallyInTryStatementOption);// }// final Object insertNewLineBeforeWhileInDoStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT);// if (insertNewLineBeforeWhileInDoStatementOption != null) {// this.insert_new_line_before_while_in_do_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeWhileInDoStatementOption);// }// final Object insertNewLineInEmptyBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK);// if (insertNewLineInEmptyBlockOption != null) {// this.insert_new_line_in_empty_block = CCorePlugin.INSERT.equals(insertNewLineInEmptyBlockOption);// }// final Object insertNewLineInEmptyEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_CONSTANT);// if (insertNewLineInEmptyEnumConstantOption != null) {// this.insert_new_line_in_empty_enum_constant = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumConstantOption);// }// final Object insertNewLineInEmptyEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_DECLARATION);// if (insertNewLineInEmptyEnumDeclarationOption != null) {// this.insert_new_line_in_empty_enum_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumDeclarationOption);// }// final Object insertNewLineInEmptyMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY);// if (insertNewLineInEmptyMethodBodyOption != null) {// this.insert_new_line_in_empty_method_body = CCorePlugin.INSERT.equals(insertNewLineInEmptyMethodBodyOption);// }// final Object insertNewLineInEmptyTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION);// if (insertNewLineInEmptyTypeDeclarationOption != null) {// this.insert_new_line_in_empty_type_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyTypeDeclarationOption);// }// final Object insertSpaceAfterAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_AND_IN_TYPE_PARAMETER);// if (insertSpaceAfterAndInWildcardOption != null) {// this.insert_space_after_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceAfterAndInWildcardOption);// }// final Object insertSpaceAfterAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR);// if (insertSpaceAfterAssignmentOperatorOption != null) {// this.insert_space_after_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceAfterAssignmentOperatorOption);// }// final Object insertSpaceAfterBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR);// if (insertSpaceAfterBinaryOperatorOption != null) {// this.insert_space_after_binary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterBinaryOperatorOption);// }// final Object insertSpaceAfterClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterClosingAngleBracketInTypeArgumentsOption != null) {// this.insert_space_after_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceAfterClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceAfterClosingAngleBracketInTypeParametersOption != null) {// this.insert_space_after_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeParametersOption);// }// final Object insertSpaceAfterClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST);// if (insertSpaceAfterClosingParenInCastOption != null) {// this.insert_space_after_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterClosingParenInCastOption);// }// final Object insertSpaceAfterClosingBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK);// if (insertSpaceAfterClosingBraceInBlockOption != null) {// this.insert_space_after_closing_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceAfterClosingBraceInBlockOption);// }// final Object insertSpaceAfterColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT);// if (insertSpaceAfterColonInAssertOption != null) {// this.insert_space_after_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceAfterColonInAssertOption);// }// final Object insertSpaceAfterColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE);// if (insertSpaceAfterColonInCaseOption != null) {// this.insert_space_after_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceAfterColonInCaseOption);// }// final Object insertSpaceAfterColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL);// if (insertSpaceAfterColonInConditionalOption != null) {// this.insert_space_after_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterColonInConditionalOption);// }// final Object insertSpaceAfterColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_FOR);// if (insertSpaceAfterColonInForOption != null) {// this.insert_space_after_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterColonInForOption);// }// final Object insertSpaceAfterColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT);// if (insertSpaceAfterColonInLabeledStatementOption != null) {// this.insert_space_after_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceAfterColonInLabeledStatementOption);// }// final Object insertSpaceAfterCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION);// if (insertSpaceAfterCommaInAllocationExpressionOption != null) {// this.insert_space_after_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInAllocationExpressionOption);// }// final Object insertSpaceAfterCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER);// if (insertSpaceAfterCommaInArrayInitializerOption != null) {// this.insert_space_after_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInArrayInitializerOption);// }// final Object insertSpaceAfterCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS);// if (insertSpaceAfterCommaInConstructorDeclarationParametersOption != null) {// this.insert_space_after_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationParametersOption);// }// final Object insertSpaceAfterCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS);// if (insertSpaceAfterCommaInConstructorDeclarationThrowsOption != null) {// this.insert_space_after_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationThrowsOption);// }// final Object insertSpaceAfterCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_CONSTANT_ARGUMENTS);// if (insertSpaceAfterCommaInEnumConstantArgumentsOption != null) {// this.insert_space_after_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumConstantArgumentsOption);// }// final Object insertSpaceAfterCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_DECLARATIONS);// if (insertSpaceAfterCommaInEnumDeclarationsOption != null) {// this.insert_space_after_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumDeclarationsOption);// }// final Object insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS);// if (insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption != null) {// this.insert_space_after_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption);// }// final Object insertSpaceAfterCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS);// if (insertSpaceAfterCommaInForIncrementsOption != null) {// this.insert_space_after_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForIncrementsOption);// }// final Object insertSpaceAfterCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS);// if (insertSpaceAfterCommaInForInitsOption != null) {// this.insert_space_after_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForInitsOption);// }// final Object insertSpaceAfterCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS);// if (insertSpaceAfterCommaInMethodInvocationArgumentsOption != null) {// this.insert_space_after_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodInvocationArgumentsOption);// }// final Object insertSpaceAfterCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS);// if (insertSpaceAfterCommaInMethodDeclarationParametersOption != null) {// this.insert_space_after_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationParametersOption);// }// final Object insertSpaceAfterCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS);// if (insertSpaceAfterCommaInMethodDeclarationThrowsOption != null) {// this.insert_space_after_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationThrowsOption);// }// final Object insertSpaceAfterCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS);// if (insertSpaceAfterCommaInMultipleFieldDeclarationsOption != null) {// this.insert_space_after_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleFieldDeclarationsOption);// }// final Object insertSpaceAfterCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS);// if (insertSpaceAfterCommaInMultipleLocalDeclarationsOption != null) {// this.insert_space_after_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleLocalDeclarationsOption);// }// final Object insertSpaceAfterCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceAfterCommaInParameterizedTypeReferenceOption != null) {// this.insert_space_after_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInParameterizedTypeReferenceOption);// }// final Object insertSpaceAfterCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES);// if (insertSpaceAfterCommaInSuperinterfacesOption != null) {// this.insert_space_after_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInSuperinterfacesOption);// }// final Object insertSpaceAfterCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterCommaInTypeArgumentsOption != null) {// this.insert_space_after_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeArgumentsOption);// }// final Object insertSpaceAfterCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_PARAMETERS);// if (insertSpaceAfterCommaInTypeParametersOption != null) {// this.insert_space_after_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeParametersOption);// }// final Object insertSpaceAfterEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ELLIPSIS);// if (insertSpaceAfterEllipsisOption != null) {// this.insert_space_after_ellipsis = CCorePlugin.INSERT.equals(insertSpaceAfterEllipsisOption);// }// final Object insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption != null) {// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption);// }// final Object insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption != null) {// this.insert_space_after_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceAfterOpeningAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceAfterOpeningAngleBracketInTypeParametersOption != null) {// this.insert_space_after_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeParametersOption);// }// final Object insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption != null) {// this.insert_space_after_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceAfterOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceAfterOpeningBracketInArrayReferenceOption != null) {// this.insert_space_after_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayReferenceOption);// }// final Object insertSpaceAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceAfterOpeningBraceInArrayInitializerOption != null) {// this.insert_space_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBraceInArrayInitializerOption);// }// final Object insertSpaceAfterOpeningParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST);// if (insertSpaceAfterOpeningParenInCastOption != null) {// this.insert_space_after_opening_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCastOption);// }// final Object insertSpaceAfterOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH);// if (insertSpaceAfterOpeningParenInCatchOption != null) {// this.insert_space_after_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCatchOption);// }// final Object insertSpaceAfterOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceAfterOpeningParenInConstructorDeclarationOption != null) {// this.insert_space_after_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInConstructorDeclarationOption);// }// final Object insertSpaceAfterOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceAfterOpeningParenInEnumConstantOption != null) {// this.insert_space_after_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInEnumConstantOption);// }// final Object insertSpaceAfterOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR);// if (insertSpaceAfterOpeningParenInForOption != null) {// this.insert_space_after_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInForOption);// }// final Object insertSpaceAfterOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF);// if (insertSpaceAfterOpeningParenInIfOption != null) {// this.insert_space_after_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInIfOption);// }// final Object insertSpaceAfterOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceAfterOpeningParenInMethodDeclarationOption != null) {// this.insert_space_after_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodDeclarationOption);// }// final Object insertSpaceAfterOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceAfterOpeningParenInMethodInvocationOption != null) {// this.insert_space_after_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodInvocationOption);// }// final Object insertSpaceAfterOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceAfterOpeningParenInParenthesizedExpressionOption != null) {// this.insert_space_after_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInParenthesizedExpressionOption);// }// final Object insertSpaceAfterOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH);// if (insertSpaceAfterOpeningParenInSwitchOption != null) {// this.insert_space_after_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSwitchOption);// }// final Object insertSpaceAfterOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceAfterOpeningParenInSynchronizedOption != null) {// this.insert_space_after_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSynchronizedOption);// }// final Object insertSpaceAfterOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE);// if (insertSpaceAfterOpeningParenInWhileOption != null) {// this.insert_space_after_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInWhileOption);// }// final Object insertSpaceAfterPostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR);// if (insertSpaceAfterPostfixOperatorOption != null) {// this.insert_space_after_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPostfixOperatorOption);// }// final Object insertSpaceAfterPrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR);// if (insertSpaceAfterPrefixOperatorOption != null) {// this.insert_space_after_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPrefixOperatorOption);// }// final Object insertSpaceAfterQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL);// if (insertSpaceAfterQuestionInConditionalOption != null) {// this.insert_space_after_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInConditionalOption);// }// final Object insertSpaceAfterQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_WILDCARD);// if (insertSpaceAfterQuestionInWildcardOption != null) {// this.insert_space_after_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInWildcardOption);// }// final Object insertSpaceAfterSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR);// if (insertSpaceAfterSemicolonInForOption != null) {// this.insert_space_after_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterSemicolonInForOption);// }// final Object insertSpaceAfterUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR);// if (insertSpaceAfterUnaryOperatorOption != null) {// this.insert_space_after_unary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterUnaryOperatorOption);// }// final Object insertSpaceBeforeAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_AND_IN_TYPE_PARAMETER);// if (insertSpaceBeforeAndInWildcardOption != null) {// this.insert_space_before_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceBeforeAndInWildcardOption);// }// final Object insertSpaceBeforeAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR);// if (insertSpaceBeforeAssignmentOperatorOption != null) {// this.insert_space_before_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeAssignmentOperatorOption);// }// final Object insertSpaceBeforeBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR);// if (insertSpaceBeforeBinaryOperatorOption != null) {// this.insert_space_before_binary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeBinaryOperatorOption);// }// final Object insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption != null) {// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption != null) {// this.insert_space_before_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceBeforeClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeClosingAngleBracketInTypeParametersOption != null) {// this.insert_space_before_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeParametersOption);// }// final Object insertSpaceBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeClosingBraceInArrayInitializerOption != null) {// this.insert_space_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBraceInArrayInitializerOption);// }// final Object insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption != null) {// this.insert_space_before_closing_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceBeforeClosingBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceBeforeClosingBracketInArrayReferenceOption != null) {// this.insert_space_before_closing_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayReferenceOption);// }// final Object insertSpaceBeforeClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST);// if (insertSpaceBeforeClosingParenInCastOption != null) {// this.insert_space_before_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCastOption);// }// final Object insertSpaceBeforeClosingParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH);// if (insertSpaceBeforeClosingParenInCatchOption != null) {// this.insert_space_before_closing_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCatchOption);// }// final Object insertSpaceBeforeClosingParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeClosingParenInConstructorDeclarationOption != null) {// this.insert_space_before_closing_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInConstructorDeclarationOption);// }// final Object insertSpaceBeforeClosingParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceBeforeClosingParenInEnumConstantOption != null) {// this.insert_space_before_closing_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInEnumConstantOption);// }// final Object insertSpaceBeforeClosingParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR);// if (insertSpaceBeforeClosingParenInForOption != null) {// this.insert_space_before_closing_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInForOption);// }// final Object insertSpaceBeforeClosingParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF);// if (insertSpaceBeforeClosingParenInIfOption != null) {// this.insert_space_before_closing_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInIfOption);// }// final Object insertSpaceBeforeClosingParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceBeforeClosingParenInMethodDeclarationOption != null) {// this.insert_space_before_closing_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodDeclarationOption);// }// final Object insertSpaceBeforeClosingParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceBeforeClosingParenInMethodInvocationOption != null) {// this.insert_space_before_closing_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodInvocationOption);// }// final Object insertSpaceBeforeClosingParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceBeforeClosingParenInParenthesizedExpressionOption != null) {// this.insert_space_before_closing_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInParenthesizedExpressionOption);// }// final Object insertSpaceBeforeClosingParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH);// if (insertSpaceBeforeClosingParenInSwitchOption != null) {// this.insert_space_before_closing_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSwitchOption);// }// final Object insertSpaceBeforeClosingParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceBeforeClosingParenInSynchronizedOption != null) {// this.insert_space_before_closing_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSynchronizedOption);// }// final Object insertSpaceBeforeClosingParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE);// if (insertSpaceBeforeClosingParenInWhileOption != null) {// this.insert_space_before_closing_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInWhileOption);// }// final Object insertSpaceBeforeColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT);// if (insertSpaceBeforeColonInAssertOption != null) {// this.insert_space_before_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInAssertOption);// }// final Object insertSpaceBeforeColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE);// if (insertSpaceBeforeColonInCaseOption != null) {// this.insert_space_before_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInCaseOption);// }// final Object insertSpaceBeforeColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL);// if (insertSpaceBeforeColonInConditionalOption != null) {// this.insert_space_before_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInConditionalOption);// }// final Object insertSpaceBeforeColonInDefaultOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT);// if (insertSpaceBeforeColonInDefaultOption != null) {// this.insert_space_before_colon_in_default = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInDefaultOption);// }// final Object insertSpaceBeforeColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_FOR);// if (insertSpaceBeforeColonInForOption != null) {// this.insert_space_before_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInForOption);// }// final Object insertSpaceBeforeColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT);// if (insertSpaceBeforeColonInLabeledStatementOption != null) {// this.insert_space_before_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInLabeledStatementOption);// }// final Object insertSpaceBeforeCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeCommaInAllocationExpressionOption != null) {// this.insert_space_before_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInAllocationExpressionOption);// }// final Object insertSpaceBeforeCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeCommaInArrayInitializerOption != null) {// this.insert_space_before_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInArrayInitializerOption);// }// final Object insertSpaceBeforeCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS);// if (insertSpaceBeforeCommaInConstructorDeclarationParametersOption != null) {// this.insert_space_before_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationParametersOption);// }// final Object insertSpaceBeforeCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS);// if (insertSpaceBeforeCommaInConstructorDeclarationThrowsOption != null) {// this.insert_space_before_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationThrowsOption);// }// final Object insertSpaceBeforeCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_CONSTANT_ARGUMENTS);// if (insertSpaceBeforeCommaInEnumConstantArgumentsOption != null) {// this.insert_space_before_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumConstantArgumentsOption);// }// final Object insertSpaceBeforeCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_DECLARATIONS);// if (insertSpaceBeforeCommaInEnumDeclarationsOption != null) {// this.insert_space_before_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumDeclarationsOption);// }// final Object insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS);// if (insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption != null) {// this.insert_space_before_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption);// }// final Object insertSpaceBeforeCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS);// if (insertSpaceBeforeCommaInForIncrementsOption != null) {// this.insert_space_before_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForIncrementsOption);// }// final Object insertSpaceBeforeCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS);// if (insertSpaceBeforeCommaInForInitsOption != null) {// this.insert_space_before_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForInitsOption);// }// final Object insertSpaceBeforeCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS);// if (insertSpaceBeforeCommaInMethodInvocationArgumentsOption != null) {// this.insert_space_before_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodInvocationArgumentsOption);// }// final Object insertSpaceBeforeCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS);// if (insertSpaceBeforeCommaInMethodDeclarationParametersOption != null) {// this.insert_space_before_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationParametersOption);// }// final Object insertSpaceBeforeCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS);// if (insertSpaceBeforeCommaInMethodDeclarationThrowsOption != null) {// this.insert_space_before_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationThrowsOption);// }// final Object insertSpaceBeforeCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS);// if (insertSpaceBeforeCommaInMultipleFieldDeclarationsOption != null) {// this.insert_space_before_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleFieldDeclarationsOption);// }// final Object insertSpaceBeforeCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS);// if (insertSpaceBeforeCommaInMultipleLocalDeclarationsOption != null) {// this.insert_space_before_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleLocalDeclarationsOption);// }// final Object insertSpaceBeforeCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeCommaInParameterizedTypeReferenceOption != null) {// this.insert_space_before_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES);// if (insertSpaceBeforeCommaInSuperinterfacesOption != null) {// this.insert_space_before_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInSuperinterfacesOption);// }// final Object insertSpaceBeforeCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeCommaInTypeArgumentsOption != null) {// this.insert_space_before_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeArgumentsOption);// }// final Object insertSpaceBeforeCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeCommaInTypeParametersOption != null) {// this.insert_space_before_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeParametersOption);// }// final Object insertSpaceBeforeEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ELLIPSIS);// if (insertSpaceBeforeEllipsisOption != null) {// this.insert_space_before_ellipsis = CCorePlugin.INSERT.equals(insertSpaceBeforeEllipsisOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption != null) {// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption != null) {// this.insert_space_before_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption != null) {// this.insert_space_before_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption);// }// final Object insertSpaceBeforeOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeOpeningBraceInArrayInitializerOption != null) {// this.insert_space_before_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInArrayInitializerOption);// }// final Object insertSpaceBeforeOpeningBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK);// if (insertSpaceBeforeOpeningBraceInBlockOption != null) {// this.insert_space_before_opening_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInBlockOption);// }// final Object insertSpaceBeforeOpeningBraceInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeOpeningBraceInConstructorDeclarationOption != null) {// this.insert_space_before_opening_brace_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInConstructorDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_DECLARATION);// if (insertSpaceBeforeOpeningBraceInEnumDeclarationOption != null) {// this.insert_space_before_opening_brace_in_enum_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_CONSTANT);// if (insertSpaceBeforeOpeningBraceInEnumConstantOption != null) {// this.insert_space_before_opening_brace_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumConstantOption);// }// final Object insertSpaceBeforeOpeningBraceInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION);// if (insertSpaceBeforeOpeningBraceInMethodDeclarationOption != null) {// this.insert_space_before_opening_brace_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInMethodDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION);// if (insertSpaceBeforeOpeningBraceInTypeDeclarationOption != null) {// this.insert_space_before_opening_brace_in_type_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInTypeDeclarationOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption != null) {// this.insert_space_before_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceBeforeOpeningBracketInArrayReferenceOption != null) {// this.insert_space_before_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayReferenceOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE);// if (insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption != null) {// this.insert_space_before_opening_bracket_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption);// }// final Object insertSpaceBeforeOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH);// if (insertSpaceBeforeOpeningParenInCatchOption != null) {// this.insert_space_before_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInCatchOption);// }// final Object insertSpaceBeforeOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeOpeningParenInConstructorDeclarationOption != null) {// this.insert_space_before_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInConstructorDeclarationOption);// }// final Object insertSpaceBeforeOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceBeforeOpeningParenInEnumConstantOption != null) {// this.insert_space_before_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInEnumConstantOption);// }// final Object insertSpaceBeforeOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR);// if (insertSpaceBeforeOpeningParenInForOption != null) {// this.insert_space_before_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInForOption);// }// final Object insertSpaceBeforeOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF);// if (insertSpaceBeforeOpeningParenInIfOption != null) {// this.insert_space_before_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInIfOption);// }// final Object insertSpaceBeforeOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceBeforeOpeningParenInMethodInvocationOption != null) {// this.insert_space_before_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodInvocationOption);// }// final Object insertSpaceBeforeOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceBeforeOpeningParenInMethodDeclarationOption != null) {// this.insert_space_before_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodDeclarationOption);// }// final Object insertSpaceBeforeOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH);// if (insertSpaceBeforeOpeningParenInSwitchOption != null) {// this.insert_space_before_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSwitchOption);// }// final Object insertSpaceBeforeOpeningBraceInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH);// if (insertSpaceBeforeOpeningBraceInSwitchOption != null) {// this.insert_space_before_opening_brace_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInSwitchOption);// }// final Object insertSpaceBeforeOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceBeforeOpeningParenInSynchronizedOption != null) {// this.insert_space_before_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSynchronizedOption);// }// final Object insertSpaceBeforeOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceBeforeOpeningParenInParenthesizedExpressionOption != null) {// this.insert_space_before_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInParenthesizedExpressionOption);// }// final Object insertSpaceBeforeOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE);// if (insertSpaceBeforeOpeningParenInWhileOption != null) {// this.insert_space_before_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInWhileOption);// }// final Object insertSpaceBeforeParenthesizedExpressionInReturnOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_RETURN);// if (insertSpaceBeforeParenthesizedExpressionInReturnOption != null) {// this.insert_space_before_parenthesized_expression_in_return = CCorePlugin.INSERT.equals(insertSpaceBeforeParenthesizedExpressionInReturnOption);// }// final Object insertSpaceBeforePostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR);// if (insertSpaceBeforePostfixOperatorOption != null) {// this.insert_space_before_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePostfixOperatorOption);// }// final Object insertSpaceBeforePrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR);// if (insertSpaceBeforePrefixOperatorOption != null) {// this.insert_space_before_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePrefixOperatorOption);// }// final Object insertSpaceBeforeQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL);// if (insertSpaceBeforeQuestionInConditionalOption != null) {// this.insert_space_before_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInConditionalOption);// }// final Object insertSpaceBeforeQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_WILDCARD);// if (insertSpaceBeforeQuestionInWildcardOption != null) {// this.insert_space_before_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInWildcardOption);// }// final Object insertSpaceBeforeSemicolonOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON);// if (insertSpaceBeforeSemicolonOption != null) {// this.insert_space_before_semicolon = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonOption);// }// final Object insertSpaceBeforeSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR);// if (insertSpaceBeforeSemicolonInForOption != null) {// this.insert_space_before_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonInForOption);// }// final Object insertSpaceBeforeUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR);// if (insertSpaceBeforeUnaryOperatorOption != null) {// this.insert_space_before_unary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeUnaryOperatorOption);// }// final Object insertSpaceBetweenBracketsInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE);// if (insertSpaceBetweenBracketsInArrayTypeReferenceOption != null) {// this.insert_space_between_brackets_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBetweenBracketsInArrayTypeReferenceOption);// }// final Object insertSpaceBetweenEmptyBracesInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER);// if (insertSpaceBetweenEmptyBracesInArrayInitializerOption != null) {// this.insert_space_between_empty_braces_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracesInArrayInitializerOption);// }// final Object insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption != null) {// this.insert_space_between_empty_brackets_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption);// }// final Object insertSpaceBetweenEmptyParensInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBetweenEmptyParensInConstructorDeclarationOption != null) {// this.insert_space_between_empty_parens_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInConstructorDeclarationOption);// }// final Object insertSpaceBetweenEmptyParensInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ENUM_CONSTANT);// if (insertSpaceBetweenEmptyParensInEnumConstantOption != null) {// this.insert_space_between_empty_parens_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInEnumConstantOption);// }// final Object insertSpaceBetweenEmptyParensInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION);// if (insertSpaceBetweenEmptyParensInMethodDeclarationOption != null) {// this.insert_space_between_empty_parens_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodDeclarationOption);// }// final Object insertSpaceBetweenEmptyParensInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION);// if (insertSpaceBetweenEmptyParensInMethodInvocationOption != null) {// this.insert_space_between_empty_parens_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodInvocationOption);// }// final Object compactElseIfOption = settings.get(CodeFormatterConstants.FORMATTER_COMPACT_ELSE_IF);// if (compactElseIfOption != null) {// this.compact_else_if = CodeFormatterConstants.TRUE.equals(compactElseIfOption);// }// final Object keepGuardianClauseOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE);// if (keepGuardianClauseOnOneLineOption != null) {// this.keep_guardian_clause_on_one_line = CodeFormatterConstants.TRUE.equals(keepGuardianClauseOnOneLineOption);// }// final Object keepElseStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE);// if (keepElseStatementOnSameLineOption != null) {// this.keep_else_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepElseStatementOnSameLineOption);// }// final Object keepEmptyArrayInitializerOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE);// if (keepEmptyArrayInitializerOnOneLineOption != null) {// this.keep_empty_array_initializer_on_one_line = CodeFormatterConstants.TRUE.equals(keepEmptyArrayInitializerOnOneLineOption);// }// final Object keepSimpleIfOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE);// if (keepSimpleIfOnOneLineOption != null) {// this.keep_simple_if_on_one_line = CodeFormatterConstants.TRUE.equals(keepSimpleIfOnOneLineOption);// }// final Object keepThenStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE);// if (keepThenStatementOnSameLineOption != null) {// this.keep_then_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepThenStatementOnSameLineOption);// }// final Object numberOfEmptyLinesToPreserveOption = settings.get(CodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE);// if (numberOfEmptyLinesToPreserveOption != null) {// try {// this.number_of_empty_lines_to_preserve = Integer.parseInt((String) numberOfEmptyLinesToPreserveOption);// } catch (NumberFormatException e) {// this.number_of_empty_lines_to_preserve = 0;// } catch(ClassCastException e) {// this.number_of_empty_lines_to_preserve = 0;// }// }// final Object putEmptyStatementOnNewLineOption = settings.get(CodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE);// if (putEmptyStatementOnNewLineOption != null) {// this.put_empty_statement_on_new_line = CodeFormatterConstants.TRUE.equals(putEmptyStatementOnNewLineOption);// } final Object tabSizeOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE); if (tabSizeOption != null) { try { this.tab_size = Integer.parseInt((String) tabSizeOption); } catch (NumberFormatException e) { this.tab_size = 4; } catch(ClassCastException e) { this.tab_size = 4; } } final Object useTabsOnlyForLeadingIndentationsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS); if (useTabsOnlyForLeadingIndentationsOption != null) { this.use_tabs_only_for_leading_indentations = DefaultCodeFormatterConstants.TRUE.equals(useTabsOnlyForLeadingIndentationsOption); } final Object pageWidthOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT); if (pageWidthOption != null) { try { this.page_width = Integer.parseInt((String) pageWidthOption); } catch (NumberFormatException e) { this.page_width = 80; } catch(ClassCastException e) { this.page_width = 80; } } final Object useTabOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR); if (useTabOption != null) { if (CCorePlugin.TAB.equals(useTabOption)) { this.tab_char = TAB; } else if (CCorePlugin.SPACE.equals(useTabOption)) { this.tab_char = SPACE; } else { this.tab_char = MIXED; } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/12f3dd59c579048e11942c9768bb3f6c6a45e156/DefaultCodeFormatterOptions.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/DefaultCodeFormatterOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
12,
863,
1947,
13,
288,
202,
202,
6385,
1033,
8710,
1290,
4628,
382,
17353,
2300,
1895,
273,
1947,
18,
588,
12,
1868,
1085,
5074,
2918,
18,
7254,
2560,
67,
26439,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
12,
863,
1947,
13,
288,
202,
202,
6385,
1033,
8710,
1290,
4628,
382,
17353,
2300,
1895,
273,
1947,
18,
588,
12,
1868,
1085,
5074,
2918,
18,
7254,
2560,
67,
26439,
32... | ||
this.tableDecorator); | this.tableDecorator, this.pageOffset); | public RowIterator getRowIterator(boolean full) { RowIterator iterator = new RowIterator( full ? this.rowListFull : this.rowListPage, this.headerCellList, this.tableDecorator); // copy id for logging iterator.setId(this.id); return iterator; } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/facb5b6a6cba08c3d760a129447691c0ce9b6668/TableModel.java/buggy/displaytag/src/main/java/org/displaytag/model/TableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6556,
3198,
11835,
3198,
12,
6494,
1983,
13,
565,
288,
3639,
6556,
3198,
2775,
273,
394,
6556,
3198,
12,
5411,
1983,
692,
333,
18,
492,
682,
5080,
294,
333,
18,
492,
682,
1964,
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,
6556,
3198,
11835,
3198,
12,
6494,
1983,
13,
565,
288,
3639,
6556,
3198,
2775,
273,
394,
6556,
3198,
12,
5411,
1983,
692,
333,
18,
492,
682,
5080,
294,
333,
18,
492,
682,
1964,
16... |
try { | try { | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html; charset=UTF-8"); response.setHeader("Cache-Control", "no-cache"); PrintWriter out = response.getWriter(); String command = request.getParameter("Command"); String type = request.getParameter("Type"); String currentFolder = request.getParameter("CurrentFolder"); String currentDirPath = "/access/content" + currentFolder; String fileName = ""; String errorMessage = ""; String status="0"; if (!"FileUpload".equals(command) && !"QuickUpload".equals(command)) { status = "203"; } else { DiskFileUpload upload = new DiskFileUpload(); try { List items = upload.parseRequest(request); Map fields = new HashMap(); Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = (FileItem) iter.next(); if (item.isFormField()) fields.put(item.getFieldName(), item.getString()); else fields.put(item.getFieldName(), item); } FileItem uplFile = (FileItem)fields.get("NewFile"); String filePath = uplFile.getName(); filePath = filePath.replace('\\','/'); String[] pathParts = filePath.split("/"); fileName = pathParts[pathParts.length-1]; String nameWithoutExt = fileName; String ext = ""; if (fileName.lastIndexOf(".") > 0) { nameWithoutExt = fileName.substring(0, fileName.lastIndexOf(".")); ext = fileName.substring(fileName.lastIndexOf(".")); } String mime = uplFile.getContentType(); int counter = 1; boolean done = false; while(!done) { try { ResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties(); resourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, fileName); int noti = NotificationService.NOTI_NONE; ContentHostingService.addResource(currentFolder+fileName, mime, uplFile.get(), resourceProperties, noti); done = true; } catch (IdUsedException iue) { //the name is already used, so we do a slight rename to prevent the colision fileName = nameWithoutExt + "(" + counter + ")" + ext; status = "201"; counter++; } catch (Exception ex) { //this user can't write where they are trying to write. done = true; ex.printStackTrace(); status = "203"; } } } catch (Exception ex) { ex.printStackTrace(); status = "203"; } } out.println("<script type=\"text/javascript\">"); if ("QuickUpload".equals(command)) { out.println("window.parent.OnUploadCompleted("+status+",'"+currentDirPath+fileName+"','"+fileName+"','"+errorMessage+"');"); } else { out.println("window.parent.frames['frmUpload'].OnUploadCompleted("+status+",'"+fileName+"');"); } out.println("</script>"); out.flush(); out.close(); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/ef6de0c1a2ebede6fc20642b3226269849ae4a93/FCKConnectorServlet.java/clean/textarea/FCKeditor/connector/src/java/org/sakaiproject/connector/fck/FCKConnectorServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
1377,
288,
1850,
766,
18,
542,
8046,
2932,
955,
19,
2620,
31,
4856,
33,
5159,
17,
28,
8863,
1850,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
1377,
288,
1850,
766,
18,
542,
8046,
2932,
955,
19,
2620,
31,
4856,
33,
5159,
17,
28,
8863,
1850,... |
tabScroll.setState( Settings.tabScroll ); | ctlScroll.setState( Settings.ctlScroll ); | public void show() { minimapEnabled.setState( Settings.minimapEnabled ); autoEndFiring.setState( Settings.autoEndFiring ); nagForMASC.setState( Settings.nagForMASC ); nagForPSR.setState( Settings.nagForPSR ); nagForNoAction.setState( Settings.nagForNoAction ); animateMove.setState( Settings.showMoveStep ); showWrecks.setState( Settings.showWrecks ); soundMute.setState( Settings.soundMute ); showMapHexPopup.setState( Settings.showMapHexPopup ); tooltipDelay.setText( Integer.toString(Settings.tooltipDelay ) ); // Select the correct char set (give a nice default to start). unitStartChar.select(0); for ( int loop = 0; loop < unitStartChar.getItemCount(); loop++ ) { if ( unitStartChar.getItem(loop).charAt(0) == Settings.unitStartChar ) { unitStartChar.select(loop); break; } } maxPathfinderTime.setText( Integer.toString(Settings.maxPathfinderTime ) ); rightDragScroll.setState( Settings.rightDragScroll ); tabScroll.setState( Settings.tabScroll ); clickEdgeScroll.setState( Settings.clickEdgeScroll ); autoEdgeScroll.setState( Settings.autoEdgeScroll ); scrollSensitivity.setText( Integer.toString(Settings.scrollSensitivity ) ); getFocus.setState( Settings.getFocus ); super.show(); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/04f0c587792c6ec3c64d57ba27b116b51468ffff/CommonSettingsDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CommonSettingsDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
1435,
288,
3639,
1131,
12161,
1526,
18,
542,
1119,
12,
8709,
18,
1154,
12161,
1526,
11272,
3639,
3656,
1638,
42,
11256,
18,
542,
1119,
12,
8709,
18,
6079,
1638,
42,
11256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
1435,
288,
3639,
1131,
12161,
1526,
18,
542,
1119,
12,
8709,
18,
1154,
12161,
1526,
11272,
3639,
3656,
1638,
42,
11256,
18,
542,
1119,
12,
8709,
18,
6079,
1638,
42,
11256... |
for (int j=0; j<outExts.length; j++) { for (int k=0; k<buildTools.length; k++) { ITool tool = buildTools[k]; if (!buildToolsUsed[k]) { IInputType inType = tool.getInputType(outExts[j]); if (inType != null) { String inVariable = inType.getBuildVariable(); if ((outVariable == null && inVariable == null) || (outVariable != null && inVariable != null && outVariable.equals(inVariable))) { if (addRuleForTool(buildTools[k], buffer, false, null, null, outputVarsAdditionsList, null, false)) { buildToolsUsed[k] = true; generateRulesForConsumers(buildTools[k], outputVarsAdditionsList, buffer); | if (outExts != null) { for (int j=0; j<outExts.length; j++) { for (int k=0; k<buildTools.length; k++) { ITool tool = buildTools[k]; if (!buildToolsUsed[k]) { IInputType inType = tool.getInputType(outExts[j]); if (inType != null) { String inVariable = inType.getBuildVariable(); if ((outVariable == null && inVariable == null) || (outVariable != null && inVariable != null && outVariable.equals(inVariable))) { if (addRuleForTool(buildTools[k], buffer, false, null, null, outputVarsAdditionsList, null, false)) { buildToolsUsed[k] = true; generateRulesForConsumers(buildTools[k], outputVarsAdditionsList, buffer); } | private void generateRulesForConsumers(ITool generatingTool, List outputVarsAdditionsList, StringBuffer buffer) { // Generate a build rule for any tool that consumes the output of this tool IOutputType[] outTypes = generatingTool.getOutputTypes(); for (int i=0; i<outTypes.length; i++) { String[] outExts = outTypes[i].getOutputExtensions(); String outVariable = outTypes[i].getBuildVariable(); for (int j=0; j<outExts.length; j++) { for (int k=0; k<buildTools.length; k++) { ITool tool = buildTools[k]; if (!buildToolsUsed[k]) { // Also has to match build variables if specified IInputType inType = tool.getInputType(outExts[j]); if (inType != null) { String inVariable = inType.getBuildVariable(); if ((outVariable == null && inVariable == null) || (outVariable != null && inVariable != null && outVariable.equals(inVariable))) { if (addRuleForTool(buildTools[k], buffer, false, null, null, outputVarsAdditionsList, null, false)) { buildToolsUsed[k] = true; // Look for tools that consume the output generateRulesForConsumers(buildTools[k], outputVarsAdditionsList, buffer); } } } } } } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d2122bb6df9a681edea5a1d201215714d12bb286/GnuMakefileGenerator.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
3238,
918,
2103,
4478,
1290,
23538,
12,
45,
6364,
12516,
6364,
16,
987,
876,
5555,
986,
5029,
682,
16,
6674,
1613,
13,
288,
202,
202,
759,
225,
6654,
279,
1361,
1720,
364,
1281,
5226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
3238,
918,
2103,
4478,
1290,
23538,
12,
45,
6364,
12516,
6364,
16,
987,
876,
5555,
986,
5029,
682,
16,
6674,
1613,
13,
288,
202,
202,
759,
225,
6654,
279,
1361,
1720,
364,
1281,
5226,
... |
return db.name; } catch (IOException e) { Core.consoleErrorMessage (component_name, "IOerror saving file " + f); return db.name; } | return db.name; | public String saveChunkDBFile (ConfigChunkDB db, File f) { if (f == null) return db.name; try { DataOutputStream out = new DataOutputStream(new FileOutputStream(f)); ConfigIO.writeConfigChunkDB (out, db, ConfigIO.DEFAULT); Core.consoleInfoMessage (component_name, "Saved ChunkDB file: " + f); db.need_to_save = false; /* do some fixing up if the name changed */ db.setFile (f); renameChunkDB (db, f.getName());// String newname = db.getFile().getName();// if (!newname.equals(db.getName())) {// db.setName (createUniqueChunkDBName(newname));// } return db.name; } catch (IOException e) { Core.consoleErrorMessage (component_name, "IOerror saving file " + f); return db.name; } } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/10b854969f65413cc815bea5c04bca7665b8a67a/ConfigModule.java/buggy/modules/jackal/editorgui/org/vrjuggler/jccl/editorgui/ConfigModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1923,
5579,
2290,
812,
261,
809,
5579,
2290,
1319,
16,
1387,
284,
13,
288,
202,
430,
261,
74,
422,
446,
13,
202,
565,
327,
1319,
18,
529,
31,
202,
698,
288,
202,
565,
28680... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1923,
5579,
2290,
812,
261,
809,
5579,
2290,
1319,
16,
1387,
284,
13,
288,
202,
430,
261,
74,
422,
446,
13,
202,
565,
327,
1319,
18,
529,
31,
202,
698,
288,
202,
565,
28680... |
final List paramElements = readCacheInputAsDOM4J (pipelineContext, INPUT_FILTER).getRootElement().elements("param"); if (groupElements.size() != paramElements.size()) throw new OXFException("Number of parameters does not match number of groups in path expression"); for (Iterator paramIterator = paramElements.iterator(), groupIterator = groupElements.iterator(); paramIterator.hasNext();) { final Element paramElement = (Element) paramIterator.next(); | final Element inputFilterRootElement = readCacheInputAsDOM4J (pipelineContext, INPUT_FILTER).getRootElement(); final List setValueElements; { final List paramElements = inputFilterRootElement.elements("param"); if (paramElements != null && paramElements.size() > 0) setValueElements = paramElements; else setValueElements = inputFilterRootElement.elements("setvalue"); } if (groupElements.size() != setValueElements.size()) throw new OXFException("Number of <setvalue> or <param> elements does not match number of groups in path regular expression"); for (Iterator setValueIterator = setValueElements.iterator(), groupIterator = groupElements.iterator(); setValueIterator.hasNext();) { final Element paramElement = (Element) setValueIterator.next(); | public void updateInstance(XFormsInstance localInstance) { // Update instance from request int[] ids = requestParameters.getIds(); for (int i = 0; i < ids.length; i++) { int id = ids[i]; localInstance.setValueForId(id, requestParameters.getValue(id), requestParameters.getType(id)); } // Update instance from path info { final List groupElements = readCacheInputAsDOM4J (pipelineContext, INPUT_MATCHER_RESULT).getRootElement().elements("group"); final List paramElements = readCacheInputAsDOM4J (pipelineContext, INPUT_FILTER).getRootElement().elements("param"); if (groupElements.size() != paramElements.size()) throw new OXFException("Number of parameters does not match number of groups in path expression"); for (Iterator paramIterator = paramElements.iterator(), groupIterator = groupElements.iterator(); paramIterator.hasNext();) { final Element paramElement = (Element) paramIterator.next(); final Element groupElement = (Element) groupIterator.next(); final String value = groupElement.getStringValue(); if (!"".equals(value)) localInstance.setValueForParam(pipelineContext, paramElement.attributeValue("ref"), Dom4jUtils.getNamespaceContext(paramElement), value); } } if (logger.isDebugEnabled()) logger.debug("1) Instance recontructed from request:\n" + Dom4jUtils.domToString(localInstance.getInstanceDocument())); // Run actions // TODO: this has to be done in Model Action[] actions = requestParameters.getActions(); for (int i = 0; i < actions.length; i++) { Action action = actions[i]; action.run(pipelineContext, new ActionFunctionContext(), requestParameters.getEncryptionKey(), localInstance.getInstanceDocument()); } if (logger.isDebugEnabled()) logger.debug("2) Instance with actions applied:\n" + Dom4jUtils.domToString(localInstance.getInstanceDocument())); } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/ebb20d7f04612de8afbdc334b3b35a0c2dfb106a/XFormsInput.java/buggy/src/java/org/orbeon/oxf/processor/xforms/input/XFormsInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
1089,
1442,
12,
60,
18529,
1442,
1191,
1442,
13,
288,
18701,
368,
2315,
791,
628,
590,
18701,
509,
8526,
3258,
273,
590,
2402,
18,
588,
2673,
5621,
18701,
364,
261,
474,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
1089,
1442,
12,
60,
18529,
1442,
1191,
1442,
13,
288,
18701,
368,
2315,
791,
628,
590,
18701,
509,
8526,
3258,
273,
590,
2402,
18,
588,
2673,
5621,
18701,
364,
261,
474,
277,
... |
if (methods[i].getDeclaringClass() == clazz && methods[i].getName().equals(name)){ | if (methods[i].getName().equals(name)) { | public static Method[] findMethods(Class clazz, String name) { Vector v = new Vector(5); Method[] methods = clazz.getMethods(); for (int i=0; i < methods.length; i++) { if (methods[i].getDeclaringClass() == clazz && methods[i].getName().equals(name)){ v.addElement(methods[i]); } } if (v.size() == 0) { return null; } Method[] result = new Method[v.size()]; v.copyInto(result); return result; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3a479188da44f3c7dec47edf7224c5be9738dae8/FunctionObject.java/buggy/js/rhino/org/mozilla/javascript/FunctionObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2985,
8526,
1104,
4712,
12,
797,
4003,
16,
514,
508,
13,
288,
3639,
5589,
331,
273,
394,
5589,
12,
25,
1769,
3639,
2985,
8526,
2590,
273,
4003,
18,
588,
4712,
5621,
3639,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
8526,
1104,
4712,
12,
797,
4003,
16,
514,
508,
13,
288,
3639,
5589,
331,
273,
394,
5589,
12,
25,
1769,
3639,
2985,
8526,
2590,
273,
4003,
18,
588,
4712,
5621,
3639,
364... |
throw new IllegalArgumentException("Invalid key code"); | throw new IllegalArgumentException(Messages.getString("awt.1B")); | private byte translateKeyCode(int keyCode) { int vKey = keyCode; switch (keyCode) { case KeyEvent.VK_ENTER: vKey = WindowsDefs.VK_RETURN; break; case KeyEvent.VK_INSERT: vKey = WindowsDefs.VK_INSERT; break; case KeyEvent.VK_DELETE: vKey = WindowsDefs.VK_DELETE; break; case KeyEvent.VK_SEMICOLON: vKey = WindowsDefs.VK_OEM_1; break; case KeyEvent.VK_SLASH: vKey = WindowsDefs.VK_OEM_2; break; case KeyEvent.VK_OPEN_BRACKET: vKey = WindowsDefs.VK_OEM_4; break; case KeyEvent.VK_BACK_SLASH: vKey = WindowsDefs.VK_OEM_5; break; case KeyEvent.VK_CLOSE_BRACKET: vKey = WindowsDefs.VK_OEM_6; break; case KeyEvent.VK_COMMA: vKey = WindowsDefs.VK_OEM_COMMA; break; case KeyEvent.VK_PERIOD: vKey = WindowsDefs.VK_OEM_PERIOD; break; case KeyEvent.VK_MINUS: vKey = WindowsDefs.VK_OEM_MINUS; break; case KeyEvent.VK_EQUALS: vKey = WindowsDefs.VK_OEM_PLUS; break; } if ((keyCode >= KeyEvent.VK_F13) && (keyCode <= KeyEvent.VK_F24)) { vKey = WindowsDefs.VK_F13 + keyCode - KeyEvent.VK_F13; } if ( (vKey < 3) || (vKey > 254) || (vKey >=4) && (vKey <= 7) || (vKey >= 0xA) && (vKey <= 0xB) || (vKey >= 0xE) && (vKey <= 0xF) || (vKey == 0x16) || (vKey == 0x1A) || (vKey >= 0x3A) && (vKey <= 0x40) || (vKey >= 0x5B) && (vKey <= 0x5F) || (vKey >= 0x88) && (vKey <= 0x8F) || (vKey >= 0x92) && (vKey <= 0x9F) || (vKey >= 0xB8) && (vKey <= 0xB9) || (vKey >= 0xC1) && (vKey <= 0xDA) || (vKey >= 0xE0) && (vKey <= 0xE1) || (vKey >= 0xE3) && (vKey <= 0xE4) || (vKey == 0xE6) || (vKey >= 0xE8) && (vKey <= 0xF5)) { throw new IllegalArgumentException("Invalid key code"); } return (byte) vKey; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e6ce79da0ad0459deff86829b48b541975a9b721/WinRobot.java/clean/modules/awt/src/main/java/windows/org/apache/harmony/awt/wtk/windows/WinRobot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
4204,
653,
1085,
12,
474,
16369,
13,
288,
3639,
509,
331,
653,
273,
16369,
31,
3639,
1620,
261,
856,
1085,
13,
288,
3639,
648,
23737,
18,
58,
47,
67,
12278,
30,
5411,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
4204,
653,
1085,
12,
474,
16369,
13,
288,
3639,
509,
331,
653,
273,
16369,
31,
3639,
1620,
261,
856,
1085,
13,
288,
3639,
648,
23737,
18,
58,
47,
67,
12278,
30,
5411,
331,
... |
if (result != Scriptable.NOT_FOUND && result instanceof Function) { | if (result != Scriptable.NOT_FOUND && result instanceof Function) { | public Object invoke(Object thisArg) throws Exception { org.mozilla.javascript.Context cx = Context.enter(); try { Scriptable thisObj; if (!(thisArg instanceof Scriptable)) { thisObj = Context.toObject(thisArg, scope); } else { thisObj = (Scriptable)thisArg; } Object result = ScriptableObject.getProperty(thisObj, name); if (result == Scriptable.NOT_FOUND) { result = ScriptableObject.getProperty(thisObj, "get" + StringUtils.capitalize(name)); if (result != Scriptable.NOT_FOUND && result instanceof Function) { try { result = ((Function)result).call(cx, ScriptableObject.getTopLevelScope(thisObj), thisObj, new Object[] {}); } catch (JavaScriptException exc) { exc.printStackTrace(); result = null; } } } if (result == Scriptable.NOT_FOUND || result == Undefined.instance) { result = null; } else if (result instanceof Wrapper) { if (!(result instanceof NativeJavaClass)) { result = ((Wrapper)result).unwrap(); } } return result; } finally { Context.exit(); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/5825dcbb894fc7e13def0d7cbe9add87b9888009/JXTemplateGenerator.java/clean/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
4356,
12,
921,
20134,
13,
1216,
1185,
288,
7734,
2358,
18,
8683,
15990,
18,
11242,
18,
1042,
9494,
273,
1772,
18,
2328,
5621,
7734,
775,
288,
10792,
22780,
15261,
31,
10792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
4356,
12,
921,
20134,
13,
1216,
1185,
288,
7734,
2358,
18,
8683,
15990,
18,
11242,
18,
1042,
9494,
273,
1772,
18,
2328,
5621,
7734,
775,
288,
10792,
22780,
15261,
31,
10792,
... |
IModuleNameSpace elementResolver = module | IModuleNameScope elementResolver = module | public void resolve( Module module, PropertyDefn defn, ElementRefValue ref ) { if ( ref.isResolved( ) ) return; ElementDefn targetDefn = (ElementDefn) defn.getTargetElementType( ); // Let the corresponding name scope do the resolve things for the // element reference value. The scope will search the target element not // only in the current root namespace, but also in the included // libraries namespace. IModuleNameSpace elementResolver = module .getModuleNameSpace( targetDefn.getNameSpaceID( ) ); String name = ReferenceValueUtil.needTheNamespacePrefix( ref, module ); // special case for theme property since it can be direcly referred. DesignElement target = null; target = elementResolver.resolve( name, defn ).getElement( ); if ( target != null ) ref.resolve( target ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b5833a1e367eb18d2954f384e496137a276c1324/ElementRefPropertyType.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ElementRefPropertyType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2245,
12,
5924,
1605,
16,
4276,
3262,
82,
1652,
82,
16,
3010,
30556,
1278,
262,
202,
95,
202,
202,
430,
261,
1278,
18,
291,
12793,
12,
262,
262,
1082,
202,
2463,
31,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
12,
5924,
1605,
16,
4276,
3262,
82,
1652,
82,
16,
3010,
30556,
1278,
262,
202,
95,
202,
202,
430,
261,
1278,
18,
291,
12793,
12,
262,
262,
1082,
202,
2463,
31,
20... |
mv.removeMouseListener(this); | Main.map.mapView.removeMouseListener(this); | @Override public void exitMode() { super.exitMode(); mv.removeMouseListener(this); } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/65d8ba1e1c7192a02b1c996304587a81a85155f1/DeleteAction.java/clean/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
36,
6618,
1071,
918,
2427,
2309,
1435,
288,
202,
202,
9565,
18,
8593,
2309,
5621,
202,
202,
17509,
18,
4479,
9186,
2223,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
36,
6618,
1071,
918,
2427,
2309,
1435,
288,
202,
202,
9565,
18,
8593,
2309,
5621,
202,
202,
17509,
18,
4479,
9186,
2223,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return (ServiceInfo)keysToServices.get(key); | return (ServiceInfo)keysToServiceInfos.get(key); | public ServiceInfo get(ServiceInfo.Key key) { lock(); try { return (ServiceInfo)keysToServices.get(key); } finally { unlock(); } } | 6331 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6331/bd747a5730034ba0e82d588546b90ee21644dd3f/ServiceInfoCache.java/clean/garden/livetribe-slp/trunk/src/main/java/org/livetribe/slp/spi/ServiceInfoCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1956,
966,
336,
12,
1179,
966,
18,
653,
498,
13,
565,
288,
3639,
2176,
5621,
3639,
775,
3639,
288,
5411,
327,
261,
1179,
966,
13,
2452,
774,
1179,
7655,
18,
588,
12,
856,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1956,
966,
336,
12,
1179,
966,
18,
653,
498,
13,
565,
288,
3639,
2176,
5621,
3639,
775,
3639,
288,
5411,
327,
261,
1179,
966,
13,
2452,
774,
1179,
7655,
18,
588,
12,
856,
1769,
... |
case Id_getUTCFullYear: { double t = realThis(thisObj, f).date; | case Id_getUTCFullYear: | public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(DATE_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case ConstructorId_now: return wrap_double(now()); case ConstructorId_parse: { String dataStr = ScriptRuntime.toString(args, 0); return wrap_double(date_parseString(dataStr)); } case ConstructorId_UTC: return wrap_double(jsStaticFunction_UTC(args)); case Id_constructor: { // if called as a function, just return a string // representing the current time. if (thisObj != null) return date_format(now(), Id_toString); return jsConstructor(args); } case Id_toString: case Id_toTimeString: case Id_toDateString: return date_format(realThis(thisObj, f).date, id); case Id_toLocaleString: case Id_toLocaleTimeString: case Id_toLocaleDateString: return toLocale_helper(realThis(thisObj, f).date, id); case Id_toUTCString: { double t = realThis(thisObj, f).date; if (t == t) { return js_toUTCString(t); } return js_NaN_date_str; } case Id_toSource: { double t = realThis(thisObj, f).date; return "(new Date("+ScriptRuntime.toString(t)+"))"; } case Id_valueOf: case Id_getTime: return wrap_double(realThis(thisObj, f).date); case Id_getYear: case Id_getFullYear: case Id_getUTCFullYear: { double t = realThis(thisObj, f).date; if (t == t) { if (id != Id_getUTCFullYear) t = LocalTime(t); t = YearFromTime(t); if (id == Id_getYear) { if (cx.hasFeature(Context.FEATURE_NON_ECMA_GET_YEAR)) { if (1900 <= t && t < 2000) { t -= 1900; } } else { t -= 1900; } } } return wrap_double(t); } case Id_getMonth: case Id_getUTCMonth: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMonth) t = LocalTime(t); t = MonthFromTime(t); } return wrap_double(t); } case Id_getDate: case Id_getUTCDate: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getDate) t = LocalTime(t); t = DateFromTime(t); } return wrap_double(t); } case Id_getDay: case Id_getUTCDay: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getDay) t = LocalTime(t); t = WeekDay(t); } return wrap_double(t); } case Id_getHours: case Id_getUTCHours: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getHours) t = LocalTime(t); t = HourFromTime(t); } return wrap_double(t); } case Id_getMinutes: case Id_getUTCMinutes: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMinutes) t = LocalTime(t); t = MinFromTime(t); } return wrap_double(t); } case Id_getSeconds: case Id_getUTCSeconds: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getSeconds) t = LocalTime(t); t = SecFromTime(t); } return wrap_double(t); } case Id_getMilliseconds: case Id_getUTCMilliseconds: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMilliseconds) t = LocalTime(t); t = msFromTime(t); } return wrap_double(t); } case Id_getTimezoneOffset: { double t = realThis(thisObj, f).date; if (t == t) { t = (t - LocalTime(t)) / msPerMinute; } return wrap_double(t); } case Id_setTime: { NativeDate real = realThis(thisObj, f); double t = ScriptRuntime.toNumber(args, 0); real.date = TimeClip(t); return wrap_double(real.date); } case Id_setMilliseconds: case Id_setUTCMilliseconds: case Id_setSeconds: case Id_setUTCSeconds: case Id_setMinutes: case Id_setUTCMinutes: case Id_setHours: case Id_setUTCHours: return wrap_double(realThis(thisObj, f).makeTime(args, id)); case Id_setDate: case Id_setUTCDate: case Id_setMonth: case Id_setUTCMonth: case Id_setFullYear: case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f).makeDate(args, id)); case Id_setYear: { double year = ScriptRuntime.toNumber(args, 0); return wrap_double(realThis(thisObj, f).js_setYear(year)); } default: throw new IllegalArgumentException(String.valueOf(id)); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/ef2adbe0e46291a57bc6c6eda9ce45275f62985c/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
548,
1477,
12,
548,
2083,
921,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
74,
18,
5332,
1805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
548,
1477,
12,
548,
2083,
921,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
74,
18,
5332,
1805,
... |
} catch (Throwable t) { | } catch (Throwable t) { | public void run() { try { myConsumer_.push(event_); event_ = null; sent_ = true; } catch (Throwable t) { error_ = true; } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b2aa91a672be3f8bd14c3402b93d9a1d919f304c/CosEventPushSender.java/clean/test/regression/src/org/jacorb/test/notification/CosEventPushSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
5411,
3399,
5869,
27799,
6206,
12,
2575,
67,
1769,
5411,
871,
67,
273,
446,
31,
5411,
3271,
67,
273,
638,
31,
3639,
289,
1044,
261,
15155,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
5411,
3399,
5869,
27799,
6206,
12,
2575,
67,
1769,
5411,
871,
67,
273,
446,
31,
5411,
3271,
67,
273,
638,
31,
3639,
289,
1044,
261,
15155,
26... |
private String getFullyQualifiedClassName(String in) { String inLower = in.toLowerCase(); String preamble = "c:\\data\\pmd\\pmd\\src\\"; int preambleend = inLower.indexOf(preamble) + preamble.length(); String classNameWithSlashes = in.substring(preambleend); String className = classNameWithSlashes.replace('\\','.'); | private String getFullyQualifiedClassName(String in, SourcePath sourcePath) { String classNameWithSlashes = sourcePath.clipPath(in); String className = classNameWithSlashes.replace(System.getProperty("file.separator").charAt(0),'.'); | private String getFullyQualifiedClassName(String in) { String inLower = in.toLowerCase(); String preamble = "c:\\data\\pmd\\pmd\\src\\"; int preambleend = inLower.indexOf(preamble) + preamble.length(); String classNameWithSlashes = in.substring(preambleend); String className = classNameWithSlashes.replace('\\','.'); return className.substring(0, className.indexOf(".java")); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/658fc4a1fb27408fb690399d0c2d957080d28915/IDEAJRenderer.java/buggy/pmd/src/net/sourceforge/pmd/renderers/IDEAJRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
10208,
93,
8708,
3834,
12,
780,
316,
13,
288,
3639,
514,
316,
4070,
273,
316,
18,
869,
5630,
5621,
3639,
514,
27841,
273,
315,
71,
31027,
892,
1695,
84,
1264,
1695,
84,
1264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
10208,
93,
8708,
3834,
12,
780,
316,
13,
288,
3639,
514,
316,
4070,
273,
316,
18,
869,
5630,
5621,
3639,
514,
27841,
273,
315,
71,
31027,
892,
1695,
84,
1264,
1695,
84,
1264,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.