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 (resultCode == null) { throw new IllegalArgumentException("resultCode == null"); } else if (resultCode.getSuccess()) { | if (resultCode != null && resultCode.getSuccess()) { | public void fail(ResultCode resultCode) throws IllegalArgumentException, IllegalStateException, InvalidResponseException, IOException { // Check state if (_state != BEFORE_START) { throw new IllegalStateException("The state is " + _state + '.'); } // Check argument if (resultCode == null) { throw new IllegalArgumentException("resultCode == null"); } else if (resultCode.getSuccess()) { throw new IllegalArgumentException("resultCode.getSuccess() == true"); } startResponse(resultCode); endResponse(); } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/e9868913fab9fd94b55b46029799e5ccba68119b/CallContext.java/clean/src/java-server-framework/org/xins/server/CallContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
2321,
12,
1253,
1085,
563,
1085,
13,
282,
1216,
2754,
16,
5477,
16,
1962,
17363,
16,
1860,
288,
1377,
368,
2073,
919,
1377,
309,
261,
67,
2019,
480,
21203,
67,
7570,
13,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
2321,
12,
1253,
1085,
563,
1085,
13,
282,
1216,
2754,
16,
5477,
16,
1962,
17363,
16,
1860,
288,
1377,
368,
2073,
919,
1377,
309,
261,
67,
2019,
480,
21203,
67,
7570,
13,
288,... |
if (!opt.showQualified) { int dotpos = r.lastIndexOf('.'); if (dotpos != -1) r = r.substring(dotpos + 1, r.length()); } opt.w.print("\t" + info.name + "[label=\"" + r + "\""); | opt.w.print("\t" + info.name + "[label=\"" + qualifiedName(r) + "\""); | public void printExtraClasses() { Collection myClassInfos = classnames.entrySet(); Iterator iter = myClassInfos.iterator(); while (iter.hasNext()) { Map.Entry entry = (Entry) iter.next(); ClassInfo info = (ClassInfo) entry.getValue(); if (!info.nodePrinted) { String r = entry.getKey().toString(); opt.w.println("\t// " + r); if (!opt.showQualified) { // Create readable string by stripping leading path int dotpos = r.lastIndexOf('.'); if (dotpos != -1) r = r.substring(dotpos + 1, r.length()); } opt.w.print("\t" + info.name + "[label=\"" + r + "\""); opt.w.print(", fontname=\"" + opt.nodeFontName + "\""); if (opt.nodeFillColor != null) opt.w.print(", style=filled, fillcolor=\"" + opt.nodeFillColor + "\""); opt.w.print(", fontcolor=\"" + opt.nodeFontColor + "\""); opt.w.print(", fontsize=" + opt.nodeFontSize); opt.w.print(", URL=\"" + classToUrl(entry.getKey().toString()) + "\""); opt.w.println("]"); } } } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/4a75054c75a44907b7cd33d28d2d6422c86363e1/ClassInfo.java/clean/src/org/umlgraph/doclet/ClassInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
7800,
4818,
1435,
288,
202,
202,
2532,
3399,
797,
7655,
273,
667,
1973,
18,
4099,
694,
5621,
202,
202,
3198,
1400,
273,
3399,
797,
7655,
18,
9838,
5621,
202,
202,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
7800,
4818,
1435,
288,
202,
202,
2532,
3399,
797,
7655,
273,
667,
1973,
18,
4099,
694,
5621,
202,
202,
3198,
1400,
273,
3399,
797,
7655,
18,
9838,
5621,
202,
202,
1... |
OutputStreamWriter osr; | public HttpConnection(Socket client_socket, HttpServer server) { client = client_socket; this.server = server; InputStreamReader isr; OutputStreamWriter osr; try { isr = new InputStreamReader(client.getInputStream()); in = new BufferedReader(isr); out = client.getOutputStream(); // osr = new OutputStreamWriter(client.getOutputStream()); // out = new BufferedWriter(osr); } catch (IOException e) { try { close(); } catch (IOException e2) { ; } System.err.println("Exception while getting socket streams: " + e); return; } this.start(); } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/a49aecd3e82c1f27c96d5cbbcb6fa6c2f6af4ea7/HttpConnection.java/clean/src/openmap/com/bbn/openmap/layer/util/http/HttpConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2541,
1952,
12,
4534,
1004,
67,
7814,
16,
31500,
1438,
13,
288,
3639,
1004,
273,
1004,
67,
7814,
31,
3639,
333,
18,
3567,
273,
1438,
31,
3639,
15322,
353,
86,
31,
7734,
775,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2541,
1952,
12,
4534,
1004,
67,
7814,
16,
31500,
1438,
13,
288,
3639,
1004,
273,
1004,
67,
7814,
31,
3639,
333,
18,
3567,
273,
1438,
31,
3639,
15322,
353,
86,
31,
7734,
775,
288,
... | |
int slot = m.getOffset() >>> LOG_BYTES_IN_INT; | int slot = m.getOffsetAsInt() >>> LOG_BYTES_IN_INT; | public void updateJTOCEntry(VM_Method m) { if (VM.VerifyAssertions) VM._assert(m.getDeclaringClass() == this); if (VM.VerifyAssertions) VM._assert(isResolved()); if (VM.VerifyAssertions) VM._assert(m.isStatic() || m.isObjectInitializer()); int slot = m.getOffset() >>> LOG_BYTES_IN_INT; VM_Statics.setSlotContents(slot, m.getCurrentInstructions()); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_Class.java/clean/rvm/src/vm/classLoader/VM_Class.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
46,
4296,
39,
1622,
12,
7397,
67,
1305,
312,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
81,
18,
588,
3456,
14682,
1435,
422,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
46,
4296,
39,
1622,
12,
7397,
67,
1305,
312,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
81,
18,
588,
3456,
14682,
1435,
422,
333,
... |
public String getDisplayNameID() { // TODO Auto-generated method stub return sDisplayNameID; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b0f36fc4704acc8ae1f0b18a30016373b41690ab/ChartChoiceDefinitionImpl.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartChoiceDefinitionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
20524,
734,
1435,
95,
759,
6241,
4965,
17,
11168,
2039,
12847,
6154,
20524,
734,
31,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
20524,
734,
1435,
95,
759,
6241,
4965,
17,
11168,
2039,
12847,
6154,
20524,
734,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
if(!descriptor.getName().equals( GrailsDomainClassProperty.META_CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.TRANSIENT) && !descriptor.getName().equals( GrailsDomainClassProperty.RELATES_TO_MANY) && !descriptor.getName().equals( GrailsDomainClassProperty.EVANESCENT) && !descriptor.getName().equals( GrailsDomainClassProperty.OPTIONAL) && !descriptor.getName().equals( GrailsDomainClassProperty.CONSTRAINTS )&& !descriptor.getName().equals( GrailsDomainClassProperty.MAPPED_BY ) && !descriptor.getName().equals( GrailsDomainClassProperty.BELONGS_TO ) ) { | if(isNotConfigurational(descriptor) ) { | public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = (Map)getPropertyValue( GrailsDomainClassProperty.RELATES_TO_MANY, Map.class ); if(this.relationshipMap == null) { this.relationshipMap = new HashMap(); } // process the constraints evaluateConstraints(); // get mapped by setting if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(!descriptor.getName().equals( GrailsDomainClassProperty.META_CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.TRANSIENT) && !descriptor.getName().equals( GrailsDomainClassProperty.RELATES_TO_MANY) && !descriptor.getName().equals( GrailsDomainClassProperty.EVANESCENT) && !descriptor.getName().equals( GrailsDomainClassProperty.OPTIONAL) && !descriptor.getName().equals( GrailsDomainClassProperty.CONSTRAINTS )&& !descriptor.getName().equals( GrailsDomainClassProperty.MAPPED_BY ) && !descriptor.getName().equals( GrailsDomainClassProperty.BELONGS_TO ) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); } | 54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/b6ef9ddec7862d8efa8e6b63db67dfa714830c8a/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705... |
if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i); REMatch tryMatch = (REMatch) mymatch.clone(); if (tk.match(input, tryMatch)) { if (negative) return false; if (next(input, tryMatch)) { if (last == null) { newMatch = tryMatch; last = tryMatch; } else { last.next = tryMatch; last = tryMatch; } } } } if (newMatch != null) { if (negative) { return false; } else { mymatch.assignFrom(newMatch); return true; } } else { if (negative) { ++mymatch.index; return next(input, mymatch); } else { return false; } | return negative ? matchN(input, mymatch) : matchP(input, mymatch); | boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i); REMatch tryMatch = (REMatch) mymatch.clone(); if (tk.match(input, tryMatch)) { // match was successful if (negative) return false; if (next(input, tryMatch)) { // Add tryMatch to list of possibilities. if (last == null) { newMatch = tryMatch; last = tryMatch; } else { last.next = tryMatch; last = tryMatch; } } // next succeeds } // is a match } // try next option if (newMatch != null) { if (negative) { return false; } else { // set contents of mymatch equal to newMatch // try each one that matched mymatch.assignFrom(newMatch); return true; } } else { if (negative) { ++mymatch.index; return next(input, mymatch); } else { return false; } } // index+1 works for [^abc] lists, not for generic lookahead (--> index) } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
845,
12,
2156,
15034,
810,
16,
2438,
2060,
3399,
1916,
13,
288,
565,
309,
261,
13258,
597,
261,
2630,
18,
3001,
861,
12,
4811,
1916,
18,
1615,
13,
422,
3703,
15034,
18,
5069,
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,
377,
1250,
845,
12,
2156,
15034,
810,
16,
2438,
2060,
3399,
1916,
13,
288,
565,
309,
261,
13258,
597,
261,
2630,
18,
3001,
861,
12,
4811,
1916,
18,
1615,
13,
422,
3703,
15034,
18,
5069,
67,
... |
catch(IOException io_ex1) { | catch(IOException ex) { | public void run() { try { synchronized(mutex) { if(client_sock == null) return; in=client_sock.getInputStream(); } int b=0; do { b=in.read(); } while(b != ABNORMAL_TERMINATION && b != NORMAL_TERMINATION); } catch(IOException io_ex1) { } finally { Socket sock=client_sock; // PATCH: avoid race condition causing NPE if (sock != null && !sock.isClosed()) closeClientSocket(); synchronized(clients) { clients.remove(this); } } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/87060ba56ffd3be3e449afa753756e5aefc422c8/FD_SOCK.java/buggy/src/org/jgroups/protocols/FD_SOCK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
3852,
12,
29946,
13,
288,
10792,
309,
12,
2625,
67,
15031,
422,
446,
13,
13491,
327,
31,
10792,
316,
33,
2625,
67,
15031,
18,
588,
4348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
3852,
12,
29946,
13,
288,
10792,
309,
12,
2625,
67,
15031,
422,
446,
13,
13491,
327,
31,
10792,
316,
33,
2625,
67,
15031,
18,
588,
4348... |
public Object invoke(Invocation invocation) throws Throwable { invokeInvocation.setActual(invocation); if (invokeThrow != null) { throw invokeThrow; } return invokeResult; } | public Object invoke( Invocation invocation ) throws Throwable { invokeInvocation.setActual(invocation); if (invokeThrow != null) { throw invokeThrow; } return invokeResult; } | public Object invoke(Invocation invocation) throws Throwable { invokeInvocation.setActual(invocation); if (invokeThrow != null) { throw invokeThrow; } return invokeResult; } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/MockInvokable.java/clean/jmock/core/src/test/jmock/core/testsupport/MockInvokable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
9267,
9495,
13,
1216,
4206,
288,
3639,
4356,
9267,
18,
542,
11266,
12,
5768,
4431,
1769,
3639,
309,
261,
14407,
8282,
480,
446,
13,
288,
5411,
604,
4356,
8282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
9267,
9495,
13,
1216,
4206,
288,
3639,
4356,
9267,
18,
542,
11266,
12,
5768,
4431,
1769,
3639,
309,
261,
14407,
8282,
480,
446,
13,
288,
5411,
604,
4356,
8282,
31,
... |
if( !compiler.compile( t)) { | cr = tt.getResolver( t); if( cr == null) { | public ClassType findClass( String name) throws TypeCheckException { Target t; try { t = tf.createClassTarget( name); } catch( IOException e1) { // e1.printStackTrace(); throw new NoClassException( "Class " + name + " not found."); } Compiler compiler = new Compiler(); try { if( !compiler.compile( t)) { throw new NoClassException( "Errors while parsing " + t.getName()); } } catch( IOException e2) { throw new NoClassException( "IOException while reading " + t.getName() + ": " + e2.getMessage()); } return Compiler.getParsedClassResolver().findClass( name); } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/e414d802d383f8a4d7300493ce46984dbdecb299/SourceFileClassResolver.java/buggy/src/polyglot/types/SourceFileClassResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
559,
1104,
797,
12,
514,
508,
13,
1216,
1412,
1564,
503,
225,
288,
565,
5916,
268,
31,
3639,
775,
565,
288,
1377,
268,
273,
3253,
18,
2640,
797,
2326,
12,
508,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
559,
1104,
797,
12,
514,
508,
13,
1216,
1412,
1564,
503,
225,
288,
565,
5916,
268,
31,
3639,
775,
565,
288,
1377,
268,
273,
3253,
18,
2640,
797,
2326,
12,
508,
1769,
565,
... |
write (new char[] { (char)c }, 0, 1); | if (len < 0 || off < 0 || off + len > str.length()) { throw new IndexOutOfBoundsException(); } synchronized(lock) { checkIfStillOpen(); super.write(str, off, len); } | public void write(int c) throws IOException{ write (new char[] { (char)c }, 0, 1);} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/1ec8969a05c3f09c4b5b6551bf396137acb82de2/OutputStreamWriter.java/buggy/libraries/javalib/java/io/OutputStreamWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
12,
474,
276,
13,
1216,
1860,
95,
202,
2626,
261,
2704,
1149,
8526,
288,
261,
3001,
13,
71,
19879,
374,
16,
404,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
1045,
12,
474,
276,
13,
1216,
1860,
95,
202,
2626,
261,
2704,
1149,
8526,
288,
261,
3001,
13,
71,
19879,
374,
16,
404,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
dataItems = new LinkedHashSet(); | public void process(Reader reader) throws Exception { seenMap = new LinkedHashMap(); dataItems = new LinkedHashSet(); opCount = 0; time = System.currentTimeMillis(); start = time; File f = new File("build/tmp/mage/mageconvert.xml"); try { Writer fileWriter = new FileWriter(f); int c; while ((c = reader.read()) > 0) { fileWriter.write(c); } fileWriter.close(); MAGEReader mageReader = new MAGEReader(f.getPath()); seenMap = new LinkedHashMap(); createItem(mageReader.getMAGEobj()); } finally { f.delete(); } long now = System.currentTimeMillis(); writer.storeAll(seenMap.values()); LOG.info("store seenMap " + seenMap.values().size() + " in " + (System.currentTimeMillis() - now) + " ms"); now = System.currentTimeMillis(); writer.storeAll(dataItems); LOG.info("store dataItem " + dataItems.size() + " in " + (System.currentTimeMillis() - now) + " ms"); now = System.currentTimeMillis(); writer.storeAll(padIdentifiers.values()); LOG.info("store padIdentifiers " + padIdentifiers.values().size() + " in " + (System.currentTimeMillis() - now) + " ms"); now = System.currentTimeMillis(); writer.storeAll(featureIdentifiers.values()); LOG.info("store featureIdentifiers " + featureIdentifiers.values().size() + " in " + (System.currentTimeMillis() - now) + " ms"); } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/082ac265c7100f98d655743341c8168d7dd3f277/MageConverter.java/buggy/flymine/model/mage/src/java/org/flymine/dataconversion/MageConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
5881,
863,
273,
394,
13589,
5621,
9079,
1061,
1380,
273,
374,
31,
3639,
813,
273,
2332,
18,
2972,
28512,
5621,
3639,
787,
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,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
5881,
863,
273,
394,
13589,
5621,
9079,
1061,
1380,
273,
374,
31,
3639,
813,
273,
2332,
18,
2972,
28512,
5621,
3639,
787,
273,
... | |
_enabled = true; | _restart = true; | protected void handleSlaveConnected() { // we reset the enabled flag since, unless told otherwise via // killInterpreter(false), we want to automatically respawn _enabled = true; _cleanlyRestarting = false; Boolean allowAccess = DrJava.getConfig().getSetting(OptionConstants.ALLOW_PRIVATE_ACCESS); setPrivateAccessible(allowAccess.booleanValue()); _interactionsModel.interpreterReady(); _junitModel.junitJVMReady(); _log.logTime("thread in connected: " + Thread.currentThread()); synchronized(_interpreterLock) { // notify a thread that is waiting in ensureInterpreterConnected _interpreterLock.notify(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/c9b6668252c82575b56cf423d4fca817498241b6/MainJVM.java/buggy/drjava/src/edu/rice/cs/drjava/model/repl/newjvm/MainJVM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1640,
20302,
8932,
1435,
288,
565,
368,
732,
2715,
326,
3696,
2982,
3241,
16,
3308,
268,
1673,
3541,
3970,
565,
368,
8673,
30010,
12,
5743,
3631,
732,
2545,
358,
6635,
1718,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1640,
20302,
8932,
1435,
288,
565,
368,
732,
2715,
326,
3696,
2982,
3241,
16,
3308,
268,
1673,
3541,
3970,
565,
368,
8673,
30010,
12,
5743,
3631,
732,
2545,
358,
6635,
1718,
95... |
if (self.nItems < 0) | if (!self.isLeaf()) | public final int action(Object o, int s, int i0, int j0, int k0) { Cell self = (Cell) o; if (self.nItems < 0) return 0; for (int i = 0; i < self.nItems; i++) { Vertex v = (Vertex) self.subOctree[i]; double [] param = v.getUV(); coord[index] = param[0]; coord[index+1] = param[1]; coord[index+2] = param[2]; index += 3; } return 0; } | 46058 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46058/50370aed291f847c841cdf0c61e381540ff0b136/OctreeTest.java/clean/amibe/src/org/jcae/mesh/amibe/util/OctreeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
509,
1301,
12,
921,
320,
16,
509,
272,
16,
509,
277,
20,
16,
509,
525,
20,
16,
509,
417,
20,
13,
202,
202,
95,
1082,
202,
4020,
365,
273,
261,
4020,
13,
320,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
509,
1301,
12,
921,
320,
16,
509,
272,
16,
509,
277,
20,
16,
509,
525,
20,
16,
509,
417,
20,
13,
202,
202,
95,
1082,
202,
4020,
365,
273,
261,
4020,
13,
320,
31,
1... |
public Group(GroupProvider provider, String name, String description, Collection<JID> members, Collection<JID> administrators) | public Group(String name, String description, Collection<JID> members, Collection<JID> administrators) | public Group(GroupProvider provider, String name, String description, Collection<JID> members, Collection<JID> administrators) { this.provider = provider; this.groupManager = GroupManager.getInstance(); this.name = name; this.description = description; this.members = new HashSet<JID>(members); this.administrators = new HashSet<JID>(administrators); } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/aa7beec99156eaaeb8bbd4e9bf37675d058e8a76/Group.java/clean/src/java/org/jivesoftware/wildfire/group/Group.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3756,
12,
1114,
2249,
2893,
16,
514,
508,
16,
514,
2477,
16,
5411,
2200,
32,
46,
734,
34,
4833,
16,
2200,
32,
46,
734,
34,
30162,
3062,
13,
565,
288,
3639,
333,
18,
6778,
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,
1071,
3756,
12,
1114,
2249,
2893,
16,
514,
508,
16,
514,
2477,
16,
5411,
2200,
32,
46,
734,
34,
4833,
16,
2200,
32,
46,
734,
34,
30162,
3062,
13,
565,
288,
3639,
333,
18,
6778,
273,
... |
handler.doctypeDecl (rootName, ids [0], ids [1]); skipWhitespace (); if (tryRead ('[')) { while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead (']')) { break; } else { peIsError = expandPE = true; parseMarkupdecl (); peIsError = expandPE = false; } } } skipWhitespace (); require ('>'); InputSource subset; if (ids [1] == null) subset = handler.getExternalSubset (rootName, handler.getSystemId ()); else subset = null; if (ids [1] != null || subset != null) { pushString (null, ">"); if (ids [1] != null) pushURL (true, "[dtd]", ids, null, null, null, true); else { handler.warn ("modifying document by adding external subset"); pushURL (true, "[dtd]", new String [] { subset.getPublicId (), subset.getSystemId (), null }, subset.getCharacterStream (), subset.getByteStream (), subset.getEncoding (), false); } while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead ('>')) { break; } else { expandPE = true; parseMarkupdecl (); expandPE = false; } } if (inputStack.size () != 1) error ("external subset has unmatched '>'"); } handler.endDoctype (); expandPE = false; doReport = true; } | handler.doctypeDecl(rootName, ids.publicId, ids.systemId); skipWhitespace(); if (tryRead('[')) { while (true) { doReport = expandPE = true; skipWhitespace(); doReport = expandPE = false; if (tryRead(']')) { break; } else { peIsError = expandPE = true; parseMarkupdecl(); peIsError = expandPE = false; } } } skipWhitespace(); require('>'); InputSource subset; if (ids.systemId == null) { subset = handler.getExternalSubset(rootName, handler.getSystemId()); } else { subset = null; } if (ids.systemId != null || subset != null) { pushString(null, ">"); if (ids.systemId != null) { pushURL(true, "[dtd]", ids, null, null, null, true); } else { handler.warn("modifying document by adding external subset"); pushURL(true, "[dtd]", new ExternalIdentifiers(subset.getPublicId(), subset.getSystemId(), null), subset.getCharacterStream(), subset.getByteStream(), subset.getEncoding(), false); } while (true) { doReport = expandPE = true; skipWhitespace(); doReport = expandPE = false; if (tryRead('>')) { break; } else { expandPE = true; parseMarkupdecl(); expandPE = false; } } if (inputStack.size() != 1) { error("external subset has unmatched '>'"); } } handler.endDoctype(); expandPE = false; doReport = true; } | private void parseDoctypedecl () throws Exception { String rootName, ids[]; // Read the document type name. requireWhitespace (); rootName = readNmtoken (true); // Read the External subset's IDs skipWhitespace (); ids = readExternalIds (false, true); // report (a) declaration of name, (b) lexical info (ids) handler.doctypeDecl (rootName, ids [0], ids [1]); // Internal subset is parsed first, if present skipWhitespace (); if (tryRead ('[')) { // loop until the subset ends while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead (']')) { break; // end of subset } else { // WFC, PEs in internal subset (only between decls) peIsError = expandPE = true; parseMarkupdecl (); peIsError = expandPE = false; } } } skipWhitespace (); require ('>'); // Read the external subset, if any InputSource subset; if (ids [1] == null) subset = handler.getExternalSubset (rootName, handler.getSystemId ()); else subset = null; if (ids [1] != null || subset != null) { pushString (null, ">"); // NOTE: [dtd] is so we say what SAX2 expects, // though it's misleading (subset, not entire dtd) if (ids [1] != null) pushURL (true, "[dtd]", ids, null, null, null, true); else { handler.warn ("modifying document by adding external subset"); pushURL (true, "[dtd]", new String [] { subset.getPublicId (), subset.getSystemId (), null }, subset.getCharacterStream (), subset.getByteStream (), subset.getEncoding (), false); } // Loop until we end up back at '>' while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead ('>')) { break; } else { expandPE = true; parseMarkupdecl (); expandPE = false; } } // the ">" string isn't popped yet if (inputStack.size () != 1) error ("external subset has unmatched '>'"); } // done dtd handler.endDoctype (); expandPE = false; doReport = true; } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
3244,
12387,
8840,
1832,
565,
1216,
1185,
565,
288,
202,
780,
1365,
461,
16,
3258,
8526,
31,
202,
759,
2720,
326,
1668,
618,
508,
18,
202,
6528,
9431,
261,
1769,
202,
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,
918,
1109,
3244,
12387,
8840,
1832,
565,
1216,
1185,
565,
288,
202,
780,
1365,
461,
16,
3258,
8526,
31,
202,
759,
2720,
326,
1668,
618,
508,
18,
202,
6528,
9431,
261,
1769,
202,
3... |
if ((rc & FLAG_JNODE) != 0) { | if (rc.isSet(FLAG_JNODE)) { | public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
288,
3639,
309,
261,
10488,
1621,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
1986,
1570,
1214,
1566,
1297,
506,
444,
8863,
3639,
289,
3639,
727,
1635,
32,
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,
377,
1071,
918,
1836,
1435,
288,
3639,
309,
261,
10488,
1621,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
1986,
1570,
1214,
1566,
1297,
506,
444,
8863,
3639,
289,
3639,
727,
1635,
32,
780,... |
AST tmp1357_AST_in = (AST)_t; | AST tmp1367_AST_in = (AST)_t; | public final void importstate(AST _t) throws RecognitionException { AST importstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t889 = _t; AST tmp1352_AST_in = (AST)_t; match(_t,IMPORT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case EOF: case PERIOD: case DELIMITER: case NOERROR_KW: case UNFORMATTED: case CARET: case Field_ref: case RECORD_NAME: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DELIMITER: { AST __t892 = _t; AST tmp1353_AST_in = (AST)_t; match(_t,DELIMITER); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t892; _t = _t.getNextSibling(); break; } case UNFORMATTED: { AST tmp1354_AST_in = (AST)_t; match(_t,UNFORMATTED); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case CARET: case Field_ref: case RECORD_NAME: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RECORD_NAME: { tbl(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t895 = _t; AST tmp1355_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop897: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop897; } } while (true); } _t = __t895; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } break; } case CARET: case Field_ref: { { int _cnt899=0; _loop899: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { fld(_t,CQ.UPDATING); _t = _retTree; break; } case CARET: { AST tmp1356_AST_in = (AST)_t; match(_t,CARET); _t = _t.getNextSibling(); break; } default: { if ( _cnt899>=1 ) { break _loop899; } else {throw new NoViableAltException(_t);} } } _cnt899++; } while (true); } break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp1357_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1358_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t889; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1930,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1930,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1930,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
public void startWDog(String name, long defaultInterval) { startWDog(getIntervalFromParam(name, defaultInterval)); | public void startWDog(long interval) { stopWDog(); if (interval != 0) { this.interval = interval; logEvent("Starting", true); timerDead = Deadline.in(interval); timerReq = TimerQueue.schedule(timerDead, timerCallback, null); } else { logEvent("Not starting", true); } | public void startWDog(String name, long defaultInterval) { startWDog(getIntervalFromParam(name, defaultInterval)); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/28cf28747752ad087b0bebdd6e17a9a60c2edd6b/LockssRunnable.java/clean/src/org/lockss/daemon/LockssRunnable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
16006,
717,
12,
780,
508,
16,
1525,
805,
4006,
13,
288,
565,
787,
16006,
717,
12,
588,
4006,
1265,
786,
12,
529,
16,
805,
4006,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
16006,
717,
12,
780,
508,
16,
1525,
805,
4006,
13,
288,
565,
787,
16006,
717,
12,
588,
4006,
1265,
786,
12,
529,
16,
805,
4006,
10019,
225,
289,
2,
-100,
-100,
-100,
-... |
outNbElement.value = outIdx; | todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; | public TA_RetCode HT_PHASOR(int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outInPhase[], double outQuadrature[]) { int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double[] detrender_Odd = new double[3]; ; double[] detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd; double prev_detrender_Even; double prev_detrender_input_Odd; double prev_detrender_input_Even; double[] Q1_Odd = new double[3]; ; double[] Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd; double prev_Q1_Even; double prev_Q1_input_Odd; double prev_Q1_input_Even; double[] jI_Odd = new double[3]; ; double[] jI_Even = new double[3]; ; double jI; double prev_jI_Odd; double prev_jI_Even; double prev_jI_input_Odd; double prev_jI_input_Even; double[] jQ_Odd = new double[3]; ; double[] jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd; double prev_jQ_Even; double prev_jQ_input_Odd; double prev_jQ_input_Even; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg; double todayValue; 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; rad2Deg = 180.0 / (4.0 * Math.atan(1)); lookbackTotal = 32 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_PHASOR .ordinal()]); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 3.0; trailingWMAValue = 0.0; i = 9; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; } while (--i != 0); hilbertIdx = 0; { detrender_Odd[0] = 0.0; detrender_Odd[1] = 0.0; detrender_Odd[2] = 0.0; detrender_Even[0] = 0.0; detrender_Even[1] = 0.0; detrender_Even[2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd[0] = 0.0; Q1_Odd[1] = 0.0; Q1_Odd[2] = 0.0; Q1_Even[0] = 0.0; Q1_Even[1] = 0.0; Q1_Even[2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd[0] = 0.0; jI_Odd[1] = 0.0; jI_Odd[2] = 0.0; jI_Even[0] = 0.0; jI_Even[1] = 0.0; jI_Even[2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd[0] = 0.0; jQ_Odd[1] = 0.0; jQ_Odd[2] = 0.0; jQ_Even[0] = 0.0; jQ_Even[1] = 0.0; jQ_Even[2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; while (today <= endIdx) { adjustedPrevPeriod = (0.075 * period) + 0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; if ((today % 2) == 0) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even[hilbertIdx]; detrender_Even[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even; prev_detrender_Even = b * prev_detrender_input_Even; detrender += prev_detrender_Even; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even[hilbertIdx]; Q1_Even[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even; prev_Q1_Even = b * prev_Q1_input_Even; Q1 += prev_Q1_Even; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; if (today >= startIdx) { outQuadrature[outIdx] = Q1; outInPhase[outIdx++] = I1ForEvenPrev3; } { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even[hilbertIdx]; jI_Even[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even; prev_jI_Even = b * prev_jI_input_Even; jI += prev_jI_Even; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even[hilbertIdx]; jQ_Even[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even; prev_jQ_Even = b * prev_jQ_input_Even; jQ += prev_jQ_Even; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if (++hilbertIdx == 3) hilbertIdx = 0; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForEvenPrev3 - jQ)) + (0.8 * prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd[hilbertIdx]; detrender_Odd[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd; prev_detrender_Odd = b * prev_detrender_input_Odd; detrender += prev_detrender_Odd; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd[hilbertIdx]; Q1_Odd[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd; prev_Q1_Odd = b * prev_Q1_input_Odd; Q1 += prev_Q1_Odd; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; if (today >= startIdx) { outQuadrature[outIdx] = Q1; outInPhase[outIdx++] = I1ForOddPrev3; } { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd[hilbertIdx]; jI_Odd[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd; prev_jI_Odd = b * prev_jI_input_Odd; jI += prev_jI_Odd; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd[hilbertIdx]; jQ_Odd[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd; prev_jQ_Odd = b * prev_jQ_input_Odd; jQ += prev_jQ_Odd; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForOddPrev3 - jQ)) + (0.8 * prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2 * ((I2 * prevI2) + (Q2 * prevQ2))) + (0.8 * Re); Im = (0.2 * ((I2 * prevQ2) - (Q2 * prevI2))) + (0.8 * Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if ((Im != 0.0) && (Re != 0.0)) period = 360.0 / (Math.atan(Im / Re) * rad2Deg); tempReal2 = 1.5 * tempReal; if (period > tempReal2) period = tempReal2; tempReal2 = 0.67 * tempReal; if (period < tempReal2) period = tempReal2; if (period < 6) period = 6; else if (period > 50) period = 50; period = (0.2 * period) + (0.8 * tempReal); today++; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
19408,
67,
8939,
3033,
916,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
19408,
67,
8939,
3033,
916,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
... |
return readProject(index.lookupXmlFile(id)); | final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readProject(xmlFile); } | public Project get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); return readProject(index.lookupXmlFile(id)); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b5652a3ee17fab5273cdef604831c04c41c5cbe8/ProjectXmlIO.java/buggy/client-model/src/main/java/com/thinkparity/model/parity/model/io/xml/project/ProjectXmlIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5420,
336,
12,
6385,
5866,
612,
13,
1216,
13707,
16,
1860,
288,
202,
202,
4901,
18,
1376,
2932,
588,
12,
5562,
2225,
1769,
202,
202,
4901,
18,
4148,
12,
350,
1769,
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,
482,
5420,
336,
12,
6385,
5866,
612,
13,
1216,
13707,
16,
1860,
288,
202,
202,
4901,
18,
1376,
2932,
588,
12,
5562,
2225,
1769,
202,
202,
4901,
18,
4148,
12,
350,
1769,
202,
202,
... |
int state = scan.nextToken(); | if(doNextScan) state = scan.nextToken(); else doNextScan = true; | private void page() { if (LOG.isDebugEnabled()) LOG.debug("parse: page"); if (finalPass) { out.println(); out.print("class "); out.print(className); out.println(" extends GroovyPage {"); out.println("public Object run() {"); } else { out.println("import org.codehaus.groovy.grails.web.pages.GroovyPage"); out.println("import org.codehaus.groovy.grails.web.taglib.*"); } loop: for (;;) { int state = scan.nextToken(); switch (state) { case EOF: break loop; case HTML: html(); break; case JEXPR: expr(); break; case JSCRIPT: script(false); break; case JDIRECT: direct(); break; case JDECLAR: declare(false); break; case GEXPR: expr(); break; case GSCRIPT: script(true); break; case GDIRECT: direct(); break; case GDECLAR: declare(true); break; case GSTART_TAG: startTag(); break; case GEND_TAG: endTag(); break; } } if (finalPass) { out.println("}"); out.println("}"); } } // page() | 53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/21210c971ad55f5d857248433ed378d0a31fadf4/Parse.java/buggy/src/web/org/codehaus/groovy/grails/web/pages/Parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1363,
1435,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
2018,
18,
4148,
2932,
2670,
30,
1363,
8863,
3639,
309,
261,
6385,
6433,
13,
288,
5411,
596,
18,
8222,
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,
3238,
918,
1363,
1435,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
2018,
18,
4148,
2932,
2670,
30,
1363,
8863,
3639,
309,
261,
6385,
6433,
13,
288,
5411,
596,
18,
8222,
5621,
... |
return newString(getValue().substring(0, i + 1)); | return newString(getValue().subSequence(0, i + 1)); | public IRubyObject rstrip() { int i = getValue().length() - 1; for (; i >= 0; i--) { if (!Character.isWhitespace(getValue().charAt(i))) { break; } } return newString(getValue().substring(0, i + 1)); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/buggy/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
10947,
1435,
288,
202,
202,
474,
277,
273,
2366,
7675,
2469,
1435,
300,
404,
31,
9506,
202,
1884,
261,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
1082,
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,
15908,
10340,
921,
10947,
1435,
288,
202,
202,
474,
277,
273,
2366,
7675,
2469,
1435,
300,
404,
31,
9506,
202,
1884,
261,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
1082,
202,... |
XMLEntityManager.DEFAULT_BUFFER_SIZE, | fTempString.ch.length, | protected Reader getReader(XMLInputSource source) throws IOException { if (source.getCharacterStream() != null) { return source.getCharacterStream(); } else { InputStream stream = null; String encoding = source.getEncoding(); if (encoding == null) { encoding = "UTF-8"; } if (source.getByteStream() != null) { stream = source.getByteStream(); // Wrap the InputStream so that it is possible to rewind it. if (!(stream instanceof BufferedInputStream)) { stream = new BufferedInputStream(stream); } } else { String expandedSystemId = XMLEntityManager.expandSystemId(source.getSystemId(), source.getBaseSystemId(), false); URL url = new URL(expandedSystemId); URLConnection urlCon = url.openConnection(); // If this is an HTTP connection attach any // content negotation parameters to the request. if (urlCon instanceof HttpURLConnection) { if( fAccept != null && fAccept.length() > 0) { urlCon.setRequestProperty(XIncludeHandler.HTTP_ACCEPT, fAccept); } if( fAcceptLanguage != null && fAcceptLanguage.length() > 0) { urlCon.setRequestProperty(XIncludeHandler.HTTP_ACCEPT_LANGUAGE, fAcceptLanguage); } } // Wrap the InputStream so that it is possible to rewind it. stream = new BufferedInputStream(urlCon.getInputStream()); // content type will be string like "text/xml; charset=UTF-8" or "text/xml" String rawContentType = urlCon.getContentType(); // text/xml and application/xml offer only one optional parameter int index = (rawContentType != null) ? rawContentType.indexOf(';') : -1; String contentType = null; String charset = null; if (index != -1) { // this should be something like "text/xml" contentType = rawContentType.substring(0, index).trim(); // this should be something like "charset=UTF-8", but we want to // strip it down to just "UTF-8" charset = rawContentType.substring(index + 1).trim(); if (charset.startsWith("charset=")) { // 8 is the length of "charset=" charset = charset.substring(8).trim(); // strip quotes, if present if ((charset.charAt(0) == '"' && charset.charAt(charset.length() - 1) == '"') || (charset.charAt(0) == '\'' && charset.charAt(charset.length() - 1) == '\'')) { charset = charset.substring(1, charset.length() - 1); } } else { charset = null; } } else { contentType = rawContentType.trim(); } String detectedEncoding = null; /** The encoding of such a resource is determined by: 1 external encoding information, if available, otherwise -- the most common type of external information is the "charset" parameter of a MIME package 2 if the media type of the resource is text/xml, application/xml, or matches the conventions text/*+xml or application/*+xml as described in XML Media Types [IETF RFC 3023], the encoding is recognized as specified in XML 1.0, otherwise 3 the value of the encoding attribute if one exists, otherwise 4 UTF-8. **/ if (contentType.equals("text/xml")) { if (charset != null) { detectedEncoding = charset; } else { // see RFC2376 or 3023, section 3.1 detectedEncoding = "US-ASCII"; } } else if (contentType.equals("application/xml")) { if (charset != null) { detectedEncoding = charset; } else { // see RFC2376 or 3023, section 3.2 detectedEncoding = getEncodingName(stream); } } else if (contentType.endsWith("+xml")) { detectedEncoding = getEncodingName(stream); } if (detectedEncoding != null) { encoding = detectedEncoding; } // else 3 or 4. } encoding = encoding.toUpperCase(Locale.ENGLISH); // eat the Byte Order Mark consumeBOM(stream, encoding); // If the document is UTF-8 or US-ASCII use // the Xerces readers for these encodings. For // US-ASCII consult the encoding map since // this encoding has many aliases. if (encoding.equals("UTF-8")) { return new UTF8Reader(stream, XMLEntityManager.DEFAULT_BUFFER_SIZE, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale() ); } // Try to use a Java reader. String javaEncoding = EncodingMap.getIANA2JavaMapping(encoding); // If the specified encoding wasn't a recognized IANA encoding throw an IOException. // The XIncludeHandler will report this as a ResourceError and then will // attempt to include a fallback if there is one. if (javaEncoding == null) { MessageFormatter aFormatter = fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN); Locale aLocale = fErrorReporter.getLocale(); throw new IOException( aFormatter.formatMessage( aLocale, "EncodingDeclInvalid", new Object[] {encoding} ) ); } else if (javaEncoding.equals("ASCII")) { return new ASCIIReader(stream, XMLEntityManager.DEFAULT_BUFFER_SIZE, fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN), fErrorReporter.getLocale() ); } return new InputStreamReader(stream, javaEncoding); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/2db20914ce415c12e7befdbf0dae098f8fc226ff/XIncludeTextReader.java/buggy/src/org/apache/xerces/xinclude/XIncludeTextReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5393,
27173,
12,
4201,
1210,
1830,
1084,
13,
1216,
1860,
288,
3639,
309,
261,
3168,
18,
588,
7069,
1228,
1435,
480,
446,
13,
288,
5411,
327,
1084,
18,
588,
7069,
1228,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5393,
27173,
12,
4201,
1210,
1830,
1084,
13,
1216,
1860,
288,
3639,
309,
261,
3168,
18,
588,
7069,
1228,
1435,
480,
446,
13,
288,
5411,
327,
1084,
18,
588,
7069,
1228,
5621,
3639,
... |
public boolean removeConnection(Object externalConnection) { GraphModelConnection connection = (GraphModelConnection)external2InternalConnectionMap.get(externalConnection); return this.removeConnection(connection); | public boolean removeConnection(IGraphModelConnection connection) { boolean removed = false; if (connection != null) { connection.disconnect(); external2InternalConnectionMap.remove(connection.getExternalConnection()); removed = connections.remove(connection); } return removed; | public boolean removeConnection(Object externalConnection) { GraphModelConnection connection = (GraphModelConnection)external2InternalConnectionMap.get(externalConnection); return this.removeConnection(connection); } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/1aa9d8e4021b81d1278aaf3ff0dc441a0f195829/GraphModel.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphmodel/GraphModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1206,
1952,
12,
921,
3903,
1952,
13,
288,
202,
202,
4137,
1488,
1952,
1459,
273,
261,
4137,
1488,
1952,
13,
9375,
22,
3061,
1952,
863,
18,
588,
12,
9375,
1952,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1206,
1952,
12,
921,
3903,
1952,
13,
288,
202,
202,
4137,
1488,
1952,
1459,
273,
261,
4137,
1488,
1952,
13,
9375,
22,
3061,
1952,
863,
18,
588,
12,
9375,
1952,
1769,
202... |
if (token != null) { String val = stringReplace(value.getText(), "\r\n", "\n", false); val = stringReplace(val, "\n", StringUtils.LINE_SEP, false); String tok = stringReplace(token.getText(), "\r\n", "\n", false); tok = stringReplace(tok, "\n", StringUtils.LINE_SEP, false); | int repCountStart = replaceCount; | private void processFile(File src) throws BuildException { if (!src.exists()) { throw new BuildException("Replace: source file " + src.getPath() + " doesn't exist", getLocation()); } File temp = fileUtils.createTempFile("rep", ".tmp", fileUtils.getParentFile(src)); temp.deleteOnExit(); Reader reader = null; Writer writer = null; try { reader = encoding == null ? new FileReader(src) : new InputStreamReader(new FileInputStream(src), encoding); writer = encoding == null ? new FileWriter(temp) : new OutputStreamWriter(new FileOutputStream(temp), encoding); BufferedReader br = new BufferedReader(reader); BufferedWriter bw = new BufferedWriter(writer); String buf = FileUtils.readFully(br); if (buf == null) { buf = ""; } //Preserve original string (buf) so we can compare the result String newString = new String(buf); if (token != null) { // line separators in values and tokens are "\n" // in order to compare with the file contents, replace them // as needed String val = stringReplace(value.getText(), "\r\n", "\n", false); val = stringReplace(val, "\n", StringUtils.LINE_SEP, false); String tok = stringReplace(token.getText(), "\r\n", "\n", false); tok = stringReplace(tok, "\n", StringUtils.LINE_SEP, false); // for each found token, replace with value log("Replacing in " + src.getPath() + ": " + token.getText() + " --> " + value.getText(), Project.MSG_VERBOSE); newString = stringReplace(newString, tok, val, true); } if (replacefilters.size() > 0) { newString = processReplacefilters(newString, src.getPath()); } boolean changes = !newString.equals(buf); if (changes) { bw.write(newString, 0, newString.length()); bw.flush(); } // cleanup bw.close(); writer = null; br.close(); reader = null; // If there were changes, move the new one to the old one; // otherwise, delete the new one if (changes) { ++fileCount; fileUtils.rename(temp, src); temp = null; } } catch (IOException ioe) { throw new BuildException("IOException in " + src + " - " + ioe.getClass().getName() + ":" + ioe.getMessage(), ioe, getLocation()); } finally { if (reader != null) { try { reader.close(); } catch (IOException e) { // ignore } } if (writer != null) { try { writer.close(); } catch (IOException e) { // ignore } } if (temp != null) { temp.delete(); } } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/fa360d83f6cd20f7cfe0c76dfff7a2d6fa8dfdf3/Replace.java/clean/src/main/org/apache/tools/ant/taskdefs/Replace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
812,
12,
812,
1705,
13,
1216,
18463,
288,
3639,
309,
16051,
4816,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
5729,
30,
1084,
585,
315,
397,
1705,
18,
588,
743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
12,
812,
1705,
13,
1216,
18463,
288,
3639,
309,
16051,
4816,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
5729,
30,
1084,
585,
315,
397,
1705,
18,
588,
743,
... |
javax.swing.JOptionPane.showMessageDialog( parentComponent, message, "IC2D Message", javax.swing.JOptionPane.WARNING_MESSAGE ); | javax.swing.JOptionPane.showMessageDialog(parentComponent, message, "IC2D Message", javax.swing.JOptionPane.WARNING_MESSAGE ); | public static void displayWarningDialog(java.awt.Component parentComponent, Object message) { javax.swing.JOptionPane.showMessageDialog( parentComponent, // Component parentComponent, message, // Object message, "IC2D Message", // String title, javax.swing.JOptionPane.WARNING_MESSAGE // int messageType, ); } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/a2cd9b6d05be6ee9dc798dfafe5692ec64040fb8/DialogUtils.java/buggy/src/org/objectweb/proactive/ic2d/gui/util/DialogUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2562,
6210,
6353,
12,
6290,
18,
2219,
88,
18,
1841,
982,
1841,
16,
1033,
883,
13,
288,
565,
6863,
18,
5328,
310,
18,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
1850,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2562,
6210,
6353,
12,
6290,
18,
2219,
88,
18,
1841,
982,
1841,
16,
1033,
883,
13,
288,
565,
6863,
18,
5328,
310,
18,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
1850,
98... |
setImageLabelVisible(true); | messageImageLabel.setVisible(true); | public void setErrorMessage(String newErrorMessage) { // Any change? if (errorMessage == null ? newErrorMessage == null : errorMessage.equals(newErrorMessage)) return; errorMessage = newErrorMessage; if (errorMessage == null) { if (showingError) { // we were previously showing an error showingError = false; setMessageBackgrounds(false); } // show the message // avoid calling setMessage in case it is overridden to call setErrorMessage, // which would result in a recursive infinite loop if (message == null) //this should probably never happen since setMessage does this conversion.... message = ""; //$NON-NLS-1$ updateMessage(message); messageImageLabel.setImage(messageImage); setImageLabelVisible(messageImage != null); messageLabel.setToolTipText(message); } else { updateMessage(errorMessage); messageLabel.setToolTipText(errorMessage); if (!showingError) { // we were not previously showing an error showingError = true; // lazy initialize the error background color and image if (errorMsgAreaBackground == null) { errorMsgAreaBackground = JFaceColors.getErrorBackground(messageLabel.getDisplay()); errorMsgImage = JFaceResources.getImage(DLG_IMG_TITLE_ERROR); } // show the error normalMsgAreaBackground = messageLabel.getBackground(); setMessageBackgrounds(true); messageImageLabel.setImage(errorMsgImage); setImageLabelVisible(true); } } layoutForNewMessage();} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9608a216324fa04fd6af4f3abfafb48d2ceaaeac/TitleAreaDialog.java/clean/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9967,
1079,
12,
780,
394,
14935,
13,
288,
202,
759,
5502,
2549,
35,
202,
430,
261,
1636,
1079,
422,
446,
692,
394,
14935,
422,
446,
294,
9324,
18,
14963,
12,
2704,
14935,
3719,
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,
1071,
918,
9967,
1079,
12,
780,
394,
14935,
13,
288,
202,
759,
5502,
2549,
35,
202,
430,
261,
1636,
1079,
422,
446,
692,
394,
14935,
422,
446,
294,
9324,
18,
14963,
12,
2704,
14935,
3719,
20... |
public void testDoExecuteActionError() throws Exception { //set up mock object MockControl control = MockControl.createControl( BibliographicReferenceService.class ); BibliographicReferenceService bibliographicReferenceService = ( BibliographicReferenceService ) control .getMock(); bibliographicReferenceService.findByExternalId( "19491" ); control.setReturnValue( null, 1 ); control.replay(); GetPubMedAction action = new GetPubMedAction(); action.setBibliographicReferenceService( bibliographicReferenceService ); MockRequestContext context = new MockRequestContext(); context.getFlowScope().setAttribute( "pubMedId", "19491" ); Event result = action.execute( context ); assertEquals( "error", result.getId() ); asserts().assertAttributeNotPresent( context.getRequestScope(), "bibliographicReference" ); control.verify(); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/62c49182ff6b686a27c8389e11f12fde32af6694/GetPubMedActionTests.java/clean/test/edu/columbia/gemma/web/controller/flow/action/entrez/pubmed/GetPubMedActionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3244,
5289,
1803,
668,
1435,
1216,
1185,
288,
3639,
368,
542,
731,
5416,
733,
3639,
7867,
3367,
3325,
273,
7867,
3367,
18,
2640,
3367,
12,
605,
495,
549,
16983,
2404,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3244,
5289,
1803,
668,
1435,
1216,
1185,
288,
3639,
368,
542,
731,
5416,
733,
3639,
7867,
3367,
3325,
273,
7867,
3367,
18,
2640,
3367,
12,
605,
495,
549,
16983,
2404,
117... | ||
widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } } while( proxyWidth[0] == 0 ); | gl.glGetTexLevelParameteriv( proxyTarget, 1, GL.GL_TEXTURE_WIDTH, proxyWidth ); if( proxyWidth[0] == 0 ) { if( widthPowerOf2 == 1 && heightPowerOf2 == 1 ) { /* A 1x1 texture couldn't fit for some reason so break out. This * should never happen. But things happen. The disadvantage with * this if-statement is that we will never be aware of when this * happens since it will silently branch out. */ noProxyTextures = true; break; } widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } } while( proxyWidth[0] == 0 ); } catch (GLException e) { noProxyTextures = true; } | public static void closestFit( GL gl, int target, int width, int height, int internalFormat, int format, int type, int[] newWidth, int[] newHeight ) { // Use proxy textures if OpenGL version >= 1.1 if( Double.parseDouble( gl.glGetString( GL.GL_VERSION ).trim().substring( 0, 3 ) ) >= 1.1 ) { int widthPowerOf2 = nearestPower( width ); int heightPowerOf2 = nearestPower( height ); int[] proxyWidth = new int[1]; boolean noProxyTextures = false; do { // compute level 1 width & height, clamping each at 1 int widthAtLevelOne = ( ( width > 1 ) ? (widthPowerOf2 >> 1) : widthPowerOf2 ); int heightAtLevelOne = ( ( height > 1 ) ? (heightPowerOf2 >> 1) : heightPowerOf2 ); int proxyTarget; assert( widthAtLevelOne > 0 ); assert( heightAtLevelOne > 0 ); // does width x height at level 1 & all their mipmaps fit? if( target == GL.GL_TEXTURE_2D || target == GL.GL_PROXY_TEXTURE_2D ) { proxyTarget = GL.GL_PROXY_TEXTURE_2D; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else if( (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB) ) { proxyTarget = GL.GL_PROXY_TEXTURE_CUBE_MAP_ARB; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else { assert( target == GL.GL_TEXTURE_1D || target == GL.GL_PROXY_TEXTURE_1D ); proxyTarget = GL.GL_PROXY_TEXTURE_1D; gl.glTexImage1D( proxyTarget, 1, internalFormat, widthAtLevelOne, 0, format, type, (double[])null ); } gl.glGetTexLevelParameteriv( proxyTarget, 1, GL.GL_TEXTURE_WIDTH, proxyWidth ); // does it fit? if( proxyWidth[0] == 0 ) { // nope, so try again with theses sizes if( widthPowerOf2 == 1 && heightPowerOf2 == 1 ) { /* A 1x1 texture couldn't fit for some reason so break out. This * should never happen. But things happen. The disadvantage with * this if-statement is that we will never be aware of when this * happens since it will silently branch out. */ noProxyTextures = true; break; } widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } // else it doese fit } while( proxyWidth[0] == 0 ); // loop must terminate // return the width & height at level 0 that fits if( !noProxyTextures ) { newWidth[0] = widthPowerOf2; newHeight[0] = heightPowerOf2; return; } } int[] maxsize = new int[1]; gl.glGetIntegerv( GL.GL_MAX_TEXTURE_SIZE, maxsize ); // clamp user's texture sizes to maximum sizes, if necessary newWidth[0] = nearestPower( width ); if( newWidth[0] > maxsize[0] ) { newWidth[0] = maxsize[0]; } newHeight[0] = nearestPower( height ); if( newHeight[0] > maxsize[0] ) { newHeight[0] = maxsize[0]; } } | 53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/d34ebafbd61123d369a1657b8e9bb2db5d45ba6a/Mipmap.java/buggy/src/net/java/games/jogl/impl/mipmap/Mipmap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
... |
return new InvokeAtLeastOnceMatcher(); } | return new InvokeAtLeastOnceMatcher(); } | public InvocationMatcher atLeastOnce() { return new InvokeAtLeastOnceMatcher(); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/MockObjectTestCase.java/buggy/jmock/core/src/org/jmock/MockObjectTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11298,
6286,
622,
17319,
12212,
1435,
288,
3639,
327,
394,
14373,
25070,
12212,
6286,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11298,
6286,
622,
17319,
12212,
1435,
288,
3639,
327,
394,
14373,
25070,
12212,
6286,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( synPredMatched992 ) { AST tmp1419_AST_in = (AST)_t; | if ( synPredMatched977 ) { AST tmp1423_AST_in = (AST)_t; | public final void onstate(AST _t) throws RecognitionException { AST onstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST onNode = null; AST t1 = null; AST rec = null; AST id1 = null; AST id2 = null; AST fld = null; AST id = null; AST __t968 = _t; onNode = _t==ASTNULL ? null :(AST)_t; match(_t,ON); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.scopeAdd(onNode); } { boolean synPredMatched971 = false; if (_t==null) _t=ASTNULL; if (((_tokenSet_23.member(_t.getType())))) { AST __t971 = _t; synPredMatched971 = true; inputState.guessing++; try { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { AST tmp1393_AST_in = (AST)_t; match(_t,ASSIGN); _t = _t.getNextSibling(); break; } case CREATE: { AST tmp1394_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getNextSibling(); break; } case DELETE_KW: { AST tmp1395_AST_in = (AST)_t; match(_t,DELETE_KW); _t = _t.getNextSibling(); break; } case FIND: { AST tmp1396_AST_in = (AST)_t; match(_t,FIND); _t = _t.getNextSibling(); break; } case WRITE: { AST tmp1397_AST_in = (AST)_t; match(_t,WRITE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } catch (RecognitionException pe) { synPredMatched971 = false; } _t = __t971;inputState.guessing--; } if ( synPredMatched971 ) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CREATE: case DELETE_KW: case FIND: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CREATE: { AST tmp1398_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getNextSibling(); break; } case DELETE_KW: { AST tmp1399_AST_in = (AST)_t; match(_t,DELETE_KW); _t = _t.getNextSibling(); break; } case FIND: { AST tmp1400_AST_in = (AST)_t; match(_t,FIND); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp1401_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); t1 = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBufferForTrigger(t1); } break; } case WRITE: { AST tmp1402_AST_in = (AST)_t; match(_t,WRITE); _t = _t.getNextSibling(); AST tmp1403_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); rec = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEW: case NEXT: case NEXTPROMPT: case OLD: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: { { AST tmp1404_AST_in = (AST)_t; match(_t,NEW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: { AST tmp1405_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id1 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case OLD: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBuffer(id1, id1, rec, true); } break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case OLD: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { if (id1 == null) action.defineBufferForTrigger(rec); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OLD: { { AST tmp1406_AST_in = (AST)_t; match(_t,OLD); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: { AST tmp1407_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.defineBuffer(id2, id2, rec, true); } break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } break; } case ASSIGN: { AST tmp1408_AST_in = (AST)_t; match(_t,ASSIGN); _t = _t.getNextSibling(); AST tmp1409_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); fld = _t==ASTNULL ? null : (AST)_t; fld(_t,CQ.INIT); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST __t985 = _t; AST tmp1410_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getFirstChild(); AST tmp1411_AST_in = (AST)_t; match(_t,LABEL); _t = _t.getNextSibling(); constant(_t); _t = _retTree; _t = __t985; _t = _t.getNextSibling(); break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case OLD: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OLD: { AST tmp1412_AST_in = (AST)_t; match(_t,OLD); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { AST tmp1413_AST_in = (AST)_t; match(_t,VALUE); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineVariable(id, id, fld)); } { if (_t==null) _t=ASTNULL; if ((_tokenSet_24.member(_t.getType()))) { defineparam_var(_t); _t = _retTree; } else if ((_tokenSet_25.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case OVERRIDE: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OVERRIDE: { AST tmp1414_AST_in = (AST)_t; match(_t,OVERRIDE); _t = _t.getNextSibling(); break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case REVERT: { AST tmp1415_AST_in = (AST)_t; match(_t,REVERT); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } case PERSISTENT: { AST tmp1416_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getNextSibling(); runstate(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case PAGE: case PAUSE: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { blockorstate(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } } else { boolean synPredMatched992 = false; if (_t==null) _t=ASTNULL; if ((((_t.getType() >= LEXDATE && _t.getType() <= SYMMETRICENCRYPTIONALGORITHM)))) { AST __t992 = _t; synPredMatched992 = true; inputState.guessing++; try { { AST tmp1417_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); AST tmp1418_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched992 = false; } _t = __t992;inputState.guessing--; } if ( synPredMatched992 ) { AST tmp1419_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); AST tmp1420_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; } else if ((_t.getType()==Event_list)) { eventlist(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ANYWHERE: { AST tmp1421_AST_in = (AST)_t; match(_t,ANYWHERE); _t = _t.getNextSibling(); break; } case OF: { AST tmp1422_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); widgetlist(_t); _t = _retTree; { _loop995: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==OR)) { AST tmp1423_AST_in = (AST)_t; match(_t,OR); _t = _t.getNextSibling(); eventlist(_t); _t = _retTree; AST tmp1424_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); widgetlist(_t); _t = _retTree; } else { break _loop995; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ANYWHERE: { AST tmp1425_AST_in = (AST)_t; match(_t,ANYWHERE); _t = _t.getNextSibling(); break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case PAGE: case PAUSE: case PERSISTENT: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVERT: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case REVERT: { AST tmp1426_AST_in = (AST)_t; match(_t,REVERT); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } case PERSISTENT: { AST tmp1427_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getNextSibling(); AST tmp1428_AST_in = (AST)_t; match(_t,RUN); _t = _t.getNextSibling(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t999 = _t; AST tmp1429_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t999; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { AST __t1001 = _t; AST tmp1430_AST_in = (AST)_t; match(_t,Parameter_list); _t = _t.getFirstChild(); AST tmp1431_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==INPUT)) { AST tmp1432_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } expression(_t); _t = _retTree; { _loop1005: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1433_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==INPUT)) { AST tmp1434_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } expression(_t); _t = _retTree; } else { break _loop1005; } } while (true); } AST tmp1435_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1001; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; break; } case PERIOD: case PROPARSEDIRECTIVE: case AATRACE: case ACCUMULATE: case ALTER: case ANALYZE: case APPLY: case ASSIGN: case BELL: case BTOS: case BUFFERCOMPARE: case BUFFERCOPY: case CALL: case CASE: case CHOOSE: case CLEAR: case CLOSE: case COLOR: case COMPILE: case CONNECT: case CREATE: case DDE: case DECLARE: case DEFINE: case DELETE_KW: case DICTIONARY: case DISABLE: case DISCONNECT: case DISPLAY: case DO: case DOS: case DOWN: case DROP: case EMPTY: case ENABLE: case EXPORT: case FETCH: case FIND: case FOR: case FORMAT: case FUNCTION: case GET: case GETKEYVALUE: case GRANT: case HIDE: case IF: case IMPORT: case INPUT: case INPUTOUTPUT: case INSERT: case LEAVE: case LOAD: case MESSAGE: case MPE: case NEXT: case NEXTPROMPT: case ON: case OPEN: case OS2: case OS400: case OSAPPEND: case OSCOMMAND: case OSCOPY: case OSCREATEDIR: case OSDELETE: case OSRENAME: case OUTPUT: case PAGE: case PAUSE: case PROCEDURE: case PROCESS: case PROMPTFOR: case PUBLISH: case PUT: case PUTKEYVALUE: case QUIT: case RAWTRANSFER: case READKEY: case RELEASE: case REPEAT: case REPOSITION: case RETURN: case REVOKE: case RUN: case SAVE: case SCROLL: case SEEK: case SELECT: case SET: case SHOWSTATS: case STATUS: case STOP: case SUBSCRIBE: case SYSTEMDIALOG: case SYSTEMHELP: case TRANSACTIONMODE: case TRIGGER: case UNDERLINE: case UNDO: case UNIX: case UNLOAD: case UNSUBSCRIBE: case UP: case UPDATE: case USE: case VALIDATE: case VIEW: case VMS: case WAITFOR: case Expr_statement: case BLOCK_LABEL: case COPYLOB: case DOT_COMMENT: case CLASS: case CONSTRUCTOR: case INTERFACE: case METHOD: case DESTRUCTOR: case ANNOTATION: { blockorstate(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } } else { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.scopeClose(onNode); } _t = __t968; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
603,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
603,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
603,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
for (String name: HtmlUtil.splitValues(fieldsPresent)) { | for (String name: getFieldsPresentInfo(bean)) { | protected void bindMissingValuesAsNull(ActionBean bean, ActionBeanContext context) { HttpServletRequest request = context.getRequest(); Set<String> paramatersSubmitted = request.getParameterMap().keySet(); String fieldsPresent = request.getParameter(StripesConstants.URL_KEY_FIELDS_PRESENT); for (String name: HtmlUtil.splitValues(fieldsPresent)) { if (!paramatersSubmitted.contains(name)) { try { bindNullValue(bean, name, OgnlUtil.getPropertyClass(name, bean)); } catch (Exception e) { log.warn(e, "Could not set property '", name, "' to null on ActionBean of", "type '", bean.getClass(), "'."); } } } } | 9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/7a0e6d4e0b24b93465db30d3cf6761a4e09c0d19/OgnlActionBeanPropertyBinder.java/buggy/stripes/src/net/sourceforge/stripes/controller/OgnlActionBeanPropertyBinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1993,
4841,
1972,
1463,
2041,
12,
1803,
3381,
3931,
16,
4382,
3381,
1042,
819,
13,
288,
3639,
9984,
590,
273,
819,
18,
588,
691,
5621,
3639,
1000,
32,
780,
34,
579,
31302,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1993,
4841,
1972,
1463,
2041,
12,
1803,
3381,
3931,
16,
4382,
3381,
1042,
819,
13,
288,
3639,
9984,
590,
273,
819,
18,
588,
691,
5621,
3639,
1000,
32,
780,
34,
579,
31302,
28... |
this.setPreferredSize(new SDimension("100%", null)); | this.setPreferredSize(new SDimension("100%", "100%")); | public SGridLayout() { this.setPreferredSize(new SDimension("100%", null)); //this.setRelative(true); } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/c93fa59b33dcc791084733b4478d8d246986b385/SGridLayout.java/buggy/wings2/src/java/org/wings/SGridLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
6313,
3744,
1435,
288,
3639,
333,
18,
542,
16028,
1225,
12,
2704,
348,
8611,
2932,
6625,
9,
3113,
315,
6625,
9,
7923,
1769,
4202,
368,
2211,
18,
542,
8574,
12,
3767,
1769,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
6313,
3744,
1435,
288,
3639,
333,
18,
542,
16028,
1225,
12,
2704,
348,
8611,
2932,
6625,
9,
3113,
315,
6625,
9,
7923,
1769,
4202,
368,
2211,
18,
542,
8574,
12,
3767,
1769,
56... |
case TokenStream.IN : rhs = stack[stackTop]; | } case TokenStream.IN : { Object rhs = stack[stackTop]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
VM_Address cell = allocSlow(isScalar, bytes, false); | VM_Address cell = allocSlow(bytes, align, offset, false); | public final VM_Address alloc(boolean isScalar, int bytes) throws VM_PragmaNoInline { VM_Address cell = allocSlow(isScalar, bytes, false); postAlloc(cell); return cell; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e61ee377b5995edb90228ad3779f9bacf1917098/LargeObjectAllocator.java/buggy/rvm/src/vm/memoryManagers/JMTk/utility/LargeObjectAllocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
1887,
4767,
12,
6494,
11604,
3473,
16,
509,
1731,
13,
377,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
8251,
67,
1887,
2484,
273,
4767,
28733,
12,
3890,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
1887,
4767,
12,
6494,
11604,
3473,
16,
509,
1731,
13,
377,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
8251,
67,
1887,
2484,
273,
4767,
28733,
12,
3890,
16,
... |
int tt = peekToken(0); | int tt = peekToken(); | private Node assignExpr(boolean inForInit) throws IOException, ParserException { Node pn = condExpr(inForInit); int tt = peekToken(0); if (Token.FIRST_ASSIGN <= tt && tt <= Token.LAST_ASSIGN) { consumeToken(); decompiler.addToken(tt); pn = nf.createAssignment(tt, pn, assignExpr(inForInit)); } return pn; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/f6049deb3ed5286b9e12df015720d7f04caed2dc/Parser.java/clean/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
2683,
4742,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
6941,
4742,
12,
267,
1290,
2570,
1769,
3639,
509,
3574,
273,
8032,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
2683,
4742,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
6941,
4742,
12,
267,
1290,
2570,
1769,
3639,
509,
3574,
273,
8032,
13... |
reset(filename); return(true); } else { return(false); } | reset(getJPE().getMyPath()+"\\readme.txt"); } return(false); | public boolean switchOpenFile(String filename) { if (filename.indexOf("JPE:")==0) { filename=getJPE().getMyPath()+"\\"+filename.substring(4); } // get the requested file from our list OpenFile file=(OpenFile)openfiles.get(filename); if (file!=null) { // file found so make it active and return true Editor editor=getJPE().getEditor(); editor.useFile(file); reset(filename); return(true); } else { // file was not opened return false return(false); } } | 651 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/651/95ac82d8181603e13df0ab6d1a4e6c7ef413405b/OpenFileHandler.java/clean/jpe/src/java/com/generationjava/apps/jpe/OpenFileHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
1620,
3678,
812,
12,
780,
1544,
13,
288,
7734,
309,
261,
3459,
18,
31806,
2932,
46,
1423,
2773,
13,
631,
20,
13,
288,
13491,
1544,
33,
588,
46,
1423,
7675,
588,
12062,
743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
1620,
3678,
812,
12,
780,
1544,
13,
288,
7734,
309,
261,
3459,
18,
31806,
2932,
46,
1423,
2773,
13,
631,
20,
13,
288,
13491,
1544,
33,
588,
46,
1423,
7675,
588,
12062,
743,
... |
fEnableSemanticHighlightingCheckbox.setSelection(getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED)); | public void performDefaults() { super.performDefaults(); fEnableSemanticHighlightingCheckbox.setSelection(getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED)); fListViewer.refresh(); handleSyntaxColorListSelection(); uninstallSemanticHighlighting(); installSemanticHighlighting(); fPreviewViewer.invalidateTextPresentation(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d84efff6f7694be240fac712a7e28e16a3590ee5/CEditorColoringConfigurationBlock.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorColoringConfigurationBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3073,
7019,
1435,
288,
202,
202,
9565,
18,
16092,
7019,
5621,
9506,
202,
74,
8317,
13185,
9941,
16205,
310,
21272,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
5507,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3073,
7019,
1435,
288,
202,
202,
9565,
18,
16092,
7019,
5621,
9506,
202,
74,
8317,
13185,
9941,
16205,
310,
21272,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
5507,
12,
... | |
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException | private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.b.c. int pos; String rest = null; if ((pos = prop.indexOf('.')) != -1) { rest = prop.substring(pos + 1); prop = prop.substring(0, pos); } // Find a method named getProp. It could be isProp instead. Method getter; try { // Look for boolean property getter isProperty getter = o.getClass().getMethod("is" + capitalize(prop), null); } catch (NoSuchMethodException e) { // Look for regular property getter getProperty getter = o.getClass().getMethod("get" + capitalize(prop), null); } Object val = getter.invoke(o, null); if (rest != null) return getProperty(val, rest); return new Object[] {val, getter.getReturnType()}; } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/4560ec84d1941b7d1dc387ca2fa2087617053271/EventHandler.java/buggy/libjava/java/beans/EventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
8526,
3911,
12,
921,
320,
16,
514,
2270,
13,
377,
288,
565,
368,
2672,
326,
871,
733,
1347,
326,
1272,
508,
358,
2608,
353,
446,
18,
565,
309,
261,
5986,
422,
446,
13,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
8526,
3911,
12,
921,
320,
16,
514,
2270,
13,
377,
288,
565,
368,
2672,
326,
871,
733,
1347,
326,
1272,
508,
358,
2608,
353,
446,
18,
565,
309,
261,
5986,
422,
446,
13,
137... | |
public Rule(String before, byte result, String after) { | public Rule(String before, byte result, String after, String line) { | public Rule(String before, byte result, String after) { breaks = result; matchPrevious = Pattern.compile(".*" + before, Pattern.COMMENTS).matcher(""); matchSucceeding = Pattern.compile(after, Pattern.COMMENTS).matcher(""); name = before + (result == NO_BREAK ? " " : " ") + after; // COMMENTS allows whitespace } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/db947e1680b0993aa3cbcf9bb9d000cf0e90c0b1/TestSegments.java/clean/tools/java/org/unicode/cldr/test/TestSegments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6781,
12,
780,
1865,
16,
1160,
563,
16,
514,
1839,
13,
288,
1082,
202,
29292,
273,
563,
31,
1082,
202,
1916,
8351,
273,
6830,
18,
11100,
2932,
4509,
6,
397,
1865,
16,
6830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6781,
12,
780,
1865,
16,
1160,
563,
16,
514,
1839,
13,
288,
1082,
202,
29292,
273,
563,
31,
1082,
202,
1916,
8351,
273,
6830,
18,
11100,
2932,
4509,
6,
397,
1865,
16,
6830,
... |
public int methodArity(int methodId) { if (scopeSlaveFlag) { switch (methodId) { | public int methodArity(IdFunction f) { if (f.hasTag(FTAG)) { switch (f.methodId) { | public int methodArity(int methodId) { if (scopeSlaveFlag) { switch (methodId) { case Id_decodeURI: return 1; case Id_decodeURIComponent: return 1; case Id_encodeURI: return 1; case Id_encodeURIComponent: return 1; case Id_escape: return 1; case Id_eval: return 1; case Id_isFinite: return 1; case Id_isNaN: return 1; case Id_parseFloat: return 1; case Id_parseInt: return 2; case Id_unescape: return 1; case Id_uneval: return 1; case Id_new_CommonError: return 1; } } return -1; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeGlobal.java/clean/js/rhino/src/org/mozilla/javascript/NativeGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
4887,
20302,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
3124,
67,
3922,
3098,
30,
6647,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
4887,
20302,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
3124,
67,
3922,
3098,
30,
6647,
327,
... |
public void validatePlayerInfo(int playerId) { final Player player = getPlayer(playerId); // maybe this isn't actually useful // // replace characters we don't like with "X" // StringBuffer nameBuff = new StringBuffer(player.getName()); // for (int i = 0; i < nameBuff.length(); i++) { // int chr = nameBuff.charAt(i); // if (LEGAL_CHARS.indexOf(chr) == -1) { // nameBuff.setCharAt(i, 'X'); // } // } // player.setName(nameBuff.toString()); //TODO: check for duplicate or reserved names // make sure colorIndex is unique boolean[] colorUsed = new boolean[Player.colorNames.length]; for (Enumeration i = game.getPlayers(); i.hasMoreElements();) { final Player otherPlayer = (Player)i.nextElement(); if (otherPlayer.getId() != playerId) { colorUsed[otherPlayer.getColorIndex()] = true; } } if (null != player && colorUsed[player.getColorIndex()]) { // find a replacement color; for (int i = 0; i < colorUsed.length; i++) { if (!colorUsed[i]) { player.setColorIndex(i); break; } } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/1ecffa782704db8af19ae40d43a2c0659881281b/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
12148,
966,
12,
474,
7291,
548,
13,
288,
3639,
727,
19185,
7291,
273,
1689,
6363,
12,
14872,
548,
1769,
7734,
368,
3639,
6944,
333,
5177,
1404,
6013,
5301,
3639,
368,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
12148,
966,
12,
474,
7291,
548,
13,
288,
3639,
727,
19185,
7291,
273,
1689,
6363,
12,
14872,
548,
1769,
7734,
368,
3639,
6944,
333,
5177,
1404,
6013,
5301,
3639,
368,
363... | ||
Object o = ht.get(Thread.currentThread()); if(o == null) | Stack stack = getCurrentStack(); if(stack == null) | Stack cloneStack() { Object o = ht.get(Thread.currentThread()); if(o == null) return null; else { Stack stack = (Stack) o; return (Stack) stack.clone(); } } | 45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/7d36034b59b57cc4471b28c2a82121f36dd45cfd/NDC.java/clean/src/java/org/apache/log4j/NDC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
7283,
3236,
2624,
1435,
288,
565,
1033,
320,
273,
14049,
18,
588,
12,
3830,
18,
2972,
3830,
10663,
565,
309,
12,
83,
422,
446,
13,
1377,
327,
446,
31,
565,
469,
288,
1377,
7283,
2110,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7283,
3236,
2624,
1435,
288,
565,
1033,
320,
273,
14049,
18,
588,
12,
3830,
18,
2972,
3830,
10663,
565,
309,
12,
83,
422,
446,
13,
1377,
327,
446,
31,
565,
469,
288,
1377,
7283,
2110,
... |
return result[0]; | return result.get(); | public static RadComponent getDraggerHost(final GuiEditor editor){ LOG.assertTrue(editor != null); final RadComponent[] result = new RadComponent[1]; iterate( editor.getRootContainer(), new ComponentVisitor<RadComponent>() { public boolean visit(final RadComponent component) { if(component.hasDragger()){ result[0] = component; return false; } return true; } } ); return result[0]; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4b9b42a89e8b651ac4f35632b101d771f565898e/FormEditingUtil.java/clean/ui-designer/impl/com/intellij/uiDesigner/FormEditingUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16378,
1841,
2343,
2458,
693,
2594,
12,
6385,
611,
4881,
6946,
4858,
15329,
565,
2018,
18,
11231,
5510,
12,
9177,
480,
446,
1769,
565,
727,
16378,
1841,
8526,
563,
273,
394,
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,
282,
1071,
760,
16378,
1841,
2343,
2458,
693,
2594,
12,
6385,
611,
4881,
6946,
4858,
15329,
565,
2018,
18,
11231,
5510,
12,
9177,
480,
446,
1769,
565,
727,
16378,
1841,
8526,
563,
273,
394,
16... |
_context.jobQueue().addJob(j); | getContext().jobQueue().addJob(j); | public boolean doNext() { if (_createMsg == null) { _createMsg = buildTunnelCreate(_participant, _inboundGateway, _replyPeer); return true; } else if (_statusMsg == null) { _statusMsg = buildDeliveryStatusMessage(); return true; } else if (_garlicMessage == null) { _garlicMessage = buildGarlicMessage(_createMsg, _statusMsg, _replyPeer, _inboundGateway, _target, _wrappedKey, _wrappedTags, _wrappedTo); return true; } else { // send the GarlicMessage if (_log.shouldLog(Log.INFO)) _log.info("Sending tunnel create to " + _target.getIdentity().getHash().toBase64() + " with replies through " + _replyPeer.getIdentity().getHash().toBase64() + " to inbound gateway " + _inboundGateway.getGateway().toBase64() + " : " + _inboundGateway.getTunnelId().getTunnelId()); ReplyJob onReply = new Success(_participant, _wrappedKey, _wrappedTags, _wrappedTo); Job onFail = new Failure(_participant, _replyPeer.getIdentity().getHash()); MessageSelector selector = new Selector(_participant, _statusMsg.getMessageId()); SendTunnelMessageJob j = new SendTunnelMessageJob(_context, _garlicMessage, _outboundTunnel, _target.getIdentity().getHash(), null, null, onReply, onFail, selector, _timeoutMs, PRIORITY); _context.jobQueue().addJob(j); return false; } } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/buggy/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
741,
2134,
1435,
288,
5411,
309,
261,
67,
2640,
3332,
422,
446,
13,
288,
7734,
389,
2640,
3332,
273,
1361,
20329,
1684,
24899,
2680,
14265,
16,
389,
267,
3653,
5197,
16,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
741,
2134,
1435,
288,
5411,
309,
261,
67,
2640,
3332,
422,
446,
13,
288,
7734,
389,
2640,
3332,
273,
1361,
20329,
1684,
24899,
2680,
14265,
16,
389,
267,
3653,
5197,
16,
389,
... |
public void appendExceptionResult(String exceptionClass, String message, String stackTrace, String styleName) { | public void appendExceptionResult(String exceptionClass, String message, String stackTrace, String styleName) { | public void appendExceptionResult(String exceptionClass, String message, String stackTrace, String styleName) { //writeLock(); try { if (null == message || "null".equals(message)) { message = ""; } // Simplify the common error messages if ("koala.dynamicjava.interpreter.error.ExecutionError".equals(exceptionClass) || "edu.rice.cs.drjava.model.repl.InteractionsException".equals(exceptionClass)) { exceptionClass = "Error"; } insertText(getDocLength(), exceptionClass + ": " + message + "\n", styleName); // An example stack trace: // // java.lang.IllegalMonitorStateException: // at java.lang.Object.wait(Native Method) // at java.lang.Object.wait(Object.java:425) if (! stackTrace.trim().equals("")) { BufferedReader reader=new BufferedReader(new StringReader(stackTrace)); String line; // a line is parsable if it has ( then : then ), with some // text between each of those while ((line = reader.readLine()) != null) { String fileName = null; int lineNumber = -1; int openLoc = line.indexOf('('); if (openLoc != -1) { int closeLoc = line.indexOf(')', openLoc + 1); if (closeLoc != -1) { int colonLoc = line.indexOf(':', openLoc + 1); if ((colonLoc > openLoc) && (colonLoc < closeLoc)) { // ok this line is parsable! String lineNumStr = line.substring(colonLoc + 1, closeLoc); try { lineNumber = Integer.parseInt(lineNumStr); fileName = line.substring(openLoc + 1, colonLoc); } catch (NumberFormatException nfe) { // do nothing; we failed at parsing } } } } insertText(getDocLength(), line, styleName); // OK, now if fileName != null we did parse out fileName // and lineNumber. // Here's where we'd add the button, etc. if (fileName != null) { /* JButton button = new JButton("go"); button.addActionListener(new ExceptionButtonListener(fileName, lineNumber)); SimpleAttributeSet buttonSet = new SimpleAttributeSet(set); StyleConstants.setComponent(buttonSet, button); insertString(getDocLength(), " ", null); insertString(getDocLength() - 1, " ", buttonSet); */ //JOptionPane.showMessageDialog(null, "button in"); //insertString(getDocLength(), " ", null); //JOptionPane.showMessageDialog(null, "extra space"); } //JOptionPane.showMessageDialog(null, "\\n"); insertText(getDocLength(), "\n", styleName); } // end the while } } catch (IOException ioe) { // won't happen; we're readLine'ing from a String! throw new UnexpectedException(ioe); } catch (DocumentAdapterException ble) { throw new UnexpectedException(ble); } finally { //writeUnlock(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/efe2cdfa860877c37343dbc5d29e380b33344492/InteractionsDocument.java/clean/drjava/src/edu/rice/cs/drjava/model/repl/InteractionsDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
714,
503,
1253,
12,
780,
1520,
797,
16,
4766,
565,
514,
883,
16,
4766,
565,
514,
22327,
16,
4766,
565,
514,
27947,
13,
225,
288,
565,
368,
2626,
2531,
5621,
565,
775,
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,
282,
1071,
918,
714,
503,
1253,
12,
780,
1520,
797,
16,
4766,
565,
514,
883,
16,
4766,
565,
514,
22327,
16,
4766,
565,
514,
27947,
13,
225,
288,
565,
368,
2626,
2531,
5621,
565,
775,
288,
... |
_loop524: | _loop528: | public final void classstate(AST _t) throws RecognitionException { AST classstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t518 = _t; AST tmp317_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getFirstChild(); AST tmp318_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INHERITS: { AST __t520 = _t; AST tmp319_AST_in = (AST)_t; match(_t,INHERITS); _t = _t.getFirstChild(); AST tmp320_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); _t = __t520; _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: case FINAL: case IMPLEMENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IMPLEMENTS: { AST __t522 = _t; AST tmp321_AST_in = (AST)_t; match(_t,IMPLEMENTS); _t = _t.getFirstChild(); AST tmp322_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); { _loop524: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp323_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp324_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); } else { break _loop524; } } while (true); } _t = __t522; _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: case FINAL: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FINAL: { AST tmp325_AST_in = (AST)_t; match(_t,FINAL); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; AST __t526 = _t; AST tmp326_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp327_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t526; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t518; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
667,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
667,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
667,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
super.endPrefixMapping(namespacePrefix); | if (!namespacePrefix.startsWith("xml")) super.endPrefixMapping(namespacePrefix); | public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { readInputAsSAX(pipelineContext, INPUT_DATA, new ForwardingContentHandler(contentHandler) { private final String HTML_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "html"); private final String HEAD_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "head"); private final String BODY_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "body"); private int level; private String element0; private String element1; private NamespaceSupport2 namespaceSupport = new NamespaceSupport2(); private boolean gotModel; private boolean gotControl; private boolean inModel; private int modelLevel; private boolean inControl; private int controlLevel; public void startDocument() throws SAXException { super.startDocument(); super.startElement("", "static-state", "static-state", XMLUtils.EMPTY_ATTRIBUTES); } public void endDocument() throws SAXException { // Close elements if (gotModel && gotControl) { super.endElement("", "controls", "controls"); } else if (gotModel) { super.endElement("", "models", "models"); super.startElement("", "controls", "controls", XMLUtils.EMPTY_ATTRIBUTES); super.endElement("", "controls", "controls"); } super.endElement("", "static-state", "static-state"); super.endDocument(); } public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { namespaceSupport.pushContext(); // Remember first two levels of elements if (level == 0) { element0 = Dom4jUtils.buildExplodedQName(uri, localname); } else if (level == 1) { element1 = Dom4jUtils.buildExplodedQName(uri, localname); } else if (level >= 2 && HTML_QNAME.equals(element0)) { // We are under /xhtml:html if (XFormsConstants.XFORMS_NAMESPACE_URI.equals(uri)) { // This is an XForms element if (!inModel && !inControl && localname.equals("model") && HEAD_QNAME.equals(element1)) { // Start extracting model inModel = true; modelLevel = level; if (gotControl) throw new OXFException("/xhtml:html/xhtml:head//xforms:model occurred after /xhtml:html/xhtml:body//xforms:*"); if (!gotModel) super.startElement("", "models", "models", XMLUtils.EMPTY_ATTRIBUTES); gotModel = true; sendStartPrefixMappings(); } else if (!inModel && !inControl && BODY_QNAME.equals(element1)) { // Start extracting controls inControl = true; controlLevel = level; if (gotModel && !gotControl) super.endElement("", "models", "models"); if (!gotControl) super.startElement("", "controls", "controls", XMLUtils.EMPTY_ATTRIBUTES); gotControl = true; sendStartPrefixMappings(); } if (inControl) { super.startElement(uri, localname, qName, attributes); } } if (inModel) { super.startElement(uri, localname, qName, attributes); } } level++; } private void sendStartPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); final String namespaceURI = namespaceSupport.getURI(namespacePrefix); super.startPrefixMapping(namespacePrefix, namespaceURI); } } private void sendEndPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); super.endPrefixMapping(namespacePrefix); } } public void endElement(String uri, String localname, String qName) throws SAXException { level--; if (inModel) { super.endElement(uri, localname, qName); } else if (inControl && XFormsConstants.XFORMS_NAMESPACE_URI.equals(uri)) { super.endElement(uri, localname, qName); } namespaceSupport.popContext(); if (inModel && level == modelLevel) { // Leaving model inModel = false; sendEndPrefixMappings(); } else if (inControl && level == controlLevel) { // Leaving control inControl = false; sendEndPrefixMappings(); } } public void characters(char[] chars, int start, int length) throws SAXException { if (inModel || inControl) super.characters(chars, start, length); } public void startPrefixMapping(String prefix, String uri) throws SAXException { namespaceSupport.declarePrefix(prefix, uri); if (inModel || inControl) super.startPrefixMapping(prefix, uri); } public void endPrefixMapping(String s) throws SAXException { if (inModel || inControl) super.endPrefixMapping(s); } }); } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/c92faea3770d68e915964a3102a4873b3279f0cd/XFormsExtractor.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
4883,
16,
394,
17206,
310,
1350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
4883,
16,
394,
17206,
310,
1350,
... |
setTitleKey(null); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELMultiboxTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | |
else if ( resource != null && resource.getParent( ) != null | else if ( resource != null && resource.getParent( ) != null | private IContainer getDefaultContainer( Object selection ) { IContainer ct = null; if ( selection instanceof IAdaptable ) { IResource resource = (IResource) ( (IAdaptable) selection ) .getAdapter( IResource.class ); if ( resource instanceof IContainer && resource.isAccessible( ) ) { ct = (IContainer) resource; } else if ( resource != null && resource.getParent( ) != null && resource.getParent( ).isAccessible( ) ) { ct = resource.getParent( ); } } return ct; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9508ad902ce38297514198adde76c0cc21ff3b29/NewReportWizard.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2170,
4829,
2170,
12,
1033,
4421,
262,
202,
95,
202,
202,
45,
2170,
5691,
273,
446,
31,
202,
202,
430,
261,
4421,
1276,
467,
13716,
429,
262,
202,
202,
95,
1082,
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,
467,
2170,
4829,
2170,
12,
1033,
4421,
262,
202,
95,
202,
202,
45,
2170,
5691,
273,
446,
31,
202,
202,
430,
261,
4421,
1276,
467,
13716,
429,
262,
202,
202,
95,
1082,
202,
... |
properties.clear(); this.out = response.getWriter(); ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(String name, String value) { name = name.toUpperCase(); System.out.println(name + " " + value); properties.setProperty(name, value); } }; ServletUtil.parseParams(vis, request); | PrintWriter out = response.getWriter(); | private void execute( HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { properties.clear(); this.out = response.getWriter(); ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(String name, String value) { name = name.toUpperCase(); System.out.println(name + " " + value); properties.setProperty(name, value); } }; ServletUtil.parseParams(vis, request); try { System.out.println("Servlet called." ); PageGenerator gen=new PageGenerator(); gen.execute(out); } catch (Exception ex) { out.println(ex.getMessage()); ex.printStackTrace(out); System.out.println(ex); out.flush(); } } | 11320 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11320/8d86d77baee78270e176245ac791e5ba291d4e2d/ScheduleServlet.java/buggy/tutorial/doc/exercises/solutions/Exercise6/tutorial/ScheduleServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1836,
12,
202,
3639,
9984,
590,
16,
202,
3639,
12446,
766,
13,
1216,
1860,
16,
16517,
202,
95,
202,
202,
4738,
18,
8507,
5621,
202,
202,
2211,
18,
659,
273,
766,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1836,
12,
202,
3639,
9984,
590,
16,
202,
3639,
12446,
766,
13,
1216,
1860,
16,
16517,
202,
95,
202,
202,
4738,
18,
8507,
5621,
202,
202,
2211,
18,
659,
273,
766,
18,
5... |
this.pageContext.getResponse().reset(); | protected int writeExport(String mimeType, String exportString, String filename) throws JspException { HttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse(); JspWriter out = this.pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest(); StringBuffer bodyBuffer = (StringBuffer) request.getAttribute(FILTER_CONTENT_OVERRIDE_BODY); if (bodyBuffer != null) { // We are running under the export filter StringBuffer contentTypeOverride = (StringBuffer) request.getAttribute(FILTER_CONTENT_OVERRIDE_TYPE); contentTypeOverride.append(mimeType); bodyBuffer.append(exportString); if (StringUtils.isNotEmpty(filename)) { StringBuffer filenameOverride = (StringBuffer) request.getAttribute(FILTER_CONTENT_OVERRIDE_FILENAME); filenameOverride.append(filename); } } else { try { // this will also reset headers, needed when the server is sending a "no-cache" header this.pageContext.getResponse().reset(); out.clear(); } catch (Exception e) { throw new ExportException(getClass()); } response.setContentType(mimeType); if (StringUtils.isNotEmpty(filename)) { response.setHeader("Content-Disposition", "attachment; filename=\"" + filename + "\""); } try { out.write(exportString); out.flush(); } catch (IOException e) { throw new JspException("IOException while writing data."); } } return SKIP_PAGE; } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/6abfd1a168bce85b49714a843391c084a0f00ad8/TableTag.java/buggy/displaytag/src/main/java/org/displaytag/tags/TableTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1045,
6144,
12,
780,
10707,
16,
514,
3359,
780,
16,
514,
1544,
13,
1216,
27485,
565,
288,
3639,
12446,
766,
273,
261,
2940,
29910,
13,
333,
18,
2433,
1042,
18,
588,
1064,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1045,
6144,
12,
780,
10707,
16,
514,
3359,
780,
16,
514,
1544,
13,
1216,
27485,
565,
288,
3639,
12446,
766,
273,
261,
2940,
29910,
13,
333,
18,
2433,
1042,
18,
588,
1064,
562... | |
public void copyInto(Object[] targetArray, int index){ | public void copyInto(Object[] targetArray){ | public void copyInto(Object[] targetArray, int index){ System.arraycopy(this.elements, 0, targetArray, index, this.size); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/6d6eff2b7a9ea8205f248234fcd7f533a7805733/ObjectVector.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1610,
5952,
12,
921,
8526,
1018,
1076,
16,
509,
770,
15329,
9506,
202,
3163,
18,
1126,
3530,
12,
2211,
18,
6274,
16,
374,
16,
1018,
1076,
16,
770,
16,
333,
18,
1467,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1610,
5952,
12,
921,
8526,
1018,
1076,
16,
509,
770,
15329,
9506,
202,
3163,
18,
1126,
3530,
12,
2211,
18,
6274,
16,
374,
16,
1018,
1076,
16,
770,
16,
333,
18,
1467,
17... |
BumpMap bumpMap = new BumpMap(texture, surfaceScale, scaleX, scaleY); SpecularLightingRed specularRed = new SpecularLightingRed(ks, specularExponent, light, bumpMap, devRect, 1/scaleX, 1/scaleY); | cr = new SpecularLightingRed(ks, specularExponent, light, bumpMap, devRect, 1/scaleX, 1/scaleY); | public RenderedImage createRendering(RenderContext rc){ Shape aoi = rc.getAreaOfInterest(); if (aoi == null) aoi = getBounds2D(); Rectangle2D aoiR = aoi.getBounds2D(); aoiR.intersect(aoiR, getBounds2D(), aoiR); aoiR.setRect(aoiR.getX()-1, aoiR.getY()-1, aoiR.getWidth()+2, aoiR.getHeight()+2); AffineTransform at = rc.getTransform(); Rectangle devRect = at.createTransformedShape(aoiR).getBounds(); if(devRect.width == 0 || devRect.height == 0){ return null; } // // SpecularLightingRed only operates on a scaled space. // The following extracts the scale portion of the // user to device transform // // The source is rendered with the scale-only transform // and the rendered result is used as a bumpMap for the // SpecularLightingRed filter. // double sx = at.getScaleX(); double sy = at.getScaleY(); double shx = at.getShearX(); double shy = at.getShearY(); double tx = at.getTranslateX(); double ty = at.getTranslateY(); // The Scale is the "hypotonose" of the matrix vectors. double scaleX = Math.sqrt(sx*sx + shy*shy); double scaleY = Math.sqrt(sy*sy + shx*shx); if(scaleX == 0 || scaleY == 0){ // Non invertible transform return null; } if (SCALE_RESULT) { scaleX = 1; scaleY = 1; } AffineTransform scale = AffineTransform.getScaleInstance(scaleX, scaleY); // Build texture from the source rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale); // System.out.println("scaleX / scaleY : " + scaleX + "/" + scaleY); RenderingHints rh = rc.getRenderingHints(); devRect = scale.createTransformedShape(aoiR).getBounds(); CachableRed texture; texture = GraphicsUtil.wrap(getSource().createRendering(rc)); texture = new PadRed(texture, devRect, PadMode.ZERO_PAD, rh); BumpMap bumpMap = new BumpMap(texture, surfaceScale, scaleX, scaleY); SpecularLightingRed specularRed = new SpecularLightingRed(ks, specularExponent, light, bumpMap, devRect, 1/scaleX, 1/scaleY); // Return sheared/rotated tiled image AffineTransform shearAt = new AffineTransform(sx/scaleX, shy/scaleX, shx/scaleY, sy/scaleY, tx, ty); if(shearAt.isIdentity()){ // System.out.println("Scale only transform"); return specularRed; } // System.out.println("Transform has translate and/or shear and rotate"); return new AffineRed(specularRed, shearAt, rh); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/b3bade4b6c7f444903c90a27982afdda62cf9822/SpecularLightingRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/SpecularLightingRable8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
15329,
3639,
12383,
279,
11359,
273,
4519,
18,
588,
5484,
951,
29281,
5621,
3639,
309,
261,
6033,
77,
422,
446,
13,
5411,
279,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
15329,
3639,
12383,
279,
11359,
273,
4519,
18,
588,
5484,
951,
29281,
5621,
3639,
309,
261,
6033,
77,
422,
446,
13,
5411,
279,
113... |
public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt36=5; switch ( input.LA(1) ) { case 40: alt36=1; break; case 41: alt36=2; break; case 42: alt36=3; break; case ID: alt36=4; break; case 28: alt36=5; break; default: NoViableAltException nvae = new NoViableAltException("425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 36, 0, input); throw nvae; } switch (alt36) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary1514); u=lhs_exist(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:426:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary1522); u=lhs_not(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:427:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary1530); u=lhs_eval(); following.pop(); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:428:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary1538); u=lhs_column(); following.pop(); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:429:25: '(' u= lhs ')' { match(input,28,FOLLOW_28_in_lhs_unary1544); following.push(FOLLOW_lhs_in_lhs_unary1548); u=lhs(); following.pop(); match(input,29,FOLLOW_29_in_lhs_unary1550); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/59894e8a22b2183840bd9c2486282d6f4f6932d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288... | ||
map.put(OPTION_XReweavable,this.xReweavable ? ENABLED : DISABLED); map.put(OPTION_XReweavableCompress,this.xReweavableCompress ? ENABLED : DISABLED); | map.put(OPTION_XNotReweavable,this.xNotReweavable ? ENABLED : DISABLED); | public Map getMap() { Map map = super.getMap(); // now add AspectJ additional options map.put(OPTION_ReportInvalidAbsoluteTypeName,getSeverityString(InvalidAbsoluteTypeName)); map.put(OPTION_ReportInvalidWildcardTypeName,getSeverityString(InvalidWildCardTypeName)); map.put(OPTION_ReportUnresolvableMember,getSeverityString(UnresolvableMember)); map.put(OPTION_ReportTypeNotExposedToWeaver,getSeverityString(TypeNotExposedToWeaver)); map.put(OPTION_ReportShadowNotInStructure,getSeverityString(ShadowNotInStructure)); map.put(OPTION_ReportUnmatchedSuperTypeInCall,getSeverityString(UnmatchedSuperTypeInCall)); map.put(OPTION_ReportCannotImplementLazyTJP,getSeverityString(CannotImplementLazyTJP)); map.put(OPTION_ReportNeedSerialVersionUIDField,getSeverityString(NeedSerialVersionUIDField)); map.put(OPTION_ReportIncompatibleSerialVersion,getSeverityString(IncompatibleSerialVersion)); map.put(OPTION_NoWeave, this.noWeave ? ENABLED : DISABLED); map.put(OPTION_XSerializableAspects,this.xSerializableAspects ? ENABLED : DISABLED); map.put(OPTION_XLazyThisJoinPoint,this.xLazyThisJoinPoint ? ENABLED : DISABLED); map.put(OPTION_XNoInline,this.xNoInline ? ENABLED : DISABLED); map.put(OPTION_XReweavable,this.xReweavable ? ENABLED : DISABLED); map.put(OPTION_XReweavableCompress,this.xReweavableCompress ? ENABLED : DISABLED); map.put(OPTION_XHasMember, this.xHasMember ? ENABLED : DISABLED); map.put(OPTION_XdevPinpoint, this.xdevPinpoint ? ENABLED : DISABLED); map.put(OPTION_GenerateModel,this.generateModel ? ENABLED : DISABLED); map.put(OPTION_GenerateJavaDocsInModel,this.generateJavaDocsInModel ? ENABLED : DISABLED); map.put(OPTION_Emacssym,this.generateEmacsSymFiles ? ENABLED : DISABLED); map.put(OPTION_XDevNoAtAspectJProcessing,this.noAtAspectJProcessing ? ENABLED : DISABLED); return map; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/12e6334bf5f77d7c3bc2e66eeefa105f0507334a/AjCompilerOptions.java/clean/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
15489,
1435,
288,
202,
202,
863,
852,
273,
2240,
18,
588,
863,
5621,
202,
202,
759,
2037,
527,
2970,
1181,
46,
3312,
702,
202,
202,
1458,
18,
458,
12,
7425,
67,
4820,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
15489,
1435,
288,
202,
202,
863,
852,
273,
2240,
18,
588,
863,
5621,
202,
202,
759,
2037,
527,
2970,
1181,
46,
3312,
702,
202,
202,
1458,
18,
458,
12,
7425,
67,
4820,
... |
public String toString(Color c){ if (c==null){ | public String toString(Rectangle2D r){ if (r == null){ | public String toString(Color c){ if (c==null){ return "null"; } else { return c.getAlpha() + "." + c.getRed() + "." + c.getGreen() + "." + c.getBlue(); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/1c71f61461fbd3845bd5a6eab670b7f0e5edeadb/MainTest.java/clean/test-sources/org/apache/batik/apps/rasterizer/MainTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
1762,
12,
2957,
276,
15329,
10792,
309,
261,
71,
631,
2011,
15329,
13491,
327,
315,
2011,
14432,
10792,
289,
469,
288,
13491,
327,
276,
18,
588,
9690,
1435,
397,
4585,
397,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
1762,
12,
2957,
276,
15329,
10792,
309,
261,
71,
631,
2011,
15329,
13491,
327,
315,
2011,
14432,
10792,
289,
469,
288,
13491,
327,
276,
18,
588,
9690,
1435,
397,
4585,
397,
27... |
Scriptable m = start; | public static Object setElem(Object obj, Object id, Object value, Scriptable scope) { int index; String s; if (id instanceof Number) { double d = ((Number) id).doubleValue(); index = (int) d; s = ((double) index) == d ? null : toString(id); } else { s = toString(id); long indexTest = indexFromString(s); if (indexTest >= 0) { index = (int)indexTest; s = null; } else { index = 0; } } Scriptable start = obj instanceof Scriptable ? (Scriptable) obj : toObject(scope, obj); Scriptable m = start; if (s != null) { if (s.equals("__proto__")) return setProto(obj, value, scope); if (s.equals("__parent__")) return setParent(obj, value, scope); do { if (m.has(s, start)) { m.put(s, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(s, start, value); return value; } do { if (m.has(index, start)) { m.put(index, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(index, start, value); return value; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/250051383e715d3a12c06e9b723efe99f534b8f7/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
444,
7498,
12,
921,
1081,
16,
1033,
612,
16,
1033,
460,
16,
4766,
22780,
2146,
13,
565,
288,
3639,
509,
770,
31,
3639,
514,
272,
31,
3639,
309,
261,
350,
1276,
3588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
7498,
12,
921,
1081,
16,
1033,
612,
16,
1033,
460,
16,
4766,
22780,
2146,
13,
565,
288,
3639,
509,
770,
31,
3639,
514,
272,
31,
3639,
309,
261,
350,
1276,
3588,
... | |
{if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} | {if(PAContext.DebugExecution){System.out.print("\nparser ["+jj_input_stream.getBeginLine()+","+jj_input_stream.getBeginColumn()+"]"+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} | final public void parse(PAContext context) throws ParseException { Token x = null; try { label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case IDENTIFIER: case KEY_IDENTIFIER: case IMMEDIATE_IDENTIFIER: case LBRACE: case RBRACE: case LBRACKET: case RBRACKET: case LDICT: case RDICT: ; break; default: jj_la1[0] = jj_gen; break label_1; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case IDENTIFIER: case KEY_IDENTIFIER: case IMMEDIATE_IDENTIFIER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: x = jj_consume_token(INTEGER_LITERAL); try { {if(PAContext.DebugExecution){System.out.print("\nparser ["+jj_input_stream.bufpos+"]"+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new Integer(x.image)); } catch(NumberFormatException e) { {if (true) throw new ParseException(ExceptionString("int_literal",jj_input_stream,context,token,e));} } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("int_literal",jj_input_stream,context,token,e));} } break; case FLOATING_POINT_LITERAL: x = jj_consume_token(FLOATING_POINT_LITERAL); try { {if(PAContext.DebugExecution){System.out.print("\nparser ["+jj_input_stream.bufpos+"]"+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new Double(x.image)); } catch(NumberFormatException e) { {if (true) throw new ParseException(ExceptionString("float_literal",jj_input_stream,context,token,e));} } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("float_literal",jj_input_stream,context,token,e));} } break; case STRING_LITERAL: x = jj_consume_token(STRING_LITERAL); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(x.image.substring(1, x.image.length() -1)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("string_literal",jj_input_stream,context,token,e));} } break; case IDENTIFIER: x = jj_consume_token(IDENTIFIER); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(x.image, PAToken.IDENTIFIER)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("identifier",jj_input_stream,context,token,e));} } break; case KEY_IDENTIFIER: x = jj_consume_token(KEY_IDENTIFIER); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(x.image.substring(1, x.image.length()), PAToken.KEY)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("key_identifier",jj_input_stream,context,token,e));} } break; case IMMEDIATE_IDENTIFIER: x = jj_consume_token(IMMEDIATE_IDENTIFIER); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+x.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(x.image.substring(2, x.image.length()), PAToken.IMMEDIATE)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("immediate_identifier",jj_input_stream,context,token,e));} } break; default: jj_la1[1] = jj_gen; jj_consume_token(-1); throw new ParseException(); } break; case LBRACE: jj_consume_token(LBRACE); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.START_PROCEDURE)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("lbrace",jj_input_stream,context,token,e));} } break; case RBRACE: jj_consume_token(RBRACE); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.END_PROCEDURE)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("rbrace",jj_input_stream,context,token,e));} } break; case LBRACKET: jj_consume_token(LBRACKET); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.START_ARRAY)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("lbracket",jj_input_stream,context,token,e));} } break; case RBRACKET: jj_consume_token(RBRACKET); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.END_ARRAY)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("rbracket",jj_input_stream,context,token,e));} } break; case LDICT: jj_consume_token(LDICT); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.START_DICT)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("ldict",jj_input_stream,context,token,e));} } break; case RDICT: jj_consume_token(RDICT); try { {if(PAContext.DebugExecution){System.out.print("\nparser "+context.engine.litMode()+":\""+token.image+"\"");System.out.flush();System.err.flush();}} context.engine.process(new PAToken(null, PAToken.END_DICT)); } catch(PainterException e) { {if (true) throw new ParseException(ExceptionString("rdict",jj_input_stream,context,token,e));} } break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (ParseException e) { System.out.flush();System.err.flush(); //System.out.println("Fehlerhaftes Element in Spalte "+e.currentToken.beginColumn+" in Eingabedatei in Zeile="+e.currentToken.next.beginLine+" in Zeichen Nr. "+e.currentToken.next.beginColumn+". >"+e.currentToken.next.image+"< wurde hier nicht erwartet."); //System.err.println("Fehler:"+e); e.printStackTrace(); error_skipto(WHITESPACE); System.exit(0); } } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/e5ece9e232e89c196251741f6c4d8dd7986bff20/PAParser.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
1109,
12,
4066,
1042,
819,
13,
1216,
10616,
288,
3639,
3155,
619,
273,
446,
31,
565,
775,
288,
1377,
1433,
67,
21,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
4066,
1042,
819,
13,
1216,
10616,
288,
3639,
3155,
619,
273,
446,
31,
565,
775,
288,
1377,
1433,
67,
21,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,... |
short[] mmHead = TiffTools.getIFDShortArray(ifd, MMHEADER, true); | short[] mmHead = TiffTools.getIFDShortArray(ifd, MMHEADER, false); | protected void initMetadata() { super.initMetadata(); try { Hashtable ifd = ifds[0]; // determine byte order boolean little = TiffTools.isLittleEndian(ifd); // set file pointer to start reading MM_HEAD metadata short[] mmHead = TiffTools.getIFDShortArray(ifd, MMHEADER, true); int p = 0; // pointer to next byte in mmHead // -- Parse standard metadata -- put("HeaderSize", DataTools.bytesToInt(mmHead, p, 2, little)); p += 2; put("Status", DataTools.bytesToString(mmHead, p, 1)); p++; // change from the specs: using 257 bytes instead of 256 put("ImageName", DataTools.bytesToString(mmHead, p, 257)); p += 257 + 4; // there are 4 bytes that we don't need put("NumberOfColors", DataTools.bytesToLong(mmHead, p, 4, little)); p += 4 + 8; // again, 8 bytes we don't need // don't add commentSize and commentOffset to hashtable // these will be used later to read in the Comment field // and add it to the hashtable long commentSize = DataTools.bytesToLong(mmHead, p, 4, little); p += 4; long commentOffset = DataTools.bytesToLong(mmHead, p, 4, little); p += 4; // dimensions info // there are 10 blocks of dimension info to be read, // each with the same structure // in the hashtable, the same tags in different blocks // are distinguished by appending the block number to the // tag name for (int j=0; j<10; j++) { put("DimName" + j, DataTools.bytesToString(mmHead, p, 16)); p += 16; put("Size" + j, DataTools.bytesToLong(mmHead, p, 4, little)); p += 4; put("Origin" + j, Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("Resolution" + j, Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; } put("MapType", DataTools.bytesToInt(mmHead, p, 2, little)); p += 2 + 2; // 2 bytes we don't need put("MapMin", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("MapMax", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("MinValue", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("MaxValue", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8 + 4; // skipping over 4 bytes put("Gamma", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("Offset", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; // get Gray dimension info put("DimName11", DataTools.bytesToString(mmHead, p, 16)); p += 16; put("Size11", DataTools.bytesToLong(mmHead, p, 4, little)); p += 4; put("Origin11", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); p += 8; put("Resolution11", Double.longBitsToDouble( DataTools.bytesToLong(mmHead, p, little))); // read in comments field if (commentSize > 0) { in.seek(commentOffset); byte[] comments = new byte[(int) commentSize]; in.read(comments); put("Comments", new String(comments)); } // -- Parse OME-XML metadata -- Object off; String data; long newNum = 0; Object obj = new Object(); double origin = 0; // set file to the right place off = (Object) ifd.get(new Integer(MMHEADER)); if (off != null) { // read the metadata byte[] temp1 = new byte[3]; in.read(temp1); char imageType = in.readChar(); char name[] = new char[256]; for (int i=0; i<256; i++) { name[i] = in.readChar(); } OMETools.setAttribute(ome, "Image", "ImageName", new String(name)); byte[] temp2 = new byte[279]; in.read(temp2); char[] dimName; for (int j=0; j<10; j++) { dimName = new char[16]; for (int i=0; i<16; i++) { dimName[i] = in.readChar(); } String attr = ""; switch (j) { case 1: attr = "X"; break; case 2: attr = "Y"; break; case 3: attr = "Z"; break; case 4: attr = "T"; break; case 5: attr = "C"; break; } newNum = DataTools.read4SignedBytes(in, little); origin = DataTools.readDouble(in, little); if (!attr.equals("T") && !attr.equals("C") && !attr.equals("")) { OMETools.setAttribute(ome, "StageLabel", attr, "" + origin); } DataTools.readDouble(in, little); // skip next double } } } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/6c0c1bf9dbcc30e259dc65b9177773f20d2b5d8d/FluoviewReader.java/clean/loci/formats/FluoviewReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
2240,
18,
2738,
2277,
5621,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
368,
4199,
1160,
1353,
1377,
1250,
12720,
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,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
2240,
18,
2738,
2277,
5621,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
368,
4199,
1160,
1353,
1377,
1250,
12720,
273,... |
fsView.getFiles(directory,false); | list = fsView.getFiles(directory,false); | public VFSFile[] _listFiles(Object session, String path, Component comp) { //{{{ Windows work around /* On Windows, paths of the form X: list the last *working * directory* on that drive. To list the root of the drive, * you must use X:\. * * However, the VFS browser and friends strip off trailing * path separators, for various reasons. So to work around * that, we add a '\' to drive letter paths on Windows. */ if(OperatingSystem.isWindows()) { if(path.length() == 2 && path.charAt(1) == ':') path = path.concat(File.separator); } //}}} File directory = new File(path); File[] list = null; if(directory.exists()) fsView.getFiles(directory,false); if(list == null) { VFSManager.error(comp,path,"ioerror.directory-error-nomsg",null); return null; } VFSFile[] list2 = new VFSFile[list.length]; for(int i = 0; i < list.length; i++) list2[i] = new LocalFile(list[i]); return list2; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e03754eed6933fd7d0b327c78e5d41a37d6d61a6/FileVFS.java/clean/org/gjt/sp/jedit/io/FileVFS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
23567,
812,
8526,
389,
1098,
2697,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
202,
95,
202,
202,
759,
12187,
95,
8202,
1440,
6740,
202,
202,
20308,
2755,
8202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23567,
812,
8526,
389,
1098,
2697,
12,
921,
1339,
16,
514,
589,
16,
202,
202,
1841,
1161,
13,
202,
95,
202,
202,
759,
12187,
95,
8202,
1440,
6740,
202,
202,
20308,
2755,
8202,... |
progress.setProgress(750); | setProgress(progress, 750); | public SlimPlotter(String[] args) throws Exception { console = new OutputConsole("Log"); System.setErr(new ConsoleStream(new PrintStream(console))); console.getTextArea().setColumns(54); console.getTextArea().setRows(10); // progress estimate: // * Reading data - 70% // * Creating types - 1% // * Building displays - 7% // * Constructing images - 14% // * Adjusting peaks - 4% // * Creating plots - 4% ProgressMonitor progress = new ProgressMonitor(null, "Launching SlimPlotter", "Initializing", 0, 1000); progress.setMillisToPopup(0); progress.setMillisToDecideToPopup(0); // check for required libraries try { Class.forName("javax.vecmath.Point3d"); } catch (Throwable t) { String os = System.getProperty("os.name").toLowerCase(); String url = null; if (os.indexOf("windows") >= 0 || os.indexOf("linux") >= 0 || os.indexOf("solaris") >= 0) { url = "https://java3d.dev.java.net/binary-builds.html"; } else if (os.indexOf("mac os x") >= 0) { url = "http://www.apple.com/downloads/macosx/apple/" + "java3dandjavaadvancedimagingupdate.html"; } else if (os.indexOf("aix") >= 0) { url = "http://www-128.ibm.com/developerworks/java/jdk/aix/index.html"; } else if (os.indexOf("hp-ux") >= 0) { url = "http://www.hp.com/products1/unix/java/java2/java3d/downloads/" + "index.html"; } else if (os.indexOf("irix") >= 0) { url = "http://www.sgi.com/products/evaluation/6.5_java3d_1.3.1/"; } JOptionPane.showMessageDialog(null, "SlimPlotter requires Java3D, but it was not found." + (url == null ? "" : ("\nPlease install it from:\n" + url)), "SlimPlotter", JOptionPane.ERROR_MESSAGE); System.exit(3); } // parse command line arguments String filename = null; File file = null; if (args == null || args.length < 1) { JFileChooser jc = new JFileChooser(System.getProperty("user.dir")); jc.addChoosableFileFilter(new ExtensionFileFilter("sdt", "Becker & Hickl SPC-Image SDT")); int rval = jc.showOpenDialog(null); if (rval != JFileChooser.APPROVE_OPTION) { System.out.println("Please specify an SDT file."); System.exit(1); } file = jc.getSelectedFile(); filename = file.getPath(); } else { filename = args[0]; file = new File(filename); } if (!file.exists()) { System.out.println("File does not exist: " + filename); System.exit(2); } // read SDT file header SDTReader reader = new SDTReader(); SDTInfo info = reader.getInfo(file.getPath()); reader.close(); int offset = info.dataBlockOffs + 22; width = info.width; height = info.height; timeBins = info.timeBins; channels = info.channels; timeRange = 12.5f; minWave = 400; waveStep = 10; // show dialog confirming data parameters paramDialog = new JDialog((Frame) null, "SlimPlotter", true); JPanel paramPane = new JPanel(); paramPane.setBorder(new EmptyBorder(10, 10, 10, 10)); paramDialog.setContentPane(paramPane); paramPane.setLayout(new GridLayout(10, 3)); wField = addRow(paramPane, "Image width", width, "pixels"); hField = addRow(paramPane, "Image height", height, "pixels"); tField = addRow(paramPane, "Time bins", timeBins, ""); cField = addRow(paramPane, "Channel count", channels, ""); trField = addRow(paramPane, "Time range", timeRange, "nanoseconds"); wlField = addRow(paramPane, "Starting wavelength", minWave, "nanometers"); sField = addRow(paramPane, "Channel width", waveStep, "nanometers"); JButton ok = new JButton("OK"); paramDialog.getRootPane().setDefaultButton(ok); ok.addActionListener(this); // row 8 peaksBox = new JCheckBox("Align peaks", true); paramPane.add(peaksBox); paramPane.add(new JLabel()); paramPane.add(new JLabel()); // row 9 paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(new JLabel()); // row 10 paramPane.add(new JLabel()); paramPane.add(ok); paramDialog.pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension ps = paramDialog.getSize(); paramDialog.setLocation((screenSize.width - ps.width) / 2, (screenSize.height - ps.height) / 2); paramDialog.setVisible(true); maxWave = minWave + (channels - 1) * waveStep; roiCount = width * height; roiPercent = 100; // pop up progress monitor progress.setProgress(1); // estimate: 0.1% if (progress.isCanceled()) System.exit(0); // read pixel data progress.setNote("Reading data"); DataInputStream fin = new DataInputStream(new FileInputStream(file)); fin.skipBytes(offset); // skip to data byte[] data = new byte[2 * channels * height * width * timeBins]; int blockSize = 65536; for (int off=0; off<data.length; off+=blockSize) { int len = data.length - off; if (len > blockSize) len = blockSize; fin.readFully(data, off, len); progress.setProgress(700 * (off + blockSize) / data.length); // estimate: 0% -> 70% if (progress.isCanceled()) System.exit(0); } fin.close(); // create types progress.setNote("Creating types"); RealType xType = RealType.getRealType("element"); RealType yType = RealType.getRealType("line"); ScaledUnit ns = new ScaledUnit(1e-9, SI.second, "ns"); ScaledUnit nm = new ScaledUnit(1e-9, SI.meter, "nm"); bcUnits = new Unit[] {ns, nm}; bType = RealType.getRealType("bin", ns); cType = RealType.getRealType("channel", nm); RealType vType = RealType.getRealType("count"); RealTupleType xy = new RealTupleType(xType, yType); FunctionType xyvFunc = new FunctionType(xy, vType); Integer2DSet xySet = new Integer2DSet(xy, width, height); FunctionType cxyvFunc = new FunctionType(cType, xyvFunc); Linear1DSet cSet = new Linear1DSet(cType, minWave, maxWave, channels, null, new Unit[] {nm}, null); bc = new RealTupleType(bType, cType); RealType vType2 = RealType.getRealType("color"); RealTupleType vv = new RealTupleType(vType, vType2); bcvFunc = new FunctionType(bc, vv); RealType vTypeFit = RealType.getRealType("value_fit"); bcvFuncFit = new FunctionType(bc, vTypeFit); RealType vTypeRes = RealType.getRealType("value_res"); bcvFuncRes = new FunctionType(bc, vTypeRes); progress.setProgress(710); // estimate: 71% if (progress.isCanceled()) System.exit(0); // plot intensity data in 2D display progress.setNote("Building displays"); iPlot = new DisplayImplJ3D("intensity", new TwoDDisplayRendererJ3D()); iPlot.getMouseBehavior().getMouseHelper().setFunctionMap(new int[][][] { {{MouseHelper.DIRECT, MouseHelper.NONE}, // L, shift-L {MouseHelper.NONE, MouseHelper.NONE}}, // ctrl-L, ctrl-shift-L {{MouseHelper.CURSOR_TRANSLATE, MouseHelper.CURSOR_ZOOM}, // M, shift-M {MouseHelper.CURSOR_ROTATE, MouseHelper.NONE}}, // ctrl-M, ctrl-shift-M {{MouseHelper.ROTATE, MouseHelper.ZOOM}, // R, shift-R {MouseHelper.TRANSLATE, MouseHelper.NONE}}, // ctrl-R, ctrl-shift-R }); iPlot.enableEvent(DisplayEvent.MOUSE_DRAGGED); iPlot.addDisplayListener(this); progress.setProgress(720); // estimate: 72% if (progress.isCanceled()) System.exit(0); iPlot.addMap(new ScalarMap(xType, Display.XAxis)); iPlot.addMap(new ScalarMap(yType, Display.YAxis)); iPlot.addMap(new ScalarMap(vType, Display.RGB)); iPlot.addMap(new ScalarMap(cType, Display.Animation)); DataReferenceImpl intensityRef = new DataReferenceImpl("intensity"); iPlot.addReference(intensityRef); progress.setProgress(730); // estimate: 73% if (progress.isCanceled()) System.exit(0); // set up curve manipulation renderer in 2D display roiGrid = new float[2][width * height]; roiMask = new boolean[height][width]; for (int h=0; h<height; h++) { for (int w=0; w<width; w++) { int ndx = h * width + w; roiGrid[0][ndx] = w; roiGrid[1][ndx] = h; roiMask[h][w] = true; } } final DataReferenceImpl curveRef = new DataReferenceImpl("curve"); UnionSet dummyCurve = new UnionSet(xy, new Gridded2DSet[] { new Gridded2DSet(xy, new float[][] {{0}, {0}}, 1) }); curveRef.setData(dummyCurve); CurveManipulationRendererJ3D curve = new CurveManipulationRendererJ3D(0, 0, true); iPlot.addReferences(curve, curveRef); CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { // save latest drawn curve curveSet = (UnionSet) curveRef.getData(); } }; cell.addReference(curveRef); roiRef = new DataReferenceImpl("roi"); roiRef.setData(new Real(0)); // dummy iPlot.addReference(roiRef, new ConstantMap[] { new ConstantMap(0, Display.Blue), new ConstantMap(0.1, Display.Alpha) }); progress.setProgress(740); // estimate: 74% if (progress.isCanceled()) System.exit(0); ac = (AnimationControl) iPlot.getControl(AnimationControl.class); iPlot.getProjectionControl().setMatrix( iPlot.make_matrix(0, 0, 0, 0.85, 0, 0, 0)); progress.setProgress(750); // estimate: 75% if (progress.isCanceled()) System.exit(0); // plot decay curves in 3D display decayPlot = new DisplayImplJ3D("decay"); ScalarMap xMap = new ScalarMap(bType, Display.XAxis); ScalarMap yMap = new ScalarMap(cType, Display.YAxis); zMap = new ScalarMap(vType, Display.ZAxis); zMapFit = new ScalarMap(vTypeFit, Display.ZAxis); zMapRes = new ScalarMap(vTypeRes, Display.ZAxis); vMap = new ScalarMap(vType, Display.RGB); //vMapFit = new ScalarMap(vTypeFit, Display.RGB); vMapRes = new ScalarMap(vTypeRes, Display.RGB); decayPlot.addMap(xMap); decayPlot.addMap(yMap); decayPlot.addMap(zMap); decayPlot.addMap(zMapFit); decayPlot.addMap(zMapRes); decayPlot.addMap(vMap); //decayPlot.addMap(vMapFit); decayPlot.addMap(vMapRes); progress.setProgress(760); // estimate: 76% if (progress.isCanceled()) System.exit(0); decayRend = new DefaultRendererJ3D(); decayRef = new DataReferenceImpl("decay"); decayPlot.addReferences(decayRend, decayRef); if (adjustPeaks) { fitRend = new DefaultRendererJ3D(); fitRef = new DataReferenceImpl("fit"); decayPlot.addReferences(fitRend, fitRef, new ConstantMap[] { new ConstantMap(1.0, Display.Red), new ConstantMap(1.0, Display.Green), new ConstantMap(1.0, Display.Blue) }); fitRend.toggle(false); resRend = new DefaultRendererJ3D(); resRef = new DataReferenceImpl("residuals"); decayPlot.addReferences(resRend, resRef); resRend.toggle(false); } progress.setProgress(770); // estimate: 77% if (progress.isCanceled()) System.exit(0); xMap.setRange(0, timeRange); yMap.setRange(minWave, maxWave); AxisScale xScale = xMap.getAxisScale(); Font font = Font.decode("serif 24"); xScale.setFont(font); xScale.setTitle("Time (ns)"); xScale.setSnapToBox(true); AxisScale yScale = yMap.getAxisScale(); yScale.setFont(font); yScale.setTitle("Wavelength (nm)"); yScale.setSide(AxisScale.SECONDARY); yScale.setSnapToBox(true); AxisScale zScale = zMap.getAxisScale(); zScale.setFont(font); zScale.setTitle("Count"); zScale.setSnapToBox(true); // workaround for weird axis spacing issue zMapFit.getAxisScale().setVisible(false); zMapRes.getAxisScale().setVisible(false); GraphicsModeControl gmc = decayPlot.getGraphicsModeControl(); gmc.setScaleEnable(true); gmc.setTextureEnable(false); ProjectionControl pc = decayPlot.getProjectionControl(); pc.setMatrix(MATRIX); pc.setAspectCartesian( new double[] {2, 1, 1}); progress.setProgress(780); // estimate: 78% if (progress.isCanceled()) System.exit(0); // convert byte data to unsigned shorts progress.setNote("Constructing images"); values = new int[channels][height][width][timeBins]; float[][][] pix = new float[channels][1][width * height]; FieldImpl field = new FieldImpl(cxyvFunc, cSet); int max = 0; int maxChan = 0; for (int c=0; c<channels; c++) { int oc = timeBins * width * height * c; for (int h=0; h<height; h++) { int oh = timeBins * width * h; for (int w=0; w<width; w++) { int ow = timeBins * w; int sum = 0; for (int t=0; t<timeBins; t++) { int ndx = 2 * (oc + oh + ow + t); int val = DataTools.bytesToInt(data, ndx, 2, true); if (val > max) { max = val; maxChan = c; } values[c][h][w][t] = val; sum += val; } pix[c][0][width * h + w] = sum; } progress.setProgress(780 + 140 * (height * c + h + 1) / (channels * height)); // estimate: 78% -> 92% if (progress.isCanceled()) System.exit(0); } FlatField ff = new FlatField(xyvFunc, xySet); ff.setSamples(pix[c], false); field.setSample(c, ff); } // adjust peaks if (adjustPeaks) { progress.setNote("Adjusting peaks"); int[] peaks = new int[channels]; for (int c=0; c<channels; c++) { int[] sum = new int[timeBins]; for (int h=0; h<height; h++) { for (int w=0; w<width; w++) { for (int t=0; t<timeBins; t++) sum[t] += values[c][h][w][t]; } } int peak = 0, ndx = 0; for (int t=0; t<timeBins; t++) { if (peak <= sum[t]) { peak = sum[t]; ndx = t; } else if (t > 20) break; // HACK - too early to give up } peaks[c] = ndx; progress.setProgress(920 + 20 * (c + 1) / channels); // estimate: 92% -> 94% if (progress.isCanceled()) System.exit(0); } maxPeak = 0; for (int c=1; c<channels; c++) { if (maxPeak < peaks[c]) maxPeak = peaks[c]; } log("Aligning peaks to tmax = " + maxPeak); for (int c=0; c<channels; c++) { int shift = maxPeak - peaks[c]; if (shift > 0) { for (int h=0; h<height; h++) { for (int w=0; w<width; w++) { for (int t=timeBins-1; t>=shift; t--) { values[c][h][w][t] = values[c][h][w][t - shift]; } for (int t=shift-1; t>=0; t--) values[c][h][w][t] = 0; } } log("\tChannel #" + (c + 1) + ": tmax = " + peaks[c] + " (shifting by " + shift + ")"); } progress.setProgress(940 + 20 * (c + 1) / channels); // estimate: 94% -> 96% if (progress.isCanceled()) System.exit(0); } // add yellow line to indicate adjusted peak position lineRend = new DefaultRendererJ3D(); DataReferenceImpl peakRef = new DataReferenceImpl("peaks"); float peakTime = (float) (maxPeak * timeRange / timeBins); peakRef.setData(new Gridded2DSet(bc, new float[][] {{peakTime, peakTime}, {minWave, maxWave}}, 2)); decayPlot.addReferences(lineRend, peakRef, new ConstantMap[] { new ConstantMap(-1, Display.ZAxis), new ConstantMap(0, Display.Blue),// new ConstantMap(2, Display.LineWidth) }); } // construct 2D pane progress.setNote("Creating plots"); JFrame masterWindow = new JFrame("Slim Plotter - " + file.getName()); masterWindow.addWindowListener(this); JPanel masterPane = new JPanel(); masterPane.setLayout(new BorderLayout()); masterWindow.setContentPane(masterPane); JPanel intensityPane = new JPanel(); intensityPane.setLayout(new BorderLayout()); JPanel iPlotPane = new JPanel() { private int height = 380; public Dimension getMinimumSize() { Dimension min = super.getMinimumSize(); return new Dimension(min.width, height); } public Dimension getPreferredSize() { Dimension pref = super.getPreferredSize(); return new Dimension(pref.width, height); } public Dimension getMaximumSize() { Dimension max = super.getMaximumSize(); return new Dimension(max.width, height); } }; iPlotPane.setLayout(new BorderLayout()); iPlotPane.add(iPlot.getComponent(), BorderLayout.CENTER); intensityPane.add(iPlotPane, BorderLayout.CENTER); progress.setProgress(970); // estimate: 97% if (progress.isCanceled()) System.exit(0); JPanel sliderPane = new JPanel(); sliderPane.setLayout(new BoxLayout(sliderPane, BoxLayout.X_AXIS)); intensityPane.add(sliderPane, BorderLayout.SOUTH); cSlider = new JSlider(1, channels, 1); cSlider.setToolTipText( "Selects the channel to display in the 2D intensity plot above"); cSlider.setSnapToTicks(true); cSlider.setMajorTickSpacing(channels / 4); cSlider.setMinorTickSpacing(1); cSlider.setPaintTicks(true); cSlider.addChangeListener(this); cSlider.setBorder(new EmptyBorder(8, 5, 8, 5)); sliderPane.add(cSlider); cToggle = new JCheckBox("", true); cToggle.setToolTipText( "Toggles the selected channel's visibility in the 3D data plot"); cToggle.addActionListener(this); sliderPane.add(cToggle); intensityRef.setData(field); ColorControl cc = (ColorControl) iPlot.getControl(ColorControl.class); cc.setTable(ColorControl.initTableGreyWedge(new float[3][256])); progress.setProgress(980); // estimate: 98% if (progress.isCanceled()) System.exit(0); // construct 3D pane JPanel decayPane = new JPanel(); decayPane.setLayout(new BorderLayout()); decayPane.add(decayPlot.getComponent(), BorderLayout.CENTER); decayLabel = new JLabel("Decay curve for all pixels"); decayLabel.setToolTipText( "Displays information about the selected region of interest"); decayPane.add(decayLabel, BorderLayout.NORTH); JPanel options = new JPanel(); options.setBorder(new EmptyBorder(8, 5, 8, 5)); options.setLayout(new BoxLayout(options, BoxLayout.Y_AXIS)); linear = new JRadioButton("Linear", true); linear.setToolTipText("Plots 3D data with a linear scale"); log = new JRadioButton("Log", false); log.setToolTipText("Plots 3D data with a logarithmic scale"); perspective = new JRadioButton("Perspective", true); perspective.setToolTipText( "Displays 3D plot with a perspective projection"); parallel = new JRadioButton("Parallel", false); parallel.setToolTipText( "Displays 3D plot with a parallel (orthographic) projection"); dataSurface = new JRadioButton("Surface", true); dataSurface.setToolTipText("Displays raw data as a 2D surface"); dataLines = new JRadioButton("Lines", false); dataLines.setToolTipText("Displays raw data as a series of lines"); fitSurface = new JRadioButton("Surface", false); fitSurface.setToolTipText("Displays fitted curves as a 2D surface"); fitLines = new JRadioButton("Lines", true); fitLines.setToolTipText("Displays fitted curves as a series of lines"); resSurface = new JRadioButton("Surface", false); resSurface.setToolTipText( "Displays fitted curve residuals as a 2D surface"); resLines = new JRadioButton("Lines", true); resLines.setToolTipText( "Displays fitted curve residuals as a series of lines"); colorHeight = new JRadioButton("Counts", true); colorHeight.setToolTipText( "Colorizes data according to the height (histogram count)"); colorTau = new JRadioButton("Lifetimes", false); colorTau.setToolTipText( "Colorizes data according to aggregate lifetime value"); numCurves = new JSpinner(new SpinnerNumberModel(1, 1, 9, 1)); numCurves.setToolTipText("Number of components in exponential fit"); numCurves.setMaximumSize(numCurves.getPreferredSize()); numCurves.addChangeListener(this); JPanel showPanel = new JPanel(); showPanel.setBorder(new TitledBorder("Show")); showPanel.setLayout(new BoxLayout(showPanel, BoxLayout.X_AXIS)); showData = new JCheckBox("Data", true); showData.setToolTipText("Toggles visibility of raw data"); showData.addActionListener(this); showPanel.add(showData); showScale = new JCheckBox("Scale", true); showScale.setToolTipText("Toggles visibility of scale bars"); showScale.addActionListener(this); showPanel.add(showScale); showBox = new JCheckBox("Box", true); showBox.setToolTipText("Toggles visibility of bounding box"); showBox.addActionListener(this); showPanel.add(showBox); showLine = new JCheckBox("Line", adjustPeaks); showLine.setToolTipText( "Toggles visibility of aligned peaks indicator line"); showLine.setEnabled(adjustPeaks); showLine.addActionListener(this); showPanel.add(showLine); showFit = new JCheckBox("Fit", false); showFit.setToolTipText("Toggles visibility of fitted curves"); showFit.setEnabled(adjustPeaks); showFit.addActionListener(this); showPanel.add(showFit); showResiduals = new JCheckBox("Residuals", false); showResiduals.setToolTipText( "Toggles visibility of fitted curve residuals"); showResiduals.setEnabled(adjustPeaks); showResiduals.addActionListener(this); showPanel.add(showResiduals); JPanel scalePanel = new JPanel(); scalePanel.setBorder(new TitledBorder("Z Scale Override")); scalePanel.setLayout(new BoxLayout(scalePanel, BoxLayout.X_AXIS)); zOverride = new JCheckBox("", false); zOverride.setToolTipText("Toggles manual override of Z axis scale (Count)"); zOverride.addActionListener(this); scalePanel.add(zOverride); zScaleValue = new JTextField(9); zScaleValue.setToolTipText("Overridden Z axis scale value"); zScaleValue.setEnabled(false); zScaleValue.getDocument().addDocumentListener(this); scalePanel.add(zScaleValue); exportData = new JButton("Export"); exportData.setToolTipText( "Exports the selected ROI's raw data to a text file"); exportData.addActionListener(this); progress.setProgress(990); // estimate: 99% if (progress.isCanceled()) System.exit(0); JPanel leftPanel = new JPanel() { public Dimension getMaximumSize() { Dimension pref = getPreferredSize(); Dimension max = super.getMaximumSize(); return new Dimension(pref.width, max.height); } }; leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS)); leftPanel.add(intensityPane); leftPanel.add(console.getWindow().getContentPane()); BreakawayPanel breakawayPanel = new BreakawayPanel(masterPane, "Intensity Data - " + file.getName(), false); breakawayPanel.setEdge(BorderLayout.WEST); breakawayPanel.setUpEnabled(false); breakawayPanel.setDownEnabled(false); breakawayPanel.setContentPane(leftPanel); JPanel options1 = new JPanel(); options1.setLayout(new BoxLayout(options1, BoxLayout.X_AXIS)); options1.add(makeRadioPanel("Scale", linear, log)); options1.add(makeRadioPanel("Projection", perspective, parallel)); options1.add(makeRadioPanel("Data", dataSurface, dataLines)); options1.add(makeRadioPanel("Fit", fitSurface, fitLines)); options1.add(makeRadioPanel("Residuals", resSurface, resLines)); options1.add(makeRadioPanel("Colors", colorHeight, colorTau));// options1.add(numCurves); JPanel options2 = new JPanel(); options2.setLayout(new BoxLayout(options2, BoxLayout.X_AXIS)); options2.add(showPanel); options2.add(scalePanel); options2.add(Box.createHorizontalStrut(5)); options2.add(exportData); options.add(options1); options.add(options2); decayPane.add(options, BorderLayout.SOUTH); masterPane.add(decayPane, BorderLayout.CENTER); progress.setProgress(999); // estimate: 99.9% if (progress.isCanceled()) System.exit(0); // show window on screen masterWindow.pack(); Dimension size = masterWindow.getSize(); Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); masterWindow.setLocation((screen.width - size.width) / 2, (screen.height - size.height) / 2); masterWindow.setVisible(true); progress.setProgress(1000); progress.close(); plotData(true, true, true); try { Thread.sleep(200); } catch (InterruptedException exc) { exc.printStackTrace(); } cSlider.setValue(maxChan + 1); } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/2de07498edf1b0e10fe321833d0a5ce23b48dbeb/SlimPlotter.java/clean/loci/apps/slim/SlimPlotter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
348,
7091,
11532,
387,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
2983,
273,
394,
3633,
10215,
2932,
1343,
8863,
565,
2332,
18,
542,
2524,
12,
2704,
9657,
1228,
12,
2704,
21677,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
7091,
11532,
387,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
2983,
273,
394,
3633,
10215,
2932,
1343,
8863,
565,
2332,
18,
542,
2524,
12,
2704,
9657,
1228,
12,
2704,
21677,
... |
System.out.println("Mondrian: properties loaded from '" + url + "'"); | System.out.println("Mondrian: properties loaded from '" + url + "'"); | private void load(final URL url) { try { load(url.openStream()); if (populateCount == 0) { System.out.println("Mondrian: properties loaded from '" + url + "'"); } } catch (IOException e) { System.out.println("Mondrian: error while loading properties from '" + url + "' (" + e + ")"); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/596f63e940fdfaffb00fb570332407d85a43ecf9/MondrianProperties.java/buggy/src/main/mondrian/olap/MondrianProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
12,
6385,
1976,
880,
13,
288,
3639,
775,
288,
5411,
1262,
12,
718,
18,
3190,
1228,
10663,
5411,
309,
261,
19936,
1380,
422,
374,
13,
288,
7734,
2332,
18,
659,
18,
8222,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
12,
6385,
1976,
880,
13,
288,
3639,
775,
288,
5411,
1262,
12,
718,
18,
3190,
1228,
10663,
5411,
309,
261,
19936,
1380,
422,
374,
13,
288,
7734,
2332,
18,
659,
18,
8222,... |
Integer exitCode=new Integer (-9999); exitCode = (Integer) cd.sfResolve("code",exitCode,false); if (exitCode.intValue()!=0) { String msg = " Error running script [exit code ="+exitCode+"]:"+script.toString(); SmartFrogException sex = new SmartFrogException(msg, this); sex.add("script", script); sex.add("result", cd); if (sfLog().isErrorEnabled()) { sfLog().error(msg + "\n"+cd.toString()); | Integer exitCode = new Integer(-9999); exitCode = (Integer)cd.sfResolve("code", exitCode, false); if (exitCode.intValue()!=0) { String msg = " Error running script [exit code ="+exitCode+"]:"+ script.toString(); SmartFrogException sex = new SmartFrogException(msg, this); sex.add("script", script); sex.add("result", cd); if (sfLog().isErrorEnabled()) { sfLog().error(msg+"\n"+cd.toString()); } throw sex; | private void checkResult(Object script, ComponentDescription cd) throws SmartFrogResolutionException, SmartFrogException { if (cd!=null) { Integer exitCode=new Integer (-9999); exitCode = (Integer) cd.sfResolve("code",exitCode,false); if (exitCode.intValue()!=0) { String msg = " Error running script [exit code ="+exitCode+"]:"+script.toString(); SmartFrogException sex = new SmartFrogException(msg, this); sex.add("script", script); sex.add("result", cd); if (sfLog().isErrorEnabled()) { sfLog().error(msg + "\n"+cd.toString()); } throw sex; } }} | 4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/4f0e83ba41b97305ba22757d91a2afbc776ff69e/SFScriptImpl.java/clean/core/smartfrog/src/org/smartfrog/services/shellscript/SFScriptImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
27627,
12,
921,
2728,
16,
5435,
3291,
7976,
13,
1216,
565,
19656,
42,
303,
75,
11098,
503,
16,
19656,
42,
303,
75,
503,
288,
565,
309,
261,
4315,
5,
33,
2011,
13,
288,
565,
2144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
27627,
12,
921,
2728,
16,
5435,
3291,
7976,
13,
1216,
565,
19656,
42,
303,
75,
11098,
503,
16,
19656,
42,
303,
75,
503,
288,
565,
309,
261,
4315,
5,
33,
2011,
13,
288,
565,
2144... |
" value=" + vValue); | " value=" + vValue); | public void startElement(String name, Attributes attributes) throws org.xml.sax.SAXException { if (name.equals(VARIABLE_TAG)) { String vName = attributes.getValue("name"); String vValue = attributes.getValue("value"); if (checkNonEmpty(vName) && (vValue != null)) { logger.info("Found environment variable name=" + vName + " value=" + vValue); variables.add(vName + "=" + vValue); } } } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
13591,
12,
780,
508,
16,
9055,
1677,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
309,
261,
529,
18,
14963,
12,
16444,
67,
7927,
3719,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
13591,
12,
780,
508,
16,
9055,
1677,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
309,
261,
529,
18,
14963,
12,
16444,
67,
7927,
3719,
288,
1... |
= new DecoderProConfigAction("Preferences..."); | = new DecoderProConfigAction(rb.getString("MenuItemPreferences")); | public DecoderProMain(JFrame frame) { super(true); // create basic GUI setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // Create a menu bar and give it a bevel border menuBar = new JMenuBar(); // menuBar.setBorder(new BevelBorder(BevelBorder.RAISED)); // load preferences DecoderProConfigAction prefs = new DecoderProConfigAction("Preferences..."); // populate GUI // create actions with side-effects if you need to reference them more than once Action serviceprog = new jmri.jmrit.symbolicprog.tabbedframe.PaneProgAction("Use programming track ..."); Action opsprog = new jmri.jmrit.symbolicprog.tabbedframe.PaneOpsProgAction("Program on main track ..."); Action quit = new AbstractAction("Quit"){ public void actionPerformed(ActionEvent e) { System.exit(0); } }; // Create menu categories and add to the menu bar, add actions to menus JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); fileMenu.add(serviceprog); fileMenu.add(opsprog); fileMenu.add(new JSeparator()); fileMenu.add(new jmri.jmrit.decoderdefn.PrintDecoderListAction(frame)); fileMenu.add(quit); JMenu editMenu = new JMenu("Edit"); menuBar.add(editMenu); editMenu.add(prefs); menuBar.add(new jmri.jmrit.roster.RosterMenu("Roster", jmri.jmrit.roster.RosterMenu.MAINMENU, this)); JMenu toolMenu = new JMenu("Tools"); menuBar.add(toolMenu); toolMenu.add(new jmri.jmrit.powerpanel.PowerPanelAction("Power Control")); toolMenu.add(new jmri.jmrit.speedometer.SpeedometerAction( "Speedometer" )); toolMenu.add(new jmri.jmrit.simpleprog.SimpleProgAction("Single CV Programmer")); toolMenu.add(new jmri.jmrit.dualdecoder.DualDecoderToolAction()); toolMenu.add(new JSeparator()); JMenu throttleMenu = new JMenu("Throttles"); throttleMenu.add(new jmri.jmrit.throttle.ThrottleCreationAction( "New Throttle..." )); throttleMenu.add(new jmri.jmrit.throttle.StoreXmlThrottleAction( "Save Throttle Layout" )); throttleMenu.add(new jmri.jmrit.throttle.LoadXmlThrottleAction( "Load Throttle Layout" )); throttleMenu.add(new jmri.jmrit.throttle.EditThrottlePreferencesAction( "Edit Throttle Preferences" )); toolMenu.add(throttleMenu); toolMenu.add(new JSeparator()); toolMenu.add(new jmri.jmrit.XmlFileCheckAction("Check XML File", this)); toolMenu.add(new jmri.jmrit.decoderdefn.NameCheckAction("Check decoder names", this)); toolMenu.add(new jmri.jmrit.symbolicprog.tabbedframe.ProgCheckAction("Check programmer names", this)); toolMenu.add(new jmri.jmrit.decoderdefn.DecoderIndexCreateAction("Create decoder index")); toolMenu.add(new JSeparator()); toolMenu.add(new jmri.jmrit.roster.RecreateRosterAction("Recreate roster")); JMenu debugMenu = new JMenu("Debug"); menuBar.add(debugMenu); debugMenu.add(new jmri.jmrix.easydcc.easydccmon.EasyDccMonAction("EasyDCC Command Monitor")); debugMenu.add(new jmri.jmrix.lenz.mon.XNetMonAction("Lenz/Atlas Command Monitor")); debugMenu.add(new jmri.jmrix.loconet.locomon.LocoMonAction("LocoNet Monitor")); debugMenu.add(new jmri.jmrix.nce.ncemon.NceMonAction("NCE Command Monitor")); debugMenu.add(new jmri.jmrix.sprog.sprogmon.SprogMonAction("SPROG Command Monitor")); debugMenu.add(new jmri.jmrit.MemoryFrameAction("Memory usage monitor")); debugMenu.add(new JSeparator()); debugMenu.add(new jmri.jmrix.serialsensor.SerialSensorAction("Serial port sensors")); // Label & text JPanel pane1 = new JPanel(); pane1.setLayout(new FlowLayout()); pane1.add(new JLabel(new ImageIcon(ClassLoader.getSystemResource("resources/decoderpro.gif"),"Decoder Pro label"), JLabel.LEFT)); JPanel pane2 = new JPanel(); pane2.setLayout(new BoxLayout(pane2, BoxLayout.Y_AXIS)); pane2.add(new JLabel(" Decoder Pro "+jmri.Version.name()+", part of the JMRI project ")); pane2.add(new JLabel(" http://jmri.sf.net/DecoderPro ")); pane2.add(new JLabel(" ")); pane2.add(new JLabel(" Connected via "+prefs.getCurrentProtocolName())); pane2.add(new JLabel(" on port "+prefs.getCurrentPortName())); pane2.add(new JLabel(" ")); pane2.add(new JLabel(" Java version "+System.getProperty("java.version","<unknown>"))); pane1.add(pane2); add(pane1); // Buttons JButton b1 = new JButton("Use programming track ..."); b1.addActionListener(serviceprog); b1.setAlignmentX(JLabel.CENTER_ALIGNMENT); add(b1); JButton m1 = new JButton("Program on main track ..."); m1.addActionListener(opsprog); m1.setAlignmentX(JLabel.CENTER_ALIGNMENT); add(m1); if (jmri.InstanceManager.programmerManagerInstance()==null || !jmri.InstanceManager.programmerManagerInstance().isOpsModePossible()) { m1.setEnabled(false); m1.setToolTipText("This button is disabled because your command station can't do " +"ops mode programming, or we don't yet have code to do " +"it for that type of system"); } JButton q1 = new JButton("Quit"); q1.addActionListener(quit); q1.setAlignmentX(JLabel.CENTER_ALIGNMENT); add(q1); } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/bfb953f65bb3d87cfd17364e86f8db610b4d4d6c/DecoderProMain.java/clean/apps/DecoderPro/DecoderProMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15138,
626,
6376,
12,
46,
3219,
2623,
13,
288,
3639,
2240,
12,
3767,
1769,
3639,
368,
752,
5337,
10978,
3639,
18479,
12,
2704,
8549,
3744,
12,
2211,
16,
8549,
3744,
18,
61,
67,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15138,
626,
6376,
12,
46,
3219,
2623,
13,
288,
3639,
2240,
12,
3767,
1769,
3639,
368,
752,
5337,
10978,
3639,
18479,
12,
2704,
8549,
3744,
12,
2211,
16,
8549,
3744,
18,
61,
67,
25... |
idle_threads--; | protected synchronized Object getJob() { /* * This tells the newly idle thread to exit, * because there are already too much idle * threads. */ if (idle_threads >= max_idle_threads) { total_threads--; return null; } idle_threads++; while( job_queue.isEmpty() ) { try { wait(); } catch( InterruptedException e ) { } } idle_threads--; return job_queue.removeFirst(); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/68ff7a29cbdfd4110989cab07d6a2d52603d82dc/ThreadPool.java/clean/src/org/jacorb/util/threadpool/ThreadPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
1033,
13024,
1435,
565,
288,
3639,
1748,
540,
380,
1220,
24551,
326,
10894,
12088,
2650,
358,
2427,
16,
540,
380,
2724,
1915,
854,
1818,
4885,
9816,
12088,
540,
380,
7403,
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,
4750,
3852,
1033,
13024,
1435,
565,
288,
3639,
1748,
540,
380,
1220,
24551,
326,
10894,
12088,
2650,
358,
2427,
16,
540,
380,
2724,
1915,
854,
1818,
4885,
9816,
12088,
540,
380,
7403,
18,
... | |
RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass()); | RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass()); | public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass()); methodClass.defineMethod("arity", arity); methodClass.defineMethod("[]", call); methodClass.defineMethod("call", call); return methodClass; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyMethod.java/buggy/org/jruby/RubyMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
797,
752,
1305,
797,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
2428,
1305,
19353,
273,
1082,
202,
2704,
5685,
2428,
1305,
12,
54,
10340,
1305,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
797,
752,
1305,
797,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
2428,
1305,
19353,
273,
1082,
202,
2704,
5685,
2428,
1305,
12,
54,
10340,
1305,
18,
1106,
... |
"does not exist at the given location. "); | "does not exist at the given location. "); | private void checkLocation(String location){ try{ if(location.indexOf("/") != -1 || location.indexOf("\\") != -1){ URL u=new URL(getCommonLocation(location)); InputStream is=u.openStream(); is.close(); } }catch (IOException ignore){ log("File <"+ location + "> set at configuration of logcomponent " + "does not exist at the given location. "); } } | 13251 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13251/9aef89c5697c7bb657e1480bc3d78db172a701ec/LogConfig.java/buggy/osgi/bundles/log/src/org/knopflerfish/bundle/log/LogConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
866,
2735,
12,
780,
2117,
15329,
565,
775,
95,
1377,
309,
12,
3562,
18,
31806,
2932,
4898,
13,
480,
300,
21,
747,
3196,
2117,
18,
31806,
2932,
1695,
7923,
480,
300,
21,
15329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
2735,
12,
780,
2117,
15329,
565,
775,
95,
1377,
309,
12,
3562,
18,
31806,
2932,
4898,
13,
480,
300,
21,
747,
3196,
2117,
18,
31806,
2932,
1695,
7923,
480,
300,
21,
15329... |
KeySequenceBinding castedObject = (KeySequenceBinding) object; boolean equals = true; equals &= Util.equals(keySequence, castedObject.keySequence); equals &= Util.equals(match, castedObject.match); return equals; | final KeySequenceBinding castedObject = (KeySequenceBinding) object; if (!Util.equals(keySequence, castedObject.keySequence)) { return false; } return Util.equals(match, castedObject.match); | public boolean equals(Object object) { if (!(object instanceof KeySequenceBinding)) return false; KeySequenceBinding castedObject = (KeySequenceBinding) object; boolean equals = true; equals &= Util.equals(keySequence, castedObject.keySequence); equals &= Util.equals(match, castedObject.match); return equals; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/93a9ee73087009b29275c4fd77412f1b5a0354e8/KeySequenceBinding.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeySequenceBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
733,
13,
288,
3639,
309,
16051,
12,
1612,
1276,
1929,
4021,
5250,
3719,
5411,
327,
629,
31,
3639,
1929,
4021,
5250,
4812,
23016,
273,
261,
653,
4021,
5250,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
733,
13,
288,
3639,
309,
16051,
12,
1612,
1276,
1929,
4021,
5250,
3719,
5411,
327,
629,
31,
3639,
1929,
4021,
5250,
4812,
23016,
273,
261,
653,
4021,
5250,
13,
... |
Channel obj = (Channel)digester.parse((String)channels.get(i)); System.out.println( "Channel:" + obj) ; | String url = (String)channels.get(i); if( url.startsWith("/") ) { url = toFullUrl( request, url ); } if(debug) System.out.println( "Channel url=" + url) ; Channel obj = (Channel)digester.parse(url); if(debug) System.out.println( "Channel:" + obj) ; | public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println( "Enter Rss Channel Action" ); // Try to retrieve tile context ComponentContext context = ComponentContext.getContext( request ); if( context == null ) { throw new ServletException( "This action must be called by a Tile, not directly" ); } ActionErrors errors = new ActionErrors(); org.apache.commons.digester.rss.Channel channel = null; // -- Retrieve parameters -- // Urls can come from a list, or from a single attribute. List channels = (List)context.getAttribute( CHANNEL_URLS_KEY ); if( channels == null ) { Object url = context.getAttribute( CHANNEL_URL_KEY ); channels = new ArrayList(1); channels.add(url); } //channels.add("http://www.newsforge.com/newsforge.rss"); //channels.add("http://xmlhack.com/rss.php"); //channels.add("http://lwn.net/headlines/rss"); // channels.trimToSize(); System.out.println( "urls count" + channels.size() ) ; // -- Loop through channels -- ArrayList channelBeans = new ArrayList(channels.size()); try { for (int i=0; i<channels.size(); i++) { RSSDigester digester = new RSSDigester(); Channel obj = (Channel)digester.parse((String)channels.get(i)); System.out.println( "Channel:" + obj) ; //System.out.println( "Channel.items:" + obj.getI) ; channelBeans.add(obj); } } catch (Throwable t) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("rss.access.error")); servlet.log(t.toString()); } // -- Handle Errors --- if (!errors.empty()) { saveErrors(request, errors); if (mapping.getInput()!=null) return (new ActionForward(mapping.getInput())); // If no input page, use error forwarding System.out.println( "Exit Rss Channel Action : error" ); return (mapping.findForward("error")); } // -- Save Bean, and Continue --- System.out.println( "Exit Rss Channel Action" ); //request.setAttribute(CHANNELS_KEY,channelBeans); // Use Tile context to pass channels context.putAttribute( CHANNELS_KEY,channelBeans); return (mapping.findForward("continue")); } // ---- End perform ---- | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/ba15093f03daea16ccea6b3eaf48e2b03f603ab7/Channels.java/clean/tiles/src/tutorial/org/apache/struts/example/tiles/rssChannel/Channels.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3073,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
3639,
1216,
1860,
16,
16517,
288,
565,
2332,
18,
659,
18,
8222,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
3073,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
3639,
1216,
1860,
16,
16517,
288,
565,
2332,
18,
659,
18,
8222,
1... |
" insert into #t0029_t1 values " + " ('1999-01-07', '1998-09-09 15:35:05', " + " getdate(), '1998-09-09 15:35:00', null) " + | " insert into #t0029_t1 values " + " ('1999-01-07', '1998-09-09 15:35:05', " + " getdate(), '1998-09-09 15:35:00', null) " + | public void testxx0029() throws Exception { Statement stmt = con.createStatement(); int i; int j; int count = 0; ResultSet rs = null; boolean isResultSet; int updateCount; int resultSetCount=0; int rowCount=0; int numberOfUpdates=0; output.println("before execute DROP PROCEDURE"); try { isResultSet =stmt.execute("DROP PROCEDURE #t0029_p1"); updateCount = stmt.getUpdateCount(); do { output.println("DROP PROCEDURE isResultSet: " + isResultSet); output.println("DROP PROCEDURE updateCount: " + updateCount); isResultSet = stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } while (((updateCount!=-1) && !isResultSet) || isResultSet); } catch(SQLException e) { } try { isResultSet =stmt.execute("DROP PROCEDURE #t0029_p2"); updateCount = stmt.getUpdateCount(); do { output.println("DROP PROCEDURE isResultSet: " + isResultSet); output.println("DROP PROCEDURE updateCount: " + updateCount); isResultSet = stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } while (((updateCount!=-1) && !isResultSet) || isResultSet); } catch(SQLException e) { } dropTable("#t0029_t1"); isResultSet = stmt.execute( " create table #t0029_t1 " + " (t1 datetime not null, " + " t2 datetime null, " + " t3 smalldatetime not null, " + " t4 smalldatetime null, " + " t5 text null) "); updateCount = stmt.getUpdateCount(); do { output.println("CREATE TABLE isResultSet: " + isResultSet); output.println("CREATE TABLE updateCount: " + updateCount); isResultSet = stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } while (((updateCount!=-1) && !isResultSet) || isResultSet); isResultSet = stmt.execute( "CREATE PROCEDURE #t0029_p1 AS " + " insert into #t0029_t1 values " + " ('1999-01-07', '1998-09-09 15:35:05', " + " getdate(), '1998-09-09 15:35:00', null) " + " update #t0029_t1 set t1='1999-01-01' " + " insert into #t0029_t1 values " + " ('1999-01-08', '1998-09-09 15:35:05', " + " getdate(), '1998-09-09 15:35:00','456') " + " update #t0029_t1 set t2='1999-01-02' " + " declare @ptr varbinary(16) " + " select @ptr=textptr(t5) from #t0029_t1 " + " where t1='1999-01-08' " + " writetext #t0029_t1.t5 @ptr with log '123' "); updateCount = stmt.getUpdateCount(); do { output.println("CREATE PROCEDURE isResultSet: " + isResultSet); output.println("CREATE PROCEDURE updateCount: " + updateCount); isResultSet = stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } while (((updateCount!=-1) && !isResultSet) || isResultSet); isResultSet = stmt.execute( "CREATE PROCEDURE #t0029_p2 AS " + " set nocount on " + " EXEC #t0029_p1 " + " SELECT * FROM #t0029_t1 "); updateCount = stmt.getUpdateCount(); do { output.println("CREATE PROCEDURE isResultSet: " + isResultSet); output.println("CREATE PROCEDURE updateCount: " + updateCount); isResultSet = stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } while (((updateCount!=-1) && !isResultSet) || isResultSet); isResultSet = stmt.execute( "EXEC #t0029_p2 "); output.println("execute(EXEC #t0029_p2) returned: " + isResultSet); updateCount=stmt.getUpdateCount(); while (isResultSet || (updateCount!=-1)) { if (isResultSet) { resultSetCount++; rs = stmt.getResultSet(); ResultSetMetaData rsMeta = rs.getMetaData(); int columnCount = rsMeta.getColumnCount(); output.println("columnCount: " + Integer.toString(columnCount)); for(int n=1; n<= columnCount; n++) { output.println(Integer.toString(n) + ": " + rsMeta.getColumnName(n)); } while(rs.next()) { rowCount++; for(int n=1; n<= columnCount; n++) { output.println(Integer.toString(n) + ": " + rs.getString(n)); } } } else { numberOfUpdates += updateCount; output.println("UpdateCount: " + Integer.toString(updateCount)); } isResultSet=stmt.getMoreResults(); updateCount = stmt.getUpdateCount(); } output.println("resultSetCount: " + resultSetCount); output.println("Total rowCount: " + rowCount); output.println("Number of updates: " + numberOfUpdates); assertTrue((resultSetCount==1) && (rowCount==2) && (numberOfUpdates==0)); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c48c25bb38a5ee111490064c0098957f3dea379b/CSUnitTest.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/CSUnitTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5279,
713,
5540,
1435,
1216,
1185,
288,
565,
8056,
282,
3480,
273,
356,
18,
2640,
3406,
5621,
565,
509,
540,
277,
31,
565,
509,
540,
525,
31,
565,
509,
540,
1056,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5279,
713,
5540,
1435,
1216,
1185,
288,
565,
8056,
282,
3480,
273,
356,
18,
2640,
3406,
5621,
565,
509,
540,
277,
31,
565,
509,
540,
525,
31,
565,
509,
540,
1056,
565,
... |
ErrorLogger.log("Could not load label provider: " + provider.getClass().getCanonicalName() + " must implement " | MylarStatusHandler.log("Could not load label provider: " + provider.getClass().getCanonicalName() + " must implement " | private static void readLabelProvider(IConfigurationElement element) { try { Object provider = element.createExecutableExtension(UiExtensionPointReader.ELEMENT_UI_CLASS); Object contentType = element.getAttribute(UiExtensionPointReader.ELEMENT_UI_BRIDGE_CONTENT_TYPE); if (provider instanceof ILabelProvider && contentType != null) { MylarUiPlugin.getDefault().internalAddContextLabelProvider((String) contentType, (ILabelProvider) provider); } else { ErrorLogger.log("Could not load label provider: " + provider.getClass().getCanonicalName() + " must implement " + ILabelProvider.class.getCanonicalName(), thisReader); } } catch (CoreException e) { ErrorLogger.log(e, "Could not load label provider extension"); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5fee268477d34fc0e1b9e54dd641c0715fae348c/MylarUiPlugin.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/ui/MylarUiPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
760,
918,
855,
2224,
2249,
12,
45,
1750,
1046,
930,
13,
288,
1082,
202,
698,
288,
9506,
202,
921,
2893,
273,
930,
18,
2640,
17709,
3625,
12,
13943,
3625,
2148,
2514,
18,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
855,
2224,
2249,
12,
45,
1750,
1046,
930,
13,
288,
1082,
202,
698,
288,
9506,
202,
921,
2893,
273,
930,
18,
2640,
17709,
3625,
12,
13943,
3625,
2148,
2514,
18,
109... |
public static void scaleMolecule(IAtomContainer atomCon, Dimension areaDim, double fillFactor, HashMap renderingCoordinates) { Dimension molDim = get2DDimension(atomCon, renderingCoordinates); double widthFactor = (double) areaDim.width / (double) molDim.width; double heightFactor = (double) areaDim.height / (double) molDim.height; double scaleFactor = Math.min(widthFactor, heightFactor) * fillFactor; scaleMolecule(atomCon, scaleFactor, renderingCoordinates); | public static void scaleMolecule(IAtomContainer atomCon, double scaleFactor, HashMap renderingCoordinates) { for (int i = 0; i < atomCon.getAtomCount(); i++) { if(renderingCoordinates.get(atomCon.getAtom(i))!=null){ ((Point2d)renderingCoordinates.get(atomCon.getAtom(i))).x *= scaleFactor; ((Point2d)renderingCoordinates.get(atomCon.getAtom(i))).y *= scaleFactor; } } | public static void scaleMolecule(IAtomContainer atomCon, Dimension areaDim, double fillFactor, HashMap renderingCoordinates) { Dimension molDim = get2DDimension(atomCon, renderingCoordinates); double widthFactor = (double) areaDim.width / (double) molDim.width; double heightFactor = (double) areaDim.height / (double) molDim.height; double scaleFactor = Math.min(widthFactor, heightFactor) * fillFactor; scaleMolecule(atomCon, scaleFactor, renderingCoordinates); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/00edd068e02d28b168ad3afbda162cc01d2de988/GeometryTools.java/buggy/src/org/openscience/cdk/geometry/GeometryTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
3159,
29669,
12,
45,
3641,
2170,
3179,
442,
16,
13037,
5091,
5225,
16,
1645,
3636,
6837,
16,
4317,
9782,
13431,
13,
288,
202,
202,
8611,
12629,
5225,
273,
336,
22,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
3159,
29669,
12,
45,
3641,
2170,
3179,
442,
16,
13037,
5091,
5225,
16,
1645,
3636,
6837,
16,
4317,
9782,
13431,
13,
288,
202,
202,
8611,
12629,
5225,
273,
336,
22,
4... |
"Unable to obtain certoficate management service"); | "Unable to obtain certificate management service"); | public void load() { if (CryptoDebug.debug) { System.out.println("Loading servlet component: " + myServletClassName + " at " + myPath); } // FIXME need AgentIdentificationService org.cougaar.core.plugin.PluginBindingSite pbs = (org.cougaar.core.plugin.PluginBindingSite) bindingSite; this.agentId = pbs.getAgentIdentifier(); if (this.agentId == null) { throw new RuntimeException("Unable to obtain agent identifier"); } // get the blackboard service blackboardService = (BlackboardService) serviceBroker.getService( this, BlackboardService.class, null); if (blackboardService == null) { throw new RuntimeException( "Unable to obtain blackboard service"); } // Get the naming service namingService = (NamingService) serviceBroker.getService( this, NamingService.class, null); if (namingService == null) { throw new RuntimeException( "Unable to obtain naming service"); } // Get the certificate management service certificateManagementService = (CertificateManagementService) serviceBroker.getService( this, CertificateManagementService.class, null); if (certificateManagementService == null) { throw new RuntimeException( "Unable to obtain certoficate management service"); } support = new SecurityServletSupportImpl(getPath(), agentId, blackboardService, namingService, certificateManagementService, serviceBroker); super.load(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/9eb579cb8e6cb80606202f078213db28bc45d576/CaServletComponent.java/buggy/securityservices/src/org/cougaar/core/security/certauthority/CaServletComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1435,
288,
565,
309,
261,
18048,
2829,
18,
4148,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
10515,
8100,
1794,
30,
315,
9506,
397,
3399,
4745,
3834,
397,
315,
622,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1435,
288,
565,
309,
261,
18048,
2829,
18,
4148,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
10515,
8100,
1794,
30,
315,
9506,
397,
3399,
4745,
3834,
397,
315,
622,
3... |
oper.setReturnQName(new javax.xml.namespace.QName("", "importZipFromURLReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http: "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http: true )); | oper.setReturnQName(new javax.xml.namespace.QName("", "importZipFromURLReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName( "http: "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName( "http: "WebServiceException"), true)); | private static void _initOperationDesc3(){ org.apache.axis.description.OperationDesc oper; org.apache.axis.description.ParameterDesc param; oper = new org.apache.axis.description.OperationDesc(); oper.setName("importZipFromURL"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "url"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "privacy"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "recursive"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); oper.setReturnClass(java.lang.String.class); oper.setReturnQName(new javax.xml.namespace.QName("", "importZipFromURLReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[20] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("importZipFromURL"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "url"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "privacy"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); oper.setReturnClass(java.lang.String.class); oper.setReturnQName(new javax.xml.namespace.QName("", "importZipFromURLReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[21] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("isZipOfZips"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "url"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); oper.setReturnClass(boolean.class); oper.setReturnQName(new javax.xml.namespace.QName("", "isZipOfZipsReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[22] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("getSupportFileNames"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_soapenc_string")); oper.setReturnClass(java.lang.String[].class); oper.setReturnQName(new javax.xml.namespace.QName("", "getSupportFileNamesReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[23] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("getSupportFile"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "DataHandler")); oper.setReturnClass(javax.activation.DataHandler.class); oper.setReturnQName(new javax.xml.namespace.QName("", "getSupportFileReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[24] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("getSupportFiles"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_apachesoap_DataHandler")); oper.setReturnClass(javax.activation.DataHandler[].class); oper.setReturnQName(new javax.xml.namespace.QName("", "getSupportFilesReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[25] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("getSupportFiles"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileNames"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_soapenc_string"), java.lang.String[].class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_apachesoap_DataHandler")); oper.setReturnClass(javax.activation.DataHandler[].class); oper.setReturnQName(new javax.xml.namespace.QName("", "getSupportFilesReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[26] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("getLastModificationTimes"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileNames"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_soapenc_string"), java.lang.String[].class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_xsd_long")); oper.setReturnClass(long[].class); oper.setReturnQName(new javax.xml.namespace.QName("", "getLastModificationTimesReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[27] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("modifyTask"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "accessId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "taskName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "description"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "parameterInfoArray"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("org.genepattern.webservice", "ParmInfoArray"), ParameterInfo[].class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "taskAttributes"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"), java.util.HashMap.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "dataHandlers"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_apachesoap_DataHandler"), javax.activation.DataHandler[].class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileNames"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_soapenc_string"), java.lang.String[].class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); oper.setReturnClass(java.lang.String.class); oper.setReturnQName(new javax.xml.namespace.QName("", "modifyTaskReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[28] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("deleteFiles"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileNames"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "ArrayOf_soapenc_string"), java.lang.String[].class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); oper.setReturnClass(java.lang.String.class); oper.setReturnQName(new javax.xml.namespace.QName("", "deleteFilesReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[29] = oper; } | 57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/4a820be38a9edc1276f2a21752f65f71b51690d6/TaskIntegratorSoapBindingStub.java/clean/src/org/genepattern/webservice/TaskIntegratorSoapBindingStub.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
389,
2738,
2988,
4217,
23,
1435,
95,
3639,
2358,
18,
19211,
18,
4890,
18,
3384,
18,
2988,
4217,
2255,
31,
3639,
2358,
18,
19211,
18,
4890,
18,
3384,
18,
1662,
4217,
579,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
389,
2738,
2988,
4217,
23,
1435,
95,
3639,
2358,
18,
19211,
18,
4890,
18,
3384,
18,
2988,
4217,
2255,
31,
3639,
2358,
18,
19211,
18,
4890,
18,
3384,
18,
1662,
4217,
579,... |
ISelection selection = viewer.getSelection(); if (selection.isEmpty()) return; IPreferenceNode singleSelection = getSingleSelection(selection); boolean expanded = viewer .getExpandedState(singleSelection); viewer.setExpandedState(singleSelection, !expanded); } | ISelection selection = viewer.getSelection(); if (selection.isEmpty()) return; IPreferenceNode singleSelection = getSingleSelection(selection); boolean expanded = viewer .getExpandedState(singleSelection); viewer.setExpandedState(singleSelection, !expanded); } | public void widgetDefaultSelected(final SelectionEvent event) { ISelection selection = viewer.getSelection(); if (selection.isEmpty()) return; IPreferenceNode singleSelection = getSingleSelection(selection); boolean expanded = viewer .getExpandedState(singleSelection); viewer.setExpandedState(singleSelection, !expanded); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d6d458c4d729d92f70d2e5d4166fe0c3ff50c883/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
3604,
1868,
7416,
12,
6385,
12977,
1133,
871,
13,
288,
13491,
467,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
13491,
309,
261,
10705,
18,
291,
1921,
10756,
18701,
327,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
3604,
1868,
7416,
12,
6385,
12977,
1133,
871,
13,
288,
13491,
467,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
13491,
309,
261,
10705,
18,
291,
1921,
10756,
18701,
327,
31,
1... |
public void prepareNonParticipating() { | final public void prepareNonParticipating() { | public void prepareNonParticipating() { allPrepare(NON_PARTICIPANT); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/94b7f2758d20d0b18a9fe0f2a98fc5fcde7a9fce/Plan.java/buggy/rvm/src/vm/memoryManagers/JMTk/plan/genHybrid/Plan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
2911,
3989,
1988,
24629,
1776,
1435,
288,
565,
777,
7543,
12,
3993,
67,
15055,
2871,
2579,
6856,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
2911,
3989,
1988,
24629,
1776,
1435,
288,
565,
777,
7543,
12,
3993,
67,
15055,
2871,
2579,
6856,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
private synchronized void GC () { java.util.Enumeration keys = _unused.keys (); for (; keys.hasMoreElements (); ) { String key = (String) keys.nextElement (); UnusedTunnel tunnel = (UnusedTunnel) _unused.get (key); if (tunnel.isOldEnough ()) { try { SshTunnel sshTunnel = tunnel.getTunnel (); logger.debug ("gc kill unused tunnel " + sshTunnel.getDistantHost () + ":" + sshTunnel.getDistantPort ()); sshTunnel.realClose (); } catch (Exception e) {} _unused.remove (key); } } } | private synchronized void GC() { java.util.Enumeration keys = _unused.keys(); for (; keys.hasMoreElements();) { String key = (String) keys.nextElement(); UnusedTunnel tunnel = (UnusedTunnel) _unused.get(key); if (tunnel.isOldEnough()) { try { SshTunnel sshTunnel = tunnel.getTunnel(); logger.debug("gc kill unused tunnel " + sshTunnel.getDistantHost() + ":" + sshTunnel.getDistantPort()); sshTunnel.realClose(); } catch (Exception e) { e.printStackTrace(); } _unused.remove(key); } } } | private synchronized void GC () { java.util.Enumeration keys = _unused.keys (); for (; keys.hasMoreElements (); ) { String key = (String) keys.nextElement (); UnusedTunnel tunnel = (UnusedTunnel) _unused.get (key); if (tunnel.isOldEnough ()) { try { SshTunnel sshTunnel = tunnel.getTunnel (); logger.debug ("gc kill unused tunnel " + sshTunnel.getDistantHost () + ":" + sshTunnel.getDistantPort ()); sshTunnel.realClose (); } catch (Exception e) {} _unused.remove (key); } } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/2ee384f8b58174a33b94cd350994eef4ddaaf067/SshTunnelFactory.java/buggy/src/org/objectweb/proactive/core/ssh/SshTunnelFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
15085,
1832,
288,
202,
202,
6290,
18,
1367,
18,
21847,
1311,
273,
389,
14375,
18,
2452,
261,
1769,
202,
202,
1884,
261,
31,
1311,
18,
5332,
7417,
3471,
261,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
15085,
1832,
288,
202,
202,
6290,
18,
1367,
18,
21847,
1311,
273,
389,
14375,
18,
2452,
261,
1769,
202,
202,
1884,
261,
31,
1311,
18,
5332,
7417,
3471,
261,
1769,
... |
String localName); | String localName) throws DOMException; | public boolean hasAttributeNS(String namespaceURI, String localName); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Element.java/clean/core/src/classpath/org/org/w3c/dom/Element.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
16427,
3156,
12,
780,
19421,
16,
4766,
282,
514,
11927,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
16427,
3156,
12,
780,
19421,
16,
4766,
282,
514,
11927,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
this.segment = segment; this.values = values; } | this.segment = segment; this.values = values; } | DenseSegmentDataset(Segment segment, Object[] values) { this.segment = segment; this.values = values; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/DenseSegmentDataset.java/clean/src/main/mondrian/rolap/agg/DenseSegmentDataset.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
40,
3558,
4131,
10656,
12,
4131,
3267,
16,
1033,
8526,
924,
13,
288,
202,
202,
2211,
18,
9273,
273,
3267,
31,
202,
202,
2211,
18,
2372,
273,
924,
31,
202,
97,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
40,
3558,
4131,
10656,
12,
4131,
3267,
16,
1033,
8526,
924,
13,
288,
202,
202,
2211,
18,
9273,
273,
3267,
31,
202,
202,
2211,
18,
2372,
273,
924,
31,
202,
97,
2,
-100,
-100,
-100... |
if (event.getChecked()) activitiesToEnable.add(event.getElement()); else activitiesToEnable.remove(event.getElement()); | if (event.getChecked()) { activitiesToEnable.add(event.getElement()); } else { activitiesToEnable.remove(event.getElement()); } | public void checkStateChanged(CheckStateChangedEvent event) { if (event.getChecked()) activitiesToEnable.add(event.getElement()); else activitiesToEnable.remove(event.getElement()); getButton(Window.OK).setEnabled( !activitiesToEnable.isEmpty()); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EnablementDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/EnablementDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
13632,
5033,
12,
1564,
1119,
27553,
871,
13,
288,
10792,
309,
261,
2575,
18,
588,
11454,
10756,
13491,
17259,
774,
8317,
18,
1289,
12,
2575,
18,
21336,
10663,
10792,
469,
13491,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
13632,
5033,
12,
1564,
1119,
27553,
871,
13,
288,
10792,
309,
261,
2575,
18,
588,
11454,
10756,
13491,
17259,
774,
8317,
18,
1289,
12,
2575,
18,
21336,
10663,
10792,
469,
13491,... |
if(refCount > limit) | if(refCount > limit) { | protected void ageReferences() { Cacheable item; int refCount; int limit = ageingPeriod / 10; for(int i = 0; i < count; i++) { item = items[i]; if(item != null) { refCount = item.getReferenceCount(); if(refCount > limit) item.setReferenceCount(refCount - limit); else item.setReferenceCount(1); } } nextCleanup += ageingPeriod; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/LRDCache.java/clean/src/org/exist/storage/cache/LRDCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
9388,
8221,
1435,
288,
202,
202,
1649,
429,
761,
31,
202,
202,
474,
1278,
1380,
31,
202,
202,
474,
1800,
273,
9388,
310,
5027,
342,
1728,
31,
202,
202,
1884,
12,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
9388,
8221,
1435,
288,
202,
202,
1649,
429,
761,
31,
202,
202,
474,
1278,
1380,
31,
202,
202,
474,
1800,
273,
9388,
310,
5027,
342,
1728,
31,
202,
202,
1884,
12,
474,
... |
log.warn("Getting error message from server",e); in = new BufferedInputStream(conn.getErrorStream()); | log.warn("Getting error message from server", e); in= new BufferedInputStream(conn.getErrorStream()); | protected byte[] readResponse(HttpURLConnection conn) throws IOException { byte[] readBuffer = JMeterContextService.getContext().getReadBuffer(); BufferedInputStream in; try { if (conn.getContentEncoding() != null && conn.getContentEncoding().equals("gzip")) { in = new BufferedInputStream( new GZIPInputStream(conn.getInputStream())); } else { in = new BufferedInputStream(conn.getInputStream()); } } catch(IOException e){ if (e.getCause() instanceof FileNotFoundException){ log.warn(e.getCause().toString()); } else { log.error("Getting error message from server",e); } in = new BufferedInputStream(conn.getErrorStream()); } catch (Exception e) { log.warn("Getting error message from server",e); in = new BufferedInputStream(conn.getErrorStream()); } java.io.ByteArrayOutputStream w = new ByteArrayOutputStream(); int x = 0; while ((x = in.read(readBuffer)) > -1) { w.write(readBuffer, 0, x); } in.close(); w.flush(); w.close(); return w.toByteArray(); } | 50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/2b28185336c09d05f1ac5cd0c917c815f8fe7976/HTTPSampler.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1160,
8526,
26694,
12,
2940,
14790,
1487,
13,
1216,
1860,
565,
288,
3639,
1160,
8526,
31404,
273,
804,
16935,
1042,
1179,
18,
29120,
7675,
588,
1994,
1892,
5621,
3639,
24742,
316,
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,
4750,
1160,
8526,
26694,
12,
2940,
14790,
1487,
13,
1216,
1860,
565,
288,
3639,
1160,
8526,
31404,
273,
804,
16935,
1042,
1179,
18,
29120,
7675,
588,
1994,
1892,
5621,
3639,
24742,
316,
31,... |
protected Control createDialogArea(Composite parent) { initializeDialogUnits(parent); Composite topArea = (Composite) super.createDialogArea(parent); errorViewer = new TableViewer(topArea, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); errorViewer.setSorter(getViewerSorter()); Control control = errorViewer.getControl(); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); data.widthHint = convertWidthInCharsToPixels(50); data.heightHint = convertHeightInCharsToPixels(10); control.setLayoutData(data); initContentProvider(); initLabelProvider(); initContextMenu(); applyDialogFont(parent); return topArea; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/79affe799a135d6a5f97d8db851f32eb63fcbe7f/ErrorNotificationDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3367,
2640,
6353,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
11160,
6353,
7537,
12,
2938,
1769,
202,
202,
799,
1724,
278,
556,
5484,
28657,
9400,
13,
9565,
18,
2640,
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,
225,
202,
1117,
3367,
2640,
6353,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
11160,
6353,
7537,
12,
2938,
1769,
202,
202,
799,
1724,
278,
556,
5484,
28657,
9400,
13,
9565,
18,
2640,
6353,... | ||
documentName = URLEncoder.encode( documentName, "UTF-8" ); | documentName = URLEncoder.encode( documentName, ParameterAccessor.UTF_8_ENCODE ); | protected String buildBookmarkAction( IAction action, Object context ) { StringBuffer link = new StringBuffer( ); boolean realBookmark = false; if ( this.document != null ) { long pageNumber = this.document .getPageNumber( action.getBookmark( ) ); realBookmark = ( pageNumber == this.page && !isEmbeddable ); } String bookmark = action.getBookmark( ); try { bookmark = URLEncoder.encode( bookmark, "UTF-8" ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e ) { // Does nothing } String baseURL = null; if ( context != null && context instanceof HTMLRenderContext ) { baseURL = ( (HTMLRenderContext) context ).getBaseURL( ); } link.append( baseURL ); link.append( "?__document=" ); //$NON-NLS-1$ String documentName = document.getName( ); try { documentName = URLEncoder.encode( documentName, "UTF-8" ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e ) { // Does nothing } link.append( documentName ); if ( locale != null ) { link.append( "&__locale=" ); //$NON-NLS-1$ link.append( locale.toString( ) ); } if ( realBookmark ) { link.append( "#" ); //$NON-NLS-1$ link.append( bookmark ); } else { link.append( "&__bookmark=" ); //$NON-NLS-1$ link.append( bookmark ); } return link.toString( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1ff9aa843f70ddf72ba7891c54d9d7216c9063f5/ViewerHTMLActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
22966,
1803,
12,
467,
1803,
1301,
16,
1033,
819,
262,
202,
95,
202,
202,
780,
1892,
1692,
273,
394,
6674,
12,
11272,
202,
202,
6494,
2863,
22966,
273,
629,
31,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
22966,
1803,
12,
467,
1803,
1301,
16,
1033,
819,
262,
202,
95,
202,
202,
780,
1892,
1692,
273,
394,
6674,
12,
11272,
202,
202,
6494,
2863,
22966,
273,
629,
31,
202... |
if ((active0 & 0x6000000L) != 0L) | if ((active0 & 0x30000000L) != 0L) | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; return 33; } if ((active0 & 0x10000000L) != 0L) return 31; if ((active0 & 0xd000L) != 0L) return 7; return -1; case 1: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 33; } if ((active0 & 0x4000L) != 0L) return 5; return -1; case 2: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 33; } return -1; case 3: if ((active0 & 0x4000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 33; } if ((active0 & 0x2000000L) != 0L) return 33; return -1; default : return -1; }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92... |
CronTrigger copy = (CronTrigger) super.clone(); | CronTrigger copy = (CronTrigger) super.clone(); | public Object clone() { CronTrigger copy = (CronTrigger) super.clone(); copy.setCronExpression((CronExpression)cronEx.clone()); return copy; } | 55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/CronTrigger.java/clean/src/java/org/quartz/CronTrigger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
288,
377,
202,
18586,
6518,
1610,
273,
261,
18586,
6518,
13,
2240,
18,
14056,
5621,
3639,
1610,
18,
542,
18586,
2300,
12443,
18586,
2300,
13,
18041,
424,
18,
14056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
288,
377,
202,
18586,
6518,
1610,
273,
261,
18586,
6518,
13,
2240,
18,
14056,
5621,
3639,
1610,
18,
542,
18586,
2300,
12443,
18586,
2300,
13,
18041,
424,
18,
14056,
... |
getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3306,
19571,
797,
12,
54,
10340,
921,
7138,
921,
13,
288,
202,
202,
430,
261,
291,
19571,
10756,
288,
1082,
202,
430,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
9506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3306,
19571,
797,
12,
54,
10340,
921,
7138,
921,
13,
288,
202,
202,
430,
261,
291,
19571,
10756,
288,
1082,
202,
430,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
9506,... |
issueReportURL = toolkit.createText(container, task.getIssueReportURL(), SWT.BORDER); | issueReportURL = toolkit.createText(container, task.getUrl(), SWT.BORDER); | private void createOverviewSection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.setText(DESCRIPTION_OVERVIEW); section.setLayout(new TableWrapLayout()); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite container = toolkit.createComposite(section); section.setClient(container); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 2; container.setLayout(layout); container.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); Label l = toolkit.createLabel(container, "Description:"); l.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); description = toolkit.createText(container, task.getDescription(true), SWT.BORDER); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); // td.colspan = 2; description.setLayoutData(td); if (!task.isLocal()) { description.setEnabled(false); } else { description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } Label urlLabel = toolkit.createLabel(container, "Web Link:"); urlLabel.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); issueReportURL = toolkit.createText(container, task.getIssueReportURL(), SWT.BORDER); issueReportURL.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); // issueReportURL.setForeground(HYPERLINK); if (!task.isLocal()) { issueReportURL.setEnabled(false); } else { issueReportURL.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/6dc525533ba17e25fcb03aeef2a22f9db9ab3762/TaskInfoEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
26648,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26648,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14... |
id = rs.getInt("id!"); poll_id = rs.getInt("poll_id!"); question_number = rs.getInt("question_number!"); text_id = rs.getInt("text_id!"); | id = rs.getInt( "id!" ); poll_id = rs.getInt( "poll_id!" ); question_number = rs.getInt( "question_number!" ); text_id = rs.getInt( "text_id!" ); | public Table_poll_questions( ResultSet rs ) throws SQLException { id = rs.getInt("id!"); poll_id = rs.getInt("poll_id!"); question_number = rs.getInt("question_number!"); text_id = rs.getInt("text_id!"); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1006917dfe63a5d85d047011540205a2b02407a8/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3555,
67,
13835,
67,
9758,
12,
10842,
3597,
262,
1216,
6483,
288,
5411,
612,
273,
3597,
18,
588,
1702,
2932,
350,
4442,
1769,
5411,
7672,
67,
350,
273,
3597,
18,
588,
1702,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3555,
67,
13835,
67,
9758,
12,
10842,
3597,
262,
1216,
6483,
288,
5411,
612,
273,
3597,
18,
588,
1702,
2932,
350,
4442,
1769,
5411,
7672,
67,
350,
273,
3597,
18,
588,
1702,
2932,
... |
if (model.getParent() instanceof PLAMProject) { PLAMProject pp = (PLAMProject)model.getParent(); | if (model.getProject() instanceof PLAMProject) { PLAMProject pp = (PLAMProject)model.getProject(); | public void doSave(IProgressMonitor monitor) { try { isSaving = true; ByteArrayOutputStream out = new ByteArrayOutputStream(); System.out.println(model); System.out.println(model.getParent()); if (model.getParent() instanceof PLAMProject) { PLAMProject pp = (PLAMProject)model.getParent(); pp.storeViewModelContainer(viewModel, monitor); pp.getProductline().serializeAll(); getCommandStack().markSaveLocation(); } } catch (Exception e) { e.printStackTrace(); } finally { isSaving = false; } } | 9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/ce689aaedcac4705a18b6b8d1d96326042ffdc3b/ArchitectureEditor.java/buggy/kobold/src/kobold.client.plam/src/kobold/client/plam/editor/ArchitectureEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4755,
12,
45,
5491,
7187,
6438,
13,
288,
202,
565,
775,
288,
1082,
202,
291,
24660,
273,
638,
31,
1082,
202,
8826,
4632,
596,
273,
394,
11559,
5621,
1082,
202,
3163,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4755,
12,
45,
5491,
7187,
6438,
13,
288,
202,
565,
775,
288,
1082,
202,
291,
24660,
273,
638,
31,
1082,
202,
8826,
4632,
596,
273,
394,
11559,
5621,
1082,
202,
3163,... |
throws Throwable | public long evalLong(Env env) throws Throwable { Value lValue = _left.eval(env); Value rValue = _right.eval(env); return lValue.toLong() >> rValue.toLong(); } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/87fa828f676c349c54c585677eb7eeab11f5627f/RightShiftExpr.java/clean/quercus/src/main/java/com/caucho/quercus/expr/RightShiftExpr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
5302,
3708,
12,
3491,
1550,
13,
377,
288,
565,
1445,
328,
620,
273,
389,
4482,
18,
8622,
12,
3074,
1769,
565,
1445,
436,
620,
273,
389,
4083,
18,
8622,
12,
3074,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
5302,
3708,
12,
3491,
1550,
13,
377,
288,
565,
1445,
328,
620,
273,
389,
4482,
18,
8622,
12,
3074,
1769,
565,
1445,
436,
620,
273,
389,
4083,
18,
8622,
12,
3074,
1769,
565,
... | |
private int rotateLeft( int x, int n) { return (x << n) | (x >>> (32 - n)); | private int rotateLeft(int x, int n) { return(x << n) | (x >>> (32 - n)); | private int rotateLeft( int x, int n) { return (x << n) | (x >>> (32 - n)); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d48066e24a9a4b4edf35b9545de98ba05acafd4d/MD4Digest.java/buggy/src/main/net/sourceforge/jtds/util/MD4Digest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
8534,
3910,
12,
3639,
509,
619,
16,
3639,
509,
290,
13,
565,
288,
3639,
327,
261,
92,
2296,
290,
13,
571,
261,
92,
4080,
261,
1578,
300,
290,
10019,
565,
289,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
8534,
3910,
12,
3639,
509,
619,
16,
3639,
509,
290,
13,
565,
288,
3639,
327,
261,
92,
2296,
290,
13,
571,
261,
92,
4080,
261,
1578,
300,
290,
10019,
565,
289,
2,
-100,
-100... |
"Blob", | "Binary", | public static byte[] toBytes( Object source ) throws BirtException { // Converting Blob to/from other types is not currently supported if ( source == null ) return null; else if ( source instanceof byte[] ) return (byte[]) source; else throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Blob", resourceBundle ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c68a027f78b740ccf083793a9c5759a5a4065f37/DataTypeUtil.java/clean/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1160,
8526,
23247,
12,
1033,
1084,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
759,
4037,
310,
12741,
358,
19,
2080,
1308,
1953,
353,
486,
4551,
3260,
202,
202,
430,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1160,
8526,
23247,
12,
1033,
1084,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
759,
4037,
310,
12741,
358,
19,
2080,
1308,
1953,
353,
486,
4551,
3260,
202,
202,
430,
26... |
trapDisabledRadioButton.setText("<html><b>Disable Traps</b> so no trap events are generated.</html>"); | trapDisabledRadioButton.setText("<html><b>Disable Traps</b> so no trap events are generated. (This is the default setting.)</html>"); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; snmpButtonGroup = new javax.swing.ButtonGroup(); trapButtonGroup = new javax.swing.ButtonGroup(); externalRemoteJPanel = new javax.swing.JPanel(); snmpDisabledRadioButton = new javax.swing.JRadioButton(); snmpEnabledRadioButton = new javax.swing.JRadioButton(); enableRemoteJPanel = new javax.swing.JPanel(); restrictIPJPanel = new javax.swing.JPanel(); snmpCommunityJLabel = new javax.swing.JLabel(); snmpCommunityJTextField = new javax.swing.JTextField(); snmpContactJLabel = new javax.swing.JLabel(); snmpContactJTextField = new javax.swing.JTextField(); snmpLocationJLabel = new javax.swing.JLabel(); snmpLocationJTextField = new javax.swing.JTextField(); jSeparator3 = new javax.swing.JSeparator(); enableRemoteJPanel1 = new javax.swing.JPanel(); trapDisabledRadioButton = new javax.swing.JRadioButton(); trapEnabledRadioButton = new javax.swing.JRadioButton(); restrictIPJPanel1 = new javax.swing.JPanel(); trapCommunityJLabel = new javax.swing.JLabel(); trapCommunityJTextField = new javax.swing.JTextField(); trapHostJLabel = new javax.swing.JLabel(); trapHostJTextField = new javax.swing.JTextField(); trapPortJLabel = new javax.swing.JLabel(); trapPortJSpinner = new javax.swing.JSpinner(); setLayout(new java.awt.GridBagLayout()); setMaximumSize(new java.awt.Dimension(563, 343)); setMinimumSize(new java.awt.Dimension(563, 343)); setPreferredSize(new java.awt.Dimension(563, 343)); externalRemoteJPanel.setLayout(new java.awt.GridBagLayout()); externalRemoteJPanel.setBorder(new javax.swing.border.TitledBorder(null, "SNMP Monitoring", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 16))); snmpButtonGroup.add(snmpDisabledRadioButton); snmpDisabledRadioButton.setFont(new java.awt.Font("Dialog", 0, 12)); snmpDisabledRadioButton.setText("<html><b>Disable</b> SNMP Monitoring. (This is the default setting.)</html>"); snmpDisabledRadioButton.setFocusPainted(false); snmpDisabledRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { snmpDisabledRadioButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; externalRemoteJPanel.add(snmpDisabledRadioButton, gridBagConstraints); snmpButtonGroup.add(snmpEnabledRadioButton); snmpEnabledRadioButton.setFont(new java.awt.Font("Dialog", 0, 12)); snmpEnabledRadioButton.setText("<html><b>Enable</b> SNMP Monitoring.</html>"); snmpEnabledRadioButton.setFocusPainted(false); snmpEnabledRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { snmpEnabledRadioButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; externalRemoteJPanel.add(snmpEnabledRadioButton, gridBagConstraints); enableRemoteJPanel.setLayout(new java.awt.GridBagLayout()); restrictIPJPanel.setLayout(new java.awt.GridBagLayout()); snmpCommunityJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); snmpCommunityJLabel.setText("Community:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel.add(snmpCommunityJLabel, gridBagConstraints); snmpCommunityJTextField.setMaximumSize(new java.awt.Dimension(150, 19)); snmpCommunityJTextField.setMinimumSize(new java.awt.Dimension(150, 19)); snmpCommunityJTextField.setPreferredSize(new java.awt.Dimension(150, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel.add(snmpCommunityJTextField, gridBagConstraints); snmpContactJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); snmpContactJLabel.setText("System Contact:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel.add(snmpContactJLabel, gridBagConstraints); snmpContactJTextField.setMaximumSize(new java.awt.Dimension(150, 19)); snmpContactJTextField.setMinimumSize(new java.awt.Dimension(150, 19)); snmpContactJTextField.setPreferredSize(new java.awt.Dimension(150, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel.add(snmpContactJTextField, gridBagConstraints); snmpLocationJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); snmpLocationJLabel.setText("System Location:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel.add(snmpLocationJLabel, gridBagConstraints); snmpLocationJTextField.setMaximumSize(new java.awt.Dimension(150, 19)); snmpLocationJTextField.setMinimumSize(new java.awt.Dimension(150, 19)); snmpLocationJTextField.setPreferredSize(new java.awt.Dimension(150, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel.add(snmpLocationJTextField, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 20, 5, 0); enableRemoteJPanel.add(restrictIPJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0); externalRemoteJPanel.add(enableRemoteJPanel, gridBagConstraints); jSeparator3.setForeground(new java.awt.Color(200, 200, 200)); jSeparator3.setPreferredSize(new java.awt.Dimension(0, 1)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; externalRemoteJPanel.add(jSeparator3, gridBagConstraints); enableRemoteJPanel1.setLayout(new java.awt.GridBagLayout()); trapButtonGroup.add(trapDisabledRadioButton); trapDisabledRadioButton.setFont(new java.awt.Font("Dialog", 0, 12)); trapDisabledRadioButton.setText("<html><b>Disable Traps</b> so no trap events are generated.</html>"); trapDisabledRadioButton.setFocusPainted(false); trapDisabledRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { trapDisabledRadioButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; enableRemoteJPanel1.add(trapDisabledRadioButton, gridBagConstraints); trapButtonGroup.add(trapEnabledRadioButton); trapEnabledRadioButton.setFont(new java.awt.Font("Dialog", 0, 12)); trapEnabledRadioButton.setText("<html><b>Enable Traps</b> so trap events are sent when they are generated. (This is the default setting.)</html>"); trapEnabledRadioButton.setFocusPainted(false); trapEnabledRadioButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { trapEnabledRadioButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; enableRemoteJPanel1.add(trapEnabledRadioButton, gridBagConstraints); restrictIPJPanel1.setLayout(new java.awt.GridBagLayout()); trapCommunityJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); trapCommunityJLabel.setText("Community:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel1.add(trapCommunityJLabel, gridBagConstraints); trapCommunityJTextField.setMaximumSize(new java.awt.Dimension(150, 19)); trapCommunityJTextField.setMinimumSize(new java.awt.Dimension(150, 19)); trapCommunityJTextField.setPreferredSize(new java.awt.Dimension(150, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel1.add(trapCommunityJTextField, gridBagConstraints); trapHostJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); trapHostJLabel.setText("Host:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel1.add(trapHostJLabel, gridBagConstraints); trapHostJTextField.setMaximumSize(new java.awt.Dimension(150, 19)); trapHostJTextField.setMinimumSize(new java.awt.Dimension(150, 19)); trapHostJTextField.setPreferredSize(new java.awt.Dimension(150, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel1.add(trapHostJTextField, gridBagConstraints); trapPortJLabel.setFont(new java.awt.Font("Dialog", 0, 12)); trapPortJLabel.setText("Port:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; restrictIPJPanel1.add(trapPortJLabel, gridBagConstraints); trapPortJSpinner.setFont(new java.awt.Font("Dialog", 0, 12)); trapPortJSpinner.setFocusable(false); trapPortJSpinner.setMaximumSize(new java.awt.Dimension(75, 19)); trapPortJSpinner.setMinimumSize(new java.awt.Dimension(75, 19)); trapPortJSpinner.setPreferredSize(new java.awt.Dimension(75, 19)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0); restrictIPJPanel1.add(trapPortJSpinner, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 50, 5, 0); enableRemoteJPanel1.add(restrictIPJPanel1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0); externalRemoteJPanel.add(enableRemoteJPanel1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10); add(externalRemoteJPanel, gridBagConstraints); }//GEN-END:initComponents | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/1233502420d8c628f0fbd258bfad376c05d593db/RemoteSnmpJPanel.java/buggy/gui/main/com/metavize/gui/configuration/RemoteSnmpJPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
7734,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
7734,
15366,
3616,
1114,
273,
394,
6863,
18,
5328,
310,
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,
540,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
7734,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
7734,
15366,
3616,
1114,
273,
394,
6863,
18,
5328,
310,
18,
... |
Teacher teacher = Teacher.readTeacherByUsername(user); | private InfoSiteTeacherInformation getTeacherInformation(String user, ExecutionYear executionYear) throws ExcepcaoPersistencia { InfoSiteTeacherInformation infoSiteTeacherInformation = new InfoSiteTeacherInformation(); Teacher teacher = Teacher.readTeacherByUsername(user); InfoTeacher infoTeacher = InfoTeacher.newInfoFromDomain(teacher); infoSiteTeacherInformation.setInfoTeacher(infoTeacher); infoSiteTeacherInformation.setInfoQualifications(getInfoQualifications(teacher)); infoSiteTeacherInformation.setInfoProfessionalCareers(getInfoCareers(teacher, CareerType.PROFESSIONAL)); infoSiteTeacherInformation.setInfoTeachingCareers(getInfoCareers(teacher,CareerType.TEACHING)); ServiceProviderRegime serviceProviderRegime = teacher.getServiceProviderRegime(); if (serviceProviderRegime == null) { InfoServiceProviderRegime infoServiceProviderRegime = new InfoServiceProviderRegime(); infoServiceProviderRegime.setInfoTeacher(infoTeacher); infoSiteTeacherInformation.setInfoServiceProviderRegime(infoServiceProviderRegime); } else { InfoServiceProviderRegime infoServiceProviderRegime = InfoServiceProviderRegime.newInfoFromDomain(serviceProviderRegime); infoSiteTeacherInformation.setInfoServiceProviderRegime(infoServiceProviderRegime); } infoSiteTeacherInformation.setInfoExternalActivities(getInfoExternalActivities(teacher)); infoSiteTeacherInformation.setInfoLecturingExecutionCourses(getInfoLecturingExecutionCourses(teacher, executionYear)); infoSiteTeacherInformation.setInfoResponsibleExecutionCourses(getInfoRepersistentSupportonsibleExecutionCourses(teacher, executionYear)); WeeklyOcupation weeklyOcupation = teacher.getWeeklyOcupation(); if (weeklyOcupation == null) { InfoWeeklyOcupation infoWeeklyOcupation = new InfoWeeklyOcupation(); infoWeeklyOcupation.setInfoTeacher(infoTeacher); infoWeeklyOcupation.setResearch(Integer.valueOf(0)); infoWeeklyOcupation.setManagement(Integer.valueOf(0)); infoWeeklyOcupation.setLecture(Integer.valueOf(0)); infoWeeklyOcupation.setSupport(Integer.valueOf(0)); infoWeeklyOcupation.setOther(Integer.valueOf(0)); infoSiteTeacherInformation.setInfoWeeklyOcupation(infoWeeklyOcupation); } else { InfoWeeklyOcupation infoWeeklyOcupation = InfoWeeklyOcupation.newInfoFromDomain(weeklyOcupation); infoSiteTeacherInformation.setInfoWeeklyOcupation(infoWeeklyOcupation); } infoSiteTeacherInformation.setInfoDegreeOrientation(getInfoOrientation(teacher, OrientationType.DEGREE)); infoSiteTeacherInformation.setInfoMasterOrientation(getInfoOrientation(teacher, OrientationType.MASTER)); infoSiteTeacherInformation.setInfoPhdOrientation(getInfoOrientation(teacher, OrientationType.PHD)); infoSiteTeacherInformation.setInfoArticleChapterPublicationsNumber(getInfoPublicationsNumber(teacher, PublicationType.ARTICLES_CHAPTERS)); infoSiteTeacherInformation.setInfoEditBookPublicationsNumber(getInfoPublicationsNumber(teacher, PublicationType.EDITOR_BOOK)); infoSiteTeacherInformation.setInfoAuthorBookPublicationsNumber(getInfoPublicationsNumber(teacher, PublicationType.AUTHOR_BOOK)); infoSiteTeacherInformation.setInfoMagArticlePublicationsNumber(getInfoPublicationsNumber(teacher, PublicationType.MAG_ARTICLE)); infoSiteTeacherInformation.setInfoComunicationPublicationsNumber(getInfoPublicationsNumber(teacher, PublicationType.COMUNICATION)); infoSiteTeacherInformation.setInfoOldCientificPublications(getInfoOldPublications(teacher, OldPublicationType.CIENTIFIC)); infoSiteTeacherInformation.setInfoOldDidacticPublications(getInfoOldPublications(teacher, OldPublicationType.DIDACTIC)); ExecutionPeriod executionPeriod = ExecutionPeriod.readActualExecutionPeriod(); infoSiteTeacherInformation.setInfoExecutionPeriod(InfoExecutionPeriod.newInfoFromDomain(executionPeriod)); return infoSiteTeacherInformation; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/91694683597816b784bd7853b5196375764356e4/ReadTeachersInformation.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/coordinator/ReadTeachersInformation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3807,
4956,
56,
13798,
264,
5369,
3181,
13798,
264,
5369,
12,
780,
729,
16,
8687,
5593,
4588,
5593,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
3807,
4956,
56,
13798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3807,
4956,
56,
13798,
264,
5369,
3181,
13798,
264,
5369,
12,
780,
729,
16,
8687,
5593,
4588,
5593,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
3807,
4956,
56,
13798,
... | |
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm editarAulaForm = (DynaActionForm) form; HttpSession sessao = request.getSession(false); if (sessao != null) { IUserView userView = (IUserView) sessao.getAttribute(SessionConstants.U_VIEW); GestorServicos gestor = GestorServicos.manager(); InfoLesson iAulaAntiga = (InfoLesson) sessao.getAttribute("infoAula"); Calendar inicio = Calendar.getInstance(); inicio.set( Calendar.HOUR_OF_DAY, Integer.parseInt((String)editarAulaForm.get("horaInicio"))); inicio.set( Calendar.MINUTE, Integer.parseInt((String)editarAulaForm.get("minutosInicio"))); inicio.set(Calendar.SECOND, 0); Calendar fim = Calendar.getInstance(); fim.set( Calendar.HOUR_OF_DAY, Integer.parseInt((String)editarAulaForm.get("horaFim"))); fim.set( Calendar.MINUTE, Integer.parseInt((String)editarAulaForm.get("minutosFim"))); fim.set(Calendar.SECOND, 0); InfoRoom infoSala = new InfoRoom(); infoSala.setNome((String) editarAulaForm.get("nomeSala")); RoomKey kSalaAntiga = new RoomKey(iAulaAntiga.getInfoSala().getNome()); KeyLesson kAulaAntiga = new KeyLesson( iAulaAntiga.getDiaSemana(), iAulaAntiga.getInicio(), iAulaAntiga.getFim(), kSalaAntiga); InfoLesson iAula = new InfoLesson( new DiaSemana(new Integer((String) editarAulaForm.get("diaSemana"))), inicio, fim, new TipoAula(new Integer((String) editarAulaForm.get("tipoAula"))), infoSala, iAulaAntiga.getInfoDisciplinaExecucao()); Object argsEditarAula[] = { kAulaAntiga, iAula }; InfoLessonServiceResult result = null; try { result = (InfoLessonServiceResult) gestor.executar( userView, "EditarAula", argsEditarAula); } catch (ExistingServiceException ex) { throw new ExistingActionException("A aula", ex); } catch (InterceptingServiceException ex) { throw new InterceptingActionException(infoSala.getNome(), ex); } InfoExecutionCourse iDE = (InfoExecutionCourse) sessao.getAttribute( "infoDisciplinaExecucao"); Object argsLerAulas[] = new Object[1]; argsLerAulas[0] = iDE; ArrayList infoAulas = (ArrayList) gestor.executar( userView, "LerAulasDeDisciplinaExecucao", argsLerAulas); sessao.removeAttribute("listaAulas"); if (infoAulas != null && !infoAulas.isEmpty()) sessao.setAttribute("listaAulas", infoAulas); sessao.removeAttribute("indexAula"); ActionErrors actionErrors = getActionErrors(result, inicio, fim); if (actionErrors.isEmpty()) { sessao.removeAttribute("infoAula"); return mapping.findForward("Sucesso"); } else { saveErrors(request, actionErrors); return mapping.getInputForward(); } } else throw new Exception(); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b1e0bdc3ae8d91a1ad9a46c8becf21c3c099cf75/EditarAulaFormAction.java/buggy/src/ServidorApresentacao/Action/sop/EditarAulaFormAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1836,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1836,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288... | ||
} else if(cmd.equals("Run")) { | } else if (cmd.equals("Run")) { | public void actionPerformed(ActionEvent e) { int pos = viewToModel(new Point(popup.x, popup.y)); popup.setVisible(false); String cmd = e.getActionCommand(); int line = -1; try { line = getLineOfOffset(pos); } catch(Exception exc) { } if(cmd.equals("Set Breakpoint")) { w.setBreakPoint(line + 1); } else if(cmd.equals("Clear Breakpoint")) { w.clearBreakPoint(line + 1); } else if(cmd.equals("Run to Cursor")) { w.runToCursor(e); } else if(cmd.equals("Run")) { w.load(); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
509,
949,
273,
1476,
774,
1488,
12,
2704,
4686,
12,
16086,
18,
92,
16,
10431,
18,
93,
10019,
3639,
10431,
18,
542,
6207,
12,
5743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
509,
949,
273,
1476,
774,
1488,
12,
2704,
4686,
12,
16086,
18,
92,
16,
10431,
18,
93,
10019,
3639,
10431,
18,
542,
6207,
12,
5743,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.